[03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]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:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]OFD Sender: No OFD packet to send [03:41:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:13]OFD Sender: No OFD packet to send [03:43:18]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:28]OFD Sender: No OFD packet to send [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:58]OFD Sender: No OFD packet to send [03:46:03]OFD Sender: No OFD packet to send [03:46:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:26:56]accept exits with 10 [04:26:56]New connection [04:26:56]New thread 3067030884 created [04:26:56]Thread 3067174244 joined [04:26:56]Waiting for new connection... [04:26:56] Sock 10.Parse request [04:26:56]Sock 10.Check first char [04:26:56]Sock 10.First char is OK [04:26:56]request: POST /json_proto HTTP/1.0 [04:26:56]Method: POST [04:26:56]URL: /json_proto [04:26:56]Method is POST - this is cgi request [04:26:56]url: /json_proto [04:26:56]query_string will be loaded in cgi processing [04:26:56]execute_cgi json_proto POST (null) [04:26:56]execute_cgi path=json_proto method=POST [04:26:56]POST find Content-Length [04:26:56]Host: 172.17.62.5:8080 [04:26:56]Content-Length: 1175 [04:26:56]Content-Type: application/json [04:26:56] [04:26:56]POST finish read [04:26:56]Found Content-Length = 1175 [04:26:56]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191542\u000A22.04.2024 04:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30000691\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:26:56]execute_script... [04:26:56]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191542\u000A22.04.2024 04:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30000691\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:26:56]POST & json_proto [04:26:56]process_json_proto [04:26:56]json parsed OK: [04:26:56]protocol is kg_v1.0 [04:26:56]action value=print_text [04:26:56]process_action print_text [04:26:56]cmd_print_text [04:26:56]ExternCall_PrintAddStr [04:26:56]wPrintStart [04:26:56]Write to MH i2c: 01 00 00 38 03 3B [04:26:56]Write i2c OK [04:26:56]MH_I2C_Read... [04:26:56]Read from MH i2c: 01 [04:26:56]MH_I2C_Read... [04:26:56]Read from MH i2c: 01 07 00 [04:26:56]MH_I2C_Read... [04:26:56]Read from MH i2c: 01 07 00 38 03 00 00 00 00 00 FF 0F 50 [04:26:56]RasterBufferAndPrint [04:26:56]line *****ТОВАРНЫЙ ЧЕК***** [04:26:56]line АЗС 106 [04:26:56]line Партнер нефть [04:26:56]line 02508201610067 [04:26:56]line Кассир : Токторбаева Н. [04:26:56]line Счет N : (1)191542 [04:26:56]line 22.04.2024 04:08 [04:26:56]line ПРОДАЖА [04:26:56]line ТРК (МРК, ГНК): 22 [04:26:56]line Вид ГСМ : 2710124130 [04:26:56]line Аи-92-К-5 [04:26:56]line 20.000 x 64.40 [04:26:56]line ИТОГ: 1288.00 [04:26:56]line Тип оплаты: Талоны: ТК ГПНА Online [04:26:56]line 30000691 [04:26:56]line ______________________ [04:26:56]line (подпись) [04:26:56]written 0, free lines is 4095 [04:26:57]Write to MH i2c: 01 00 00 4D 03 50 [04:26:57]Write i2c OK [04:26:57]MH_I2C_Read... [04:26:57]Read from MH i2c: 01 [04:26:57]MH_I2C_Read... [04:26:57]Read from MH i2c: 01 07 00 [04:26:57]MH_I2C_Read... [04:26:57]Read from MH i2c: 01 07 00 4D 03 00 00 00 00 00 F4 0D 58 [04:26:57]RasterBufferAndPrint [04:26:57]line [04:26:57]line [04:26:57]line [04:26:57]line [04:26:57]line [04:26:57]written 0, free lines is 3574 [04:26:57]MH_Cut [04:26:57]Write to MH i2c: D1 01 00 54 03 01 29 [04:26:57]Write i2c OK [04:26:57]MH_I2C_Read... [04:26:57]Read from MH i2c: D1 [04:26:57]MH_I2C_Read... [04:26:57]Read from MH i2c: D1 01 00 [04:26:57]MH_I2C_Read... [04:26:57]Read from MH i2c: D1 01 00 54 03 00 28 [04:26:57]Write to MH i2c: 01 00 00 55 03 58 [04:26:57]Write i2c OK [04:26:57]MH_I2C_Read... [04:26:57]*** Cut start [04:26:57]*** Partial cut [04:26:57]*** CUTSNS_PIN = 1 [04:26:57]*** CUTSNS_PIN = 0 [04:26:57]*** Brake cut motor [04:26:58]Read from MH i2c: 01 [04:26:58]MH_I2C_Read... [04:26:58]*** Stop cut motor [04:26:58]*** Cut end [04:26:58]Read from MH i2c: 01 07 00 [04:26:58]MH_I2C_Read... [04:26:58]Read from MH i2c: 01 07 00 55 03 00 00 00 00 00 FF 0F 6D [04:26:58]process_action print_text done [04:26:58]requested_data is exist [04:26:58]produce_requested_data [04:26:58]requested_item fm.sn is exist - process it [04:26:58]wFMCommunicate request_size=4 [04:26:58]MH_SAM_APDU [04:26:58]CAPDU: 80 11 00 00 [04:26:58]Write to MH i2c: E2 08 00 56 03 80 11 00 00 00 00 00 00 D3 [04:26:58]Write i2c OK [04:26:58]MH_I2C_Read... [04:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:26:58]Read from MH i2c: E2 [04:26:58]MH_I2C_Read... [04:26:58]Read from MH i2c: E2 17 00 [04:26:58]MH_I2C_Read... [04:26:58]Read from MH i2c: E2 17 00 56 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 26 [04:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [04:26:58]wFMCommunicate OK [04:26:58]requested_item fd.num is exist - process it [04:26:58]SAM_PROTO_GetFieldsCounters [04:26:58]wFMCommunicate request_size=4 [04:26:58]MH_SAM_APDU [04:26:58]CAPDU: 80 13 00 00 [04:26:58]Write to MH i2c: E2 08 00 57 03 80 13 00 00 00 00 00 00 D6 [04:26:58]Write i2c OK [04:26:58]MH_I2C_Read... [04:26:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:26:58]Read from MH i2c: E2 [04:26:58]MH_I2C_Read... [04:26:58]Read from MH i2c: E2 62 00 [04:26:58]MH_I2C_Read... [04:26:58]Read from MH i2c: E2 62 00 57 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C1 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [04:26:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C1 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:26:58]wFMCommunicate OK [04:26:58]SAM_PROTO_GetFieldsCounters done [04:26:58]requested_item shift.num is exist - process it [04:26:58]requested_item shift.opened is exist - process it [04:26:58]req_shift_opened [04:26:58]FM_GetShiftState [04:26:58]SAM_PROTO_GetShiftState [04:26:58]wFMCommunicate request_size=4 [04:26:58]MH_SAM_APDU [04:26:58]CAPDU: 80 13 01 00 [04:26:58]Write to MH i2c: E2 08 00 58 03 80 13 01 00 00 00 00 00 D8 [04:26:58]Write i2c OK [04:26:58]MH_I2C_Read... [04:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:26:58]Read from MH i2c: E2 [04:26:58]MH_I2C_Read... [04:26:58]Read from MH i2c: E2 0E 00 [04:26:58]MH_I2C_Read... [04:26:58]Read from MH i2c: E2 0E 00 58 03 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 FF [04:26:58]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [04:26:58]wFMCommunicate OK [04:26:58]SAM_PROTO_GetShiftState done [04:26:58]FM_GetShiftState done [04:26:58]req_shift_opened done [04:26:58]requested_item shift.open_date is exist - process it [04:26:58]req_shift_open_date [04:26:58]req_shift_open_date done [04:26:58]produce_requested_data done [04:26:58]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76993,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [04:26:58]process_action_free print_text [04:26:58]json_value_free [04:26:58]json_value_free done [04:26:58]process_json_proto returns [04:26:58]Send response to host [04:26:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76993,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [04:26:58]free response buf [04:26:58]execute_script done [04:26:58]execute_script returns [04:26:58]free content buf [04:26:58]Sock 10.Close socket [04:26:58]Sock 10.Thread stoped [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]OFD Sender: No OFD packet to send [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [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:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:21:57]recv_with_timeout no data received [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:00]OFD Sender: No OFD packet to send [05:24:05]OFD Sender: No OFD packet to send [05:24:10]OFD Sender: No OFD packet to send [05:24:15]OFD Sender: No OFD packet to send [05:24:20]OFD Sender: No OFD packet to send [05:24:25]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:55]OFD Sender: No OFD packet to send [05:25:00]OFD Sender: No OFD packet to send [05:25:05]OFD Sender: No OFD packet to send [05:25:10]OFD Sender: No OFD packet to send [05:25:15]OFD Sender: No OFD packet to send [05:25:20]OFD Sender: No OFD packet to send [05:25:25]OFD Sender: No OFD packet to send [05:25:30]OFD Sender: No OFD packet to send [05:25:35]OFD Sender: No OFD packet to send [05:25:40]OFD Sender: No OFD packet to send [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]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: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: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:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:56]OFD Sender: No OFD packet to send [05:38:01]OFD Sender: No OFD packet to send [05:38:06]OFD Sender: No OFD packet to send [05:38:11]OFD Sender: No OFD packet to send [05:38:16]OFD Sender: No OFD packet to send [05:38:21]OFD Sender: No OFD packet to send [05:38:26]OFD Sender: No OFD packet to send [05:38:31]OFD Sender: No OFD packet to send [05:38:36]OFD Sender: No OFD packet to send [05:38:41]OFD Sender: No OFD packet to send [05:38:46]OFD Sender: No OFD packet to send [05:38:51]OFD Sender: No OFD packet to send [05:38:56]OFD Sender: No OFD packet to send [05:39:01]OFD Sender: No OFD packet to send [05:39:06]OFD Sender: No OFD packet to send [05:39:11]OFD Sender: No OFD packet to send [05:39:16]OFD Sender: No OFD packet to send [05:39:21]OFD Sender: No OFD packet to send [05:39:26]OFD Sender: No OFD packet to send [05:39:31]OFD Sender: No OFD packet to send [05:39:36]OFD Sender: No OFD packet to send [05:39:41]OFD Sender: No OFD packet to send [05:39:46]OFD Sender: No OFD packet to send [05:39:51]OFD Sender: No OFD packet to send [05:39:56]OFD Sender: No OFD packet to send [05:40:01]OFD Sender: No OFD packet to send [05:40:06]OFD Sender: No OFD packet to send [05:40:11]OFD Sender: No OFD packet to send [05:40:16]OFD Sender: No OFD packet to send [05:40:21]OFD Sender: No OFD packet to send [05:40:26]OFD Sender: No OFD packet to send [05:40:31]OFD Sender: No OFD packet to send [05:40:36]OFD Sender: No OFD packet to send [05:40:41]OFD Sender: No OFD packet to send [05:40:46]OFD Sender: No OFD packet to send [05:40:51]OFD Sender: No OFD packet to send [05:40:56]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [05:41:21]OFD Sender: No OFD packet to send [05:41:26]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01: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: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: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]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:49]accept exits with 7 [06:10:49]New connection [06:10:49]New thread 3067174244 created [06:10:49]Thread 3067030884 joined [06:10:49]Waiting for new connection... [06:10:49] Sock 7.Parse request [06:10:49]Sock 7.Check first char [06:10:49]Sock 7.First char is OK [06:10:49]request: POST /json_proto HTTP/1.0 [06:10:49]Method: POST [06:10:49]URL: /json_proto [06:10:49]Method is POST - this is cgi request [06:10:49]url: /json_proto [06:10:49]query_string will be loaded in cgi processing [06:10:49]execute_cgi json_proto POST (null) [06:10:49]execute_cgi path=json_proto method=POST [06:10:49]POST find Content-Length [06:10:49]Host: 172.17.62.5:8080 [06:10:49]Content-Length: 670 [06:10:49]Content-Type: application/json [06:10:49] [06:10:49]POST finish read [06:10:49]Found Content-Length = 670 [06:10:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 7.650, "sum" : 500.31, "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" ] } } [06:10:49]execute_script... [06:10: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)191543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 7.650, "sum" : 500.31, "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" ] } } [06:10:49]POST & json_proto [06:10:49]process_json_proto [06:10:49]json parsed OK: [06:10:49]protocol is kg_v1.0 [06:10:49]action value=close_receipt [06:10:49]process_action close_receipt [06:10:49]cmd_close_receipt [06:10:49]MH_GetDate [06:10:49]Write to MH i2c: F0 00 00 59 03 4B [06:10:49]Write i2c OK [06:10:49]MH_I2C_Read... [06:10:49]Read from MH i2c: F0 [06:10:49]MH_I2C_Read... [06:10:49]Read from MH i2c: F0 09 00 [06:10:49]MH_I2C_Read... [06:10:49]Read from MH i2c: F0 09 00 59 03 00 6B FF 25 66 F4 E9 65 64 EF [06:10:49]GetLastDocTimeStamp 1713753987 [06:10:49]current date 1713766251 [06:10:49]FM_GetShiftState [06:10:49]SAM_PROTO_GetShiftState [06:10:49]wFMCommunicate request_size=4 [06:10:49]MH_SAM_APDU [06:10:49]CAPDU: 80 13 01 00 [06:10:49]Write to MH i2c: E2 08 00 5A 03 80 13 01 00 00 00 00 00 DA [06:10:49]Write i2c OK [06:10:49]MH_I2C_Read... [06:10:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:49]Read from MH i2c: E2 [06:10:49]MH_I2C_Read... [06:10:49]Read from MH i2c: E2 0E 00 [06:10:49]MH_I2C_Read... [06:10:49]Read from MH i2c: E2 0E 00 5A 03 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 01 [06:10:49]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [06:10:49]wFMCommunicate OK [06:10:49]SAM_PROTO_GetShiftState done [06:10:49]FM_GetShiftState done [06:10:49]opened in 1713745124 [06:10:49]opened+sec_in_day 1713831524 [06:10:49]quantity*price = 50031 [06:10:49]sum+1 = 50032 [06:10:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 13 22.04.2024 06:10 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76994 ФПД: 158543752308698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T061051&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76994&fm=158543752308698&tin=02508201610067®Number=0000000000091573&sum=50000 [06:10:50]StoreToDocumentArchive [06:10:50]shift 373 fd 76994 [06:10:50]save to /storage/0373/doc_00076994 [06:10:50]save last doc name /storage/0373/doc_00076994 to /storage/kkm_last_doc_name [06:10:50]save OK [06:10:50]Clear old archive folders... [06:10:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:10:50]tlvbuf is 01750270 [06:10:50]SAM_PROTO_ClearQueue [06:10:50]wFMCommunicate request_size=4 [06:10:50]MH_SAM_APDU [06:10:50]CAPDU: 80 09 00 00 [06:10:50]Write to MH i2c: E2 08 00 67 03 80 09 00 00 00 00 00 00 DC [06:10:50]Write i2c OK [06:10:50]MH_I2C_Read... [06:10:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:10:50]Read from MH i2c: E2 [06:10:50]MH_I2C_Read... [06:10:50]Read from MH i2c: E2 03 00 [06:10:50]MH_I2C_Read... [06:10:50]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [06:10:50]RAPDU: 90 00 [06:10:50]wFMCommunicate OK [06:10:50]SAM_PROTO_ClearQueue done [06:10:50]KKMCreateOFDPacket [06:10:50]OFDProtocolAddRootSTLVToBuf [06:10:50]FM_MakeSignedData [06:10:50]FM_MakeSignedData [06:10:50]SAM_PROTO_SignData [06:10:50]wFMCommunicate request_size=4 [06:10:50]MH_SAM_APDU [06:10:50]CAPDU: 80 0D 01 02 [06:10:50]Write to MH i2c: E2 08 00 68 03 80 0D 01 02 00 00 00 00 E4 [06:10:50]Write i2c OK [06:10:50]MH_I2C_Read... [06:10:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:10:50]Read from MH i2c: E2 [06:10:50]MH_I2C_Read... [06:10:50]Read from MH i2c: E2 03 00 [06:10:50]MH_I2C_Read... [06:10:50]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [06:10:50]RAPDU: 90 00 [06:10:50]wFMCommunicate OK [06:10:50]wFMCommunicate request_size=255 [06:10:50]MH_SAM_APDU [06:10:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 6B FF 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C2 2C 01 00 35 04 06 00 [06:10:50]Write to MH i2c: E2 02 01 69 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 6B FF 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C2 2C 01 00 35 04 06 00 00 00 7F [06:10:50]Write i2c OK [06:10:50]MH_I2C_Read... [06:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:51]Read from MH i2c: E2 [06:10:51]MH_I2C_Read... [06:10:51]Read from MH i2c: E2 03 00 [06:10:51]MH_I2C_Read... [06:10:51]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [06:10:51]RAPDU: 90 00 [06:10:51]wFMCommunicate OK [06:10:51]wFMCommunicate request_size=11 [06:10:51]MH_SAM_APDU [06:10:51]CAPDU: 80 0D 02 02 06 90 31 D8 09 A7 DA [06:10:51]Write to MH i2c: E2 0E 00 6A 03 80 0D 02 02 06 00 90 31 D8 09 A7 DA 00 00 16 [06:10:51]Write i2c OK [06:10:51]MH_I2C_Read... [06:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:51]Read from MH i2c: E2 [06:10:51]MH_I2C_Read... [06:10:51]Read from MH i2c: E2 03 00 [06:10:51]MH_I2C_Read... [06:10:51]Read from MH i2c: E2 03 00 6A 03 00 90 00 E1 [06:10:51]RAPDU: 90 00 [06:10:51]wFMCommunicate OK [06:10:51]wFMCommunicate request_size=4 [06:10:51]MH_SAM_APDU [06:10:51]CAPDU: 80 0D 03 02 [06:10:51]Write to MH i2c: E2 08 00 6B 03 80 0D 03 02 00 00 00 00 E9 [06:10:51]Write i2c OK [06:10:51]MH_I2C_Read... [06:10:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:10:51]Read from MH i2c: E2 [06:10:51]MH_I2C_Read... [06:10:51]Read from MH i2c: E2 0B 00 [06:10:51]MH_I2C_Read... [06:10:51]Read from MH i2c: E2 0B 00 6B 03 00 7D D5 12 96 9A A1 D0 31 90 00 20 [06:10:51]RAPDU: 7D D5 12 96 9A A1 D0 31 90 00 [06:10:51]wFMCommunicate OK [06:10:51]SAM_PROTO_SignData done [06:10:51]FM_MakeSignedData done [06:10:51]CreateOFDProtocolMessage [06:10:51]wFMCommunicate request_size=4 [06:10:51]MH_SAM_APDU [06:10:51]CAPDU: 80 11 00 00 [06:10:51]Write to MH i2c: E2 08 00 6C 03 80 11 00 00 00 00 00 00 E9 [06:10:51]Write i2c OK [06:10:51]MH_I2C_Read... [06:10:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:51]Read from MH i2c: E2 [06:10:51]MH_I2C_Read... [06:10:51]Read from MH i2c: E2 17 00 [06:10:51]MH_I2C_Read... [06:10:51]Read from MH i2c: E2 17 00 6C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3C [06:10:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:10:51]wFMCommunicate OK [06:10:51]CreateOFDProtocolMessage done [06:10:51]OFDSenderStorePacket 76994 [06:10:51]StoreOFDPacket docnum=76994 [06:10:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 10 22 08 01 79 15 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 6B FF 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C2 2C 01 00 35 04 06 00 90 31 D8 09 A7 DA 7D D5 12 96 9A A1 D0 31 [06:10:51]CheckFolder [06:10:51]dirname=/storage/ofd_packets [06:10:51]CheckFolder done [06:10:51]ProducePacketName [06:10:51]name=ofd_packets/00076994 [06:10:51]NVStorageSaveData ofd_packets/00076994 [06:10:51]File name is /storage/ofd_packets/00076994 [06:10:51]Write 302 bytes [06:10:51]NVStorageSaveData done [06:10:51]OFDSenderStorePacket done [06:10:51]KKMCreateOFDPacket done [06:10:51]NVStorageSaveData kkm_last_timestamp [06:10:51]File name is /storage/kkm_last_timestamp [06:10:51]Write 4 bytes [06:10:51]NVStorageSaveData done [06:10:51]ExternCall_PrintAddStr [06:10:51]wPrintStart [06:10:51]Write to MH i2c: 01 00 00 6D 03 70 [06:10:51]Write i2c OK [06:10:51]MH_I2C_Read... [06:10:51]Read from MH i2c: 01 [06:10:51]MH_I2C_Read... [06:10:51]Read from MH i2c: 01 07 00 [06:10:51]MH_I2C_Read... [06:10:51]Read from MH i2c: 01 07 00 6D 03 00 00 00 00 00 FF 0F 85 [06:10:51]RasterBufferAndPrint [06:10:51]line Счет N : (1)191543 [06:10:51]line ИНН: 02508201610067 [06:10:51]line Контрольно-Кассовый Чек [06:10:51]line ПРОДАЖА [06:10:51]line ТРК (МРК, ГНК) : 41 [06:10:51]line Товар: 2710124130 [06:10:51]line SUPER 92-К-5 [06:10:51]line 7.650 * 65.40 [06:10:51]line = 500.31 [06:10:51]line НДС 12% НСП 1% [06:10:51]line > о реализуемом товаре [06:10:51]line ОКРУГЛЕНИЕ: -0.31 [06:10:51]line ИТОГО: 500.00 [06:10:51]line Внесено: 500.00 [06:10:51]line СДАЧА: 0.00 [06:10:51]line НСП 1% : 4.43 [06:10:51]line НДС 12% : 53.13 [06:10:51]line Наличными: 500.00 [06:10:51]line Безнал.: 0.00 [06:10:51]line Место: АЗС № 106 "Партнер Нефть" [06:10:51]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [06:10:51]line СНО: Общий режим [06:10:51]line Чек 13 22.04.2024 06:10 [06:10:51]line Смена: 373 ФФД: 1.0 [06:10:51]line ЗНМ: 0300000141 [06:10:51]line РНМ: 0000000000091573 [06:10:51]line Версия ККМ: 001 [06:10:51]line ФМ: 0000000000874652 [06:10:51]line ФД: 76994 [06:10:51]line ФПД: 158543752308698 [06:10:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T061051&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76994&fm=158543752308698&tin=02508201610067®Number=0000000000091573&sum=50000 [06:10:51]OFD Sender: Processing packet 76994 [packets to send 129, broken 128] [06:10:51]ProducePacketName [06:10:51]name=ofd_packets/00076994 [06:10:51]OFD Sender: To server: pG, [06:10:51]CommunicateWithHost lk.salyk.kg:30040 [06:10:51]ConnectInit lk.salyk.kg [06:10:51]written 0, free lines is 4095 [06:10:51]Connected sock=9 [06:10:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 10 22 08 01 79 15 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 6B FF 25 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C2 2C 01 00 35 04 06 00 90 31 D8 09 A7 DA 7D D5 12 96 9A A1 D0 31 [06:10:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 44 74 47 00 C6 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C2 2C 01 00 F4 03 04 00 EE A6 25 66 B6 04 01 00 00 75 DC 0A 96 10 57 57 F4 [06:10:52]CommunicateWithHost err = 0 [06:10:52]CheckOFDResponse [06:10:52]1017 (14) - 77093643461234 [06:10:52]1041 (16) - 0000000000874652 [06:10:52]1040 (4) - 76994 [06:10:52]1012 (4) - 21.04.2024 23:53 [06:10:52]1206 (1) - 0 [06:10:52]OFD Sender: Remove packet 76994 [06:10:52]ProducePacketName [06:10:52]name=ofd_packets/00076994 [06:10:52]NVStorageDeleteData [06:10:52]Write to MH i2c: 01 00 00 97 03 9A [06:10:52]Write i2c OK [06:10:52]MH_I2C_Read... [06:10:52]Read from MH i2c: 01 [06:10:52]MH_I2C_Read... [06:10:52]Read from MH i2c: 01 07 00 [06:10:52]MH_I2C_Read... [06:10:52]Read from MH i2c: 01 07 00 97 03 00 00 00 00 00 EB 0C 98 [06:10:52]RasterBufferAndPrint [06:10:52]line [06:10:52]line [06:10:52]line [06:10:52]line [06:10:52]line [06:10:52]written 0, free lines is 3313 [06:10:52]MH_Cut [06:10:52]Write to MH i2c: D1 01 00 9E 03 01 73 [06:10:52]Write i2c OK [06:10:52]MH_I2C_Read... [06:10:52]Read from MH i2c: D1 [06:10:52]MH_I2C_Read... [06:10:52]Read from MH i2c: D1 01 00 [06:10:52]MH_I2C_Read... [06:10:52]Read from MH i2c: D1 01 00 9E 03 00 72 [06:10:52]Write to MH i2c: 01 00 00 9F 03 A2 [06:10:52]Write i2c OK [06:10:52]MH_I2C_Read... [06:10:52]OFD Sender: No OFD packet to send [06:10:52]*** Cut start [06:10:52]*** Partial cut [06:10:52]*** CUTSNS_PIN = 1 [06:10:52]*** CUTSNS_PIN = 0 [06:10:53]*** Brake cut motor [06:10:53]Read from MH i2c: 01 [06:10:53]MH_I2C_Read... [06:10:53]*** Stop cut motor [06:10:53]*** Cut end [06:10:53]Read from MH i2c: 01 07 00 [06:10:53]MH_I2C_Read... [06:10:53]Read from MH i2c: 01 07 00 9F 03 00 00 00 00 00 FF 0F B7 [06:10:53]process_action close_receipt done [06:10:53]requested_data is exist [06:10:53]produce_requested_data [06:10:53]requested_item fm.sn is exist - process it [06:10:53]wFMCommunicate request_size=4 [06:10:53]MH_SAM_APDU [06:10:53]CAPDU: 80 11 00 00 [06:10:53]Write to MH i2c: E2 08 00 A0 03 80 11 00 00 00 00 00 00 1D [06:10:53]Write i2c OK [06:10:53]MH_I2C_Read... [06:10:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:53]Read from MH i2c: E2 [06:10:53]MH_I2C_Read... [06:10:53]Read from MH i2c: E2 17 00 [06:10:53]MH_I2C_Read... [06:10:53]Read from MH i2c: E2 17 00 A0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 70 [06:10:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:10:53]wFMCommunicate OK [06:10:53]requested_item fd.num is exist - process it [06:10:53]SAM_PROTO_GetFieldsCounters [06:10:53]wFMCommunicate request_size=4 [06:10:53]MH_SAM_APDU [06:10:53]CAPDU: 80 13 00 00 [06:10:53]Write to MH i2c: E2 08 00 A1 03 80 13 00 00 00 00 00 00 20 [06:10:53]Write i2c OK [06:10:53]MH_I2C_Read... [06:10:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:10:53]Read from MH i2c: E2 [06:10:53]MH_I2C_Read... [06:10:53]Read from MH i2c: E2 62 00 [06:10:53]MH_I2C_Read... [06:10:53]Read from MH i2c: E2 62 00 A1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C2 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [06:10:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C2 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:10:53]wFMCommunicate OK [06:10:53]SAM_PROTO_GetFieldsCounters done [06:10:53]requested_item shift.num is exist - process it [06:10:53]requested_item shift.opened is exist - process it [06:10:53]req_shift_opened [06:10:53]FM_GetShiftState [06:10:53]SAM_PROTO_GetShiftState [06:10:53]wFMCommunicate request_size=4 [06:10:53]MH_SAM_APDU [06:10:53]CAPDU: 80 13 01 00 [06:10:53]Write to MH i2c: E2 08 00 A2 03 80 13 01 00 00 00 00 00 22 [06:10:53]Write i2c OK [06:10:53]MH_I2C_Read... [06:10:53]Read from MH i2c: E2 [06:10:53]MH_I2C_Read... [06:10:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:53]Read from MH i2c: E2 0E 00 [06:10:53]MH_I2C_Read... [06:10:53]Read from MH i2c: E2 0E 00 A2 03 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 49 [06:10:53]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [06:10:53]wFMCommunicate OK [06:10:53]SAM_PROTO_GetShiftState done [06:10:53]FM_GetShiftState done [06:10:53]req_shift_opened done [06:10:53]requested_item shift.open_date is exist - process it [06:10:53]req_shift_open_date [06:10:53]req_shift_open_date done [06:10:53]produce_requested_data done [06:10:53]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76994,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [06:10:53]process_action_free close_receipt [06:10:53]json_value_free [06:10:53]json_value_free done [06:10:53]process_json_proto returns [06:10:53]Send response to host [06:10:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76994,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [06:10:53]free response buf [06:10:53]execute_script done [06:10:53]execute_script returns [06:10:53]free content buf [06:10:53]Sock 7.Close socket [06:10:53]Sock 7.Thread stoped [06:10:57]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:17]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:17]OFD Sender: No OFD packet to send [06:17:22]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:43]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:42]accept exits with 10 [06:35:42]New connection [06:35:42]New thread 3067030884 created [06:35:42]Thread 3067174244 joined [06:35:42]Waiting for new connection... [06:35:42] Sock 10.Parse request [06:35:42]Sock 10.Check first char [06:35:42]Sock 10.First char is OK [06:35:42]request: POST /json_proto HTTP/1.0 [06:35:42]Method: POST [06:35:42]URL: /json_proto [06:35:42]Method is POST - this is cgi request [06:35:42]url: /json_proto [06:35:42]query_string will be loaded in cgi processing [06:35:42]execute_cgi json_proto POST (null) [06:35:42]execute_cgi path=json_proto method=POST [06:35:42]POST find Content-Length [06:35:42]Host: 172.17.62.5:8080 [06:35:42]Content-Length: 215 [06:35:42]Content-Type: application/json [06:35:42] [06:35:42]POST finish read [06:35:42]Found Content-Length = 215 [06:35:42]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" ] } } [06:35:42]execute_script... [06:35:42]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" ] } } [06:35:42]POST & json_proto [06:35:42]process_json_proto [06:35:42]json parsed OK: [06:35:42]protocol is kg_v1.0 [06:35:42]action value=get_value [06:35:42]process_action get_value [06:35:42]cmd_get_value [06:35:42]process_action get_value done [06:35:42]requested_data is exist [06:35:42]produce_requested_data [06:35:42]requested_item kkm.sn is exist - process it [06:35:42]requested_item kkm.ver is exist - process it [06:35:42]requested_item fm.sn is exist - process it [06:35:42]wFMCommunicate request_size=4 [06:35:42]MH_SAM_APDU [06:35:42]CAPDU: 80 11 00 00 [06:35:42]Write to MH i2c: E2 08 00 A3 03 80 11 00 00 00 00 00 00 20 [06:35:42]Write i2c OK [06:35:42]MH_I2C_Read... [06:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:42]Read from MH i2c: E2 [06:35:42]MH_I2C_Read... [06:35:42]Read from MH i2c: E2 17 00 [06:35:42]MH_I2C_Read... [06:35:42]Read from MH i2c: E2 17 00 A3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 73 [06:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:35:42]wFMCommunicate OK [06:35:42]requested_item fd.num is exist - process it [06:35:42]SAM_PROTO_GetFieldsCounters [06:35:42]wFMCommunicate request_size=4 [06:35:42]MH_SAM_APDU [06:35:42]CAPDU: 80 13 00 00 [06:35:42]Write to MH i2c: E2 08 00 A4 03 80 13 00 00 00 00 00 00 23 [06:35:42]Write i2c OK [06:35:42]MH_I2C_Read... [06:35:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:35:43]Read from MH i2c: E2 [06:35:43]MH_I2C_Read... [06:35:43]Read from MH i2c: E2 62 00 [06:35:43]MH_I2C_Read... [06:35:43]Read from MH i2c: E2 62 00 A4 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C2 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [06:35:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C2 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:35:43]wFMCommunicate OK [06:35:43]SAM_PROTO_GetFieldsCounters done [06:35:43]requested_item shift.num is exist - process it [06:35:43]requested_item shift.opened is exist - process it [06:35:43]req_shift_opened [06:35:43]FM_GetShiftState [06:35:43]SAM_PROTO_GetShiftState [06:35:43]wFMCommunicate request_size=4 [06:35:43]MH_SAM_APDU [06:35:43]CAPDU: 80 13 01 00 [06:35:43]Write to MH i2c: E2 08 00 A5 03 80 13 01 00 00 00 00 00 25 [06:35:43]Write i2c OK [06:35:43]MH_I2C_Read... [06:35:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:43]Read from MH i2c: E2 [06:35:43]MH_I2C_Read... [06:35:43]Read from MH i2c: E2 0E 00 [06:35:43]MH_I2C_Read... [06:35:43]Read from MH i2c: E2 0E 00 A5 03 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 4C [06:35:43]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [06:35:43]wFMCommunicate OK [06:35:43]SAM_PROTO_GetShiftState done [06:35:43]FM_GetShiftState done [06:35:43]req_shift_opened done [06:35:43]requested_item shift.open_date is exist - process it [06:35:43]req_shift_open_date [06:35:43]req_shift_open_date done [06:35:43]produce_requested_data done [06:35:43]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76994,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [06:35:43]process_action_free get_value [06:35:43]json_value_free [06:35:43]json_value_free done [06:35:43]process_json_proto returns [06:35:43]Send response to host [06:35:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76994,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [06:35:43]free response buf [06:35:43]execute_script done [06:35:43]execute_script returns [06:35:43]free content buf [06:35:43]Sock 10.Close socket [06:35:43]Sock 10.Thread stoped [06:35:43]accept exits with 9 [06:35:43]New connection [06:35:43]New thread 3067174244 created [06:35:43]Thread 3067030884 joined [06:35:43]Waiting for new connection... [06:35:43] Sock 9.Parse request [06:35:43]Sock 9.Check first char [06:35:43]Sock 9.First char is OK [06:35:43]request: POST /json_proto HTTP/1.0 [06:35:43]Method: POST [06:35:43]URL: /json_proto [06:35:43]Method is POST - this is cgi request [06:35:43]url: /json_proto [06:35:43]query_string will be loaded in cgi processing [06:35:43]execute_cgi json_proto POST (null) [06:35:43]execute_cgi path=json_proto method=POST [06:35:43]POST find Content-Length [06:35:43]Host: 172.17.62.5:8080 [06:35:43]Content-Length: 331 [06:35:43]Content-Type: application/json [06:35:43] [06:35:43]POST finish read [06:35:43]Found Content-Length = 331 [06:35:43]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" ] } } [06:35:43]execute_script... [06:35:43]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" ] } } [06:35:43]POST & json_proto [06:35:43]process_json_proto [06:35:43]json parsed OK: [06:35:43]protocol is kg_v1.0 [06:35:43]action value=get_value [06:35:43]process_action get_value [06:35:43]cmd_get_value [06:35:43]process_action get_value done [06:35:43]requested_data is exist [06:35:43]produce_requested_data [06:35:43]requested_item fm.sale.total is exist - process it [06:35:43]SAM_PROTO_GetFMData [06:35:43]wFMCommunicate request_size=4 [06:35:43]MH_SAM_APDU [06:35:43]CAPDU: 80 13 03 00 [06:35:43]Write to MH i2c: E2 08 00 A6 03 80 13 03 00 00 00 00 00 28 [06:35:43]Write i2c OK [06:35:43]MH_I2C_Read... [06:35:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [06:35:43]Read from MH i2c: E2 [06:35:43]MH_I2C_Read... [06:35:43]Read from MH i2c: E2 FD 00 [06:35:43]MH_I2C_Read... [06:35:43]Read from MH i2c: E2 FD 00 A6 03 00 C8 04 85 04 C4 04 6E 04 04 00 D8 29 01 00 69 04 A3 00 6F 04 04 00 E5 27 01 00 B1 04 05 00 F9 C8 E4 BB 02 70 04 05 00 F8 83 C3 77 02 72 04 04 00 01 45 21 44 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 C3 E0 55 4A 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 DE C1 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 87 [06:35:43]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 D8 29 01 00 69 04 A3 00 6F 04 04 00 E5 27 01 00 B1 04 05 00 F9 C8 E4 BB 02 70 04 05 00 F8 83 C3 77 02 72 04 04 00 01 45 21 44 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 C3 E0 55 4A 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 DE C1 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 [06:35:43]wFMCommunicate OK [06:35:43]wFMCommunicate request_size=4 [06:35:43]MH_SAM_APDU [06:35:43]CAPDU: 80 17 00 00 [06:35:43]Write to MH i2c: E2 08 00 A7 03 80 17 00 00 00 00 00 00 2A [06:35:43]Write i2c OK [06:35:43]MH_I2C_Read... [06:35:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:35:44]Read from MH i2c: E2 [06:35:44]MH_I2C_Read... [06:35:44]Read from MH i2c: E2 FD 00 [06:35:44]MH_I2C_Read... [06:35:44]Read from MH i2c: E2 FD 00 A7 03 00 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 ED 81 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 1E [06:35:44]RAPDU: 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 ED 81 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [06:35:44]wFMCommunicate OK [06:35:44]wFMCommunicate request_size=4 [06:35:44]MH_SAM_APDU [06:35:44]CAPDU: 80 17 00 00 [06:35:44]Write to MH i2c: E2 08 00 A8 03 80 17 00 00 00 00 00 00 2B [06:35:44]Write i2c OK [06:35:44]MH_I2C_Read... [06:35:44]OFD Sender: No OFD packet to send [06:35:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:35:44]Read from MH i2c: E2 [06:35:44]MH_I2C_Read... [06:35:44]Read from MH i2c: E2 FD 00 [06:35:44]MH_I2C_Read... [06:35:44]Read from MH i2c: E2 FD 00 A8 03 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 03 [06:35:44]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [06:35:44]wFMCommunicate OK [06:35:44]wFMCommunicate request_size=4 [06:35:44]MH_SAM_APDU [06:35:44]CAPDU: 80 17 00 00 [06:35:44]Write to MH i2c: E2 08 00 A9 03 80 17 00 00 00 00 00 00 2C [06:35:44]Write i2c OK [06:35:44]MH_I2C_Read... [06:35:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:35:44]Read from MH i2c: E2 [06:35:44]MH_I2C_Read... [06:35:44]Read from MH i2c: E2 FD 00 [06:35:44]MH_I2C_Read... [06:35:44]Read from MH i2c: E2 FD 00 A9 03 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 A4 [06:35:44]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [06:35:44]wFMCommunicate OK [06:35:44]wFMCommunicate request_size=4 [06:35:44]MH_SAM_APDU [06:35:44]CAPDU: 80 17 00 00 [06:35:44]Write to MH i2c: E2 08 00 AA 03 80 17 00 00 00 00 00 00 2D [06:35:44]Write i2c OK [06:35:44]MH_I2C_Read... [06:35:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [06:35:44]Read from MH i2c: E2 [06:35:44]MH_I2C_Read... [06:35:44]Read from MH i2c: E2 E5 00 [06:35:44]MH_I2C_Read... [06:35:44]Read from MH i2c: E2 E5 00 AA 03 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [06:35:44]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:35:44]wFMCommunicate OK [06:35:44]SAM_PROTO_GetFMData done [06:35:44]requested_item fm.sale_refund.total is exist - process it [06:35:44]requested_item fm.buy.total is exist - process it [06:35:44]requested_item shift.sale.total is exist - process it [06:35:44]SAM_PROTO_GetShiftData [06:35:44]wFMCommunicate request_size=4 [06:35:44]MH_SAM_APDU [06:35:44]CAPDU: 80 13 02 00 [06:35:44]Write to MH i2c: E2 08 00 AB 03 80 13 02 00 00 00 00 00 2C [06:35:44]Write i2c OK [06:35:44]MH_I2C_Read... [06:35:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [06:35:45]Read from MH i2c: E2 [06:35:45]MH_I2C_Read... [06:35:45]Read from MH i2c: E2 FD 00 [06:35:45]MH_I2C_Read... [06:35:45]Read from MH i2c: E2 FD 00 AB 03 00 AE 04 AA 04 AA 04 6E 04 04 00 0D 00 00 00 69 04 9B 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 F2 73 14 70 04 03 00 98 BA 0C 72 04 03 00 5A B9 07 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 1A 2C 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 57 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 C5 [06:35:45]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 0D 00 00 00 69 04 9B 00 6F 04 04 00 0D 00 00 00 B1 04 03 00 F2 73 14 70 04 03 00 98 BA 0C 72 04 03 00 5A B9 07 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 1A 2C 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 57 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [06:35:45]wFMCommunicate OK [06:35:45]wFMCommunicate request_size=4 [06:35:45]MH_SAM_APDU [06:35:45]CAPDU: 80 17 00 00 [06:35:45]Write to MH i2c: E2 08 00 AC 03 80 17 00 00 00 00 00 00 2F [06:35:45]Write i2c OK [06:35:45]MH_I2C_Read... [06:35:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:35:45]Read from MH i2c: E2 [06:35:45]MH_I2C_Read... [06:35:45]Read from MH i2c: E2 FD 00 [06:35:45]MH_I2C_Read... [06:35:45]Read from MH i2c: E2 FD 00 AC 03 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 51 [06:35:45]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [06:35:45]wFMCommunicate OK [06:35:45]wFMCommunicate request_size=4 [06:35:45]MH_SAM_APDU [06:35:45]CAPDU: 80 17 00 00 [06:35:45]Write to MH i2c: E2 08 00 AD 03 80 17 00 00 00 00 00 00 30 [06:35:45]Write i2c OK [06:35:45]MH_I2C_Read... [06:35:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:35:45]Read from MH i2c: E2 [06:35:45]MH_I2C_Read... [06:35:45]Read from MH i2c: E2 FD 00 [06:35:45]MH_I2C_Read... [06:35:45]Read from MH i2c: E2 FD 00 AD 03 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 E7 [06:35:45]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [06:35:46]wFMCommunicate OK [06:35:46]wFMCommunicate request_size=4 [06:35:46]MH_SAM_APDU [06:35:46]CAPDU: 80 17 00 00 [06:35:46]Write to MH i2c: E2 08 00 AE 03 80 17 00 00 00 00 00 00 31 [06:35:46]Write i2c OK [06:35:46]MH_I2C_Read... [06:35:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:35:46]Read from MH i2c: E2 [06:35:46]MH_I2C_Read... [06:35:46]Read from MH i2c: E2 FD 00 [06:35:46]MH_I2C_Read... [06:35:46]Read from MH i2c: E2 FD 00 AE 03 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 A3 [06:35:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [06:35:46]wFMCommunicate OK [06:35:46]wFMCommunicate request_size=4 [06:35:46]MH_SAM_APDU [06:35:46]CAPDU: 80 17 00 00 [06:35:46]Write to MH i2c: E2 08 00 AF 03 80 17 00 00 00 00 00 00 32 [06:35:46]Write i2c OK [06:35:46]MH_I2C_Read... [06:35:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [06:35:46]Read from MH i2c: E2 [06:35:46]MH_I2C_Read... [06:35:46]Read from MH i2c: E2 CB 00 [06:35:46]MH_I2C_Read... [06:35:46]Read from MH i2c: E2 CB 00 AF 03 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1B [06:35:46]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:35:46]wFMCommunicate OK [06:35:46]SAM_PROTO_GetShiftData done [06:35:46]requested_item shift.sale.total_cash is exist - process it [06:35:46]requested_item shift.sale_refund.total is exist - process it [06:35:46]requested_item shift.sale_refund.total_cash is exist - process it [06:35:46]requested_item shift.buy.total is exist - process it [06:35:46]requested_item shift.buy.total_cash is exist - process it [06:35:46]produce_requested_data done [06:35:46]produce_requested_data return {"fm.sale.total":117422676.41,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":13404.02,"shift.sale.total_cash":8342.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} [06:35:46]process_action_free get_value [06:35:46]json_value_free [06:35:46]json_value_free done [06:35:46]process_json_proto returns [06:35:46]Send response to host [06:35:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117422676.41,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":13404.02,"shift.sale.total_cash":8342.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}}} [06:35:46]free response buf [06:35:46]execute_script done [06:35:46]execute_script returns [06:35:46]free content buf [06:35:46]Sock 9.Close socket [06:35:46]Sock 9.Thread stoped [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:03]accept exits with 10 [06:37:03]New connection [06:37:03]New thread 3067030884 created [06:37:03]Thread 3067174244 joined [06:37:03]Waiting for new connection... [06:37:03] Sock 10.Parse request [06:37:03]Sock 10.Check first char [06:37:03]Sock 10.First char is OK [06:37:03]request: POST /json_proto HTTP/1.0 [06:37:03]Method: POST [06:37:03]URL: /json_proto [06:37:03]Method is POST - this is cgi request [06:37:03]url: /json_proto [06:37:03]query_string will be loaded in cgi processing [06:37:03]execute_cgi json_proto POST (null) [06:37:03]execute_cgi path=json_proto method=POST [06:37:03]POST find Content-Length [06:37:03]Host: 172.17.62.5:8080 [06:37:03]Content-Length: 978 [06:37:03]Content-Type: application/json [06:37:03] [06:37:03]POST finish read [06:37:03]Found Content-Length = 978 [06:37:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 97.360, "sum" : 7000.18, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 97.36 \u0441\u043E\u043C", "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:37:03]execute_script... [06:37: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)191544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 97.360, "sum" : 7000.18, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 97.36 \u0441\u043E\u043C", "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:37:03]POST & json_proto [06:37:03]process_json_proto [06:37:03]json parsed OK: [06:37:03]protocol is kg_v1.0 [06:37:03]action value=close_receipt [06:37:03]process_action close_receipt [06:37:03]cmd_close_receipt [06:37:03]MH_GetDate [06:37:03]Write to MH i2c: F0 00 00 B0 03 A2 [06:37:03]Write i2c OK [06:37:03]MH_I2C_Read... [06:37:03]Read from MH i2c: F0 [06:37:03]MH_I2C_Read... [06:37:03]Read from MH i2c: F0 09 00 [06:37:03]MH_I2C_Read... [06:37:03]Read from MH i2c: F0 09 00 B0 03 00 91 05 26 66 F4 E9 65 64 73 [06:37:03]GetLastDocTimeStamp 1713766251 [06:37:03]current date 1713767825 [06:37:03]FM_GetShiftState [06:37:03]SAM_PROTO_GetShiftState [06:37:03]wFMCommunicate request_size=4 [06:37:03]MH_SAM_APDU [06:37:03]CAPDU: 80 13 01 00 [06:37:03]Write to MH i2c: E2 08 00 B1 03 80 13 01 00 00 00 00 00 31 [06:37:03]Write i2c OK [06:37:03]MH_I2C_Read... [06:37:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:03]Read from MH i2c: E2 [06:37:03]MH_I2C_Read... [06:37:03]Read from MH i2c: E2 0E 00 [06:37:03]MH_I2C_Read... [06:37:03]Read from MH i2c: E2 0E 00 B1 03 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 58 [06:37:03]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [06:37:03]wFMCommunicate OK [06:37:03]SAM_PROTO_GetShiftState done [06:37:03]FM_GetShiftState done [06:37:03]opened in 1713745124 [06:37:03]opened+sec_in_day 1713831524 [06:37:03]quantity*price = 700018 [06:37:03]sum+1 = 700019 [06:37:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 7000.00 Внесено: 7000.00 СДАЧА: 0.00 НСП 1% : 61.95 НДС 12% : 743.38 Наличными: 7000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 14 22.04.2024 06:37 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 97.36 сом ФМ: 0000000000874652 ФД: 76995 ФПД: 222595180780335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T063705&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76995&fm=222595180780335&tin=02508201610067®Number=0000000000091573&sum=700000 [06:37:04]StoreToDocumentArchive [06:37:04]shift 373 fd 76995 [06:37:04]save to /storage/0373/doc_00076995 [06:37:04]save last doc name /storage/0373/doc_00076995 to /storage/kkm_last_doc_name [06:37:04]save OK [06:37:04]Clear old archive folders... [06:37:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:37:04]tlvbuf is 01751E80 [06:37:04]SAM_PROTO_ClearQueue [06:37:04]wFMCommunicate request_size=4 [06:37:04]MH_SAM_APDU [06:37:04]CAPDU: 80 09 00 00 [06:37:04]Write to MH i2c: E2 08 00 BE 03 80 09 00 00 00 00 00 00 33 [06:37:04]Write i2c OK [06:37:04]MH_I2C_Read... [06:37:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:37:04]Read from MH i2c: E2 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 03 00 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 03 00 BE 03 00 90 00 35 [06:37:04]RAPDU: 90 00 [06:37:04]wFMCommunicate OK [06:37:04]SAM_PROTO_ClearQueue done [06:37:04]KKMCreateOFDPacket [06:37:04]OFDProtocolAddRootSTLVToBuf [06:37:04]FM_MakeSignedData [06:37:04]FM_MakeSignedData [06:37:04]SAM_PROTO_SignData [06:37:04]wFMCommunicate request_size=4 [06:37:04]MH_SAM_APDU [06:37:04]CAPDU: 80 0D 01 02 [06:37:04]Write to MH i2c: E2 08 00 BF 03 80 0D 01 02 00 00 00 00 3B [06:37:04]Write i2c OK [06:37:04]MH_I2C_Read... [06:37:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:37:04]Read from MH i2c: E2 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 03 00 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 03 00 BF 03 00 90 00 36 [06:37:04]RAPDU: 90 00 [06:37:04]wFMCommunicate OK [06:37:04]wFMCommunicate request_size=255 [06:37:04]MH_SAM_APDU [06:37:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 7C 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 72 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 22 01 00 00 00 07 04 06 00 60 AE 0A 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 91 05 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C3 2C 01 00 35 04 06 00 CA 72 FA AD [06:37:04]Write to MH i2c: E2 02 01 C0 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 35 FF 03 08 00 03 50 7C 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 72 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 22 01 00 00 00 07 04 06 00 60 AE 0A 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 91 05 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C3 2C 01 00 35 04 06 00 CA 72 FA AD 00 00 3A [06:37:04]Write i2c OK [06:37:04]MH_I2C_Read... [06:37:04]OFD Sender: No OFD packet to send [06:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:04]Read from MH i2c: E2 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 03 00 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 03 00 C0 03 00 90 00 37 [06:37:04]RAPDU: 90 00 [06:37:04]wFMCommunicate OK [06:37:04]wFMCommunicate request_size=7 [06:37:04]MH_SAM_APDU [06:37:04]CAPDU: 80 0D 02 02 02 DB 2F [06:37:04]Write to MH i2c: E2 0A 00 C1 03 80 0D 02 02 02 00 DB 2F 00 00 4C [06:37:04]Write i2c OK [06:37:04]MH_I2C_Read... [06:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:04]Read from MH i2c: E2 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 03 00 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 03 00 C1 03 00 90 00 38 [06:37:04]RAPDU: 90 00 [06:37:04]wFMCommunicate OK [06:37:04]wFMCommunicate request_size=4 [06:37:04]MH_SAM_APDU [06:37:04]CAPDU: 80 0D 03 02 [06:37:04]Write to MH i2c: E2 08 00 C2 03 80 0D 03 02 00 00 00 00 40 [06:37:04]Write i2c OK [06:37:04]MH_I2C_Read... [06:37:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:37:04]Read from MH i2c: E2 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 0B 00 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 0B 00 C2 03 00 46 E3 20 94 62 28 95 08 90 00 45 [06:37:04]RAPDU: 46 E3 20 94 62 28 95 08 90 00 [06:37:04]wFMCommunicate OK [06:37:04]SAM_PROTO_SignData done [06:37:04]FM_MakeSignedData done [06:37:04]CreateOFDProtocolMessage [06:37:04]wFMCommunicate request_size=4 [06:37:04]MH_SAM_APDU [06:37:04]CAPDU: 80 11 00 00 [06:37:04]Write to MH i2c: E2 08 00 C3 03 80 11 00 00 00 00 00 00 40 [06:37:04]Write i2c OK [06:37:04]MH_I2C_Read... [06:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:04]Read from MH i2c: E2 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 17 00 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: E2 17 00 C3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 93 [06:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:37:04]wFMCommunicate OK [06:37:04]CreateOFDProtocolMessage done [06:37:04]OFDSenderStorePacket 76995 [06:37:04]StoreOFDPacket docnum=76995 [06:37:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 D6 B3 04 01 08 D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 7C 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 72 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 22 01 00 00 00 07 04 06 00 60 AE 0A 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 91 05 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C3 2C 01 00 35 04 06 00 CA 72 FA AD DB 2F 46 E3 20 94 62 28 95 08 [06:37:04]CheckFolder [06:37:04]dirname=/storage/ofd_packets [06:37:04]CheckFolder done [06:37:04]ProducePacketName [06:37:04]name=ofd_packets/00076995 [06:37:04]NVStorageSaveData ofd_packets/00076995 [06:37:04]File name is /storage/ofd_packets/00076995 [06:37:04]Write 298 bytes [06:37:04]NVStorageSaveData done [06:37:04]OFDSenderStorePacket done [06:37:04]KKMCreateOFDPacket done [06:37:04]NVStorageSaveData kkm_last_timestamp [06:37:04]File name is /storage/kkm_last_timestamp [06:37:04]Write 4 bytes [06:37:04]NVStorageSaveData done [06:37:04]ExternCall_PrintAddStr [06:37:04]wPrintStart [06:37:04]Write to MH i2c: 01 00 00 C4 03 C7 [06:37:04]Write i2c OK [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: 01 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: 01 07 00 [06:37:04]MH_I2C_Read... [06:37:04]Read from MH i2c: 01 07 00 C4 03 00 00 00 00 00 FF 0F DC [06:37:04]RasterBufferAndPrint [06:37:04]line Счет N : (1)191544 [06:37:04]line ИНН: 02508201610067 [06:37:04]line Контрольно-Кассовый Чек [06:37:04]line ПРОДАЖА [06:37:04]line ТРК (МРК, ГНК) : 13 [06:37:04]line Товар: 2710194210 [06:37:04]line ДТ-К-5 [06:37:04]line 97.360 * 71.90 [06:37:04]line = 7000.18 [06:37:04]line НДС 12% НСП 1% [06:37:04]line > о реализуемом товаре [06:37:04]line ОКРУГЛЕНИЕ: -0.18 [06:37:04]line ИТОГО: 7000.00 [06:37:04]line Внесено: 7000.00 [06:37:04]line СДАЧА: 0.00 [06:37:04]line НСП 1% : 61.95 [06:37:04]line НДС 12% : 743.38 [06:37:04]line Наличными: 7000.00 [06:37:04]line Безнал.: 0.00 [06:37:04]line Место: АЗС № 106 "Партнер Нефть" [06:37:04]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [06:37:04]line СНО: Общий режим [06:37:04]line Чек 14 22.04.2024 06:37 [06:37:04]line Смена: 373 ФФД: 1.0 [06:37:04]line ЗНМ: 0300000141 [06:37:04]line РНМ: 0000000000091573 [06:37:04]line Версия ККМ: 001 [06:37:04]line [06:37:04]line Дисконтная программа [06:37:04]line ДТ [06:37:04]line номер 106 [06:37:04]line сэкономлено 97.36 сом [06:37:04]line ФМ: 0000000000874652 [06:37:04]line ФД: 76995 [06:37:05]line ФПД: 222595180780335 [06:37:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T063705&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76995&fm=222595180780335&tin=02508201610067®Number=0000000000091573&sum=700000 [06:37:05]OFD Sender: Processing packet 76995 [packets to send 129, broken 128] [06:37:05]ProducePacketName [06:37:05]name=ofd_packets/00076995 [06:37:05]OFD Sender: To server: pG, [06:37:05]CommunicateWithHost lk.salyk.kg:30040 [06:37:05]ConnectInit lk.salyk.kg [06:37:05]written 0, free lines is 4095 [06:37:05]Connected sock=7 [06:37:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 D6 B3 04 01 08 D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 7C 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 72 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 22 01 00 00 00 07 04 06 00 60 AE 0A 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 91 05 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C3 2C 01 00 35 04 06 00 CA 72 FA AD DB 2F 46 E3 20 94 62 28 95 08 [06:37:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 6F A3 47 00 D9 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C3 2C 01 00 F4 03 04 00 14 AD 25 66 B6 04 01 00 00 D2 21 59 DA 1D AB 35 C6 [06:37:05]CommunicateWithHost err = 0 [06:37:05]CheckOFDResponse [06:37:05]1017 (14) - 77093643461234 [06:37:05]1041 (16) - 0000000000874652 [06:37:05]1040 (4) - 76995 [06:37:05]1012 (4) - 22.04.2024 00:19 [06:37:05]1206 (1) - 0 [06:37:05]OFD Sender: Remove packet 76995 [06:37:05]ProducePacketName [06:37:05]name=ofd_packets/00076995 [06:37:05]NVStorageDeleteData [06:37:05]Write to MH i2c: 01 00 00 F3 03 F6 [06:37:05]Write i2c OK [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: 01 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: 01 07 00 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: 01 07 00 F3 03 00 00 00 00 00 8A 0C 93 [06:37:05]RasterBufferAndPrint [06:37:05]line [06:37:05]line [06:37:05]line [06:37:05]line [06:37:05]line [06:37:05]written 0, free lines is 3217 [06:37:05]MH_Cut [06:37:05]Write to MH i2c: D1 01 00 FA 03 01 CF [06:37:05]Write i2c OK [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: D1 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: D1 01 00 [06:37:05]MH_I2C_Read... [06:37:05]Read from MH i2c: D1 01 00 FA 03 00 CE [06:37:05]Write to MH i2c: 01 00 00 FB 03 FE [06:37:05]Write i2c OK [06:37:05]MH_I2C_Read... [06:37:05]OFD Sender: No OFD packet to send [06:37:06]*** Cut start [06:37:06]*** Partial cut [06:37:06]*** CUTSNS_PIN = 1 [06:37:06]*** CUTSNS_PIN = 0 [06:37:06]*** Brake cut motor [06:37:06]Read from MH i2c: 01 [06:37:06]MH_I2C_Read... [06:37:06]*** Stop cut motor [06:37:06]*** Cut end [06:37:06]Read from MH i2c: 01 07 00 [06:37:06]MH_I2C_Read... [06:37:06]Read from MH i2c: 01 07 00 FB 03 00 00 00 00 00 FF 0F 13 [06:37:06]process_action close_receipt done [06:37:06]requested_data is exist [06:37:06]produce_requested_data [06:37:06]requested_item fm.sn is exist - process it [06:37:06]wFMCommunicate request_size=4 [06:37:06]MH_SAM_APDU [06:37:06]CAPDU: 80 11 00 00 [06:37:06]Write to MH i2c: E2 08 00 FC 03 80 11 00 00 00 00 00 00 79 [06:37:06]Write i2c OK [06:37:06]MH_I2C_Read... [06:37:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:06]Read from MH i2c: E2 [06:37:06]MH_I2C_Read... [06:37:06]Read from MH i2c: E2 17 00 [06:37:06]MH_I2C_Read... [06:37:06]Read from MH i2c: E2 17 00 FC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CC [06:37:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:37:06]wFMCommunicate OK [06:37:06]requested_item fd.num is exist - process it [06:37:06]SAM_PROTO_GetFieldsCounters [06:37:06]wFMCommunicate request_size=4 [06:37:06]MH_SAM_APDU [06:37:06]CAPDU: 80 13 00 00 [06:37:06]Write to MH i2c: E2 08 00 FD 03 80 13 00 00 00 00 00 00 7C [06:37:06]Write i2c OK [06:37:06]MH_I2C_Read... [06:37:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:37:07]Read from MH i2c: E2 [06:37:07]MH_I2C_Read... [06:37:07]Read from MH i2c: E2 62 00 [06:37:07]MH_I2C_Read... [06:37:07]Read from MH i2c: E2 62 00 FD 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C3 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [06:37:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C3 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:37:07]wFMCommunicate OK [06:37:07]SAM_PROTO_GetFieldsCounters done [06:37:07]requested_item shift.num is exist - process it [06:37:07]requested_item shift.opened is exist - process it [06:37:07]req_shift_opened [06:37:07]FM_GetShiftState [06:37:07]SAM_PROTO_GetShiftState [06:37:07]wFMCommunicate request_size=4 [06:37:07]MH_SAM_APDU [06:37:07]CAPDU: 80 13 01 00 [06:37:07]Write to MH i2c: E2 08 00 FE 03 80 13 01 00 00 00 00 00 7E [06:37:07]Write i2c OK [06:37:07]MH_I2C_Read... [06:37:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:07]Read from MH i2c: E2 [06:37:07]MH_I2C_Read... [06:37:07]Read from MH i2c: E2 0E 00 [06:37:07]MH_I2C_Read... [06:37:07]Read from MH i2c: E2 0E 00 FE 03 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 A5 [06:37:07]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [06:37:07]wFMCommunicate OK [06:37:07]SAM_PROTO_GetShiftState done [06:37:07]FM_GetShiftState done [06:37:07]req_shift_opened done [06:37:07]requested_item shift.open_date is exist - process it [06:37:07]req_shift_open_date [06:37:07]req_shift_open_date done [06:37:07]produce_requested_data done [06:37:07]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76995,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [06:37:07]process_action_free close_receipt [06:37:07]json_value_free [06:37:07]json_value_free done [06:37:07]process_json_proto returns [06:37:07]Send response to host [06:37:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76995,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [06:37:07]free response buf [06:37:07]execute_script done [06:37:07]execute_script returns [06:37:07]free content buf [06:37:07]Sock 10.Close socket [06:37:07]Sock 10.Thread stoped [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:02]accept exits with 9 [06:38:02]New connection [06:38:02]New thread 3067174244 created [06:38:02]Thread 3067030884 joined [06:38:02]Waiting for new connection... [06:38:02] Sock 9.Parse request [06:38:02]Sock 9.Check first char [06:38:02]Sock 9.First char is OK [06:38:02]request: POST /json_proto HTTP/1.0 [06:38:02]Method: POST [06:38:02]URL: /json_proto [06:38:02]Method is POST - this is cgi request [06:38:02]url: /json_proto [06:38:02]query_string will be loaded in cgi processing [06:38:02]execute_cgi json_proto POST (null) [06:38:02]execute_cgi path=json_proto method=POST [06:38:02]POST find Content-Length [06:38:02]Host: 172.17.62.5:8080 [06:38:02]Content-Length: 808 [06:38:02]Content-Type: application/json [06:38:02] [06:38:02]POST finish read [06:38:02]Found Content-Length = 808 [06:38:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 24.850, "sum" : 1600.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1600.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:02]execute_script... [06:38:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 24.850, "sum" : 1600.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1600.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:02]POST & json_proto [06:38:02]process_json_proto [06:38:02]json parsed OK: [06:38:02]protocol is kg_v1.0 [06:38:02]action value=close_receipt [06:38:02]process_action close_receipt [06:38:02]cmd_close_receipt [06:38:02]MH_GetDate [06:38:02]Write to MH i2c: F0 00 00 FF 03 F1 [06:38:02]Write i2c OK [06:38:02]MH_I2C_Read... [06:38:02]Read from MH i2c: F0 [06:38:02]MH_I2C_Read... [06:38:02]Read from MH i2c: F0 09 00 [06:38:02]MH_I2C_Read... [06:38:02]Read from MH i2c: F0 09 00 FF 03 00 CC 05 26 66 F4 E9 65 64 FD [06:38:02]GetLastDocTimeStamp 1713767825 [06:38:02]current date 1713767884 [06:38:02]FM_GetShiftState [06:38:02]SAM_PROTO_GetShiftState [06:38:02]wFMCommunicate request_size=4 [06:38:02]MH_SAM_APDU [06:38:02]CAPDU: 80 13 01 00 [06:38:02]Write to MH i2c: E2 08 00 00 04 80 13 01 00 00 00 00 00 81 [06:38:02]Write i2c OK [06:38:02]MH_I2C_Read... [06:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:02]Read from MH i2c: E2 [06:38:02]MH_I2C_Read... [06:38:02]Read from MH i2c: E2 0E 00 [06:38:02]MH_I2C_Read... [06:38:02]Read from MH i2c: E2 0E 00 00 04 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 A8 [06:38:02]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [06:38:02]wFMCommunicate OK [06:38:02]SAM_PROTO_GetShiftState done [06:38:02]FM_GetShiftState done [06:38:02]opened in 1713745124 [06:38:02]opened+sec_in_day 1713831524 [06:38:02]quantity*price = 160034 [06:38:02]sum+1 = 160035 [06:38:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1600.34 НСП 1% : 14.16 НДС 12% : 169.95 Наличными: 0.00 Безнал.: 1600.34 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 15 22.04.2024 06:38 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 76996 ФПД: 226777493357820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T063804&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76996&fm=226777493357820&tin=02508201610067®Number=0000000000091573&sum=160034 [06:38:04]StoreToDocumentArchive [06:38:04]shift 373 fd 76996 [06:38:04]save to /storage/0373/doc_00076996 [06:38:04]save last doc name /storage/0373/doc_00076996 to /storage/kkm_last_doc_name [06:38:04]save OK [06:38:04]Clear old archive folders... [06:38:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:38:04]tlvbuf is 0176AD50 [06:38:04]SAM_PROTO_ClearQueue [06:38:04]wFMCommunicate request_size=4 [06:38:04]MH_SAM_APDU [06:38:04]CAPDU: 80 09 00 00 [06:38:04]Write to MH i2c: E2 08 00 0D 04 80 09 00 00 00 00 00 00 83 [06:38:04]Write i2c OK [06:38:04]MH_I2C_Read... [06:38:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:38:04]Read from MH i2c: E2 [06:38:04]MH_I2C_Read... [06:38:04]Read from MH i2c: E2 03 00 [06:38:04]MH_I2C_Read... [06:38:04]Read from MH i2c: E2 03 00 0D 04 00 90 00 85 [06:38:04]RAPDU: 90 00 [06:38:04]wFMCommunicate OK [06:38:04]SAM_PROTO_ClearQueue done [06:38:04]KKMCreateOFDPacket [06:38:04]OFDProtocolAddRootSTLVToBuf [06:38:04]FM_MakeSignedData [06:38:04]FM_MakeSignedData [06:38:04]SAM_PROTO_SignData [06:38:04]wFMCommunicate request_size=4 [06:38:04]MH_SAM_APDU [06:38:04]CAPDU: 80 0D 01 02 [06:38:04]Write to MH i2c: E2 08 00 0E 04 80 0D 01 02 00 00 00 00 8B [06:38:04]Write i2c OK [06:38:04]MH_I2C_Read... [06:38:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:38:04]Read from MH i2c: E2 [06:38:04]MH_I2C_Read... [06:38:04]Read from MH i2c: E2 03 00 [06:38:04]MH_I2C_Read... [06:38:04]Read from MH i2c: E2 03 00 0E 04 00 90 00 86 [06:38:04]RAPDU: 90 00 [06:38:04]wFMCommunicate OK [06:38:04]wFMCommunicate request_size=255 [06:38:04]MH_SAM_APDU [06:38:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 61 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 22 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 CC 05 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C4 2C 01 00 35 04 06 00 CE [06:38:04]Write to MH i2c: E2 02 01 0F 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 61 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 22 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 CC 05 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C4 2C 01 00 35 04 06 00 CE 00 00 DB [06:38:04]Write i2c OK [06:38:04]MH_I2C_Read... [06:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:04]Read from MH i2c: E2 [06:38:04]MH_I2C_Read... [06:38:04]Read from MH i2c: E2 03 00 [06:38:04]MH_I2C_Read... [06:38:04]Read from MH i2c: E2 03 00 0F 04 00 90 00 87 [06:38:04]RAPDU: 90 00 [06:38:04]wFMCommunicate OK [06:38:04]wFMCommunicate request_size=10 [06:38:04]MH_SAM_APDU [06:38:04]CAPDU: 80 0D 02 02 05 40 BF EF 44 FC [06:38:04]Write to MH i2c: E2 0D 00 10 04 80 0D 02 02 05 00 40 BF EF 44 FC 00 00 C6 [06:38:04]Write i2c OK [06:38:04]MH_I2C_Read... [06:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:04]Read from MH i2c: E2 [06:38:04]MH_I2C_Read... [06:38:04]Read from MH i2c: E2 03 00 [06:38:04]MH_I2C_Read... [06:38:04]Read from MH i2c: E2 03 00 10 04 00 90 00 88 [06:38:04]RAPDU: 90 00 [06:38:04]wFMCommunicate OK [06:38:04]wFMCommunicate request_size=4 [06:38:04]MH_SAM_APDU [06:38:04]CAPDU: 80 0D 03 02 [06:38:04]Write to MH i2c: E2 08 00 11 04 80 0D 03 02 00 00 00 00 90 [06:38:04]Write i2c OK [06:38:04]MH_I2C_Read... [06:38:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:38:04]Read from MH i2c: E2 [06:38:04]MH_I2C_Read... [06:38:04]Read from MH i2c: E2 0B 00 [06:38:04]MH_I2C_Read... [06:38:04]Read from MH i2c: E2 0B 00 11 04 00 CF EC 32 7A E4 4D 94 33 90 00 F0 [06:38:04]RAPDU: CF EC 32 7A E4 4D 94 33 90 00 [06:38:04]wFMCommunicate OK [06:38:04]SAM_PROTO_SignData done [06:38:04]FM_MakeSignedData done [06:38:04]CreateOFDProtocolMessage [06:38:04]wFMCommunicate request_size=4 [06:38:04]MH_SAM_APDU [06:38:04]CAPDU: 80 11 00 00 [06:38:04]Write to MH i2c: E2 08 00 12 04 80 11 00 00 00 00 00 00 90 [06:38:04]Write i2c OK [06:38:04]MH_I2C_Read... [06:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:04]Read from MH i2c: E2 [06:38:04]MH_I2C_Read... [06:38:04]Read from MH i2c: E2 17 00 [06:38:04]MH_I2C_Read... [06:38:04]Read from MH i2c: E2 17 00 12 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E3 [06:38:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:38:04]wFMCommunicate OK [06:38:04]CreateOFDProtocolMessage done [06:38:04]OFDSenderStorePacket 76996 [06:38:04]StoreOFDPacket docnum=76996 [06:38:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 03 18 07 01 84 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 35 FF 03 08 00 03 12 61 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 22 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 CC 05 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C4 2C 01 00 35 04 06 00 CE 40 BF EF 44 FC CF EC 32 7A E4 4D 94 33 [06:38:04]CheckFolder [06:38:04]dirname=/storage/ofd_packets [06:38:04]CheckFolder done [06:38:04]ProducePacketName [06:38:04]name=ofd_packets/00076996 [06:38:04]NVStorageSaveData ofd_packets/00076996 [06:38:04]File name is /storage/ofd_packets/00076996 [06:38:04]Write 301 bytes [06:38:04]NVStorageSaveData done [06:38:04]OFDSenderStorePacket done [06:38:04]KKMCreateOFDPacket done [06:38:04]NVStorageSaveData kkm_last_timestamp [06:38:04]File name is /storage/kkm_last_timestamp [06:38:04]Write 4 bytes [06:38:04]NVStorageSaveData done [06:38:04]ExternCall_PrintAddStr [06:38:04]wPrintStart [06:38:04]Write to MH i2c: 01 00 00 13 04 17 [06:38:04]Write i2c OK [06:38:04]MH_I2C_Read... [06:38:04]Read from MH i2c: 01 [06:38:04]MH_I2C_Read... [06:38:04]Read from MH i2c: 01 07 00 [06:38:04]MH_I2C_Read... [06:38:04]Read from MH i2c: 01 07 00 13 04 00 00 00 00 00 FF 0F 2C [06:38:04]RasterBufferAndPrint [06:38:04]line Счет N : (1)191545 [06:38:04]line ИНН: 02508201610067 [06:38:04]line Контрольно-Кассовый Чек [06:38:04]line ПРОДАЖА [06:38:04]line ТРК (МРК, ГНК) : 43 [06:38:04]line Товар: 2710124130 [06:38:04]line Аи-92-К-5 [06:38:04]line 24.850 * 64.40 [06:38:04]line = 1600.34 [06:38:04]line НДС 12% НСП 1% [06:38:04]line > о реализуемом товаре [06:38:04]line ИТОГО: 1600.34 [06:38:04]line НСП 1% : 14.16 [06:38:04]line НДС 12% : 169.95 [06:38:04]line Наличными: 0.00 [06:38:04]line Безнал.: 1600.34 [06:38:04]line Место: АЗС № 106 "Партнер Нефть" [06:38:04]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [06:38:04]line СНО: Общий режим [06:38:04]line Чек 15 22.04.2024 06:38 [06:38:04]line Смена: 373 ФФД: 1.0 [06:38:04]line ЗНМ: 0300000141 [06:38:04]line РНМ: 0000000000091573 [06:38:04]line Версия ККМ: 001 [06:38:04]line Платежная система: О! деньги [06:38:04]line ФМ: 0000000000874652 [06:38:04]line ФД: 76996 [06:38:04]line ФПД: 226777493357820 [06:38:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T063804&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76996&fm=226777493357820&tin=02508201610067®Number=0000000000091573&sum=160034 [06:38:04]OFD Sender: Processing packet 76996 [packets to send 129, broken 128] [06:38:04]ProducePacketName [06:38:04]name=ofd_packets/00076996 [06:38:04]OFD Sender: To server: pG, [06:38:04]CommunicateWithHost lk.salyk.kg:30040 [06:38:04]ConnectInit lk.salyk.kg [06:38:04]written 0, free lines is 4095 [06:38:04]Connected sock=11 [06:38:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 03 18 07 01 84 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 35 FF 03 08 00 03 12 61 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 22 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 CC 05 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C4 2C 01 00 35 04 06 00 CE 40 BF EF 44 FC CF EC 32 7A E4 4D 94 33 [06:38:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 63 0C 47 00 AA C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C4 2C 01 00 F4 03 04 00 4F AD 25 66 B6 04 01 00 00 ED 77 F9 09 47 EC 95 88 [06:38:05]CommunicateWithHost err = 0 [06:38:05]CheckOFDResponse [06:38:05]1017 (14) - 77093643461234 [06:38:05]1041 (16) - 0000000000874652 [06:38:05]1040 (4) - 76996 [06:38:05]1012 (4) - 22.04.2024 00:20 [06:38:05]1206 (1) - 0 [06:38:05]OFD Sender: Remove packet 76996 [06:38:05]ProducePacketName [06:38:05]name=ofd_packets/00076996 [06:38:05]NVStorageDeleteData [06:38:05]Write to MH i2c: 01 00 00 3C 04 40 [06:38:05]Write i2c OK [06:38:05]MH_I2C_Read... [06:38:05]Read from MH i2c: 01 [06:38:05]MH_I2C_Read... [06:38:05]Read from MH i2c: 01 07 00 [06:38:05]MH_I2C_Read... [06:38:05]Read from MH i2c: 01 07 00 3C 04 00 00 00 00 00 0C 0D 60 [06:38:05]RasterBufferAndPrint [06:38:05]line [06:38:05]line [06:38:05]line [06:38:05]line [06:38:05]line [06:38:05]written 0, free lines is 3347 [06:38:05]MH_Cut [06:38:05]Write to MH i2c: D1 01 00 43 04 01 19 [06:38:05]Write i2c OK [06:38:05]MH_I2C_Read... [06:38:05]Read from MH i2c: D1 [06:38:05]MH_I2C_Read... [06:38:05]Read from MH i2c: D1 01 00 [06:38:05]MH_I2C_Read... [06:38:05]Read from MH i2c: D1 01 00 43 04 00 18 [06:38:05]Write to MH i2c: 01 00 00 44 04 48 [06:38:05]Write i2c OK [06:38:05]MH_I2C_Read... [06:38:05]OFD Sender: No OFD packet to send [06:38:05]*** Cut start [06:38:05]*** Partial cut [06:38:05]*** CUTSNS_PIN = 1 [06:38:05]*** CUTSNS_PIN = 0 [06:38:06]*** Brake cut motor [06:38:06]Read from MH i2c: 01 [06:38:06]MH_I2C_Read... [06:38:06]*** Stop cut motor [06:38:06]*** Cut end [06:38:06]Read from MH i2c: 01 07 00 [06:38:06]MH_I2C_Read... [06:38:06]Read from MH i2c: 01 07 00 44 04 00 00 00 00 00 FF 0F 5D [06:38:06]process_action close_receipt done [06:38:06]requested_data is exist [06:38:06]produce_requested_data [06:38:06]requested_item fm.sn is exist - process it [06:38:06]wFMCommunicate request_size=4 [06:38:06]MH_SAM_APDU [06:38:06]CAPDU: 80 11 00 00 [06:38:06]Write to MH i2c: E2 08 00 45 04 80 11 00 00 00 00 00 00 C3 [06:38:06]Write i2c OK [06:38:06]MH_I2C_Read... [06:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:06]Read from MH i2c: E2 [06:38:06]MH_I2C_Read... [06:38:06]Read from MH i2c: E2 17 00 [06:38:06]MH_I2C_Read... [06:38:06]Read from MH i2c: E2 17 00 45 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 16 [06:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:38:06]wFMCommunicate OK [06:38:06]requested_item fd.num is exist - process it [06:38:06]SAM_PROTO_GetFieldsCounters [06:38:06]wFMCommunicate request_size=4 [06:38:06]MH_SAM_APDU [06:38:06]CAPDU: 80 13 00 00 [06:38:06]Write to MH i2c: E2 08 00 46 04 80 13 00 00 00 00 00 00 C6 [06:38:06]Write i2c OK [06:38:06]MH_I2C_Read... [06:38:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:38:06]Read from MH i2c: E2 [06:38:06]MH_I2C_Read... [06:38:06]Read from MH i2c: E2 62 00 [06:38:06]MH_I2C_Read... [06:38:06]Read from MH i2c: E2 62 00 46 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C4 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [06:38:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C4 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:38:06]wFMCommunicate OK [06:38:06]SAM_PROTO_GetFieldsCounters done [06:38:06]requested_item shift.num is exist - process it [06:38:06]requested_item shift.opened is exist - process it [06:38:06]req_shift_opened [06:38:06]FM_GetShiftState [06:38:06]SAM_PROTO_GetShiftState [06:38:06]wFMCommunicate request_size=4 [06:38:06]MH_SAM_APDU [06:38:06]CAPDU: 80 13 01 00 [06:38:06]Write to MH i2c: E2 08 00 47 04 80 13 01 00 00 00 00 00 C8 [06:38:06]Write i2c OK [06:38:06]MH_I2C_Read... [06:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:06]Read from MH i2c: E2 [06:38:06]MH_I2C_Read... [06:38:06]Read from MH i2c: E2 0E 00 [06:38:06]MH_I2C_Read... [06:38:06]Read from MH i2c: E2 0E 00 47 04 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 EF [06:38:06]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [06:38:06]wFMCommunicate OK [06:38:06]SAM_PROTO_GetShiftState done [06:38:06]FM_GetShiftState done [06:38:06]req_shift_opened done [06:38:06]requested_item shift.open_date is exist - process it [06:38:06]req_shift_open_date [06:38:06]req_shift_open_date done [06:38:06]produce_requested_data done [06:38:06]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76996,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [06:38:06]process_action_free close_receipt [06:38:06]json_value_free [06:38:06]json_value_free done [06:38:06]process_json_proto returns [06:38:06]Send response to host [06:38:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76996,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [06:38:06]free response buf [06:38:06]execute_script done [06:38:06]execute_script returns [06:38:06]free content buf [06:38:06]Sock 9.Close socket [06:38:06]Sock 9.Thread stoped [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:15]accept exits with 7 [06:40:15]New connection [06:40:15]New thread 3067030884 created [06:40:15]Thread 3067174244 joined [06:40:15]Waiting for new connection... [06:40:15] Sock 7.Parse request [06:40:15]Sock 7.Check first char [06:40:15]Sock 7.First char is OK [06:40:15]request: POST /json_proto HTTP/1.0 [06:40:15]Method: POST [06:40:15]URL: /json_proto [06:40:15]Method is POST - this is cgi request [06:40:15]url: /json_proto [06:40:15]query_string will be loaded in cgi processing [06:40:15]execute_cgi json_proto POST (null) [06:40:15]execute_cgi path=json_proto method=POST [06:40:15]POST find Content-Length [06:40:15]Host: 172.17.62.5:8080 [06:40:15]Content-Length: 677 [06:40:15]Content-Type: application/json [06:40:15] [06:40:15]POST finish read [06:40:15]Found Content-Length = 677 [06:40:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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" ] } } [06:40:15]execute_script... [06:40: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)191546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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" ] } } [06:40:15]POST & json_proto [06:40:15]process_json_proto [06:40:15]json parsed OK: [06:40:15]protocol is kg_v1.0 [06:40:15]action value=close_receipt [06:40:15]process_action close_receipt [06:40:15]cmd_close_receipt [06:40:15]MH_GetDate [06:40:15]Write to MH i2c: F0 00 00 48 04 3B [06:40:15]Write i2c OK [06:40:15]MH_I2C_Read... [06:40:15]Read from MH i2c: F0 [06:40:15]MH_I2C_Read... [06:40:15]Read from MH i2c: F0 09 00 [06:40:15]MH_I2C_Read... [06:40:15]Read from MH i2c: F0 09 00 48 04 00 52 06 26 66 F4 E9 65 64 CE [06:40:15]GetLastDocTimeStamp 1713767884 [06:40:15]current date 1713768018 [06:40:15]FM_GetShiftState [06:40:15]SAM_PROTO_GetShiftState [06:40:15]wFMCommunicate request_size=4 [06:40:15]MH_SAM_APDU [06:40:15]CAPDU: 80 13 01 00 [06:40:15]Write to MH i2c: E2 08 00 49 04 80 13 01 00 00 00 00 00 CA [06:40:15]Write i2c OK [06:40:15]MH_I2C_Read... [06:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:16]Read from MH i2c: E2 [06:40:16]MH_I2C_Read... [06:40:16]Read from MH i2c: E2 0E 00 [06:40:16]MH_I2C_Read... [06:40:16]Read from MH i2c: E2 0E 00 49 04 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 F1 [06:40:16]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [06:40:16]wFMCommunicate OK [06:40:16]SAM_PROTO_GetShiftState done [06:40:16]FM_GetShiftState done [06:40:16]opened in 1713745124 [06:40:16]opened+sec_in_day 1713831524 [06:40:16]quantity*price = 30010 [06:40:16]sum+1 = 30011 [06:40:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 16 22.04.2024 06:40 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76997 ФПД: 272648646332186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T064018&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76997&fm=272648646332186&tin=02508201610067®Number=0000000000091573&sum=30000 [06:40:17]StoreToDocumentArchive [06:40:17]shift 373 fd 76997 [06:40:17]save to /storage/0373/doc_00076997 [06:40:17]save last doc name /storage/0373/doc_00076997 to /storage/kkm_last_doc_name [06:40:17]save OK [06:40:17]Clear old archive folders... [06:40:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:40:17]tlvbuf is 01767530 [06:40:17]SAM_PROTO_ClearQueue [06:40:17]wFMCommunicate request_size=4 [06:40:17]MH_SAM_APDU [06:40:17]CAPDU: 80 09 00 00 [06:40:17]Write to MH i2c: E2 08 00 56 04 80 09 00 00 00 00 00 00 CC [06:40:17]Write i2c OK [06:40:17]MH_I2C_Read... [06:40:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:40:17]Read from MH i2c: E2 [06:40:17]MH_I2C_Read... [06:40:17]Read from MH i2c: E2 03 00 [06:40:17]MH_I2C_Read... [06:40:17]Read from MH i2c: E2 03 00 56 04 00 90 00 CE [06:40:17]RAPDU: 90 00 [06:40:17]wFMCommunicate OK [06:40:17]SAM_PROTO_ClearQueue done [06:40:17]KKMCreateOFDPacket [06:40:17]OFDProtocolAddRootSTLVToBuf [06:40:17]FM_MakeSignedData [06:40:17]FM_MakeSignedData [06:40:17]SAM_PROTO_SignData [06:40:17]wFMCommunicate request_size=4 [06:40:17]MH_SAM_APDU [06:40:17]CAPDU: 80 0D 01 02 [06:40:17]Write to MH i2c: E2 08 00 57 04 80 0D 01 02 00 00 00 00 D4 [06:40:17]Write i2c OK [06:40:17]MH_I2C_Read... [06:40:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:40:17]Read from MH i2c: E2 [06:40:17]MH_I2C_Read... [06:40:17]Read from MH i2c: E2 03 00 [06:40:17]MH_I2C_Read... [06:40:17]Read from MH i2c: E2 03 00 57 04 00 90 00 CF [06:40:17]RAPDU: 90 00 [06:40:17]wFMCommunicate OK [06:40:17]wFMCommunicate request_size=255 [06:40:17]MH_SAM_APDU [06:40:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 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 73 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 00 00 00 F4 03 04 00 52 06 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C5 2C 01 00 35 04 06 00 F7 [06:40:17]Write to MH i2c: E2 02 01 58 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 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 73 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 00 00 00 F4 03 04 00 52 06 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C5 2C 01 00 35 04 06 00 F7 00 00 3B [06:40:17]Write i2c OK [06:40:17]MH_I2C_Read... [06:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:17]Read from MH i2c: E2 [06:40:17]MH_I2C_Read... [06:40:17]Read from MH i2c: E2 03 00 [06:40:17]MH_I2C_Read... [06:40:17]Read from MH i2c: E2 03 00 58 04 00 90 00 D0 [06:40:17]RAPDU: 90 00 [06:40:17]wFMCommunicate OK [06:40:17]wFMCommunicate request_size=10 [06:40:17]MH_SAM_APDU [06:40:17]CAPDU: 80 0D 02 02 05 F8 F5 B6 8F 1A [06:40:17]Write to MH i2c: E2 0D 00 59 04 80 0D 02 02 05 00 F8 F5 B6 8F 1A 00 00 2D [06:40:17]Write i2c OK [06:40:17]MH_I2C_Read... [06:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:17]Read from MH i2c: E2 [06:40:17]MH_I2C_Read... [06:40:17]Read from MH i2c: E2 03 00 [06:40:17]MH_I2C_Read... [06:40:17]Read from MH i2c: E2 03 00 59 04 00 90 00 D1 [06:40:17]RAPDU: 90 00 [06:40:17]wFMCommunicate OK [06:40:17]wFMCommunicate request_size=4 [06:40:17]MH_SAM_APDU [06:40:17]CAPDU: 80 0D 03 02 [06:40:17]Write to MH i2c: E2 08 00 5A 04 80 0D 03 02 00 00 00 00 D9 [06:40:17]Write i2c OK [06:40:17]MH_I2C_Read... [06:40:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:40:17]Read from MH i2c: E2 [06:40:17]MH_I2C_Read... [06:40:17]Read from MH i2c: E2 0B 00 [06:40:17]MH_I2C_Read... [06:40:17]Read from MH i2c: E2 0B 00 5A 04 00 9C EF 75 95 E1 28 98 6C 90 00 7C [06:40:17]RAPDU: 9C EF 75 95 E1 28 98 6C 90 00 [06:40:17]wFMCommunicate OK [06:40:17]SAM_PROTO_SignData done [06:40:17]FM_MakeSignedData done [06:40:17]CreateOFDProtocolMessage [06:40:17]wFMCommunicate request_size=4 [06:40:17]MH_SAM_APDU [06:40:17]CAPDU: 80 11 00 00 [06:40:17]Write to MH i2c: E2 08 00 5B 04 80 11 00 00 00 00 00 00 D9 [06:40:17]Write i2c OK [06:40:17]MH_I2C_Read... [06:40:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:17]Read from MH i2c: E2 [06:40:17]MH_I2C_Read... [06:40:17]Read from MH i2c: E2 17 00 [06:40:17]MH_I2C_Read... [06:40:17]Read from MH i2c: E2 17 00 5B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2C [06:40:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:40:17]wFMCommunicate OK [06:40:17]CreateOFDProtocolMessage done [06:40:17]OFDSenderStorePacket 76997 [06:40:17]StoreOFDPacket docnum=76997 [06:40:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 1F FE 07 01 EA 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 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 73 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 00 00 00 F4 03 04 00 52 06 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C5 2C 01 00 35 04 06 00 F7 F8 F5 B6 8F 1A 9C EF 75 95 E1 28 98 6C [06:40:17]CheckFolder [06:40:17]dirname=/storage/ofd_packets [06:40:17]CheckFolder done [06:40:17]ProducePacketName [06:40:17]name=ofd_packets/00076997 [06:40:17]NVStorageSaveData ofd_packets/00076997 [06:40:17]File name is /storage/ofd_packets/00076997 [06:40:17]Write 301 bytes [06:40:17]NVStorageSaveData done [06:40:17]OFDSenderStorePacket done [06:40:17]KKMCreateOFDPacket done [06:40:17]NVStorageSaveData kkm_last_timestamp [06:40:17]File name is /storage/kkm_last_timestamp [06:40:17]Write 4 bytes [06:40:17]NVStorageSaveData done [06:40:17]ExternCall_PrintAddStr [06:40:17]wPrintStart [06:40:17]Write to MH i2c: 01 00 00 5C 04 60 [06:40:17]Write i2c OK [06:40:17]MH_I2C_Read... [06:40:17]Read from MH i2c: 01 [06:40:17]MH_I2C_Read... [06:40:17]Read from MH i2c: 01 07 00 [06:40:17]MH_I2C_Read... [06:40:17]Read from MH i2c: 01 07 00 5C 04 00 00 00 00 00 FF 0F 75 [06:40:17]RasterBufferAndPrint [06:40:17]line Счет N : (1)191546 [06:40:17]line ИНН: 02508201610067 [06:40:17]line Контрольно-Кассовый Чек [06:40:17]line ПРОДАЖА [06:40:17]line ТРК (МРК, ГНК) : 43 [06:40:17]line Товар: 2710124130 [06:40:17]line Аи-92-К-5 [06:40:17]line 4.660 * 64.40 [06:40:17]line = 300.10 [06:40:17]line НДС 12% НСП 1% [06:40:17]line > о реализуемом товаре [06:40:17]line ОКРУГЛЕНИЕ: -0.10 [06:40:17]line ИТОГО: 300.00 [06:40:17]line Внесено: 300.00 [06:40:17]line СДАЧА: 0.00 [06:40:17]line НСП 1% : 2.66 [06:40:17]line НДС 12% : 31.87 [06:40:17]line Наличными: 300.00 [06:40:17]line Безнал.: 0.00 [06:40:17]line Место: АЗС № 106 "Партнер Нефть" [06:40:17]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [06:40:17]line СНО: Общий режим [06:40:17]line Чек 16 22.04.2024 06:40 [06:40:17]line Смена: 373 ФФД: 1.0 [06:40:17]line ЗНМ: 0300000141 [06:40:17]line РНМ: 0000000000091573 [06:40:17]line Версия ККМ: 001 [06:40:17]line ФМ: 0000000000874652 [06:40:17]line ФД: 76997 [06:40:17]line ФПД: 272648646332186 [06:40:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T064018&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76997&fm=272648646332186&tin=02508201610067®Number=0000000000091573&sum=30000 [06:40:17]OFD Sender: Processing packet 76997 [packets to send 129, broken 128] [06:40:17]ProducePacketName [06:40:17]name=ofd_packets/00076997 [06:40:17]OFD Sender: To server: pG, [06:40:17]CommunicateWithHost lk.salyk.kg:30040 [06:40:17]ConnectInit lk.salyk.kg [06:40:17]written 0, free lines is 4095 [06:40:18]Connected sock=10 [06:40:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 1F FE 07 01 EA 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 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 73 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 00 00 00 F4 03 04 00 52 06 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C5 2C 01 00 35 04 06 00 F7 F8 F5 B6 8F 1A 9C EF 75 95 E1 28 98 6C [06:40:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 4F C8 47 00 6D 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C5 2C 01 00 F4 03 04 00 D5 AD 25 66 B6 04 01 00 00 A6 54 38 83 F9 B3 5B 62 [06:40:18]CommunicateWithHost err = 0 [06:40:18]CheckOFDResponse [06:40:18]1017 (14) - 77093643461234 [06:40:18]1041 (16) - 0000000000874652 [06:40:18]1040 (4) - 76997 [06:40:18]1012 (4) - 22.04.2024 00:22 [06:40:18]1206 (1) - 0 [06:40:18]OFD Sender: Remove packet 76997 [06:40:18]ProducePacketName [06:40:18]name=ofd_packets/00076997 [06:40:18]NVStorageDeleteData [06:40:18]Write to MH i2c: 01 00 00 86 04 8A [06:40:18]Write i2c OK [06:40:18]MH_I2C_Read... [06:40:18]Read from MH i2c: 01 [06:40:18]MH_I2C_Read... [06:40:18]Read from MH i2c: 01 07 00 [06:40:18]MH_I2C_Read... [06:40:18]Read from MH i2c: 01 07 00 86 04 00 00 00 00 00 FF 0C 9C [06:40:18]RasterBufferAndPrint [06:40:18]line [06:40:18]line [06:40:18]line [06:40:18]line [06:40:18]line [06:40:18]written 0, free lines is 3333 [06:40:18]MH_Cut [06:40:18]Write to MH i2c: D1 01 00 8D 04 01 63 [06:40:18]Write i2c OK [06:40:18]MH_I2C_Read... [06:40:18]Read from MH i2c: D1 [06:40:18]MH_I2C_Read... [06:40:18]Read from MH i2c: D1 01 00 [06:40:18]MH_I2C_Read... [06:40:18]Read from MH i2c: D1 01 00 8D 04 00 62 [06:40:18]Write to MH i2c: 01 00 00 8E 04 92 [06:40:18]Write i2c OK [06:40:18]MH_I2C_Read... [06:40:18]OFD Sender: No OFD packet to send [06:40:19]*** Cut start [06:40:19]*** Partial cut [06:40:19]*** CUTSNS_PIN = 1 [06:40:19]*** CUTSNS_PIN = 0 [06:40:19]*** Brake cut motor [06:40:19]Read from MH i2c: 01 [06:40:19]MH_I2C_Read... [06:40:19]*** Stop cut motor [06:40:19]*** Cut end [06:40:19]Read from MH i2c: 01 07 00 [06:40:19]MH_I2C_Read... [06:40:19]Read from MH i2c: 01 07 00 8E 04 00 00 00 00 00 FF 0F A7 [06:40:19]process_action close_receipt done [06:40:19]requested_data is exist [06:40:19]produce_requested_data [06:40:19]requested_item fm.sn is exist - process it [06:40:19]wFMCommunicate request_size=4 [06:40:19]MH_SAM_APDU [06:40:19]CAPDU: 80 11 00 00 [06:40:19]Write to MH i2c: E2 08 00 8F 04 80 11 00 00 00 00 00 00 0D [06:40:19]Write i2c OK [06:40:19]MH_I2C_Read... [06:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:19]Read from MH i2c: E2 [06:40:19]MH_I2C_Read... [06:40:19]Read from MH i2c: E2 17 00 [06:40:19]MH_I2C_Read... [06:40:19]Read from MH i2c: E2 17 00 8F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 60 [06:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:40:19]wFMCommunicate OK [06:40:19]requested_item fd.num is exist - process it [06:40:19]SAM_PROTO_GetFieldsCounters [06:40:19]wFMCommunicate request_size=4 [06:40:19]MH_SAM_APDU [06:40:19]CAPDU: 80 13 00 00 [06:40:19]Write to MH i2c: E2 08 00 90 04 80 13 00 00 00 00 00 00 10 [06:40:19]Write i2c OK [06:40:19]MH_I2C_Read... [06:40:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:40:19]Read from MH i2c: E2 [06:40:19]MH_I2C_Read... [06:40:19]Read from MH i2c: E2 62 00 [06:40:19]MH_I2C_Read... [06:40:19]Read from MH i2c: E2 62 00 90 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C5 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [06:40:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C5 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:40:19]wFMCommunicate OK [06:40:19]SAM_PROTO_GetFieldsCounters done [06:40:19]requested_item shift.num is exist - process it [06:40:19]requested_item shift.opened is exist - process it [06:40:19]req_shift_opened [06:40:19]FM_GetShiftState [06:40:19]SAM_PROTO_GetShiftState [06:40:19]wFMCommunicate request_size=4 [06:40:19]MH_SAM_APDU [06:40:19]CAPDU: 80 13 01 00 [06:40:19]Write to MH i2c: E2 08 00 91 04 80 13 01 00 00 00 00 00 12 [06:40:19]Write i2c OK [06:40:19]MH_I2C_Read... [06:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:20]Read from MH i2c: E2 [06:40:20]MH_I2C_Read... [06:40:20]Read from MH i2c: E2 0E 00 [06:40:20]MH_I2C_Read... [06:40:20]Read from MH i2c: E2 0E 00 91 04 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 39 [06:40:20]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [06:40:20]wFMCommunicate OK [06:40:20]SAM_PROTO_GetShiftState done [06:40:20]FM_GetShiftState done [06:40:20]req_shift_opened done [06:40:20]requested_item shift.open_date is exist - process it [06:40:20]req_shift_open_date [06:40:20]req_shift_open_date done [06:40:20]produce_requested_data done [06:40:20]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76997,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [06:40:20]process_action_free close_receipt [06:40:20]json_value_free [06:40:20]json_value_free done [06:40:20]process_json_proto returns [06:40:20]Send response to host [06:40:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76997,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [06:40:20]free response buf [06:40:20]execute_script done [06:40:20]execute_script returns [06:40:20]free content buf [06:40:20]Sock 7.Close socket [06:40:20]Sock 7.Thread stoped [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:22]accept exits with 9 [06:51:22]New connection [06:51:22]New thread 3067174244 created [06:51:22]Thread 3067030884 joined [06:51:22]Waiting for new connection... [06:51:22] Sock 9.Parse request [06:51:22]Sock 9.Check first char [06:51:22]Sock 9.First char is OK [06:51:22]request: POST /json_proto HTTP/1.0 [06:51:22]Method: POST [06:51:22]URL: /json_proto [06:51:22]Method is POST - this is cgi request [06:51:22]url: /json_proto [06:51:22]query_string will be loaded in cgi processing [06:51:22]execute_cgi json_proto POST (null) [06:51:22]execute_cgi path=json_proto method=POST [06:51:22]POST find Content-Length [06:51:22]Host: 172.17.62.5:8080 [06:51:22]Content-Length: 215 [06:51:22]Content-Type: application/json [06:51:22] [06:51:22]POST finish read [06:51:22]Found Content-Length = 215 [06:51:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:22]execute_script... [06:51:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:22]POST & json_proto [06:51:22]process_json_proto [06:51:22]json parsed OK: [06:51:22]protocol is kg_v1.0 [06:51:22]action value=get_value [06:51:22]process_action get_value [06:51:22]cmd_get_value [06:51:22]process_action get_value done [06:51:22]requested_data is exist [06:51:22]produce_requested_data [06:51:22]requested_item kkm.sn is exist - process it [06:51:22]requested_item kkm.ver is exist - process it [06:51:22]requested_item fm.sn is exist - process it [06:51:22]wFMCommunicate request_size=4 [06:51:22]MH_SAM_APDU [06:51:22]CAPDU: 80 11 00 00 [06:51:22]Write to MH i2c: E2 08 00 92 04 80 11 00 00 00 00 00 00 10 [06:51:22]Write i2c OK [06:51:22]MH_I2C_Read... [06:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:22]Read from MH i2c: E2 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: E2 17 00 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: E2 17 00 92 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 63 [06:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:51:22]wFMCommunicate OK [06:51:22]requested_item fd.num is exist - process it [06:51:22]SAM_PROTO_GetFieldsCounters [06:51:22]wFMCommunicate request_size=4 [06:51:22]MH_SAM_APDU [06:51:22]CAPDU: 80 13 00 00 [06:51:22]Write to MH i2c: E2 08 00 93 04 80 13 00 00 00 00 00 00 13 [06:51:22]Write i2c OK [06:51:22]MH_I2C_Read... [06:51:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:51:22]Read from MH i2c: E2 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: E2 62 00 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: E2 62 00 93 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C5 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [06:51:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C5 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:51:22]wFMCommunicate OK [06:51:22]SAM_PROTO_GetFieldsCounters done [06:51:22]requested_item shift.num is exist - process it [06:51:22]requested_item shift.opened is exist - process it [06:51:22]req_shift_opened [06:51:22]FM_GetShiftState [06:51:22]SAM_PROTO_GetShiftState [06:51:22]wFMCommunicate request_size=4 [06:51:22]MH_SAM_APDU [06:51:22]CAPDU: 80 13 01 00 [06:51:22]Write to MH i2c: E2 08 00 94 04 80 13 01 00 00 00 00 00 15 [06:51:22]Write i2c OK [06:51:22]MH_I2C_Read... [06:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:22]Read from MH i2c: E2 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: E2 0E 00 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: E2 0E 00 94 04 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 3C [06:51:22]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [06:51:22]wFMCommunicate OK [06:51:22]SAM_PROTO_GetShiftState done [06:51:22]FM_GetShiftState done [06:51:22]req_shift_opened done [06:51:22]requested_item shift.open_date is exist - process it [06:51:22]req_shift_open_date [06:51:22]req_shift_open_date done [06:51:22]produce_requested_data done [06:51:22]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76997,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [06:51:22]process_action_free get_value [06:51:22]json_value_free [06:51:22]json_value_free done [06:51:22]process_json_proto returns [06:51:22]Send response to host [06:51:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":76997,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [06:51:22]free response buf [06:51:22]execute_script done [06:51:22]execute_script returns [06:51:22]free content buf [06:51:22]Sock 9.Close socket [06:51:22]Sock 9.Thread stoped [06:51:22]accept exits with 7 [06:51:22]New connection [06:51:22]New thread 3067030884 created [06:51:22]Thread 3067174244 joined [06:51:22]Waiting for new connection... [06:51:22] Sock 7.Parse request [06:51:22]Sock 7.Check first char [06:51:22]Sock 7.First char is OK [06:51:22]request: POST /json_proto HTTP/1.0 [06:51:22]Method: POST [06:51:22]URL: /json_proto [06:51:22]Method is POST - this is cgi request [06:51:22]url: /json_proto [06:51:22]query_string will be loaded in cgi processing [06:51:22]execute_cgi json_proto POST (null) [06:51:22]execute_cgi path=json_proto method=POST [06:51:22]POST find Content-Length [06:51:22]Host: 172.17.62.5:8080 [06:51:22]Content-Length: 331 [06:51:22]Content-Type: application/json [06:51:22] [06:51:22]POST finish read [06:51:22]Found Content-Length = 331 [06:51:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [06:51:22]execute_script... [06:51:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [06:51:22]POST & json_proto [06:51:22]process_json_proto [06:51:22]json parsed OK: [06:51:22]protocol is kg_v1.0 [06:51:22]action value=get_value [06:51:22]process_action get_value [06:51:22]cmd_get_value [06:51:22]process_action get_value done [06:51:22]requested_data is exist [06:51:22]produce_requested_data [06:51:22]requested_item fm.sale.total is exist - process it [06:51:22]SAM_PROTO_GetFMData [06:51:22]wFMCommunicate request_size=4 [06:51:22]MH_SAM_APDU [06:51:22]CAPDU: 80 13 03 00 [06:51:22]Write to MH i2c: E2 08 00 95 04 80 13 03 00 00 00 00 00 18 [06:51:22]Write i2c OK [06:51:22]MH_I2C_Read... [06:51:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [06:51:23]Read from MH i2c: E2 [06:51:23]MH_I2C_Read... [06:51:23]Read from MH i2c: E2 FD 00 [06:51:23]MH_I2C_Read... [06:51:23]Read from MH i2c: E2 FD 00 95 04 00 C8 04 85 04 C4 04 6E 04 04 00 DB 29 01 00 69 04 A3 00 6F 04 04 00 E8 27 01 00 B1 04 05 00 AB 5D F2 BB 02 70 04 05 00 88 A7 CE 77 02 72 04 04 00 23 B6 23 44 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 FB 51 57 4A 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 A3 E0 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 B5 [06:51:23]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 DB 29 01 00 69 04 A3 00 6F 04 04 00 E8 27 01 00 B1 04 05 00 AB 5D F2 BB 02 70 04 05 00 88 A7 CE 77 02 72 04 04 00 23 B6 23 44 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 FB 51 57 4A 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 A3 E0 31 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 [06:51:23]wFMCommunicate OK [06:51:23]wFMCommunicate request_size=4 [06:51:23]MH_SAM_APDU [06:51:23]CAPDU: 80 17 00 00 [06:51:23]Write to MH i2c: E2 08 00 96 04 80 17 00 00 00 00 00 00 1A [06:51:23]Write i2c OK [06:51:23]MH_I2C_Read... [06:51:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:23]Read from MH i2c: E2 [06:51:23]MH_I2C_Read... [06:51:23]Read from MH i2c: E2 FD 00 [06:51:23]MH_I2C_Read... [06:51:23]Read from MH i2c: E2 FD 00 96 04 00 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 ED 81 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 0E [06:51:23]RAPDU: 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 ED 81 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [06:51:23]wFMCommunicate OK [06:51:23]wFMCommunicate request_size=4 [06:51:23]MH_SAM_APDU [06:51:23]CAPDU: 80 17 00 00 [06:51:23]Write to MH i2c: E2 08 00 97 04 80 17 00 00 00 00 00 00 1B [06:51:23]Write i2c OK [06:51:23]MH_I2C_Read... [06:51:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:23]Read from MH i2c: E2 [06:51:23]MH_I2C_Read... [06:51:23]Read from MH i2c: E2 FD 00 [06:51:23]MH_I2C_Read... [06:51:23]Read from MH i2c: E2 FD 00 97 04 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 F3 [06:51:23]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [06:51:23]wFMCommunicate OK [06:51:23]wFMCommunicate request_size=4 [06:51:23]MH_SAM_APDU [06:51:23]CAPDU: 80 17 00 00 [06:51:23]Write to MH i2c: E2 08 00 98 04 80 17 00 00 00 00 00 00 1C [06:51:23]Write i2c OK [06:51:23]MH_I2C_Read... [06:51:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:23]Read from MH i2c: E2 [06:51:23]MH_I2C_Read... [06:51:23]Read from MH i2c: E2 FD 00 [06:51:23]MH_I2C_Read... [06:51:23]Read from MH i2c: E2 FD 00 98 04 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 94 [06:51:23]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [06:51:23]wFMCommunicate OK [06:51:23]wFMCommunicate request_size=4 [06:51:23]MH_SAM_APDU [06:51:23]CAPDU: 80 17 00 00 [06:51:23]Write to MH i2c: E2 08 00 99 04 80 17 00 00 00 00 00 00 1D [06:51:23]Write i2c OK [06:51:23]MH_I2C_Read... [06:51:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [06:51:24]Read from MH i2c: E2 [06:51:24]MH_I2C_Read... [06:51:24]Read from MH i2c: E2 E5 00 [06:51:24]MH_I2C_Read... [06:51:24]Read from MH i2c: E2 E5 00 99 04 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 01 [06:51:24]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:51:24]wFMCommunicate OK [06:51:24]SAM_PROTO_GetFMData done [06:51:24]requested_item fm.sale_refund.total is exist - process it [06:51:24]requested_item fm.buy.total is exist - process it [06:51:24]requested_item shift.sale.total is exist - process it [06:51:24]SAM_PROTO_GetShiftData [06:51:24]wFMCommunicate request_size=4 [06:51:24]MH_SAM_APDU [06:51:24]CAPDU: 80 13 02 00 [06:51:24]Write to MH i2c: E2 08 00 9A 04 80 13 02 00 00 00 00 00 1C [06:51:24]Write i2c OK [06:51:24]MH_I2C_Read... [06:51:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [06:51:24]Read from MH i2c: E2 [06:51:24]MH_I2C_Read... [06:51:24]Read from MH i2c: E2 FD 00 [06:51:24]MH_I2C_Read... [06:51:24]Read from MH i2c: E2 FD 00 9A 04 00 AE 04 AA 04 AA 04 6E 04 04 00 10 00 00 00 69 04 9B 00 6F 04 04 00 10 00 00 00 B1 04 03 00 A4 08 22 70 04 03 00 28 DE 17 72 04 03 00 7C 2A 0A 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 52 9D 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1C 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 F3 [06:51:24]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 10 00 00 00 69 04 9B 00 6F 04 04 00 10 00 00 00 B1 04 03 00 A4 08 22 70 04 03 00 28 DE 17 72 04 03 00 7C 2A 0A 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 52 9D 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1C 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [06:51:24]wFMCommunicate OK [06:51:24]wFMCommunicate request_size=4 [06:51:24]MH_SAM_APDU [06:51:24]CAPDU: 80 17 00 00 [06:51:24]Write to MH i2c: E2 08 00 9B 04 80 17 00 00 00 00 00 00 1F [06:51:24]Write i2c OK [06:51:24]MH_I2C_Read... [06:51:24]OFD Sender: No OFD packet to send [06:51:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:24]Read from MH i2c: E2 [06:51:24]MH_I2C_Read... [06:51:24]Read from MH i2c: E2 FD 00 [06:51:24]MH_I2C_Read... [06:51:24]Read from MH i2c: E2 FD 00 9B 04 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 41 [06:51:24]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [06:51:24]wFMCommunicate OK [06:51:24]wFMCommunicate request_size=4 [06:51:24]MH_SAM_APDU [06:51:24]CAPDU: 80 17 00 00 [06:51:24]Write to MH i2c: E2 08 00 9C 04 80 17 00 00 00 00 00 00 20 [06:51:24]Write i2c OK [06:51:24]MH_I2C_Read... [06:51:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:25]Read from MH i2c: E2 [06:51:25]MH_I2C_Read... [06:51:25]Read from MH i2c: E2 FD 00 [06:51:25]MH_I2C_Read... [06:51:25]Read from MH i2c: E2 FD 00 9C 04 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 D7 [06:51:25]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [06:51:25]wFMCommunicate OK [06:51:25]wFMCommunicate request_size=4 [06:51:25]MH_SAM_APDU [06:51:25]CAPDU: 80 17 00 00 [06:51:25]Write to MH i2c: E2 08 00 9D 04 80 17 00 00 00 00 00 00 21 [06:51:25]Write i2c OK [06:51:25]MH_I2C_Read... [06:51:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:51:25]Read from MH i2c: E2 [06:51:25]MH_I2C_Read... [06:51:25]Read from MH i2c: E2 FD 00 [06:51:25]MH_I2C_Read... [06:51:25]Read from MH i2c: E2 FD 00 9D 04 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 93 [06:51:25]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [06:51:25]wFMCommunicate OK [06:51:25]wFMCommunicate request_size=4 [06:51:25]MH_SAM_APDU [06:51:25]CAPDU: 80 17 00 00 [06:51:25]Write to MH i2c: E2 08 00 9E 04 80 17 00 00 00 00 00 00 22 [06:51:25]Write i2c OK [06:51:25]MH_I2C_Read... [06:51:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [06:51:25]Read from MH i2c: E2 [06:51:25]MH_I2C_Read... [06:51:25]Read from MH i2c: E2 CB 00 [06:51:25]MH_I2C_Read... [06:51:25]Read from MH i2c: E2 CB 00 9E 04 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0B [06:51:25]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:51:25]wFMCommunicate OK [06:51:25]SAM_PROTO_GetShiftData done [06:51:25]requested_item shift.sale.total_cash is exist - process it [06:51:25]requested_item shift.sale_refund.total is exist - process it [06:51:25]requested_item shift.sale_refund.total_cash is exist - process it [06:51:25]requested_item shift.buy.total is exist - process it [06:51:25]requested_item shift.buy.total_cash is exist - process it [06:51:25]produce_requested_data done [06:51:25]produce_requested_data return {"fm.sale.total":117431576.75,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":22304.36,"shift.sale.total_cash":15642.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} [06:51:25]process_action_free get_value [06:51:25]json_value_free [06:51:25]json_value_free done [06:51:25]process_json_proto returns [06:51:25]Send response to host [06:51:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117431576.75,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":22304.36,"shift.sale.total_cash":15642.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}}} [06:51:25]free response buf [06:51:25]execute_script done [06:51:25]execute_script returns [06:51:25]free content buf [06:51:25]Sock 7.Close socket [06:51:25]Sock 7.Thread stoped [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:47]accept exits with 9 [06:56:47]New connection [06:56:47]New thread 3067174244 created [06:56:47]Thread 3067030884 joined [06:56:47]Waiting for new connection... [06:56:47] Sock 9.Parse request [06:56:47]Sock 9.Check first char [06:56:47]Sock 9.First char is OK [06:56:47]request: POST /json_proto HTTP/1.0 [06:56:47]Method: POST [06:56:47]URL: /json_proto [06:56:47]Method is POST - this is cgi request [06:56:47]url: /json_proto [06:56:47]query_string will be loaded in cgi processing [06:56:47]execute_cgi json_proto POST (null) [06:56:47]execute_cgi path=json_proto method=POST [06:56:47]POST find Content-Length [06:56:47]Host: 172.17.62.5:8080 [06:56:47]Content-Length: 1173 [06:56:47]Content-Type: application/json [06:56:47] [06:56:47]POST finish read [06:56:47]Found Content-Length = 1173 [06:56:47]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191547\u000A22.04.2024 06:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 120.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 8748.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30119772\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:47]execute_script... [06:56:47]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191547\u000A22.04.2024 06:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 120.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 8748.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30119772\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:47]POST & json_proto [06:56:47]process_json_proto [06:56:47]json parsed OK: [06:56:47]protocol is kg_v1.0 [06:56:47]action value=print_text [06:56:47]process_action print_text [06:56:47]cmd_print_text [06:56:47]ExternCall_PrintAddStr [06:56:47]wPrintStart [06:56:47]Write to MH i2c: 01 00 00 9F 04 A3 [06:56:47]Write i2c OK [06:56:47]MH_I2C_Read... [06:56:47]Read from MH i2c: 01 [06:56:47]MH_I2C_Read... [06:56:47]Read from MH i2c: 01 07 00 [06:56:47]MH_I2C_Read... [06:56:47]Read from MH i2c: 01 07 00 9F 04 00 00 00 00 00 FF 0F B8 [06:56:47]RasterBufferAndPrint [06:56:47]line *****ТОВАРНЫЙ ЧЕК***** [06:56:47]line АЗС 106 [06:56:47]line Партнер нефть [06:56:47]line 02508201610067 [06:56:47]line Кассир : Токторбаева Н. [06:56:47]line Счет N : (1)191547 [06:56:47]line 22.04.2024 06:38 [06:56:47]line ПРОДАЖА [06:56:47]line ТРК (МРК, ГНК): 51 [06:56:47]line Вид ГСМ : 2710194210 [06:56:47]line ДТ-К-5 [06:56:47]line 120.000 x 72.90 [06:56:47]line ИТОГ: 8748.00 [06:56:47]line Тип оплаты: Талоны: ТК ГПНА Online [06:56:47]line 30119772 [06:56:47]line ______________________ [06:56:47]line (подпись) [06:56:47]written 0, free lines is 4095 [06:56:47]Write to MH i2c: 01 00 00 B4 04 B8 [06:56:47]Write i2c OK [06:56:47]MH_I2C_Read... [06:56:47]Read from MH i2c: 01 [06:56:47]MH_I2C_Read... [06:56:47]Read from MH i2c: 01 07 00 [06:56:47]MH_I2C_Read... [06:56:47]Read from MH i2c: 01 07 00 B4 04 00 00 00 00 00 F3 0D BF [06:56:47]RasterBufferAndPrint [06:56:47]line [06:56:47]line [06:56:47]line [06:56:47]line [06:56:47]line [06:56:47]written 0, free lines is 3573 [06:56:47]MH_Cut [06:56:47]Write to MH i2c: D1 01 00 BB 04 01 91 [06:56:47]Write i2c OK [06:56:47]MH_I2C_Read... [06:56:47]Read from MH i2c: D1 [06:56:47]MH_I2C_Read... [06:56:47]Read from MH i2c: D1 01 00 [06:56:47]MH_I2C_Read... [06:56:47]Read from MH i2c: D1 01 00 BB 04 00 90 [06:56:47]Write to MH i2c: 01 00 00 BC 04 C0 [06:56:47]Write i2c OK [06:56:47]MH_I2C_Read... [06:56:48]*** Cut start [06:56:48]*** Partial cut [06:56:48]*** CUTSNS_PIN = 1 [06:56:48]*** CUTSNS_PIN = 0 [06:56:48]*** Brake cut motor [06:56:49]Read from MH i2c: 01 [06:56:49]MH_I2C_Read... [06:56:49]*** Stop cut motor [06:56:49]*** Cut end [06:56:49]Read from MH i2c: 01 07 00 [06:56:49]MH_I2C_Read... [06:56:49]Read from MH i2c: 01 07 00 BC 04 00 00 00 00 00 FF 0F D5 [06:56:49]process_action print_text done [06:56:49]requested_data is exist [06:56:49]produce_requested_data [06:56:49]requested_item fm.sn is exist - process it [06:56:49]wFMCommunicate request_size=4 [06:56:49]MH_SAM_APDU [06:56:49]CAPDU: 80 11 00 00 [06:56:49]Write to MH i2c: E2 08 00 BD 04 80 11 00 00 00 00 00 00 3B [06:56:49]Write i2c OK [06:56:49]MH_I2C_Read... [06:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:49]Read from MH i2c: E2 [06:56:49]MH_I2C_Read... [06:56:49]Read from MH i2c: E2 17 00 [06:56:49]MH_I2C_Read... [06:56:49]Read from MH i2c: E2 17 00 BD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8E [06:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:56:49]wFMCommunicate OK [06:56:49]requested_item fd.num is exist - process it [06:56:49]SAM_PROTO_GetFieldsCounters [06:56:49]wFMCommunicate request_size=4 [06:56:49]MH_SAM_APDU [06:56:49]CAPDU: 80 13 00 00 [06:56:49]Write to MH i2c: E2 08 00 BE 04 80 13 00 00 00 00 00 00 3E [06:56:49]Write i2c OK [06:56:49]MH_I2C_Read... [06:56:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:56:49]Read from MH i2c: E2 [06:56:49]MH_I2C_Read... [06:56:49]Read from MH i2c: E2 62 00 [06:56:49]MH_I2C_Read... [06:56:49]Read from MH i2c: E2 62 00 BE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C5 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [06:56:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C5 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:56:49]wFMCommunicate OK [06:56:49]SAM_PROTO_GetFieldsCounters done [06:56:49]requested_item shift.num is exist - process it [06:56:49]requested_item shift.opened is exist - process it [06:56:49]req_shift_opened [06:56:49]FM_GetShiftState [06:56:49]SAM_PROTO_GetShiftState [06:56:49]wFMCommunicate request_size=4 [06:56:49]MH_SAM_APDU [06:56:49]CAPDU: 80 13 01 00 [06:56:49]Write to MH i2c: E2 08 00 BF 04 80 13 01 00 00 00 00 00 40 [06:56:49]Write i2c OK [06:56:49]MH_I2C_Read... [06:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:49]Read from MH i2c: E2 [06:56:49]MH_I2C_Read... [06:56:49]Read from MH i2c: E2 0E 00 [06:56:49]MH_I2C_Read... [06:56:49]Read from MH i2c: E2 0E 00 BF 04 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 67 [06:56:49]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [06:56:49]wFMCommunicate OK [06:56:49]SAM_PROTO_GetShiftState done [06:56:49]FM_GetShiftState done [06:56:49]req_shift_opened done [06:56:49]requested_item shift.open_date is exist - process it [06:56:49]req_shift_open_date [06:56:49]req_shift_open_date done [06:56:49]produce_requested_data done [06:56:49]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76997,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [06:56:49]process_action_free print_text [06:56:49]json_value_free [06:56:49]json_value_free done [06:56:49]process_json_proto returns [06:56:49]Send response to host [06:56:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76997,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [06:56:49]free response buf [06:56:49]execute_script done [06:56:49]execute_script returns [06:56:49]free content buf [06:56:49]Sock 9.Close socket [06:56:49]Sock 9.Thread stoped [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:23]accept exits with 7 [06:58:23]New connection [06:58:23]New thread 3067030884 created [06:58:23]Thread 3067174244 joined [06:58:23]Waiting for new connection... [06:58:23] Sock 7.Parse request [06:58:23]Sock 7.Check first char [06:58:23]Sock 7.First char is OK [06:58:23]request: POST /json_proto HTTP/1.0 [06:58:23]Method: POST [06:58:23]URL: /json_proto [06:58:23]Method is POST - this is cgi request [06:58:23]url: /json_proto [06:58:23]query_string will be loaded in cgi processing [06:58:23]execute_cgi json_proto POST (null) [06:58:23]execute_cgi path=json_proto method=POST [06:58:23]POST find Content-Length [06:58:23]Host: 172.17.62.5:8080 [06:58:23]Content-Length: 978 [06:58:23]Content-Type: application/json [06:58:23] [06:58:23]POST finish read [06:58:23]Found Content-Length = 978 [06:58:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 22.260, "sum" : 1600.49, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.26 \u0441\u043E\u043C", "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:23]execute_script... [06:58: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)191548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 22.260, "sum" : 1600.49, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.26 \u0441\u043E\u043C", "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:23]POST & json_proto [06:58:23]process_json_proto [06:58:23]json parsed OK: [06:58:23]protocol is kg_v1.0 [06:58:23]action value=close_receipt [06:58:23]process_action close_receipt [06:58:23]cmd_close_receipt [06:58:23]MH_GetDate [06:58:23]Write to MH i2c: F0 00 00 C0 04 B3 [06:58:23]Write i2c OK [06:58:23]MH_I2C_Read... [06:58:23]Read from MH i2c: F0 [06:58:23]MH_I2C_Read... [06:58:23]Read from MH i2c: F0 09 00 [06:58:23]MH_I2C_Read... [06:58:23]Read from MH i2c: F0 09 00 C0 04 00 91 0A 26 66 F4 E9 65 64 89 [06:58:23]GetLastDocTimeStamp 1713768018 [06:58:23]current date 1713769105 [06:58:23]FM_GetShiftState [06:58:23]SAM_PROTO_GetShiftState [06:58:23]wFMCommunicate request_size=4 [06:58:23]MH_SAM_APDU [06:58:23]CAPDU: 80 13 01 00 [06:58:23]Write to MH i2c: E2 08 00 C1 04 80 13 01 00 00 00 00 00 42 [06:58:23]Write i2c OK [06:58:23]MH_I2C_Read... [06:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:23]Read from MH i2c: E2 [06:58:23]MH_I2C_Read... [06:58:23]Read from MH i2c: E2 0E 00 [06:58:23]MH_I2C_Read... [06:58:23]Read from MH i2c: E2 0E 00 C1 04 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 69 [06:58:23]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [06:58:23]wFMCommunicate OK [06:58:23]SAM_PROTO_GetShiftState done [06:58:23]FM_GetShiftState done [06:58:23]opened in 1713745124 [06:58:23]opened+sec_in_day 1713831524 [06:58:23]quantity*price = 160049 [06:58:23]sum+1 = 160050 [06:58:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.96 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 17 22.04.2024 06:58 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 22.26 сом ФМ: 0000000000874652 ФД: 76998 ФПД: 201705420158068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T065825&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76998&fm=201705420158068&tin=02508201610067®Number=0000000000091573&sum=160000 [06:58:24]StoreToDocumentArchive [06:58:24]shift 373 fd 76998 [06:58:24]save to /storage/0373/doc_00076998 [06:58:24]save last doc name /storage/0373/doc_00076998 to /storage/kkm_last_doc_name [06:58:24]save OK [06:58:24]Clear old archive folders... [06:58:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:58:24]tlvbuf is B6EF73D0 [06:58:24]SAM_PROTO_ClearQueue [06:58:24]wFMCommunicate request_size=4 [06:58:24]MH_SAM_APDU [06:58:24]CAPDU: 80 09 00 00 [06:58:24]Write to MH i2c: E2 08 00 CE 04 80 09 00 00 00 00 00 00 44 [06:58:24]Write i2c OK [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 [06:58:24]MH_I2C_Read... [06:58:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:58:24]Read from MH i2c: E2 03 00 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [06:58:24]RAPDU: 90 00 [06:58:24]wFMCommunicate OK [06:58:24]SAM_PROTO_ClearQueue done [06:58:24]KKMCreateOFDPacket [06:58:24]OFDProtocolAddRootSTLVToBuf [06:58:24]FM_MakeSignedData [06:58:24]FM_MakeSignedData [06:58:24]SAM_PROTO_SignData [06:58:24]wFMCommunicate request_size=4 [06:58:24]MH_SAM_APDU [06:58:24]CAPDU: 80 0D 01 02 [06:58:24]Write to MH i2c: E2 08 00 CF 04 80 0D 01 02 00 00 00 00 4C [06:58:24]Write i2c OK [06:58:24]MH_I2C_Read... [06:58:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:58:24]Read from MH i2c: E2 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 03 00 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [06:58:24]RAPDU: 90 00 [06:58:24]wFMCommunicate OK [06:58:24]wFMCommunicate request_size=255 [06:58:24]MH_SAM_APDU [06:58:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 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 91 0A 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C6 2C 01 00 35 04 06 00 B7 73 33 EA [06:58:24]Write to MH i2c: E2 02 01 D0 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 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 91 0A 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C6 2C 01 00 35 04 06 00 B7 73 33 EA 00 00 CA [06:58:24]Write i2c OK [06:58:24]MH_I2C_Read... [06:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:24]Read from MH i2c: E2 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 03 00 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 03 00 D0 04 00 90 00 48 [06:58:24]RAPDU: 90 00 [06:58:24]wFMCommunicate OK [06:58:24]wFMCommunicate request_size=7 [06:58:24]MH_SAM_APDU [06:58:24]CAPDU: 80 0D 02 02 02 F4 74 [06:58:24]Write to MH i2c: E2 0A 00 D1 04 80 0D 02 02 02 00 F4 74 00 00 BB [06:58:24]Write i2c OK [06:58:24]MH_I2C_Read... [06:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:24]Read from MH i2c: E2 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 03 00 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 03 00 D1 04 00 90 00 49 [06:58:24]RAPDU: 90 00 [06:58:24]wFMCommunicate OK [06:58:24]wFMCommunicate request_size=4 [06:58:24]MH_SAM_APDU [06:58:24]CAPDU: 80 0D 03 02 [06:58:24]Write to MH i2c: E2 08 00 D2 04 80 0D 03 02 00 00 00 00 51 [06:58:24]Write i2c OK [06:58:24]MH_I2C_Read... [06:58:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:58:24]Read from MH i2c: E2 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 0B 00 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 0B 00 D2 04 00 52 60 CF E1 CB B4 1A 58 90 00 A5 [06:58:24]RAPDU: 52 60 CF E1 CB B4 1A 58 90 00 [06:58:24]wFMCommunicate OK [06:58:24]SAM_PROTO_SignData done [06:58:24]FM_MakeSignedData done [06:58:24]CreateOFDProtocolMessage [06:58:24]wFMCommunicate request_size=4 [06:58:24]MH_SAM_APDU [06:58:24]CAPDU: 80 11 00 00 [06:58:24]Write to MH i2c: E2 08 00 D3 04 80 11 00 00 00 00 00 00 51 [06:58:24]Write i2c OK [06:58:24]MH_I2C_Read... [06:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:24]Read from MH i2c: E2 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 17 00 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: E2 17 00 D3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A4 [06:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:58:24]wFMCommunicate OK [06:58:24]CreateOFDProtocolMessage done [06:58:24]OFDSenderStorePacket 76998 [06:58:24]StoreOFDPacket docnum=76998 [06:58:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 15 6B 04 01 0A C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 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 91 0A 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C6 2C 01 00 35 04 06 00 B7 73 33 EA F4 74 52 60 CF E1 CB B4 1A 58 [06:58:24]CheckFolder [06:58:24]dirname=/storage/ofd_packets [06:58:24]CheckFolder done [06:58:24]ProducePacketName [06:58:24]name=ofd_packets/00076998 [06:58:24]NVStorageSaveData ofd_packets/00076998 [06:58:24]File name is /storage/ofd_packets/00076998 [06:58:24]Write 298 bytes [06:58:24]NVStorageSaveData done [06:58:24]OFDSenderStorePacket done [06:58:24]KKMCreateOFDPacket done [06:58:24]NVStorageSaveData kkm_last_timestamp [06:58:24]File name is /storage/kkm_last_timestamp [06:58:24]Write 4 bytes [06:58:24]NVStorageSaveData done [06:58:24]ExternCall_PrintAddStr [06:58:24]wPrintStart [06:58:24]Write to MH i2c: 01 00 00 D4 04 D8 [06:58:24]Write i2c OK [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: 01 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: 01 07 00 [06:58:24]MH_I2C_Read... [06:58:24]Read from MH i2c: 01 07 00 D4 04 00 00 00 00 00 FF 0F ED [06:58:24]RasterBufferAndPrint [06:58:24]line Счет N : (1)191548 [06:58:24]line ИНН: 02508201610067 [06:58:24]line Контрольно-Кассовый Чек [06:58:24]line ПРОДАЖА [06:58:24]line ТРК (МРК, ГНК) : 13 [06:58:24]line Товар: 2710194210 [06:58:24]line ДТ-К-5 [06:58:24]line 22.260 * 71.90 [06:58:24]line = 1600.49 [06:58:24]line НДС 12% НСП 1% [06:58:24]line > о реализуемом товаре [06:58:24]line ОКРУГЛЕНИЕ: -0.49 [06:58:24]line ИТОГО: 1600.00 [06:58:24]line Внесено: 1600.00 [06:58:24]line СДАЧА: 0.00 [06:58:24]line НСП 1% : 14.16 [06:58:24]line НДС 12% : 169.96 [06:58:24]line Наличными: 1600.00 [06:58:24]line Безнал.: 0.00 [06:58:24]line Место: АЗС № 106 "Партнер Нефть" [06:58:24]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [06:58:24]line СНО: Общий режим [06:58:24]line Чек 17 22.04.2024 06:58 [06:58:24]line Смена: 373 ФФД: 1.0 [06:58:24]line ЗНМ: 0300000141 [06:58:24]line РНМ: 0000000000091573 [06:58:24]line Версия ККМ: 001 [06:58:24]line [06:58:24]line Дисконтная программа [06:58:24]line ДТ [06:58:24]line номер 106 [06:58:24]line сэкономлено 22.26 сом [06:58:24]line ФМ: 0000000000874652 [06:58:24]line ФД: 76998 [06:58:24]line ФПД: 201705420158068 [06:58:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T065825&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76998&fm=201705420158068&tin=02508201610067®Number=0000000000091573&sum=160000 [06:58:25]OFD Sender: Processing packet 76998 [packets to send 129, broken 128] [06:58:25]ProducePacketName [06:58:25]name=ofd_packets/00076998 [06:58:25]OFD Sender: To server: pG, [06:58:25]CommunicateWithHost lk.salyk.kg:30040 [06:58:25]ConnectInit lk.salyk.kg [06:58:25]written 0, free lines is 4095 [06:58:25]Connected sock=10 [06:58:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 15 6B 04 01 0A C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 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 91 0A 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C6 2C 01 00 35 04 06 00 B7 73 33 EA F4 74 52 60 CF E1 CB B4 1A 58 [06:58:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 06 1B 47 00 22 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C6 2C 01 00 F4 03 04 00 14 B2 25 66 B6 04 01 00 00 42 90 98 09 52 C1 D4 1E [06:58:25]CommunicateWithHost err = 0 [06:58:25]CheckOFDResponse [06:58:25]1017 (14) - 77093643461234 [06:58:25]1041 (16) - 0000000000874652 [06:58:25]1040 (4) - 76998 [06:58:25]1012 (4) - 22.04.2024 00:40 [06:58:25]1206 (1) - 0 [06:58:25]OFD Sender: Remove packet 76998 [06:58:25]ProducePacketName [06:58:25]name=ofd_packets/00076998 [06:58:25]NVStorageDeleteData [06:58:25]Write to MH i2c: 01 00 00 03 05 08 [06:58:25]Write i2c OK [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: 01 [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: 01 07 00 [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: 01 07 00 03 05 00 00 00 00 00 AA 0C C5 [06:58:25]RasterBufferAndPrint [06:58:25]line [06:58:25]line [06:58:25]line [06:58:25]line [06:58:25]line [06:58:25]written 0, free lines is 3249 [06:58:25]MH_Cut [06:58:25]Write to MH i2c: D1 01 00 0A 05 01 E1 [06:58:25]Write i2c OK [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: D1 [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: D1 01 00 [06:58:25]MH_I2C_Read... [06:58:25]Read from MH i2c: D1 01 00 0A 05 00 E0 [06:58:25]Write to MH i2c: 01 00 00 0B 05 10 [06:58:25]Write i2c OK [06:58:25]MH_I2C_Read... [06:58:25]OFD Sender: No OFD packet to send [06:58:26]*** Cut start [06:58:26]*** Partial cut [06:58:26]*** CUTSNS_PIN = 1 [06:58:26]*** CUTSNS_PIN = 0 [06:58:26]*** Brake cut motor [06:58:26]Read from MH i2c: 01 [06:58:26]MH_I2C_Read... [06:58:26]*** Stop cut motor [06:58:26]*** Cut end [06:58:26]Read from MH i2c: 01 07 00 [06:58:26]MH_I2C_Read... [06:58:26]Read from MH i2c: 01 07 00 0B 05 00 00 00 00 00 FF 0F 25 [06:58:26]process_action close_receipt done [06:58:26]requested_data is exist [06:58:26]produce_requested_data [06:58:26]requested_item fm.sn is exist - process it [06:58:26]wFMCommunicate request_size=4 [06:58:26]MH_SAM_APDU [06:58:26]CAPDU: 80 11 00 00 [06:58:26]Write to MH i2c: E2 08 00 0C 05 80 11 00 00 00 00 00 00 8B [06:58:26]Write i2c OK [06:58:26]MH_I2C_Read... [06:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:27]Read from MH i2c: E2 [06:58:27]MH_I2C_Read... [06:58:27]Read from MH i2c: E2 17 00 [06:58:27]MH_I2C_Read... [06:58:27]Read from MH i2c: E2 17 00 0C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DE [06:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [06:58:27]wFMCommunicate OK [06:58:27]requested_item fd.num is exist - process it [06:58:27]SAM_PROTO_GetFieldsCounters [06:58:27]wFMCommunicate request_size=4 [06:58:27]MH_SAM_APDU [06:58:27]CAPDU: 80 13 00 00 [06:58:27]Write to MH i2c: E2 08 00 0D 05 80 13 00 00 00 00 00 00 8E [06:58:27]Write i2c OK [06:58:27]MH_I2C_Read... [06:58:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:58:27]Read from MH i2c: E2 [06:58:27]MH_I2C_Read... [06:58:27]Read from MH i2c: E2 62 00 [06:58:27]MH_I2C_Read... [06:58:27]Read from MH i2c: E2 62 00 0D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C6 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [06:58:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C6 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:58:27]wFMCommunicate OK [06:58:27]SAM_PROTO_GetFieldsCounters done [06:58:27]requested_item shift.num is exist - process it [06:58:27]requested_item shift.opened is exist - process it [06:58:27]req_shift_opened [06:58:27]FM_GetShiftState [06:58:27]SAM_PROTO_GetShiftState [06:58:27]wFMCommunicate request_size=4 [06:58:27]MH_SAM_APDU [06:58:27]CAPDU: 80 13 01 00 [06:58:27]Write to MH i2c: E2 08 00 0E 05 80 13 01 00 00 00 00 00 90 [06:58:27]Write i2c OK [06:58:27]MH_I2C_Read... [06:58:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:27]Read from MH i2c: E2 [06:58:27]MH_I2C_Read... [06:58:27]Read from MH i2c: E2 0E 00 [06:58:27]MH_I2C_Read... [06:58:27]Read from MH i2c: E2 0E 00 0E 05 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 B7 [06:58:27]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [06:58:27]wFMCommunicate OK [06:58:27]SAM_PROTO_GetShiftState done [06:58:27]FM_GetShiftState done [06:58:27]req_shift_opened done [06:58:27]requested_item shift.open_date is exist - process it [06:58:27]req_shift_open_date [06:58:27]req_shift_open_date done [06:58:27]produce_requested_data done [06:58:27]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76998,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [06:58:27]process_action_free close_receipt [06:58:27]json_value_free [06:58:27]json_value_free done [06:58:27]process_json_proto returns [06:58:27]Send response to host [06:58:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76998,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [06:58:27]free response buf [06:58:27]execute_script done [06:58:27]execute_script returns [06:58:27]free content buf [06:58:27]Sock 7.Close socket [06:58:27]Sock 7.Thread stoped [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:41]OFD Sender: No OFD packet to send [07:03:46]OFD Sender: No OFD packet to send [07:03:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:45]accept exits with 9 [07:07:45]New connection [07:07:45]New thread 3067174244 created [07:07:45]Thread 3067030884 joined [07:07:45]Waiting for new connection... [07:07:45] Sock 9.Parse request [07:07:45]Sock 9.Check first char [07:07:45]Sock 9.First char is OK [07:07:45]request: POST /json_proto HTTP/1.0 [07:07:45]Method: POST [07:07:45]URL: /json_proto [07:07:45]Method is POST - this is cgi request [07:07:45]url: /json_proto [07:07:45]query_string will be loaded in cgi processing [07:07:45]execute_cgi json_proto POST (null) [07:07:45]execute_cgi path=json_proto method=POST [07:07:45]POST find Content-Length [07:07:45]Host: 172.17.62.5:8080 [07:07:45]Content-Length: 675 [07:07:45]Content-Type: application/json [07:07:45] [07:07:45]POST finish read [07:07:45]Found Content-Length = 675 [07:07:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.980, "sum" : 800.44, "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" ] } } [07:07:45]execute_script... [07:07: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)191549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.980, "sum" : 800.44, "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" ] } } [07:07:45]POST & json_proto [07:07:45]process_json_proto [07:07:45]json parsed OK: [07:07:45]protocol is kg_v1.0 [07:07:45]action value=close_receipt [07:07:45]process_action close_receipt [07:07:45]cmd_close_receipt [07:07:45]MH_GetDate [07:07:45]Write to MH i2c: F0 00 00 0F 05 03 [07:07:45]Write i2c OK [07:07:45]MH_I2C_Read... [07:07:45]Read from MH i2c: F0 [07:07:45]MH_I2C_Read... [07:07:45]Read from MH i2c: F0 09 00 [07:07:45]MH_I2C_Read... [07:07:45]Read from MH i2c: F0 09 00 0F 05 00 C3 0C 26 66 F4 E9 65 64 0D [07:07:45]GetLastDocTimeStamp 1713769105 [07:07:45]current date 1713769667 [07:07:45]FM_GetShiftState [07:07:45]SAM_PROTO_GetShiftState [07:07:45]wFMCommunicate request_size=4 [07:07:45]MH_SAM_APDU [07:07:45]CAPDU: 80 13 01 00 [07:07:45]Write to MH i2c: E2 08 00 10 05 80 13 01 00 00 00 00 00 92 [07:07:45]Write i2c OK [07:07:45]MH_I2C_Read... [07:07:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:45]Read from MH i2c: E2 [07:07:45]MH_I2C_Read... [07:07:45]Read from MH i2c: E2 0E 00 [07:07:45]MH_I2C_Read... [07:07:45]Read from MH i2c: E2 0E 00 10 05 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 B9 [07:07:45]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [07:07:45]wFMCommunicate OK [07:07:45]SAM_PROTO_GetShiftState done [07:07:45]FM_GetShiftState done [07:07:45]opened in 1713745124 [07:07:45]opened+sec_in_day 1713831524 [07:07:45]quantity*price = 80044 [07:07:45]sum+1 = 80045 [07:07:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.00 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 18 22.04.2024 07:07 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 76999 ФПД: 236585908880481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T070748&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76999&fm=236585908880481&tin=02508201610067®Number=0000000000091573&sum=80000 [07:07:46]StoreToDocumentArchive [07:07:46]shift 373 fd 76999 [07:07:46]save to /storage/0373/doc_00076999 [07:07:46]save last doc name /storage/0373/doc_00076999 to /storage/kkm_last_doc_name [07:07:46]save OK [07:07:46]Clear old archive folders... [07:07:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:07:46]tlvbuf is 01755B30 [07:07:46]SAM_PROTO_ClearQueue [07:07:46]wFMCommunicate request_size=4 [07:07:46]MH_SAM_APDU [07:07:46]CAPDU: 80 09 00 00 [07:07:46]Write to MH i2c: E2 08 00 1D 05 80 09 00 00 00 00 00 00 94 [07:07:46]Write i2c OK [07:07:46]MH_I2C_Read... [07:07:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:07:47]Read from MH i2c: E2 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: E2 03 00 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: E2 03 00 1D 05 00 90 00 96 [07:07:47]RAPDU: 90 00 [07:07:47]wFMCommunicate OK [07:07:47]SAM_PROTO_ClearQueue done [07:07:47]KKMCreateOFDPacket [07:07:47]OFDProtocolAddRootSTLVToBuf [07:07:47]FM_MakeSignedData [07:07:47]FM_MakeSignedData [07:07:47]SAM_PROTO_SignData [07:07:47]wFMCommunicate request_size=4 [07:07:47]MH_SAM_APDU [07:07:47]CAPDU: 80 0D 01 02 [07:07:47]Write to MH i2c: E2 08 00 1E 05 80 0D 01 02 00 00 00 00 9C [07:07:47]Write i2c OK [07:07:47]MH_I2C_Read... [07:07:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:07:47]Read from MH i2c: E2 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: E2 03 00 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: E2 03 00 1E 05 00 90 00 97 [07:07:47]RAPDU: 90 00 [07:07:47]wFMCommunicate OK [07:07:47]wFMCommunicate request_size=255 [07:07:47]MH_SAM_APDU [07:07:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 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 34 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 12 00 00 00 F4 03 04 00 C4 0C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C7 2C 01 00 35 04 06 00 D7 2C 73 0E [07:07:47]Write to MH i2c: E2 02 01 1F 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 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 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 34 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 12 00 00 00 F4 03 04 00 C4 0C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C7 2C 01 00 35 04 06 00 D7 2C 73 0E 00 00 6B [07:07:47]Write i2c OK [07:07:47]MH_I2C_Read... [07:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:47]Read from MH i2c: E2 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: E2 03 00 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: E2 03 00 1F 05 00 90 00 98 [07:07:47]RAPDU: 90 00 [07:07:47]wFMCommunicate OK [07:07:47]wFMCommunicate request_size=7 [07:07:47]MH_SAM_APDU [07:07:47]CAPDU: 80 0D 02 02 02 C4 61 [07:07:47]Write to MH i2c: E2 0A 00 20 05 80 0D 02 02 02 00 C4 61 00 00 C8 [07:07:47]Write i2c OK [07:07:47]MH_I2C_Read... [07:07:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:47]Read from MH i2c: E2 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: E2 03 00 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: E2 03 00 20 05 00 90 00 99 [07:07:47]RAPDU: 90 00 [07:07:47]wFMCommunicate OK [07:07:47]wFMCommunicate request_size=4 [07:07:47]MH_SAM_APDU [07:07:47]CAPDU: 80 0D 03 02 [07:07:47]Write to MH i2c: E2 08 00 21 05 80 0D 03 02 00 00 00 00 A1 [07:07:47]Write i2c OK [07:07:47]MH_I2C_Read... [07:07:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:07:47]Read from MH i2c: E2 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: E2 0B 00 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: E2 0B 00 21 05 00 94 AC 99 9D 30 43 D2 F5 90 00 52 [07:07:47]RAPDU: 94 AC 99 9D 30 43 D2 F5 90 00 [07:07:47]wFMCommunicate OK [07:07:47]SAM_PROTO_SignData done [07:07:47]FM_MakeSignedData done [07:07:47]CreateOFDProtocolMessage [07:07:47]wFMCommunicate request_size=4 [07:07:47]MH_SAM_APDU [07:07:47]CAPDU: 80 11 00 00 [07:07:47]Write to MH i2c: E2 08 00 22 05 80 11 00 00 00 00 00 00 A1 [07:07:47]Write i2c OK [07:07:47]MH_I2C_Read... [07:07:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:47]Read from MH i2c: E2 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: E2 17 00 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: E2 17 00 22 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F4 [07:07:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:07:47]wFMCommunicate OK [07:07:47]CreateOFDProtocolMessage done [07:07:47]OFDSenderStorePacket 76999 [07:07:47]StoreOFDPacket docnum=76999 [07:07:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 CF 03 04 01 B7 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 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 34 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 12 00 00 00 F4 03 04 00 C4 0C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C7 2C 01 00 35 04 06 00 D7 2C 73 0E C4 61 94 AC 99 9D 30 43 D2 F5 [07:07:47]CheckFolder [07:07:47]dirname=/storage/ofd_packets [07:07:47]CheckFolder done [07:07:47]ProducePacketName [07:07:47]name=ofd_packets/00076999 [07:07:47]NVStorageSaveData ofd_packets/00076999 [07:07:47]File name is /storage/ofd_packets/00076999 [07:07:47]Write 298 bytes [07:07:47]NVStorageSaveData done [07:07:47]OFDSenderStorePacket done [07:07:47]KKMCreateOFDPacket done [07:07:47]NVStorageSaveData kkm_last_timestamp [07:07:47]File name is /storage/kkm_last_timestamp [07:07:47]Write 4 bytes [07:07:47]NVStorageSaveData done [07:07:47]ExternCall_PrintAddStr [07:07:47]wPrintStart [07:07:47]Write to MH i2c: 01 00 00 23 05 28 [07:07:47]Write i2c OK [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: 01 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: 01 07 00 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: 01 07 00 23 05 00 00 00 00 00 FF 0F 3D [07:07:47]RasterBufferAndPrint [07:07:47]line Счет N : (1)191549 [07:07:47]line ИНН: 02508201610067 [07:07:47]line Контрольно-Кассовый Чек [07:07:47]line ПРОДАЖА [07:07:47]line ТРК (МРК, ГНК) : 51 [07:07:47]line Товар: 2710194210 [07:07:47]line ДТ-К-5 [07:07:47]line 10.980 * 72.90 [07:07:47]line = 800.44 [07:07:47]line НДС 12% НСП 1% [07:07:47]line > о реализуемом товаре [07:07:47]line ОКРУГЛЕНИЕ: -0.44 [07:07:47]line ИТОГО: 800.00 [07:07:47]line Внесено: 800.00 [07:07:47]line СДАЧА: 0.00 [07:07:47]line НСП 1% : 7.08 [07:07:47]line НДС 12% : 85.00 [07:07:47]line Наличными: 800.00 [07:07:47]line Безнал.: 0.00 [07:07:47]line Место: АЗС № 106 "Партнер Нефть" [07:07:47]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:07:47]line СНО: Общий режим [07:07:47]line Чек 18 22.04.2024 07:07 [07:07:47]line Смена: 373 ФФД: 1.0 [07:07:47]line ЗНМ: 0300000141 [07:07:47]line РНМ: 0000000000091573 [07:07:47]line Версия ККМ: 001 [07:07:47]line ФМ: 0000000000874652 [07:07:47]line ФД: 76999 [07:07:47]line ФПД: 236585908880481 [07:07:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T070748&type=1&operation_type=1&fn_number=0000000000874652&fd_number=76999&fm=236585908880481&tin=02508201610067®Number=0000000000091573&sum=80000 [07:07:47]OFD Sender: Processing packet 76999 [packets to send 129, broken 128] [07:07:47]ProducePacketName [07:07:47]name=ofd_packets/00076999 [07:07:47]OFD Sender: To server: pG, [07:07:47]CommunicateWithHost lk.salyk.kg:30040 [07:07:47]ConnectInit lk.salyk.kg [07:07:47]written 0, free lines is 4095 [07:07:47]Connected sock=10 [07:07:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 CF 03 04 01 B7 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 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 34 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 12 00 00 00 F4 03 04 00 C4 0C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C7 2C 01 00 35 04 06 00 D7 2C 73 0E C4 61 94 AC 99 9D 30 43 D2 F5 [07:07:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 55 1B 47 00 46 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 30 38 37 34 36 35 32 10 04 04 00 C7 2C 01 00 F4 03 04 00 47 B4 25 66 B6 04 01 00 00 37 E3 B4 B6 5C 34 DC F4 [07:07:48]CommunicateWithHost err = 0 [07:07:48]CheckOFDResponse [07:07:48]1017 (14) - 77093643461234 [07:07:48]1041 (16) - 0000000000874652 [07:07:48]1040 (4) - 76999 [07:07:48]1012 (4) - 22.04.2024 00:50 [07:07:48]1206 (1) - 0 [07:07:48]OFD Sender: Remove packet 76999 [07:07:48]ProducePacketName [07:07:48]name=ofd_packets/00076999 [07:07:48]NVStorageDeleteData [07:07:48]Write to MH i2c: 01 00 00 4D 05 52 [07:07:48]Write i2c OK [07:07:48]MH_I2C_Read... [07:07:48]Read from MH i2c: 01 [07:07:48]MH_I2C_Read... [07:07:48]Read from MH i2c: 01 07 00 [07:07:48]MH_I2C_Read... [07:07:48]Read from MH i2c: 01 07 00 4D 05 00 00 00 00 00 E3 0C 48 [07:07:48]RasterBufferAndPrint [07:07:48]line [07:07:48]line [07:07:48]line [07:07:48]line [07:07:48]line [07:07:48]written 0, free lines is 3305 [07:07:48]MH_Cut [07:07:48]Write to MH i2c: D1 01 00 54 05 01 2B [07:07:48]Write i2c OK [07:07:48]MH_I2C_Read... [07:07:48]Read from MH i2c: D1 [07:07:48]MH_I2C_Read... [07:07:48]Read from MH i2c: D1 01 00 [07:07:48]MH_I2C_Read... [07:07:48]Read from MH i2c: D1 01 00 54 05 00 2A [07:07:48]Write to MH i2c: 01 00 00 55 05 5A [07:07:48]Write i2c OK [07:07:48]MH_I2C_Read... [07:07:48]OFD Sender: No OFD packet to send [07:07:48]*** Cut start [07:07:48]*** Partial cut [07:07:48]*** CUTSNS_PIN = 1 [07:07:49]*** CUTSNS_PIN = 0 [07:07:49]*** Brake cut motor [07:07:49]Read from MH i2c: 01 [07:07:49]MH_I2C_Read... [07:07:49]*** Stop cut motor [07:07:49]*** Cut end [07:07:49]Read from MH i2c: 01 07 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: 01 07 00 55 05 00 00 00 00 00 FF 0F 6F [07:07:49]process_action close_receipt done [07:07:49]requested_data is exist [07:07:49]produce_requested_data [07:07:49]requested_item fm.sn is exist - process it [07:07:49]wFMCommunicate request_size=4 [07:07:49]MH_SAM_APDU [07:07:49]CAPDU: 80 11 00 00 [07:07:49]Write to MH i2c: E2 08 00 56 05 80 11 00 00 00 00 00 00 D5 [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 17 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 17 00 56 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 28 [07:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:07:49]wFMCommunicate OK [07:07:49]requested_item fd.num is exist - process it [07:07:49]SAM_PROTO_GetFieldsCounters [07:07:49]wFMCommunicate request_size=4 [07:07:49]MH_SAM_APDU [07:07:49]CAPDU: 80 13 00 00 [07:07:49]Write to MH i2c: E2 08 00 57 05 80 13 00 00 00 00 00 00 D8 [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 62 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 62 00 57 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C7 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [07:07:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C7 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:07:49]wFMCommunicate OK [07:07:49]SAM_PROTO_GetFieldsCounters done [07:07:49]requested_item shift.num is exist - process it [07:07:49]requested_item shift.opened is exist - process it [07:07:49]req_shift_opened [07:07:49]FM_GetShiftState [07:07:49]SAM_PROTO_GetShiftState [07:07:49]wFMCommunicate request_size=4 [07:07:49]MH_SAM_APDU [07:07:49]CAPDU: 80 13 01 00 [07:07:49]Write to MH i2c: E2 08 00 58 05 80 13 01 00 00 00 00 00 DA [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 0E 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 0E 00 58 05 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 01 [07:07:49]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [07:07:49]wFMCommunicate OK [07:07:49]SAM_PROTO_GetShiftState done [07:07:49]FM_GetShiftState done [07:07:49]req_shift_opened done [07:07:49]requested_item shift.open_date is exist - process it [07:07:49]req_shift_open_date [07:07:49]req_shift_open_date done [07:07:49]produce_requested_data done [07:07:49]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76999,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [07:07:49]process_action_free close_receipt [07:07:49]json_value_free [07:07:49]json_value_free done [07:07:49]process_json_proto returns [07:07:49]Send response to host [07:07:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76999,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [07:07:49]free response buf [07:07:49]execute_script done [07:07:49]execute_script returns [07:07:49]free content buf [07:07:49]Sock 9.Close socket [07:07:49]Sock 9.Thread stoped [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12: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:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:53]accept exits with 7 [07:19:53]New connection [07:19:53]New thread 3067030884 created [07:19:53]Thread 3067174244 joined [07:19:53]Waiting for new connection... [07:19:53] Sock 7.Parse request [07:19:53]Sock 7.Check first char [07:19:53]Sock 7.First char is OK [07:19:53]request: POST /json_proto HTTP/1.0 [07:19:53]Method: POST [07:19:53]URL: /json_proto [07:19:53]Method is POST - this is cgi request [07:19:53]url: /json_proto [07:19:53]query_string will be loaded in cgi processing [07:19:53]execute_cgi json_proto POST (null) [07:19:53]execute_cgi path=json_proto method=POST [07:19:53]POST find Content-Length [07:19:53]Host: 172.17.62.5:8080 [07:19:53]Content-Length: 1210 [07:19:53]Content-Type: application/json [07:19:53] [07:19:53]POST finish read [07:19:53]Found Content-Length = 1210 [07:19:53]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191550\u000A22.04.2024 07:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53425\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:53]execute_script... [07:19:53]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191550\u000A22.04.2024 07:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53425\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:53]POST & json_proto [07:19:53]process_json_proto [07:19:53]json parsed OK: [07:19:53]protocol is kg_v1.0 [07:19:53]action value=print_text [07:19:53]process_action print_text [07:19:53]cmd_print_text [07:19:53]ExternCall_PrintAddStr [07:19:53]wPrintStart [07:19:53]Write to MH i2c: 01 00 00 59 05 5E [07:19:53]Write i2c OK [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: 01 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: 01 07 00 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: 01 07 00 59 05 00 00 00 00 00 FF 0F 73 [07:19:53]RasterBufferAndPrint [07:19:53]line *****ТОВАРНЫЙ ЧЕК***** [07:19:53]line АЗС 106 [07:19:53]line Партнер нефть [07:19:53]line 02508201610067 [07:19:53]line Кассир : Токторбаева Н. [07:19:53]line Счет N : (1)191550 [07:19:53]line 22.04.2024 07:01 [07:19:53]line ПРОДАЖА [07:19:53]line ТРК (МРК, ГНК): 13 [07:19:53]line Вид ГСМ : 2710194210 [07:19:53]line ДТ-К-5 [07:19:53]line 60.000 x 72.90 [07:19:53]line ИТОГ: 4374.00 [07:19:53]line Тип оплаты: Талоны: Топливная Карта [07:19:53]line 53425 [07:19:53]line ______________________ [07:19:53]line (подпись) [07:19:53]written 0, free lines is 4095 [07:19:53]Write to MH i2c: 01 00 00 6E 05 73 [07:19:53]Write i2c OK [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: 01 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: 01 07 00 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: 01 07 00 6E 05 00 00 00 00 00 F2 0D 79 [07:19:53]RasterBufferAndPrint [07:19:53]line [07:19:53]line [07:19:53]line [07:19:53]line [07:19:53]line [07:19:53]written 0, free lines is 3572 [07:19:53]MH_Cut [07:19:53]Write to MH i2c: D1 01 00 75 05 01 4C [07:19:53]Write i2c OK [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: D1 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: D1 01 00 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: D1 01 00 75 05 00 4B [07:19:53]Write to MH i2c: 01 00 00 76 05 7B [07:19:53]Write i2c OK [07:19:53]MH_I2C_Read... [07:19:53]*** Cut start [07:19:53]*** Partial cut [07:19:53]*** CUTSNS_PIN = 1 [07:19:53]*** CUTSNS_PIN = 0 [07:19:54]*** Brake cut motor [07:19:54]Read from MH i2c: 01 [07:19:54]MH_I2C_Read... [07:19:54]Read from MH i2c: 01 07 00 [07:19:54]MH_I2C_Read... [07:19:54]*** Stop cut motor [07:19:54]*** Cut end [07:19:54]Read from MH i2c: 01 07 00 76 05 00 00 00 00 00 FF 0F 90 [07:19:54]process_action print_text done [07:19:54]requested_data is exist [07:19:54]produce_requested_data [07:19:54]requested_item fm.sn is exist - process it [07:19:54]wFMCommunicate request_size=4 [07:19:54]MH_SAM_APDU [07:19:54]CAPDU: 80 11 00 00 [07:19:54]Write to MH i2c: E2 08 00 77 05 80 11 00 00 00 00 00 00 F6 [07:19:54]Write i2c OK [07:19:54]MH_I2C_Read... [07:19:54]OFD Sender: No OFD packet to send [07:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:54]Read from MH i2c: E2 [07:19:54]MH_I2C_Read... [07:19:54]Read from MH i2c: E2 17 00 [07:19:54]MH_I2C_Read... [07:19:54]Read from MH i2c: E2 17 00 77 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 49 [07:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:19:54]wFMCommunicate OK [07:19:54]requested_item fd.num is exist - process it [07:19:54]SAM_PROTO_GetFieldsCounters [07:19:54]wFMCommunicate request_size=4 [07:19:54]MH_SAM_APDU [07:19:54]CAPDU: 80 13 00 00 [07:19:54]Write to MH i2c: E2 08 00 78 05 80 13 00 00 00 00 00 00 F9 [07:19:54]Write i2c OK [07:19:54]MH_I2C_Read... [07:19:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:19:54]Read from MH i2c: E2 [07:19:54]MH_I2C_Read... [07:19:54]Read from MH i2c: E2 62 00 [07:19:54]MH_I2C_Read... [07:19:54]Read from MH i2c: E2 62 00 78 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C7 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [07:19:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C7 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:19:54]wFMCommunicate OK [07:19:54]SAM_PROTO_GetFieldsCounters done [07:19:54]requested_item shift.num is exist - process it [07:19:54]requested_item shift.opened is exist - process it [07:19:54]req_shift_opened [07:19:54]FM_GetShiftState [07:19:54]SAM_PROTO_GetShiftState [07:19:54]wFMCommunicate request_size=4 [07:19:54]MH_SAM_APDU [07:19:54]CAPDU: 80 13 01 00 [07:19:54]Write to MH i2c: E2 08 00 79 05 80 13 01 00 00 00 00 00 FB [07:19:54]Write i2c OK [07:19:54]MH_I2C_Read... [07:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:54]Read from MH i2c: E2 [07:19:54]MH_I2C_Read... [07:19:54]Read from MH i2c: E2 0E 00 [07:19:54]MH_I2C_Read... [07:19:54]Read from MH i2c: E2 0E 00 79 05 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 22 [07:19:54]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [07:19:54]wFMCommunicate OK [07:19:54]SAM_PROTO_GetShiftState done [07:19:54]FM_GetShiftState done [07:19:54]req_shift_opened done [07:19:54]requested_item shift.open_date is exist - process it [07:19:54]req_shift_open_date [07:19:54]req_shift_open_date done [07:19:54]produce_requested_data done [07:19:54]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":76999,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [07:19:54]process_action_free print_text [07:19:54]json_value_free [07:19:54]json_value_free done [07:19:54]process_json_proto returns [07:19:54]Send response to host [07:19:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":76999,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [07:19:54]free response buf [07:19:54]execute_script done [07:19:54]execute_script returns [07:19:54]free content buf [07:19:54]Sock 7.Close socket [07:19:54]Sock 7.Thread stoped [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:21:59]accept exits with 9 [07:21:59]New connection [07:21:59]New thread 3067174244 created [07:21:59]Thread 3067030884 joined [07:21:59]Waiting for new connection... [07:21:59] Sock 9.Parse request [07:21:59]Sock 9.Check first char [07:21:59]Sock 9.First char is OK [07:21:59]request: POST /json_proto HTTP/1.0 [07:21:59]Method: POST [07:21:59]URL: /json_proto [07:21:59]Method is POST - this is cgi request [07:21:59]url: /json_proto [07:21:59]query_string will be loaded in cgi processing [07:21:59]execute_cgi json_proto POST (null) [07:21:59]execute_cgi path=json_proto method=POST [07:21:59]POST find Content-Length [07:21:59]Host: 172.17.62.5:8080 [07:21:59]Content-Length: 816 [07:21:59]Content-Type: application/json [07:21:59] [07:21:59]POST finish read [07:21:59]Found Content-Length = 816 [07:21:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:59]execute_script... [07: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)191551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:59]POST & json_proto [07:21:59]process_json_proto [07:21:59]json parsed OK: [07:21:59]protocol is kg_v1.0 [07:21:59]action value=close_receipt [07:21:59]process_action close_receipt [07:21:59]cmd_close_receipt [07:21:59]MH_GetDate [07:21:59]Write to MH i2c: F0 00 00 7A 05 6E [07:21:59]Write i2c OK [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: F0 [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: F0 09 00 [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: F0 09 00 7A 05 00 1A 10 26 66 F4 E9 65 64 D3 [07:21:59]GetLastDocTimeStamp 1713769668 [07:21:59]current date 1713770522 [07:21:59]FM_GetShiftState [07:21:59]SAM_PROTO_GetShiftState [07:21:59]wFMCommunicate request_size=4 [07:21:59]MH_SAM_APDU [07:21:59]CAPDU: 80 13 01 00 [07:21:59]Write to MH i2c: E2 08 00 7B 05 80 13 01 00 00 00 00 00 FD [07:21:59]Write i2c OK [07:21:59]MH_I2C_Read... [07:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:00]Read from MH i2c: E2 [07:22:00]MH_I2C_Read... [07:22:00]Read from MH i2c: E2 0E 00 [07:22:00]MH_I2C_Read... [07:22:00]Read from MH i2c: E2 0E 00 7B 05 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 24 [07:22:00]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [07:22:00]wFMCommunicate OK [07:22:00]SAM_PROTO_GetShiftState done [07:22:00]FM_GetShiftState done [07:22:00]opened in 1713745124 [07:22:00]opened+sec_in_day 1713831524 [07:22:00]quantity*price = 100018 [07:22:00]sum+1 = 100020 [07:22:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 19 22.04.2024 07:22 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 77000 ФПД: 25544104681819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T072202&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77000&fm=25544104681819&tin=02508201610067®Number=0000000000091573&sum=100019 [07:22:01]StoreToDocumentArchive [07:22:01]shift 373 fd 77000 [07:22:01]save to /storage/0373/doc_00077000 [07:22:01]save last doc name /storage/0373/doc_00077000 to /storage/kkm_last_doc_name [07:22:01]save OK [07:22:01]Clear old archive folders... [07:22:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:22:01]tlvbuf is 01701450 [07:22:01]SAM_PROTO_ClearQueue [07:22:01]wFMCommunicate request_size=4 [07:22:01]MH_SAM_APDU [07:22:01]CAPDU: 80 09 00 00 [07:22:01]Write to MH i2c: E2 08 00 88 05 80 09 00 00 00 00 00 00 FF [07:22:01]Write i2c OK [07:22:01]MH_I2C_Read... [07:22:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:22:01]Read from MH i2c: E2 [07:22:01]MH_I2C_Read... [07:22:01]Read from MH i2c: E2 03 00 [07:22:01]MH_I2C_Read... [07:22:01]Read from MH i2c: E2 03 00 88 05 00 90 00 01 [07:22:01]RAPDU: 90 00 [07:22:01]wFMCommunicate OK [07:22:01]SAM_PROTO_ClearQueue done [07:22:01]KKMCreateOFDPacket [07:22:01]OFDProtocolAddRootSTLVToBuf [07:22:01]FM_MakeSignedData [07:22:01]FM_MakeSignedData [07:22:01]SAM_PROTO_SignData [07:22:01]wFMCommunicate request_size=4 [07:22:01]MH_SAM_APDU [07:22:01]CAPDU: 80 0D 01 02 [07:22:01]Write to MH i2c: E2 08 00 89 05 80 0D 01 02 00 00 00 00 07 [07:22:01]Write i2c OK [07:22:01]MH_I2C_Read... [07:22:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:22:01]Read from MH i2c: E2 [07:22:01]MH_I2C_Read... [07:22:01]Read from MH i2c: E2 03 00 [07:22:01]MH_I2C_Read... [07:22:01]Read from MH i2c: E2 03 00 89 05 00 90 00 02 [07:22:01]RAPDU: 90 00 [07:22:01]wFMCommunicate OK [07:22:01]wFMCommunicate request_size=255 [07:22:01]MH_SAM_APDU [07:22: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 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 1A 10 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C8 2C 01 00 35 04 06 00 17 3B 73 49 [07:22:01]Write to MH i2c: E2 02 01 8A 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 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 1A 10 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C8 2C 01 00 35 04 06 00 17 3B 73 49 00 00 D5 [07:22:01]Write i2c OK [07:22:01]MH_I2C_Read... [07:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:01]Read from MH i2c: E2 [07:22:01]MH_I2C_Read... [07:22:01]Read from MH i2c: E2 03 00 [07:22:01]MH_I2C_Read... [07:22:01]Read from MH i2c: E2 03 00 8A 05 00 90 00 03 [07:22:01]RAPDU: 90 00 [07:22:01]wFMCommunicate OK [07:22:01]wFMCommunicate request_size=7 [07:22:01]MH_SAM_APDU [07:22:01]CAPDU: 80 0D 02 02 02 21 5B [07:22:01]Write to MH i2c: E2 0A 00 8B 05 80 0D 02 02 02 00 21 5B 00 00 8A [07:22:01]Write i2c OK [07:22:01]MH_I2C_Read... [07:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:01]Read from MH i2c: E2 [07:22:01]MH_I2C_Read... [07:22:01]Read from MH i2c: E2 03 00 [07:22:01]MH_I2C_Read... [07:22:01]Read from MH i2c: E2 03 00 8B 05 00 90 00 04 [07:22:01]RAPDU: 90 00 [07:22:01]wFMCommunicate OK [07:22:01]wFMCommunicate request_size=4 [07:22:01]MH_SAM_APDU [07:22:01]CAPDU: 80 0D 03 02 [07:22:01]Write to MH i2c: E2 08 00 8C 05 80 0D 03 02 00 00 00 00 0C [07:22:01]Write i2c OK [07:22:01]MH_I2C_Read... [07:22:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:22:01]Read from MH i2c: E2 [07:22:01]MH_I2C_Read... [07:22:01]Read from MH i2c: E2 0B 00 [07:22:01]MH_I2C_Read... [07:22:01]Read from MH i2c: E2 0B 00 8C 05 00 DF 46 A1 2C 1C 4C 85 F7 90 00 E3 [07:22:01]RAPDU: DF 46 A1 2C 1C 4C 85 F7 90 00 [07:22:01]wFMCommunicate OK [07:22:01]SAM_PROTO_SignData done [07:22:01]FM_MakeSignedData done [07:22:01]CreateOFDProtocolMessage [07:22:01]wFMCommunicate request_size=4 [07:22:01]MH_SAM_APDU [07:22:01]CAPDU: 80 11 00 00 [07:22:01]Write to MH i2c: E2 08 00 8D 05 80 11 00 00 00 00 00 00 0C [07:22:01]Write i2c OK [07:22:01]MH_I2C_Read... [07:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:01]Read from MH i2c: E2 [07:22:01]MH_I2C_Read... [07:22:01]Read from MH i2c: E2 17 00 [07:22:01]MH_I2C_Read... [07:22:01]Read from MH i2c: E2 17 00 8D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5F [07:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:22:01]wFMCommunicate OK [07:22:01]CreateOFDProtocolMessage done [07:22:01]OFDSenderStorePacket 77000 [07:22:01]StoreOFDPacket docnum=77000 [07:22:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 76 FD 04 01 F5 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 1A 10 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C8 2C 01 00 35 04 06 00 17 3B 73 49 21 5B DF 46 A1 2C 1C 4C 85 F7 [07:22:01]CheckFolder [07:22:01]dirname=/storage/ofd_packets [07:22:01]CheckFolder done [07:22:01]ProducePacketName [07:22:01]name=ofd_packets/00077000 [07:22:01]NVStorageSaveData ofd_packets/00077000 [07:22:01]File name is /storage/ofd_packets/00077000 [07:22:01]Write 298 bytes [07:22:01]NVStorageSaveData done [07:22:01]OFDSenderStorePacket done [07:22:01]KKMCreateOFDPacket done [07:22:01]NVStorageSaveData kkm_last_timestamp [07:22:01]File name is /storage/kkm_last_timestamp [07:22:01]Write 4 bytes [07:22:01]NVStorageSaveData done [07:22:01]ExternCall_PrintAddStr [07:22:01]wPrintStart [07:22:01]Write to MH i2c: 01 00 00 8E 05 93 [07:22:01]Write i2c OK [07:22:01]MH_I2C_Read... [07:22:01]Read from MH i2c: 01 [07:22:01]MH_I2C_Read... [07:22:01]Read from MH i2c: 01 07 00 [07:22:01]MH_I2C_Read... [07:22:01]Read from MH i2c: 01 07 00 8E 05 00 00 00 00 00 FF 0F A8 [07:22:01]RasterBufferAndPrint [07:22:01]line Счет N : (1)191551 [07:22:01]line ИНН: 02508201610067 [07:22:01]line Контрольно-Кассовый Чек [07:22:01]line ПРОДАЖА [07:22:01]line ТРК (МРК, ГНК) : 13 [07:22:01]line Товар: 2710194210 [07:22:01]line ДТ-К-5 [07:22:01]line 13.720 * 72.90 [07:22:01]line = 1000.19 [07:22:01]line НДС 12% НСП 1% [07:22:01]line > о реализуемом товаре [07:22:01]line ИТОГО: 1000.19 [07:22:01]line НСП 1% : 8.85 [07:22:01]line НДС 12% : 106.21 [07:22:01]line Наличными: 0.00 [07:22:01]line Безнал.: 1000.19 [07:22:01]line Место: АЗС № 106 "Партнер Нефть" [07:22:01]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:22:01]line СНО: Общий режим [07:22:01]line Чек 19 22.04.2024 07:22 [07:22:01]line Смена: 373 ФФД: 1.0 [07:22:01]line ЗНМ: 0300000141 [07:22:01]line РНМ: 0000000000091573 [07:22:01]line Версия ККМ: 001 [07:22:01]line Платежная система: Бакай Банк [07:22:01]line ФМ: 0000000000874652 [07:22:01]line ФД: 77000 [07:22:01]line ФПД: 25544104681819 [07:22:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T072202&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77000&fm=25544104681819&tin=02508201610067®Number=0000000000091573&sum=100019 [07:22:02]OFD Sender: Processing packet 77000 [packets to send 129, broken 128] [07:22:02]ProducePacketName [07:22:02]name=ofd_packets/00077000 [07:22:02]OFD Sender: To server: pG, [07:22:02]CommunicateWithHost lk.salyk.kg:30040 [07:22:02]ConnectInit lk.salyk.kg [07:22:02]written 0, free lines is 4095 [07:22:02]Connected sock=10 [07:22:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 76 FD 04 01 F5 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 1A 10 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C8 2C 01 00 35 04 06 00 17 3B 73 49 21 5B DF 46 A1 2C 1C 4C 85 F7 [07:22:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 99 59 47 00 FE 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C8 2C 01 00 F4 03 04 00 9D B7 25 66 B6 04 01 00 00 9C FD EB 42 64 AD 60 E6 [07:22:02]CommunicateWithHost err = 0 [07:22:02]CheckOFDResponse [07:22:02]1017 (14) - 77093643461234 [07:22:02]1041 (16) - 0000000000874652 [07:22:02]1040 (4) - 77000 [07:22:02]1012 (4) - 22.04.2024 01:04 [07:22:02]1206 (1) - 0 [07:22:02]OFD Sender: Remove packet 77000 [07:22:02]ProducePacketName [07:22:02]name=ofd_packets/00077000 [07:22:02]NVStorageDeleteData [07:22:02]Write to MH i2c: 01 00 00 B7 05 BC [07:22:02]Write i2c OK [07:22:02]MH_I2C_Read... [07:22:02]Read from MH i2c: 01 [07:22:02]MH_I2C_Read... [07:22:02]Read from MH i2c: 01 07 00 [07:22:02]MH_I2C_Read... [07:22:02]Read from MH i2c: 01 07 00 B7 05 00 00 00 00 00 0B 0D DB [07:22:02]RasterBufferAndPrint [07:22:02]line [07:22:02]line [07:22:02]line [07:22:02]line [07:22:02]line [07:22:02]written 0, free lines is 3348 [07:22:02]MH_Cut [07:22:02]Write to MH i2c: D1 01 00 BE 05 01 95 [07:22:02]Write i2c OK [07:22:02]MH_I2C_Read... [07:22:02]Read from MH i2c: D1 [07:22:02]MH_I2C_Read... [07:22:02]Read from MH i2c: D1 01 00 [07:22:02]MH_I2C_Read... [07:22:02]Read from MH i2c: D1 01 00 BE 05 00 94 [07:22:02]Write to MH i2c: 01 00 00 BF 05 C4 [07:22:02]Write i2c OK [07:22:02]MH_I2C_Read... [07:22:02]OFD Sender: No OFD packet to send [07:22:03]*** Cut start [07:22:03]*** Partial cut [07:22:03]*** CUTSNS_PIN = 1 [07:22:03]*** CUTSNS_PIN = 0 [07:22:03]*** Brake cut motor [07:22:03]Read from MH i2c: 01 [07:22:03]MH_I2C_Read... [07:22:03]*** Stop cut motor [07:22:03]*** Cut end [07:22:03]Read from MH i2c: 01 07 00 [07:22:03]MH_I2C_Read... [07:22:03]Read from MH i2c: 01 07 00 BF 05 00 00 00 00 00 FF 0F D9 [07:22:03]process_action close_receipt done [07:22:03]requested_data is exist [07:22:03]produce_requested_data [07:22:03]requested_item fm.sn is exist - process it [07:22:03]wFMCommunicate request_size=4 [07:22:03]MH_SAM_APDU [07:22:03]CAPDU: 80 11 00 00 [07:22:03]Write to MH i2c: E2 08 00 C0 05 80 11 00 00 00 00 00 00 3F [07:22:03]Write i2c OK [07:22:03]MH_I2C_Read... [07:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:03]Read from MH i2c: E2 [07:22:03]MH_I2C_Read... [07:22:03]Read from MH i2c: E2 17 00 [07:22:03]MH_I2C_Read... [07:22:03]Read from MH i2c: E2 17 00 C0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 92 [07:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:22:03]wFMCommunicate OK [07:22:03]requested_item fd.num is exist - process it [07:22:03]SAM_PROTO_GetFieldsCounters [07:22:03]wFMCommunicate request_size=4 [07:22:03]MH_SAM_APDU [07:22:03]CAPDU: 80 13 00 00 [07:22:03]Write to MH i2c: E2 08 00 C1 05 80 13 00 00 00 00 00 00 42 [07:22:03]Write i2c OK [07:22:03]MH_I2C_Read... [07:22:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:22:04]Read from MH i2c: E2 [07:22:04]MH_I2C_Read... [07:22:04]Read from MH i2c: E2 62 00 [07:22:04]MH_I2C_Read... [07:22:04]Read from MH i2c: E2 62 00 C1 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C8 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [07:22:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C8 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:22:04]wFMCommunicate OK [07:22:04]SAM_PROTO_GetFieldsCounters done [07:22:04]requested_item shift.num is exist - process it [07:22:04]requested_item shift.opened is exist - process it [07:22:04]req_shift_opened [07:22:04]FM_GetShiftState [07:22:04]SAM_PROTO_GetShiftState [07:22:04]wFMCommunicate request_size=4 [07:22:04]MH_SAM_APDU [07:22:04]CAPDU: 80 13 01 00 [07:22:04]Write to MH i2c: E2 08 00 C2 05 80 13 01 00 00 00 00 00 44 [07:22:04]Write i2c OK [07:22:04]MH_I2C_Read... [07:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:04]Read from MH i2c: E2 [07:22:04]MH_I2C_Read... [07:22:04]Read from MH i2c: E2 0E 00 [07:22:04]MH_I2C_Read... [07:22:04]Read from MH i2c: E2 0E 00 C2 05 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 6B [07:22:04]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [07:22:04]wFMCommunicate OK [07:22:04]SAM_PROTO_GetShiftState done [07:22:04]FM_GetShiftState done [07:22:04]req_shift_opened done [07:22:04]requested_item shift.open_date is exist - process it [07:22:04]req_shift_open_date [07:22:04]req_shift_open_date done [07:22:04]produce_requested_data done [07:22:04]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77000,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [07:22:04]process_action_free close_receipt [07:22:04]json_value_free [07:22:04]json_value_free done [07:22:04]process_json_proto returns [07:22:04]Send response to host [07:22:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77000,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [07:22:04]free response buf [07:22:04]execute_script done [07:22:04]execute_script returns [07:22:04]free content buf [07:22:04]Sock 9.Close socket [07:22:04]Sock 9.Thread stoped [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:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:52]accept exits with 7 [07:32:52]New connection [07:32:52]New thread 3067030884 created [07:32:52]Thread 3067174244 joined [07:32:52]Waiting for new connection... [07:32:52] Sock 7.Parse request [07:32:52]Sock 7.Check first char [07:32:52]Sock 7.First char is OK [07:32:52]request: POST /json_proto HTTP/1.0 [07:32:52]Method: POST [07:32:52]URL: /json_proto [07:32:52]Method is POST - this is cgi request [07:32:52]url: /json_proto [07:32:52]query_string will be loaded in cgi processing [07:32:52]execute_cgi json_proto POST (null) [07:32:52]execute_cgi path=json_proto method=POST [07:32:52]POST find Content-Length [07:32:52]Host: 172.17.62.5:8080 [07:32:52]Content-Length: 670 [07:32:52]Content-Type: application/json [07:32:52] [07:32:52]POST finish read [07:32:52]Found Content-Length = 670 [07:32:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 9.940, "sum" : 650.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:52]execute_script... [07: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)191552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 9.940, "sum" : 650.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:52]POST & json_proto [07:32:52]process_json_proto [07:32:52]json parsed OK: [07:32:52]protocol is kg_v1.0 [07:32:52]action value=close_receipt [07:32:52]process_action close_receipt [07:32:52]cmd_close_receipt [07:32:52]MH_GetDate [07:32:52]Write to MH i2c: F0 00 00 C3 05 B7 [07:32:52]Write i2c OK [07:32:52]MH_I2C_Read... [07:32:52]Read from MH i2c: F0 [07:32:52]MH_I2C_Read... [07:32:52]Read from MH i2c: F0 09 00 [07:32:52]MH_I2C_Read... [07:32:52]Read from MH i2c: F0 09 00 C3 05 00 A6 12 26 66 F4 E9 65 64 AA [07:32:52]GetLastDocTimeStamp 1713770522 [07:32:52]current date 1713771174 [07:32:52]FM_GetShiftState [07:32:52]SAM_PROTO_GetShiftState [07:32:52]wFMCommunicate request_size=4 [07:32:52]MH_SAM_APDU [07:32:52]CAPDU: 80 13 01 00 [07:32:52]Write to MH i2c: E2 08 00 C4 05 80 13 01 00 00 00 00 00 46 [07:32:52]Write i2c OK [07:32:52]MH_I2C_Read... [07:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:52]Read from MH i2c: E2 [07:32:52]MH_I2C_Read... [07:32:52]Read from MH i2c: E2 0E 00 [07:32:52]MH_I2C_Read... [07:32:52]Read from MH i2c: E2 0E 00 C4 05 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 6D [07:32:52]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [07:32:52]wFMCommunicate OK [07:32:52]SAM_PROTO_GetShiftState done [07:32:52]FM_GetShiftState done [07:32:52]opened in 1713745124 [07:32:52]opened+sec_in_day 1713831524 [07:32:52]quantity*price = 65007 [07:32:52]sum+1 = 65009 [07:32:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 20 22.04.2024 07:32 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77001 ФПД: 218106396165218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T073254&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77001&fm=218106396165218&tin=02508201610067®Number=0000000000091573&sum=65000 [07:32:53]StoreToDocumentArchive [07:32:53]shift 373 fd 77001 [07:32:53]save to /storage/0373/doc_00077001 [07:32:53]save last doc name /storage/0373/doc_00077001 to /storage/kkm_last_doc_name [07:32:53]save OK [07:32:53]Clear old archive folders... [07:32:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:32:53]tlvbuf is 017544E0 [07:32:53]SAM_PROTO_ClearQueue [07:32:53]wFMCommunicate request_size=4 [07:32:53]MH_SAM_APDU [07:32:53]CAPDU: 80 09 00 00 [07:32:53]Write to MH i2c: E2 08 00 D1 05 80 09 00 00 00 00 00 00 48 [07:32:53]Write i2c OK [07:32:53]MH_I2C_Read... [07:32:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:32:53]Read from MH i2c: E2 [07:32:53]MH_I2C_Read... [07:32:53]Read from MH i2c: E2 03 00 [07:32:53]MH_I2C_Read... [07:32:53]Read from MH i2c: E2 03 00 D1 05 00 90 00 4A [07:32:53]RAPDU: 90 00 [07:32:53]wFMCommunicate OK [07:32:53]SAM_PROTO_ClearQueue done [07:32:53]KKMCreateOFDPacket [07:32:53]OFDProtocolAddRootSTLVToBuf [07:32:53]FM_MakeSignedData [07:32:53]FM_MakeSignedData [07:32:53]SAM_PROTO_SignData [07:32:53]wFMCommunicate request_size=4 [07:32:53]MH_SAM_APDU [07:32:53]CAPDU: 80 0D 01 02 [07:32:53]Write to MH i2c: E2 08 00 D2 05 80 0D 01 02 00 00 00 00 50 [07:32:53]Write i2c OK [07:32:53]MH_I2C_Read... [07:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:32:53]Read from MH i2c: E2 [07:32:53]MH_I2C_Read... [07:32:53]Read from MH i2c: E2 03 00 [07:32:53]MH_I2C_Read... [07:32:53]Read from MH i2c: E2 03 00 D2 05 00 90 00 4B [07:32:53]RAPDU: 90 00 [07:32:53]wFMCommunicate OK [07:32:53]wFMCommunicate request_size=255 [07:32:53]MH_SAM_APDU [07:32:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 F0 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A6 12 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C9 2C 01 00 35 04 06 00 [07:32:53]Write to MH i2c: E2 02 01 D3 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 F0 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A6 12 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C9 2C 01 00 35 04 06 00 00 00 63 [07:32:53]Write i2c OK [07:32:53]MH_I2C_Read... [07:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:54]Read from MH i2c: E2 [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: E2 03 00 [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: E2 03 00 D3 05 00 90 00 4C [07:32:54]RAPDU: 90 00 [07:32:54]wFMCommunicate OK [07:32:54]wFMCommunicate request_size=11 [07:32:54]MH_SAM_APDU [07:32:54]CAPDU: 80 0D 02 02 06 C6 5D DA 44 44 62 [07:32:54]Write to MH i2c: E2 0E 00 D4 05 80 0D 02 02 06 00 C6 5D DA 44 44 62 00 00 46 [07:32:54]Write i2c OK [07:32:54]MH_I2C_Read... [07:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:54]Read from MH i2c: E2 [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: E2 03 00 [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: E2 03 00 D4 05 00 90 00 4D [07:32:54]RAPDU: 90 00 [07:32:54]wFMCommunicate OK [07:32:54]wFMCommunicate request_size=4 [07:32:54]MH_SAM_APDU [07:32:54]CAPDU: 80 0D 03 02 [07:32:54]Write to MH i2c: E2 08 00 D5 05 80 0D 03 02 00 00 00 00 55 [07:32:54]Write i2c OK [07:32:54]MH_I2C_Read... [07:32:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:32:54]Read from MH i2c: E2 [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: E2 0B 00 [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: E2 0B 00 D5 05 00 2F 8A B3 47 46 72 43 7B 90 00 7F [07:32:54]RAPDU: 2F 8A B3 47 46 72 43 7B 90 00 [07:32:54]wFMCommunicate OK [07:32:54]SAM_PROTO_SignData done [07:32:54]FM_MakeSignedData done [07:32:54]CreateOFDProtocolMessage [07:32:54]wFMCommunicate request_size=4 [07:32:54]MH_SAM_APDU [07:32:54]CAPDU: 80 11 00 00 [07:32:54]Write to MH i2c: E2 08 00 D6 05 80 11 00 00 00 00 00 00 55 [07:32:54]Write i2c OK [07:32:54]MH_I2C_Read... [07:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:54]Read from MH i2c: E2 [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: E2 17 00 [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: E2 17 00 D6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A8 [07:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:32:54]wFMCommunicate OK [07:32:54]CreateOFDProtocolMessage done [07:32:54]OFDSenderStorePacket 77001 [07:32:54]StoreOFDPacket docnum=77001 [07:32:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 57 2B 08 01 6D A3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 F0 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A6 12 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C9 2C 01 00 35 04 06 00 C6 5D DA 44 44 62 2F 8A B3 47 46 72 43 7B [07:32:54]CheckFolder [07:32:54]dirname=/storage/ofd_packets [07:32:54]CheckFolder done [07:32:54]ProducePacketName [07:32:54]name=ofd_packets/00077001 [07:32:54]NVStorageSaveData ofd_packets/00077001 [07:32:54]File name is /storage/ofd_packets/00077001 [07:32:54]Write 302 bytes [07:32:54]NVStorageSaveData done [07:32:54]OFDSenderStorePacket done [07:32:54]KKMCreateOFDPacket done [07:32:54]NVStorageSaveData kkm_last_timestamp [07:32:54]File name is /storage/kkm_last_timestamp [07:32:54]Write 4 bytes [07:32:54]NVStorageSaveData done [07:32:54]ExternCall_PrintAddStr [07:32:54]wPrintStart [07:32:54]Write to MH i2c: 01 00 00 D7 05 DC [07:32:54]Write i2c OK [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: 01 [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: 01 07 00 [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: 01 07 00 D7 05 00 00 00 00 00 FF 0F F1 [07:32:54]RasterBufferAndPrint [07:32:54]line Счет N : (1)191552 [07:32:54]line ИНН: 02508201610067 [07:32:54]line Контрольно-Кассовый Чек [07:32:54]line ПРОДАЖА [07:32:54]line ТРК (МРК, ГНК) : 31 [07:32:54]line Товар: 2710124130 [07:32:54]line SUPER 92-К-5 [07:32:54]line 9.940 * 65.40 [07:32:54]line = 650.08 [07:32:54]line НДС 12% НСП 1% [07:32:54]line > о реализуемом товаре [07:32:54]line ОКРУГЛЕНИЕ: -0.08 [07:32:54]line ИТОГО: 650.00 [07:32:54]line Внесено: 650.00 [07:32:54]line СДАЧА: 0.00 [07:32:54]line НСП 1% : 5.75 [07:32:54]line НДС 12% : 69.03 [07:32:54]line Наличными: 650.00 [07:32:54]line Безнал.: 0.00 [07:32:54]line Место: АЗС № 106 "Партнер Нефть" [07:32:54]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:32:54]line СНО: Общий режим [07:32:54]line Чек 20 22.04.2024 07:32 [07:32:54]line Смена: 373 ФФД: 1.0 [07:32:54]line ЗНМ: 0300000141 [07:32:54]line РНМ: 0000000000091573 [07:32:54]line Версия ККМ: 001 [07:32:54]line ФМ: 0000000000874652 [07:32:54]line ФД: 77001 [07:32:54]line ФПД: 218106396165218 [07:32:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T073254&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77001&fm=218106396165218&tin=02508201610067®Number=0000000000091573&sum=65000 [07:32:54]written 0, free lines is 4095 [07:32:54]OFD Sender: Processing packet 77001 [packets to send 129, broken 128] [07:32:54]ProducePacketName [07:32:54]name=ofd_packets/00077001 [07:32:54]OFD Sender: To server: pG, [07:32:54]CommunicateWithHost lk.salyk.kg:30040 [07:32:54]ConnectInit lk.salyk.kg [07:32:54]Connected sock=10 [07:32:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 57 2B 08 01 6D A3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 F0 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A6 12 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C9 2C 01 00 35 04 06 00 C6 5D DA 44 44 62 2F 8A B3 47 46 72 43 7B [07:32:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A3 5F 47 00 91 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 C9 2C 01 00 F4 03 04 00 2A BA 25 66 B6 04 01 00 00 F8 E2 9E 11 4E 76 55 D2 [07:32:55]CommunicateWithHost err = 0 [07:32:55]CheckOFDResponse [07:32:55]1017 (14) - 77093643461234 [07:32:55]1041 (16) - 0000000000874652 [07:32:55]1040 (4) - 77001 [07:32:55]1012 (4) - 22.04.2024 01:15 [07:32:55]1206 (1) - 0 [07:32:55]OFD Sender: Remove packet 77001 [07:32:55]ProducePacketName [07:32:55]name=ofd_packets/00077001 [07:32:55]NVStorageDeleteData [07:32:55]Write to MH i2c: 01 00 00 01 06 07 [07:32:55]Write i2c OK [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: 01 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: 01 07 00 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: 01 07 00 01 06 00 00 00 00 00 F0 0C 0A [07:32:55]RasterBufferAndPrint [07:32:55]line [07:32:55]line [07:32:55]line [07:32:55]line [07:32:55]line [07:32:55]written 0, free lines is 3320 [07:32:55]MH_Cut [07:32:55]Write to MH i2c: D1 01 00 08 06 01 E0 [07:32:55]Write i2c OK [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: D1 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: D1 01 00 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: D1 01 00 08 06 00 DF [07:32:55]Write to MH i2c: 01 00 00 09 06 0F [07:32:55]Write i2c OK [07:32:55]MH_I2C_Read... [07:32:55]OFD Sender: No OFD packet to send [07:32:55]*** Cut start [07:32:55]*** Partial cut [07:32:55]*** CUTSNS_PIN = 1 [07:32:55]*** CUTSNS_PIN = 0 [07:32:56]*** Brake cut motor [07:32:56]Read from MH i2c: 01 [07:32:56]MH_I2C_Read... [07:32:56]*** Stop cut motor [07:32:56]*** Cut end [07:32:56]Read from MH i2c: 01 07 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: 01 07 00 09 06 00 00 00 00 00 FF 0F 24 [07:32:56]process_action close_receipt done [07:32:56]requested_data is exist [07:32:56]produce_requested_data [07:32:56]requested_item fm.sn is exist - process it [07:32:56]wFMCommunicate request_size=4 [07:32:56]MH_SAM_APDU [07:32:56]CAPDU: 80 11 00 00 [07:32:56]Write to MH i2c: E2 08 00 0A 06 80 11 00 00 00 00 00 00 8A [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 17 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 17 00 0A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DD [07:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:32:56]wFMCommunicate OK [07:32:56]requested_item fd.num is exist - process it [07:32:56]SAM_PROTO_GetFieldsCounters [07:32:56]wFMCommunicate request_size=4 [07:32:56]MH_SAM_APDU [07:32:56]CAPDU: 80 13 00 00 [07:32:56]Write to MH i2c: E2 08 00 0B 06 80 13 00 00 00 00 00 00 8D [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 62 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 62 00 0B 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C9 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [07:32:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C9 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:32:56]wFMCommunicate OK [07:32:56]SAM_PROTO_GetFieldsCounters done [07:32:56]requested_item shift.num is exist - process it [07:32:56]requested_item shift.opened is exist - process it [07:32:56]req_shift_opened [07:32:56]FM_GetShiftState [07:32:56]SAM_PROTO_GetShiftState [07:32:56]wFMCommunicate request_size=4 [07:32:56]MH_SAM_APDU [07:32:56]CAPDU: 80 13 01 00 [07:32:56]Write to MH i2c: E2 08 00 0C 06 80 13 01 00 00 00 00 00 8F [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 0E 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 0E 00 0C 06 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 B6 [07:32:56]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [07:32:56]wFMCommunicate OK [07:32:56]SAM_PROTO_GetShiftState done [07:32:56]FM_GetShiftState done [07:32:56]req_shift_opened done [07:32:56]requested_item shift.open_date is exist - process it [07:32:56]req_shift_open_date [07:32:56]req_shift_open_date done [07:32:56]produce_requested_data done [07:32:56]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77001,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [07:32:56]process_action_free close_receipt [07:32:56]json_value_free [07:32:56]json_value_free done [07:32:56]process_json_proto returns [07:32:56]Send response to host [07:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77001,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [07:32:56]free response buf [07:32:56]execute_script done [07:32:56]execute_script returns [07:32:56]free content buf [07:32:56]Sock 7.Close socket [07:32:56]Sock 7.Thread stoped [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:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43: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:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:47:57]accept exits with 9 [07:47:57]New connection [07:47:57]New thread 3067174244 created [07:47:57]Thread 3067030884 joined [07:47:57]Waiting for new connection... [07:47:57] Sock 9.Parse request [07:47:57]Sock 9.Check first char [07:47:57]Sock 9.First char is OK [07:47:57]request: POST /json_proto HTTP/1.0 [07:47:57]Method: POST [07:47:57]URL: /json_proto [07:47:57]Method is POST - this is cgi request [07:47:57]url: /json_proto [07:47:57]query_string will be loaded in cgi processing [07:47:57]execute_cgi json_proto POST (null) [07:47:57]execute_cgi path=json_proto method=POST [07:47:57]POST find Content-Length [07:47:57]Host: 172.17.62.5:8080 [07:47:57]Content-Length: 1199 [07:47:57]Content-Type: application/json [07:47:57] [07:47:57]POST finish read [07:47:57]Found Content-Length = 1199 [07:47:57]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191553\u000A22.04.2024 07:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731619\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:57]execute_script... [07:47:57]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191553\u000A22.04.2024 07:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731619\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:57]POST & json_proto [07:47:57]process_json_proto [07:47:57]json parsed OK: [07:47:57]protocol is kg_v1.0 [07:47:57]action value=print_text [07:47:57]process_action print_text [07:47:57]cmd_print_text [07:47:57]ExternCall_PrintAddStr [07:47:57]wPrintStart [07:47:57]Write to MH i2c: 01 00 00 0D 06 13 [07:47:57]Write i2c OK [07:47:57]MH_I2C_Read... [07:47:57]Read from MH i2c: 01 [07:47:57]MH_I2C_Read... [07:47:57]Read from MH i2c: 01 07 00 [07:47:57]MH_I2C_Read... [07:47:57]Read from MH i2c: 01 07 00 0D 06 00 00 00 00 00 FF 0F 28 [07:47:57]RasterBufferAndPrint [07:47:57]line *****ТОВАРНЫЙ ЧЕК***** [07:47:57]line АЗС 106 [07:47:57]line Партнер нефть [07:47:57]line 02508201610067 [07:47:57]line Кассир : Токторбаева Н. [07:47:57]line Счет N : (1)191553 [07:47:57]line 22.04.2024 07:29 [07:47:57]line ПРОДАЖА [07:47:57]line ТРК (МРК, ГНК): 23 [07:47:57]line Вид ГСМ : 2710194210 [07:47:57]line ДТ-К-5 [07:47:57]line 10.000 x 72.90 [07:47:57]line ИТОГ: 729.00 [07:47:57]line Тип оплаты: Талоны: Партнер нефть [07:47:57]line 3731619 [07:47:57]line ______________________ [07:47:57]line (подпись) [07:47:57]written 0, free lines is 4095 [07:47:57]Write to MH i2c: 01 00 00 22 06 28 [07:47:57]Write i2c OK [07:47:57]MH_I2C_Read... [07:47:57]Read from MH i2c: 01 [07:47:57]MH_I2C_Read... [07:47:57]Read from MH i2c: 01 07 00 [07:47:57]MH_I2C_Read... [07:47:57]Read from MH i2c: 01 07 00 22 06 00 00 00 00 00 F3 0D 2F [07:47:57]RasterBufferAndPrint [07:47:57]line [07:47:57]line [07:47:57]line [07:47:57]line [07:47:57]line [07:47:57]written 0, free lines is 3573 [07:47:57]MH_Cut [07:47:57]Write to MH i2c: D1 01 00 29 06 01 01 [07:47:57]Write i2c OK [07:47:57]MH_I2C_Read... [07:47:57]Read from MH i2c: D1 [07:47:57]MH_I2C_Read... [07:47:57]Read from MH i2c: D1 01 00 [07:47:57]MH_I2C_Read... [07:47:57]Read from MH i2c: D1 01 00 29 06 00 00 [07:47:57]Write to MH i2c: 01 00 00 2A 06 30 [07:47:57]Write i2c OK [07:47:57]MH_I2C_Read... [07:47:57]*** Cut start [07:47:57]*** Partial cut [07:47:57]*** CUTSNS_PIN = 1 [07:47:58]*** CUTSNS_PIN = 0 [07:47:58]*** Brake cut motor [07:47:58]Read from MH i2c: 01 [07:47:58]MH_I2C_Read... [07:47:58]Read from MH i2c: 01 07 00 [07:47:58]MH_I2C_Read... [07:47:58]*** Stop cut motor [07:47:58]*** Cut end [07:47:58]Read from MH i2c: 01 07 00 2A 06 00 00 00 00 00 FF 0F 45 [07:47:58]process_action print_text done [07:47:58]requested_data is exist [07:47:58]produce_requested_data [07:47:58]requested_item fm.sn is exist - process it [07:47:58]wFMCommunicate request_size=4 [07:47:58]MH_SAM_APDU [07:47:58]CAPDU: 80 11 00 00 [07:47:58]Write to MH i2c: E2 08 00 2B 06 80 11 00 00 00 00 00 00 AB [07:47:58]Write i2c OK [07:47:58]MH_I2C_Read... [07:47:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:58]Read from MH i2c: E2 [07:47:58]MH_I2C_Read... [07:47:58]Read from MH i2c: E2 17 00 [07:47:58]MH_I2C_Read... [07:47:58]Read from MH i2c: E2 17 00 2B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FE [07:47:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:47:58]wFMCommunicate OK [07:47:58]requested_item fd.num is exist - process it [07:47:58]SAM_PROTO_GetFieldsCounters [07:47:58]wFMCommunicate request_size=4 [07:47:58]MH_SAM_APDU [07:47:58]CAPDU: 80 13 00 00 [07:47:58]Write to MH i2c: E2 08 00 2C 06 80 13 00 00 00 00 00 00 AE [07:47:58]Write i2c OK [07:47:58]MH_I2C_Read... [07:47:58]Read from MH i2c: E2 [07:47:58]MH_I2C_Read... [07:47:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:58]Read from MH i2c: E2 62 00 [07:47:58]MH_I2C_Read... [07:47:58]Read from MH i2c: E2 62 00 2C 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C9 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [07:47:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 C9 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:47:58]wFMCommunicate OK [07:47:58]SAM_PROTO_GetFieldsCounters done [07:47:58]requested_item shift.num is exist - process it [07:47:58]requested_item shift.opened is exist - process it [07:47:58]req_shift_opened [07:47:58]FM_GetShiftState [07:47:58]SAM_PROTO_GetShiftState [07:47:58]wFMCommunicate request_size=4 [07:47:58]MH_SAM_APDU [07:47:58]CAPDU: 80 13 01 00 [07:47:58]Write to MH i2c: E2 08 00 2D 06 80 13 01 00 00 00 00 00 B0 [07:47:58]Write i2c OK [07:47:58]MH_I2C_Read... [07:47:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:58]Read from MH i2c: E2 [07:47:58]MH_I2C_Read... [07:47:58]Read from MH i2c: E2 0E 00 [07:47:58]MH_I2C_Read... [07:47:58]Read from MH i2c: E2 0E 00 2D 06 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 D7 [07:47:58]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [07:47:58]wFMCommunicate OK [07:47:58]SAM_PROTO_GetShiftState done [07:47:58]FM_GetShiftState done [07:47:58]req_shift_opened done [07:47:58]requested_item shift.open_date is exist - process it [07:47:58]req_shift_open_date [07:47:58]req_shift_open_date done [07:47:58]produce_requested_data done [07:47:58]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77001,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [07:47:58]process_action_free print_text [07:47:58]json_value_free [07:47:58]json_value_free done [07:47:58]process_json_proto returns [07:47:58]Send response to host [07:47:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77001,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [07:47:58]free response buf [07:47:58]execute_script done [07:47:58]execute_script returns [07:47:58]free content buf [07:47:58]Sock 9.Close socket [07:47:58]Sock 9.Thread stoped [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]accept exits with 7 [07:48:11]New connection [07:48:11]New thread 3067030884 created [07:48:11]Thread 3067174244 joined [07:48:11]Waiting for new connection... [07:48:11] Sock 7.Parse request [07:48:11]Sock 7.Check first char [07:48:11]Sock 7.First char is OK [07:48:11]request: POST /json_proto HTTP/1.0 [07:48:11]Method: POST [07:48:11]URL: /json_proto [07:48:11]Method is POST - this is cgi request [07:48:11]url: /json_proto [07:48:11]query_string will be loaded in cgi processing [07:48:11]execute_cgi json_proto POST (null) [07:48:11]execute_cgi path=json_proto method=POST [07:48:11]POST find Content-Length [07:48:11]Host: 172.17.62.5:8080 [07:48:11]Content-Length: 679 [07:48:11]Content-Type: application/json [07:48:11] [07:48:11]POST finish read [07:48:11]Found Content-Length = 679 [07:48:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:48:11]execute_script... [07:48: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)191554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:48:11]POST & json_proto [07:48:11]process_json_proto [07:48:11]json parsed OK: [07:48:11]protocol is kg_v1.0 [07:48:11]action value=close_receipt [07:48:11]process_action close_receipt [07:48:11]cmd_close_receipt [07:48:11]MH_GetDate [07:48:11]Write to MH i2c: F0 00 00 2E 06 23 [07:48:11]Write i2c OK [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: F0 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: F0 09 00 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: F0 09 00 2E 06 00 3D 16 26 66 F4 E9 65 64 B1 [07:48:11]GetLastDocTimeStamp 1713771174 [07:48:11]current date 1713772093 [07:48:11]FM_GetShiftState [07:48:11]SAM_PROTO_GetShiftState [07:48:11]wFMCommunicate request_size=4 [07:48:11]MH_SAM_APDU [07:48:11]CAPDU: 80 13 01 00 [07:48:11]Write to MH i2c: E2 08 00 2F 06 80 13 01 00 00 00 00 00 B2 [07:48:11]Write i2c OK [07:48:11]MH_I2C_Read... [07:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:11]Read from MH i2c: E2 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 0E 00 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 0E 00 2F 06 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 D9 [07:48:11]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [07:48:11]wFMCommunicate OK [07:48:11]SAM_PROTO_GetShiftState done [07:48:11]FM_GetShiftState done [07:48:11]opened in 1713745124 [07:48:11]opened+sec_in_day 1713831524 [07:48:11]quantity*price = 100018 [07:48:11]sum+1 = 100020 [07:48:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 21 22.04.2024 07:48 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77002 ФПД: 53802834182453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T074813&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77002&fm=53802834182453&tin=02508201610067®Number=0000000000091573&sum=100000 [07:48:12]StoreToDocumentArchive [07:48:12]shift 373 fd 77002 [07:48:12]save to /storage/0373/doc_00077002 [07:48:12]save last doc name /storage/0373/doc_00077002 to /storage/kkm_last_doc_name [07:48:12]save OK [07:48:12]Clear old archive folders... [07:48:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:48:12]tlvbuf is 01760D80 [07:48:12]SAM_PROTO_ClearQueue [07:48:12]wFMCommunicate request_size=4 [07:48:12]MH_SAM_APDU [07:48:12]CAPDU: 80 09 00 00 [07:48:12]Write to MH i2c: E2 08 00 3C 06 80 09 00 00 00 00 00 00 B4 [07:48:12]Write i2c OK [07:48:12]MH_I2C_Read... [07:48:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:12]Read from MH i2c: E2 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 03 00 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 03 00 3C 06 00 90 00 B6 [07:48:12]RAPDU: 90 00 [07:48:12]wFMCommunicate OK [07:48:12]SAM_PROTO_ClearQueue done [07:48:12]KKMCreateOFDPacket [07:48:12]OFDProtocolAddRootSTLVToBuf [07:48:12]FM_MakeSignedData [07:48:12]FM_MakeSignedData [07:48:12]SAM_PROTO_SignData [07:48:12]wFMCommunicate request_size=4 [07:48:12]MH_SAM_APDU [07:48:12]CAPDU: 80 0D 01 02 [07:48:12]Write to MH i2c: E2 08 00 3D 06 80 0D 01 02 00 00 00 00 BC [07:48:12]Write i2c OK [07:48:12]MH_I2C_Read... [07:48:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:12]Read from MH i2c: E2 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 03 00 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 03 00 3D 06 00 90 00 B7 [07:48:12]RAPDU: 90 00 [07:48:12]wFMCommunicate OK [07:48:12]wFMCommunicate request_size=255 [07:48:12]MH_SAM_APDU [07:48: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 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 15 00 00 00 F4 03 04 00 3D 16 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CA 2C 01 00 35 04 06 00 30 EE F2 D1 [07:48:12]Write to MH i2c: E2 02 01 3E 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 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 15 00 00 00 F4 03 04 00 3D 16 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CA 2C 01 00 35 04 06 00 30 EE F2 D1 00 00 64 [07:48:12]Write i2c OK [07:48:12]MH_I2C_Read... [07:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:12]Read from MH i2c: E2 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 03 00 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 03 00 3E 06 00 90 00 B8 [07:48:12]RAPDU: 90 00 [07:48:12]wFMCommunicate OK [07:48:12]wFMCommunicate request_size=7 [07:48:12]MH_SAM_APDU [07:48:12]CAPDU: 80 0D 02 02 02 C1 35 [07:48:12]Write to MH i2c: E2 0A 00 3F 06 80 0D 02 02 02 00 C1 35 00 00 B9 [07:48:12]Write i2c OK [07:48:12]MH_I2C_Read... [07:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:12]Read from MH i2c: E2 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 03 00 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 03 00 3F 06 00 90 00 B9 [07:48:12]RAPDU: 90 00 [07:48:12]wFMCommunicate OK [07:48:12]wFMCommunicate request_size=4 [07:48:12]MH_SAM_APDU [07:48:12]CAPDU: 80 0D 03 02 [07:48:12]Write to MH i2c: E2 08 00 40 06 80 0D 03 02 00 00 00 00 C1 [07:48:12]Write i2c OK [07:48:12]MH_I2C_Read... [07:48:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:12]Read from MH i2c: E2 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 0B 00 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 0B 00 40 06 00 61 AE F4 FF B5 8F 64 3C 90 00 A8 [07:48:12]RAPDU: 61 AE F4 FF B5 8F 64 3C 90 00 [07:48:12]wFMCommunicate OK [07:48:12]SAM_PROTO_SignData done [07:48:12]FM_MakeSignedData done [07:48:12]CreateOFDProtocolMessage [07:48:12]wFMCommunicate request_size=4 [07:48:12]MH_SAM_APDU [07:48:12]CAPDU: 80 11 00 00 [07:48:12]Write to MH i2c: E2 08 00 41 06 80 11 00 00 00 00 00 00 C1 [07:48:12]Write i2c OK [07:48:12]MH_I2C_Read... [07:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:12]Read from MH i2c: E2 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 17 00 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: E2 17 00 41 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 14 [07:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:48:12]wFMCommunicate OK [07:48:12]CreateOFDProtocolMessage done [07:48:12]OFDSenderStorePacket 77002 [07:48:12]StoreOFDPacket docnum=77002 [07:48:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 FA 06 04 01 A0 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 15 00 00 00 F4 03 04 00 3D 16 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CA 2C 01 00 35 04 06 00 30 EE F2 D1 C1 35 61 AE F4 FF B5 8F 64 3C [07:48:12]CheckFolder [07:48:12]dirname=/storage/ofd_packets [07:48:12]CheckFolder done [07:48:12]ProducePacketName [07:48:12]name=ofd_packets/00077002 [07:48:12]NVStorageSaveData ofd_packets/00077002 [07:48:12]File name is /storage/ofd_packets/00077002 [07:48:12]Write 298 bytes [07:48:12]NVStorageSaveData done [07:48:12]OFDSenderStorePacket done [07:48:12]KKMCreateOFDPacket done [07:48:12]NVStorageSaveData kkm_last_timestamp [07:48:12]File name is /storage/kkm_last_timestamp [07:48:12]Write 4 bytes [07:48:12]NVStorageSaveData done [07:48:12]ExternCall_PrintAddStr [07:48:12]wPrintStart [07:48:12]Write to MH i2c: 01 00 00 42 06 48 [07:48:12]Write i2c OK [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: 01 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: 01 07 00 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: 01 07 00 42 06 00 00 00 00 00 FF 0F 5D [07:48:12]RasterBufferAndPrint [07:48:12]line Счет N : (1)191554 [07:48:12]line ИНН: 02508201610067 [07:48:12]line Контрольно-Кассовый Чек [07:48:12]line ПРОДАЖА [07:48:12]line ТРК (МРК, ГНК) : 13 [07:48:12]line Товар: 2710194210 [07:48:12]line ДТ-К-5 [07:48:12]line 13.720 * 72.90 [07:48:12]line = 1000.19 [07:48:12]line НДС 12% НСП 1% [07:48:12]line > о реализуемом товаре [07:48:12]line ОКРУГЛЕНИЕ: -0.19 [07:48:12]line ИТОГО: 1000.00 [07:48:12]line Внесено: 1000.00 [07:48:12]line СДАЧА: 0.00 [07:48:12]line НСП 1% : 8.85 [07:48:12]line НДС 12% : 106.21 [07:48:12]line Наличными: 1000.00 [07:48:12]line Безнал.: 0.00 [07:48:12]line Место: АЗС № 106 "Партнер Нефть" [07:48:12]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:48:12]line СНО: Общий режим [07:48:12]line Чек 21 22.04.2024 07:48 [07:48:12]line Смена: 373 ФФД: 1.0 [07:48:12]line ЗНМ: 0300000141 [07:48:12]line РНМ: 0000000000091573 [07:48:12]line Версия ККМ: 001 [07:48:12]line ФМ: 0000000000874652 [07:48:12]line ФД: 77002 [07:48:12]line ФПД: 53802834182453 [07:48:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T074813&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77002&fm=53802834182453&tin=02508201610067®Number=0000000000091573&sum=100000 [07:48:13]OFD Sender: Processing packet 77002 [packets to send 129, broken 128] [07:48:13]ProducePacketName [07:48:13]name=ofd_packets/00077002 [07:48:13]OFD Sender: To server: pG, [07:48:13]CommunicateWithHost lk.salyk.kg:30040 [07:48:13]ConnectInit lk.salyk.kg [07:48:13]written 0, free lines is 4095 [07:48:13]Connected sock=11 [07:48:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 FA 06 04 01 A0 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 15 00 00 00 F4 03 04 00 3D 16 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CA 2C 01 00 35 04 06 00 30 EE F2 D1 C1 35 61 AE F4 FF B5 8F 64 3C [07:48:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 CE 15 47 00 FB E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CA 2C 01 00 F4 03 04 00 C0 BD 25 66 B6 04 01 00 00 1A E5 53 25 23 12 9D 4A [07:48:13]CommunicateWithHost err = 0 [07:48:13]CheckOFDResponse [07:48:13]1017 (14) - 77093643461234 [07:48:13]1041 (16) - 0000000000874652 [07:48:13]1040 (4) - 77002 [07:48:13]1012 (4) - 22.04.2024 01:30 [07:48:13]1206 (1) - 0 [07:48:13]OFD Sender: Remove packet 77002 [07:48:13]ProducePacketName [07:48:13]name=ofd_packets/00077002 [07:48:13]NVStorageDeleteData [07:48:13]Write to MH i2c: 01 00 00 6C 06 72 [07:48:13]Write i2c OK [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: 01 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: 01 07 00 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: 01 07 00 6C 06 00 00 00 00 00 F2 0C 77 [07:48:13]RasterBufferAndPrint [07:48:13]line [07:48:13]line [07:48:13]line [07:48:13]line [07:48:13]line [07:48:13]written 0, free lines is 3322 [07:48:13]MH_Cut [07:48:13]Write to MH i2c: D1 01 00 73 06 01 4B [07:48:13]Write i2c OK [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: D1 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: D1 01 00 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: D1 01 00 73 06 00 4A [07:48:13]Write to MH i2c: 01 00 00 74 06 7A [07:48:13]Write i2c OK [07:48:13]MH_I2C_Read... [07:48:13]OFD Sender: No OFD packet to send [07:48:14]*** Cut start [07:48:14]*** Partial cut [07:48:14]*** CUTSNS_PIN = 1 [07:48:14]*** CUTSNS_PIN = 0 [07:48:14]*** Brake cut motor [07:48:14]Read from MH i2c: 01 [07:48:14]MH_I2C_Read... [07:48:14]*** Stop cut motor [07:48:14]*** Cut end [07:48:14]Read from MH i2c: 01 07 00 [07:48:14]MH_I2C_Read... [07:48:14]Read from MH i2c: 01 07 00 74 06 00 00 00 00 00 FF 0F 8F [07:48:14]process_action close_receipt done [07:48:14]requested_data is exist [07:48:14]produce_requested_data [07:48:14]requested_item fm.sn is exist - process it [07:48:14]wFMCommunicate request_size=4 [07:48:14]MH_SAM_APDU [07:48:14]CAPDU: 80 11 00 00 [07:48:14]Write to MH i2c: E2 08 00 75 06 80 11 00 00 00 00 00 00 F5 [07:48:14]Write i2c OK [07:48:14]MH_I2C_Read... [07:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:14]Read from MH i2c: E2 [07:48:14]MH_I2C_Read... [07:48:14]Read from MH i2c: E2 17 00 [07:48:14]MH_I2C_Read... [07:48:14]Read from MH i2c: E2 17 00 75 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 48 [07:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:48:14]wFMCommunicate OK [07:48:14]requested_item fd.num is exist - process it [07:48:14]SAM_PROTO_GetFieldsCounters [07:48:14]wFMCommunicate request_size=4 [07:48:14]MH_SAM_APDU [07:48:14]CAPDU: 80 13 00 00 [07:48:14]Write to MH i2c: E2 08 00 76 06 80 13 00 00 00 00 00 00 F8 [07:48:14]Write i2c OK [07:48:14]MH_I2C_Read... [07:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:15]Read from MH i2c: E2 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: E2 62 00 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: E2 62 00 76 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CA 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [07:48:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CA 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:48:15]wFMCommunicate OK [07:48:15]SAM_PROTO_GetFieldsCounters done [07:48:15]requested_item shift.num is exist - process it [07:48:15]requested_item shift.opened is exist - process it [07:48:15]req_shift_opened [07:48:15]FM_GetShiftState [07:48:15]SAM_PROTO_GetShiftState [07:48:15]wFMCommunicate request_size=4 [07:48:15]MH_SAM_APDU [07:48:15]CAPDU: 80 13 01 00 [07:48:15]Write to MH i2c: E2 08 00 77 06 80 13 01 00 00 00 00 00 FA [07:48:15]Write i2c OK [07:48:15]MH_I2C_Read... [07:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:15]Read from MH i2c: E2 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: E2 0E 00 [07:48:15]MH_I2C_Read... [07:48:15]Read from MH i2c: E2 0E 00 77 06 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 21 [07:48:15]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [07:48:15]wFMCommunicate OK [07:48:15]SAM_PROTO_GetShiftState done [07:48:15]FM_GetShiftState done [07:48:15]req_shift_opened done [07:48:15]requested_item shift.open_date is exist - process it [07:48:15]req_shift_open_date [07:48:15]req_shift_open_date done [07:48:15]produce_requested_data done [07:48:15]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77002,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [07:48:15]process_action_free close_receipt [07:48:15]json_value_free [07:48:15]json_value_free done [07:48:15]process_json_proto returns [07:48:15]Send response to host [07:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77002,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [07:48:15]free response buf [07:48:15]execute_script done [07:48:15]execute_script returns [07:48:15]free content buf [07:48:15]Sock 7.Close socket [07:48:15]Sock 7.Thread stoped [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:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:08]accept exits with 9 [07:50:08]New connection [07:50:08]New thread 3067174244 created [07:50:08]Thread 3067030884 joined [07:50:08]Waiting for new connection... [07:50:08] Sock 9.Parse request [07:50:08]Sock 9.Check first char [07:50:08]Sock 9.First char is OK [07:50:08]request: POST /json_proto HTTP/1.0 [07:50:08]Method: POST [07:50:08]URL: /json_proto [07:50:08]Method is POST - this is cgi request [07:50:08]url: /json_proto [07:50:08]query_string will be loaded in cgi processing [07:50:08]execute_cgi json_proto POST (null) [07:50:08]execute_cgi path=json_proto method=POST [07:50:08]POST find Content-Length [07:50:08]Host: 172.17.62.5:8080 [07:50:08]Content-Length: 677 [07:50:08]Content-Type: application/json [07:50:08] [07:50:08]POST finish read [07:50:08]Found Content-Length = 677 [07:50:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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:50:08]execute_script... [07:50: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)191555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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:50:08]POST & json_proto [07:50:08]process_json_proto [07:50:08]json parsed OK: [07:50:08]protocol is kg_v1.0 [07:50:08]action value=close_receipt [07:50:08]process_action close_receipt [07:50:08]cmd_close_receipt [07:50:08]MH_GetDate [07:50:08]Write to MH i2c: F0 00 00 78 06 6D [07:50:08]Write i2c OK [07:50:08]MH_I2C_Read... [07:50:08]Read from MH i2c: F0 [07:50:08]MH_I2C_Read... [07:50:08]Read from MH i2c: F0 09 00 [07:50:08]MH_I2C_Read... [07:50:08]Read from MH i2c: F0 09 00 78 06 00 B2 16 26 66 F4 E9 65 64 70 [07:50:08]GetLastDocTimeStamp 1713772093 [07:50:08]current date 1713772210 [07:50:08]FM_GetShiftState [07:50:08]SAM_PROTO_GetShiftState [07:50:08]wFMCommunicate request_size=4 [07:50:08]MH_SAM_APDU [07:50:08]CAPDU: 80 13 01 00 [07:50:08]Write to MH i2c: E2 08 00 79 06 80 13 01 00 00 00 00 00 FC [07:50:08]Write i2c OK [07:50:08]MH_I2C_Read... [07:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:08]Read from MH i2c: E2 [07:50:08]MH_I2C_Read... [07:50:08]Read from MH i2c: E2 0E 00 [07:50:08]MH_I2C_Read... [07:50:08]Read from MH i2c: E2 0E 00 79 06 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 23 [07:50:08]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [07:50:08]wFMCommunicate OK [07:50:08]SAM_PROTO_GetShiftState done [07:50:08]FM_GetShiftState done [07:50:08]opened in 1713745124 [07:50:08]opened+sec_in_day 1713831524 [07:50:08]quantity*price = 30010 [07:50:08]sum+1 = 30011 [07:50:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 22 22.04.2024 07:50 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77003 ФПД: 143038822620622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T075010&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77003&fm=143038822620622&tin=02508201610067®Number=0000000000091573&sum=30000 [07:50:09]StoreToDocumentArchive [07:50:09]shift 373 fd 77003 [07:50:09]save to /storage/0373/doc_00077003 [07:50:09]save last doc name /storage/0373/doc_00077003 to /storage/kkm_last_doc_name [07:50:09]save OK [07:50:09]Clear old archive folders... [07:50:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:50:09]tlvbuf is B6EF7A30 [07:50:09]SAM_PROTO_ClearQueue [07:50:09]wFMCommunicate request_size=4 [07:50:09]MH_SAM_APDU [07:50:09]CAPDU: 80 09 00 00 [07:50:09]Write to MH i2c: E2 08 00 86 06 80 09 00 00 00 00 00 00 FE [07:50:09]Write i2c OK [07:50:09]MH_I2C_Read... [07:50:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:09]Read from MH i2c: E2 [07:50:09]MH_I2C_Read... [07:50:09]Read from MH i2c: E2 03 00 [07:50:09]MH_I2C_Read... [07:50:09]Read from MH i2c: E2 03 00 86 06 00 90 00 00 [07:50:09]RAPDU: 90 00 [07:50:09]wFMCommunicate OK [07:50:09]SAM_PROTO_ClearQueue done [07:50:09]KKMCreateOFDPacket [07:50:09]OFDProtocolAddRootSTLVToBuf [07:50:09]FM_MakeSignedData [07:50:09]FM_MakeSignedData [07:50:09]SAM_PROTO_SignData [07:50:09]wFMCommunicate request_size=4 [07:50:09]MH_SAM_APDU [07:50:09]CAPDU: 80 0D 01 02 [07:50:09]Write to MH i2c: E2 08 00 87 06 80 0D 01 02 00 00 00 00 06 [07:50:09]Write i2c OK [07:50:09]MH_I2C_Read... [07:50:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:09]Read from MH i2c: E2 [07:50:09]MH_I2C_Read... [07:50:09]Read from MH i2c: E2 03 00 [07:50:09]MH_I2C_Read... [07:50:09]Read from MH i2c: E2 03 00 87 06 00 90 00 01 [07:50:09]RAPDU: 90 00 [07:50:09]wFMCommunicate OK [07:50:09]wFMCommunicate request_size=255 [07:50:09]MH_SAM_APDU [07:50:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 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 73 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 16 00 00 00 F4 03 04 00 B2 16 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CB 2C 01 00 35 04 06 00 82 [07:50:09]Write to MH i2c: E2 02 01 88 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 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 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 73 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 16 00 00 00 F4 03 04 00 B2 16 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CB 2C 01 00 35 04 06 00 82 00 00 74 [07:50:09]Write i2c OK [07:50:09]MH_I2C_Read... [07:50:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:10]Read from MH i2c: E2 [07:50:10]MH_I2C_Read... [07:50:10]Read from MH i2c: E2 03 00 [07:50:10]MH_I2C_Read... [07:50:10]Read from MH i2c: E2 03 00 88 06 00 90 00 02 [07:50:10]RAPDU: 90 00 [07:50:10]wFMCommunicate OK [07:50:10]wFMCommunicate request_size=10 [07:50:10]MH_SAM_APDU [07:50:10]CAPDU: 80 0D 02 02 05 17 D2 36 1D CE [07:50:10]Write to MH i2c: E2 0D 00 89 06 80 0D 02 02 05 00 17 D2 36 1D CE 00 00 1D [07:50:10]Write i2c OK [07:50:10]MH_I2C_Read... [07:50:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:10]Read from MH i2c: E2 [07:50:10]MH_I2C_Read... [07:50:10]Read from MH i2c: E2 03 00 [07:50:10]MH_I2C_Read... [07:50:10]Read from MH i2c: E2 03 00 89 06 00 90 00 03 [07:50:10]RAPDU: 90 00 [07:50:10]wFMCommunicate OK [07:50:10]wFMCommunicate request_size=4 [07:50:10]MH_SAM_APDU [07:50:10]CAPDU: 80 0D 03 02 [07:50:10]Write to MH i2c: E2 08 00 8A 06 80 0D 03 02 00 00 00 00 0B [07:50:10]Write i2c OK [07:50:10]MH_I2C_Read... [07:50:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:10]Read from MH i2c: E2 [07:50:10]MH_I2C_Read... [07:50:10]Read from MH i2c: E2 0B 00 [07:50:10]MH_I2C_Read... [07:50:10]Read from MH i2c: E2 0B 00 8A 06 00 2F DB D9 09 6C F7 3F 75 90 00 0F [07:50:10]RAPDU: 2F DB D9 09 6C F7 3F 75 90 00 [07:50:10]wFMCommunicate OK [07:50:10]SAM_PROTO_SignData done [07:50:10]FM_MakeSignedData done [07:50:10]CreateOFDProtocolMessage [07:50:10]wFMCommunicate request_size=4 [07:50:10]MH_SAM_APDU [07:50:10]CAPDU: 80 11 00 00 [07:50:10]Write to MH i2c: E2 08 00 8B 06 80 11 00 00 00 00 00 00 0B [07:50:10]Write i2c OK [07:50:10]MH_I2C_Read... [07:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:10]Read from MH i2c: E2 [07:50:10]MH_I2C_Read... [07:50:10]Read from MH i2c: E2 17 00 [07:50:10]MH_I2C_Read... [07:50:10]Read from MH i2c: E2 17 00 8B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5E [07:50:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:50:10]wFMCommunicate OK [07:50:10]CreateOFDProtocolMessage done [07:50:10]OFDSenderStorePacket 77003 [07:50:10]StoreOFDPacket docnum=77003 [07:50:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 A9 ED 07 01 9C C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 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 73 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 16 00 00 00 F4 03 04 00 B2 16 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CB 2C 01 00 35 04 06 00 82 17 D2 36 1D CE 2F DB D9 09 6C F7 3F 75 [07:50:10]CheckFolder [07:50:10]dirname=/storage/ofd_packets [07:50:10]CheckFolder done [07:50:10]ProducePacketName [07:50:10]name=ofd_packets/00077003 [07:50:10]NVStorageSaveData ofd_packets/00077003 [07:50:10]File name is /storage/ofd_packets/00077003 [07:50:10]Write 301 bytes [07:50:10]NVStorageSaveData done [07:50:10]OFDSenderStorePacket done [07:50:10]KKMCreateOFDPacket done [07:50:10]NVStorageSaveData kkm_last_timestamp [07:50:10]File name is /storage/kkm_last_timestamp [07:50:10]Write 4 bytes [07:50:10]NVStorageSaveData done [07:50:10]ExternCall_PrintAddStr [07:50:10]wPrintStart [07:50:10]Write to MH i2c: 01 00 00 8C 06 92 [07:50:10]Write i2c OK [07:50:10]MH_I2C_Read... [07:50:10]Read from MH i2c: 01 [07:50:10]MH_I2C_Read... [07:50:10]Read from MH i2c: 01 07 00 [07:50:10]MH_I2C_Read... [07:50:10]Read from MH i2c: 01 07 00 8C 06 00 00 00 00 00 FF 0F A7 [07:50:10]RasterBufferAndPrint [07:50:10]line Счет N : (1)191555 [07:50:10]line ИНН: 02508201610067 [07:50:10]line Контрольно-Кассовый Чек [07:50:10]line ПРОДАЖА [07:50:10]line ТРК (МРК, ГНК) : 33 [07:50:10]line Товар: 2710124130 [07:50:10]line Аи-92-К-5 [07:50:10]line 4.660 * 64.40 [07:50:10]line = 300.10 [07:50:10]line НДС 12% НСП 1% [07:50:10]line > о реализуемом товаре [07:50:10]line ОКРУГЛЕНИЕ: -0.10 [07:50:10]line ИТОГО: 300.00 [07:50:10]line Внесено: 300.00 [07:50:10]line СДАЧА: 0.00 [07:50:10]line НСП 1% : 2.66 [07:50:10]line НДС 12% : 31.87 [07:50:10]line Наличными: 300.00 [07:50:10]line Безнал.: 0.00 [07:50:10]line Место: АЗС № 106 "Партнер Нефть" [07:50:10]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:50:10]line СНО: Общий режим [07:50:10]line Чек 22 22.04.2024 07:50 [07:50:10]line Смена: 373 ФФД: 1.0 [07:50:10]line ЗНМ: 0300000141 [07:50:10]line РНМ: 0000000000091573 [07:50:10]line Версия ККМ: 001 [07:50:10]line ФМ: 0000000000874652 [07:50:10]line ФД: 77003 [07:50:10]line ФПД: 143038822620622 [07:50:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T075010&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77003&fm=143038822620622&tin=02508201610067®Number=0000000000091573&sum=30000 [07:50:10]OFD Sender: Processing packet 77003 [packets to send 129, broken 128] [07:50:10]ProducePacketName [07:50:10]name=ofd_packets/00077003 [07:50:10]OFD Sender: To server: pG, [07:50:10]CommunicateWithHost lk.salyk.kg:30040 [07:50:10]ConnectInit lk.salyk.kg [07:50:10]written 0, free lines is 4095 [07:50:10]Connected sock=10 [07:50:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 A9 ED 07 01 9C C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 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 73 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 16 00 00 00 F4 03 04 00 B2 16 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CB 2C 01 00 35 04 06 00 82 17 D2 36 1D CE 2F DB D9 09 6C F7 3F 75 [07:50:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C1 DA 47 00 F4 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CB 2C 01 00 F4 03 04 00 36 BE 25 66 B6 04 01 00 00 A8 23 ED 6A 54 7D 9A 92 [07:50:11]CommunicateWithHost err = 0 [07:50:11]CheckOFDResponse [07:50:11]1017 (14) - 77093643461234 [07:50:11]1041 (16) - 0000000000874652 [07:50:11]1040 (4) - 77003 [07:50:11]1012 (4) - 22.04.2024 01:32 [07:50:11]1206 (1) - 0 [07:50:11]OFD Sender: Remove packet 77003 [07:50:11]ProducePacketName [07:50:11]name=ofd_packets/00077003 [07:50:11]NVStorageDeleteData [07:50:11]Write to MH i2c: 01 00 00 B6 06 BC [07:50:11]Write i2c OK [07:50:11]MH_I2C_Read... [07:50:11]Read from MH i2c: 01 [07:50:11]MH_I2C_Read... [07:50:11]Read from MH i2c: 01 07 00 [07:50:11]MH_I2C_Read... [07:50:11]Read from MH i2c: 01 07 00 B6 06 00 00 00 00 00 FA 0C C9 [07:50:11]RasterBufferAndPrint [07:50:11]line [07:50:11]line [07:50:11]line [07:50:11]line [07:50:11]line [07:50:11]written 0, free lines is 3329 [07:50:11]MH_Cut [07:50:11]Write to MH i2c: D1 01 00 BD 06 01 95 [07:50:11]Write i2c OK [07:50:11]MH_I2C_Read... [07:50:11]Read from MH i2c: D1 [07:50:11]MH_I2C_Read... [07:50:11]Read from MH i2c: D1 01 00 [07:50:11]MH_I2C_Read... [07:50:11]Read from MH i2c: D1 01 00 BD 06 00 94 [07:50:11]Write to MH i2c: 01 00 00 BE 06 C4 [07:50:11]Write i2c OK [07:50:11]MH_I2C_Read... [07:50:11]OFD Sender: No OFD packet to send [07:50:11]*** Cut start [07:50:11]*** Partial cut [07:50:11]*** CUTSNS_PIN = 1 [07:50:11]*** CUTSNS_PIN = 0 [07:50:12]*** Brake cut motor [07:50:12]Read from MH i2c: 01 [07:50:12]MH_I2C_Read... [07:50:12]*** Stop cut motor [07:50:12]*** Cut end [07:50:12]Read from MH i2c: 01 07 00 [07:50:12]MH_I2C_Read... [07:50:12]Read from MH i2c: 01 07 00 BE 06 00 00 00 00 00 FF 0F D9 [07:50:12]process_action close_receipt done [07:50:12]requested_data is exist [07:50:12]produce_requested_data [07:50:12]requested_item fm.sn is exist - process it [07:50:12]wFMCommunicate request_size=4 [07:50:12]MH_SAM_APDU [07:50:12]CAPDU: 80 11 00 00 [07:50:12]Write to MH i2c: E2 08 00 BF 06 80 11 00 00 00 00 00 00 3F [07:50:12]Write i2c OK [07:50:12]MH_I2C_Read... [07:50:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:12]Read from MH i2c: E2 [07:50:12]MH_I2C_Read... [07:50:12]Read from MH i2c: E2 17 00 [07:50:12]MH_I2C_Read... [07:50:12]Read from MH i2c: E2 17 00 BF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 92 [07:50:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:50:12]wFMCommunicate OK [07:50:12]requested_item fd.num is exist - process it [07:50:12]SAM_PROTO_GetFieldsCounters [07:50:12]wFMCommunicate request_size=4 [07:50:12]MH_SAM_APDU [07:50:12]CAPDU: 80 13 00 00 [07:50:12]Write to MH i2c: E2 08 00 C0 06 80 13 00 00 00 00 00 00 42 [07:50:12]Write i2c OK [07:50:12]MH_I2C_Read... [07:50:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:12]Read from MH i2c: E2 [07:50:12]MH_I2C_Read... [07:50:12]Read from MH i2c: E2 62 00 [07:50:12]MH_I2C_Read... [07:50:12]Read from MH i2c: E2 62 00 C0 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CB 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [07:50:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CB 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:50:12]wFMCommunicate OK [07:50:12]SAM_PROTO_GetFieldsCounters done [07:50:12]requested_item shift.num is exist - process it [07:50:12]requested_item shift.opened is exist - process it [07:50:12]req_shift_opened [07:50:12]FM_GetShiftState [07:50:12]SAM_PROTO_GetShiftState [07:50:12]wFMCommunicate request_size=4 [07:50:12]MH_SAM_APDU [07:50:12]CAPDU: 80 13 01 00 [07:50:12]Write to MH i2c: E2 08 00 C1 06 80 13 01 00 00 00 00 00 44 [07:50:12]Write i2c OK [07:50:12]MH_I2C_Read... [07:50:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:12]Read from MH i2c: E2 [07:50:12]MH_I2C_Read... [07:50:12]Read from MH i2c: E2 0E 00 [07:50:12]MH_I2C_Read... [07:50:12]Read from MH i2c: E2 0E 00 C1 06 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 6B [07:50:12]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [07:50:12]wFMCommunicate OK [07:50:12]SAM_PROTO_GetShiftState done [07:50:12]FM_GetShiftState done [07:50:12]req_shift_opened done [07:50:12]requested_item shift.open_date is exist - process it [07:50:12]req_shift_open_date [07:50:12]req_shift_open_date done [07:50:12]produce_requested_data done [07:50:12]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77003,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [07:50:12]process_action_free close_receipt [07:50:12]json_value_free [07:50:12]json_value_free done [07:50:12]process_json_proto returns [07:50:12]Send response to host [07:50:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77003,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [07:50:12]free response buf [07:50:12]execute_script done [07:50:12]execute_script returns [07:50:12]free content buf [07:50:12]Sock 9.Close socket [07:50:12]Sock 9.Thread stoped [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:07]accept exits with 7 [07:51:07]New connection [07:51:07]New thread 3067030884 created [07:51:07]Thread 3067174244 joined [07:51:07]Waiting for new connection... [07:51:07] Sock 7.Parse request [07:51:07]Sock 7.Check first char [07:51:07]Sock 7.First char is OK [07:51:07]request: POST /json_proto HTTP/1.0 [07:51:07]Method: POST [07:51:07]URL: /json_proto [07:51:07]Method is POST - this is cgi request [07:51:07]url: /json_proto [07:51:07]query_string will be loaded in cgi processing [07:51:07]execute_cgi json_proto POST (null) [07:51:07]execute_cgi path=json_proto method=POST [07:51:07]POST find Content-Length [07:51:07]Host: 172.17.62.5:8080 [07:51:07]Content-Length: 978 [07:51:07]Content-Type: application/json [07:51:07] [07:51:07]POST finish read [07:51:07]Found Content-Length = 978 [07:51:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 22.260, "sum" : 1600.49, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.26 \u0441\u043E\u043C", "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:07]execute_script... [07:51: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)191556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 22.260, "sum" : 1600.49, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.26 \u0441\u043E\u043C", "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:07]POST & json_proto [07:51:07]process_json_proto [07:51:07]json parsed OK: [07:51:07]protocol is kg_v1.0 [07:51:07]action value=close_receipt [07:51:07]process_action close_receipt [07:51:07]cmd_close_receipt [07:51:07]MH_GetDate [07:51:07]Write to MH i2c: F0 00 00 C2 06 B7 [07:51:07]Write i2c OK [07:51:07]MH_I2C_Read... [07:51:07]Read from MH i2c: F0 [07:51:07]MH_I2C_Read... [07:51:07]Read from MH i2c: F0 09 00 [07:51:07]MH_I2C_Read... [07:51:07]Read from MH i2c: F0 09 00 C2 06 00 ED 16 26 66 F4 E9 65 64 F5 [07:51:07]GetLastDocTimeStamp 1713772210 [07:51:07]current date 1713772269 [07:51:07]FM_GetShiftState [07:51:07]SAM_PROTO_GetShiftState [07:51:07]wFMCommunicate request_size=4 [07:51:07]MH_SAM_APDU [07:51:07]CAPDU: 80 13 01 00 [07:51:07]Write to MH i2c: E2 08 00 C3 06 80 13 01 00 00 00 00 00 46 [07:51:07]Write i2c OK [07:51:07]MH_I2C_Read... [07:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:07]Read from MH i2c: E2 [07:51:07]MH_I2C_Read... [07:51:07]Read from MH i2c: E2 0E 00 [07:51:07]MH_I2C_Read... [07:51:07]Read from MH i2c: E2 0E 00 C3 06 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 6D [07:51:07]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [07:51:07]wFMCommunicate OK [07:51:07]SAM_PROTO_GetShiftState done [07:51:07]FM_GetShiftState done [07:51:07]opened in 1713745124 [07:51:07]opened+sec_in_day 1713831524 [07:51:07]quantity*price = 160049 [07:51:07]sum+1 = 160050 [07:51:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.96 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 23 22.04.2024 07:51 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 22.26 сом ФМ: 0000000000874652 ФД: 77004 ФПД: 92296411256829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T075109&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77004&fm=92296411256829&tin=02508201610067®Number=0000000000091573&sum=160000 [07:51:08]StoreToDocumentArchive [07:51:08]shift 373 fd 77004 [07:51:08]save to /storage/0373/doc_00077004 [07:51:08]save last doc name /storage/0373/doc_00077004 to /storage/kkm_last_doc_name [07:51:08]save OK [07:51:08]Clear old archive folders... [07:51:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:51:08]tlvbuf is B6F10A60 [07:51:08]SAM_PROTO_ClearQueue [07:51:08]wFMCommunicate request_size=4 [07:51:08]MH_SAM_APDU [07:51:08]CAPDU: 80 09 00 00 [07:51:08]Write to MH i2c: E2 08 00 D0 06 80 09 00 00 00 00 00 00 48 [07:51:08]Write i2c OK [07:51:08]MH_I2C_Read... [07:51:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:51:08]Read from MH i2c: E2 [07:51:08]MH_I2C_Read... [07:51:08]Read from MH i2c: E2 03 00 [07:51:08]MH_I2C_Read... [07:51:08]Read from MH i2c: E2 03 00 D0 06 00 90 00 4A [07:51:08]RAPDU: 90 00 [07:51:08]wFMCommunicate OK [07:51:08]SAM_PROTO_ClearQueue done [07:51:08]KKMCreateOFDPacket [07:51:08]OFDProtocolAddRootSTLVToBuf [07:51:08]FM_MakeSignedData [07:51:08]FM_MakeSignedData [07:51:08]SAM_PROTO_SignData [07:51:08]wFMCommunicate request_size=4 [07:51:08]MH_SAM_APDU [07:51:08]CAPDU: 80 0D 01 02 [07:51:08]Write to MH i2c: E2 08 00 D1 06 80 0D 01 02 00 00 00 00 50 [07:51:08]Write i2c OK [07:51:08]MH_I2C_Read... [07:51:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:51:08]Read from MH i2c: E2 [07:51:08]MH_I2C_Read... [07:51:08]Read from MH i2c: E2 03 00 [07:51:08]MH_I2C_Read... [07:51:08]Read from MH i2c: E2 03 00 D1 06 00 90 00 4B [07:51:08]RAPDU: 90 00 [07:51:08]wFMCommunicate OK [07:51:08]wFMCommunicate request_size=255 [07:51:08]MH_SAM_APDU [07:51:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 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 ED 16 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CC 2C 01 00 35 04 06 00 53 F1 6E CE [07:51:08]Write to MH i2c: E2 02 01 D2 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 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 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 ED 16 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CC 2C 01 00 35 04 06 00 53 F1 6E CE 00 00 7B [07:51:08]Write i2c OK [07:51:08]MH_I2C_Read... [07:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:08]Read from MH i2c: E2 [07:51:08]MH_I2C_Read... [07:51:08]Read from MH i2c: E2 03 00 [07:51:08]MH_I2C_Read... [07:51:08]Read from MH i2c: E2 03 00 D2 06 00 90 00 4C [07:51:08]RAPDU: 90 00 [07:51:08]wFMCommunicate OK [07:51:08]wFMCommunicate request_size=7 [07:51:08]MH_SAM_APDU [07:51:08]CAPDU: 80 0D 02 02 02 97 FD [07:51:08]Write to MH i2c: E2 0A 00 D3 06 80 0D 02 02 02 00 97 FD 00 00 EB [07:51:08]Write i2c OK [07:51:08]MH_I2C_Read... [07:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:08]Read from MH i2c: E2 [07:51:08]MH_I2C_Read... [07:51:08]Read from MH i2c: E2 03 00 [07:51:08]MH_I2C_Read... [07:51:08]Read from MH i2c: E2 03 00 D3 06 00 90 00 4D [07:51:08]RAPDU: 90 00 [07:51:08]wFMCommunicate OK [07:51:08]wFMCommunicate request_size=4 [07:51:08]MH_SAM_APDU [07:51:08]CAPDU: 80 0D 03 02 [07:51:08]Write to MH i2c: E2 08 00 D4 06 80 0D 03 02 00 00 00 00 55 [07:51:08]Write i2c OK [07:51:08]MH_I2C_Read... [07:51:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:51:09]Read from MH i2c: E2 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: E2 0B 00 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: E2 0B 00 D4 06 00 BA 2D A7 26 68 AC BC B1 90 00 8B [07:51:09]RAPDU: BA 2D A7 26 68 AC BC B1 90 00 [07:51:09]wFMCommunicate OK [07:51:09]SAM_PROTO_SignData done [07:51:09]FM_MakeSignedData done [07:51:09]CreateOFDProtocolMessage [07:51:09]wFMCommunicate request_size=4 [07:51:09]MH_SAM_APDU [07:51:09]CAPDU: 80 11 00 00 [07:51:09]Write to MH i2c: E2 08 00 D5 06 80 11 00 00 00 00 00 00 55 [07:51:09]Write i2c OK [07:51:09]MH_I2C_Read... [07:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:09]Read from MH i2c: E2 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: E2 17 00 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: E2 17 00 D5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A8 [07:51:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:51:09]wFMCommunicate OK [07:51:09]CreateOFDProtocolMessage done [07:51:09]OFDSenderStorePacket 77004 [07:51:09]StoreOFDPacket docnum=77004 [07:51:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 1A 9D 04 01 76 E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 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 ED 16 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CC 2C 01 00 35 04 06 00 53 F1 6E CE 97 FD BA 2D A7 26 68 AC BC B1 [07:51:09]CheckFolder [07:51:09]dirname=/storage/ofd_packets [07:51:09]CheckFolder done [07:51:09]ProducePacketName [07:51:09]name=ofd_packets/00077004 [07:51:09]NVStorageSaveData ofd_packets/00077004 [07:51:09]File name is /storage/ofd_packets/00077004 [07:51:09]Write 298 bytes [07:51:09]NVStorageSaveData done [07:51:09]OFDSenderStorePacket done [07:51:09]KKMCreateOFDPacket done [07:51:09]NVStorageSaveData kkm_last_timestamp [07:51:09]File name is /storage/kkm_last_timestamp [07:51:09]Write 4 bytes [07:51:09]NVStorageSaveData done [07:51:09]ExternCall_PrintAddStr [07:51:09]wPrintStart [07:51:09]Write to MH i2c: 01 00 00 D6 06 DC [07:51:09]Write i2c OK [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: 01 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: 01 07 00 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: 01 07 00 D6 06 00 00 00 00 00 FF 0F F1 [07:51:09]RasterBufferAndPrint [07:51:09]line Счет N : (1)191556 [07:51:09]line ИНН: 02508201610067 [07:51:09]line Контрольно-Кассовый Чек [07:51:09]line ПРОДАЖА [07:51:09]line ТРК (МРК, ГНК) : 23 [07:51:09]line Товар: 2710194210 [07:51:09]line ДТ-К-5 [07:51:09]line 22.260 * 71.90 [07:51:09]line = 1600.49 [07:51:09]line НДС 12% НСП 1% [07:51:09]line > о реализуемом товаре [07:51:09]line ОКРУГЛЕНИЕ: -0.49 [07:51:09]line ИТОГО: 1600.00 [07:51:09]line Внесено: 1600.00 [07:51:09]line СДАЧА: 0.00 [07:51:09]line НСП 1% : 14.16 [07:51:09]line НДС 12% : 169.96 [07:51:09]line Наличными: 1600.00 [07:51:09]line Безнал.: 0.00 [07:51:09]line Место: АЗС № 106 "Партнер Нефть" [07:51:09]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [07:51:09]line СНО: Общий режим [07:51:09]line Чек 23 22.04.2024 07:51 [07:51:09]line Смена: 373 ФФД: 1.0 [07:51:09]line ЗНМ: 0300000141 [07:51:09]line РНМ: 0000000000091573 [07:51:09]line Версия ККМ: 001 [07:51:09]line [07:51:09]line Дисконтная программа [07:51:09]line ДТ [07:51:09]line номер 106 [07:51:09]line сэкономлено 22.26 сом [07:51:09]line ФМ: 0000000000874652 [07:51:09]line ФД: 77004 [07:51:09]line ФПД: 92296411256829 [07:51:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T075109&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77004&fm=92296411256829&tin=02508201610067®Number=0000000000091573&sum=160000 [07:51:09]OFD Sender: Processing packet 77004 [packets to send 129, broken 128] [07:51:09]ProducePacketName [07:51:09]name=ofd_packets/00077004 [07:51:09]OFD Sender: To server: pG, [07:51:09]CommunicateWithHost lk.salyk.kg:30040 [07:51:09]ConnectInit lk.salyk.kg [07:51:09]written 0, free lines is 4095 [07:51:09]Connected sock=10 [07:51:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 1A 9D 04 01 76 E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 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 ED 16 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CC 2C 01 00 35 04 06 00 53 F1 6E CE 97 FD BA 2D A7 26 68 AC BC B1 [07:51:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 7B FA 47 00 54 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CC 2C 01 00 F4 03 04 00 70 BE 25 66 B6 04 01 00 00 6C B7 B2 AB 45 88 2D 74 [07:51:09]CommunicateWithHost err = 0 [07:51:09]CheckOFDResponse [07:51:09]1017 (14) - 77093643461234 [07:51:09]1041 (16) - 0000000000874652 [07:51:09]1040 (4) - 77004 [07:51:09]1012 (4) - 22.04.2024 01:33 [07:51:09]1206 (1) - 0 [07:51:09]OFD Sender: Remove packet 77004 [07:51:09]ProducePacketName [07:51:09]name=ofd_packets/00077004 [07:51:09]NVStorageDeleteData [07:51:09]Write to MH i2c: 01 00 00 05 07 0C [07:51:09]Write i2c OK [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: 01 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: 01 07 00 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: 01 07 00 05 07 00 00 00 00 00 96 0C B5 [07:51:09]RasterBufferAndPrint [07:51:09]line [07:51:09]line [07:51:09]line [07:51:09]line [07:51:09]line [07:51:09]written 0, free lines is 3228 [07:51:09]MH_Cut [07:51:09]Write to MH i2c: D1 01 00 0C 07 01 E5 [07:51:09]Write i2c OK [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: D1 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: D1 01 00 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: D1 01 00 0C 07 00 E4 [07:51:09]Write to MH i2c: 01 00 00 0D 07 14 [07:51:09]Write i2c OK [07:51:09]MH_I2C_Read... [07:51:10]OFD Sender: No OFD packet to send [07:51:10]*** Cut start [07:51:10]*** Partial cut [07:51:10]*** CUTSNS_PIN = 1 [07:51:10]*** CUTSNS_PIN = 0 [07:51:10]*** Brake cut motor [07:51:11]Read from MH i2c: 01 [07:51:11]MH_I2C_Read... [07:51:11]*** Stop cut motor [07:51:11]*** Cut end [07:51:11]Read from MH i2c: 01 07 00 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: 01 07 00 0D 07 00 00 00 00 00 FF 0F 29 [07:51:11]process_action close_receipt done [07:51:11]requested_data is exist [07:51:11]produce_requested_data [07:51:11]requested_item fm.sn is exist - process it [07:51:11]wFMCommunicate request_size=4 [07:51:11]MH_SAM_APDU [07:51:11]CAPDU: 80 11 00 00 [07:51:11]Write to MH i2c: E2 08 00 0E 07 80 11 00 00 00 00 00 00 8F [07:51:11]Write i2c OK [07:51:11]MH_I2C_Read... [07:51:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:11]Read from MH i2c: E2 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: E2 17 00 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: E2 17 00 0E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E2 [07:51:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [07:51:11]wFMCommunicate OK [07:51:11]requested_item fd.num is exist - process it [07:51:11]SAM_PROTO_GetFieldsCounters [07:51:11]wFMCommunicate request_size=4 [07:51:11]MH_SAM_APDU [07:51:11]CAPDU: 80 13 00 00 [07:51:11]Write to MH i2c: E2 08 00 0F 07 80 13 00 00 00 00 00 00 92 [07:51:11]Write i2c OK [07:51:11]MH_I2C_Read... [07:51:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:51:11]Read from MH i2c: E2 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: E2 62 00 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: E2 62 00 0F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CC 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [07:51:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CC 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:51:11]wFMCommunicate OK [07:51:11]SAM_PROTO_GetFieldsCounters done [07:51:11]requested_item shift.num is exist - process it [07:51:11]requested_item shift.opened is exist - process it [07:51:11]req_shift_opened [07:51:11]FM_GetShiftState [07:51:11]SAM_PROTO_GetShiftState [07:51:11]wFMCommunicate request_size=4 [07:51:11]MH_SAM_APDU [07:51:11]CAPDU: 80 13 01 00 [07:51:11]Write to MH i2c: E2 08 00 10 07 80 13 01 00 00 00 00 00 94 [07:51:11]Write i2c OK [07:51:11]MH_I2C_Read... [07:51:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:11]Read from MH i2c: E2 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: E2 0E 00 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: E2 0E 00 10 07 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 BB [07:51:11]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [07:51:11]wFMCommunicate OK [07:51:11]SAM_PROTO_GetShiftState done [07:51:11]FM_GetShiftState done [07:51:11]req_shift_opened done [07:51:11]requested_item shift.open_date is exist - process it [07:51:11]req_shift_open_date [07:51:11]req_shift_open_date done [07:51:11]produce_requested_data done [07:51:11]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77004,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [07:51:11]process_action_free close_receipt [07:51:11]json_value_free [07:51:11]json_value_free done [07:51:11]process_json_proto returns [07:51:11]Send response to host [07:51:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77004,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [07:51:11]free response buf [07:51:11]execute_script done [07:51:11]execute_script returns [07:51:11]free content buf [07:51:11]Sock 7.Close socket [07:51:11]Sock 7.Thread stoped [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01:11]OFD Sender: No OFD packet to send [08:01:16]OFD Sender: No OFD packet to send [08:01:21]OFD Sender: No OFD packet to send [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:40]accept exits with 9 [08:03:40]New connection [08:03:40]New thread 3067174244 created [08:03:40]Thread 3067030884 joined [08:03:40]Waiting for new connection... [08:03:40] Sock 9.Parse request [08:03:40]Sock 9.Check first char [08:03:40]Sock 9.First char is OK [08:03:40]request: POST /json_proto HTTP/1.0 [08:03:40]Method: POST [08:03:40]URL: /json_proto [08:03:40]Method is POST - this is cgi request [08:03:40]url: /json_proto [08:03:40]query_string will be loaded in cgi processing [08:03:40]execute_cgi json_proto POST (null) [08:03:40]execute_cgi path=json_proto method=POST [08:03:40]POST find Content-Length [08:03:40]Host: 172.17.62.5:8080 [08:03:40]Content-Length: 677 [08:03:40]Content-Type: application/json [08:03:40] [08:03:40]POST finish read [08:03:40]Found Content-Length = 677 [08:03:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 6.220, "sum" : 400.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:40]execute_script... [08:03: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)191557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 6.220, "sum" : 400.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:40]POST & json_proto [08:03:40]process_json_proto [08:03:40]json parsed OK: [08:03:40]protocol is kg_v1.0 [08:03:40]action value=close_receipt [08:03:40]process_action close_receipt [08:03:40]cmd_close_receipt [08:03:40]MH_GetDate [08:03:40]Write to MH i2c: F0 00 00 11 07 07 [08:03:40]Write i2c OK [08:03:40]MH_I2C_Read... [08:03:40]Read from MH i2c: F0 [08:03:40]MH_I2C_Read... [08:03:40]Read from MH i2c: F0 09 00 [08:03:40]MH_I2C_Read... [08:03:40]Read from MH i2c: F0 09 00 11 07 00 DF 19 26 66 F4 E9 65 64 3A [08:03:40]GetLastDocTimeStamp 1713772269 [08:03:40]current date 1713773023 [08:03:40]FM_GetShiftState [08:03:40]SAM_PROTO_GetShiftState [08:03:40]wFMCommunicate request_size=4 [08:03:40]MH_SAM_APDU [08:03:40]CAPDU: 80 13 01 00 [08:03:40]Write to MH i2c: E2 08 00 12 07 80 13 01 00 00 00 00 00 96 [08:03:40]Write i2c OK [08:03:40]MH_I2C_Read... [08:03:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:40]Read from MH i2c: E2 [08:03:40]MH_I2C_Read... [08:03:40]Read from MH i2c: E2 0E 00 [08:03:40]MH_I2C_Read... [08:03:40]Read from MH i2c: E2 0E 00 12 07 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 BD [08:03:40]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:03:40]wFMCommunicate OK [08:03:40]SAM_PROTO_GetShiftState done [08:03:40]FM_GetShiftState done [08:03:40]opened in 1713745124 [08:03:40]opened+sec_in_day 1713831524 [08:03:40]quantity*price = 40056 [08:03:40]sum+1 = 40058 [08:03:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 24 22.04.2024 08:03 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77005 ФПД: 277347555683591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T080343&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77005&fm=277347555683591&tin=02508201610067®Number=0000000000091573&sum=40000 [08:03:41]StoreToDocumentArchive [08:03:41]shift 373 fd 77005 [08:03:41]save to /storage/0373/doc_00077005 [08:03:41]save last doc name /storage/0373/doc_00077005 to /storage/kkm_last_doc_name [08:03:41]save OK [08:03:41]Clear old archive folders... [08:03:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:03:41]tlvbuf is 01761360 [08:03:41]SAM_PROTO_ClearQueue [08:03:41]wFMCommunicate request_size=4 [08:03:41]MH_SAM_APDU [08:03:41]CAPDU: 80 09 00 00 [08:03:41]Write to MH i2c: E2 08 00 1F 07 80 09 00 00 00 00 00 00 98 [08:03:41]Write i2c OK [08:03:41]MH_I2C_Read... [08:03:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:42]Read from MH i2c: E2 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 03 00 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 03 00 1F 07 00 90 00 9A [08:03:42]RAPDU: 90 00 [08:03:42]wFMCommunicate OK [08:03:42]SAM_PROTO_ClearQueue done [08:03:42]KKMCreateOFDPacket [08:03:42]OFDProtocolAddRootSTLVToBuf [08:03:42]FM_MakeSignedData [08:03:42]FM_MakeSignedData [08:03:42]SAM_PROTO_SignData [08:03:42]wFMCommunicate request_size=4 [08:03:42]MH_SAM_APDU [08:03:42]CAPDU: 80 0D 01 02 [08:03:42]Write to MH i2c: E2 08 00 20 07 80 0D 01 02 00 00 00 00 A0 [08:03:42]Write i2c OK [08:03:42]MH_I2C_Read... [08:03:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:42]Read from MH i2c: E2 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 03 00 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 03 00 20 07 00 90 00 9B [08:03:42]RAPDU: 90 00 [08:03:42]wFMCommunicate OK [08:03:42]wFMCommunicate request_size=255 [08:03:42]MH_SAM_APDU [08:03:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 18 00 00 00 F4 03 04 00 DF 19 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CD 2C 01 00 35 04 06 00 FC [08:03:42]Write to MH i2c: E2 02 01 21 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 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 18 00 00 00 F4 03 04 00 DF 19 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CD 2C 01 00 35 04 06 00 FC 00 00 35 [08:03:42]Write i2c OK [08:03:42]MH_I2C_Read... [08:03:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:42]Read from MH i2c: E2 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 03 00 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 03 00 21 07 00 90 00 9C [08:03:42]RAPDU: 90 00 [08:03:42]wFMCommunicate OK [08:03:42]wFMCommunicate request_size=10 [08:03:42]MH_SAM_APDU [08:03:42]CAPDU: 80 0D 02 02 05 3F 02 89 2D 07 [08:03:42]Write to MH i2c: E2 0D 00 22 07 80 0D 02 02 05 00 3F 02 89 2D 07 00 00 AB [08:03:42]Write i2c OK [08:03:42]MH_I2C_Read... [08:03:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:42]Read from MH i2c: E2 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 03 00 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 03 00 22 07 00 90 00 9D [08:03:42]RAPDU: 90 00 [08:03:42]wFMCommunicate OK [08:03:42]wFMCommunicate request_size=4 [08:03:42]MH_SAM_APDU [08:03:42]CAPDU: 80 0D 03 02 [08:03:42]Write to MH i2c: E2 08 00 23 07 80 0D 03 02 00 00 00 00 A5 [08:03:42]Write i2c OK [08:03:42]MH_I2C_Read... [08:03:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:42]Read from MH i2c: E2 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 0B 00 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 0B 00 23 07 00 64 A9 5F 03 57 28 4C C4 90 00 A4 [08:03:42]RAPDU: 64 A9 5F 03 57 28 4C C4 90 00 [08:03:42]wFMCommunicate OK [08:03:42]SAM_PROTO_SignData done [08:03:42]FM_MakeSignedData done [08:03:42]CreateOFDProtocolMessage [08:03:42]wFMCommunicate request_size=4 [08:03:42]MH_SAM_APDU [08:03:42]CAPDU: 80 11 00 00 [08:03:42]Write to MH i2c: E2 08 00 24 07 80 11 00 00 00 00 00 00 A5 [08:03:42]Write i2c OK [08:03:42]MH_I2C_Read... [08:03:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:42]Read from MH i2c: E2 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 17 00 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: E2 17 00 24 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F8 [08:03:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:03:42]wFMCommunicate OK [08:03:42]CreateOFDProtocolMessage done [08:03:42]OFDSenderStorePacket 77005 [08:03:42]StoreOFDPacket docnum=77005 [08:03:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 D2 D1 07 01 9A 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 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 18 00 00 00 F4 03 04 00 DF 19 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CD 2C 01 00 35 04 06 00 FC 3F 02 89 2D 07 64 A9 5F 03 57 28 4C C4 [08:03:42]CheckFolder [08:03:42]dirname=/storage/ofd_packets [08:03:42]CheckFolder done [08:03:42]ProducePacketName [08:03:42]name=ofd_packets/00077005 [08:03:42]NVStorageSaveData ofd_packets/00077005 [08:03:42]File name is /storage/ofd_packets/00077005 [08:03:42]Write 301 bytes [08:03:42]NVStorageSaveData done [08:03:42]OFDSenderStorePacket done [08:03:42]KKMCreateOFDPacket done [08:03:42]NVStorageSaveData kkm_last_timestamp [08:03:42]File name is /storage/kkm_last_timestamp [08:03:42]Write 4 bytes [08:03:42]NVStorageSaveData done [08:03:42]ExternCall_PrintAddStr [08:03:42]wPrintStart [08:03:42]Write to MH i2c: 01 00 00 25 07 2C [08:03:42]Write i2c OK [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: 01 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: 01 07 00 [08:03:42]MH_I2C_Read... [08:03:42]Read from MH i2c: 01 07 00 25 07 00 00 00 00 00 FF 0F 41 [08:03:42]RasterBufferAndPrint [08:03:42]line Счет N : (1)191557 [08:03:42]line ИНН: 02508201610067 [08:03:42]line Контрольно-Кассовый Чек [08:03:42]line ПРОДАЖА [08:03:42]line ТРК (МРК, ГНК) : 33 [08:03:42]line Товар: 2710124130 [08:03:42]line Аи-92-К-5 [08:03:42]line 6.220 * 64.40 [08:03:42]line = 400.57 [08:03:42]line НДС 12% НСП 1% [08:03:42]line > о реализуемом товаре [08:03:42]line ОКРУГЛЕНИЕ: -0.57 [08:03:42]line ИТОГО: 400.00 [08:03:42]line Внесено: 400.00 [08:03:42]line СДАЧА: 0.00 [08:03:42]line НСП 1% : 3.54 [08:03:42]line НДС 12% : 42.54 [08:03:42]line Наличными: 400.00 [08:03:42]line Безнал.: 0.00 [08:03:42]line Место: АЗС № 106 "Партнер Нефть" [08:03:42]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:03:42]line СНО: Общий режим [08:03:42]line Чек 24 22.04.2024 08:03 [08:03:42]line Смена: 373 ФФД: 1.0 [08:03:42]line ЗНМ: 0300000141 [08:03:42]line РНМ: 0000000000091573 [08:03:42]line Версия ККМ: 001 [08:03:42]line ФМ: 0000000000874652 [08:03:42]line ФД: 77005 [08:03:42]line ФПД: 277347555683591 [08:03:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T080343&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77005&fm=277347555683591&tin=02508201610067®Number=0000000000091573&sum=40000 [08:03:42]OFD Sender: Processing packet 77005 [packets to send 129, broken 128] [08:03:42]ProducePacketName [08:03:42]name=ofd_packets/00077005 [08:03:42]OFD Sender: To server: pG, [08:03:42]CommunicateWithHost lk.salyk.kg:30040 [08:03:42]ConnectInit lk.salyk.kg [08:03:42]written 0, free lines is 4095 [08:03:43]Connected sock=10 [08:03:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 D2 D1 07 01 9A 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 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 18 00 00 00 F4 03 04 00 DF 19 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CD 2C 01 00 35 04 06 00 FC 3F 02 89 2D 07 64 A9 5F 03 57 28 4C C4 [08:03:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 16 5E 47 00 3C 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CD 2C 01 00 F4 03 04 00 62 C1 25 66 B6 04 01 00 00 4E EA 3D F8 57 E6 FF 9F [08:03:43]CommunicateWithHost err = 0 [08:03:43]CheckOFDResponse [08:03:43]1017 (14) - 77093643461234 [08:03:43]1041 (16) - 0000000000874652 [08:03:43]1040 (4) - 77005 [08:03:43]1012 (4) - 22.04.2024 01:46 [08:03:43]1206 (1) - 0 [08:03:43]OFD Sender: Remove packet 77005 [08:03:43]ProducePacketName [08:03:43]name=ofd_packets/00077005 [08:03:43]NVStorageDeleteData [08:03:43]Write to MH i2c: 01 00 00 4F 07 56 [08:03:43]Write i2c OK [08:03:43]MH_I2C_Read... [08:03:43]Read from MH i2c: 01 [08:03:43]MH_I2C_Read... [08:03:43]Read from MH i2c: 01 07 00 [08:03:43]MH_I2C_Read... [08:03:43]Read from MH i2c: 01 07 00 4F 07 00 00 00 00 00 F2 0C 5B [08:03:43]RasterBufferAndPrint [08:03:43]line [08:03:43]line [08:03:43]line [08:03:43]line [08:03:43]line [08:03:43]written 0, free lines is 3322 [08:03:43]MH_Cut [08:03:43]Write to MH i2c: D1 01 00 56 07 01 2F [08:03:43]Write i2c OK [08:03:43]MH_I2C_Read... [08:03:43]Read from MH i2c: D1 [08:03:43]MH_I2C_Read... [08:03:43]Read from MH i2c: D1 01 00 [08:03:43]MH_I2C_Read... [08:03:43]Read from MH i2c: D1 01 00 56 07 00 2E [08:03:43]Write to MH i2c: 01 00 00 57 07 5E [08:03:43]Write i2c OK [08:03:43]MH_I2C_Read... [08:03:43]OFD Sender: No OFD packet to send [08:03:44]*** Cut start [08:03:44]*** Partial cut [08:03:44]*** CUTSNS_PIN = 1 [08:03:44]*** CUTSNS_PIN = 0 [08:03:44]*** Brake cut motor [08:03:44]Read from MH i2c: 01 [08:03:44]MH_I2C_Read... [08:03:44]*** Stop cut motor [08:03:44]*** Cut end [08:03:44]Read from MH i2c: 01 07 00 [08:03:44]MH_I2C_Read... [08:03:44]Read from MH i2c: 01 07 00 57 07 00 00 00 00 00 FF 0F 73 [08:03:44]process_action close_receipt done [08:03:44]requested_data is exist [08:03:44]produce_requested_data [08:03:44]requested_item fm.sn is exist - process it [08:03:44]wFMCommunicate request_size=4 [08:03:44]MH_SAM_APDU [08:03:44]CAPDU: 80 11 00 00 [08:03:44]Write to MH i2c: E2 08 00 58 07 80 11 00 00 00 00 00 00 D9 [08:03:44]Write i2c OK [08:03:44]MH_I2C_Read... [08:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:44]Read from MH i2c: E2 [08:03:44]MH_I2C_Read... [08:03:44]Read from MH i2c: E2 17 00 [08:03:44]MH_I2C_Read... [08:03:44]Read from MH i2c: E2 17 00 58 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2C [08:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:03:44]wFMCommunicate OK [08:03:44]requested_item fd.num is exist - process it [08:03:44]SAM_PROTO_GetFieldsCounters [08:03:44]wFMCommunicate request_size=4 [08:03:44]MH_SAM_APDU [08:03:44]CAPDU: 80 13 00 00 [08:03:44]Write to MH i2c: E2 08 00 59 07 80 13 00 00 00 00 00 00 DC [08:03:44]Write i2c OK [08:03:44]MH_I2C_Read... [08:03:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:44]Read from MH i2c: E2 [08:03:44]MH_I2C_Read... [08:03:44]Read from MH i2c: E2 62 00 [08:03:44]MH_I2C_Read... [08:03:44]Read from MH i2c: E2 62 00 59 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CD 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [08:03:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CD 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:03:44]wFMCommunicate OK [08:03:44]SAM_PROTO_GetFieldsCounters done [08:03:44]requested_item shift.num is exist - process it [08:03:44]requested_item shift.opened is exist - process it [08:03:44]req_shift_opened [08:03:44]FM_GetShiftState [08:03:44]SAM_PROTO_GetShiftState [08:03:44]wFMCommunicate request_size=4 [08:03:44]MH_SAM_APDU [08:03:44]CAPDU: 80 13 01 00 [08:03:44]Write to MH i2c: E2 08 00 5A 07 80 13 01 00 00 00 00 00 DE [08:03:44]Write i2c OK [08:03:44]MH_I2C_Read... [08:03:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:44]Read from MH i2c: E2 [08:03:44]MH_I2C_Read... [08:03:44]Read from MH i2c: E2 0E 00 [08:03:44]MH_I2C_Read... [08:03:44]Read from MH i2c: E2 0E 00 5A 07 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 05 [08:03:44]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:03:44]wFMCommunicate OK [08:03:44]SAM_PROTO_GetShiftState done [08:03:44]FM_GetShiftState done [08:03:44]req_shift_opened done [08:03:44]requested_item shift.open_date is exist - process it [08:03:44]req_shift_open_date [08:03:44]req_shift_open_date done [08:03:44]produce_requested_data done [08:03:44]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77005,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [08:03:44]process_action_free close_receipt [08:03:44]json_value_free [08:03:44]json_value_free done [08:03:44]process_json_proto returns [08:03:44]Send response to host [08:03:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77005,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [08:03:44]free response buf [08:03:44]execute_script done [08:03:44]execute_script returns [08:03:44]free content buf [08:03:44]Sock 9.Close socket [08:03:44]Sock 9.Thread stoped [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:58]OFD Sender: No OFD packet to send [08:04:03]OFD Sender: No OFD packet to send [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:49]OFD Sender: No OFD packet to send [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:09]accept exits with 7 [08:15:09]New connection [08:15:09]New thread 3067030884 created [08:15:09]Thread 3067174244 joined [08:15:09]Waiting for new connection... [08:15:09] Sock 7.Parse request [08:15:09]Sock 7.Check first char [08:15:09]Sock 7.First char is OK [08:15:09]request: POST /json_proto HTTP/1.0 [08:15:09]Method: POST [08:15:09]URL: /json_proto [08:15:09]Method is POST - this is cgi request [08:15:09]url: /json_proto [08:15:09]query_string will be loaded in cgi processing [08:15:09]execute_cgi json_proto POST (null) [08:15:09]execute_cgi path=json_proto method=POST [08:15:09]POST find Content-Length [08:15:09]Host: 172.17.62.5:8080 [08:15:09]Content-Length: 677 [08:15:09]Content-Type: application/json [08:15:09] [08:15:09]POST finish read [08:15:09]Found Content-Length = 677 [08:15:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "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:15:09]execute_script... [08:15: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)191558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "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:15:09]POST & json_proto [08:15:09]process_json_proto [08:15:09]json parsed OK: [08:15:09]protocol is kg_v1.0 [08:15:09]action value=close_receipt [08:15:09]process_action close_receipt [08:15:09]cmd_close_receipt [08:15:09]MH_GetDate [08:15:09]Write to MH i2c: F0 00 00 5B 07 51 [08:15:09]Write i2c OK [08:15:09]MH_I2C_Read... [08:15:09]Read from MH i2c: F0 [08:15:09]MH_I2C_Read... [08:15:09]Read from MH i2c: F0 09 00 [08:15:09]MH_I2C_Read... [08:15:09]Read from MH i2c: F0 09 00 5B 07 00 90 1C 26 66 F4 E9 65 64 38 [08:15:09]GetLastDocTimeStamp 1713773023 [08:15:09]current date 1713773712 [08:15:09]FM_GetShiftState [08:15:09]SAM_PROTO_GetShiftState [08:15:09]wFMCommunicate request_size=4 [08:15:09]MH_SAM_APDU [08:15:09]CAPDU: 80 13 01 00 [08:15:09]Write to MH i2c: E2 08 00 5C 07 80 13 01 00 00 00 00 00 E0 [08:15:09]Write i2c OK [08:15:09]MH_I2C_Read... [08:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:10]Read from MH i2c: E2 [08:15:10]MH_I2C_Read... [08:15:10]Read from MH i2c: E2 0E 00 [08:15:10]MH_I2C_Read... [08:15:10]Read from MH i2c: E2 0E 00 5C 07 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 07 [08:15:10]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:15:10]wFMCommunicate OK [08:15:10]SAM_PROTO_GetShiftState done [08:15:10]FM_GetShiftState done [08:15:10]opened in 1713745124 [08:15:10]opened+sec_in_day 1713831524 [08:15:10]quantity*price = 50038 [08:15:10]sum+1 = 50040 [08:15:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 25 22.04.2024 08:15 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77006 ФПД: 263713994763499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T081512&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77006&fm=263713994763499&tin=02508201610067®Number=0000000000091573&sum=50000 [08:15:11]StoreToDocumentArchive [08:15:11]shift 373 fd 77006 [08:15:11]save to /storage/0373/doc_00077006 [08:15:11]save last doc name /storage/0373/doc_00077006 to /storage/kkm_last_doc_name [08:15:11]save OK [08:15:11]Clear old archive folders... [08:15:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:15:11]tlvbuf is 017668D0 [08:15:11]SAM_PROTO_ClearQueue [08:15:11]wFMCommunicate request_size=4 [08:15:11]MH_SAM_APDU [08:15:11]CAPDU: 80 09 00 00 [08:15:11]Write to MH i2c: E2 08 00 69 07 80 09 00 00 00 00 00 00 E2 [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:11]Read from MH i2c: E2 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 69 07 00 90 00 E4 [08:15:11]RAPDU: 90 00 [08:15:11]wFMCommunicate OK [08:15:11]SAM_PROTO_ClearQueue done [08:15:11]KKMCreateOFDPacket [08:15:11]OFDProtocolAddRootSTLVToBuf [08:15:11]FM_MakeSignedData [08:15:11]FM_MakeSignedData [08:15:11]SAM_PROTO_SignData [08:15:11]wFMCommunicate request_size=4 [08:15:11]MH_SAM_APDU [08:15:11]CAPDU: 80 0D 01 02 [08:15:11]Write to MH i2c: E2 08 00 6A 07 80 0D 01 02 00 00 00 00 EA [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:11]Read from MH i2c: E2 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 6A 07 00 90 00 E5 [08:15:11]RAPDU: 90 00 [08:15:11]wFMCommunicate OK [08:15:11]wFMCommunicate request_size=255 [08:15:11]MH_SAM_APDU [08:15:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 19 00 00 00 F4 03 04 00 90 1C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CE 2C 01 00 35 04 06 00 EF [08:15:11]Write to MH i2c: E2 02 01 6B 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 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 19 00 00 00 F4 03 04 00 90 1C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CE 2C 01 00 35 04 06 00 EF 00 00 50 [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:11]Read from MH i2c: E2 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 6B 07 00 90 00 E6 [08:15:11]RAPDU: 90 00 [08:15:11]wFMCommunicate OK [08:15:11]wFMCommunicate request_size=10 [08:15:11]MH_SAM_APDU [08:15:11]CAPDU: 80 0D 02 02 05 D8 B2 FA EC EB [08:15:11]Write to MH i2c: E2 0D 00 6C 07 80 0D 02 02 05 00 D8 B2 FA EC EB 00 00 52 [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:11]Read from MH i2c: E2 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 03 00 6C 07 00 90 00 E7 [08:15:11]RAPDU: 90 00 [08:15:11]wFMCommunicate OK [08:15:11]wFMCommunicate request_size=4 [08:15:11]MH_SAM_APDU [08:15:11]CAPDU: 80 0D 03 02 [08:15:11]Write to MH i2c: E2 08 00 6D 07 80 0D 03 02 00 00 00 00 EF [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:11]Read from MH i2c: E2 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 0B 00 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 0B 00 6D 07 00 FE 91 FC A9 4D 06 8B 93 90 00 95 [08:15:11]RAPDU: FE 91 FC A9 4D 06 8B 93 90 00 [08:15:11]wFMCommunicate OK [08:15:11]SAM_PROTO_SignData done [08:15:11]FM_MakeSignedData done [08:15:11]CreateOFDProtocolMessage [08:15:11]wFMCommunicate request_size=4 [08:15:11]MH_SAM_APDU [08:15:11]CAPDU: 80 11 00 00 [08:15:11]Write to MH i2c: E2 08 00 6E 07 80 11 00 00 00 00 00 00 EF [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:11]Read from MH i2c: E2 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 17 00 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: E2 17 00 6E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 42 [08:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:15:11]wFMCommunicate OK [08:15:11]CreateOFDProtocolMessage done [08:15:11]OFDSenderStorePacket 77006 [08:15:11]StoreOFDPacket docnum=77006 [08:15:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 33 BD 07 01 9D F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 19 00 00 00 F4 03 04 00 90 1C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CE 2C 01 00 35 04 06 00 EF D8 B2 FA EC EB FE 91 FC A9 4D 06 8B 93 [08:15:11]CheckFolder [08:15:11]dirname=/storage/ofd_packets [08:15:11]CheckFolder done [08:15:11]ProducePacketName [08:15:11]name=ofd_packets/00077006 [08:15:11]NVStorageSaveData ofd_packets/00077006 [08:15:11]File name is /storage/ofd_packets/00077006 [08:15:11]Write 301 bytes [08:15:11]NVStorageSaveData done [08:15:11]OFDSenderStorePacket done [08:15:11]KKMCreateOFDPacket done [08:15:11]NVStorageSaveData kkm_last_timestamp [08:15:11]File name is /storage/kkm_last_timestamp [08:15:11]Write 4 bytes [08:15:11]NVStorageSaveData done [08:15:11]ExternCall_PrintAddStr [08:15:11]wPrintStart [08:15:11]Write to MH i2c: 01 00 00 6F 07 76 [08:15:11]Write i2c OK [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: 01 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: 01 07 00 [08:15:11]MH_I2C_Read... [08:15:11]Read from MH i2c: 01 07 00 6F 07 00 00 00 00 00 FF 0F 8B [08:15:11]RasterBufferAndPrint [08:15:11]line Счет N : (1)191558 [08:15:11]line ИНН: 02508201610067 [08:15:11]line Контрольно-Кассовый Чек [08:15:11]line ПРОДАЖА [08:15:11]line ТРК (МРК, ГНК) : 12 [08:15:11]line Товар: 2710124130 [08:15:11]line Аи-92-К-5 [08:15:11]line 7.770 * 64.40 [08:15:11]line = 500.39 [08:15:11]line НДС 12% НСП 1% [08:15:11]line > о реализуемом товаре [08:15:11]line ОКРУГЛЕНИЕ: -0.39 [08:15:11]line ИТОГО: 500.00 [08:15:11]line Внесено: 500.00 [08:15:11]line СДАЧА: 0.00 [08:15:11]line НСП 1% : 4.43 [08:15:11]line НДС 12% : 53.14 [08:15:11]line Наличными: 500.00 [08:15:11]line Безнал.: 0.00 [08:15:11]line Место: АЗС № 106 "Партнер Нефть" [08:15:11]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:15:11]line СНО: Общий режим [08:15:11]line Чек 25 22.04.2024 08:15 [08:15:11]line Смена: 373 ФФД: 1.0 [08:15:11]line ЗНМ: 0300000141 [08:15:11]line РНМ: 0000000000091573 [08:15:11]line Версия ККМ: 001 [08:15:11]line ФМ: 0000000000874652 [08:15:11]line ФД: 77006 [08:15:11]line ФПД: 263713994763499 [08:15:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T081512&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77006&fm=263713994763499&tin=02508201610067®Number=0000000000091573&sum=50000 [08:15:12]written 0, free lines is 4095 [08:15:12]OFD Sender: Processing packet 77006 [packets to send 129, broken 128] [08:15:12]ProducePacketName [08:15:12]name=ofd_packets/00077006 [08:15:12]OFD Sender: To server: pG, [08:15:12]CommunicateWithHost lk.salyk.kg:30040 [08:15:12]ConnectInit lk.salyk.kg [08:15:12]Connected sock=10 [08:15:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 33 BD 07 01 9D F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 19 00 00 00 F4 03 04 00 90 1C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CE 2C 01 00 35 04 06 00 EF D8 B2 FA EC EB FE 91 FC A9 4D 06 8B 93 [08:15:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 22 18 47 00 95 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 30 38 37 34 36 35 32 10 04 04 00 CE 2C 01 00 F4 03 04 00 13 C4 25 66 B6 04 01 00 00 08 BF 80 1E AF 64 3B 7E [08:15:12]CommunicateWithHost err = 0 [08:15:12]CheckOFDResponse [08:15:12]1017 (14) - 77093643461234 [08:15:12]1041 (16) - 0000000000874652 [08:15:12]1040 (4) - 77006 [08:15:12]1012 (4) - 22.04.2024 01:57 [08:15:12]1206 (1) - 0 [08:15:12]OFD Sender: Remove packet 77006 [08:15:12]ProducePacketName [08:15:12]name=ofd_packets/00077006 [08:15:12]NVStorageDeleteData [08:15:12]Write to MH i2c: 01 00 00 99 07 A0 [08:15:12]Write i2c OK [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: 01 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: 01 07 00 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: 01 07 00 99 07 00 00 00 00 00 E8 0C 9B [08:15:12]RasterBufferAndPrint [08:15:12]line [08:15:12]line [08:15:12]line [08:15:12]line [08:15:12]line [08:15:12]written 0, free lines is 3310 [08:15:12]MH_Cut [08:15:12]Write to MH i2c: D1 01 00 A0 07 01 79 [08:15:12]Write i2c OK [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: D1 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: D1 01 00 [08:15:12]MH_I2C_Read... [08:15:12]Read from MH i2c: D1 01 00 A0 07 00 78 [08:15:12]Write to MH i2c: 01 00 00 A1 07 A8 [08:15:12]Write i2c OK [08:15:12]MH_I2C_Read... [08:15:12]OFD Sender: No OFD packet to send [08:15:13]*** Cut start [08:15:13]*** Partial cut [08:15:13]*** CUTSNS_PIN = 1 [08:15:13]*** CUTSNS_PIN = 0 [08:15:13]*** Brake cut motor [08:15:13]Read from MH i2c: 01 [08:15:13]MH_I2C_Read... [08:15:13]*** Stop cut motor [08:15:13]*** Cut end [08:15:13]Read from MH i2c: 01 07 00 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: 01 07 00 A1 07 00 00 00 00 00 FF 0F BD [08:15:13]process_action close_receipt done [08:15:13]requested_data is exist [08:15:13]produce_requested_data [08:15:13]requested_item fm.sn is exist - process it [08:15:13]wFMCommunicate request_size=4 [08:15:13]MH_SAM_APDU [08:15:13]CAPDU: 80 11 00 00 [08:15:13]Write to MH i2c: E2 08 00 A2 07 80 11 00 00 00 00 00 00 23 [08:15:13]Write i2c OK [08:15:13]MH_I2C_Read... [08:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:13]Read from MH i2c: E2 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: E2 17 00 [08:15:13]MH_I2C_Read... [08:15:13]Read from MH i2c: E2 17 00 A2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 76 [08:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:15:13]wFMCommunicate OK [08:15:13]requested_item fd.num is exist - process it [08:15:13]SAM_PROTO_GetFieldsCounters [08:15:13]wFMCommunicate request_size=4 [08:15:13]MH_SAM_APDU [08:15:13]CAPDU: 80 13 00 00 [08:15:13]Write to MH i2c: E2 08 00 A3 07 80 13 00 00 00 00 00 00 26 [08:15:13]Write i2c OK [08:15:13]MH_I2C_Read... [08:15:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:14]Read from MH i2c: E2 [08:15:14]MH_I2C_Read... [08:15:14]Read from MH i2c: E2 62 00 [08:15:14]MH_I2C_Read... [08:15:14]Read from MH i2c: E2 62 00 A3 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CE 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [08:15:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CE 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:15:14]wFMCommunicate OK [08:15:14]SAM_PROTO_GetFieldsCounters done [08:15:14]requested_item shift.num is exist - process it [08:15:14]requested_item shift.opened is exist - process it [08:15:14]req_shift_opened [08:15:14]FM_GetShiftState [08:15:14]SAM_PROTO_GetShiftState [08:15:14]wFMCommunicate request_size=4 [08:15:14]MH_SAM_APDU [08:15:14]CAPDU: 80 13 01 00 [08:15:14]Write to MH i2c: E2 08 00 A4 07 80 13 01 00 00 00 00 00 28 [08:15:14]Write i2c OK [08:15:14]MH_I2C_Read... [08:15:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:14]Read from MH i2c: E2 [08:15:14]MH_I2C_Read... [08:15:14]Read from MH i2c: E2 0E 00 [08:15:14]MH_I2C_Read... [08:15:14]Read from MH i2c: E2 0E 00 A4 07 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 4F [08:15:14]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:15:14]wFMCommunicate OK [08:15:14]SAM_PROTO_GetShiftState done [08:15:14]FM_GetShiftState done [08:15:14]req_shift_opened done [08:15:14]requested_item shift.open_date is exist - process it [08:15:14]req_shift_open_date [08:15:14]req_shift_open_date done [08:15:14]produce_requested_data done [08:15:14]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77006,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [08:15:14]process_action_free close_receipt [08:15:14]json_value_free [08:15:14]json_value_free done [08:15:14]process_json_proto returns [08:15:14]Send response to host [08:15:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77006,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [08:15:14]free response buf [08:15:14]execute_script done [08:15:14]execute_script returns [08:15:14]free content buf [08:15:14]Sock 7.Close socket [08:15:14]Sock 7.Thread stoped [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:47]accept exits with 9 [08:15:47]New connection [08:15:47]New thread 3067174244 created [08:15:47]Thread 3067030884 joined [08:15:47]Waiting for new connection... [08:15:47] Sock 9.Parse request [08:15:47]Sock 9.Check first char [08:15:47]Sock 9.First char is OK [08:15:47]request: POST /json_proto HTTP/1.0 [08:15:47]Method: POST [08:15:47]URL: /json_proto [08:15:47]Method is POST - this is cgi request [08:15:47]url: /json_proto [08:15:47]query_string will be loaded in cgi processing [08:15:47]execute_cgi json_proto POST (null) [08:15:47]execute_cgi path=json_proto method=POST [08:15:47]POST find Content-Length [08:15:47]Host: 172.17.62.5:8080 [08:15:47]Content-Length: 678 [08:15:47]Content-Type: application/json [08:15:47] [08:15:47]POST finish read [08:15:47]Found Content-Length = 678 [08:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.100, "sum" : 650.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:47]execute_script... [08:15: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)191559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.100, "sum" : 650.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:47]POST & json_proto [08:15:47]process_json_proto [08:15:47]json parsed OK: [08:15:47]protocol is kg_v1.0 [08:15:47]action value=close_receipt [08:15:47]process_action close_receipt [08:15:47]cmd_close_receipt [08:15:47]MH_GetDate [08:15:47]Write to MH i2c: F0 00 00 A5 07 9B [08:15:47]Write i2c OK [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: F0 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: F0 09 00 [08:15:47]MH_I2C_Read... [08:15:47]Read from MH i2c: F0 09 00 A5 07 00 B6 1C 26 66 F4 E9 65 64 A8 [08:15:47]GetLastDocTimeStamp 1713773712 [08:15:47]current date 1713773750 [08:15:47]FM_GetShiftState [08:15:47]SAM_PROTO_GetShiftState [08:15:47]wFMCommunicate request_size=4 [08:15:47]MH_SAM_APDU [08:15:47]CAPDU: 80 13 01 00 [08:15:47]Write to MH i2c: E2 08 00 A6 07 80 13 01 00 00 00 00 00 2A [08:15:47]Write i2c OK [08:15:47]MH_I2C_Read... [08:15:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:48]Read from MH i2c: E2 [08:15:48]MH_I2C_Read... [08:15:48]Read from MH i2c: E2 0E 00 [08:15:48]MH_I2C_Read... [08:15:48]Read from MH i2c: E2 0E 00 A6 07 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 51 [08:15:48]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:15:48]wFMCommunicate OK [08:15:48]SAM_PROTO_GetShiftState done [08:15:48]FM_GetShiftState done [08:15:48]opened in 1713745124 [08:15:48]opened+sec_in_day 1713831524 [08:15:48]quantity*price = 65044 [08:15:48]sum+1 = 65045 [08:15:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.07 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 26 22.04.2024 08:15 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77007 ФПД: 271151062967358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T081550&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77007&fm=271151062967358&tin=02508201610067®Number=0000000000091573&sum=65000 [08:15:49]StoreToDocumentArchive [08:15:49]shift 373 fd 77007 [08:15:49]save to /storage/0373/doc_00077007 [08:15:49]save last doc name /storage/0373/doc_00077007 to /storage/kkm_last_doc_name [08:15:49]save OK [08:15:49]Clear old archive folders... [08:15:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:15:49]tlvbuf is 01701520 [08:15:49]SAM_PROTO_ClearQueue [08:15:49]wFMCommunicate request_size=4 [08:15:49]MH_SAM_APDU [08:15:49]CAPDU: 80 09 00 00 [08:15:49]Write to MH i2c: E2 08 00 B3 07 80 09 00 00 00 00 00 00 2C [08:15:49]Write i2c OK [08:15:49]MH_I2C_Read... [08:15:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:49]Read from MH i2c: E2 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: E2 03 00 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: E2 03 00 B3 07 00 90 00 2E [08:15:49]RAPDU: 90 00 [08:15:49]wFMCommunicate OK [08:15:49]SAM_PROTO_ClearQueue done [08:15:49]KKMCreateOFDPacket [08:15:49]OFDProtocolAddRootSTLVToBuf [08:15:49]FM_MakeSignedData [08:15:49]FM_MakeSignedData [08:15:49]SAM_PROTO_SignData [08:15:49]wFMCommunicate request_size=4 [08:15:49]MH_SAM_APDU [08:15:49]CAPDU: 80 0D 01 02 [08:15:49]Write to MH i2c: E2 08 00 B4 07 80 0D 01 02 00 00 00 00 34 [08:15:49]Write i2c OK [08:15:49]MH_I2C_Read... [08:15:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:49]Read from MH i2c: E2 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: E2 03 00 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: E2 03 00 B4 07 00 90 00 2F [08:15:49]RAPDU: 90 00 [08:15:49]wFMCommunicate OK [08:15:49]wFMCommunicate request_size=255 [08:15:49]MH_SAM_APDU [08:15:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 14 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 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 B6 1C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CF 2C 01 00 35 04 06 00 F6 [08:15:49]Write to MH i2c: E2 02 01 B5 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 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 14 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 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 B6 1C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CF 2C 01 00 35 04 06 00 F6 00 00 2D [08:15:49]Write i2c OK [08:15:49]MH_I2C_Read... [08:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:49]Read from MH i2c: E2 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: E2 03 00 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: E2 03 00 B5 07 00 90 00 30 [08:15:49]RAPDU: 90 00 [08:15:49]wFMCommunicate OK [08:15:49]wFMCommunicate request_size=10 [08:15:49]MH_SAM_APDU [08:15:49]CAPDU: 80 0D 02 02 05 9C 46 C9 E4 3E [08:15:49]Write to MH i2c: E2 0D 00 B6 07 80 0D 02 02 05 00 9C 46 C9 E4 3E 00 00 0E [08:15:49]Write i2c OK [08:15:49]MH_I2C_Read... [08:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:49]Read from MH i2c: E2 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: E2 03 00 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: E2 03 00 B6 07 00 90 00 31 [08:15:49]RAPDU: 90 00 [08:15:49]wFMCommunicate OK [08:15:49]wFMCommunicate request_size=4 [08:15:49]MH_SAM_APDU [08:15:49]CAPDU: 80 0D 03 02 [08:15:49]Write to MH i2c: E2 08 00 B7 07 80 0D 03 02 00 00 00 00 39 [08:15:49]Write i2c OK [08:15:49]MH_I2C_Read... [08:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:49]Read from MH i2c: E2 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: E2 0B 00 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: E2 0B 00 B7 07 00 CB 9D DF C9 21 4C 48 EA 90 00 E9 [08:15:49]RAPDU: CB 9D DF C9 21 4C 48 EA 90 00 [08:15:49]wFMCommunicate OK [08:15:49]SAM_PROTO_SignData done [08:15:49]FM_MakeSignedData done [08:15:49]CreateOFDProtocolMessage [08:15:49]wFMCommunicate request_size=4 [08:15:49]MH_SAM_APDU [08:15:49]CAPDU: 80 11 00 00 [08:15:49]Write to MH i2c: E2 08 00 B8 07 80 11 00 00 00 00 00 00 39 [08:15:49]Write i2c OK [08:15:49]MH_I2C_Read... [08:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:49]Read from MH i2c: E2 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: E2 17 00 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: E2 17 00 B8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8C [08:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:15:49]wFMCommunicate OK [08:15:49]CreateOFDProtocolMessage done [08:15:49]OFDSenderStorePacket 77007 [08:15:49]StoreOFDPacket docnum=77007 [08:15:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 97 AE 07 01 1F A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 14 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 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 B6 1C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CF 2C 01 00 35 04 06 00 F6 9C 46 C9 E4 3E CB 9D DF C9 21 4C 48 EA [08:15:49]CheckFolder [08:15:49]dirname=/storage/ofd_packets [08:15:49]CheckFolder done [08:15:49]ProducePacketName [08:15:49]name=ofd_packets/00077007 [08:15:49]NVStorageSaveData ofd_packets/00077007 [08:15:49]File name is /storage/ofd_packets/00077007 [08:15:49]Write 301 bytes [08:15:49]NVStorageSaveData done [08:15:49]OFDSenderStorePacket done [08:15:49]KKMCreateOFDPacket done [08:15:49]NVStorageSaveData kkm_last_timestamp [08:15:49]File name is /storage/kkm_last_timestamp [08:15:49]Write 4 bytes [08:15:49]NVStorageSaveData done [08:15:49]ExternCall_PrintAddStr [08:15:49]wPrintStart [08:15:49]Write to MH i2c: 01 00 00 B9 07 C0 [08:15:49]Write i2c OK [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: 01 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: 01 07 00 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: 01 07 00 B9 07 00 00 00 00 00 FF 0F D5 [08:15:49]RasterBufferAndPrint [08:15:49]line Счет N : (1)191559 [08:15:49]line ИНН: 02508201610067 [08:15:49]line Контрольно-Кассовый Чек [08:15:49]line ПРОДАЖА [08:15:49]line ТРК (МРК, ГНК) : 33 [08:15:49]line Товар: 2710124130 [08:15:49]line Аи-92-К-5 [08:15:49]line 10.100 * 64.40 [08:15:49]line = 650.44 [08:15:49]line НДС 12% НСП 1% [08:15:49]line > о реализуемом товаре [08:15:49]line ОКРУГЛЕНИЕ: -0.44 [08:15:49]line ИТОГО: 650.00 [08:15:49]line Внесено: 650.00 [08:15:49]line СДАЧА: 0.00 [08:15:49]line НСП 1% : 5.76 [08:15:49]line НДС 12% : 69.07 [08:15:49]line Наличными: 650.00 [08:15:49]line Безнал.: 0.00 [08:15:49]line Место: АЗС № 106 "Партнер Нефть" [08:15:49]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:15:49]line СНО: Общий режим [08:15:49]line Чек 26 22.04.2024 08:15 [08:15:49]line Смена: 373 ФФД: 1.0 [08:15:49]line ЗНМ: 0300000141 [08:15:49]line РНМ: 0000000000091573 [08:15:49]line Версия ККМ: 001 [08:15:49]line ФМ: 0000000000874652 [08:15:49]line ФД: 77007 [08:15:49]line ФПД: 271151062967358 [08:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T081550&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77007&fm=271151062967358&tin=02508201610067®Number=0000000000091573&sum=65000 [08:15:50]written 0, free lines is 4095 [08:15:50]OFD Sender: Processing packet 77007 [packets to send 129, broken 128] [08:15:50]ProducePacketName [08:15:50]name=ofd_packets/00077007 [08:15:50]OFD Sender: To server: pG, [08:15:50]CommunicateWithHost lk.salyk.kg:30040 [08:15:50]ConnectInit lk.salyk.kg [08:15:50]Connected sock=10 [08:15:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 97 AE 07 01 1F A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 14 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 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 B6 1C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CF 2C 01 00 35 04 06 00 F6 9C 46 C9 E4 3E CB 9D DF C9 21 4C 48 EA [08:15:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 90 93 47 00 A5 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 CF 2C 01 00 F4 03 04 00 39 C4 25 66 B6 04 01 00 00 12 67 F5 34 F4 7E DC AE [08:15:50]CommunicateWithHost err = 0 [08:15:50]CheckOFDResponse [08:15:50]1017 (14) - 77093643461234 [08:15:50]1041 (16) - 0000000000874652 [08:15:50]1040 (4) - 77007 [08:15:50]1012 (4) - 22.04.2024 01:58 [08:15:50]1206 (1) - 0 [08:15:50]OFD Sender: Remove packet 77007 [08:15:50]ProducePacketName [08:15:50]name=ofd_packets/00077007 [08:15:50]NVStorageDeleteData [08:15:50]Write to MH i2c: 01 00 00 E3 07 EA [08:15:50]Write i2c OK [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: 01 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: 01 07 00 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: 01 07 00 E3 07 00 00 00 00 00 F5 0C F2 [08:15:50]RasterBufferAndPrint [08:15:50]line [08:15:50]line [08:15:50]line [08:15:50]line [08:15:50]line [08:15:50]written 0, free lines is 3324 [08:15:50]MH_Cut [08:15:50]Write to MH i2c: D1 01 00 EA 07 01 C3 [08:15:50]Write i2c OK [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: D1 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: D1 01 00 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: D1 01 00 EA 07 00 C2 [08:15:50]Write to MH i2c: 01 00 00 EB 07 F2 [08:15:50]Write i2c OK [08:15:50]MH_I2C_Read... [08:15:50]OFD Sender: No OFD packet to send [08:15:51]*** Cut start [08:15:51]*** Partial cut [08:15:51]*** CUTSNS_PIN = 1 [08:15:51]*** CUTSNS_PIN = 0 [08:15:51]*** Brake cut motor [08:15:51]Read from MH i2c: 01 [08:15:51]MH_I2C_Read... [08:15:51]*** Stop cut motor [08:15:51]*** Cut end [08:15:51]Read from MH i2c: 01 07 00 [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: 01 07 00 EB 07 00 00 00 00 00 FF 0F 07 [08:15:51]process_action close_receipt done [08:15:51]requested_data is exist [08:15:51]produce_requested_data [08:15:51]requested_item fm.sn is exist - process it [08:15:51]wFMCommunicate request_size=4 [08:15:51]MH_SAM_APDU [08:15:51]CAPDU: 80 11 00 00 [08:15:51]Write to MH i2c: E2 08 00 EC 07 80 11 00 00 00 00 00 00 6D [08:15:51]Write i2c OK [08:15:51]MH_I2C_Read... [08:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:51]Read from MH i2c: E2 [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: E2 17 00 [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: E2 17 00 EC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C0 [08:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:15:51]wFMCommunicate OK [08:15:51]requested_item fd.num is exist - process it [08:15:51]SAM_PROTO_GetFieldsCounters [08:15:51]wFMCommunicate request_size=4 [08:15:51]MH_SAM_APDU [08:15:51]CAPDU: 80 13 00 00 [08:15:51]Write to MH i2c: E2 08 00 ED 07 80 13 00 00 00 00 00 00 70 [08:15:51]Write i2c OK [08:15:51]MH_I2C_Read... [08:15:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:52]Read from MH i2c: E2 [08:15:52]MH_I2C_Read... [08:15:52]Read from MH i2c: E2 62 00 [08:15:52]MH_I2C_Read... [08:15:52]Read from MH i2c: E2 62 00 ED 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [08:15:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 CF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:15:52]wFMCommunicate OK [08:15:52]SAM_PROTO_GetFieldsCounters done [08:15:52]requested_item shift.num is exist - process it [08:15:52]requested_item shift.opened is exist - process it [08:15:52]req_shift_opened [08:15:52]FM_GetShiftState [08:15:52]SAM_PROTO_GetShiftState [08:15:52]wFMCommunicate request_size=4 [08:15:52]MH_SAM_APDU [08:15:52]CAPDU: 80 13 01 00 [08:15:52]Write to MH i2c: E2 08 00 EE 07 80 13 01 00 00 00 00 00 72 [08:15:52]Write i2c OK [08:15:52]MH_I2C_Read... [08:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:52]Read from MH i2c: E2 [08:15:52]MH_I2C_Read... [08:15:52]Read from MH i2c: E2 0E 00 [08:15:52]MH_I2C_Read... [08:15:52]Read from MH i2c: E2 0E 00 EE 07 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 99 [08:15:52]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:15:52]wFMCommunicate OK [08:15:52]SAM_PROTO_GetShiftState done [08:15:52]FM_GetShiftState done [08:15:52]req_shift_opened done [08:15:52]requested_item shift.open_date is exist - process it [08:15:52]req_shift_open_date [08:15:52]req_shift_open_date done [08:15:52]produce_requested_data done [08:15:52]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77007,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [08:15:52]process_action_free close_receipt [08:15:52]json_value_free [08:15:52]json_value_free done [08:15:52]process_json_proto returns [08:15:52]Send response to host [08:15:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77007,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [08:15:52]free response buf [08:15:52]execute_script done [08:15:52]execute_script returns [08:15:52]free content buf [08:15:52]Sock 9.Close socket [08:15:52]Sock 9.Thread stoped [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:24]accept exits with 7 [08:19:24]New connection [08:19:24]New thread 3067030884 created [08:19:24]Thread 3067174244 joined [08:19:24]Waiting for new connection... [08:19:24] Sock 7.Parse request [08:19:24]Sock 7.Check first char [08:19:24]Sock 7.First char is OK [08:19:24]request: POST /json_proto HTTP/1.0 [08:19:24]Method: POST [08:19:24]URL: /json_proto [08:19:24]Method is POST - this is cgi request [08:19:24]url: /json_proto [08:19:24]query_string will be loaded in cgi processing [08:19:24]execute_cgi json_proto POST (null) [08:19:24]execute_cgi path=json_proto method=POST [08:19:24]POST find Content-Length [08:19:24]Host: 172.17.62.5:8080 [08:19:24]Content-Length: 677 [08:19:24]Content-Type: application/json [08:19:24] [08:19:24]POST finish read [08:19:24]Found Content-Length = 677 [08:19:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 9.320, "sum" : 600.21, "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:19:24]execute_script... [08:19: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)191560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 9.320, "sum" : 600.21, "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:19:24]POST & json_proto [08:19:24]process_json_proto [08:19:24]json parsed OK: [08:19:24]protocol is kg_v1.0 [08:19:24]action value=close_receipt [08:19:24]process_action close_receipt [08:19:24]cmd_close_receipt [08:19:24]MH_GetDate [08:19:24]Write to MH i2c: F0 00 00 EF 07 E5 [08:19:24]Write i2c OK [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: F0 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: F0 09 00 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: F0 09 00 EF 07 00 8F 1D 26 66 F4 E9 65 64 CC [08:19:24]GetLastDocTimeStamp 1713773750 [08:19:24]current date 1713773967 [08:19:24]FM_GetShiftState [08:19:24]SAM_PROTO_GetShiftState [08:19:24]wFMCommunicate request_size=4 [08:19:24]MH_SAM_APDU [08:19:24]CAPDU: 80 13 01 00 [08:19:24]Write to MH i2c: E2 08 00 F0 07 80 13 01 00 00 00 00 00 74 [08:19:24]Write i2c OK [08:19:24]MH_I2C_Read... [08:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:24]Read from MH i2c: E2 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 0E 00 [08:19:24]MH_I2C_Read... [08:19:24]Read from MH i2c: E2 0E 00 F0 07 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 9B [08:19:24]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:19:24]wFMCommunicate OK [08:19:24]SAM_PROTO_GetShiftState done [08:19:24]FM_GetShiftState done [08:19:24]opened in 1713745124 [08:19:24]opened+sec_in_day 1713831524 [08:19:24]quantity*price = 60020 [08:19:24]sum+1 = 60022 [08:19:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 27 22.04.2024 08:19 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77008 ФПД: 160245850490585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T081927&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77008&fm=160245850490585&tin=02508201610067®Number=0000000000091573&sum=60000 [08:19:25]StoreToDocumentArchive [08:19:25]shift 373 fd 77008 [08:19:25]save to /storage/0373/doc_00077008 [08:19:25]save last doc name /storage/0373/doc_00077008 to /storage/kkm_last_doc_name [08:19:25]save OK [08:19:25]Clear old archive folders... [08:19:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:25]tlvbuf is 0175AA50 [08:19:25]SAM_PROTO_ClearQueue [08:19:25]wFMCommunicate request_size=4 [08:19:25]MH_SAM_APDU [08:19:25]CAPDU: 80 09 00 00 [08:19:25]Write to MH i2c: E2 08 00 FD 07 80 09 00 00 00 00 00 00 76 [08:19:25]Write i2c OK [08:19:25]MH_I2C_Read... [08:19:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:25]Read from MH i2c: E2 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: E2 03 00 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: E2 03 00 FD 07 00 90 00 78 [08:19:25]RAPDU: 90 00 [08:19:25]wFMCommunicate OK [08:19:25]SAM_PROTO_ClearQueue done [08:19:25]KKMCreateOFDPacket [08:19:25]OFDProtocolAddRootSTLVToBuf [08:19:25]FM_MakeSignedData [08:19:25]FM_MakeSignedData [08:19:25]SAM_PROTO_SignData [08:19:25]wFMCommunicate request_size=4 [08:19:25]MH_SAM_APDU [08:19:25]CAPDU: 80 0D 01 02 [08:19:25]Write to MH i2c: E2 08 00 FE 07 80 0D 01 02 00 00 00 00 7E [08:19:25]Write i2c OK [08:19:25]MH_I2C_Read... [08:19:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:25]Read from MH i2c: E2 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: E2 03 00 [08:19:25]MH_I2C_Read... [08:19:25]Read from MH i2c: E2 03 00 FE 07 00 90 00 79 [08:19:25]RAPDU: 90 00 [08:19:25]wFMCommunicate OK [08:19:25]wFMCommunicate request_size=255 [08:19:25]MH_SAM_APDU [08:19:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8F 1D 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D0 2C 01 00 35 04 06 00 91 [08:19:25]Write to MH i2c: E2 02 01 FF 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 35 FF 03 08 00 03 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8F 1D 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D0 2C 01 00 35 04 06 00 91 00 00 B2 [08:19:25]Write i2c OK [08:19:25]MH_I2C_Read... [08:19:26]OFD Sender: No OFD packet to send [08:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:26]Read from MH i2c: E2 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 03 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 03 00 FF 07 00 90 00 7A [08:19:26]RAPDU: 90 00 [08:19:26]wFMCommunicate OK [08:19:26]wFMCommunicate request_size=10 [08:19:26]MH_SAM_APDU [08:19:26]CAPDU: 80 0D 02 02 05 BE 24 FE C6 D9 [08:19:26]Write to MH i2c: E2 0D 00 00 08 80 0D 02 02 05 00 BE 24 FE C6 D9 00 00 0B [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:26]Read from MH i2c: E2 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 03 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 03 00 00 08 00 90 00 7C [08:19:26]RAPDU: 90 00 [08:19:26]wFMCommunicate OK [08:19:26]wFMCommunicate request_size=4 [08:19:26]MH_SAM_APDU [08:19:26]CAPDU: 80 0D 03 02 [08:19:26]Write to MH i2c: E2 08 00 01 08 80 0D 03 02 00 00 00 00 84 [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:26]Read from MH i2c: E2 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 0B 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 0B 00 01 08 00 42 2B A6 F6 81 52 80 AB 90 00 8C [08:19:26]RAPDU: 42 2B A6 F6 81 52 80 AB 90 00 [08:19:26]wFMCommunicate OK [08:19:26]SAM_PROTO_SignData done [08:19:26]FM_MakeSignedData done [08:19:26]CreateOFDProtocolMessage [08:19:26]wFMCommunicate request_size=4 [08:19:26]MH_SAM_APDU [08:19:26]CAPDU: 80 11 00 00 [08:19:26]Write to MH i2c: E2 08 00 02 08 80 11 00 00 00 00 00 00 84 [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:26]Read from MH i2c: E2 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 17 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: E2 17 00 02 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D7 [08:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:19:26]wFMCommunicate OK [08:19:26]CreateOFDProtocolMessage done [08:19:26]OFDSenderStorePacket 77008 [08:19:26]StoreOFDPacket docnum=77008 [08:19:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 62 1C 07 01 32 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8F 1D 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D0 2C 01 00 35 04 06 00 91 BE 24 FE C6 D9 42 2B A6 F6 81 52 80 AB [08:19:26]CheckFolder [08:19:26]dirname=/storage/ofd_packets [08:19:26]CheckFolder done [08:19:26]ProducePacketName [08:19:26]name=ofd_packets/00077008 [08:19:26]NVStorageSaveData ofd_packets/00077008 [08:19:26]File name is /storage/ofd_packets/00077008 [08:19:26]Write 301 bytes [08:19:26]NVStorageSaveData done [08:19:26]OFDSenderStorePacket done [08:19:26]KKMCreateOFDPacket done [08:19:26]NVStorageSaveData kkm_last_timestamp [08:19:26]File name is /storage/kkm_last_timestamp [08:19:26]Write 4 bytes [08:19:26]NVStorageSaveData done [08:19:26]ExternCall_PrintAddStr [08:19:26]wPrintStart [08:19:26]Write to MH i2c: 01 00 00 03 08 0B [08:19:26]Write i2c OK [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: 01 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: 01 07 00 [08:19:26]MH_I2C_Read... [08:19:26]Read from MH i2c: 01 07 00 03 08 00 00 00 00 00 FF 0F 20 [08:19:26]RasterBufferAndPrint [08:19:26]line Счет N : (1)191560 [08:19:26]line ИНН: 02508201610067 [08:19:26]line Контрольно-Кассовый Чек [08:19:26]line ПРОДАЖА [08:19:26]line ТРК (МРК, ГНК) : 22 [08:19:26]line Товар: 2710124130 [08:19:26]line Аи-92-К-5 [08:19:26]line 9.320 * 64.40 [08:19:26]line = 600.21 [08:19:26]line НДС 12% НСП 1% [08:19:26]line > о реализуемом товаре [08:19:26]line ОКРУГЛЕНИЕ: -0.21 [08:19:26]line ИТОГО: 600.00 [08:19:26]line Внесено: 600.00 [08:19:26]line СДАЧА: 0.00 [08:19:26]line НСП 1% : 5.31 [08:19:26]line НДС 12% : 63.74 [08:19:26]line Наличными: 600.00 [08:19:26]line Безнал.: 0.00 [08:19:26]line Место: АЗС № 106 "Партнер Нефть" [08:19:26]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:19:26]line СНО: Общий режим [08:19:26]line Чек 27 22.04.2024 08:19 [08:19:26]line Смена: 373 ФФД: 1.0 [08:19:26]line ЗНМ: 0300000141 [08:19:26]line РНМ: 0000000000091573 [08:19:26]line Версия ККМ: 001 [08:19:26]line ФМ: 0000000000874652 [08:19:26]line ФД: 77008 [08:19:26]line ФПД: 160245850490585 [08:19:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T081927&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77008&fm=160245850490585&tin=02508201610067®Number=0000000000091573&sum=60000 [08:19:26]OFD Sender: Processing packet 77008 [packets to send 129, broken 128] [08:19:26]ProducePacketName [08:19:26]name=ofd_packets/00077008 [08:19:26]OFD Sender: To server: pG, [08:19:26]CommunicateWithHost lk.salyk.kg:30040 [08:19:26]ConnectInit lk.salyk.kg [08:19:26]written 0, free lines is 4095 [08:19:26]Connected sock=10 [08:19:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 62 1C 07 01 32 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 24 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 75 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 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8F 1D 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D0 2C 01 00 35 04 06 00 91 BE 24 FE C6 D9 42 2B A6 F6 81 52 80 AB [08:19:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 AF 6A 47 00 36 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D0 2C 01 00 F4 03 04 00 12 C5 25 66 B6 04 01 00 00 22 A0 92 E7 E7 20 A6 A4 [08:19:27]CommunicateWithHost err = 0 [08:19:27]CheckOFDResponse [08:19:27]1017 (14) - 77093643461234 [08:19:27]1041 (16) - 0000000000874652 [08:19:27]1040 (4) - 77008 [08:19:27]1012 (4) - 22.04.2024 02:01 [08:19:27]1206 (1) - 0 [08:19:27]OFD Sender: Remove packet 77008 [08:19:27]ProducePacketName [08:19:27]name=ofd_packets/00077008 [08:19:27]NVStorageDeleteData [08:19:27]Write to MH i2c: 01 00 00 2D 08 35 [08:19:27]Write i2c OK [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: 01 [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: 01 07 00 [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: 01 07 00 2D 08 00 00 00 00 00 E4 0C 2C [08:19:27]RasterBufferAndPrint [08:19:27]line [08:19:27]line [08:19:27]line [08:19:27]line [08:19:27]line [08:19:27]written 0, free lines is 3306 [08:19:27]MH_Cut [08:19:27]Write to MH i2c: D1 01 00 34 08 01 0E [08:19:27]Write i2c OK [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: D1 [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: D1 01 00 [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: D1 01 00 34 08 00 0D [08:19:27]Write to MH i2c: 01 00 00 35 08 3D [08:19:27]Write i2c OK [08:19:27]MH_I2C_Read... [08:19:27]OFD Sender: No OFD packet to send [08:19:27]*** Cut start [08:19:27]*** Partial cut [08:19:27]*** CUTSNS_PIN = 1 [08:19:27]*** CUTSNS_PIN = 0 [08:19:28]*** Brake cut motor [08:19:28]Read from MH i2c: 01 [08:19:28]MH_I2C_Read... [08:19:28]*** Stop cut motor [08:19:28]*** Cut end [08:19:28]Read from MH i2c: 01 07 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: 01 07 00 35 08 00 00 00 00 00 FF 0F 52 [08:19:28]process_action close_receipt done [08:19:28]requested_data is exist [08:19:28]produce_requested_data [08:19:28]requested_item fm.sn is exist - process it [08:19:28]wFMCommunicate request_size=4 [08:19:28]MH_SAM_APDU [08:19:28]CAPDU: 80 11 00 00 [08:19:28]Write to MH i2c: E2 08 00 36 08 80 11 00 00 00 00 00 00 B8 [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 17 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 17 00 36 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0B [08:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:19:28]wFMCommunicate OK [08:19:28]requested_item fd.num is exist - process it [08:19:28]SAM_PROTO_GetFieldsCounters [08:19:28]wFMCommunicate request_size=4 [08:19:28]MH_SAM_APDU [08:19:28]CAPDU: 80 13 00 00 [08:19:28]Write to MH i2c: E2 08 00 37 08 80 13 00 00 00 00 00 00 BB [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 62 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 62 00 37 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D0 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [08:19:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D0 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:28]wFMCommunicate OK [08:19:28]SAM_PROTO_GetFieldsCounters done [08:19:28]requested_item shift.num is exist - process it [08:19:28]requested_item shift.opened is exist - process it [08:19:28]req_shift_opened [08:19:28]FM_GetShiftState [08:19:28]SAM_PROTO_GetShiftState [08:19:28]wFMCommunicate request_size=4 [08:19:28]MH_SAM_APDU [08:19:28]CAPDU: 80 13 01 00 [08:19:28]Write to MH i2c: E2 08 00 38 08 80 13 01 00 00 00 00 00 BD [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 0E 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 0E 00 38 08 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 E4 [08:19:28]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:19:28]wFMCommunicate OK [08:19:28]SAM_PROTO_GetShiftState done [08:19:28]FM_GetShiftState done [08:19:28]req_shift_opened done [08:19:28]requested_item shift.open_date is exist - process it [08:19:28]req_shift_open_date [08:19:28]req_shift_open_date done [08:19:28]produce_requested_data done [08:19:28]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77008,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [08:19:28]process_action_free close_receipt [08:19:28]json_value_free [08:19:28]json_value_free done [08:19:28]process_json_proto returns [08:19:28]Send response to host [08:19:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77008,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [08:19:28]free response buf [08:19:28]execute_script done [08:19:28]execute_script returns [08:19:28]free content buf [08:19:28]Sock 7.Close socket [08:19:28]Sock 7.Thread stoped [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:17]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:45]accept exits with 9 [08:21:45]New connection [08:21:45]New thread 3067174244 created [08:21:45]Thread 3067030884 joined [08:21:45]Waiting for new connection... [08:21:45] Sock 9.Parse request [08:21:45]Sock 9.Check first char [08:21:45]Sock 9.First char is OK [08:21:45]request: POST /json_proto HTTP/1.0 [08:21:45]Method: POST [08:21:45]URL: /json_proto [08:21:45]Method is POST - this is cgi request [08:21:45]url: /json_proto [08:21:45]query_string will be loaded in cgi processing [08:21:45]execute_cgi json_proto POST (null) [08:21:45]execute_cgi path=json_proto method=POST [08:21:45]POST find Content-Length [08:21:45]Host: 172.17.62.5:8080 [08:21:45]Content-Length: 680 [08:21:45]Content-Type: application/json [08:21:45] [08:21:45]POST finish read [08:21:45]Found Content-Length = 680 [08:21:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 3.060, "sum" : 100.06, "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" ] } } [08:21:45]execute_script... [08:21: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)191561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 3.060, "sum" : 100.06, "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" ] } } [08:21:45]POST & json_proto [08:21:45]process_json_proto [08:21:45]json parsed OK: [08:21:45]protocol is kg_v1.0 [08:21:45]action value=close_receipt [08:21:45]process_action close_receipt [08:21:45]cmd_close_receipt [08:21:45]MH_GetDate [08:21:45]Write to MH i2c: F0 00 00 39 08 30 [08:21:45]Write i2c OK [08:21:45]MH_I2C_Read... [08:21:45]Read from MH i2c: F0 [08:21:45]MH_I2C_Read... [08:21:45]Read from MH i2c: F0 09 00 [08:21:45]MH_I2C_Read... [08:21:45]Read from MH i2c: F0 09 00 39 08 00 1C 1E 26 66 F4 E9 65 64 A5 [08:21:45]GetLastDocTimeStamp 1713773967 [08:21:45]current date 1713774108 [08:21:45]FM_GetShiftState [08:21:45]SAM_PROTO_GetShiftState [08:21:45]wFMCommunicate request_size=4 [08:21:45]MH_SAM_APDU [08:21:45]CAPDU: 80 13 01 00 [08:21:45]Write to MH i2c: E2 08 00 3A 08 80 13 01 00 00 00 00 00 BF [08:21:45]Write i2c OK [08:21:45]MH_I2C_Read... [08:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:45]Read from MH i2c: E2 [08:21:45]MH_I2C_Read... [08:21:45]Read from MH i2c: E2 0E 00 [08:21:45]MH_I2C_Read... [08:21:45]Read from MH i2c: E2 0E 00 3A 08 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 E6 [08:21:45]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:21:45]wFMCommunicate OK [08:21:45]SAM_PROTO_GetShiftState done [08:21:45]FM_GetShiftState done [08:21:45]opened in 1713745124 [08:21:45]opened+sec_in_day 1713831524 [08:21:45]quantity*price = 10006 [08:21:45]sum+1 = 10007 [08:21:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.88 НДС 12% : 10.63 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 28 22.04.2024 08:21 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77009 ФПД: 45911816884944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T082148&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77009&fm=45911816884944&tin=02508201610067®Number=0000000000091573&sum=10000 [08:21:46]StoreToDocumentArchive [08:21:46]shift 373 fd 77009 [08:21:46]save to /storage/0373/doc_00077009 [08:21:46]save last doc name /storage/0373/doc_00077009 to /storage/kkm_last_doc_name [08:21:46]save OK [08:21:46]Clear old archive folders... [08:21:46]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:21:46]tlvbuf is 017014A0 [08:21:46]SAM_PROTO_ClearQueue [08:21:46]wFMCommunicate request_size=4 [08:21:46]MH_SAM_APDU [08:21:46]CAPDU: 80 09 00 00 [08:21:46]Write to MH i2c: E2 08 00 47 08 80 09 00 00 00 00 00 00 C1 [08:21:46]Write i2c OK [08:21:46]MH_I2C_Read... [08:21:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:47]Read from MH i2c: E2 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 03 00 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 03 00 47 08 00 90 00 C3 [08:21:47]RAPDU: 90 00 [08:21:47]wFMCommunicate OK [08:21:47]SAM_PROTO_ClearQueue done [08:21:47]KKMCreateOFDPacket [08:21:47]OFDProtocolAddRootSTLVToBuf [08:21:47]FM_MakeSignedData [08:21:47]FM_MakeSignedData [08:21:47]SAM_PROTO_SignData [08:21:47]wFMCommunicate request_size=4 [08:21:47]MH_SAM_APDU [08:21:47]CAPDU: 80 0D 01 02 [08:21:47]Write to MH i2c: E2 08 00 48 08 80 0D 01 02 00 00 00 00 C9 [08:21:47]Write i2c OK [08:21:47]MH_I2C_Read... [08:21:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:47]Read from MH i2c: E2 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 03 00 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [08:21:47]RAPDU: 90 00 [08:21:47]wFMCommunicate OK [08:21:47]wFMCommunicate request_size=255 [08:21:47]MH_SAM_APDU [08:21:47]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F4 0B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 16 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 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 1C 00 00 00 F4 03 04 00 1C 1E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D1 2C 01 00 35 04 06 00 29 C1 [08:21:47]Write to MH i2c: E2 02 01 49 08 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F4 0B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 16 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 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 1C 00 00 00 F4 03 04 00 1C 1E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D1 2C 01 00 35 04 06 00 29 C1 00 00 B9 [08:21:47]Write i2c OK [08:21:47]MH_I2C_Read... [08:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:47]Read from MH i2c: E2 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 03 00 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 03 00 49 08 00 90 00 C5 [08:21:47]RAPDU: 90 00 [08:21:47]wFMCommunicate OK [08:21:47]wFMCommunicate request_size=9 [08:21:47]MH_SAM_APDU [08:21:47]CAPDU: 80 0D 02 02 04 AD 89 52 D0 [08:21:47]Write to MH i2c: E2 0C 00 4A 08 80 0D 02 02 04 00 AD 89 52 D0 00 00 2C [08:21:47]Write i2c OK [08:21:47]MH_I2C_Read... [08:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:47]Read from MH i2c: E2 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 03 00 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 03 00 4A 08 00 90 00 C6 [08:21:47]RAPDU: 90 00 [08:21:47]wFMCommunicate OK [08:21:47]wFMCommunicate request_size=4 [08:21:47]MH_SAM_APDU [08:21:47]CAPDU: 80 0D 03 02 [08:21:47]Write to MH i2c: E2 08 00 4B 08 80 0D 03 02 00 00 00 00 CE [08:21:47]Write i2c OK [08:21:47]MH_I2C_Read... [08:21:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:47]Read from MH i2c: E2 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 0B 00 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 0B 00 4B 08 00 9E 69 C3 BD D6 70 CD 2D 90 00 96 [08:21:47]RAPDU: 9E 69 C3 BD D6 70 CD 2D 90 00 [08:21:47]wFMCommunicate OK [08:21:47]SAM_PROTO_SignData done [08:21:47]FM_MakeSignedData done [08:21:47]CreateOFDProtocolMessage [08:21:47]wFMCommunicate request_size=4 [08:21:47]MH_SAM_APDU [08:21:47]CAPDU: 80 11 00 00 [08:21:47]Write to MH i2c: E2 08 00 4C 08 80 11 00 00 00 00 00 00 CE [08:21:47]Write i2c OK [08:21:47]MH_I2C_Read... [08:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:47]Read from MH i2c: E2 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 17 00 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: E2 17 00 4C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 21 [08:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:21:47]wFMCommunicate OK [08:21:47]CreateOFDProtocolMessage done [08:21:47]OFDSenderStorePacket 77009 [08:21:47]StoreOFDPacket docnum=77009 [08:21:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 B6 8E 06 01 3D F5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F4 0B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 16 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 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 1C 00 00 00 F4 03 04 00 1C 1E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D1 2C 01 00 35 04 06 00 29 C1 AD 89 52 D0 9E 69 C3 BD D6 70 CD 2D [08:21:47]CheckFolder [08:21:47]dirname=/storage/ofd_packets [08:21:47]CheckFolder done [08:21:47]ProducePacketName [08:21:47]name=ofd_packets/00077009 [08:21:47]NVStorageSaveData ofd_packets/00077009 [08:21:47]File name is /storage/ofd_packets/00077009 [08:21:47]Write 300 bytes [08:21:47]NVStorageSaveData done [08:21:47]OFDSenderStorePacket done [08:21:47]KKMCreateOFDPacket done [08:21:47]NVStorageSaveData kkm_last_timestamp [08:21:47]File name is /storage/kkm_last_timestamp [08:21:47]Write 4 bytes [08:21:47]NVStorageSaveData done [08:21:47]ExternCall_PrintAddStr [08:21:47]wPrintStart [08:21:47]Write to MH i2c: 01 00 00 4D 08 55 [08:21:47]Write i2c OK [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: 01 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: 01 07 00 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: 01 07 00 4D 08 00 00 00 00 00 FF 0F 6A [08:21:47]RasterBufferAndPrint [08:21:47]line Счет N : (1)191561 [08:21:47]line ИНН: 02508201610067 [08:21:47]line Контрольно-Кассовый Чек [08:21:47]line ПРОДАЖА [08:21:47]line ТРК (МРК, ГНК) : 71 [08:21:47]line Товар: 2711190000 [08:21:47]line ГАЗ-К-5 [08:21:47]line 3.060 * 32.70 [08:21:47]line = 100.06 [08:21:47]line НДС 12% НСП 1% [08:21:47]line > о реализуемом товаре [08:21:47]line ОКРУГЛЕНИЕ: -0.06 [08:21:47]line ИТОГО: 100.00 [08:21:47]line Внесено: 100.00 [08:21:47]line СДАЧА: 0.00 [08:21:47]line НСП 1% : 0.88 [08:21:47]line НДС 12% : 10.63 [08:21:47]line Наличными: 100.00 [08:21:47]line Безнал.: 0.00 [08:21:47]line Место: АЗС № 106 "Партнер Нефть" [08:21:47]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:21:47]line СНО: Общий режим [08:21:47]line Чек 28 22.04.2024 08:21 [08:21:47]line Смена: 373 ФФД: 1.0 [08:21:47]line ЗНМ: 0300000141 [08:21:47]line РНМ: 0000000000091573 [08:21:47]line Версия ККМ: 001 [08:21:47]line ФМ: 0000000000874652 [08:21:47]line ФД: 77009 [08:21:47]line ФПД: 45911816884944 [08:21:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T082148&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77009&fm=45911816884944&tin=02508201610067®Number=0000000000091573&sum=10000 [08:21:47]written 0, free lines is 4095 [08:21:47]OFD Sender: Processing packet 77009 [packets to send 129, broken 128] [08:21:47]ProducePacketName [08:21:47]name=ofd_packets/00077009 [08:21:47]OFD Sender: To server: pG, [08:21:47]CommunicateWithHost lk.salyk.kg:30040 [08:21:47]ConnectInit lk.salyk.kg [08:21:47]Connected sock=7 [08:21:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 B6 8E 06 01 3D F5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F4 0B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 16 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 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 1C 00 00 00 F4 03 04 00 1C 1E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D1 2C 01 00 35 04 06 00 29 C1 AD 89 52 D0 9E 69 C3 BD D6 70 CD 2D [08:21:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 69 ED 47 00 FB DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D1 2C 01 00 F4 03 04 00 9E C5 25 66 B6 04 01 00 00 17 BC A0 26 0F 20 58 DA [08:21:47]CommunicateWithHost err = 0 [08:21:47]CheckOFDResponse [08:21:47]1017 (14) - 77093643461234 [08:21:47]1041 (16) - 0000000000874652 [08:21:47]1040 (4) - 77009 [08:21:47]1012 (4) - 22.04.2024 02:04 [08:21:47]1206 (1) - 0 [08:21:47]OFD Sender: Remove packet 77009 [08:21:47]ProducePacketName [08:21:47]name=ofd_packets/00077009 [08:21:47]NVStorageDeleteData [08:21:47]Write to MH i2c: 01 00 00 77 08 7F [08:21:47]Write i2c OK [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: 01 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: 01 07 00 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: 01 07 00 77 08 00 00 00 00 00 DC 0C 6E [08:21:47]RasterBufferAndPrint [08:21:47]line [08:21:47]line [08:21:47]line [08:21:47]line [08:21:47]line [08:21:47]written 0, free lines is 3301 [08:21:47]MH_Cut [08:21:47]Write to MH i2c: D1 01 00 7E 08 01 58 [08:21:47]Write i2c OK [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: D1 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: D1 01 00 [08:21:47]MH_I2C_Read... [08:21:47]Read from MH i2c: D1 01 00 7E 08 00 57 [08:21:47]Write to MH i2c: 01 00 00 7F 08 87 [08:21:47]Write i2c OK [08:21:47]MH_I2C_Read... [08:21:48]OFD Sender: No OFD packet to send [08:21:48]*** Cut start [08:21:48]*** Partial cut [08:21:48]*** CUTSNS_PIN = 1 [08:21:48]*** CUTSNS_PIN = 0 [08:21:48]*** Brake cut motor [08:21:49]Read from MH i2c: 01 [08:21:49]MH_I2C_Read... [08:21:49]*** Stop cut motor [08:21:49]*** Cut end [08:21:49]Read from MH i2c: 01 07 00 [08:21:49]MH_I2C_Read... [08:21:49]Read from MH i2c: 01 07 00 7F 08 00 00 00 00 00 FF 0F 9C [08:21:49]process_action close_receipt done [08:21:49]requested_data is exist [08:21:49]produce_requested_data [08:21:49]requested_item fm.sn is exist - process it [08:21:49]wFMCommunicate request_size=4 [08:21:49]MH_SAM_APDU [08:21:49]CAPDU: 80 11 00 00 [08:21:49]Write to MH i2c: E2 08 00 80 08 80 11 00 00 00 00 00 00 02 [08:21:49]Write i2c OK [08:21:49]MH_I2C_Read... [08:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:49]Read from MH i2c: E2 [08:21:49]MH_I2C_Read... [08:21:49]Read from MH i2c: E2 17 00 [08:21:49]MH_I2C_Read... [08:21:49]Read from MH i2c: E2 17 00 80 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 55 [08:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:21:49]wFMCommunicate OK [08:21:49]requested_item fd.num is exist - process it [08:21:49]SAM_PROTO_GetFieldsCounters [08:21:49]wFMCommunicate request_size=4 [08:21:49]MH_SAM_APDU [08:21:49]CAPDU: 80 13 00 00 [08:21:49]Write to MH i2c: E2 08 00 81 08 80 13 00 00 00 00 00 00 05 [08:21:49]Write i2c OK [08:21:49]MH_I2C_Read... [08:21:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:49]Read from MH i2c: E2 [08:21:49]MH_I2C_Read... [08:21:49]Read from MH i2c: E2 62 00 [08:21:49]MH_I2C_Read... [08:21:49]Read from MH i2c: E2 62 00 81 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D1 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [08:21:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D1 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:21:49]wFMCommunicate OK [08:21:49]SAM_PROTO_GetFieldsCounters done [08:21:49]requested_item shift.num is exist - process it [08:21:49]requested_item shift.opened is exist - process it [08:21:49]req_shift_opened [08:21:49]FM_GetShiftState [08:21:49]SAM_PROTO_GetShiftState [08:21:49]wFMCommunicate request_size=4 [08:21:49]MH_SAM_APDU [08:21:49]CAPDU: 80 13 01 00 [08:21:49]Write to MH i2c: E2 08 00 82 08 80 13 01 00 00 00 00 00 07 [08:21:49]Write i2c OK [08:21:49]MH_I2C_Read... [08:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:49]Read from MH i2c: E2 [08:21:49]MH_I2C_Read... [08:21:49]Read from MH i2c: E2 0E 00 [08:21:49]MH_I2C_Read... [08:21:49]Read from MH i2c: E2 0E 00 82 08 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 2E [08:21:49]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:21:49]wFMCommunicate OK [08:21:49]SAM_PROTO_GetShiftState done [08:21:49]FM_GetShiftState done [08:21:49]req_shift_opened done [08:21:49]requested_item shift.open_date is exist - process it [08:21:49]req_shift_open_date [08:21:49]req_shift_open_date done [08:21:49]produce_requested_data done [08:21:49]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77009,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [08:21:49]process_action_free close_receipt [08:21:49]json_value_free [08:21:49]json_value_free done [08:21:49]process_json_proto returns [08:21:49]Send response to host [08:21:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77009,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [08:21:49]free response buf [08:21:49]execute_script done [08:21:49]execute_script returns [08:21:49]free content buf [08:21:49]Sock 9.Close socket [08:21:49]Sock 9.Thread stoped [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]accept exits with 10 [08:22:53]New connection [08:22:53]New thread 3067030884 created [08:22:53]Thread 3067174244 joined [08:22:53]Waiting for new connection... [08:22:53] Sock 10.Parse request [08:22:53]Sock 10.Check first char [08:22:53]Sock 10.First char is OK [08:22:53]request: POST /json_proto HTTP/1.0 [08:22:53]Method: POST [08:22:53]URL: /json_proto [08:22:53]Method is POST - this is cgi request [08:22:53]url: /json_proto [08:22:53]query_string will be loaded in cgi processing [08:22:53]execute_cgi json_proto POST (null) [08:22:53]execute_cgi path=json_proto method=POST [08:22:53]POST find Content-Length [08:22:53]Host: 172.17.62.5:8080 [08:22:53]Content-Length: 808 [08:22:53]Content-Type: application/json [08:22:53] [08:22:53]POST finish read [08:22:53]Found Content-Length = 808 [08:22:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 23.300, "sum" : 1500.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:53]execute_script... [08:22:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 23.300, "sum" : 1500.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:53]POST & json_proto [08:22:53]process_json_proto [08:22:53]json parsed OK: [08:22:53]protocol is kg_v1.0 [08:22:53]action value=close_receipt [08:22:53]process_action close_receipt [08:22:53]cmd_close_receipt [08:22:53]MH_GetDate [08:22:53]Write to MH i2c: F0 00 00 83 08 7A [08:22:53]Write i2c OK [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: F0 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: F0 09 00 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: F0 09 00 83 08 00 5F 1E 26 66 F4 E9 65 64 32 [08:22:53]GetLastDocTimeStamp 1713774108 [08:22:53]current date 1713774175 [08:22:53]FM_GetShiftState [08:22:53]SAM_PROTO_GetShiftState [08:22:53]wFMCommunicate request_size=4 [08:22:53]MH_SAM_APDU [08:22:53]CAPDU: 80 13 01 00 [08:22:53]Write to MH i2c: E2 08 00 84 08 80 13 01 00 00 00 00 00 09 [08:22:53]Write i2c OK [08:22:53]MH_I2C_Read... [08:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:53]Read from MH i2c: E2 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 0E 00 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 0E 00 84 08 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 30 [08:22:53]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:22:53]wFMCommunicate OK [08:22:53]SAM_PROTO_GetShiftState done [08:22:53]FM_GetShiftState done [08:22:53]opened in 1713745124 [08:22:53]opened+sec_in_day 1713831524 [08:22:53]quantity*price = 150052 [08:22:53]sum+1 = 150053 [08:22:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.52 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.52 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 29 22.04.2024 08:22 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 77010 ФПД: 158496327399246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T082255&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77010&fm=158496327399246&tin=02508201610067®Number=0000000000091573&sum=150052 [08:22:54]StoreToDocumentArchive [08:22:54]shift 373 fd 77010 [08:22:54]save to /storage/0373/doc_00077010 [08:22:54]save last doc name /storage/0373/doc_00077010 to /storage/kkm_last_doc_name [08:22:54]save OK [08:22:54]Clear old archive folders... [08:22:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:54]tlvbuf is 01761500 [08:22:54]SAM_PROTO_ClearQueue [08:22:54]wFMCommunicate request_size=4 [08:22:54]MH_SAM_APDU [08:22:54]CAPDU: 80 09 00 00 [08:22:54]Write to MH i2c: E2 08 00 91 08 80 09 00 00 00 00 00 00 0B [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:54]Read from MH i2c: E2 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 03 00 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [08:22:54]RAPDU: 90 00 [08:22:54]wFMCommunicate OK [08:22:54]SAM_PROTO_ClearQueue done [08:22:54]KKMCreateOFDPacket [08:22:54]OFDProtocolAddRootSTLVToBuf [08:22:54]FM_MakeSignedData [08:22:54]FM_MakeSignedData [08:22:54]SAM_PROTO_SignData [08:22:54]wFMCommunicate request_size=4 [08:22:54]MH_SAM_APDU [08:22:54]CAPDU: 80 0D 01 02 [08:22:54]Write to MH i2c: E2 08 00 92 08 80 0D 01 02 00 00 00 00 13 [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:54]Read from MH i2c: E2 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 03 00 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 03 00 92 08 00 90 00 0E [08:22:54]RAPDU: 90 00 [08:22:54]wFMCommunicate OK [08:22:54]wFMCommunicate request_size=255 [08:22:54]MH_SAM_APDU [08:22: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 35 FF 03 08 00 03 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 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 24 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5F 1E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D2 2C 01 00 35 04 06 00 90 [08:22:54]Write to MH i2c: E2 02 01 93 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 35 FF 03 08 00 03 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 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 24 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5F 1E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D2 2C 01 00 35 04 06 00 90 00 00 EA [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:54]Read from MH i2c: E2 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 03 00 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [08:22:54]RAPDU: 90 00 [08:22:54]wFMCommunicate OK [08:22:54]wFMCommunicate request_size=10 [08:22:54]MH_SAM_APDU [08:22:54]CAPDU: 80 0D 02 02 05 26 CD 4A F7 4E [08:22:54]Write to MH i2c: E2 0D 00 94 08 80 0D 02 02 05 00 26 CD 4A F7 4E 00 00 A2 [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:54]Read from MH i2c: E2 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 03 00 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 03 00 94 08 00 90 00 10 [08:22:54]RAPDU: 90 00 [08:22:54]wFMCommunicate OK [08:22:54]wFMCommunicate request_size=4 [08:22:54]MH_SAM_APDU [08:22:54]CAPDU: 80 0D 03 02 [08:22:54]Write to MH i2c: E2 08 00 95 08 80 0D 03 02 00 00 00 00 18 [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:55]Read from MH i2c: E2 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 0B 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 0B 00 95 08 00 6C D7 8E E0 73 7E 29 03 90 00 E7 [08:22:55]RAPDU: 6C D7 8E E0 73 7E 29 03 90 00 [08:22:55]wFMCommunicate OK [08:22:55]SAM_PROTO_SignData done [08:22:55]FM_MakeSignedData done [08:22:55]CreateOFDProtocolMessage [08:22:55]wFMCommunicate request_size=4 [08:22:55]MH_SAM_APDU [08:22:55]CAPDU: 80 11 00 00 [08:22:55]Write to MH i2c: E2 08 00 96 08 80 11 00 00 00 00 00 00 18 [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:55]Read from MH i2c: E2 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 17 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 17 00 96 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6B [08:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:22:55]wFMCommunicate OK [08:22:55]CreateOFDProtocolMessage done [08:22:55]OFDSenderStorePacket 77010 [08:22:55]StoreOFDPacket docnum=77010 [08:22:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 AF 3A 07 01 B3 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 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 24 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5F 1E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D2 2C 01 00 35 04 06 00 90 26 CD 4A F7 4E 6C D7 8E E0 73 7E 29 03 [08:22:55]CheckFolder [08:22:55]dirname=/storage/ofd_packets [08:22:55]CheckFolder done [08:22:55]ProducePacketName [08:22:55]name=ofd_packets/00077010 [08:22:55]NVStorageSaveData ofd_packets/00077010 [08:22:55]File name is /storage/ofd_packets/00077010 [08:22:55]Write 301 bytes [08:22:55]NVStorageSaveData done [08:22:55]OFDSenderStorePacket done [08:22:55]KKMCreateOFDPacket done [08:22:55]NVStorageSaveData kkm_last_timestamp [08:22:55]File name is /storage/kkm_last_timestamp [08:22:55]Write 4 bytes [08:22:55]NVStorageSaveData done [08:22:55]ExternCall_PrintAddStr [08:22:55]wPrintStart [08:22:55]Write to MH i2c: 01 00 00 97 08 9F [08:22:55]OFD Sender: Processing packet 77010 [packets to send 129, broken 128] [08:22:55]ProducePacketName [08:22:55]name=ofd_packets/00077010 [08:22:55]OFD Sender: To server: pG, [08:22:55]CommunicateWithHost lk.salyk.kg:30040 [08:22:55]ConnectInit lk.salyk.kg [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: 01 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: 01 07 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: 01 07 00 97 08 00 00 00 00 00 FF 0F B4 [08:22:55]RasterBufferAndPrint [08:22:55]line Счет N : (1)191562 [08:22:55]line ИНН: 02508201610067 [08:22:55]line Контрольно-Кассовый Чек [08:22:55]line ПРОДАЖА [08:22:55]line ТРК (МРК, ГНК) : 22 [08:22:55]line Товар: 2710124130 [08:22:55]line Аи-92-К-5 [08:22:55]line 23.300 * 64.40 [08:22:55]line = 1500.52 [08:22:55]line НДС 12% НСП 1% [08:22:55]line > о реализуемом товаре [08:22:55]line ИТОГО: 1500.52 [08:22:55]line НСП 1% : 13.28 [08:22:55]line НДС 12% : 159.35 [08:22:55]line Наличными: 0.00 [08:22:55]line Безнал.: 1500.52 [08:22:55]line Место: АЗС № 106 "Партнер Нефть" [08:22:55]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:22:55]line СНО: Общий режим [08:22:55]line Чек 29 22.04.2024 08:22 [08:22:55]line Смена: 373 ФФД: 1.0 [08:22:55]line ЗНМ: 0300000141 [08:22:55]line РНМ: 0000000000091573 [08:22:55]line Версия ККМ: 001 [08:22:55]line Платежная система: О! деньги [08:22:55]line ФМ: 0000000000874652 [08:22:55]line ФД: 77010 [08:22:55]line ФПД: 158496327399246 [08:22:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T082255&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77010&fm=158496327399246&tin=02508201610067®Number=0000000000091573&sum=150052 [08:22:55]written 0, free lines is 4095 [08:22:55]Connected sock=11 [08:22:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 AF 3A 07 01 B3 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 5B 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 24 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 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 24 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 5F 1E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D2 2C 01 00 35 04 06 00 90 26 CD 4A F7 4E 6C D7 8E E0 73 7E 29 03 [08:22:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 5B 85 47 00 CD 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D2 2C 01 00 F4 03 04 00 E2 C5 25 66 B6 04 01 00 00 69 30 ED 52 68 6E CC 20 [08:22:55]CommunicateWithHost err = 0 [08:22:55]CheckOFDResponse [08:22:55]1017 (14) - 77093643461234 [08:22:55]1041 (16) - 0000000000874652 [08:22:55]1040 (4) - 77010 [08:22:55]1012 (4) - 22.04.2024 02:05 [08:22:55]1206 (1) - 0 [08:22:55]OFD Sender: Remove packet 77010 [08:22:55]ProducePacketName [08:22:55]name=ofd_packets/00077010 [08:22:55]NVStorageDeleteData [08:22:55]Write to MH i2c: 01 00 00 C0 08 C8 [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: 01 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: 01 07 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: 01 07 00 C0 08 00 00 00 00 00 10 0D EC [08:22:55]RasterBufferAndPrint [08:22:55]line [08:22:55]line [08:22:55]line [08:22:55]line [08:22:55]line [08:22:55]written 0, free lines is 3350 [08:22:55]MH_Cut [08:22:55]Write to MH i2c: D1 01 00 C7 08 01 A1 [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: D1 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: D1 01 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: D1 01 00 C7 08 00 A0 [08:22:55]Write to MH i2c: 01 00 00 C8 08 D0 [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:55]OFD Sender: No OFD packet to send [08:22:56]*** Cut start [08:22:56]*** Partial cut [08:22:56]*** CUTSNS_PIN = 1 [08:22:56]*** CUTSNS_PIN = 0 [08:22:56]*** Brake cut motor [08:22:56]Read from MH i2c: 01 [08:22:56]MH_I2C_Read... [08:22:56]*** Stop cut motor [08:22:56]*** Cut end [08:22:56]Read from MH i2c: 01 07 00 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: 01 07 00 C8 08 00 00 00 00 00 FF 0F E5 [08:22:56]process_action close_receipt done [08:22:56]requested_data is exist [08:22:56]produce_requested_data [08:22:56]requested_item fm.sn is exist - process it [08:22:56]wFMCommunicate request_size=4 [08:22:56]MH_SAM_APDU [08:22:56]CAPDU: 80 11 00 00 [08:22:56]Write to MH i2c: E2 08 00 C9 08 80 11 00 00 00 00 00 00 4B [08:22:56]Write i2c OK [08:22:56]MH_I2C_Read... [08:22:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:57]Read from MH i2c: E2 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: E2 17 00 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: E2 17 00 C9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9E [08:22:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:22:57]wFMCommunicate OK [08:22:57]requested_item fd.num is exist - process it [08:22:57]SAM_PROTO_GetFieldsCounters [08:22:57]wFMCommunicate request_size=4 [08:22:57]MH_SAM_APDU [08:22:57]CAPDU: 80 13 00 00 [08:22:57]Write to MH i2c: E2 08 00 CA 08 80 13 00 00 00 00 00 00 4E [08:22:57]Write i2c OK [08:22:57]MH_I2C_Read... [08:22:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:57]Read from MH i2c: E2 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: E2 62 00 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: E2 62 00 CA 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D2 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [08:22:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D2 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:22:57]wFMCommunicate OK [08:22:57]SAM_PROTO_GetFieldsCounters done [08:22:57]requested_item shift.num is exist - process it [08:22:57]requested_item shift.opened is exist - process it [08:22:57]req_shift_opened [08:22:57]FM_GetShiftState [08:22:57]SAM_PROTO_GetShiftState [08:22:57]wFMCommunicate request_size=4 [08:22:57]MH_SAM_APDU [08:22:57]CAPDU: 80 13 01 00 [08:22:57]Write to MH i2c: E2 08 00 CB 08 80 13 01 00 00 00 00 00 50 [08:22:57]Write i2c OK [08:22:57]MH_I2C_Read... [08:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:57]Read from MH i2c: E2 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: E2 0E 00 [08:22:57]MH_I2C_Read... [08:22:57]Read from MH i2c: E2 0E 00 CB 08 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 77 [08:22:57]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:22:57]wFMCommunicate OK [08:22:57]SAM_PROTO_GetShiftState done [08:22:57]FM_GetShiftState done [08:22:57]req_shift_opened done [08:22:57]requested_item shift.open_date is exist - process it [08:22:57]req_shift_open_date [08:22:57]req_shift_open_date done [08:22:57]produce_requested_data done [08:22:57]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77010,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [08:22:57]process_action_free close_receipt [08:22:57]json_value_free [08:22:57]json_value_free done [08:22:57]process_json_proto returns [08:22:57]Send response to host [08:22:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77010,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [08:22:57]free response buf [08:22:57]execute_script done [08:22:57]execute_script returns [08:22:57]free content buf [08:22:57]Sock 10.Close socket [08:22:57]Sock 10.Thread stoped [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:33]accept exits with 7 [08:27:33]New connection [08:27:33]New thread 3067174244 created [08:27:33]Thread 3067030884 joined [08:27:33]Waiting for new connection... [08:27:33] Sock 7.Parse request [08:27:33]Sock 7.Check first char [08:27:33]Sock 7.First char is OK [08:27:33]request: POST /json_proto HTTP/1.0 [08:27:33]Method: POST [08:27:33]URL: /json_proto [08:27:33]Method is POST - this is cgi request [08:27:33]url: /json_proto [08:27:33]query_string will be loaded in cgi processing [08:27:33]execute_cgi json_proto POST (null) [08:27:33]execute_cgi path=json_proto method=POST [08:27:33]POST find Content-Length [08:27:33]Host: 172.17.62.5:8080 [08:27:33]Content-Length: 801 [08:27:33]Content-Type: application/json [08:27:33] [08:27:33]POST finish read [08:27:33]Found Content-Length = 801 [08:27:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:33]execute_script... [08:27: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)191563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:33]POST & json_proto [08:27:33]process_json_proto [08:27:33]json parsed OK: [08:27:33]protocol is kg_v1.0 [08:27:33]action value=close_receipt [08:27:33]process_action close_receipt [08:27:33]cmd_close_receipt [08:27:33]MH_GetDate [08:27:33]Write to MH i2c: F0 00 00 CC 08 C3 [08:27:33]Write i2c OK [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: F0 [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: F0 09 00 [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: F0 09 00 CC 08 00 78 1F 26 66 F4 E9 65 64 95 [08:27:33]GetLastDocTimeStamp 1713774175 [08:27:33]current date 1713774456 [08:27:33]FM_GetShiftState [08:27:33]SAM_PROTO_GetShiftState [08:27:33]wFMCommunicate request_size=4 [08:27:33]MH_SAM_APDU [08:27:33]CAPDU: 80 13 01 00 [08:27:33]Write to MH i2c: E2 08 00 CD 08 80 13 01 00 00 00 00 00 52 [08:27:33]Write i2c OK [08:27:33]MH_I2C_Read... [08:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:33]Read from MH i2c: E2 [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: E2 0E 00 [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: E2 0E 00 CD 08 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 79 [08:27:33]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:27:33]wFMCommunicate OK [08:27:33]SAM_PROTO_GetShiftState done [08:27:33]FM_GetShiftState done [08:27:33]opened in 1713745124 [08:27:33]opened+sec_in_day 1713831524 [08:27:33]quantity*price = 100062 [08:27:33]sum+1 = 100063 [08:27:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.62 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.62 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 30 22.04.2024 08:27 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 77011 ФПД: 217716807148779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T082736&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77011&fm=217716807148779&tin=02508201610067®Number=0000000000091573&sum=100062 [08:27:35]StoreToDocumentArchive [08:27:35]shift 373 fd 77011 [08:27:35]save to /storage/0373/doc_00077011 [08:27:35]save last doc name /storage/0373/doc_00077011 to /storage/kkm_last_doc_name [08:27:35]save OK [08:27:35]Clear old archive folders... [08:27:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:27:35]tlvbuf is 017284A0 [08:27:35]SAM_PROTO_ClearQueue [08:27:35]wFMCommunicate request_size=4 [08:27:35]MH_SAM_APDU [08:27:35]CAPDU: 80 09 00 00 [08:27:35]Write to MH i2c: E2 08 00 DA 08 80 09 00 00 00 00 00 00 54 [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:35]Read from MH i2c: E2 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 03 00 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 03 00 DA 08 00 90 00 56 [08:27:35]RAPDU: 90 00 [08:27:35]wFMCommunicate OK [08:27:35]SAM_PROTO_ClearQueue done [08:27:35]KKMCreateOFDPacket [08:27:35]OFDProtocolAddRootSTLVToBuf [08:27:35]FM_MakeSignedData [08:27:35]FM_MakeSignedData [08:27:35]SAM_PROTO_SignData [08:27:35]wFMCommunicate request_size=4 [08:27:35]MH_SAM_APDU [08:27:35]CAPDU: 80 0D 01 02 [08:27:35]Write to MH i2c: E2 08 00 DB 08 80 0D 01 02 00 00 00 00 5C [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:35]Read from MH i2c: E2 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 03 00 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [08:27:35]RAPDU: 90 00 [08:27:35]wFMCommunicate OK [08:27:35]wFMCommunicate request_size=255 [08:27:35]MH_SAM_APDU [08:27:35]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 78 1F 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D3 2C 01 00 35 04 06 00 [08:27:35]Write to MH i2c: E2 02 01 DC 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 78 1F 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D3 2C 01 00 35 04 06 00 00 00 B0 [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:35]Read from MH i2c: E2 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 03 00 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 03 00 DC 08 00 90 00 58 [08:27:35]RAPDU: 90 00 [08:27:35]wFMCommunicate OK [08:27:35]wFMCommunicate request_size=11 [08:27:35]MH_SAM_APDU [08:27:35]CAPDU: 80 0D 02 02 06 C6 03 24 F3 A4 EB [08:27:35]Write to MH i2c: E2 0E 00 DD 08 80 0D 02 02 06 00 C6 03 24 F3 A4 EB 00 00 DA [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:35]Read from MH i2c: E2 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 03 00 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 03 00 DD 08 00 90 00 59 [08:27:35]RAPDU: 90 00 [08:27:35]wFMCommunicate OK [08:27:35]wFMCommunicate request_size=4 [08:27:35]MH_SAM_APDU [08:27:35]CAPDU: 80 0D 03 02 [08:27:35]Write to MH i2c: E2 08 00 DE 08 80 0D 03 02 00 00 00 00 61 [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:35]Read from MH i2c: E2 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 0B 00 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 0B 00 DE 08 00 73 94 84 16 4C B0 BD 20 90 00 DC [08:27:35]RAPDU: 73 94 84 16 4C B0 BD 20 90 00 [08:27:35]wFMCommunicate OK [08:27:35]SAM_PROTO_SignData done [08:27:35]FM_MakeSignedData done [08:27:35]CreateOFDProtocolMessage [08:27:35]wFMCommunicate request_size=4 [08:27:35]MH_SAM_APDU [08:27:35]CAPDU: 80 11 00 00 [08:27:35]Write to MH i2c: E2 08 00 DF 08 80 11 00 00 00 00 00 00 61 [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:35]Read from MH i2c: E2 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 17 00 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: E2 17 00 DF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B4 [08:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:27:35]wFMCommunicate OK [08:27:35]CreateOFDProtocolMessage done [08:27:35]OFDSenderStorePacket 77011 [08:27:35]StoreOFDPacket docnum=77011 [08:27:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 3D B8 08 01 14 CD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 78 1F 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D3 2C 01 00 35 04 06 00 C6 03 24 F3 A4 EB 73 94 84 16 4C B0 BD 20 [08:27:35]CheckFolder [08:27:35]dirname=/storage/ofd_packets [08:27:35]CheckFolder done [08:27:35]ProducePacketName [08:27:35]name=ofd_packets/00077011 [08:27:35]NVStorageSaveData ofd_packets/00077011 [08:27:35]File name is /storage/ofd_packets/00077011 [08:27:35]Write 302 bytes [08:27:35]NVStorageSaveData done [08:27:35]OFDSenderStorePacket done [08:27:35]KKMCreateOFDPacket done [08:27:35]NVStorageSaveData kkm_last_timestamp [08:27:35]File name is /storage/kkm_last_timestamp [08:27:35]Write 4 bytes [08:27:35]NVStorageSaveData done [08:27:35]ExternCall_PrintAddStr [08:27:35]wPrintStart [08:27:35]Write to MH i2c: 01 00 00 E0 08 E8 [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: 01 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: 01 07 00 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: 01 07 00 E0 08 00 00 00 00 00 FF 0F FD [08:27:35]RasterBufferAndPrint [08:27:35]line Счет N : (1)191563 [08:27:35]line ИНН: 02508201610067 [08:27:35]line Контрольно-Кассовый Чек [08:27:35]line ПРОДАЖА [08:27:35]line ТРК (МРК, ГНК) : 41 [08:27:35]line Товар: 2710124130 [08:27:35]line SUPER 92-К-5 [08:27:35]line 15.300 * 65.40 [08:27:35]line = 1000.62 [08:27:35]line НДС 12% НСП 1% [08:27:35]line > о реализуемом товаре [08:27:35]line ИТОГО: 1000.62 [08:27:35]line НСП 1% : 8.85 [08:27:35]line НДС 12% : 106.26 [08:27:35]line Наличными: 0.00 [08:27:35]line Безнал.: 1000.62 [08:27:35]line Место: АЗС № 106 "Партнер Нефть" [08:27:35]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:27:35]line СНО: Общий режим [08:27:35]line Чек 30 22.04.2024 08:27 [08:27:35]line Смена: 373 ФФД: 1.0 [08:27:35]line ЗНМ: 0300000141 [08:27:35]line РНМ: 0000000000091573 [08:27:35]line Версия ККМ: 001 [08:27:35]line Платежная система: О! деньги [08:27:35]line ФМ: 0000000000874652 [08:27:35]line ФД: 77011 [08:27:35]line ФПД: 217716807148779 [08:27:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T082736&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77011&fm=217716807148779&tin=02508201610067®Number=0000000000091573&sum=100062 [08:27:35]written 0, free lines is 4095 [08:27:35]OFD Sender: Processing packet 77011 [packets to send 129, broken 128] [08:27:35]ProducePacketName [08:27:35]name=ofd_packets/00077011 [08:27:35]OFD Sender: To server: pG, [08:27:35]CommunicateWithHost lk.salyk.kg:30040 [08:27:35]ConnectInit lk.salyk.kg [08:27:36]Write to MH i2c: 01 00 00 09 09 12 [08:27:36]Write i2c OK [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: 01 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: 01 07 00 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: 01 07 00 09 09 00 00 00 00 00 F5 0C 1A [08:27:36]RasterBufferAndPrint [08:27:36]line [08:27:36]line [08:27:36]line [08:27:36]line [08:27:36]line [08:27:36]written 0, free lines is 3321 [08:27:36]MH_Cut [08:27:36]Write to MH i2c: D1 01 00 10 09 01 EB [08:27:36]Write i2c OK [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: D1 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: D1 01 00 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: D1 01 00 10 09 00 EA [08:27:36]Write to MH i2c: 01 00 00 11 09 1A [08:27:36]Write i2c OK [08:27:36]MH_I2C_Read... [08:27:36]Connected sock=10 [08:27:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 3D B8 08 01 14 CD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 78 1F 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D3 2C 01 00 35 04 06 00 C6 03 24 F3 A4 EB 73 94 84 16 4C B0 BD 20 [08:27:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 AA 5C 47 00 7D E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D3 2C 01 00 F4 03 04 00 FB C6 25 66 B6 04 01 00 00 E2 3E A5 97 01 22 29 49 [08:27:36]CommunicateWithHost err = 0 [08:27:36]CheckOFDResponse [08:27:36]1017 (14) - 77093643461234 [08:27:36]1041 (16) - 0000000000874652 [08:27:36]1040 (4) - 77011 [08:27:36]1012 (4) - 22.04.2024 02:10 [08:27:36]1206 (1) - 0 [08:27:36]OFD Sender: Remove packet 77011 [08:27:36]ProducePacketName [08:27:36]name=ofd_packets/00077011 [08:27:36]NVStorageDeleteData [08:27:36]*** Cut start [08:27:36]*** Partial cut [08:27:36]*** CUTSNS_PIN = 1 [08:27:36]*** CUTSNS_PIN = 0 [08:27:36]OFD Sender: No OFD packet to send [08:27:37]*** Brake cut motor [08:27:37]Read from MH i2c: 01 [08:27:37]MH_I2C_Read... [08:27:37]*** Stop cut motor [08:27:37]*** Cut end [08:27:37]Read from MH i2c: 01 07 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: 01 07 00 11 09 00 00 00 00 00 FF 0F 2F [08:27:37]process_action close_receipt done [08:27:37]requested_data is exist [08:27:37]produce_requested_data [08:27:37]requested_item fm.sn is exist - process it [08:27:37]wFMCommunicate request_size=4 [08:27:37]MH_SAM_APDU [08:27:37]CAPDU: 80 11 00 00 [08:27:37]Write to MH i2c: E2 08 00 12 09 80 11 00 00 00 00 00 00 95 [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:37]Read from MH i2c: E2 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 17 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 17 00 12 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E8 [08:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:27:37]wFMCommunicate OK [08:27:37]requested_item fd.num is exist - process it [08:27:37]SAM_PROTO_GetFieldsCounters [08:27:37]wFMCommunicate request_size=4 [08:27:37]MH_SAM_APDU [08:27:37]CAPDU: 80 13 00 00 [08:27:37]Write to MH i2c: E2 08 00 13 09 80 13 00 00 00 00 00 00 98 [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:37]Read from MH i2c: E2 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 62 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 62 00 13 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D3 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [08:27:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D3 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:37]wFMCommunicate OK [08:27:37]SAM_PROTO_GetFieldsCounters done [08:27:37]requested_item shift.num is exist - process it [08:27:37]requested_item shift.opened is exist - process it [08:27:37]req_shift_opened [08:27:37]FM_GetShiftState [08:27:37]SAM_PROTO_GetShiftState [08:27:37]wFMCommunicate request_size=4 [08:27:37]MH_SAM_APDU [08:27:37]CAPDU: 80 13 01 00 [08:27:37]Write to MH i2c: E2 08 00 14 09 80 13 01 00 00 00 00 00 9A [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:37]Read from MH i2c: E2 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 0E 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 0E 00 14 09 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 C1 [08:27:37]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:27:37]wFMCommunicate OK [08:27:37]SAM_PROTO_GetShiftState done [08:27:37]FM_GetShiftState done [08:27:37]req_shift_opened done [08:27:37]requested_item shift.open_date is exist - process it [08:27:37]req_shift_open_date [08:27:37]req_shift_open_date done [08:27:37]produce_requested_data done [08:27:37]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77011,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [08:27:37]process_action_free close_receipt [08:27:37]json_value_free [08:27:37]json_value_free done [08:27:37]process_json_proto returns [08:27:37]Send response to host [08:27:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77011,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [08:27:37]free response buf [08:27:37]execute_script done [08:27:37]execute_script returns [08:27:37]free content buf [08:27:37]Sock 7.Close socket [08:27:37]Sock 7.Thread stoped [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:27]accept exits with 9 [08:37:27]New connection [08:37:27]New thread 3067030884 created [08:37:27]Thread 3067174244 joined [08:37:27]Waiting for new connection... [08:37:27] Sock 9.Parse request [08:37:27]Sock 9.Check first char [08:37:27]Sock 9.First char is OK [08:37:27]request: POST /json_proto HTTP/1.0 [08:37:27]Method: POST [08:37:27]URL: /json_proto [08:37:27]Method is POST - this is cgi request [08:37:27]url: /json_proto [08:37:27]query_string will be loaded in cgi processing [08:37:27]execute_cgi json_proto POST (null) [08:37:27]execute_cgi path=json_proto method=POST [08:37:27]POST find Content-Length [08:37:27]Host: 172.17.62.5:8080 [08:37:27]Content-Length: 805 [08:37:27]Content-Type: application/json [08:37:27] [08:37:27]POST finish read [08:37:27]Found Content-Length = 805 [08:37:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:27]execute_script... [08:37: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)191565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:27]POST & json_proto [08:37:27]process_json_proto [08:37:27]json parsed OK: [08:37:27]protocol is kg_v1.0 [08:37:27]action value=close_receipt [08:37:27]process_action close_receipt [08:37:27]cmd_close_receipt [08:37:27]MH_GetDate [08:37:27]Write to MH i2c: F0 00 00 15 09 0D [08:37:27]Write i2c OK [08:37:27]MH_I2C_Read... [08:37:27]Read from MH i2c: F0 [08:37:27]MH_I2C_Read... [08:37:27]Read from MH i2c: F0 09 00 [08:37:27]MH_I2C_Read... [08:37:27]Read from MH i2c: F0 09 00 15 09 00 CA 21 26 66 F4 E9 65 64 33 [08:37:27]GetLastDocTimeStamp 1713774456 [08:37:27]current date 1713775050 [08:37:27]FM_GetShiftState [08:37:27]SAM_PROTO_GetShiftState [08:37:27]wFMCommunicate request_size=4 [08:37:27]MH_SAM_APDU [08:37:27]CAPDU: 80 13 01 00 [08:37:27]Write to MH i2c: E2 08 00 16 09 80 13 01 00 00 00 00 00 9C [08:37:27]Write i2c OK [08:37:27]MH_I2C_Read... [08:37:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:27]Read from MH i2c: E2 [08:37:27]MH_I2C_Read... [08:37:27]Read from MH i2c: E2 0E 00 [08:37:27]MH_I2C_Read... [08:37:27]Read from MH i2c: E2 0E 00 16 09 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 C3 [08:37:27]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:37:27]wFMCommunicate OK [08:37:27]SAM_PROTO_GetShiftState done [08:37:27]FM_GetShiftState done [08:37:27]opened in 1713745124 [08:37:27]opened+sec_in_day 1713831524 [08:37:27]quantity*price = 50038 [08:37:27]sum+1 = 50040 [08:37:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.39 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.39 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 31 22.04.2024 08:37 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 77012 ФПД: 99772552651750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T083730&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77012&fm=99772552651750&tin=02508201610067®Number=0000000000091573&sum=50039 [08:37:28]StoreToDocumentArchive [08:37:28]shift 373 fd 77012 [08:37:28]save to /storage/0373/doc_00077012 [08:37:28]save last doc name /storage/0373/doc_00077012 to /storage/kkm_last_doc_name [08:37:28]save OK [08:37:28]Clear old archive folders... [08:37:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:37:28]tlvbuf is 016E0890 [08:37:28]SAM_PROTO_ClearQueue [08:37:28]wFMCommunicate request_size=4 [08:37:28]MH_SAM_APDU [08:37:28]CAPDU: 80 09 00 00 [08:37:28]Write to MH i2c: E2 08 00 23 09 80 09 00 00 00 00 00 00 9E [08:37:28]Write i2c OK [08:37:28]MH_I2C_Read... [08:37:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:28]Read from MH i2c: E2 [08:37:28]MH_I2C_Read... [08:37:28]Read from MH i2c: E2 03 00 [08:37:28]MH_I2C_Read... [08:37:28]Read from MH i2c: E2 03 00 23 09 00 90 00 A0 [08:37:28]RAPDU: 90 00 [08:37:28]wFMCommunicate OK [08:37:28]SAM_PROTO_ClearQueue done [08:37:28]KKMCreateOFDPacket [08:37:28]OFDProtocolAddRootSTLVToBuf [08:37:28]FM_MakeSignedData [08:37:28]FM_MakeSignedData [08:37:28]SAM_PROTO_SignData [08:37:28]wFMCommunicate request_size=4 [08:37:28]MH_SAM_APDU [08:37:28]CAPDU: 80 0D 01 02 [08:37:28]Write to MH i2c: E2 08 00 24 09 80 0D 01 02 00 00 00 00 A6 [08:37:28]Write i2c OK [08:37:28]MH_I2C_Read... [08:37:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:29]Read from MH i2c: E2 [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: E2 03 00 [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: E2 03 00 24 09 00 90 00 A1 [08:37:29]RAPDU: 90 00 [08:37:29]wFMCommunicate OK [08:37:29]wFMCommunicate request_size=255 [08:37:29]MH_SAM_APDU [08:37:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 77 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 CA 21 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D4 2C 01 00 35 04 06 00 5A [08:37:29]Write to MH i2c: E2 02 01 25 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 77 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 CA 21 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D4 2C 01 00 35 04 06 00 5A 00 00 10 [08:37:29]Write i2c OK [08:37:29]MH_I2C_Read... [08:37:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:29]Read from MH i2c: E2 [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: E2 03 00 [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: E2 03 00 25 09 00 90 00 A2 [08:37:29]RAPDU: 90 00 [08:37:29]wFMCommunicate OK [08:37:29]wFMCommunicate request_size=10 [08:37:29]MH_SAM_APDU [08:37:29]CAPDU: 80 0D 02 02 05 BE 1B 8F 23 E6 [08:37:29]Write to MH i2c: E2 0D 00 26 09 80 0D 02 02 05 00 BE 1B 8F 23 E6 00 00 24 [08:37:29]Write i2c OK [08:37:29]MH_I2C_Read... [08:37:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:29]Read from MH i2c: E2 [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: E2 03 00 [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: E2 03 00 26 09 00 90 00 A3 [08:37:29]RAPDU: 90 00 [08:37:29]wFMCommunicate OK [08:37:29]wFMCommunicate request_size=4 [08:37:29]MH_SAM_APDU [08:37:29]CAPDU: 80 0D 03 02 [08:37:29]Write to MH i2c: E2 08 00 27 09 80 0D 03 02 00 00 00 00 AB [08:37:29]Write i2c OK [08:37:29]MH_I2C_Read... [08:37:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:29]Read from MH i2c: E2 [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: E2 0B 00 [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: E2 0B 00 27 09 00 7D 7B A1 BF ED B1 DF 65 90 00 E6 [08:37:29]RAPDU: 7D 7B A1 BF ED B1 DF 65 90 00 [08:37:29]wFMCommunicate OK [08:37:29]SAM_PROTO_SignData done [08:37:29]FM_MakeSignedData done [08:37:29]CreateOFDProtocolMessage [08:37:29]wFMCommunicate request_size=4 [08:37:29]MH_SAM_APDU [08:37:29]CAPDU: 80 11 00 00 [08:37:29]Write to MH i2c: E2 08 00 28 09 80 11 00 00 00 00 00 00 AB [08:37:29]Write i2c OK [08:37:29]MH_I2C_Read... [08:37:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:29]Read from MH i2c: E2 [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: E2 17 00 [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: E2 17 00 28 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FE [08:37:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:37:29]wFMCommunicate OK [08:37:29]CreateOFDProtocolMessage done [08:37:29]OFDSenderStorePacket 77012 [08:37:29]StoreOFDPacket docnum=77012 [08:37:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 08 3E 07 01 28 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 77 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 CA 21 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D4 2C 01 00 35 04 06 00 5A BE 1B 8F 23 E6 7D 7B A1 BF ED B1 DF 65 [08:37:29]CheckFolder [08:37:29]dirname=/storage/ofd_packets [08:37:29]CheckFolder done [08:37:29]ProducePacketName [08:37:29]name=ofd_packets/00077012 [08:37:29]NVStorageSaveData ofd_packets/00077012 [08:37:29]File name is /storage/ofd_packets/00077012 [08:37:29]Write 301 bytes [08:37:29]NVStorageSaveData done [08:37:29]OFDSenderStorePacket done [08:37:29]KKMCreateOFDPacket done [08:37:29]NVStorageSaveData kkm_last_timestamp [08:37:29]File name is /storage/kkm_last_timestamp [08:37:29]Write 4 bytes [08:37:29]NVStorageSaveData done [08:37:29]ExternCall_PrintAddStr [08:37:29]wPrintStart [08:37:29]Write to MH i2c: 01 00 00 29 09 32 [08:37:29]Write i2c OK [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: 01 [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: 01 07 00 [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: 01 07 00 29 09 00 00 00 00 00 FF 0F 47 [08:37:29]RasterBufferAndPrint [08:37:29]line Счет N : (1)191565 [08:37:29]line ИНН: 02508201610067 [08:37:29]line Контрольно-Кассовый Чек [08:37:29]line ПРОДАЖА [08:37:29]line ТРК (МРК, ГНК) : 33 [08:37:29]line Товар: 2710124130 [08:37:29]line Аи-92-К-5 [08:37:29]line 7.770 * 64.40 [08:37:29]line = 500.39 [08:37:29]line НДС 12% НСП 1% [08:37:29]line > о реализуемом товаре [08:37:29]line ИТОГО: 500.39 [08:37:29]line НСП 1% : 4.43 [08:37:29]line НДС 12% : 53.14 [08:37:29]line Наличными: 0.00 [08:37:29]line Безнал.: 500.39 [08:37:29]line Место: АЗС № 106 "Партнер Нефть" [08:37:29]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:37:29]line СНО: Общий режим [08:37:29]line Чек 31 22.04.2024 08:37 [08:37:29]line Смена: 373 ФФД: 1.0 [08:37:29]line ЗНМ: 0300000141 [08:37:29]line РНМ: 0000000000091573 [08:37:29]line Версия ККМ: 001 [08:37:29]line Платежная система: О! деньги [08:37:29]line ФМ: 0000000000874652 [08:37:29]line ФД: 77012 [08:37:29]line ФПД: 99772552651750 [08:37:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T083730&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77012&fm=99772552651750&tin=02508201610067®Number=0000000000091573&sum=50039 [08:37:29]OFD Sender: Processing packet 77012 [packets to send 129, broken 128] [08:37:29]ProducePacketName [08:37:29]name=ofd_packets/00077012 [08:37:29]OFD Sender: To server: pG, [08:37:29]CommunicateWithHost lk.salyk.kg:30040 [08:37:29]ConnectInit lk.salyk.kg [08:37:29]written 0, free lines is 4095 [08:37:29]Connected sock=10 [08:37:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 08 3E 07 01 28 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 77 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 CA 21 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D4 2C 01 00 35 04 06 00 5A BE 1B 8F 23 E6 7D 7B A1 BF ED B1 DF 65 [08:37:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 0A 65 47 00 B5 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D4 2C 01 00 F4 03 04 00 4D C9 25 66 B6 04 01 00 00 6B 8D 99 15 CA 9C BD D0 [08:37:30]CommunicateWithHost err = 0 [08:37:30]CheckOFDResponse [08:37:30]1017 (14) - 77093643461234 [08:37:30]1041 (16) - 0000000000874652 [08:37:30]1040 (4) - 77012 [08:37:30]1012 (4) - 22.04.2024 02:19 [08:37:30]1206 (1) - 0 [08:37:30]OFD Sender: Remove packet 77012 [08:37:30]ProducePacketName [08:37:30]name=ofd_packets/00077012 [08:37:30]NVStorageDeleteData [08:37:30]Write to MH i2c: 01 00 00 52 09 5B [08:37:30]Write i2c OK [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: 01 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: 01 07 00 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: 01 07 00 52 09 00 00 00 00 00 FA 0C 68 [08:37:30]RasterBufferAndPrint [08:37:30]line [08:37:30]line [08:37:30]line [08:37:30]line [08:37:30]line [08:37:30]written 0, free lines is 3327 [08:37:30]MH_Cut [08:37:30]Write to MH i2c: D1 01 00 59 09 01 34 [08:37:30]Write i2c OK [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: D1 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: D1 01 00 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: D1 01 00 59 09 00 33 [08:37:30]Write to MH i2c: 01 00 00 5A 09 63 [08:37:30]Write i2c OK [08:37:30]MH_I2C_Read... [08:37:30]OFD Sender: No OFD packet to send [08:37:30]*** Cut start [08:37:30]*** Partial cut [08:37:30]*** CUTSNS_PIN = 1 [08:37:31]*** CUTSNS_PIN = 0 [08:37:31]*** Brake cut motor [08:37:31]Read from MH i2c: 01 [08:37:31]MH_I2C_Read... [08:37:31]*** Stop cut motor [08:37:31]*** Cut end [08:37:31]Read from MH i2c: 01 07 00 [08:37:31]MH_I2C_Read... [08:37:31]Read from MH i2c: 01 07 00 5A 09 00 00 00 00 00 FF 0F 78 [08:37:31]process_action close_receipt done [08:37:31]requested_data is exist [08:37:31]produce_requested_data [08:37:31]requested_item fm.sn is exist - process it [08:37:31]wFMCommunicate request_size=4 [08:37:31]MH_SAM_APDU [08:37:31]CAPDU: 80 11 00 00 [08:37:31]Write to MH i2c: E2 08 00 5B 09 80 11 00 00 00 00 00 00 DE [08:37:31]Write i2c OK [08:37:31]MH_I2C_Read... [08:37:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:31]Read from MH i2c: E2 [08:37:31]MH_I2C_Read... [08:37:31]Read from MH i2c: E2 17 00 [08:37:31]MH_I2C_Read... [08:37:31]Read from MH i2c: E2 17 00 5B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 31 [08:37:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:37:31]wFMCommunicate OK [08:37:31]requested_item fd.num is exist - process it [08:37:31]SAM_PROTO_GetFieldsCounters [08:37:31]wFMCommunicate request_size=4 [08:37:31]MH_SAM_APDU [08:37:31]CAPDU: 80 13 00 00 [08:37:31]Write to MH i2c: E2 08 00 5C 09 80 13 00 00 00 00 00 00 E1 [08:37:31]Write i2c OK [08:37:31]MH_I2C_Read... [08:37:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:31]Read from MH i2c: E2 [08:37:31]MH_I2C_Read... [08:37:31]Read from MH i2c: E2 62 00 [08:37:31]MH_I2C_Read... [08:37:31]Read from MH i2c: E2 62 00 5C 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D4 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [08:37:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D4 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:37:31]wFMCommunicate OK [08:37:31]SAM_PROTO_GetFieldsCounters done [08:37:31]requested_item shift.num is exist - process it [08:37:31]requested_item shift.opened is exist - process it [08:37:31]req_shift_opened [08:37:31]FM_GetShiftState [08:37:31]SAM_PROTO_GetShiftState [08:37:31]wFMCommunicate request_size=4 [08:37:31]MH_SAM_APDU [08:37:31]CAPDU: 80 13 01 00 [08:37:31]Write to MH i2c: E2 08 00 5D 09 80 13 01 00 00 00 00 00 E3 [08:37:31]Write i2c OK [08:37:31]MH_I2C_Read... [08:37:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:31]Read from MH i2c: E2 [08:37:31]MH_I2C_Read... [08:37:31]Read from MH i2c: E2 0E 00 [08:37:31]MH_I2C_Read... [08:37:31]Read from MH i2c: E2 0E 00 5D 09 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 0A [08:37:31]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:37:31]wFMCommunicate OK [08:37:31]SAM_PROTO_GetShiftState done [08:37:31]FM_GetShiftState done [08:37:31]req_shift_opened done [08:37:31]requested_item shift.open_date is exist - process it [08:37:31]req_shift_open_date [08:37:31]req_shift_open_date done [08:37:31]produce_requested_data done [08:37:31]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77012,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [08:37:31]process_action_free close_receipt [08:37:31]json_value_free [08:37:31]json_value_free done [08:37:31]process_json_proto returns [08:37:31]Send response to host [08:37:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77012,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [08:37:31]free response buf [08:37:31]execute_script done [08:37:31]execute_script returns [08:37:31]free content buf [08:37:31]Sock 9.Close socket [08:37:31]Sock 9.Thread stoped [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:38]accept exits with 7 [08:41:38]New connection [08:41:38]New thread 3067174244 created [08:41:38]Thread 3067030884 joined [08:41:38]Waiting for new connection... [08:41:38] Sock 7.Parse request [08:41:38]Sock 7.Check first char [08:41:38]Sock 7.First char is OK [08:41:38]request: POST /json_proto HTTP/1.0 [08:41:38]Method: POST [08:41:38]URL: /json_proto [08:41:38]Method is POST - this is cgi request [08:41:38]url: /json_proto [08:41:38]query_string will be loaded in cgi processing [08:41:38]execute_cgi json_proto POST (null) [08:41:38]execute_cgi path=json_proto method=POST [08:41:38]POST find Content-Length [08:41:38]Host: 172.17.62.5:8080 [08:41:38]Content-Length: 681 [08:41:38]Content-Type: application/json [08:41:38] [08:41:38]POST finish read [08:41:38]Found Content-Length = 681 [08:41:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 21.410, "sum" : 700.11, "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:41:38]execute_script... [08:41: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)191566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 21.410, "sum" : 700.11, "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:41:38]POST & json_proto [08:41:38]process_json_proto [08:41:38]json parsed OK: [08:41:38]protocol is kg_v1.0 [08:41:38]action value=close_receipt [08:41:38]process_action close_receipt [08:41:38]cmd_close_receipt [08:41:38]MH_GetDate [08:41:38]Write to MH i2c: F0 00 00 5E 09 56 [08:41:38]Write i2c OK [08:41:38]MH_I2C_Read... [08:41:38]Read from MH i2c: F0 [08:41:38]MH_I2C_Read... [08:41:38]Read from MH i2c: F0 09 00 [08:41:38]MH_I2C_Read... [08:41:38]Read from MH i2c: F0 09 00 5E 09 00 C4 22 26 66 F4 E9 65 64 77 [08:41:38]GetLastDocTimeStamp 1713775050 [08:41:38]current date 1713775300 [08:41:38]FM_GetShiftState [08:41:38]SAM_PROTO_GetShiftState [08:41:38]wFMCommunicate request_size=4 [08:41:38]MH_SAM_APDU [08:41:38]CAPDU: 80 13 01 00 [08:41:38]Write to MH i2c: E2 08 00 5F 09 80 13 01 00 00 00 00 00 E5 [08:41:38]Write i2c OK [08:41:38]MH_I2C_Read... [08:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:38]Read from MH i2c: E2 [08:41:38]MH_I2C_Read... [08:41:38]Read from MH i2c: E2 0E 00 [08:41:38]MH_I2C_Read... [08:41:38]Read from MH i2c: E2 0E 00 5F 09 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 0C [08:41:38]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:41:38]wFMCommunicate OK [08:41:38]SAM_PROTO_GetShiftState done [08:41:38]FM_GetShiftState done [08:41:38]opened in 1713745124 [08:41:38]opened+sec_in_day 1713831524 [08:41:38]quantity*price = 70010 [08:41:38]sum+1 = 70012 [08:41:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 32 22.04.2024 08:41 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77013 ФПД: 65883893274487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T084140&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77013&fm=65883893274487&tin=02508201610067®Number=0000000000091573&sum=70000 [08:41:39]StoreToDocumentArchive [08:41:39]shift 373 fd 77013 [08:41:39]save to /storage/0373/doc_00077013 [08:41:39]save last doc name /storage/0373/doc_00077013 to /storage/kkm_last_doc_name [08:41:39]save OK [08:41:39]Clear old archive folders... [08:41:39]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:41:39]tlvbuf is 01751E30 [08:41:39]SAM_PROTO_ClearQueue [08:41:39]wFMCommunicate request_size=4 [08:41:39]MH_SAM_APDU [08:41:39]CAPDU: 80 09 00 00 [08:41:39]Write to MH i2c: E2 08 00 6C 09 80 09 00 00 00 00 00 00 E7 [08:41:39]Write i2c OK [08:41:39]MH_I2C_Read... [08:41:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:39]Read from MH i2c: E2 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: E2 03 00 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: E2 03 00 6C 09 00 90 00 E9 [08:41:39]RAPDU: 90 00 [08:41:39]wFMCommunicate OK [08:41:39]SAM_PROTO_ClearQueue done [08:41:39]KKMCreateOFDPacket [08:41:39]OFDProtocolAddRootSTLVToBuf [08:41:39]FM_MakeSignedData [08:41:39]FM_MakeSignedData [08:41:39]SAM_PROTO_SignData [08:41:39]wFMCommunicate request_size=4 [08:41:39]MH_SAM_APDU [08:41:39]CAPDU: 80 0D 01 02 [08:41:39]Write to MH i2c: E2 08 00 6D 09 80 0D 01 02 00 00 00 00 EF [08:41:39]Write i2c OK [08:41:39]MH_I2C_Read... [08:41:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:39]Read from MH i2c: E2 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: E2 03 00 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: E2 03 00 6D 09 00 90 00 EA [08:41:39]RAPDU: 90 00 [08:41:39]wFMCommunicate OK [08:41:39]wFMCommunicate request_size=255 [08:41:39]MH_SAM_APDU [08:41:39]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 20 00 00 00 F4 03 04 00 C4 22 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D5 2C 01 00 35 04 06 00 3B EB [08:41:39]Write to MH i2c: E2 02 01 6E 09 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 20 00 00 00 F4 03 04 00 C4 22 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D5 2C 01 00 35 04 06 00 3B EB 00 00 BE [08:41:39]Write i2c OK [08:41:39]MH_I2C_Read... [08:41:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:39]Read from MH i2c: E2 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: E2 03 00 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: E2 03 00 6E 09 00 90 00 EB [08:41:39]RAPDU: 90 00 [08:41:39]wFMCommunicate OK [08:41:39]wFMCommunicate request_size=9 [08:41:39]MH_SAM_APDU [08:41:39]CAPDU: 80 0D 02 02 04 CA 0E 17 77 [08:41:39]Write to MH i2c: E2 0C 00 6F 09 80 0D 02 02 04 00 CA 0E 17 77 00 00 60 [08:41:39]Write i2c OK [08:41:39]MH_I2C_Read... [08:41:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:39]Read from MH i2c: E2 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: E2 03 00 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: E2 03 00 6F 09 00 90 00 EC [08:41:39]RAPDU: 90 00 [08:41:39]wFMCommunicate OK [08:41:39]wFMCommunicate request_size=4 [08:41:39]MH_SAM_APDU [08:41:39]CAPDU: 80 0D 03 02 [08:41:39]Write to MH i2c: E2 08 00 70 09 80 0D 03 02 00 00 00 00 F4 [08:41:39]Write i2c OK [08:41:39]MH_I2C_Read... [08:41:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:39]Read from MH i2c: E2 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: E2 0B 00 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: E2 0B 00 70 09 00 5A CB DA CF C7 E9 2A 8E 90 00 2B [08:41:39]RAPDU: 5A CB DA CF C7 E9 2A 8E 90 00 [08:41:39]wFMCommunicate OK [08:41:39]SAM_PROTO_SignData done [08:41:39]FM_MakeSignedData done [08:41:39]CreateOFDProtocolMessage [08:41:39]wFMCommunicate request_size=4 [08:41:39]MH_SAM_APDU [08:41:39]CAPDU: 80 11 00 00 [08:41:39]Write to MH i2c: E2 08 00 71 09 80 11 00 00 00 00 00 00 F4 [08:41:39]Write i2c OK [08:41:39]MH_I2C_Read... [08:41:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:39]Read from MH i2c: E2 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: E2 17 00 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: E2 17 00 71 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 47 [08:41:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:41:39]wFMCommunicate OK [08:41:39]CreateOFDProtocolMessage done [08:41:39]OFDSenderStorePacket 77013 [08:41:39]StoreOFDPacket docnum=77013 [08:41:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 99 4A 06 01 B9 EA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 20 00 00 00 F4 03 04 00 C4 22 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D5 2C 01 00 35 04 06 00 3B EB CA 0E 17 77 5A CB DA CF C7 E9 2A 8E [08:41:39]CheckFolder [08:41:39]dirname=/storage/ofd_packets [08:41:39]CheckFolder done [08:41:39]ProducePacketName [08:41:39]name=ofd_packets/00077013 [08:41:39]NVStorageSaveData ofd_packets/00077013 [08:41:39]File name is /storage/ofd_packets/00077013 [08:41:39]Write 300 bytes [08:41:39]NVStorageSaveData done [08:41:39]OFDSenderStorePacket done [08:41:39]KKMCreateOFDPacket done [08:41:39]NVStorageSaveData kkm_last_timestamp [08:41:39]File name is /storage/kkm_last_timestamp [08:41:39]Write 4 bytes [08:41:39]NVStorageSaveData done [08:41:39]ExternCall_PrintAddStr [08:41:39]wPrintStart [08:41:39]Write to MH i2c: 01 00 00 72 09 7B [08:41:39]Write i2c OK [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: 01 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: 01 07 00 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: 01 07 00 72 09 00 00 00 00 00 FF 0F 90 [08:41:39]RasterBufferAndPrint [08:41:39]line Счет N : (1)191566 [08:41:39]line ИНН: 02508201610067 [08:41:39]line Контрольно-Кассовый Чек [08:41:39]line ПРОДАЖА [08:41:39]line ТРК (МРК, ГНК) : 71 [08:41:39]line Товар: 2711190000 [08:41:39]line ГАЗ-К-5 [08:41:39]line 21.410 * 32.70 [08:41:39]line = 700.11 [08:41:39]line НДС 12% НСП 1% [08:41:39]line > о реализуемом товаре [08:41:39]line ОКРУГЛЕНИЕ: -0.11 [08:41:39]line ИТОГО: 700.00 [08:41:39]line Внесено: 700.00 [08:41:39]line СДАЧА: 0.00 [08:41:39]line НСП 1% : 6.20 [08:41:39]line НДС 12% : 74.35 [08:41:39]line Наличными: 700.00 [08:41:39]line Безнал.: 0.00 [08:41:39]line Место: АЗС № 106 "Партнер Нефть" [08:41:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:41:39]line СНО: Общий режим [08:41:39]line Чек 32 22.04.2024 08:41 [08:41:39]line Смена: 373 ФФД: 1.0 [08:41:39]line ЗНМ: 0300000141 [08:41:39]line РНМ: 0000000000091573 [08:41:39]line Версия ККМ: 001 [08:41:39]line ФМ: 0000000000874652 [08:41:39]line ФД: 77013 [08:41:39]line ФПД: 65883893274487 [08:41:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T084140&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77013&fm=65883893274487&tin=02508201610067®Number=0000000000091573&sum=70000 [08:41:39]written 0, free lines is 4095 [08:41:39]OFD Sender: Processing packet 77013 [packets to send 129, broken 128] [08:41:39]ProducePacketName [08:41:39]name=ofd_packets/00077013 [08:41:40]OFD Sender: To server: pG, [08:41:40]CommunicateWithHost lk.salyk.kg:30040 [08:41:40]ConnectInit lk.salyk.kg [08:41:40]Write to MH i2c: 01 00 00 9C 09 A5 [08:41:40]Write i2c OK [08:41:40]MH_I2C_Read... [08:41:40]Read from MH i2c: 01 [08:41:40]MH_I2C_Read... [08:41:40]Read from MH i2c: 01 07 00 [08:41:40]MH_I2C_Read... [08:41:40]Read from MH i2c: 01 07 00 9C 09 00 00 00 00 00 D7 0C 8F [08:41:40]RasterBufferAndPrint [08:41:40]line [08:41:40]line [08:41:40]line [08:41:40]line [08:41:40]line [08:41:40]written 0, free lines is 3294 [08:41:40]MH_Cut [08:41:40]Write to MH i2c: D1 01 00 A3 09 01 7E [08:41:40]Write i2c OK [08:41:40]MH_I2C_Read... [08:41:40]Read from MH i2c: D1 [08:41:40]MH_I2C_Read... [08:41:40]Read from MH i2c: D1 01 00 [08:41:40]MH_I2C_Read... [08:41:40]Read from MH i2c: D1 01 00 A3 09 00 7D [08:41:40]Write to MH i2c: 01 00 00 A4 09 AD [08:41:40]Write i2c OK [08:41:40]MH_I2C_Read... [08:41:40]Connected sock=10 [08:41:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 99 4A 06 01 B9 EA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 20 00 00 00 F4 03 04 00 C4 22 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D5 2C 01 00 35 04 06 00 3B EB CA 0E 17 77 5A CB DA CF C7 E9 2A 8E [08:41:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 24 A3 47 00 54 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D5 2C 01 00 F4 03 04 00 47 CA 25 66 B6 04 01 00 00 13 FA F3 DC A0 8D 4C 8E [08:41:40]CommunicateWithHost err = 0 [08:41:40]CheckOFDResponse [08:41:40]1017 (14) - 77093643461234 [08:41:40]1041 (16) - 0000000000874652 [08:41:40]1040 (4) - 77013 [08:41:40]1012 (4) - 22.04.2024 02:24 [08:41:40]1206 (1) - 0 [08:41:40]OFD Sender: Remove packet 77013 [08:41:40]ProducePacketName [08:41:40]name=ofd_packets/00077013 [08:41:40]NVStorageDeleteData [08:41:40]OFD Sender: No OFD packet to send [08:41:40]*** Cut start [08:41:40]*** Partial cut [08:41:40]*** CUTSNS_PIN = 1 [08:41:40]*** CUTSNS_PIN = 0 [08:41:41]*** Brake cut motor [08:41:41]Read from MH i2c: 01 [08:41:41]MH_I2C_Read... [08:41:41]*** Stop cut motor [08:41:41]*** Cut end [08:41:41]Read from MH i2c: 01 07 00 [08:41:41]MH_I2C_Read... [08:41:41]Read from MH i2c: 01 07 00 A4 09 00 00 00 00 00 FF 0F C2 [08:41:41]process_action close_receipt done [08:41:41]requested_data is exist [08:41:41]produce_requested_data [08:41:41]requested_item fm.sn is exist - process it [08:41:41]wFMCommunicate request_size=4 [08:41:41]MH_SAM_APDU [08:41:41]CAPDU: 80 11 00 00 [08:41:41]Write to MH i2c: E2 08 00 A5 09 80 11 00 00 00 00 00 00 28 [08:41:41]Write i2c OK [08:41:41]MH_I2C_Read... [08:41:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:41]Read from MH i2c: E2 [08:41:41]MH_I2C_Read... [08:41:41]Read from MH i2c: E2 17 00 [08:41:41]MH_I2C_Read... [08:41:41]Read from MH i2c: E2 17 00 A5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7B [08:41:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:41:41]wFMCommunicate OK [08:41:41]requested_item fd.num is exist - process it [08:41:41]SAM_PROTO_GetFieldsCounters [08:41:41]wFMCommunicate request_size=4 [08:41:41]MH_SAM_APDU [08:41:41]CAPDU: 80 13 00 00 [08:41:41]Write to MH i2c: E2 08 00 A6 09 80 13 00 00 00 00 00 00 2B [08:41:41]Write i2c OK [08:41:41]MH_I2C_Read... [08:41:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:41]Read from MH i2c: E2 [08:41:41]MH_I2C_Read... [08:41:41]Read from MH i2c: E2 62 00 [08:41:41]MH_I2C_Read... [08:41:41]Read from MH i2c: E2 62 00 A6 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D5 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [08:41:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D5 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:41]wFMCommunicate OK [08:41:41]SAM_PROTO_GetFieldsCounters done [08:41:41]requested_item shift.num is exist - process it [08:41:41]requested_item shift.opened is exist - process it [08:41:41]req_shift_opened [08:41:41]FM_GetShiftState [08:41:41]SAM_PROTO_GetShiftState [08:41:41]wFMCommunicate request_size=4 [08:41:41]MH_SAM_APDU [08:41:41]CAPDU: 80 13 01 00 [08:41:41]Write to MH i2c: E2 08 00 A7 09 80 13 01 00 00 00 00 00 2D [08:41:41]Write i2c OK [08:41:41]MH_I2C_Read... [08:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:41]Read from MH i2c: E2 [08:41:41]MH_I2C_Read... [08:41:41]Read from MH i2c: E2 0E 00 [08:41:41]MH_I2C_Read... [08:41:41]Read from MH i2c: E2 0E 00 A7 09 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 54 [08:41:41]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:41:41]wFMCommunicate OK [08:41:41]SAM_PROTO_GetShiftState done [08:41:41]FM_GetShiftState done [08:41:41]req_shift_opened done [08:41:41]requested_item shift.open_date is exist - process it [08:41:41]req_shift_open_date [08:41:41]req_shift_open_date done [08:41:41]produce_requested_data done [08:41:41]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77013,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [08:41:41]process_action_free close_receipt [08:41:41]json_value_free [08:41:41]json_value_free done [08:41:41]process_json_proto returns [08:41:41]Send response to host [08:41:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77013,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [08:41:41]free response buf [08:41:41]execute_script done [08:41:41]execute_script returns [08:41:41]free content buf [08:41:41]Sock 7.Close socket [08:41:41]Sock 7.Thread stoped [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]accept exits with 9 [08:50:56]New connection [08:50:56]New thread 3067030884 created [08:50:56]Thread 3067174244 joined [08:50:56]Waiting for new connection... [08:50:56] Sock 9.Parse request [08:50:56]Sock 9.Check first char [08:50:56]Sock 9.First char is OK [08:50:56]request: POST /json_proto HTTP/1.0 [08:50:56]Method: POST [08:50:56]URL: /json_proto [08:50:56]Method is POST - this is cgi request [08:50:56]url: /json_proto [08:50:56]query_string will be loaded in cgi processing [08:50:56]execute_cgi json_proto POST (null) [08:50:56]execute_cgi path=json_proto method=POST [08:50:56]POST find Content-Length [08:50:56]Host: 172.17.62.5:8080 [08:50:56]Content-Length: 1176 [08:50:56]Content-Type: application/json [08:50:56] [08:50:56]POST finish read [08:50:56]Found Content-Length = 1176 [08:50:56]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191567\u000A22.04.2024 08:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 6440.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102901\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:56]execute_script... [08:50:56]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191567\u000A22.04.2024 08:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 6440.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102901\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:56]POST & json_proto [08:50:56]process_json_proto [08:50:56]json parsed OK: [08:50:56]protocol is kg_v1.0 [08:50:56]action value=print_text [08:50:56]process_action print_text [08:50:56]cmd_print_text [08:50:56]ExternCall_PrintAddStr [08:50:56]wPrintStart [08:50:56]Write to MH i2c: 01 00 00 A8 09 B1 [08:50:56]Write i2c OK [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: 01 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: 01 07 00 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: 01 07 00 A8 09 00 00 00 00 00 FF 0F C6 [08:50:56]RasterBufferAndPrint [08:50:56]line *****ТОВАРНЫЙ ЧЕК***** [08:50:56]line АЗС 106 [08:50:56]line Партнер нефть [08:50:56]line 02508201610067 [08:50:56]line Кассир : Токторбаева Н. [08:50:56]line Счет N : (1)191567 [08:50:56]line 22.04.2024 08:32 [08:50:56]line ПРОДАЖА [08:50:56]line ТРК (МРК, ГНК): 12 [08:50:56]line Вид ГСМ : 2710124130 [08:50:56]line Аи-92-К-5 [08:50:56]line 100.000 x 64.40 [08:50:56]line ИТОГ: 6440.00 [08:50:56]line Тип оплаты: Талоны: ТК ГПНА Online [08:50:56]line 30102901 [08:50:56]line ______________________ [08:50:56]line (подпись) [08:50:56]written 0, free lines is 4095 [08:50:56]Write to MH i2c: 01 00 00 BD 09 C6 [08:50:56]Write i2c OK [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: 01 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: 01 07 00 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: 01 07 00 BD 09 00 00 00 00 00 F4 0D CE [08:50:56]RasterBufferAndPrint [08:50:56]line [08:50:56]line [08:50:56]line [08:50:56]line [08:50:56]line [08:50:56]written 0, free lines is 3573 [08:50:56]MH_Cut [08:50:56]Write to MH i2c: D1 01 00 C4 09 01 9F [08:50:56]Write i2c OK [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: D1 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: D1 01 00 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: D1 01 00 C4 09 00 9E [08:50:56]Write to MH i2c: 01 00 00 C5 09 CE [08:50:56]Write i2c OK [08:50:56]MH_I2C_Read... [08:50:56]OFD Sender: No OFD packet to send [08:50:56]*** Cut start [08:50:56]*** Partial cut [08:50:56]*** CUTSNS_PIN = 1 [08:50:56]*** CUTSNS_PIN = 0 [08:50:57]*** Brake cut motor [08:50:57]Read from MH i2c: 01 [08:50:57]MH_I2C_Read... [08:50:57]Read from MH i2c: 01 07 00 [08:50:57]MH_I2C_Read... [08:50:57]*** Stop cut motor [08:50:57]*** Cut end [08:50:57]Read from MH i2c: 01 07 00 C5 09 00 00 00 00 00 FF 0F E3 [08:50:57]process_action print_text done [08:50:57]requested_data is exist [08:50:57]produce_requested_data [08:50:57]requested_item fm.sn is exist - process it [08:50:57]wFMCommunicate request_size=4 [08:50:57]MH_SAM_APDU [08:50:57]CAPDU: 80 11 00 00 [08:50:57]Write to MH i2c: E2 08 00 C6 09 80 11 00 00 00 00 00 00 49 [08:50:57]Write i2c OK [08:50:57]MH_I2C_Read... [08:50:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:57]Read from MH i2c: E2 [08:50:57]MH_I2C_Read... [08:50:57]Read from MH i2c: E2 17 00 [08:50:57]MH_I2C_Read... [08:50:57]Read from MH i2c: E2 17 00 C6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9C [08:50:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:50:57]wFMCommunicate OK [08:50:57]requested_item fd.num is exist - process it [08:50:57]SAM_PROTO_GetFieldsCounters [08:50:57]wFMCommunicate request_size=4 [08:50:57]MH_SAM_APDU [08:50:57]CAPDU: 80 13 00 00 [08:50:57]Write to MH i2c: E2 08 00 C7 09 80 13 00 00 00 00 00 00 4C [08:50:57]Write i2c OK [08:50:57]MH_I2C_Read... [08:50:57]Read from MH i2c: E2 [08:50:57]MH_I2C_Read... [08:50:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:57]Read from MH i2c: E2 62 00 [08:50:57]MH_I2C_Read... [08:50:57]Read from MH i2c: E2 62 00 C7 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D5 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [08:50:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D5 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:57]wFMCommunicate OK [08:50:57]SAM_PROTO_GetFieldsCounters done [08:50:57]requested_item shift.num is exist - process it [08:50:57]requested_item shift.opened is exist - process it [08:50:57]req_shift_opened [08:50:57]FM_GetShiftState [08:50:57]SAM_PROTO_GetShiftState [08:50:57]wFMCommunicate request_size=4 [08:50:57]MH_SAM_APDU [08:50:57]CAPDU: 80 13 01 00 [08:50:57]Write to MH i2c: E2 08 00 C8 09 80 13 01 00 00 00 00 00 4E [08:50:57]Write i2c OK [08:50:57]MH_I2C_Read... [08:50:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:57]Read from MH i2c: E2 [08:50:57]MH_I2C_Read... [08:50:57]Read from MH i2c: E2 0E 00 [08:50:57]MH_I2C_Read... [08:50:57]Read from MH i2c: E2 0E 00 C8 09 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 75 [08:50:57]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:50:57]wFMCommunicate OK [08:50:57]SAM_PROTO_GetShiftState done [08:50:57]FM_GetShiftState done [08:50:57]req_shift_opened done [08:50:57]requested_item shift.open_date is exist - process it [08:50:57]req_shift_open_date [08:50:57]req_shift_open_date done [08:50:57]produce_requested_data done [08:50:57]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77013,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [08:50:57]process_action_free print_text [08:50:57]json_value_free [08:50:57]json_value_free done [08:50:57]process_json_proto returns [08:50:57]Send response to host [08:50:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77013,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [08:50:57]free response buf [08:50:57]execute_script done [08:50:57]execute_script returns [08:50:57]free content buf [08:50:57]Sock 9.Close socket [08:50:57]Sock 9.Thread stoped [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:39]accept exits with 7 [08:51:39]New connection [08:51:39]New thread 3067174244 created [08:51:39]Thread 3067030884 joined [08:51:39]Waiting for new connection... [08:51:39] Sock 7.Parse request [08:51:39]Sock 7.Check first char [08:51:39]Sock 7.First char is OK [08:51:39]request: POST /json_proto HTTP/1.0 [08:51:39]Method: POST [08:51:39]URL: /json_proto [08:51:39]Method is POST - this is cgi request [08:51:39]url: /json_proto [08:51:39]query_string will be loaded in cgi processing [08:51:39]execute_cgi json_proto POST (null) [08:51:39]execute_cgi path=json_proto method=POST [08:51:39]POST find Content-Length [08:51:39]Host: 172.17.62.5:8080 [08:51:39]Content-Length: 801 [08:51:39]Content-Type: application/json [08:51:39] [08:51:39]POST finish read [08:51:39]Found Content-Length = 801 [08:51:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 30.590, "sum" : 2000.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:39]execute_script... [08:51: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)191568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 30.590, "sum" : 2000.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:39]POST & json_proto [08:51:39]process_json_proto [08:51:39]json parsed OK: [08:51:39]protocol is kg_v1.0 [08:51:39]action value=close_receipt [08:51:39]process_action close_receipt [08:51:39]cmd_close_receipt [08:51:39]MH_GetDate [08:51:39]Write to MH i2c: F0 00 00 C9 09 C1 [08:51:39]Write i2c OK [08:51:39]MH_I2C_Read... [08:51:39]Read from MH i2c: F0 [08:51:39]MH_I2C_Read... [08:51:39]Read from MH i2c: F0 09 00 [08:51:39]MH_I2C_Read... [08:51:39]Read from MH i2c: F0 09 00 C9 09 00 1E 25 26 66 F4 E9 65 64 3F [08:51:39]GetLastDocTimeStamp 1713775300 [08:51:39]current date 1713775902 [08:51:39]FM_GetShiftState [08:51:39]SAM_PROTO_GetShiftState [08:51:39]wFMCommunicate request_size=4 [08:51:39]MH_SAM_APDU [08:51:39]CAPDU: 80 13 01 00 [08:51:39]Write to MH i2c: E2 08 00 CA 09 80 13 01 00 00 00 00 00 50 [08:51:39]Write i2c OK [08:51:39]MH_I2C_Read... [08:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:39]Read from MH i2c: E2 [08:51:39]MH_I2C_Read... [08:51:39]Read from MH i2c: E2 0E 00 [08:51:39]MH_I2C_Read... [08:51:39]Read from MH i2c: E2 0E 00 CA 09 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 77 [08:51:39]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:51:39]wFMCommunicate OK [08:51:39]SAM_PROTO_GetShiftState done [08:51:39]FM_GetShiftState done [08:51:39]opened in 1713745124 [08:51:39]opened+sec_in_day 1713831524 [08:51:39]quantity*price = 200058 [08:51:39]sum+1 = 200060 [08:51:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.59 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 0.00 Безнал.: 2000.59 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 33 22.04.2024 08:51 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 77014 ФПД: 250132614801268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T085142&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77014&fm=250132614801268&tin=02508201610067®Number=0000000000091573&sum=200059 [08:51:41]StoreToDocumentArchive [08:51:41]shift 373 fd 77014 [08:51:41]save to /storage/0373/doc_00077014 [08:51:41]save last doc name /storage/0373/doc_00077014 to /storage/kkm_last_doc_name [08:51:41]save OK [08:51:41]Clear old archive folders... [08:51:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:51:41]tlvbuf is 01766220 [08:51:41]SAM_PROTO_ClearQueue [08:51:41]wFMCommunicate request_size=4 [08:51:41]MH_SAM_APDU [08:51:41]CAPDU: 80 09 00 00 [08:51:41]Write to MH i2c: E2 08 00 D7 09 80 09 00 00 00 00 00 00 52 [08:51:41]Write i2c OK [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 [08:51:41]MH_I2C_Read... [08:51:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:41]Read from MH i2c: E2 03 00 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 03 00 D7 09 00 90 00 54 [08:51:41]RAPDU: 90 00 [08:51:41]wFMCommunicate OK [08:51:41]SAM_PROTO_ClearQueue done [08:51:41]KKMCreateOFDPacket [08:51:41]OFDProtocolAddRootSTLVToBuf [08:51:41]FM_MakeSignedData [08:51:41]FM_MakeSignedData [08:51:41]SAM_PROTO_SignData [08:51:41]wFMCommunicate request_size=4 [08:51:41]MH_SAM_APDU [08:51:41]CAPDU: 80 0D 01 02 [08:51:41]Write to MH i2c: E2 08 00 D8 09 80 0D 01 02 00 00 00 00 5A [08:51:41]Write i2c OK [08:51:41]MH_I2C_Read... [08:51:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:41]Read from MH i2c: E2 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 03 00 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 03 00 D8 09 00 90 00 55 [08:51:41]RAPDU: 90 00 [08:51:41]wFMCommunicate OK [08:51:41]wFMCommunicate request_size=255 [08:51:41]MH_SAM_APDU [08:51:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 7B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 1E 25 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D6 2C 01 00 35 04 06 00 [08:51:41]Write to MH i2c: E2 02 01 D9 09 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 7B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 1E 25 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D6 2C 01 00 35 04 06 00 00 00 E4 [08:51:41]Write i2c OK [08:51:41]MH_I2C_Read... [08:51:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:41]Read from MH i2c: E2 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 03 00 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 03 00 D9 09 00 90 00 56 [08:51:41]RAPDU: 90 00 [08:51:41]wFMCommunicate OK [08:51:41]wFMCommunicate request_size=11 [08:51:41]MH_SAM_APDU [08:51:41]CAPDU: 80 0D 02 02 06 E3 7E 89 A6 E7 74 [08:51:41]Write to MH i2c: E2 0E 00 DA 09 80 0D 02 02 06 00 E3 7E 89 A6 E7 74 00 00 54 [08:51:41]Write i2c OK [08:51:41]MH_I2C_Read... [08:51:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:41]Read from MH i2c: E2 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 03 00 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 03 00 DA 09 00 90 00 57 [08:51:41]RAPDU: 90 00 [08:51:41]wFMCommunicate OK [08:51:41]wFMCommunicate request_size=4 [08:51:41]MH_SAM_APDU [08:51:41]CAPDU: 80 0D 03 02 [08:51:41]Write to MH i2c: E2 08 00 DB 09 80 0D 03 02 00 00 00 00 5F [08:51:41]Write i2c OK [08:51:41]MH_I2C_Read... [08:51:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:41]Read from MH i2c: E2 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 0B 00 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 0B 00 DB 09 00 78 A5 5E F7 78 D7 8F 85 90 00 35 [08:51:41]RAPDU: 78 A5 5E F7 78 D7 8F 85 90 00 [08:51:41]wFMCommunicate OK [08:51:41]SAM_PROTO_SignData done [08:51:41]FM_MakeSignedData done [08:51:41]CreateOFDProtocolMessage [08:51:41]wFMCommunicate request_size=4 [08:51:41]MH_SAM_APDU [08:51:41]CAPDU: 80 11 00 00 [08:51:41]Write to MH i2c: E2 08 00 DC 09 80 11 00 00 00 00 00 00 5F [08:51:41]Write i2c OK [08:51:41]MH_I2C_Read... [08:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:41]Read from MH i2c: E2 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 17 00 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 17 00 DC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B2 [08:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:51:41]wFMCommunicate OK [08:51:41]CreateOFDProtocolMessage done [08:51:41]OFDSenderStorePacket 77014 [08:51:41]StoreOFDPacket docnum=77014 [08:51:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 B1 A8 08 01 7F 04 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 7B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 1E 25 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D6 2C 01 00 35 04 06 00 E3 7E 89 A6 E7 74 78 A5 5E F7 78 D7 8F 85 [08:51:41]CheckFolder [08:51:41]dirname=/storage/ofd_packets [08:51:41]CheckFolder done [08:51:41]ProducePacketName [08:51:41]name=ofd_packets/00077014 [08:51:41]NVStorageSaveData ofd_packets/00077014 [08:51:41]File name is /storage/ofd_packets/00077014 [08:51:41]Write 302 bytes [08:51:41]NVStorageSaveData done [08:51:41]OFDSenderStorePacket done [08:51:41]KKMCreateOFDPacket done [08:51:41]NVStorageSaveData kkm_last_timestamp [08:51:41]File name is /storage/kkm_last_timestamp [08:51:41]Write 4 bytes [08:51:41]NVStorageSaveData done [08:51:41]ExternCall_PrintAddStr [08:51:41]wPrintStart [08:51:41]Write to MH i2c: 01 00 00 DD 09 E6 [08:51:41]Write i2c OK [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: 01 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: 01 07 00 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: 01 07 00 DD 09 00 00 00 00 00 FF 0F FB [08:51:41]RasterBufferAndPrint [08:51:41]line Счет N : (1)191568 [08:51:41]line ИНН: 02508201610067 [08:51:41]line Контрольно-Кассовый Чек [08:51:41]line ПРОДАЖА [08:51:41]line ТРК (МРК, ГНК) : 31 [08:51:41]line Товар: 2710124130 [08:51:41]line SUPER 92-К-5 [08:51:41]line 30.590 * 65.40 [08:51:41]line = 2000.59 [08:51:41]line НДС 12% НСП 1% [08:51:41]line > о реализуемом товаре [08:51:41]line ИТОГО: 2000.59 [08:51:41]line НСП 1% : 17.70 [08:51:41]line НДС 12% : 212.45 [08:51:41]line Наличными: 0.00 [08:51:41]line Безнал.: 2000.59 [08:51:41]line Место: АЗС № 106 "Партнер Нефть" [08:51:41]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:51:41]line СНО: Общий режим [08:51:41]line Чек 33 22.04.2024 08:51 [08:51:41]line Смена: 373 ФФД: 1.0 [08:51:41]line ЗНМ: 0300000141 [08:51:41]line РНМ: 0000000000091573 [08:51:41]line Версия ККМ: 001 [08:51:41]line Платежная система: О! деньги [08:51:41]line ФМ: 0000000000874652 [08:51:41]line ФД: 77014 [08:51:41]line ФПД: 250132614801268 [08:51:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T085142&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77014&fm=250132614801268&tin=02508201610067®Number=0000000000091573&sum=200059 [08:51:41]OFD Sender: Processing packet 77014 [packets to send 129, broken 128] [08:51:41]ProducePacketName [08:51:41]name=ofd_packets/00077014 [08:51:41]OFD Sender: To server: pG, [08:51:41]CommunicateWithHost lk.salyk.kg:30040 [08:51:41]ConnectInit lk.salyk.kg [08:51:41]written 0, free lines is 4095 [08:51:42]Connected sock=10 [08:51:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 B1 A8 08 01 7F 04 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 7B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 1E 25 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D6 2C 01 00 35 04 06 00 E3 7E 89 A6 E7 74 78 A5 5E F7 78 D7 8F 85 [08:51:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 2A D0 47 00 4C 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D6 2C 01 00 F4 03 04 00 A1 CC 25 66 B6 04 01 00 00 19 43 93 43 FB AD F8 1E [08:51:42]CommunicateWithHost err = 0 [08:51:42]CheckOFDResponse [08:51:42]1017 (14) - 77093643461234 [08:51:42]1041 (16) - 0000000000874652 [08:51:42]1040 (4) - 77014 [08:51:42]1012 (4) - 22.04.2024 02:34 [08:51:42]1206 (1) - 0 [08:51:42]OFD Sender: Remove packet 77014 [08:51:42]ProducePacketName [08:51:42]name=ofd_packets/00077014 [08:51:42]NVStorageDeleteData [08:51:42]Write to MH i2c: 01 00 00 06 0A 10 [08:51:42]Write i2c OK [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: 01 [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: 01 07 00 [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: 01 07 00 06 0A 00 00 00 00 00 0B 0D 2F [08:51:42]RasterBufferAndPrint [08:51:42]line [08:51:42]line [08:51:42]line [08:51:42]line [08:51:42]line [08:51:42]written 0, free lines is 3348 [08:51:42]MH_Cut [08:51:42]Write to MH i2c: D1 01 00 0D 0A 01 E9 [08:51:42]Write i2c OK [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: D1 [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: D1 01 00 [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: D1 01 00 0D 0A 00 E8 [08:51:42]Write to MH i2c: 01 00 00 0E 0A 18 [08:51:42]Write i2c OK [08:51:42]MH_I2C_Read... [08:51:42]OFD Sender: No OFD packet to send [08:51:43]*** Cut start [08:51:43]*** Partial cut [08:51:43]*** CUTSNS_PIN = 1 [08:51:43]*** CUTSNS_PIN = 0 [08:51:43]*** Brake cut motor [08:51:43]Read from MH i2c: 01 [08:51:43]MH_I2C_Read... [08:51:43]*** Stop cut motor [08:51:43]*** Cut end [08:51:43]Read from MH i2c: 01 07 00 [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: 01 07 00 0E 0A 00 00 00 00 00 FF 0F 2D [08:51:43]process_action close_receipt done [08:51:43]requested_data is exist [08:51:43]produce_requested_data [08:51:43]requested_item fm.sn is exist - process it [08:51:43]wFMCommunicate request_size=4 [08:51:43]MH_SAM_APDU [08:51:43]CAPDU: 80 11 00 00 [08:51:43]Write to MH i2c: E2 08 00 0F 0A 80 11 00 00 00 00 00 00 93 [08:51:43]Write i2c OK [08:51:43]MH_I2C_Read... [08:51:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:43]Read from MH i2c: E2 [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: E2 17 00 [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: E2 17 00 0F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E6 [08:51:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:51:43]wFMCommunicate OK [08:51:43]requested_item fd.num is exist - process it [08:51:43]SAM_PROTO_GetFieldsCounters [08:51:43]wFMCommunicate request_size=4 [08:51:43]MH_SAM_APDU [08:51:43]CAPDU: 80 13 00 00 [08:51:43]Write to MH i2c: E2 08 00 10 0A 80 13 00 00 00 00 00 00 96 [08:51:43]Write i2c OK [08:51:43]MH_I2C_Read... [08:51:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:43]Read from MH i2c: E2 [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: E2 62 00 [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: E2 62 00 10 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D6 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [08:51:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D6 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:43]wFMCommunicate OK [08:51:43]SAM_PROTO_GetFieldsCounters done [08:51:43]requested_item shift.num is exist - process it [08:51:43]requested_item shift.opened is exist - process it [08:51:43]req_shift_opened [08:51:43]FM_GetShiftState [08:51:43]SAM_PROTO_GetShiftState [08:51:43]wFMCommunicate request_size=4 [08:51:43]MH_SAM_APDU [08:51:43]CAPDU: 80 13 01 00 [08:51:43]Write to MH i2c: E2 08 00 11 0A 80 13 01 00 00 00 00 00 98 [08:51:43]Write i2c OK [08:51:43]MH_I2C_Read... [08:51:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:43]Read from MH i2c: E2 [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: E2 0E 00 [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: E2 0E 00 11 0A 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 BF [08:51:43]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:51:43]wFMCommunicate OK [08:51:43]SAM_PROTO_GetShiftState done [08:51:43]FM_GetShiftState done [08:51:43]req_shift_opened done [08:51:43]requested_item shift.open_date is exist - process it [08:51:43]req_shift_open_date [08:51:43]req_shift_open_date done [08:51:43]produce_requested_data done [08:51:43]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77014,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [08:51:43]process_action_free close_receipt [08:51:43]json_value_free [08:51:43]json_value_free done [08:51:43]process_json_proto returns [08:51:43]Send response to host [08:51:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77014,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [08:51:43]free response buf [08:51:43]execute_script done [08:51:43]execute_script returns [08:51:43]free content buf [08:51:43]Sock 7.Close socket [08:51:43]Sock 7.Thread stoped [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:50]accept exits with 9 [08:52:50]New connection [08:52:50]New thread 3067030884 created [08:52:50]Thread 3067174244 joined [08:52:50]Waiting for new connection... [08:52:50] Sock 9.Parse request [08:52:50]Sock 9.Check first char [08:52:50]Sock 9.First char is OK [08:52:50]request: POST /json_proto HTTP/1.0 [08:52:50]Method: POST [08:52:50]URL: /json_proto [08:52:50]Method is POST - this is cgi request [08:52:50]url: /json_proto [08:52:50]query_string will be loaded in cgi processing [08:52:50]execute_cgi json_proto POST (null) [08:52:50]execute_cgi path=json_proto method=POST [08:52:50]POST find Content-Length [08:52:50]Host: 172.17.62.5:8080 [08:52:50]Content-Length: 1172 [08:52:50]Content-Type: application/json [08:52:50] [08:52:50]POST finish read [08:52:50]Found Content-Length = 1172 [08:52:50]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191569\u000A22.04.2024 08:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30103446\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:50]execute_script... [08:52:50]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191569\u000A22.04.2024 08:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30103446\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:50]POST & json_proto [08:52:50]process_json_proto [08:52:50]json parsed OK: [08:52:50]protocol is kg_v1.0 [08:52:50]action value=print_text [08:52:50]process_action print_text [08:52:50]cmd_print_text [08:52:50]ExternCall_PrintAddStr [08:52:50]wPrintStart [08:52:50]Write to MH i2c: 01 00 00 12 0A 1C [08:52:50]Write i2c OK [08:52:50]MH_I2C_Read... [08:52:50]Read from MH i2c: 01 [08:52:50]MH_I2C_Read... [08:52:50]Read from MH i2c: 01 07 00 [08:52:50]MH_I2C_Read... [08:52:50]Read from MH i2c: 01 07 00 12 0A 00 00 00 00 00 FF 0F 31 [08:52:50]RasterBufferAndPrint [08:52:50]line *****ТОВАРНЫЙ ЧЕК***** [08:52:50]line АЗС 106 [08:52:50]line Партнер нефть [08:52:50]line 02508201610067 [08:52:50]line Кассир : Токторбаева Н. [08:52:50]line Счет N : (1)191569 [08:52:50]line 22.04.2024 08:34 [08:52:50]line ПРОДАЖА [08:52:50]line ТРК (МРК, ГНК): 61 [08:52:50]line Вид ГСМ : 2710194210 [08:52:50]line ДТ-К-5 [08:52:50]line 50.000 x 72.90 [08:52:50]line ИТОГ: 3645.00 [08:52:50]line Тип оплаты: Талоны: ТК ГПНА Online [08:52:50]line 30103446 [08:52:50]line ______________________ [08:52:50]line (подпись) [08:52:50]written 0, free lines is 4095 [08:52:51]Write to MH i2c: 01 00 00 27 0A 31 [08:52:51]Write i2c OK [08:52:51]MH_I2C_Read... [08:52:51]Read from MH i2c: 01 [08:52:51]MH_I2C_Read... [08:52:51]Read from MH i2c: 01 07 00 [08:52:51]MH_I2C_Read... [08:52:51]Read from MH i2c: 01 07 00 27 0A 00 00 00 00 00 F4 0D 39 [08:52:51]RasterBufferAndPrint [08:52:51]line [08:52:51]line [08:52:51]line [08:52:51]line [08:52:51]line [08:52:51]written 0, free lines is 3574 [08:52:51]MH_Cut [08:52:51]Write to MH i2c: D1 01 00 2E 0A 01 0A [08:52:51]Write i2c OK [08:52:51]MH_I2C_Read... [08:52:51]Read from MH i2c: D1 [08:52:51]MH_I2C_Read... [08:52:51]Read from MH i2c: D1 01 00 [08:52:51]MH_I2C_Read... [08:52:51]Read from MH i2c: D1 01 00 2E 0A 00 09 [08:52:51]Write to MH i2c: 01 00 00 2F 0A 39 [08:52:51]Write i2c OK [08:52:51]MH_I2C_Read... [08:52:51]*** Cut start [08:52:51]*** Partial cut [08:52:51]*** CUTSNS_PIN = 1 [08:52:51]*** CUTSNS_PIN = 0 [08:52:51]*** Brake cut motor [08:52:52]Read from MH i2c: 01 [08:52:52]MH_I2C_Read... [08:52:52]*** Stop cut motor [08:52:52]*** Cut end [08:52:52]Read from MH i2c: 01 07 00 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: 01 07 00 2F 0A 00 00 00 00 00 FF 0F 4E [08:52:52]process_action print_text done [08:52:52]requested_data is exist [08:52:52]produce_requested_data [08:52:52]requested_item fm.sn is exist - process it [08:52:52]wFMCommunicate request_size=4 [08:52:52]MH_SAM_APDU [08:52:52]CAPDU: 80 11 00 00 [08:52:52]Write to MH i2c: E2 08 00 30 0A 80 11 00 00 00 00 00 00 B4 [08:52:52]Write i2c OK [08:52:52]MH_I2C_Read... [08:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:52]Read from MH i2c: E2 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 17 00 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 17 00 30 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 07 [08:52:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:52:52]wFMCommunicate OK [08:52:52]requested_item fd.num is exist - process it [08:52:52]SAM_PROTO_GetFieldsCounters [08:52:52]wFMCommunicate request_size=4 [08:52:52]MH_SAM_APDU [08:52:52]CAPDU: 80 13 00 00 [08:52:52]Write to MH i2c: E2 08 00 31 0A 80 13 00 00 00 00 00 00 B7 [08:52:52]Write i2c OK [08:52:52]MH_I2C_Read... [08:52:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:52]Read from MH i2c: E2 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 62 00 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 62 00 31 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D6 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [08:52:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D6 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:52:52]wFMCommunicate OK [08:52:52]SAM_PROTO_GetFieldsCounters done [08:52:52]requested_item shift.num is exist - process it [08:52:52]requested_item shift.opened is exist - process it [08:52:52]req_shift_opened [08:52:52]FM_GetShiftState [08:52:52]SAM_PROTO_GetShiftState [08:52:52]wFMCommunicate request_size=4 [08:52:52]MH_SAM_APDU [08:52:52]CAPDU: 80 13 01 00 [08:52:52]Write to MH i2c: E2 08 00 32 0A 80 13 01 00 00 00 00 00 B9 [08:52:52]Write i2c OK [08:52:52]MH_I2C_Read... [08:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:52]Read from MH i2c: E2 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 0E 00 [08:52:52]MH_I2C_Read... [08:52:52]Read from MH i2c: E2 0E 00 32 0A 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 E0 [08:52:52]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:52:52]wFMCommunicate OK [08:52:52]SAM_PROTO_GetShiftState done [08:52:52]FM_GetShiftState done [08:52:52]req_shift_opened done [08:52:52]requested_item shift.open_date is exist - process it [08:52:52]req_shift_open_date [08:52:52]req_shift_open_date done [08:52:52]produce_requested_data done [08:52:52]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77014,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [08:52:52]process_action_free print_text [08:52:52]json_value_free [08:52:52]json_value_free done [08:52:52]process_json_proto returns [08:52:52]Send response to host [08:52:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77014,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [08:52:52]free response buf [08:52:52]execute_script done [08:52:52]execute_script returns [08:52:52]free content buf [08:52:52]Sock 9.Close socket [08:52:52]Sock 9.Thread stoped [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54: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:55]accept exits with 7 [08:54:55]New connection [08:54:55]New thread 3067174244 created [08:54:55]Thread 3067030884 joined [08:54:55]Waiting for new connection... [08:54:55] Sock 7.Parse request [08:54:55]Sock 7.Check first char [08:54:55]Sock 7.First char is OK [08:54:55]request: POST /json_proto HTTP/1.0 [08:54:55]Method: POST [08:54:55]URL: /json_proto [08:54:55]Method is POST - this is cgi request [08:54:55]url: /json_proto [08:54:55]query_string will be loaded in cgi processing [08:54:55]execute_cgi json_proto POST (null) [08:54:55]execute_cgi path=json_proto method=POST [08:54:55]POST find Content-Length [08:54:55]Host: 172.17.62.5:8080 [08:54:55]Content-Length: 978 [08:54:55]Content-Type: application/json [08:54:55] [08:54:55]POST finish read [08:54:55]Found Content-Length = 978 [08:54:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 16.690, "sum" : 1200.01, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 16.69 \u0441\u043E\u043C", "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:54:55]execute_script... [08:54: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)191570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 16.690, "sum" : 1200.01, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 16.69 \u0441\u043E\u043C", "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:54:55]POST & json_proto [08:54:55]process_json_proto [08:54:55]json parsed OK: [08:54:55]protocol is kg_v1.0 [08:54:55]action value=close_receipt [08:54:55]process_action close_receipt [08:54:55]cmd_close_receipt [08:54:55]MH_GetDate [08:54:55]Write to MH i2c: F0 00 00 33 0A 2C [08:54:55]Write i2c OK [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: F0 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: F0 09 00 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: F0 09 00 33 0A 00 E1 25 26 66 F4 E9 65 64 6D [08:54:55]GetLastDocTimeStamp 1713775902 [08:54:55]current date 1713776097 [08:54:55]FM_GetShiftState [08:54:55]SAM_PROTO_GetShiftState [08:54:55]wFMCommunicate request_size=4 [08:54:55]MH_SAM_APDU [08:54:55]CAPDU: 80 13 01 00 [08:54:55]Write to MH i2c: E2 08 00 34 0A 80 13 01 00 00 00 00 00 BB [08:54:55]Write i2c OK [08:54:55]MH_I2C_Read... [08:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:55]Read from MH i2c: E2 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 0E 00 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 0E 00 34 0A 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 E2 [08:54:55]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:54:55]wFMCommunicate OK [08:54:55]SAM_PROTO_GetShiftState done [08:54:55]FM_GetShiftState done [08:54:55]opened in 1713745124 [08:54:55]opened+sec_in_day 1713831524 [08:54:55]quantity*price = 120001 [08:54:55]sum+1 = 120002 [08:54:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.43 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 34 22.04.2024 08:54 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 16.69 сом ФМ: 0000000000874652 ФД: 77015 ФПД: 145164936350908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T085457&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77015&fm=145164936350908&tin=02508201610067®Number=0000000000091573&sum=120000 [08:54:56]StoreToDocumentArchive [08:54:56]shift 373 fd 77015 [08:54:56]save to /storage/0373/doc_00077015 [08:54:56]save last doc name /storage/0373/doc_00077015 to /storage/kkm_last_doc_name [08:54:56]save OK [08:54:56]Clear old archive folders... [08:54:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:54:56]tlvbuf is 01713500 [08:54:56]SAM_PROTO_ClearQueue [08:54:56]wFMCommunicate request_size=4 [08:54:56]MH_SAM_APDU [08:54:56]CAPDU: 80 09 00 00 [08:54:56]Write to MH i2c: E2 08 00 41 0A 80 09 00 00 00 00 00 00 BD [08:54:56]Write i2c OK [08:54:56]MH_I2C_Read... [08:54:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:56]Read from MH i2c: E2 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 03 00 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 03 00 41 0A 00 90 00 BF [08:54:56]RAPDU: 90 00 [08:54:56]wFMCommunicate OK [08:54:56]SAM_PROTO_ClearQueue done [08:54:56]KKMCreateOFDPacket [08:54:56]OFDProtocolAddRootSTLVToBuf [08:54:56]FM_MakeSignedData [08:54:56]FM_MakeSignedData [08:54:56]SAM_PROTO_SignData [08:54:56]wFMCommunicate request_size=4 [08:54:56]MH_SAM_APDU [08:54:56]CAPDU: 80 0D 01 02 [08:54:56]Write to MH i2c: E2 08 00 42 0A 80 0D 01 02 00 00 00 00 C5 [08:54:56]Write i2c OK [08:54:56]MH_I2C_Read... [08:54:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:56]Read from MH i2c: E2 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 03 00 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 03 00 42 0A 00 90 00 C0 [08:54:56]RAPDU: 90 00 [08:54:56]wFMCommunicate OK [08:54:56]wFMCommunicate request_size=255 [08:54:56]MH_SAM_APDU [08:54:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 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 C7 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 E1 25 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D7 2C 01 00 35 04 06 00 84 06 D8 77 [08:54:56]Write to MH i2c: E2 02 01 43 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 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 C7 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 E1 25 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D7 2C 01 00 35 04 06 00 84 06 D8 77 00 00 B0 [08:54:56]Write i2c OK [08:54:56]MH_I2C_Read... [08:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:56]Read from MH i2c: E2 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 03 00 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 03 00 43 0A 00 90 00 C1 [08:54:56]RAPDU: 90 00 [08:54:56]wFMCommunicate OK [08:54:56]wFMCommunicate request_size=7 [08:54:56]MH_SAM_APDU [08:54:56]CAPDU: 80 0D 02 02 02 0C BC [08:54:56]Write to MH i2c: E2 0A 00 44 0A 80 0D 02 02 02 00 0C BC 00 00 94 [08:54:56]Write i2c OK [08:54:56]MH_I2C_Read... [08:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:56]Read from MH i2c: E2 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 03 00 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 03 00 44 0A 00 90 00 C2 [08:54:56]RAPDU: 90 00 [08:54:56]wFMCommunicate OK [08:54:56]wFMCommunicate request_size=4 [08:54:56]MH_SAM_APDU [08:54:56]CAPDU: 80 0D 03 02 [08:54:56]Write to MH i2c: E2 08 00 45 0A 80 0D 03 02 00 00 00 00 CA [08:54:56]Write i2c OK [08:54:56]MH_I2C_Read... [08:54:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:56]Read from MH i2c: E2 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 0B 00 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 0B 00 45 0A 00 35 C3 63 3D EC AD C7 A4 90 00 67 [08:54:56]RAPDU: 35 C3 63 3D EC AD C7 A4 90 00 [08:54:56]wFMCommunicate OK [08:54:56]SAM_PROTO_SignData done [08:54:56]FM_MakeSignedData done [08:54:56]CreateOFDProtocolMessage [08:54:56]wFMCommunicate request_size=4 [08:54:56]MH_SAM_APDU [08:54:56]CAPDU: 80 11 00 00 [08:54:56]Write to MH i2c: E2 08 00 46 0A 80 11 00 00 00 00 00 00 CA [08:54:56]Write i2c OK [08:54:56]MH_I2C_Read... [08:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:56]Read from MH i2c: E2 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 17 00 [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: E2 17 00 46 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 1D [08:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:54:56]wFMCommunicate OK [08:54:56]CreateOFDProtocolMessage done [08:54:56]OFDSenderStorePacket 77015 [08:54:56]StoreOFDPacket docnum=77015 [08:54:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 B7 84 04 01 B0 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 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 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 C7 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 E1 25 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D7 2C 01 00 35 04 06 00 84 06 D8 77 0C BC 35 C3 63 3D EC AD C7 A4 [08:54:56]CheckFolder [08:54:56]dirname=/storage/ofd_packets [08:54:56]CheckFolder done [08:54:56]ProducePacketName [08:54:56]name=ofd_packets/00077015 [08:54:56]NVStorageSaveData ofd_packets/00077015 [08:54:56]File name is /storage/ofd_packets/00077015 [08:54:56]Write 298 bytes [08:54:56]NVStorageSaveData done [08:54:56]OFDSenderStorePacket done [08:54:56]KKMCreateOFDPacket done [08:54:56]NVStorageSaveData kkm_last_timestamp [08:54:56]File name is /storage/kkm_last_timestamp [08:54:56]Write 4 bytes [08:54:56]NVStorageSaveData done [08:54:56]ExternCall_PrintAddStr [08:54:56]wPrintStart [08:54:56]Write to MH i2c: 01 00 00 47 0A 51 [08:54:56]Write i2c OK [08:54:56]MH_I2C_Read... [08:54:56]Read from MH i2c: 01 [08:54:56]MH_I2C_Read... [08:54:57]Read from MH i2c: 01 07 00 [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: 01 07 00 47 0A 00 00 00 00 00 FF 0F 66 [08:54:57]RasterBufferAndPrint [08:54:57]line Счет N : (1)191570 [08:54:57]line ИНН: 02508201610067 [08:54:57]line Контрольно-Кассовый Чек [08:54:57]line ПРОДАЖА [08:54:57]line ТРК (МРК, ГНК) : 23 [08:54:57]line Товар: 2710194210 [08:54:57]line ДТ-К-5 [08:54:57]line 16.690 * 71.90 [08:54:57]line = 1200.01 [08:54:57]line НДС 12% НСП 1% [08:54:57]line > о реализуемом товаре [08:54:57]line ОКРУГЛЕНИЕ: -0.01 [08:54:57]line ИТОГО: 1200.00 [08:54:57]line Внесено: 1200.00 [08:54:57]line СДАЧА: 0.00 [08:54:57]line НСП 1% : 10.62 [08:54:57]line НДС 12% : 127.43 [08:54:57]line Наличными: 1200.00 [08:54:57]line Безнал.: 0.00 [08:54:57]line Место: АЗС № 106 "Партнер Нефть" [08:54:57]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:54:57]line СНО: Общий режим [08:54:57]line Чек 34 22.04.2024 08:54 [08:54:57]line Смена: 373 ФФД: 1.0 [08:54:57]line ЗНМ: 0300000141 [08:54:57]line РНМ: 0000000000091573 [08:54:57]line Версия ККМ: 001 [08:54:57]line [08:54:57]line Дисконтная программа [08:54:57]line ДТ [08:54:57]line номер 106 [08:54:57]line сэкономлено 16.69 сом [08:54:57]line ФМ: 0000000000874652 [08:54:57]line ФД: 77015 [08:54:57]line ФПД: 145164936350908 [08:54:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T085457&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77015&fm=145164936350908&tin=02508201610067®Number=0000000000091573&sum=120000 [08:54:57]OFD Sender: Processing packet 77015 [packets to send 129, broken 128] [08:54:57]ProducePacketName [08:54:57]name=ofd_packets/00077015 [08:54:57]OFD Sender: To server: pG, [08:54:57]CommunicateWithHost lk.salyk.kg:30040 [08:54:57]ConnectInit lk.salyk.kg [08:54:57]written 0, free lines is 4095 [08:54:57]Connected sock=10 [08:54:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 B7 84 04 01 B0 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 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 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 C7 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 E1 25 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D7 2C 01 00 35 04 06 00 84 06 D8 77 0C BC 35 C3 63 3D EC AD C7 A4 [08:54:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 29 F4 47 00 A9 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D7 2C 01 00 F4 03 04 00 64 CD 25 66 B6 04 01 00 00 A5 5B E4 99 9F 03 85 B1 [08:54:57]CommunicateWithHost err = 0 [08:54:57]CheckOFDResponse [08:54:57]1017 (14) - 77093643461234 [08:54:57]1041 (16) - 0000000000874652 [08:54:57]1040 (4) - 77015 [08:54:57]1012 (4) - 22.04.2024 02:37 [08:54:57]1206 (1) - 0 [08:54:57]OFD Sender: Remove packet 77015 [08:54:57]ProducePacketName [08:54:57]name=ofd_packets/00077015 [08:54:57]NVStorageDeleteData [08:54:57]Write to MH i2c: 01 00 00 76 0A 80 [08:54:57]Write i2c OK [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: 01 [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: 01 07 00 [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: 01 07 00 76 0A 00 00 00 00 00 A1 0C 34 [08:54:57]RasterBufferAndPrint [08:54:57]line [08:54:57]line [08:54:57]line [08:54:57]line [08:54:57]line [08:54:57]written 0, free lines is 3239 [08:54:57]MH_Cut [08:54:57]Write to MH i2c: D1 01 00 7D 0A 01 59 [08:54:57]Write i2c OK [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: D1 [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: D1 01 00 [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: D1 01 00 7D 0A 00 58 [08:54:57]Write to MH i2c: 01 00 00 7E 0A 88 [08:54:57]Write i2c OK [08:54:57]MH_I2C_Read... [08:54:58]OFD Sender: No OFD packet to send [08:54:58]*** Cut start [08:54:58]*** Partial cut [08:54:58]*** CUTSNS_PIN = 1 [08:54:58]*** CUTSNS_PIN = 0 [08:54:58]*** Brake cut motor [08:54:59]Read from MH i2c: 01 [08:54:59]MH_I2C_Read... [08:54:59]*** Stop cut motor [08:54:59]*** Cut end [08:54:59]Read from MH i2c: 01 07 00 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: 01 07 00 7E 0A 00 00 00 00 00 FF 0F 9D [08:54:59]process_action close_receipt done [08:54:59]requested_data is exist [08:54:59]produce_requested_data [08:54:59]requested_item fm.sn is exist - process it [08:54:59]wFMCommunicate request_size=4 [08:54:59]MH_SAM_APDU [08:54:59]CAPDU: 80 11 00 00 [08:54:59]Write to MH i2c: E2 08 00 7F 0A 80 11 00 00 00 00 00 00 03 [08:54:59]Write i2c OK [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: E2 [08:54:59]MH_I2C_Read... [08:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:59]Read from MH i2c: E2 17 00 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: E2 17 00 7F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 56 [08:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:54:59]wFMCommunicate OK [08:54:59]requested_item fd.num is exist - process it [08:54:59]SAM_PROTO_GetFieldsCounters [08:54:59]wFMCommunicate request_size=4 [08:54:59]MH_SAM_APDU [08:54:59]CAPDU: 80 13 00 00 [08:54:59]Write to MH i2c: E2 08 00 80 0A 80 13 00 00 00 00 00 00 06 [08:54:59]Write i2c OK [08:54:59]MH_I2C_Read... [08:54:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:59]Read from MH i2c: E2 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: E2 62 00 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: E2 62 00 80 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D7 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [08:54:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D7 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:59]wFMCommunicate OK [08:54:59]SAM_PROTO_GetFieldsCounters done [08:54:59]requested_item shift.num is exist - process it [08:54:59]requested_item shift.opened is exist - process it [08:54:59]req_shift_opened [08:54:59]FM_GetShiftState [08:54:59]SAM_PROTO_GetShiftState [08:54:59]wFMCommunicate request_size=4 [08:54:59]MH_SAM_APDU [08:54:59]CAPDU: 80 13 01 00 [08:54:59]Write to MH i2c: E2 08 00 81 0A 80 13 01 00 00 00 00 00 08 [08:54:59]Write i2c OK [08:54:59]MH_I2C_Read... [08:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:59]Read from MH i2c: E2 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: E2 0E 00 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: E2 0E 00 81 0A 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 2F [08:54:59]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:54:59]wFMCommunicate OK [08:54:59]SAM_PROTO_GetShiftState done [08:54:59]FM_GetShiftState done [08:54:59]req_shift_opened done [08:54:59]requested_item shift.open_date is exist - process it [08:54:59]req_shift_open_date [08:54:59]req_shift_open_date done [08:54:59]produce_requested_data done [08:54:59]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77015,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [08:54:59]process_action_free close_receipt [08:54:59]json_value_free [08:54:59]json_value_free done [08:54:59]process_json_proto returns [08:54:59]Send response to host [08:54:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77015,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [08:54:59]free response buf [08:54:59]execute_script done [08:54:59]execute_script returns [08:54:59]free content buf [08:54:59]Sock 7.Close socket [08:54:59]Sock 7.Thread stoped [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:42]accept exits with 9 [08:55:42]New connection [08:55:42]New thread 3067030884 created [08:55:42]Thread 3067174244 joined [08:55:42]Waiting for new connection... [08:55:42] Sock 9.Parse request [08:55:42]Sock 9.Check first char [08:55:42]Sock 9.First char is OK [08:55:42]request: POST /json_proto HTTP/1.0 [08:55:42]Method: POST [08:55:42]URL: /json_proto [08:55:42]Method is POST - this is cgi request [08:55:42]url: /json_proto [08:55:42]query_string will be loaded in cgi processing [08:55:42]execute_cgi json_proto POST (null) [08:55:42]execute_cgi path=json_proto method=POST [08:55:42]POST find Content-Length [08:55:42]Host: 172.17.62.5:8080 [08:55:42]Content-Length: 809 [08:55:42]Content-Type: application/json [08:55:42] [08:55:42]POST finish read [08:55:42]Found Content-Length = 809 [08:55:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 7.650, "sum" : 500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:42]execute_script... [08:55: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)191571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 7.650, "sum" : 500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:42]POST & json_proto [08:55:42]process_json_proto [08:55:42]json parsed OK: [08:55:42]protocol is kg_v1.0 [08:55:42]action value=close_receipt [08:55:42]process_action close_receipt [08:55:42]cmd_close_receipt [08:55:42]MH_GetDate [08:55:42]Write to MH i2c: F0 00 00 82 0A 7B [08:55:42]Write i2c OK [08:55:42]MH_I2C_Read... [08:55:42]Read from MH i2c: F0 [08:55:42]MH_I2C_Read... [08:55:42]Read from MH i2c: F0 09 00 [08:55:42]MH_I2C_Read... [08:55:42]Read from MH i2c: F0 09 00 82 0A 00 10 26 26 66 F4 E9 65 64 EC [08:55:42]GetLastDocTimeStamp 1713776097 [08:55:42]current date 1713776144 [08:55:42]FM_GetShiftState [08:55:42]SAM_PROTO_GetShiftState [08:55:42]wFMCommunicate request_size=4 [08:55:42]MH_SAM_APDU [08:55:42]CAPDU: 80 13 01 00 [08:55:42]Write to MH i2c: E2 08 00 83 0A 80 13 01 00 00 00 00 00 0A [08:55:42]Write i2c OK [08:55:42]MH_I2C_Read... [08:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:42]Read from MH i2c: E2 [08:55:42]MH_I2C_Read... [08:55:42]Read from MH i2c: E2 0E 00 [08:55:42]MH_I2C_Read... [08:55:42]Read from MH i2c: E2 0E 00 83 0A 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 31 [08:55:42]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:55:42]wFMCommunicate OK [08:55:42]SAM_PROTO_GetShiftState done [08:55:42]FM_GetShiftState done [08:55:42]opened in 1713745124 [08:55:42]opened+sec_in_day 1713831524 [08:55:42]quantity*price = 50031 [08:55:42]sum+1 = 50032 [08:55:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.31 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.31 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 35 22.04.2024 08:55 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 77016 ФПД: 116295653843239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T085544&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77016&fm=116295653843239&tin=02508201610067®Number=0000000000091573&sum=50031 [08:55:43]StoreToDocumentArchive [08:55:43]shift 373 fd 77016 [08:55:43]save to /storage/0373/doc_00077016 [08:55:43]save last doc name /storage/0373/doc_00077016 to /storage/kkm_last_doc_name [08:55:43]save OK [08:55:43]Clear old archive folders... [08:55:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:55:43]tlvbuf is 01700380 [08:55:43]SAM_PROTO_ClearQueue [08:55:43]wFMCommunicate request_size=4 [08:55:43]MH_SAM_APDU [08:55:43]CAPDU: 80 09 00 00 [08:55:43]Write to MH i2c: E2 08 00 90 0A 80 09 00 00 00 00 00 00 0C [08:55:43]Write i2c OK [08:55:43]MH_I2C_Read... [08:55:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:43]Read from MH i2c: E2 [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: E2 03 00 [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: E2 03 00 90 0A 00 90 00 0E [08:55:43]RAPDU: 90 00 [08:55:43]wFMCommunicate OK [08:55:43]SAM_PROTO_ClearQueue done [08:55:43]KKMCreateOFDPacket [08:55:43]OFDProtocolAddRootSTLVToBuf [08:55:43]FM_MakeSignedData [08:55:43]FM_MakeSignedData [08:55:43]SAM_PROTO_SignData [08:55:43]wFMCommunicate request_size=4 [08:55:43]MH_SAM_APDU [08:55:43]CAPDU: 80 0D 01 02 [08:55:43]Write to MH i2c: E2 08 00 91 0A 80 0D 01 02 00 00 00 00 14 [08:55:43]Write i2c OK [08:55:43]MH_I2C_Read... [08:55:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:43]Read from MH i2c: E2 [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: E2 03 00 [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: E2 03 00 91 0A 00 90 00 0F [08:55:43]RAPDU: 90 00 [08:55:43]wFMCommunicate OK [08:55:43]wFMCommunicate request_size=255 [08:55:43]MH_SAM_APDU [08:55:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 10 26 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D8 2C 01 00 35 04 06 00 [08:55:43]Write to MH i2c: E2 02 01 92 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 10 26 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D8 2C 01 00 35 04 06 00 00 00 E6 [08:55:43]Write i2c OK [08:55:43]MH_I2C_Read... [08:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:43]Read from MH i2c: E2 [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: E2 03 00 [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: E2 03 00 92 0A 00 90 00 10 [08:55:43]RAPDU: 90 00 [08:55:43]wFMCommunicate OK [08:55:43]wFMCommunicate request_size=11 [08:55:43]MH_SAM_APDU [08:55:43]CAPDU: 80 0D 02 02 06 69 C5 31 22 E1 27 [08:55:43]Write to MH i2c: E2 0E 00 93 0A 80 0D 02 02 06 00 69 C5 31 22 E1 27 00 00 AC [08:55:43]Write i2c OK [08:55:43]MH_I2C_Read... [08:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:43]Read from MH i2c: E2 [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: E2 03 00 [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: E2 03 00 93 0A 00 90 00 11 [08:55:43]RAPDU: 90 00 [08:55:43]wFMCommunicate OK [08:55:43]wFMCommunicate request_size=4 [08:55:43]MH_SAM_APDU [08:55:43]CAPDU: 80 0D 03 02 [08:55:43]Write to MH i2c: E2 08 00 94 0A 80 0D 03 02 00 00 00 00 19 [08:55:43]Write i2c OK [08:55:43]MH_I2C_Read... [08:55:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:43]Read from MH i2c: E2 [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: E2 0B 00 [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: E2 0B 00 94 0A 00 80 09 15 F9 DF F5 6B 28 90 00 18 [08:55:43]RAPDU: 80 09 15 F9 DF F5 6B 28 90 00 [08:55:43]wFMCommunicate OK [08:55:43]SAM_PROTO_SignData done [08:55:43]FM_MakeSignedData done [08:55:43]CreateOFDProtocolMessage [08:55:43]wFMCommunicate request_size=4 [08:55:43]MH_SAM_APDU [08:55:43]CAPDU: 80 11 00 00 [08:55:43]Write to MH i2c: E2 08 00 95 0A 80 11 00 00 00 00 00 00 19 [08:55:43]Write i2c OK [08:55:43]MH_I2C_Read... [08:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:43]Read from MH i2c: E2 [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: E2 17 00 [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: E2 17 00 95 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6C [08:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:55:43]wFMCommunicate OK [08:55:43]CreateOFDProtocolMessage done [08:55:43]OFDSenderStorePacket 77016 [08:55:43]StoreOFDPacket docnum=77016 [08:55:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 60 C2 08 01 32 DF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 10 26 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D8 2C 01 00 35 04 06 00 69 C5 31 22 E1 27 80 09 15 F9 DF F5 6B 28 [08:55:43]CheckFolder [08:55:43]dirname=/storage/ofd_packets [08:55:43]CheckFolder done [08:55:43]ProducePacketName [08:55:43]name=ofd_packets/00077016 [08:55:43]NVStorageSaveData ofd_packets/00077016 [08:55:43]File name is /storage/ofd_packets/00077016 [08:55:43]Write 302 bytes [08:55:43]NVStorageSaveData done [08:55:43]OFDSenderStorePacket done [08:55:43]KKMCreateOFDPacket done [08:55:43]NVStorageSaveData kkm_last_timestamp [08:55:43]File name is /storage/kkm_last_timestamp [08:55:43]Write 4 bytes [08:55:43]NVStorageSaveData done [08:55:43]ExternCall_PrintAddStr [08:55:43]wPrintStart [08:55:43]Write to MH i2c: 01 00 00 96 0A A0 [08:55:43]Write i2c OK [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: 01 [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: 01 07 00 [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: 01 07 00 96 0A 00 00 00 00 00 FF 0F B5 [08:55:43]RasterBufferAndPrint [08:55:43]line Счет N : (1)191571 [08:55:43]line ИНН: 02508201610067 [08:55:43]line Контрольно-Кассовый Чек [08:55:43]line ПРОДАЖА [08:55:43]line ТРК (МРК, ГНК) : 31 [08:55:43]line Товар: 2710124130 [08:55:43]line SUPER 92-К-5 [08:55:43]line 7.650 * 65.40 [08:55:43]line = 500.31 [08:55:43]line НДС 12% НСП 1% [08:55:43]line > о реализуемом товаре [08:55:43]line ИТОГО: 500.31 [08:55:43]line НСП 1% : 4.43 [08:55:43]line НДС 12% : 53.13 [08:55:43]line Наличными: 0.00 [08:55:43]line Безнал.: 500.31 [08:55:43]line Место: АЗС № 106 "Партнер Нефть" [08:55:43]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [08:55:43]line СНО: Общий режим [08:55:43]line Чек 35 22.04.2024 08:55 [08:55:43]line Смена: 373 ФФД: 1.0 [08:55:43]line ЗНМ: 0300000141 [08:55:43]line РНМ: 0000000000091573 [08:55:43]line Версия ККМ: 001 [08:55:43]line Платежная система: Бакай Банк [08:55:43]line ФМ: 0000000000874652 [08:55:43]line ФД: 77016 [08:55:43]line ФПД: 116295653843239 [08:55:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T085544&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77016&fm=116295653843239&tin=02508201610067®Number=0000000000091573&sum=50031 [08:55:44]written 0, free lines is 4095 [08:55:44]OFD Sender: Processing packet 77016 [packets to send 129, broken 128] [08:55:44]ProducePacketName [08:55:44]name=ofd_packets/00077016 [08:55:44]OFD Sender: To server: pG, [08:55:44]CommunicateWithHost lk.salyk.kg:30040 [08:55:44]ConnectInit lk.salyk.kg [08:55:44]Connected sock=11 [08:55:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 60 C2 08 01 32 DF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 1D 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 10 26 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D8 2C 01 00 35 04 06 00 69 C5 31 22 E1 27 80 09 15 F9 DF F5 6B 28 [08:55:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 BA 7A 47 00 4F 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D8 2C 01 00 F4 03 04 00 93 CD 25 66 B6 04 01 00 00 E7 46 E8 6E 5E 17 01 92 [08:55:44]CommunicateWithHost err = 0 [08:55:44]CheckOFDResponse [08:55:44]1017 (14) - 77093643461234 [08:55:44]1041 (16) - 0000000000874652 [08:55:44]1040 (4) - 77016 [08:55:44]1012 (4) - 22.04.2024 02:38 [08:55:44]1206 (1) - 0 [08:55:44]OFD Sender: Remove packet 77016 [08:55:44]ProducePacketName [08:55:44]name=ofd_packets/00077016 [08:55:44]NVStorageDeleteData [08:55:44]Write to MH i2c: 01 00 00 BF 0A C9 [08:55:44]Write i2c OK [08:55:44]MH_I2C_Read... [08:55:44]Read from MH i2c: 01 [08:55:44]MH_I2C_Read... [08:55:44]Read from MH i2c: 01 07 00 [08:55:44]MH_I2C_Read... [08:55:44]Read from MH i2c: 01 07 00 BF 0A 00 00 00 00 00 FF 0C DB [08:55:44]RasterBufferAndPrint [08:55:44]line [08:55:44]line [08:55:44]line [08:55:44]line [08:55:44]line [08:55:44]written 0, free lines is 3333 [08:55:44]MH_Cut [08:55:44]Write to MH i2c: D1 01 00 C6 0A 01 A2 [08:55:44]Write i2c OK [08:55:44]MH_I2C_Read... [08:55:44]Read from MH i2c: D1 [08:55:44]MH_I2C_Read... [08:55:44]Read from MH i2c: D1 01 00 [08:55:44]MH_I2C_Read... [08:55:44]Read from MH i2c: D1 01 00 C6 0A 00 A1 [08:55:44]Write to MH i2c: 01 00 00 C7 0A D1 [08:55:44]Write i2c OK [08:55:44]MH_I2C_Read... [08:55:45]OFD Sender: No OFD packet to send [08:55:45]*** Cut start [08:55:45]*** Partial cut [08:55:45]*** CUTSNS_PIN = 1 [08:55:45]*** CUTSNS_PIN = 0 [08:55:45]*** Brake cut motor [08:55:45]Read from MH i2c: 01 [08:55:45]MH_I2C_Read... [08:55:45]*** Stop cut motor [08:55:45]*** Cut end [08:55:45]Read from MH i2c: 01 07 00 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: 01 07 00 C7 0A 00 00 00 00 00 FF 0F E6 [08:55:45]process_action close_receipt done [08:55:45]requested_data is exist [08:55:45]produce_requested_data [08:55:45]requested_item fm.sn is exist - process it [08:55:45]wFMCommunicate request_size=4 [08:55:45]MH_SAM_APDU [08:55:45]CAPDU: 80 11 00 00 [08:55:45]Write to MH i2c: E2 08 00 C8 0A 80 11 00 00 00 00 00 00 4C [08:55:46]Write i2c OK [08:55:46]MH_I2C_Read... [08:55:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:46]Read from MH i2c: E2 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: E2 17 00 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: E2 17 00 C8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9F [08:55:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:55:46]wFMCommunicate OK [08:55:46]requested_item fd.num is exist - process it [08:55:46]SAM_PROTO_GetFieldsCounters [08:55:46]wFMCommunicate request_size=4 [08:55:46]MH_SAM_APDU [08:55:46]CAPDU: 80 13 00 00 [08:55:46]Write to MH i2c: E2 08 00 C9 0A 80 13 00 00 00 00 00 00 4F [08:55:46]Write i2c OK [08:55:46]MH_I2C_Read... [08:55:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:46]Read from MH i2c: E2 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: E2 62 00 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: E2 62 00 C9 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D8 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [08:55:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D8 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:46]wFMCommunicate OK [08:55:46]SAM_PROTO_GetFieldsCounters done [08:55:46]requested_item shift.num is exist - process it [08:55:46]requested_item shift.opened is exist - process it [08:55:46]req_shift_opened [08:55:46]FM_GetShiftState [08:55:46]SAM_PROTO_GetShiftState [08:55:46]wFMCommunicate request_size=4 [08:55:46]MH_SAM_APDU [08:55:46]CAPDU: 80 13 01 00 [08:55:46]Write to MH i2c: E2 08 00 CA 0A 80 13 01 00 00 00 00 00 51 [08:55:46]Write i2c OK [08:55:46]MH_I2C_Read... [08:55:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:46]Read from MH i2c: E2 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: E2 0E 00 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: E2 0E 00 CA 0A 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 78 [08:55:46]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:55:46]wFMCommunicate OK [08:55:46]SAM_PROTO_GetShiftState done [08:55:46]FM_GetShiftState done [08:55:46]req_shift_opened done [08:55:46]requested_item shift.open_date is exist - process it [08:55:46]req_shift_open_date [08:55:46]req_shift_open_date done [08:55:46]produce_requested_data done [08:55:46]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77016,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [08:55:46]process_action_free close_receipt [08:55:46]json_value_free [08:55:46]json_value_free done [08:55:46]process_json_proto returns [08:55:46]Send response to host [08:55:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77016,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [08:55:46]free response buf [08:55:46]execute_script done [08:55:46]execute_script returns [08:55:46]free content buf [08:55:46]Sock 9.Close socket [08:55:46]Sock 9.Thread stoped [08:55:50]OFD Sender: No OFD packet to send [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:10]accept exits with 7 [08:59:10]New connection [08:59:10]New thread 3067174244 created [08:59:10]Thread 3067030884 joined [08:59:10]Waiting for new connection... [08:59:10] Sock 7.Parse request [08:59:10]Sock 7.Check first char [08:59:10]Sock 7.First char is OK [08:59:10]request: POST /json_proto HTTP/1.0 [08:59:10]Method: POST [08:59:10]URL: /json_proto [08:59:10]Method is POST - this is cgi request [08:59:10]url: /json_proto [08:59:10]query_string will be loaded in cgi processing [08:59:10]execute_cgi json_proto POST (null) [08:59:10]execute_cgi path=json_proto method=POST [08:59:10]POST find Content-Length [08:59:10]Host: 172.17.62.5:8080 [08:59:10]Content-Length: 1171 [08:59:10]Content-Type: application/json [08:59:10] [08:59:10]POST finish read [08:59:10]Found Content-Length = 1171 [08:59:10]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191573\u000A22.04.2024 08:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30103446\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:10]execute_script... [08:59:10]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191573\u000A22.04.2024 08:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30103446\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:10]POST & json_proto [08:59:10]process_json_proto [08:59:10]json parsed OK: [08:59:10]protocol is kg_v1.0 [08:59:10]action value=print_text [08:59:10]process_action print_text [08:59:10]cmd_print_text [08:59:10]ExternCall_PrintAddStr [08:59:10]wPrintStart [08:59:10]Write to MH i2c: 01 00 00 CB 0A D5 [08:59:10]Write i2c OK [08:59:10]MH_I2C_Read... [08:59:10]Read from MH i2c: 01 [08:59:10]MH_I2C_Read... [08:59:10]Read from MH i2c: 01 07 00 [08:59:10]MH_I2C_Read... [08:59:10]Read from MH i2c: 01 07 00 CB 0A 00 00 00 00 00 FF 0F EA [08:59:10]RasterBufferAndPrint [08:59:10]line *****ТОВАРНЫЙ ЧЕК***** [08:59:10]line АЗС 106 [08:59:10]line Партнер нефть [08:59:10]line 02508201610067 [08:59:10]line Кассир : Токторбаева Н. [08:59:10]line Счет N : (1)191573 [08:59:10]line 22.04.2024 08:40 [08:59:10]line ПРОДАЖА [08:59:10]line ТРК (МРК, ГНК): 23 [08:59:10]line Вид ГСМ : 2710194210 [08:59:10]line ДТ-К-5 [08:59:10]line 10.000 x 72.90 [08:59:10]line ИТОГ: 729.00 [08:59:10]line Тип оплаты: Талоны: ТК ГПНА Online [08:59:10]line 30103446 [08:59:10]line ______________________ [08:59:10]line (подпись) [08:59:10]written 0, free lines is 4095 [08:59:11]Write to MH i2c: 01 00 00 E0 0A EA [08:59:11]Write i2c OK [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: 01 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: 01 07 00 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: 01 07 00 E0 0A 00 00 00 00 00 F3 0D F1 [08:59:11]RasterBufferAndPrint [08:59:11]line [08:59:11]line [08:59:11]line [08:59:11]line [08:59:11]line [08:59:11]written 0, free lines is 3572 [08:59:11]MH_Cut [08:59:11]Write to MH i2c: D1 01 00 E7 0A 01 C3 [08:59:11]Write i2c OK [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: D1 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: D1 01 00 [08:59:11]MH_I2C_Read... [08:59:11]Read from MH i2c: D1 01 00 E7 0A 00 C2 [08:59:11]Write to MH i2c: 01 00 00 E8 0A F2 [08:59:11]Write i2c OK [08:59:11]MH_I2C_Read... [08:59:11]*** Cut start [08:59:11]*** Partial cut [08:59:11]*** CUTSNS_PIN = 1 [08:59:11]*** CUTSNS_PIN = 0 [08:59:11]*** Brake cut motor [08:59:12]Read from MH i2c: 01 [08:59:12]MH_I2C_Read... [08:59:12]*** Stop cut motor [08:59:12]*** Cut end [08:59:12]Read from MH i2c: 01 07 00 [08:59:12]MH_I2C_Read... [08:59:12]Read from MH i2c: 01 07 00 E8 0A 00 00 00 00 00 FF 0F 07 [08:59:12]process_action print_text done [08:59:12]requested_data is exist [08:59:12]produce_requested_data [08:59:12]requested_item fm.sn is exist - process it [08:59:12]wFMCommunicate request_size=4 [08:59:12]MH_SAM_APDU [08:59:12]CAPDU: 80 11 00 00 [08:59:12]Write to MH i2c: E2 08 00 E9 0A 80 11 00 00 00 00 00 00 6D [08:59:12]Write i2c OK [08:59:12]MH_I2C_Read... [08:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:12]Read from MH i2c: E2 [08:59:12]MH_I2C_Read... [08:59:12]Read from MH i2c: E2 17 00 [08:59:12]MH_I2C_Read... [08:59:12]Read from MH i2c: E2 17 00 E9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C0 [08:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:59:12]wFMCommunicate OK [08:59:12]requested_item fd.num is exist - process it [08:59:12]SAM_PROTO_GetFieldsCounters [08:59:12]wFMCommunicate request_size=4 [08:59:12]MH_SAM_APDU [08:59:12]CAPDU: 80 13 00 00 [08:59:12]Write to MH i2c: E2 08 00 EA 0A 80 13 00 00 00 00 00 00 70 [08:59:12]Write i2c OK [08:59:12]MH_I2C_Read... [08:59:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:12]Read from MH i2c: E2 [08:59:12]MH_I2C_Read... [08:59:12]Read from MH i2c: E2 62 00 [08:59:12]MH_I2C_Read... [08:59:12]Read from MH i2c: E2 62 00 EA 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D8 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [08:59:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D8 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:59:12]wFMCommunicate OK [08:59:12]SAM_PROTO_GetFieldsCounters done [08:59:12]requested_item shift.num is exist - process it [08:59:12]requested_item shift.opened is exist - process it [08:59:12]req_shift_opened [08:59:12]FM_GetShiftState [08:59:12]SAM_PROTO_GetShiftState [08:59:12]wFMCommunicate request_size=4 [08:59:12]MH_SAM_APDU [08:59:12]CAPDU: 80 13 01 00 [08:59:12]Write to MH i2c: E2 08 00 EB 0A 80 13 01 00 00 00 00 00 72 [08:59:12]Write i2c OK [08:59:12]MH_I2C_Read... [08:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:12]Read from MH i2c: E2 [08:59:12]MH_I2C_Read... [08:59:12]Read from MH i2c: E2 0E 00 [08:59:12]MH_I2C_Read... [08:59:12]Read from MH i2c: E2 0E 00 EB 0A 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 99 [08:59:12]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:59:12]wFMCommunicate OK [08:59:12]SAM_PROTO_GetShiftState done [08:59:12]FM_GetShiftState done [08:59:12]req_shift_opened done [08:59:12]requested_item shift.open_date is exist - process it [08:59:12]req_shift_open_date [08:59:12]req_shift_open_date done [08:59:12]produce_requested_data done [08:59:12]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77016,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [08:59:12]process_action_free print_text [08:59:12]json_value_free [08:59:12]json_value_free done [08:59:12]process_json_proto returns [08:59:12]Send response to host [08:59:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77016,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [08:59:12]free response buf [08:59:12]execute_script done [08:59:12]execute_script returns [08:59:12]free content buf [08:59:12]Sock 7.Close socket [08:59:12]Sock 7.Thread stoped [08:59:13]accept exits with 9 [08:59:13]New connection [08:59:13]New thread 3067030884 created [08:59:13]Thread 3067174244 joined [08:59:13]Waiting for new connection... [08:59:13] Sock 9.Parse request [08:59:13]Sock 9.Check first char [08:59:13]Sock 9.First char is OK [08:59:13]request: POST /json_proto HTTP/1.0 [08:59:13]Method: POST [08:59:13]URL: /json_proto [08:59:13]Method is POST - this is cgi request [08:59:13]url: /json_proto [08:59:13]query_string will be loaded in cgi processing [08:59:13]execute_cgi json_proto POST (null) [08:59:13]execute_cgi path=json_proto method=POST [08:59:13]POST find Content-Length [08:59:13]Host: 172.17.62.5:8080 [08:59:13]Content-Length: 1175 [08:59:13]Content-Type: application/json [08:59:13] [08:59:13]POST finish read [08:59:13]Found Content-Length = 1175 [08:59: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191572\u000A22.04.2024 08:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1610.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:13]execute_script... [08:59: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191572\u000A22.04.2024 08:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1610.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:13]POST & json_proto [08:59:13]process_json_proto [08:59:13]json parsed OK: [08:59:13]protocol is kg_v1.0 [08:59:13]action value=print_text [08:59:13]process_action print_text [08:59:13]cmd_print_text [08:59:13]ExternCall_PrintAddStr [08:59:13]wPrintStart [08:59:13]Write to MH i2c: 01 00 00 EC 0A F6 [08:59:13]Write i2c OK [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: 01 [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: 01 07 00 [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: 01 07 00 EC 0A 00 00 00 00 00 FF 0F 0B [08:59:13]RasterBufferAndPrint [08:59:13]line *****ТОВАРНЫЙ ЧЕК***** [08:59:13]line АЗС 106 [08:59:13]line Партнер нефть [08:59:13]line 02508201610067 [08:59:13]line Кассир : Токторбаева Н. [08:59:13]line Счет N : (1)191572 [08:59:13]line 22.04.2024 08:40 [08:59:13]line ПРОДАЖА [08:59:13]line ТРК (МРК, ГНК): 12 [08:59:13]line Вид ГСМ : 2710124130 [08:59:13]line Аи-92-К-5 [08:59:13]line 25.000 x 64.40 [08:59:13]line ИТОГ: 1610.00 [08:59:13]line Тип оплаты: Талоны: ТК ГПНА Online [08:59:13]line 30102984 [08:59:13]line ______________________ [08:59:13]line (подпись) [08:59:13]written 0, free lines is 4095 [08:59:14]Write to MH i2c: 01 00 00 01 0B 0C [08:59:14]Write i2c OK [08:59:14]MH_I2C_Read... [08:59:14]Read from MH i2c: 01 [08:59:14]MH_I2C_Read... [08:59:14]Read from MH i2c: 01 07 00 [08:59:14]MH_I2C_Read... [08:59:14]Read from MH i2c: 01 07 00 01 0B 00 00 00 00 00 F5 0D 15 [08:59:14]RasterBufferAndPrint [08:59:14]line [08:59:14]line [08:59:14]line [08:59:14]line [08:59:14]line [08:59:14]written 0, free lines is 3574 [08:59:14]MH_Cut [08:59:14]Write to MH i2c: D1 01 00 08 0B 01 E5 [08:59:14]Write i2c OK [08:59:14]MH_I2C_Read... [08:59:14]Read from MH i2c: D1 [08:59:14]MH_I2C_Read... [08:59:14]Read from MH i2c: D1 01 00 [08:59:14]MH_I2C_Read... [08:59:14]Read from MH i2c: D1 01 00 08 0B 00 E4 [08:59:14]Write to MH i2c: 01 00 00 09 0B 14 [08:59:14]Write i2c OK [08:59:14]MH_I2C_Read... [08:59:14]*** Cut start [08:59:14]*** Partial cut [08:59:14]*** CUTSNS_PIN = 1 [08:59:14]*** CUTSNS_PIN = 0 [08:59:14]*** Brake cut motor [08:59:15]Read from MH i2c: 01 [08:59:15]MH_I2C_Read... [08:59:15]*** Stop cut motor [08:59:15]*** Cut end [08:59:15]Read from MH i2c: 01 07 00 [08:59:15]MH_I2C_Read... [08:59:15]Read from MH i2c: 01 07 00 09 0B 00 00 00 00 00 FF 0F 29 [08:59:15]process_action print_text done [08:59:15]requested_data is exist [08:59:15]produce_requested_data [08:59:15]requested_item fm.sn is exist - process it [08:59:15]wFMCommunicate request_size=4 [08:59:15]MH_SAM_APDU [08:59:15]CAPDU: 80 11 00 00 [08:59:15]Write to MH i2c: E2 08 00 0A 0B 80 11 00 00 00 00 00 00 8F [08:59:15]Write i2c OK [08:59:15]MH_I2C_Read... [08:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:15]Read from MH i2c: E2 [08:59:15]MH_I2C_Read... [08:59:15]Read from MH i2c: E2 17 00 [08:59:15]MH_I2C_Read... [08:59:15]Read from MH i2c: E2 17 00 0A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E2 [08:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [08:59:15]wFMCommunicate OK [08:59:15]requested_item fd.num is exist - process it [08:59:15]SAM_PROTO_GetFieldsCounters [08:59:15]wFMCommunicate request_size=4 [08:59:15]MH_SAM_APDU [08:59:15]CAPDU: 80 13 00 00 [08:59:15]Write to MH i2c: E2 08 00 0B 0B 80 13 00 00 00 00 00 00 92 [08:59:15]Write i2c OK [08:59:15]MH_I2C_Read... [08:59:15]OFD Sender: No OFD packet to send [08:59:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:15]Read from MH i2c: E2 [08:59:15]MH_I2C_Read... [08:59:15]Read from MH i2c: E2 62 00 [08:59:15]MH_I2C_Read... [08:59:15]Read from MH i2c: E2 62 00 0B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D8 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [08:59:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D8 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:59:15]wFMCommunicate OK [08:59:15]SAM_PROTO_GetFieldsCounters done [08:59:15]requested_item shift.num is exist - process it [08:59:15]requested_item shift.opened is exist - process it [08:59:15]req_shift_opened [08:59:15]FM_GetShiftState [08:59:15]SAM_PROTO_GetShiftState [08:59:15]wFMCommunicate request_size=4 [08:59:15]MH_SAM_APDU [08:59:15]CAPDU: 80 13 01 00 [08:59:15]Write to MH i2c: E2 08 00 0C 0B 80 13 01 00 00 00 00 00 94 [08:59:15]Write i2c OK [08:59:15]MH_I2C_Read... [08:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:15]Read from MH i2c: E2 [08:59:15]MH_I2C_Read... [08:59:15]Read from MH i2c: E2 0E 00 [08:59:15]MH_I2C_Read... [08:59:15]Read from MH i2c: E2 0E 00 0C 0B 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 BB [08:59:15]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [08:59:15]wFMCommunicate OK [08:59:15]SAM_PROTO_GetShiftState done [08:59:15]FM_GetShiftState done [08:59:15]req_shift_opened done [08:59:15]requested_item shift.open_date is exist - process it [08:59:15]req_shift_open_date [08:59:15]req_shift_open_date done [08:59:15]produce_requested_data done [08:59:15]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77016,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [08:59:15]process_action_free print_text [08:59:15]json_value_free [08:59:15]json_value_free done [08:59:15]process_json_proto returns [08:59:15]Send response to host [08:59:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77016,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [08:59:15]free response buf [08:59:15]execute_script done [08:59:15]execute_script returns [08:59:15]free content buf [08:59:15]Sock 9.Close socket [08:59:15]Sock 9.Thread stoped [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:23]accept exits with 7 [09:00:23]New connection [09:00:23]New thread 3067174244 created [09:00:23]Thread 3067030884 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.62.5:8080 [09:00:23]Content-Length: 1175 [09:00:23]Content-Type: application/json [09:00:23] [09:00:23]POST finish read [09:00:23]Found Content-Length = 1175 [09:00:23]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191574\u000A22.04.2024 08:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "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" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191574\u000A22.04.2024 08:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "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=print_text [09:00:23]process_action print_text [09:00:23]cmd_print_text [09:00:23]ExternCall_PrintAddStr [09:00:23]wPrintStart [09:00:23]Write to MH i2c: 01 00 00 0D 0B 18 [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: 01 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: 01 07 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: 01 07 00 0D 0B 00 00 00 00 00 FF 0F 2D [09:00:23]RasterBufferAndPrint [09:00:23]line *****ТОВАРНЫЙ ЧЕК***** [09:00:23]line АЗС 106 [09:00:23]line Партнер нефть [09:00:23]line 02508201610067 [09:00:23]line Кассир : Токторбаева Н. [09:00:23]line Счет N : (1)191574 [09:00:23]line 22.04.2024 08:41 [09:00:23]line ПРОДАЖА [09:00:23]line ТРК (МРК, ГНК): 22 [09:00:23]line Вид ГСМ : 2710124130 [09:00:23]line Аи-92-К-5 [09:00:23]line 20.000 x 64.40 [09:00:23]line ИТОГ: 1288.00 [09:00:23]line Тип оплаты: Талоны: ТК ГПНА Online [09:00:23]line 30102984 [09:00:23]line ______________________ [09:00:23]line (подпись) [09:00:23]written 0, free lines is 4095 [09:00:23]Write to MH i2c: 01 00 00 22 0B 2D [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: 01 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: 01 07 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: 01 07 00 22 0B 00 00 00 00 00 F6 0D 37 [09:00:23]RasterBufferAndPrint [09:00:23]line [09:00:23]line [09:00:23]line [09:00:23]line [09:00:23]line [09:00:23]written 0, free lines is 3575 [09:00:23]MH_Cut [09:00:23]Write to MH i2c: D1 01 00 29 0B 01 06 [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: D1 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: D1 01 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: D1 01 00 29 0B 00 05 [09:00:23]Write to MH i2c: 01 00 00 2A 0B 35 [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:24]*** Cut start [09:00:24]*** Partial cut [09:00:24]*** CUTSNS_PIN = 1 [09:00:24]*** CUTSNS_PIN = 0 [09:00:24]*** Brake cut motor [09:00:24]Read from MH i2c: 01 [09:00:24]MH_I2C_Read... [09:00:24]*** Stop cut motor [09:00:24]*** Cut end [09:00:24]Read from MH i2c: 01 07 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: 01 07 00 2A 0B 00 00 00 00 00 FF 0F 4A [09:00:24]process_action print_text done [09:00:24]requested_data is exist [09:00:24]produce_requested_data [09:00:24]requested_item fm.sn is exist - process it [09:00:24]wFMCommunicate request_size=4 [09:00:24]MH_SAM_APDU [09:00:24]CAPDU: 80 11 00 00 [09:00:24]Write to MH i2c: E2 08 00 2B 0B 80 11 00 00 00 00 00 00 B0 [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:24]Read from MH i2c: E2 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 17 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 17 00 2B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 03 [09:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:00:24]wFMCommunicate OK [09:00:24]requested_item fd.num is exist - process it [09:00:24]SAM_PROTO_GetFieldsCounters [09:00:24]wFMCommunicate request_size=4 [09:00:24]MH_SAM_APDU [09:00:24]CAPDU: 80 13 00 00 [09:00:24]Write to MH i2c: E2 08 00 2C 0B 80 13 00 00 00 00 00 00 B3 [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:24]Read from MH i2c: E2 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 62 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 62 00 2C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D8 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [09:00:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D8 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:24]wFMCommunicate OK [09:00:24]SAM_PROTO_GetFieldsCounters done [09:00:24]requested_item shift.num is exist - process it [09:00:24]requested_item shift.opened is exist - process it [09:00:24]req_shift_opened [09:00:24]FM_GetShiftState [09:00:24]SAM_PROTO_GetShiftState [09:00:24]wFMCommunicate request_size=4 [09:00:24]MH_SAM_APDU [09:00:24]CAPDU: 80 13 01 00 [09:00:24]Write to MH i2c: E2 08 00 2D 0B 80 13 01 00 00 00 00 00 B5 [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:24]Read from MH i2c: E2 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 0E 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 0E 00 2D 0B 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 DC [09:00:24]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:00:24]wFMCommunicate OK [09:00:24]SAM_PROTO_GetShiftState done [09:00:24]FM_GetShiftState done [09:00:24]req_shift_opened done [09:00:24]requested_item shift.open_date is exist - process it [09:00:24]req_shift_open_date [09:00:24]req_shift_open_date done [09:00:24]produce_requested_data done [09:00:24]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77016,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:00:24]process_action_free print_text [09:00:24]json_value_free [09:00:24]json_value_free done [09:00:24]process_json_proto returns [09:00:24]Send response to host [09:00:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77016,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:00:24]free response buf [09:00:24]execute_script done [09:00:24]execute_script returns [09:00:24]free content buf [09:00:24]Sock 7.Close socket [09:00:24]Sock 7.Thread stoped [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:01:58]accept exits with 10 [09:01:58]New connection [09:01:58]New thread 3067030884 created [09:01:58]Thread 3067174244 joined [09:01:58]Waiting for new connection... [09:01:58] Sock 10.Parse request [09:01:58]Sock 10.Check first char [09:01:58]Sock 10.First char is OK [09:01:58]request: POST /json_proto HTTP/1.0 [09:01:58]Method: POST [09:01:58]URL: /json_proto [09:01:58]Method is POST - this is cgi request [09:01:58]url: /json_proto [09:01:58]query_string will be loaded in cgi processing [09:01:58]execute_cgi json_proto POST (null) [09:01:58]execute_cgi path=json_proto method=POST [09:01:58]POST find Content-Length [09:01:58]Host: 172.17.62.5:8080 [09:01:58]Content-Length: 816 [09:01:58]Content-Type: application/json [09:01:58] [09:01:58]POST finish read [09:01:58]Found Content-Length = 816 [09:01:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:58]execute_script... [09:01: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)191575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:58]POST & json_proto [09:01:58]process_json_proto [09:01:58]json parsed OK: [09:01:58]protocol is kg_v1.0 [09:01:58]action value=close_receipt [09:01:58]process_action close_receipt [09:01:58]cmd_close_receipt [09:01:58]MH_GetDate [09:01:58]Write to MH i2c: F0 00 00 2E 0B 28 [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: F0 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: F0 09 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: F0 09 00 2E 0B 00 89 27 26 66 F4 E9 65 64 13 [09:01:58]GetLastDocTimeStamp 1713776144 [09:01:58]current date 1713776521 [09:01:58]FM_GetShiftState [09:01:58]SAM_PROTO_GetShiftState [09:01:58]wFMCommunicate request_size=4 [09:01:58]MH_SAM_APDU [09:01:58]CAPDU: 80 13 01 00 [09:01:58]Write to MH i2c: E2 08 00 2F 0B 80 13 01 00 00 00 00 00 B7 [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:58]Read from MH i2c: E2 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 0E 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 0E 00 2F 0B 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 DE [09:01:58]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:01:58]wFMCommunicate OK [09:01:58]SAM_PROTO_GetShiftState done [09:01:58]FM_GetShiftState done [09:01:58]opened in 1713745124 [09:01:58]opened+sec_in_day 1713831524 [09:01:58]quantity*price = 100018 [09:01:58]sum+1 = 100020 [09:01:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 36 22.04.2024 09:02 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 77017 ФПД: 165735729893092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T090201&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77017&fm=165735729893092&tin=02508201610067®Number=0000000000091573&sum=100019 [09:02:00]StoreToDocumentArchive [09:02:00]shift 373 fd 77017 [09:02:00]save to /storage/0373/doc_00077017 [09:02:00]save last doc name /storage/0373/doc_00077017 to /storage/kkm_last_doc_name [09:02:00]save OK [09:02:00]Clear old archive folders... [09:02:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:02:00]tlvbuf is 01752040 [09:02:00]SAM_PROTO_ClearQueue [09:02:00]wFMCommunicate request_size=4 [09:02:00]MH_SAM_APDU [09:02:00]CAPDU: 80 09 00 00 [09:02:00]Write to MH i2c: E2 08 00 3C 0B 80 09 00 00 00 00 00 00 B9 [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:00]Read from MH i2c: E2 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 03 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 03 00 3C 0B 00 90 00 BB [09:02:00]RAPDU: 90 00 [09:02:00]wFMCommunicate OK [09:02:00]SAM_PROTO_ClearQueue done [09:02:00]KKMCreateOFDPacket [09:02:00]OFDProtocolAddRootSTLVToBuf [09:02:00]FM_MakeSignedData [09:02:00]FM_MakeSignedData [09:02:00]SAM_PROTO_SignData [09:02:00]wFMCommunicate request_size=4 [09:02:00]MH_SAM_APDU [09:02:00]CAPDU: 80 0D 01 02 [09:02:00]Write to MH i2c: E2 08 00 3D 0B 80 0D 01 02 00 00 00 00 C1 [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:00]Read from MH i2c: E2 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 03 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 03 00 3D 0B 00 90 00 BC [09:02:00]RAPDU: 90 00 [09:02:00]wFMCommunicate OK [09:02:00]wFMCommunicate request_size=255 [09:02:00]MH_SAM_APDU [09:02: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 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 89 27 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D9 2C 01 00 35 04 06 00 96 BC 5B 4E [09:02:00]Write to MH i2c: E2 02 01 3E 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 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 89 27 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D9 2C 01 00 35 04 06 00 96 BC 5B 4E 00 00 24 [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:00]Read from MH i2c: E2 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 03 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 03 00 3E 0B 00 90 00 BD [09:02:00]RAPDU: 90 00 [09:02:00]wFMCommunicate OK [09:02:00]wFMCommunicate request_size=7 [09:02:00]MH_SAM_APDU [09:02:00]CAPDU: 80 0D 02 02 02 8E E4 [09:02:00]Write to MH i2c: E2 0A 00 3F 0B 80 0D 02 02 02 00 8E E4 00 00 3A [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:00]Read from MH i2c: E2 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 03 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 03 00 3F 0B 00 90 00 BE [09:02:00]RAPDU: 90 00 [09:02:00]wFMCommunicate OK [09:02:00]wFMCommunicate request_size=4 [09:02:00]MH_SAM_APDU [09:02:00]CAPDU: 80 0D 03 02 [09:02:00]Write to MH i2c: E2 08 00 40 0B 80 0D 03 02 00 00 00 00 C6 [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:00]Read from MH i2c: E2 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 0B 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 0B 00 40 0B 00 23 9B CD 7E D1 8F AE AE 90 00 8C [09:02:00]RAPDU: 23 9B CD 7E D1 8F AE AE 90 00 [09:02:00]wFMCommunicate OK [09:02:00]SAM_PROTO_SignData done [09:02:00]FM_MakeSignedData done [09:02:00]CreateOFDProtocolMessage [09:02:00]wFMCommunicate request_size=4 [09:02:00]MH_SAM_APDU [09:02:00]CAPDU: 80 11 00 00 [09:02:00]Write to MH i2c: E2 08 00 41 0B 80 11 00 00 00 00 00 00 C6 [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:00]Read from MH i2c: E2 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 17 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 17 00 41 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 19 [09:02:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:02:00]wFMCommunicate OK [09:02:00]CreateOFDProtocolMessage done [09:02:00]OFDSenderStorePacket 77017 [09:02:00]StoreOFDPacket docnum=77017 [09:02:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 7B 93 04 01 29 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 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 89 27 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D9 2C 01 00 35 04 06 00 96 BC 5B 4E 8E E4 23 9B CD 7E D1 8F AE AE [09:02:00]CheckFolder [09:02:00]dirname=/storage/ofd_packets [09:02:00]CheckFolder done [09:02:00]ProducePacketName [09:02:00]name=ofd_packets/00077017 [09:02:00]NVStorageSaveData ofd_packets/00077017 [09:02:00]File name is /storage/ofd_packets/00077017 [09:02:00]Write 298 bytes [09:02:00]NVStorageSaveData done [09:02:00]OFDSenderStorePacket done [09:02:00]KKMCreateOFDPacket done [09:02:00]NVStorageSaveData kkm_last_timestamp [09:02:00]File name is /storage/kkm_last_timestamp [09:02:00]Write 4 bytes [09:02:00]NVStorageSaveData done [09:02:00]ExternCall_PrintAddStr [09:02:00]wPrintStart [09:02:00]Write to MH i2c: 01 00 00 42 0B 4D [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: 01 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: 01 07 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: 01 07 00 42 0B 00 00 00 00 00 FF 0F 62 [09:02:00]RasterBufferAndPrint [09:02:00]line Счет N : (1)191575 [09:02:00]line ИНН: 02508201610067 [09:02:00]line Контрольно-Кассовый Чек [09:02:00]line ПРОДАЖА [09:02:00]line ТРК (МРК, ГНК) : 13 [09:02:00]line Товар: 2710194210 [09:02:00]line ДТ-К-5 [09:02:00]line 13.720 * 72.90 [09:02:00]line = 1000.19 [09:02:00]line НДС 12% НСП 1% [09:02:00]line > о реализуемом товаре [09:02:00]line ИТОГО: 1000.19 [09:02:00]line НСП 1% : 8.85 [09:02:00]line НДС 12% : 106.21 [09:02:00]line Наличными: 0.00 [09:02:00]line Безнал.: 1000.19 [09:02:00]line Место: АЗС № 106 "Партнер Нефть" [09:02:00]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:02:00]line СНО: Общий режим [09:02:00]line Чек 36 22.04.2024 09:02 [09:02:00]line Смена: 373 ФФД: 1.0 [09:02:00]line ЗНМ: 0300000141 [09:02:00]line РНМ: 0000000000091573 [09:02:00]line Версия ККМ: 001 [09:02:00]line Платежная система: Бакай Банк [09:02:00]line ФМ: 0000000000874652 [09:02:00]line ФД: 77017 [09:02:00]line ФПД: 165735729893092 [09:02:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T090201&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77017&fm=165735729893092&tin=02508201610067®Number=0000000000091573&sum=100019 [09:02:00]OFD Sender: Processing packet 77017 [packets to send 129, broken 128] [09:02:00]ProducePacketName [09:02:00]name=ofd_packets/00077017 [09:02:00]OFD Sender: To server: pG, [09:02:00]CommunicateWithHost lk.salyk.kg:30040 [09:02:00]ConnectInit lk.salyk.kg [09:02:00]written 0, free lines is 4095 [09:02:01]Connected sock=9 [09:02:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 7B 93 04 01 29 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 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 89 27 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D9 2C 01 00 35 04 06 00 96 BC 5B 4E 8E E4 23 9B CD 7E D1 8F AE AE [09:02:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 63 74 47 00 67 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 D9 2C 01 00 F4 03 04 00 0C CF 25 66 B6 04 01 00 00 A6 8C F5 6B 99 12 2D ED [09:02:01]CommunicateWithHost err = 0 [09:02:01]CheckOFDResponse [09:02:01]1017 (14) - 77093643461234 [09:02:01]1041 (16) - 0000000000874652 [09:02:01]1040 (4) - 77017 [09:02:01]1012 (4) - 22.04.2024 02:44 [09:02:01]1206 (1) - 0 [09:02:01]OFD Sender: Remove packet 77017 [09:02:01]ProducePacketName [09:02:01]name=ofd_packets/00077017 [09:02:01]NVStorageDeleteData [09:02:01]Write to MH i2c: 01 00 00 6B 0B 76 [09:02:01]Write i2c OK [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: 01 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: 01 07 00 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: 01 07 00 6B 0B 00 00 00 00 00 03 0D 8D [09:02:01]RasterBufferAndPrint [09:02:01]line [09:02:01]line [09:02:01]line [09:02:01]line [09:02:01]line [09:02:01]written 0, free lines is 3337 [09:02:01]MH_Cut [09:02:01]Write to MH i2c: D1 01 00 72 0B 01 4F [09:02:01]Write i2c OK [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: D1 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: D1 01 00 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: D1 01 00 72 0B 00 4E [09:02:01]Write to MH i2c: 01 00 00 73 0B 7E [09:02:01]Write i2c OK [09:02:01]MH_I2C_Read... [09:02:01]OFD Sender: No OFD packet to send [09:02:02]*** Cut start [09:02:02]*** Partial cut [09:02:02]*** CUTSNS_PIN = 1 [09:02:02]*** CUTSNS_PIN = 0 [09:02:02]*** Brake cut motor [09:02:02]Read from MH i2c: 01 [09:02:02]MH_I2C_Read... [09:02:02]*** Stop cut motor [09:02:02]*** Cut end [09:02:02]Read from MH i2c: 01 07 00 [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: 01 07 00 73 0B 00 00 00 00 00 FF 0F 93 [09:02:02]process_action close_receipt done [09:02:02]requested_data is exist [09:02:02]produce_requested_data [09:02:02]requested_item fm.sn is exist - process it [09:02:02]wFMCommunicate request_size=4 [09:02:02]MH_SAM_APDU [09:02:02]CAPDU: 80 11 00 00 [09:02:02]Write to MH i2c: E2 08 00 74 0B 80 11 00 00 00 00 00 00 F9 [09:02:02]Write i2c OK [09:02:02]MH_I2C_Read... [09:02:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:02]Read from MH i2c: E2 [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: E2 17 00 [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: E2 17 00 74 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4C [09:02:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:02:02]wFMCommunicate OK [09:02:02]requested_item fd.num is exist - process it [09:02:02]SAM_PROTO_GetFieldsCounters [09:02:02]wFMCommunicate request_size=4 [09:02:02]MH_SAM_APDU [09:02:02]CAPDU: 80 13 00 00 [09:02:02]Write to MH i2c: E2 08 00 75 0B 80 13 00 00 00 00 00 00 FC [09:02:02]Write i2c OK [09:02:02]MH_I2C_Read... [09:02:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:02]Read from MH i2c: E2 [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: E2 62 00 [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: E2 62 00 75 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D9 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [09:02:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D9 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:02]wFMCommunicate OK [09:02:02]SAM_PROTO_GetFieldsCounters done [09:02:02]requested_item shift.num is exist - process it [09:02:02]requested_item shift.opened is exist - process it [09:02:02]req_shift_opened [09:02:02]FM_GetShiftState [09:02:02]SAM_PROTO_GetShiftState [09:02:02]wFMCommunicate request_size=4 [09:02:02]MH_SAM_APDU [09:02:02]CAPDU: 80 13 01 00 [09:02:02]Write to MH i2c: E2 08 00 76 0B 80 13 01 00 00 00 00 00 FE [09:02:02]Write i2c OK [09:02:02]MH_I2C_Read... [09:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:02]Read from MH i2c: E2 [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: E2 0E 00 [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: E2 0E 00 76 0B 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 25 [09:02:02]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:02:02]wFMCommunicate OK [09:02:02]SAM_PROTO_GetShiftState done [09:02:02]FM_GetShiftState done [09:02:02]req_shift_opened done [09:02:02]requested_item shift.open_date is exist - process it [09:02:02]req_shift_open_date [09:02:02]req_shift_open_date done [09:02:02]produce_requested_data done [09:02:02]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77017,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:02:02]process_action_free close_receipt [09:02:02]json_value_free [09:02:02]json_value_free done [09:02:02]process_json_proto returns [09:02:02]Send response to host [09:02:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77017,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:02:02]free response buf [09:02:02]execute_script done [09:02:02]execute_script returns [09:02:02]free content buf [09:02:02]Sock 10.Close socket [09:02:02]Sock 10.Thread stoped [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:53]accept exits with 7 [09:03:53]New connection [09:03:53]New thread 3067174244 created [09:03:53]Thread 3067030884 joined [09:03:53]Waiting for new connection... [09:03:53] Sock 7.Parse request [09:03:53]Sock 7.Check first char [09:03:53]Sock 7.First char is OK [09:03:53]request: POST /json_proto HTTP/1.0 [09:03:53]Method: POST [09:03:53]URL: /json_proto [09:03:53]Method is POST - this is cgi request [09:03:53]url: /json_proto [09:03:53]query_string will be loaded in cgi processing [09:03:53]execute_cgi json_proto POST (null) [09:03:53]execute_cgi path=json_proto method=POST [09:03:53]POST find Content-Length [09:03:53]Host: 172.17.62.5:8080 [09:03:53]Content-Length: 1212 [09:03:53]Content-Type: application/json [09:03:53] [09:03:53]POST finish read [09:03:53]Found Content-Length = 1212 [09:03:53]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191576\u000A22.04.2024 08:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 644.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74642\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:53]execute_script... [09:03:53]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191576\u000A22.04.2024 08:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 644.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74642\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:53]POST & json_proto [09:03:53]process_json_proto [09:03:53]json parsed OK: [09:03:53]protocol is kg_v1.0 [09:03:53]action value=print_text [09:03:53]process_action print_text [09:03:53]cmd_print_text [09:03:53]ExternCall_PrintAddStr [09:03:53]wPrintStart [09:03:53]Write to MH i2c: 01 00 00 77 0B 82 [09:03:53]Write i2c OK [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: 01 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: 01 07 00 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: 01 07 00 77 0B 00 00 00 00 00 FF 0F 97 [09:03:53]RasterBufferAndPrint [09:03:53]line *****ТОВАРНЫЙ ЧЕК***** [09:03:53]line АЗС 106 [09:03:53]line Партнер нефть [09:03:53]line 02508201610067 [09:03:53]line Кассир : Токторбаева Н. [09:03:53]line Счет N : (1)191576 [09:03:53]line 22.04.2024 08:45 [09:03:53]line ПРОДАЖА [09:03:53]line ТРК (МРК, ГНК): 12 [09:03:53]line Вид ГСМ : 2710124130 [09:03:53]line Аи-92-К-5 [09:03:53]line 10.000 x 64.40 [09:03:53]line ИТОГ: 644.00 [09:03:53]line Тип оплаты: Талоны: Топливная Карта [09:03:53]line 74642 [09:03:53]line ______________________ [09:03:53]line (подпись) [09:03:53]written 0, free lines is 4095 [09:03:53]Write to MH i2c: 01 00 00 8C 0B 97 [09:03:53]Write i2c OK [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: 01 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: 01 07 00 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: 01 07 00 8C 0B 00 00 00 00 00 F4 0D 9F [09:03:53]RasterBufferAndPrint [09:03:53]line [09:03:53]line [09:03:53]line [09:03:53]line [09:03:53]line [09:03:53]written 0, free lines is 3574 [09:03:53]MH_Cut [09:03:53]Write to MH i2c: D1 01 00 93 0B 01 70 [09:03:53]Write i2c OK [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: D1 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: D1 01 00 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: D1 01 00 93 0B 00 6F [09:03:53]Write to MH i2c: 01 00 00 94 0B 9F [09:03:53]Write i2c OK [09:03:53]MH_I2C_Read... [09:03:54]*** Cut start [09:03:54]*** Partial cut [09:03:54]*** CUTSNS_PIN = 1 [09:03:54]*** CUTSNS_PIN = 0 [09:03:54]*** Brake cut motor [09:03:54]Read from MH i2c: 01 [09:03:54]MH_I2C_Read... [09:03:54]*** Stop cut motor [09:03:54]*** Cut end [09:03:54]Read from MH i2c: 01 07 00 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: 01 07 00 94 0B 00 00 00 00 00 FF 0F B4 [09:03:54]process_action print_text done [09:03:54]requested_data is exist [09:03:54]produce_requested_data [09:03:54]requested_item fm.sn is exist - process it [09:03:54]wFMCommunicate request_size=4 [09:03:54]MH_SAM_APDU [09:03:54]CAPDU: 80 11 00 00 [09:03:54]Write to MH i2c: E2 08 00 95 0B 80 11 00 00 00 00 00 00 1A [09:03:54]Write i2c OK [09:03:54]MH_I2C_Read... [09:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:54]Read from MH i2c: E2 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: E2 17 00 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: E2 17 00 95 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6D [09:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:03:54]wFMCommunicate OK [09:03:54]requested_item fd.num is exist - process it [09:03:54]SAM_PROTO_GetFieldsCounters [09:03:54]wFMCommunicate request_size=4 [09:03:54]MH_SAM_APDU [09:03:54]CAPDU: 80 13 00 00 [09:03:54]Write to MH i2c: E2 08 00 96 0B 80 13 00 00 00 00 00 00 1D [09:03:54]Write i2c OK [09:03:54]MH_I2C_Read... [09:03:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:55]Read from MH i2c: E2 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 62 00 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 62 00 96 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D9 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [09:03:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D9 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:55]wFMCommunicate OK [09:03:55]SAM_PROTO_GetFieldsCounters done [09:03:55]requested_item shift.num is exist - process it [09:03:55]requested_item shift.opened is exist - process it [09:03:55]req_shift_opened [09:03:55]FM_GetShiftState [09:03:55]SAM_PROTO_GetShiftState [09:03:55]wFMCommunicate request_size=4 [09:03:55]MH_SAM_APDU [09:03:55]CAPDU: 80 13 01 00 [09:03:55]Write to MH i2c: E2 08 00 97 0B 80 13 01 00 00 00 00 00 1F [09:03:55]Write i2c OK [09:03:55]MH_I2C_Read... [09:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:55]Read from MH i2c: E2 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 0E 00 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 0E 00 97 0B 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 46 [09:03:55]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:03:55]wFMCommunicate OK [09:03:55]SAM_PROTO_GetShiftState done [09:03:55]FM_GetShiftState done [09:03:55]req_shift_opened done [09:03:55]requested_item shift.open_date is exist - process it [09:03:55]req_shift_open_date [09:03:55]req_shift_open_date done [09:03:55]produce_requested_data done [09:03:55]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77017,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:03:55]process_action_free print_text [09:03:55]json_value_free [09:03:55]json_value_free done [09:03:55]process_json_proto returns [09:03:55]Send response to host [09:03:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77017,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:03:55]free response buf [09:03:55]execute_script done [09:03:55]execute_script returns [09:03:55]free content buf [09:03:55]Sock 7.Close socket [09:03:55]Sock 7.Thread stoped [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04: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:54]accept exits with 9 [09:04:54]New connection [09:04:54]New thread 3067030884 created [09:04:54]Thread 3067174244 joined [09:04:54]Waiting for new connection... [09:04:54] Sock 9.Parse request [09:04:54]Sock 9.Check first char [09:04:54]Sock 9.First char is OK [09:04:54]request: POST /json_proto HTTP/1.0 [09:04:54]Method: POST [09:04:54]URL: /json_proto [09:04:54]Method is POST - this is cgi request [09:04:54]url: /json_proto [09:04:54]query_string will be loaded in cgi processing [09:04:54]execute_cgi json_proto POST (null) [09:04:54]execute_cgi path=json_proto method=POST [09:04:54]POST find Content-Length [09:04:54]Host: 172.17.62.5:8080 [09:04:54]Content-Length: 1199 [09:04:54]Content-Type: application/json [09:04:54] [09:04:54]POST finish read [09:04:54]Found Content-Length = 1199 [09:04:54]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191577\u000A22.04.2024 08:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731345\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:54]execute_script... [09:04:54]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191577\u000A22.04.2024 08:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731345\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:54]POST & json_proto [09:04:54]process_json_proto [09:04:54]json parsed OK: [09:04:54]protocol is kg_v1.0 [09:04:54]action value=print_text [09:04:54]process_action print_text [09:04:54]cmd_print_text [09:04:54]ExternCall_PrintAddStr [09:04:54]wPrintStart [09:04:54]Write to MH i2c: 01 00 00 98 0B A3 [09:04:54]Write i2c OK [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: 01 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: 01 07 00 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: 01 07 00 98 0B 00 00 00 00 00 FF 0F B8 [09:04:54]RasterBufferAndPrint [09:04:54]line *****ТОВАРНЫЙ ЧЕК***** [09:04:54]line АЗС 106 [09:04:54]line Партнер нефть [09:04:54]line 02508201610067 [09:04:54]line Кассир : Токторбаева Н. [09:04:54]line Счет N : (1)191577 [09:04:54]line 22.04.2024 08:46 [09:04:54]line ПРОДАЖА [09:04:54]line ТРК (МРК, ГНК): 61 [09:04:54]line Вид ГСМ : 2710194210 [09:04:54]line ДТ-К-5 [09:04:54]line 10.000 x 72.90 [09:04:54]line ИТОГ: 729.00 [09:04:54]line Тип оплаты: Талоны: Партнер нефть [09:04:54]line 3731345 [09:04:54]line ______________________ [09:04:54]line (подпись) [09:04:54]written 0, free lines is 4095 [09:04:54]Write to MH i2c: 01 00 00 AD 0B B8 [09:04:54]Write i2c OK [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: 01 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: 01 07 00 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: 01 07 00 AD 0B 00 00 00 00 00 F5 0D C1 [09:04:54]RasterBufferAndPrint [09:04:54]line [09:04:54]line [09:04:54]line [09:04:54]line [09:04:54]line [09:04:54]written 0, free lines is 3575 [09:04:54]MH_Cut [09:04:54]Write to MH i2c: D1 01 00 B4 0B 01 91 [09:04:54]Write i2c OK [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: D1 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: D1 01 00 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: D1 01 00 B4 0B 00 90 [09:04:54]Write to MH i2c: 01 00 00 B5 0B C0 [09:04:54]Write i2c OK [09:04:54]MH_I2C_Read... [09:04:54]*** Cut start [09:04:54]*** Partial cut [09:04:54]*** CUTSNS_PIN = 1 [09:04:55]*** CUTSNS_PIN = 0 [09:04:55]*** Brake cut motor [09:04:55]Read from MH i2c: 01 [09:04:55]MH_I2C_Read... [09:04:55]*** Stop cut motor [09:04:55]*** Cut end [09:04:55]Read from MH i2c: 01 07 00 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: 01 07 00 B5 0B 00 00 00 00 00 FF 0F D5 [09:04:55]process_action print_text done [09:04:55]requested_data is exist [09:04:55]produce_requested_data [09:04:55]requested_item fm.sn is exist - process it [09:04:55]wFMCommunicate request_size=4 [09:04:55]MH_SAM_APDU [09:04:55]CAPDU: 80 11 00 00 [09:04:55]Write to MH i2c: E2 08 00 B6 0B 80 11 00 00 00 00 00 00 3B [09:04:55]Write i2c OK [09:04:55]MH_I2C_Read... [09:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:55]Read from MH i2c: E2 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 17 00 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 17 00 B6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8E [09:04:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:04:55]wFMCommunicate OK [09:04:55]requested_item fd.num is exist - process it [09:04:55]SAM_PROTO_GetFieldsCounters [09:04:55]wFMCommunicate request_size=4 [09:04:55]MH_SAM_APDU [09:04:55]CAPDU: 80 13 00 00 [09:04:55]Write to MH i2c: E2 08 00 B7 0B 80 13 00 00 00 00 00 00 3E [09:04:55]Write i2c OK [09:04:55]MH_I2C_Read... [09:04:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:55]Read from MH i2c: E2 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 62 00 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 62 00 B7 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D9 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [09:04:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D9 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:55]wFMCommunicate OK [09:04:55]SAM_PROTO_GetFieldsCounters done [09:04:55]requested_item shift.num is exist - process it [09:04:55]requested_item shift.opened is exist - process it [09:04:55]req_shift_opened [09:04:55]FM_GetShiftState [09:04:55]SAM_PROTO_GetShiftState [09:04:55]wFMCommunicate request_size=4 [09:04:55]MH_SAM_APDU [09:04:55]CAPDU: 80 13 01 00 [09:04:55]Write to MH i2c: E2 08 00 B8 0B 80 13 01 00 00 00 00 00 40 [09:04:55]Write i2c OK [09:04:55]MH_I2C_Read... [09:04:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:55]Read from MH i2c: E2 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 0E 00 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 0E 00 B8 0B 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 67 [09:04:55]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:04:55]wFMCommunicate OK [09:04:55]SAM_PROTO_GetShiftState done [09:04:55]FM_GetShiftState done [09:04:55]req_shift_opened done [09:04:55]requested_item shift.open_date is exist - process it [09:04:55]req_shift_open_date [09:04:55]req_shift_open_date done [09:04:55]produce_requested_data done [09:04:55]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77017,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:04:55]process_action_free print_text [09:04:55]json_value_free [09:04:55]json_value_free done [09:04:55]process_json_proto returns [09:04:55]Send response to host [09:04:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77017,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:04:55]free response buf [09:04:55]execute_script done [09:04:55]execute_script returns [09:04:55]free content buf [09:04:55]Sock 9.Close socket [09:04:55]Sock 9.Thread stoped [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:56]accept exits with 7 [09:06:56]New connection [09:06:56]New thread 3067174244 created [09:06:56]Thread 3067030884 joined [09:06:56]Waiting for new connection... [09:06:56] Sock 7.Parse request [09:06:56]Sock 7.Check first char [09:06:56]Sock 7.First char is OK [09:06:56]request: POST /json_proto HTTP/1.0 [09:06:56]Method: POST [09:06:56]URL: /json_proto [09:06:56]Method is POST - this is cgi request [09:06:56]url: /json_proto [09:06:56]query_string will be loaded in cgi processing [09:06:56]execute_cgi json_proto POST (null) [09:06:56]execute_cgi path=json_proto method=POST [09:06:56]POST find Content-Length [09:06:56]Host: 172.17.62.5:8080 [09:06:56]Content-Length: 1174 [09:06:56]Content-Type: application/json [09:06:56] [09:06:56]POST finish read [09:06:56]Found Content-Length = 1174 [09:06:56]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191578\u000A22.04.2024 08:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 644.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:56]execute_script... [09:06:56]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191578\u000A22.04.2024 08:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 644.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:56]POST & json_proto [09:06:56]process_json_proto [09:06:56]json parsed OK: [09:06:56]protocol is kg_v1.0 [09:06:56]action value=print_text [09:06:56]process_action print_text [09:06:56]cmd_print_text [09:06:56]ExternCall_PrintAddStr [09:06:56]wPrintStart [09:06:56]Write to MH i2c: 01 00 00 B9 0B C4 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 07 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 07 00 B9 0B 00 00 00 00 00 FF 0F D9 [09:06:56]RasterBufferAndPrint [09:06:56]line *****ТОВАРНЫЙ ЧЕК***** [09:06:56]line АЗС 106 [09:06:56]line Партнер нефть [09:06:56]line 02508201610067 [09:06:56]line Кассир : Токторбаева Н. [09:06:56]line Счет N : (1)191578 [09:06:56]line 22.04.2024 08:48 [09:06:56]line ПРОДАЖА [09:06:56]line ТРК (МРК, ГНК): 12 [09:06:56]line Вид ГСМ : 2710124130 [09:06:56]line Аи-92-К-5 [09:06:56]line 10.000 x 64.40 [09:06:56]line ИТОГ: 644.00 [09:06:56]line Тип оплаты: Талоны: ТК ГПНА Online [09:06:56]line 30102984 [09:06:56]line ______________________ [09:06:56]line (подпись) [09:06:56]written 0, free lines is 4095 [09:06:56]Write to MH i2c: 01 00 00 CE 0B D9 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 07 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 07 00 CE 0B 00 00 00 00 00 F3 0D E0 [09:06:56]RasterBufferAndPrint [09:06:56]line [09:06:56]line [09:06:56]line [09:06:56]line [09:06:56]line [09:06:56]written 0, free lines is 3573 [09:06:56]MH_Cut [09:06:56]Write to MH i2c: D1 01 00 D5 0B 01 B2 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: D1 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: D1 01 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: D1 01 00 D5 0B 00 B1 [09:06:56]Write to MH i2c: 01 00 00 D6 0B E1 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:57]OFD Sender: No OFD packet to send [09:06:57]*** Cut start [09:06:57]*** Partial cut [09:06:57]*** CUTSNS_PIN = 1 [09:06:57]*** CUTSNS_PIN = 0 [09:06:57]*** Brake cut motor [09:06:58]Read from MH i2c: 01 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: 01 07 00 [09:06:58]MH_I2C_Read... [09:06:58]*** Stop cut motor [09:06:58]*** Cut end [09:06:58]Read from MH i2c: 01 07 00 D6 0B 00 00 00 00 00 FF 0F F6 [09:06:58]process_action print_text done [09:06:58]requested_data is exist [09:06:58]produce_requested_data [09:06:58]requested_item fm.sn is exist - process it [09:06:58]wFMCommunicate request_size=4 [09:06:58]MH_SAM_APDU [09:06:58]CAPDU: 80 11 00 00 [09:06:58]Write to MH i2c: E2 08 00 D7 0B 80 11 00 00 00 00 00 00 5C [09:06:58]Write i2c OK [09:06:58]MH_I2C_Read... [09:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:58]Read from MH i2c: E2 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: E2 17 00 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: E2 17 00 D7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AF [09:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:06:58]wFMCommunicate OK [09:06:58]requested_item fd.num is exist - process it [09:06:58]SAM_PROTO_GetFieldsCounters [09:06:58]wFMCommunicate request_size=4 [09:06:58]MH_SAM_APDU [09:06:58]CAPDU: 80 13 00 00 [09:06:58]Write to MH i2c: E2 08 00 D8 0B 80 13 00 00 00 00 00 00 5F [09:06:58]Write i2c OK [09:06:58]MH_I2C_Read... [09:06:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:58]Read from MH i2c: E2 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: E2 62 00 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: E2 62 00 D8 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D9 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [09:06:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 D9 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:58]wFMCommunicate OK [09:06:58]SAM_PROTO_GetFieldsCounters done [09:06:58]requested_item shift.num is exist - process it [09:06:58]requested_item shift.opened is exist - process it [09:06:58]req_shift_opened [09:06:58]FM_GetShiftState [09:06:58]SAM_PROTO_GetShiftState [09:06:58]wFMCommunicate request_size=4 [09:06:58]MH_SAM_APDU [09:06:58]CAPDU: 80 13 01 00 [09:06:58]Write to MH i2c: E2 08 00 D9 0B 80 13 01 00 00 00 00 00 61 [09:06:58]Write i2c OK [09:06:58]MH_I2C_Read... [09:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:58]Read from MH i2c: E2 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: E2 0E 00 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: E2 0E 00 D9 0B 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 88 [09:06:58]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:06:58]wFMCommunicate OK [09:06:58]SAM_PROTO_GetShiftState done [09:06:58]FM_GetShiftState done [09:06:58]req_shift_opened done [09:06:58]requested_item shift.open_date is exist - process it [09:06:58]req_shift_open_date [09:06:58]req_shift_open_date done [09:06:58]produce_requested_data done [09:06:58]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77017,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:06:58]process_action_free print_text [09:06:58]json_value_free [09:06:58]json_value_free done [09:06:58]process_json_proto returns [09:06:58]Send response to host [09:06:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77017,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:06:58]free response buf [09:06:58]execute_script done [09:06:58]execute_script returns [09:06:58]free content buf [09:06:58]Sock 7.Close socket [09:06:58]Sock 7.Thread stoped [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:03]accept exits with 9 [09:09:03]New connection [09:09:03]New thread 3067030884 created [09:09:03]Thread 3067174244 joined [09:09:03]Waiting for new connection... [09:09:03] Sock 9.Parse request [09:09:03]Sock 9.Check first char [09:09:03]Sock 9.First char is OK [09:09:03]request: POST /json_proto HTTP/1.0 [09:09:03]Method: POST [09:09:03]URL: /json_proto [09:09:03]Method is POST - this is cgi request [09:09:03]url: /json_proto [09:09:03]query_string will be loaded in cgi processing [09:09:03]execute_cgi json_proto POST (null) [09:09:03]execute_cgi path=json_proto method=POST [09:09:03]POST find Content-Length [09:09:03]Host: 172.17.62.5:8080 [09:09:03]Content-Length: 813 [09:09:03]Content-Type: application/json [09:09:03] [09:09:03]POST finish read [09:09:03]Found Content-Length = 813 [09:09:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:03]execute_script... [09:09: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)191579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:03]POST & json_proto [09:09:03]process_json_proto [09:09:03]json parsed OK: [09:09:03]protocol is kg_v1.0 [09:09:03]action value=close_receipt [09:09:03]process_action close_receipt [09:09:03]cmd_close_receipt [09:09:03]MH_GetDate [09:09:03]Write to MH i2c: F0 00 00 DA 0B D4 [09:09:03]Write i2c OK [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: F0 [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: F0 09 00 [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: F0 09 00 DA 0B 00 32 29 26 66 F4 E9 65 64 6A [09:09:03]GetLastDocTimeStamp 1713776521 [09:09:03]current date 1713776946 [09:09:03]FM_GetShiftState [09:09:03]SAM_PROTO_GetShiftState [09:09:03]wFMCommunicate request_size=4 [09:09:03]MH_SAM_APDU [09:09:03]CAPDU: 80 13 01 00 [09:09:03]Write to MH i2c: E2 08 00 DB 0B 80 13 01 00 00 00 00 00 63 [09:09:03]Write i2c OK [09:09:03]MH_I2C_Read... [09:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:03]Read from MH i2c: E2 [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: E2 0E 00 [09:09:03]MH_I2C_Read... [09:09:03]Read from MH i2c: E2 0E 00 DB 0B 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 8A [09:09:03]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:09:03]wFMCommunicate OK [09:09:03]SAM_PROTO_GetShiftState done [09:09:03]FM_GetShiftState done [09:09:03]opened in 1713745124 [09:09:03]opened+sec_in_day 1713831524 [09:09:03]quantity*price = 60069 [09:09:03]sum+1 = 60071 [09:09:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.70 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 0.00 Безнал.: 600.70 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 37 22.04.2024 09:09 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 77018 ФПД: 145388375978558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T090906&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77018&fm=145388375978558&tin=02508201610067®Number=0000000000091573&sum=60070 [09:09:05]StoreToDocumentArchive [09:09:05]shift 373 fd 77018 [09:09:05]save to /storage/0373/doc_00077018 [09:09:05]save last doc name /storage/0373/doc_00077018 to /storage/kkm_last_doc_name [09:09:05]save OK [09:09:05]Clear old archive folders... [09:09:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:09:05]tlvbuf is 01714010 [09:09:05]SAM_PROTO_ClearQueue [09:09:05]wFMCommunicate request_size=4 [09:09:05]MH_SAM_APDU [09:09:05]CAPDU: 80 09 00 00 [09:09:05]Write to MH i2c: E2 08 00 E8 0B 80 09 00 00 00 00 00 00 65 [09:09:05]Write i2c OK [09:09:05]MH_I2C_Read... [09:09:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:05]Read from MH i2c: E2 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: E2 03 00 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: E2 03 00 E8 0B 00 90 00 67 [09:09:05]RAPDU: 90 00 [09:09:05]wFMCommunicate OK [09:09:05]SAM_PROTO_ClearQueue done [09:09:05]KKMCreateOFDPacket [09:09:05]OFDProtocolAddRootSTLVToBuf [09:09:05]FM_MakeSignedData [09:09:05]FM_MakeSignedData [09:09:05]SAM_PROTO_SignData [09:09:05]wFMCommunicate request_size=4 [09:09:05]MH_SAM_APDU [09:09:05]CAPDU: 80 0D 01 02 [09:09:05]Write to MH i2c: E2 08 00 E9 0B 80 0D 01 02 00 00 00 00 6D [09:09:05]Write i2c OK [09:09:05]MH_I2C_Read... [09:09:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:05]Read from MH i2c: E2 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: E2 03 00 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: E2 03 00 E9 0B 00 90 00 68 [09:09:05]RAPDU: 90 00 [09:09:05]wFMCommunicate OK [09:09:05]wFMCommunicate request_size=255 [09:09:05]MH_SAM_APDU [09:09: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 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 32 29 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DA 2C 01 00 35 04 06 00 84 3A DE 81 [09:09:05]Write to MH i2c: E2 02 01 EA 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 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 32 29 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DA 2C 01 00 35 04 06 00 84 3A DE 81 00 00 1F [09:09:05]Write i2c OK [09:09:05]MH_I2C_Read... [09:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:05]Read from MH i2c: E2 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: E2 03 00 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: E2 03 00 EA 0B 00 90 00 69 [09:09:05]RAPDU: 90 00 [09:09:05]wFMCommunicate OK [09:09:05]wFMCommunicate request_size=7 [09:09:05]MH_SAM_APDU [09:09:05]CAPDU: 80 0D 02 02 02 32 3E [09:09:05]Write to MH i2c: E2 0A 00 EB 0B 80 0D 02 02 02 00 32 3E 00 00 E4 [09:09:05]Write i2c OK [09:09:05]MH_I2C_Read... [09:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:05]Read from MH i2c: E2 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: E2 03 00 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: E2 03 00 EB 0B 00 90 00 6A [09:09:05]RAPDU: 90 00 [09:09:05]wFMCommunicate OK [09:09:05]wFMCommunicate request_size=4 [09:09:05]MH_SAM_APDU [09:09:05]CAPDU: 80 0D 03 02 [09:09:05]Write to MH i2c: E2 08 00 EC 0B 80 0D 03 02 00 00 00 00 72 [09:09:05]Write i2c OK [09:09:05]MH_I2C_Read... [09:09:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:05]Read from MH i2c: E2 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: E2 0B 00 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: E2 0B 00 EC 0B 00 B3 94 79 AA 13 00 89 62 90 00 DB [09:09:05]RAPDU: B3 94 79 AA 13 00 89 62 90 00 [09:09:05]wFMCommunicate OK [09:09:05]SAM_PROTO_SignData done [09:09:05]FM_MakeSignedData done [09:09:05]CreateOFDProtocolMessage [09:09:05]wFMCommunicate request_size=4 [09:09:05]MH_SAM_APDU [09:09:05]CAPDU: 80 11 00 00 [09:09:05]Write to MH i2c: E2 08 00 ED 0B 80 11 00 00 00 00 00 00 72 [09:09:05]Write i2c OK [09:09:05]MH_I2C_Read... [09:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:05]Read from MH i2c: E2 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: E2 17 00 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: E2 17 00 ED 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C5 [09:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:09:05]wFMCommunicate OK [09:09:05]CreateOFDProtocolMessage done [09:09:05]OFDSenderStorePacket 77018 [09:09:05]StoreOFDPacket docnum=77018 [09:09:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 76 AB 04 01 85 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 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 32 29 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DA 2C 01 00 35 04 06 00 84 3A DE 81 32 3E B3 94 79 AA 13 00 89 62 [09:09:05]CheckFolder [09:09:05]dirname=/storage/ofd_packets [09:09:05]CheckFolder done [09:09:05]ProducePacketName [09:09:05]name=ofd_packets/00077018 [09:09:05]NVStorageSaveData ofd_packets/00077018 [09:09:05]File name is /storage/ofd_packets/00077018 [09:09:05]Write 298 bytes [09:09:05]NVStorageSaveData done [09:09:05]OFDSenderStorePacket done [09:09:05]KKMCreateOFDPacket done [09:09:05]NVStorageSaveData kkm_last_timestamp [09:09:05]File name is /storage/kkm_last_timestamp [09:09:05]Write 4 bytes [09:09:05]NVStorageSaveData done [09:09:05]ExternCall_PrintAddStr [09:09:05]wPrintStart [09:09:05]Write to MH i2c: 01 00 00 EE 0B F9 [09:09:05]Write i2c OK [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: 01 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: 01 07 00 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: 01 07 00 EE 0B 00 00 00 00 00 FF 0F 0E [09:09:05]RasterBufferAndPrint [09:09:05]line Счет N : (1)191579 [09:09:05]line ИНН: 02508201610067 [09:09:05]line Контрольно-Кассовый Чек [09:09:05]line ПРОДАЖА [09:09:05]line ТРК (МРК, ГНК) : 23 [09:09:05]line Товар: 2710194210 [09:09:05]line ДТ-К-5 [09:09:05]line 8.240 * 72.90 [09:09:05]line = 600.70 [09:09:05]line НДС 12% НСП 1% [09:09:05]line > о реализуемом товаре [09:09:05]line ИТОГО: 600.70 [09:09:05]line НСП 1% : 5.32 [09:09:05]line НДС 12% : 63.79 [09:09:05]line Наличными: 0.00 [09:09:05]line Безнал.: 600.70 [09:09:05]line Место: АЗС № 106 "Партнер Нефть" [09:09:05]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:09:05]line СНО: Общий режим [09:09:05]line Чек 37 22.04.2024 09:09 [09:09:05]line Смена: 373 ФФД: 1.0 [09:09:05]line ЗНМ: 0300000141 [09:09:05]line РНМ: 0000000000091573 [09:09:05]line Версия ККМ: 001 [09:09:05]line Платежная система: Бакай Банк [09:09:05]line ФМ: 0000000000874652 [09:09:05]line ФД: 77018 [09:09:05]line ФПД: 145388375978558 [09:09:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T090906&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77018&fm=145388375978558&tin=02508201610067®Number=0000000000091573&sum=60070 [09:09:05]OFD Sender: Processing packet 77018 [packets to send 129, broken 128] [09:09:05]ProducePacketName [09:09:05]name=ofd_packets/00077018 [09:09:05]OFD Sender: To server: pG, [09:09:05]CommunicateWithHost lk.salyk.kg:30040 [09:09:05]ConnectInit lk.salyk.kg [09:09:05]written 0, free lines is 4095 [09:09:06]Connected sock=10 [09:09:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 76 AB 04 01 85 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 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 32 29 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DA 2C 01 00 35 04 06 00 84 3A DE 81 32 3E B3 94 79 AA 13 00 89 62 [09:09:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 0C 50 47 00 CB 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DA 2C 01 00 F4 03 04 00 B5 D0 25 66 B6 04 01 00 00 60 E9 D5 7D 09 9D 94 E5 [09:09:06]CommunicateWithHost err = 0 [09:09:06]CheckOFDResponse [09:09:06]1017 (14) - 77093643461234 [09:09:06]1041 (16) - 0000000000874652 [09:09:06]1040 (4) - 77018 [09:09:06]1012 (4) - 22.04.2024 02:51 [09:09:06]1206 (1) - 0 [09:09:06]OFD Sender: Remove packet 77018 [09:09:06]ProducePacketName [09:09:06]name=ofd_packets/00077018 [09:09:06]NVStorageDeleteData [09:09:06]Write to MH i2c: 01 00 00 17 0C 23 [09:09:06]Write i2c OK [09:09:06]MH_I2C_Read... [09:09:06]Read from MH i2c: 01 [09:09:06]MH_I2C_Read... [09:09:06]Read from MH i2c: 01 07 00 [09:09:06]MH_I2C_Read... [09:09:06]Read from MH i2c: 01 07 00 17 0C 00 00 00 00 00 FB 0C 31 [09:09:06]RasterBufferAndPrint [09:09:06]line [09:09:06]line [09:09:06]line [09:09:06]line [09:09:06]line [09:09:06]written 0, free lines is 3329 [09:09:06]MH_Cut [09:09:06]Write to MH i2c: D1 01 00 1E 0C 01 FC [09:09:06]Write i2c OK [09:09:06]MH_I2C_Read... [09:09:06]Read from MH i2c: D1 [09:09:06]MH_I2C_Read... [09:09:06]Read from MH i2c: D1 01 00 [09:09:06]MH_I2C_Read... [09:09:06]Read from MH i2c: D1 01 00 1E 0C 00 FB [09:09:06]Write to MH i2c: 01 00 00 1F 0C 2B [09:09:06]Write i2c OK [09:09:06]MH_I2C_Read... [09:09:06]OFD Sender: No OFD packet to send [09:09:07]*** Cut start [09:09:07]*** Partial cut [09:09:07]*** CUTSNS_PIN = 1 [09:09:07]*** CUTSNS_PIN = 0 [09:09:07]*** Brake cut motor [09:09:07]Read from MH i2c: 01 [09:09:07]MH_I2C_Read... [09:09:07]*** Stop cut motor [09:09:07]*** Cut end [09:09:07]Read from MH i2c: 01 07 00 [09:09:07]MH_I2C_Read... [09:09:07]Read from MH i2c: 01 07 00 1F 0C 00 00 00 00 00 FF 0F 40 [09:09:07]process_action close_receipt done [09:09:07]requested_data is exist [09:09:07]produce_requested_data [09:09:07]requested_item fm.sn is exist - process it [09:09:07]wFMCommunicate request_size=4 [09:09:07]MH_SAM_APDU [09:09:07]CAPDU: 80 11 00 00 [09:09:07]Write to MH i2c: E2 08 00 20 0C 80 11 00 00 00 00 00 00 A6 [09:09:07]Write i2c OK [09:09:07]MH_I2C_Read... [09:09:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:07]Read from MH i2c: E2 [09:09:07]MH_I2C_Read... [09:09:07]Read from MH i2c: E2 17 00 [09:09:07]MH_I2C_Read... [09:09:07]Read from MH i2c: E2 17 00 20 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F9 [09:09:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:09:07]wFMCommunicate OK [09:09:07]requested_item fd.num is exist - process it [09:09:07]SAM_PROTO_GetFieldsCounters [09:09:07]wFMCommunicate request_size=4 [09:09:07]MH_SAM_APDU [09:09:07]CAPDU: 80 13 00 00 [09:09:07]Write to MH i2c: E2 08 00 21 0C 80 13 00 00 00 00 00 00 A9 [09:09:07]Write i2c OK [09:09:07]MH_I2C_Read... [09:09:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:07]Read from MH i2c: E2 [09:09:07]MH_I2C_Read... [09:09:07]Read from MH i2c: E2 62 00 [09:09:07]MH_I2C_Read... [09:09:07]Read from MH i2c: E2 62 00 21 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DA 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [09:09:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DA 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:07]wFMCommunicate OK [09:09:07]SAM_PROTO_GetFieldsCounters done [09:09:07]requested_item shift.num is exist - process it [09:09:07]requested_item shift.opened is exist - process it [09:09:07]req_shift_opened [09:09:07]FM_GetShiftState [09:09:07]SAM_PROTO_GetShiftState [09:09:07]wFMCommunicate request_size=4 [09:09:07]MH_SAM_APDU [09:09:07]CAPDU: 80 13 01 00 [09:09:07]Write to MH i2c: E2 08 00 22 0C 80 13 01 00 00 00 00 00 AB [09:09:07]Write i2c OK [09:09:07]MH_I2C_Read... [09:09:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:08]Read from MH i2c: E2 [09:09:08]MH_I2C_Read... [09:09:08]Read from MH i2c: E2 0E 00 [09:09:08]MH_I2C_Read... [09:09:08]Read from MH i2c: E2 0E 00 22 0C 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 D2 [09:09:08]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:09:08]wFMCommunicate OK [09:09:08]SAM_PROTO_GetShiftState done [09:09:08]FM_GetShiftState done [09:09:08]req_shift_opened done [09:09:08]requested_item shift.open_date is exist - process it [09:09:08]req_shift_open_date [09:09:08]req_shift_open_date done [09:09:08]produce_requested_data done [09:09:08]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77018,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:09:08]process_action_free close_receipt [09:09:08]json_value_free [09:09:08]json_value_free done [09:09:08]process_json_proto returns [09:09:08]Send response to host [09:09:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77018,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:09:08]free response buf [09:09:08]execute_script done [09:09:08]execute_script returns [09:09:08]free content buf [09:09:08]Sock 9.Close socket [09:09:08]Sock 9.Thread stoped [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:08]accept exits with 7 [09:10:08]New connection [09:10:08]New thread 3067174244 created [09:10:08]Thread 3067030884 joined [09:10:08]Waiting for new connection... [09:10:08] Sock 7.Parse request [09:10:08]Sock 7.Check first char [09:10:08]Sock 7.First char is OK [09:10:08]request: POST /json_proto HTTP/1.0 [09:10:08]Method: POST [09:10:08]URL: /json_proto [09:10:08]Method is POST - this is cgi request [09:10:08]url: /json_proto [09:10:08]query_string will be loaded in cgi processing [09:10:08]execute_cgi json_proto POST (null) [09:10:08]execute_cgi path=json_proto method=POST [09:10:08]POST find Content-Length [09:10:08]Host: 172.17.62.5:8080 [09:10:08]Content-Length: 1172 [09:10:08]Content-Type: application/json [09:10:08] [09:10:08]POST finish read [09:10:08]Found Content-Length = 1172 [09:10:08]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191580\u000A22.04.2024 08:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 25.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1822.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30103446\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:08]execute_script... [09:10:08]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191580\u000A22.04.2024 08:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 25.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1822.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30103446\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:08]POST & json_proto [09:10:08]process_json_proto [09:10:08]json parsed OK: [09:10:08]protocol is kg_v1.0 [09:10:08]action value=print_text [09:10:08]process_action print_text [09:10:08]cmd_print_text [09:10:08]ExternCall_PrintAddStr [09:10:08]wPrintStart [09:10:08]Write to MH i2c: 01 00 00 23 0C 2F [09:10:08]Write i2c OK [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: 01 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: 01 07 00 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: 01 07 00 23 0C 00 00 00 00 00 FF 0F 44 [09:10:08]RasterBufferAndPrint [09:10:08]line *****ТОВАРНЫЙ ЧЕК***** [09:10:08]line АЗС 106 [09:10:08]line Партнер нефть [09:10:08]line 02508201610067 [09:10:08]line Кассир : Токторбаева Н. [09:10:08]line Счет N : (1)191580 [09:10:08]line 22.04.2024 08:51 [09:10:08]line ПРОДАЖА [09:10:08]line ТРК (МРК, ГНК): 51 [09:10:08]line Вид ГСМ : 2710194210 [09:10:08]line ДТ-К-5 [09:10:08]line 25.000 x 72.90 [09:10:08]line ИТОГ: 1822.50 [09:10:08]line Тип оплаты: Талоны: ТК ГПНА Online [09:10:08]line 30103446 [09:10:08]line ______________________ [09:10:08]line (подпись) [09:10:08]written 0, free lines is 4095 [09:10:08]Write to MH i2c: 01 00 00 38 0C 44 [09:10:08]Write i2c OK [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: 01 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: 01 07 00 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: 01 07 00 38 0C 00 00 00 00 00 F2 0D 4A [09:10:08]RasterBufferAndPrint [09:10:08]line [09:10:08]line [09:10:08]line [09:10:08]line [09:10:08]line [09:10:08]written 0, free lines is 3572 [09:10:08]MH_Cut [09:10:08]Write to MH i2c: D1 01 00 3F 0C 01 1D [09:10:08]Write i2c OK [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: D1 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: D1 01 00 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: D1 01 00 3F 0C 00 1C [09:10:08]Write to MH i2c: 01 00 00 40 0C 4C [09:10:08]Write i2c OK [09:10:08]MH_I2C_Read... [09:10:08]*** Cut start [09:10:08]*** Partial cut [09:10:08]*** CUTSNS_PIN = 1 [09:10:08]*** CUTSNS_PIN = 0 [09:10:09]*** Brake cut motor [09:10:09]Read from MH i2c: 01 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: 01 07 00 [09:10:09]MH_I2C_Read... [09:10:09]*** Stop cut motor [09:10:09]*** Cut end [09:10:09]Read from MH i2c: 01 07 00 40 0C 00 00 00 00 00 FF 0F 61 [09:10:09]process_action print_text done [09:10:09]requested_data is exist [09:10:09]produce_requested_data [09:10:09]requested_item fm.sn is exist - process it [09:10:09]wFMCommunicate request_size=4 [09:10:09]MH_SAM_APDU [09:10:09]CAPDU: 80 11 00 00 [09:10:09]Write to MH i2c: E2 08 00 41 0C 80 11 00 00 00 00 00 00 C7 [09:10:09]Write i2c OK [09:10:09]MH_I2C_Read... [09:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:09]Read from MH i2c: E2 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 17 00 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 17 00 41 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 1A [09:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:10:09]wFMCommunicate OK [09:10:09]requested_item fd.num is exist - process it [09:10:09]SAM_PROTO_GetFieldsCounters [09:10:09]wFMCommunicate request_size=4 [09:10:09]MH_SAM_APDU [09:10:09]CAPDU: 80 13 00 00 [09:10:09]Write to MH i2c: E2 08 00 42 0C 80 13 00 00 00 00 00 00 CA [09:10:09]Write i2c OK [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 [09:10:09]MH_I2C_Read... [09:10:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:09]Read from MH i2c: E2 62 00 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 62 00 42 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DA 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [09:10:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DA 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:09]wFMCommunicate OK [09:10:09]SAM_PROTO_GetFieldsCounters done [09:10:09]requested_item shift.num is exist - process it [09:10:09]requested_item shift.opened is exist - process it [09:10:09]req_shift_opened [09:10:09]FM_GetShiftState [09:10:09]SAM_PROTO_GetShiftState [09:10:09]wFMCommunicate request_size=4 [09:10:09]MH_SAM_APDU [09:10:09]CAPDU: 80 13 01 00 [09:10:09]Write to MH i2c: E2 08 00 43 0C 80 13 01 00 00 00 00 00 CC [09:10:09]Write i2c OK [09:10:09]MH_I2C_Read... [09:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:09]Read from MH i2c: E2 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 0E 00 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 0E 00 43 0C 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 F3 [09:10:09]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:10:09]wFMCommunicate OK [09:10:09]SAM_PROTO_GetShiftState done [09:10:09]FM_GetShiftState done [09:10:09]req_shift_opened done [09:10:09]requested_item shift.open_date is exist - process it [09:10:09]req_shift_open_date [09:10:09]req_shift_open_date done [09:10:09]produce_requested_data done [09:10:09]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77018,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:10:09]process_action_free print_text [09:10:09]json_value_free [09:10:09]json_value_free done [09:10:09]process_json_proto returns [09:10:09]Send response to host [09:10:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77018,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:10:09]free response buf [09:10:09]execute_script done [09:10:09]execute_script returns [09:10:09]free content buf [09:10:09]Sock 7.Close socket [09:10:09]Sock 7.Thread stoped [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]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:23]accept exits with 9 [09:11:23]New connection [09:11:23]New thread 3067030884 created [09:11:23]Thread 3067174244 joined [09:11:23]Waiting for new connection... [09:11:23] Sock 9.Parse request [09:11:23]Sock 9.Check first char [09:11:23]Sock 9.First char is OK [09:11:23]request: POST /json_proto HTTP/1.0 [09:11:23]Method: POST [09:11:23]URL: /json_proto [09:11:23]Method is POST - this is cgi request [09:11:23]url: /json_proto [09:11:23]query_string will be loaded in cgi processing [09:11:23]execute_cgi json_proto POST (null) [09:11:23]execute_cgi path=json_proto method=POST [09:11:23]POST find Content-Length [09:11:23]Host: 172.17.62.5:8080 [09:11:23]Content-Length: 1174 [09:11:23]Content-Type: application/json [09:11:23] [09:11:23]POST finish read [09:11:23]Found Content-Length = 1174 [09:11:23]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191581\u000A22.04.2024 08:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 966.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:23]execute_script... [09:11:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191581\u000A22.04.2024 08:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 966.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:23]POST & json_proto [09:11:23]process_json_proto [09:11:23]json parsed OK: [09:11:23]protocol is kg_v1.0 [09:11:23]action value=print_text [09:11:23]process_action print_text [09:11:23]cmd_print_text [09:11:23]ExternCall_PrintAddStr [09:11:23]wPrintStart [09:11:23]Write to MH i2c: 01 00 00 44 0C 50 [09:11:23]Write i2c OK [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: 01 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: 01 07 00 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: 01 07 00 44 0C 00 00 00 00 00 FF 0F 65 [09:11:23]RasterBufferAndPrint [09:11:23]line *****ТОВАРНЫЙ ЧЕК***** [09:11:23]line АЗС 106 [09:11:23]line Партнер нефть [09:11:23]line 02508201610067 [09:11:23]line Кассир : Токторбаева Н. [09:11:23]line Счет N : (1)191581 [09:11:23]line 22.04.2024 08:52 [09:11:23]line ПРОДАЖА [09:11:23]line ТРК (МРК, ГНК): 22 [09:11:23]line Вид ГСМ : 2710124130 [09:11:23]line Аи-92-К-5 [09:11:23]line 15.000 x 64.40 [09:11:23]line ИТОГ: 966.00 [09:11:23]line Тип оплаты: Талоны: ТК ГПНА Online [09:11:23]line 30102984 [09:11:23]line ______________________ [09:11:23]line (подпись) [09:11:23]written 0, free lines is 4095 [09:11:23]Write to MH i2c: 01 00 00 59 0C 65 [09:11:23]Write i2c OK [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: 01 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: 01 07 00 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: 01 07 00 59 0C 00 00 00 00 00 F4 0D 6D [09:11:23]RasterBufferAndPrint [09:11:23]line [09:11:23]line [09:11:23]line [09:11:23]line [09:11:23]line [09:11:23]written 0, free lines is 3574 [09:11:23]MH_Cut [09:11:23]Write to MH i2c: D1 01 00 60 0C 01 3E [09:11:23]Write i2c OK [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: D1 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: D1 01 00 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: D1 01 00 60 0C 00 3D [09:11:23]Write to MH i2c: 01 00 00 61 0C 6D [09:11:23]Write i2c OK [09:11:23]MH_I2C_Read... [09:11:24]*** Cut start [09:11:24]*** Partial cut [09:11:24]*** CUTSNS_PIN = 1 [09:11:24]*** CUTSNS_PIN = 0 [09:11:24]*** Brake cut motor [09:11:24]Read from MH i2c: 01 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: 01 07 00 [09:11:24]MH_I2C_Read... [09:11:24]*** Stop cut motor [09:11:24]*** Cut end [09:11:24]Read from MH i2c: 01 07 00 61 0C 00 00 00 00 00 FF 0F 82 [09:11:24]process_action print_text done [09:11:24]requested_data is exist [09:11:24]produce_requested_data [09:11:24]requested_item fm.sn is exist - process it [09:11:24]wFMCommunicate request_size=4 [09:11:24]MH_SAM_APDU [09:11:24]CAPDU: 80 11 00 00 [09:11:24]Write to MH i2c: E2 08 00 62 0C 80 11 00 00 00 00 00 00 E8 [09:11:24]Write i2c OK [09:11:24]MH_I2C_Read... [09:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:24]Read from MH i2c: E2 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: E2 17 00 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: E2 17 00 62 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3B [09:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:11:24]wFMCommunicate OK [09:11:24]requested_item fd.num is exist - process it [09:11:24]SAM_PROTO_GetFieldsCounters [09:11:24]wFMCommunicate request_size=4 [09:11:24]MH_SAM_APDU [09:11:24]CAPDU: 80 13 00 00 [09:11:24]Write to MH i2c: E2 08 00 63 0C 80 13 00 00 00 00 00 00 EB [09:11:24]Write i2c OK [09:11:24]MH_I2C_Read... [09:11:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:25]Read from MH i2c: E2 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 62 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 62 00 63 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DA 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [09:11:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DA 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:25]wFMCommunicate OK [09:11:25]SAM_PROTO_GetFieldsCounters done [09:11:25]requested_item shift.num is exist - process it [09:11:25]requested_item shift.opened is exist - process it [09:11:25]req_shift_opened [09:11:25]FM_GetShiftState [09:11:25]SAM_PROTO_GetShiftState [09:11:25]wFMCommunicate request_size=4 [09:11:25]MH_SAM_APDU [09:11:25]CAPDU: 80 13 01 00 [09:11:25]Write to MH i2c: E2 08 00 64 0C 80 13 01 00 00 00 00 00 ED [09:11:25]Write i2c OK [09:11:25]MH_I2C_Read... [09:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:25]Read from MH i2c: E2 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 0E 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 0E 00 64 0C 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 14 [09:11:25]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:11:25]wFMCommunicate OK [09:11:25]SAM_PROTO_GetShiftState done [09:11:25]FM_GetShiftState done [09:11:25]req_shift_opened done [09:11:25]requested_item shift.open_date is exist - process it [09:11:25]req_shift_open_date [09:11:25]req_shift_open_date done [09:11:25]produce_requested_data done [09:11:25]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77018,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:11:25]process_action_free print_text [09:11:25]json_value_free [09:11:25]json_value_free done [09:11:25]process_json_proto returns [09:11:25]Send response to host [09:11:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77018,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:11:25]free response buf [09:11:25]execute_script done [09:11:25]execute_script returns [09:11:25]free content buf [09:11:25]Sock 9.Close socket [09:11:25]Sock 9.Thread stoped [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14: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:30]accept exits with 7 [09:15:30]New connection [09:15:30]New thread 3067174244 created [09:15:30]Thread 3067030884 joined [09:15:30]Waiting for new connection... [09:15:30] Sock 7.Parse request [09:15:30]Sock 7.Check first char [09:15:30]Sock 7.First char is OK [09:15:30]request: POST /json_proto HTTP/1.0 [09:15:30]Method: POST [09:15:30]URL: /json_proto [09:15:30]Method is POST - this is cgi request [09:15:30]url: /json_proto [09:15:30]query_string will be loaded in cgi processing [09:15:30]execute_cgi json_proto POST (null) [09:15:30]execute_cgi path=json_proto method=POST [09:15:30]POST find Content-Length [09:15:30]Host: 172.17.62.5:8080 [09:15:30]Content-Length: 674 [09:15:30]Content-Type: application/json [09:15:30] [09:15:30]POST finish read [09:15:30]Found Content-Length = 674 [09:15:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.810, "sum" : 350.65, "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" ] } } [09:15:30]execute_script... [09:15: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)191583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.810, "sum" : 350.65, "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" ] } } [09:15:30]POST & json_proto [09:15:30]process_json_proto [09:15:30]json parsed OK: [09:15:30]protocol is kg_v1.0 [09:15:30]action value=close_receipt [09:15:30]process_action close_receipt [09:15:30]cmd_close_receipt [09:15:30]MH_GetDate [09:15:30]Write to MH i2c: F0 00 00 65 0C 60 [09:15:30]Write i2c OK [09:15:30]MH_I2C_Read... [09:15:30]Read from MH i2c: F0 [09:15:30]MH_I2C_Read... [09:15:30]Read from MH i2c: F0 09 00 [09:15:30]MH_I2C_Read... [09:15:30]Read from MH i2c: F0 09 00 65 0C 00 B5 2A 26 66 F4 E9 65 64 7A [09:15:30]GetLastDocTimeStamp 1713776946 [09:15:30]current date 1713777333 [09:15:30]FM_GetShiftState [09:15:30]SAM_PROTO_GetShiftState [09:15:30]wFMCommunicate request_size=4 [09:15:30]MH_SAM_APDU [09:15:30]CAPDU: 80 13 01 00 [09:15:30]Write to MH i2c: E2 08 00 66 0C 80 13 01 00 00 00 00 00 EF [09:15:30]Write i2c OK [09:15:30]MH_I2C_Read... [09:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:30]Read from MH i2c: E2 [09:15:30]MH_I2C_Read... [09:15:30]Read from MH i2c: E2 0E 00 [09:15:30]MH_I2C_Read... [09:15:30]Read from MH i2c: E2 0E 00 66 0C 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 16 [09:15:30]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:15:30]wFMCommunicate OK [09:15:30]SAM_PROTO_GetShiftState done [09:15:30]FM_GetShiftState done [09:15:30]opened in 1713745124 [09:15:30]opened+sec_in_day 1713831524 [09:15:30]quantity*price = 35064 [09:15:30]sum+1 = 35066 [09:15:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.24 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 38 22.04.2024 09:15 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77019 ФПД: 259256952299805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T091533&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77019&fm=259256952299805&tin=02508201610067®Number=0000000000091573&sum=35000 [09:15:31]StoreToDocumentArchive [09:15:31]shift 373 fd 77019 [09:15:31]save to /storage/0373/doc_00077019 [09:15:31]save last doc name /storage/0373/doc_00077019 to /storage/kkm_last_doc_name [09:15:31]save OK [09:15:31]Clear old archive folders... [09:15:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:15:31]tlvbuf is 0175AC60 [09:15:31]SAM_PROTO_ClearQueue [09:15:31]wFMCommunicate request_size=4 [09:15:31]MH_SAM_APDU [09:15:31]CAPDU: 80 09 00 00 [09:15:31]Write to MH i2c: E2 08 00 73 0C 80 09 00 00 00 00 00 00 F1 [09:15:31]Write i2c OK [09:15:31]MH_I2C_Read... [09:15:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:31]Read from MH i2c: E2 [09:15:31]MH_I2C_Read... [09:15:31]Read from MH i2c: E2 03 00 [09:15:31]MH_I2C_Read... [09:15:31]Read from MH i2c: E2 03 00 73 0C 00 90 00 F3 [09:15:31]RAPDU: 90 00 [09:15:31]wFMCommunicate OK [09:15:31]SAM_PROTO_ClearQueue done [09:15:31]KKMCreateOFDPacket [09:15:31]OFDProtocolAddRootSTLVToBuf [09:15:31]FM_MakeSignedData [09:15:31]FM_MakeSignedData [09:15:31]SAM_PROTO_SignData [09:15:31]wFMCommunicate request_size=4 [09:15:31]MH_SAM_APDU [09:15:31]CAPDU: 80 0D 01 02 [09:15:31]Write to MH i2c: E2 08 00 74 0C 80 0D 01 02 00 00 00 00 F9 [09:15:31]Write i2c OK [09:15:31]MH_I2C_Read... [09:15:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:31]Read from MH i2c: E2 [09:15:31]MH_I2C_Read... [09:15:31]Read from MH i2c: E2 03 00 [09:15:31]MH_I2C_Read... [09:15:31]Read from MH i2c: E2 03 00 74 0C 00 90 00 F4 [09:15:31]RAPDU: 90 00 [09:15:31]wFMCommunicate OK [09:15:31]wFMCommunicate request_size=255 [09:15:31]MH_SAM_APDU [09:15: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 35 FF 03 08 00 03 CA 12 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F9 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 8C 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 26 00 00 00 F4 03 04 00 B5 2A 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DB 2C 01 00 35 04 06 00 EB CA F6 8C [09:15:31]Write to MH i2c: E2 02 01 75 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 35 FF 03 08 00 03 CA 12 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F9 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 8C 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 26 00 00 00 F4 03 04 00 B5 2A 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DB 2C 01 00 35 04 06 00 EB CA F6 8C 00 00 E0 [09:15:31]Write i2c OK [09:15:31]MH_I2C_Read... [09:15:32]Read from MH i2c: E2 [09:15:32]MH_I2C_Read... [09:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:32]Read from MH i2c: E2 03 00 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: E2 03 00 75 0C 00 90 00 F5 [09:15:32]RAPDU: 90 00 [09:15:32]wFMCommunicate OK [09:15:32]wFMCommunicate request_size=7 [09:15:32]MH_SAM_APDU [09:15:32]CAPDU: 80 0D 02 02 02 21 1D [09:15:32]Write to MH i2c: E2 0A 00 76 0C 80 0D 02 02 02 00 21 1D 00 00 3E [09:15:32]Write i2c OK [09:15:32]MH_I2C_Read... [09:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:32]Read from MH i2c: E2 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: E2 03 00 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: E2 03 00 76 0C 00 90 00 F6 [09:15:32]RAPDU: 90 00 [09:15:32]wFMCommunicate OK [09:15:32]wFMCommunicate request_size=4 [09:15:32]MH_SAM_APDU [09:15:32]CAPDU: 80 0D 03 02 [09:15:32]Write to MH i2c: E2 08 00 77 0C 80 0D 03 02 00 00 00 00 FE [09:15:32]Write i2c OK [09:15:32]MH_I2C_Read... [09:15:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:32]Read from MH i2c: E2 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: E2 0B 00 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: E2 0B 00 77 0C 00 E2 25 E2 B6 87 EB 4B 2A 90 00 85 [09:15:32]RAPDU: E2 25 E2 B6 87 EB 4B 2A 90 00 [09:15:32]wFMCommunicate OK [09:15:32]SAM_PROTO_SignData done [09:15:32]FM_MakeSignedData done [09:15:32]CreateOFDProtocolMessage [09:15:32]wFMCommunicate request_size=4 [09:15:32]MH_SAM_APDU [09:15:32]CAPDU: 80 11 00 00 [09:15:32]Write to MH i2c: E2 08 00 78 0C 80 11 00 00 00 00 00 00 FE [09:15:32]Write i2c OK [09:15:32]MH_I2C_Read... [09:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:32]Read from MH i2c: E2 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: E2 17 00 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: E2 17 00 78 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 51 [09:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:15:32]wFMCommunicate OK [09:15:32]CreateOFDProtocolMessage done [09:15:32]OFDSenderStorePacket 77019 [09:15:32]StoreOFDPacket docnum=77019 [09:15:32]OFD Sender: No OFD packet to send [09:15:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 E7 6C 04 01 54 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 12 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F9 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 8C 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 26 00 00 00 F4 03 04 00 B5 2A 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DB 2C 01 00 35 04 06 00 EB CA F6 8C 21 1D E2 25 E2 B6 87 EB 4B 2A [09:15:32]CheckFolder [09:15:32]dirname=/storage/ofd_packets [09:15:32]CheckFolder done [09:15:32]ProducePacketName [09:15:32]name=ofd_packets/00077019 [09:15:32]NVStorageSaveData ofd_packets/00077019 [09:15:32]File name is /storage/ofd_packets/00077019 [09:15:32]Write 298 bytes [09:15:32]NVStorageSaveData done [09:15:32]OFDSenderStorePacket done [09:15:32]KKMCreateOFDPacket done [09:15:32]NVStorageSaveData kkm_last_timestamp [09:15:32]File name is /storage/kkm_last_timestamp [09:15:32]Write 4 bytes [09:15:32]NVStorageSaveData done [09:15:32]ExternCall_PrintAddStr [09:15:32]wPrintStart [09:15:32]Write to MH i2c: 01 00 00 79 0C 85 [09:15:32]Write i2c OK [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: 01 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: 01 07 00 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: 01 07 00 79 0C 00 00 00 00 00 FF 0F 9A [09:15:32]RasterBufferAndPrint [09:15:32]line Счет N : (1)191583 [09:15:32]line ИНН: 02508201610067 [09:15:32]line Контрольно-Кассовый Чек [09:15:32]line ПРОДАЖА [09:15:32]line ТРК (МРК, ГНК) : 51 [09:15:32]line Товар: 2710194210 [09:15:32]line ДТ-К-5 [09:15:32]line 4.810 * 72.90 [09:15:32]line = 350.65 [09:15:32]line НДС 12% НСП 1% [09:15:32]line > о реализуемом товаре [09:15:32]line ОКРУГЛЕНИЕ: -0.65 [09:15:32]line ИТОГО: 350.00 [09:15:32]line Внесено: 350.00 [09:15:32]line СДАЧА: 0.00 [09:15:32]line НСП 1% : 3.10 [09:15:32]line НДС 12% : 37.24 [09:15:32]line Наличными: 350.00 [09:15:32]line Безнал.: 0.00 [09:15:32]line Место: АЗС № 106 "Партнер Нефть" [09:15:32]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:15:32]line СНО: Общий режим [09:15:32]line Чек 38 22.04.2024 09:15 [09:15:32]line Смена: 373 ФФД: 1.0 [09:15:32]line ЗНМ: 0300000141 [09:15:32]line РНМ: 0000000000091573 [09:15:32]line Версия ККМ: 001 [09:15:32]line ФМ: 0000000000874652 [09:15:32]line ФД: 77019 [09:15:32]line ФПД: 259256952299805 [09:15:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T091533&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77019&fm=259256952299805&tin=02508201610067®Number=0000000000091573&sum=35000 [09:15:32]OFD Sender: Processing packet 77019 [packets to send 129, broken 128] [09:15:32]ProducePacketName [09:15:32]name=ofd_packets/00077019 [09:15:32]OFD Sender: To server: pG, [09:15:32]CommunicateWithHost lk.salyk.kg:30040 [09:15:32]ConnectInit lk.salyk.kg [09:15:32]written 0, free lines is 4095 [09:15:32]Connected sock=10 [09:15:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 E7 6C 04 01 54 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 12 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F9 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 8C 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 26 00 00 00 F4 03 04 00 B5 2A 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DB 2C 01 00 35 04 06 00 EB CA F6 8C 21 1D E2 25 E2 B6 87 EB 4B 2A [09:15:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 B1 F9 47 00 67 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DB 2C 01 00 F4 03 04 00 38 D2 25 66 B6 04 01 00 00 2E 9E DE AC 44 30 FD 19 [09:15:33]CommunicateWithHost err = 0 [09:15:33]CheckOFDResponse [09:15:33]1017 (14) - 77093643461234 [09:15:33]1041 (16) - 0000000000874652 [09:15:33]1040 (4) - 77019 [09:15:33]1012 (4) - 22.04.2024 02:58 [09:15:33]1206 (1) - 0 [09:15:33]OFD Sender: Remove packet 77019 [09:15:33]ProducePacketName [09:15:33]name=ofd_packets/00077019 [09:15:33]NVStorageDeleteData [09:15:33]Write to MH i2c: 01 00 00 A3 0C AF [09:15:33]Write i2c OK [09:15:33]MH_I2C_Read... [09:15:33]Read from MH i2c: 01 [09:15:33]MH_I2C_Read... [09:15:33]Read from MH i2c: 01 07 00 [09:15:33]MH_I2C_Read... [09:15:33]Read from MH i2c: 01 07 00 A3 0C 00 00 00 00 00 F4 0C B6 [09:15:33]RasterBufferAndPrint [09:15:33]line [09:15:33]line [09:15:33]line [09:15:33]line [09:15:33]line [09:15:33]written 0, free lines is 3323 [09:15:33]MH_Cut [09:15:33]Write to MH i2c: D1 01 00 AA 0C 01 88 [09:15:33]Write i2c OK [09:15:33]MH_I2C_Read... [09:15:33]Read from MH i2c: D1 [09:15:33]MH_I2C_Read... [09:15:33]Read from MH i2c: D1 01 00 [09:15:33]MH_I2C_Read... [09:15:33]Read from MH i2c: D1 01 00 AA 0C 00 87 [09:15:33]Write to MH i2c: 01 00 00 AB 0C B7 [09:15:33]Write i2c OK [09:15:33]MH_I2C_Read... [09:15:33]OFD Sender: No OFD packet to send [09:15:33]*** Cut start [09:15:33]*** Partial cut [09:15:33]*** CUTSNS_PIN = 1 [09:15:33]*** CUTSNS_PIN = 0 [09:15:34]*** Brake cut motor [09:15:34]Read from MH i2c: 01 [09:15:34]MH_I2C_Read... [09:15:34]*** Stop cut motor [09:15:34]*** Cut end [09:15:34]Read from MH i2c: 01 07 00 [09:15:34]MH_I2C_Read... [09:15:34]Read from MH i2c: 01 07 00 AB 0C 00 00 00 00 00 FF 0F CC [09:15:34]process_action close_receipt done [09:15:34]requested_data is exist [09:15:34]produce_requested_data [09:15:34]requested_item fm.sn is exist - process it [09:15:34]wFMCommunicate request_size=4 [09:15:34]MH_SAM_APDU [09:15:34]CAPDU: 80 11 00 00 [09:15:34]Write to MH i2c: E2 08 00 AC 0C 80 11 00 00 00 00 00 00 32 [09:15:34]Write i2c OK [09:15:34]MH_I2C_Read... [09:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:34]Read from MH i2c: E2 [09:15:34]MH_I2C_Read... [09:15:34]Read from MH i2c: E2 17 00 [09:15:34]MH_I2C_Read... [09:15:34]Read from MH i2c: E2 17 00 AC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 85 [09:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:15:34]wFMCommunicate OK [09:15:34]requested_item fd.num is exist - process it [09:15:34]SAM_PROTO_GetFieldsCounters [09:15:34]wFMCommunicate request_size=4 [09:15:34]MH_SAM_APDU [09:15:34]CAPDU: 80 13 00 00 [09:15:34]Write to MH i2c: E2 08 00 AD 0C 80 13 00 00 00 00 00 00 35 [09:15:34]Write i2c OK [09:15:34]MH_I2C_Read... [09:15:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:34]Read from MH i2c: E2 [09:15:34]MH_I2C_Read... [09:15:34]Read from MH i2c: E2 62 00 [09:15:34]MH_I2C_Read... [09:15:34]Read from MH i2c: E2 62 00 AD 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DB 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [09:15:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DB 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:34]wFMCommunicate OK [09:15:34]SAM_PROTO_GetFieldsCounters done [09:15:34]requested_item shift.num is exist - process it [09:15:34]requested_item shift.opened is exist - process it [09:15:34]req_shift_opened [09:15:34]FM_GetShiftState [09:15:34]SAM_PROTO_GetShiftState [09:15:34]wFMCommunicate request_size=4 [09:15:34]MH_SAM_APDU [09:15:34]CAPDU: 80 13 01 00 [09:15:34]Write to MH i2c: E2 08 00 AE 0C 80 13 01 00 00 00 00 00 37 [09:15:34]Write i2c OK [09:15:34]MH_I2C_Read... [09:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:34]Read from MH i2c: E2 [09:15:34]MH_I2C_Read... [09:15:34]Read from MH i2c: E2 0E 00 [09:15:34]MH_I2C_Read... [09:15:34]Read from MH i2c: E2 0E 00 AE 0C 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 5E [09:15:34]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:15:34]wFMCommunicate OK [09:15:34]SAM_PROTO_GetShiftState done [09:15:34]FM_GetShiftState done [09:15:34]req_shift_opened done [09:15:34]requested_item shift.open_date is exist - process it [09:15:34]req_shift_open_date [09:15:34]req_shift_open_date done [09:15:34]produce_requested_data done [09:15:34]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77019,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:15:34]process_action_free close_receipt [09:15:34]json_value_free [09:15:34]json_value_free done [09:15:34]process_json_proto returns [09:15:34]Send response to host [09:15:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77019,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:15:34]free response buf [09:15:34]execute_script done [09:15:34]execute_script returns [09:15:34]free content buf [09:15:34]Sock 7.Close socket [09:15:34]Sock 7.Thread stoped [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]accept exits with 9 [09:16:38]New connection [09:16:38]New thread 3067030884 created [09:16:38]Thread 3067174244 joined [09:16:38]Waiting for new connection... [09:16:38] Sock 9.Parse request [09:16:38]Sock 9.Check first char [09:16:38]Sock 9.First char is OK [09:16:38]request: POST /json_proto HTTP/1.0 [09:16:38]Method: POST [09:16:38]URL: /json_proto [09:16:38]Method is POST - this is cgi request [09:16:38]url: /json_proto [09:16:38]query_string will be loaded in cgi processing [09:16:38]execute_cgi json_proto POST (null) [09:16:38]execute_cgi path=json_proto method=POST [09:16:38]POST find Content-Length [09:16:38]Host: 172.17.62.5:8080 [09:16:38]Content-Length: 677 [09:16:38]Content-Type: application/json [09:16:38] [09:16:38]POST finish read [09:16:38]Found Content-Length = 677 [09:16:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 6.220, "sum" : 400.57, "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:16:38]execute_script... [09:16: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)191585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 6.220, "sum" : 400.57, "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:16:38]POST & json_proto [09:16:38]process_json_proto [09:16:38]json parsed OK: [09:16:38]protocol is kg_v1.0 [09:16:38]action value=close_receipt [09:16:38]process_action close_receipt [09:16:38]cmd_close_receipt [09:16:38]MH_GetDate [09:16:38]Write to MH i2c: F0 00 00 AF 0C AA [09:16:38]Write i2c OK [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: F0 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: F0 09 00 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: F0 09 00 AF 0C 00 F8 2A 26 66 F4 E9 65 64 07 [09:16:38]GetLastDocTimeStamp 1713777333 [09:16:38]current date 1713777400 [09:16:38]FM_GetShiftState [09:16:38]SAM_PROTO_GetShiftState [09:16:38]wFMCommunicate request_size=4 [09:16:38]MH_SAM_APDU [09:16:38]CAPDU: 80 13 01 00 [09:16:38]Write to MH i2c: E2 08 00 B0 0C 80 13 01 00 00 00 00 00 39 [09:16:38]Write i2c OK [09:16:38]MH_I2C_Read... [09:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:38]Read from MH i2c: E2 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: E2 0E 00 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: E2 0E 00 B0 0C 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 60 [09:16:38]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:16:38]wFMCommunicate OK [09:16:38]SAM_PROTO_GetShiftState done [09:16:38]FM_GetShiftState done [09:16:38]opened in 1713745124 [09:16:38]opened+sec_in_day 1713831524 [09:16:38]quantity*price = 40056 [09:16:38]sum+1 = 40058 [09:16:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 39 22.04.2024 09:16 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77020 ФПД: 201982946688887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T091640&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77020&fm=201982946688887&tin=02508201610067®Number=0000000000091573&sum=40000 [09:16:39]StoreToDocumentArchive [09:16:39]shift 373 fd 77020 [09:16:39]save to /storage/0373/doc_00077020 [09:16:39]save last doc name /storage/0373/doc_00077020 to /storage/kkm_last_doc_name [09:16:39]save OK [09:16:39]Clear old archive folders... [09:16:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:39]tlvbuf is 01728800 [09:16:39]SAM_PROTO_ClearQueue [09:16:39]wFMCommunicate request_size=4 [09:16:39]MH_SAM_APDU [09:16:39]CAPDU: 80 09 00 00 [09:16:39]Write to MH i2c: E2 08 00 BD 0C 80 09 00 00 00 00 00 00 3B [09:16:39]Write i2c OK [09:16:39]MH_I2C_Read... [09:16:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:39]Read from MH i2c: E2 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 03 00 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 03 00 BD 0C 00 90 00 3D [09:16:39]RAPDU: 90 00 [09:16:39]wFMCommunicate OK [09:16:39]SAM_PROTO_ClearQueue done [09:16:39]KKMCreateOFDPacket [09:16:39]OFDProtocolAddRootSTLVToBuf [09:16:39]FM_MakeSignedData [09:16:39]FM_MakeSignedData [09:16:39]SAM_PROTO_SignData [09:16:39]wFMCommunicate request_size=4 [09:16:39]MH_SAM_APDU [09:16:39]CAPDU: 80 0D 01 02 [09:16:39]Write to MH i2c: E2 08 00 BE 0C 80 0D 01 02 00 00 00 00 43 [09:16:39]Write i2c OK [09:16:39]MH_I2C_Read... [09:16:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:39]Read from MH i2c: E2 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 03 00 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 03 00 BE 0C 00 90 00 3E [09:16:39]RAPDU: 90 00 [09:16:39]wFMCommunicate OK [09:16:39]wFMCommunicate request_size=255 [09:16:39]MH_SAM_APDU [09:16:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 27 00 00 00 F4 03 04 00 F8 2A 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DC 2C 01 00 35 04 06 00 B7 [09:16:39]Write to MH i2c: E2 02 01 BF 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 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 27 00 00 00 F4 03 04 00 F8 2A 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DC 2C 01 00 35 04 06 00 B7 00 00 DB [09:16:39]Write i2c OK [09:16:39]MH_I2C_Read... [09:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:39]Read from MH i2c: E2 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 03 00 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 03 00 BF 0C 00 90 00 3F [09:16:39]RAPDU: 90 00 [09:16:39]wFMCommunicate OK [09:16:39]wFMCommunicate request_size=10 [09:16:39]MH_SAM_APDU [09:16:39]CAPDU: 80 0D 02 02 05 B3 D1 C9 BF 77 [09:16:39]Write to MH i2c: E2 0D 00 C0 0C 80 0D 02 02 05 00 B3 D1 C9 BF 77 00 00 D3 [09:16:39]Write i2c OK [09:16:39]MH_I2C_Read... [09:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:39]Read from MH i2c: E2 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 03 00 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 03 00 C0 0C 00 90 00 40 [09:16:39]RAPDU: 90 00 [09:16:39]wFMCommunicate OK [09:16:39]wFMCommunicate request_size=4 [09:16:39]MH_SAM_APDU [09:16:39]CAPDU: 80 0D 03 02 [09:16:39]Write to MH i2c: E2 08 00 C1 0C 80 0D 03 02 00 00 00 00 48 [09:16:39]Write i2c OK [09:16:39]MH_I2C_Read... [09:16:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:39]Read from MH i2c: E2 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 0B 00 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 0B 00 C1 0C 00 99 D2 5F 76 39 5B E3 9E 90 00 9E [09:16:39]RAPDU: 99 D2 5F 76 39 5B E3 9E 90 00 [09:16:39]wFMCommunicate OK [09:16:39]SAM_PROTO_SignData done [09:16:39]FM_MakeSignedData done [09:16:39]CreateOFDProtocolMessage [09:16:39]wFMCommunicate request_size=4 [09:16:39]MH_SAM_APDU [09:16:39]CAPDU: 80 11 00 00 [09:16:39]Write to MH i2c: E2 08 00 C2 0C 80 11 00 00 00 00 00 00 48 [09:16:39]Write i2c OK [09:16:39]MH_I2C_Read... [09:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:39]Read from MH i2c: E2 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 17 00 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 17 00 C2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9B [09:16:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:16:39]wFMCommunicate OK [09:16:39]CreateOFDProtocolMessage done [09:16:39]OFDSenderStorePacket 77020 [09:16:39]StoreOFDPacket docnum=77020 [09:16:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 94 3B 07 01 49 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 27 00 00 00 F4 03 04 00 F8 2A 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DC 2C 01 00 35 04 06 00 B7 B3 D1 C9 BF 77 99 D2 5F 76 39 5B E3 9E [09:16:39]CheckFolder [09:16:39]dirname=/storage/ofd_packets [09:16:39]CheckFolder done [09:16:39]ProducePacketName [09:16:39]name=ofd_packets/00077020 [09:16:39]NVStorageSaveData ofd_packets/00077020 [09:16:39]File name is /storage/ofd_packets/00077020 [09:16:39]Write 301 bytes [09:16:39]NVStorageSaveData done [09:16:39]OFDSenderStorePacket done [09:16:39]KKMCreateOFDPacket done [09:16:39]NVStorageSaveData kkm_last_timestamp [09:16:39]File name is /storage/kkm_last_timestamp [09:16:39]Write 4 bytes [09:16:39]NVStorageSaveData done [09:16:39]ExternCall_PrintAddStr [09:16:39]wPrintStart [09:16:39]Write to MH i2c: 01 00 00 C3 0C CF [09:16:39]Write i2c OK [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: 01 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: 01 07 00 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: 01 07 00 C3 0C 00 00 00 00 00 FF 0F E4 [09:16:39]RasterBufferAndPrint [09:16:39]line Счет N : (1)191585 [09:16:39]line ИНН: 02508201610067 [09:16:39]line Контрольно-Кассовый Чек [09:16:39]line ПРОДАЖА [09:16:39]line ТРК (МРК, ГНК) : 12 [09:16:39]line Товар: 2710124130 [09:16:39]line Аи-92-К-5 [09:16:39]line 6.220 * 64.40 [09:16:39]line = 400.57 [09:16:39]line НДС 12% НСП 1% [09:16:39]line > о реализуемом товаре [09:16:39]line ОКРУГЛЕНИЕ: -0.57 [09:16:39]line ИТОГО: 400.00 [09:16:39]line Внесено: 400.00 [09:16:39]line СДАЧА: 0.00 [09:16:39]line НСП 1% : 3.54 [09:16:39]line НДС 12% : 42.54 [09:16:39]line Наличными: 400.00 [09:16:39]line Безнал.: 0.00 [09:16:39]line Место: АЗС № 106 "Партнер Нефть" [09:16:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:16:39]line СНО: Общий режим [09:16:39]line Чек 39 22.04.2024 09:16 [09:16:39]line Смена: 373 ФФД: 1.0 [09:16:39]line ЗНМ: 0300000141 [09:16:39]line РНМ: 0000000000091573 [09:16:39]line Версия ККМ: 001 [09:16:39]line ФМ: 0000000000874652 [09:16:39]line ФД: 77020 [09:16:39]line ФПД: 201982946688887 [09:16:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T091640&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77020&fm=201982946688887&tin=02508201610067®Number=0000000000091573&sum=40000 [09:16:40]written 0, free lines is 4095 [09:16:40]OFD Sender: Processing packet 77020 [packets to send 129, broken 128] [09:16:40]ProducePacketName [09:16:40]name=ofd_packets/00077020 [09:16:40]OFD Sender: To server: pG, [09:16:40]CommunicateWithHost lk.salyk.kg:30040 [09:16:40]ConnectInit lk.salyk.kg [09:16:40]Connected sock=10 [09:16:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 94 3B 07 01 49 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 27 00 00 00 F4 03 04 00 F8 2A 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DC 2C 01 00 35 04 06 00 B7 B3 D1 C9 BF 77 99 D2 5F 76 39 5B E3 9E [09:16:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 3E 40 47 00 55 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DC 2C 01 00 F4 03 04 00 7B D2 25 66 B6 04 01 00 00 12 92 DE BF B7 4F 4B 68 [09:16:40]CommunicateWithHost err = 0 [09:16:40]CheckOFDResponse [09:16:40]1017 (14) - 77093643461234 [09:16:40]1041 (16) - 0000000000874652 [09:16:40]1040 (4) - 77020 [09:16:40]1012 (4) - 22.04.2024 02:59 [09:16:40]1206 (1) - 0 [09:16:40]OFD Sender: Remove packet 77020 [09:16:40]ProducePacketName [09:16:40]name=ofd_packets/00077020 [09:16:40]NVStorageDeleteData [09:16:40]Write to MH i2c: 01 00 00 ED 0C F9 [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: 01 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: 01 07 00 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: 01 07 00 ED 0C 00 00 00 00 00 EE 0C FA [09:16:40]RasterBufferAndPrint [09:16:40]line [09:16:40]line [09:16:40]line [09:16:40]line [09:16:40]line [09:16:40]written 0, free lines is 3318 [09:16:40]MH_Cut [09:16:40]Write to MH i2c: D1 01 00 F4 0C 01 D2 [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: D1 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: D1 01 00 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: D1 01 00 F4 0C 00 D1 [09:16:40]Write to MH i2c: 01 00 00 F5 0C 01 [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:41]OFD Sender: No OFD packet to send [09:16:41]*** Cut start [09:16:41]*** Partial cut [09:16:41]*** CUTSNS_PIN = 1 [09:16:41]*** CUTSNS_PIN = 0 [09:16:41]*** Brake cut motor [09:16:41]Read from MH i2c: 01 [09:16:41]MH_I2C_Read... [09:16:41]*** Stop cut motor [09:16:41]*** Cut end [09:16:41]Read from MH i2c: 01 07 00 [09:16:41]MH_I2C_Read... [09:16:41]Read from MH i2c: 01 07 00 F5 0C 00 00 00 00 00 FF 0F 16 [09:16:41]process_action close_receipt done [09:16:41]requested_data is exist [09:16:41]produce_requested_data [09:16:41]requested_item fm.sn is exist - process it [09:16:41]wFMCommunicate request_size=4 [09:16:41]MH_SAM_APDU [09:16:41]CAPDU: 80 11 00 00 [09:16:41]Write to MH i2c: E2 08 00 F6 0C 80 11 00 00 00 00 00 00 7C [09:16:41]Write i2c OK [09:16:41]MH_I2C_Read... [09:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:42]Read from MH i2c: E2 [09:16:42]MH_I2C_Read... [09:16:42]Read from MH i2c: E2 17 00 [09:16:42]MH_I2C_Read... [09:16:42]Read from MH i2c: E2 17 00 F6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CF [09:16:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:16:42]wFMCommunicate OK [09:16:42]requested_item fd.num is exist - process it [09:16:42]SAM_PROTO_GetFieldsCounters [09:16:42]wFMCommunicate request_size=4 [09:16:42]MH_SAM_APDU [09:16:42]CAPDU: 80 13 00 00 [09:16:42]Write to MH i2c: E2 08 00 F7 0C 80 13 00 00 00 00 00 00 7F [09:16:42]Write i2c OK [09:16:42]MH_I2C_Read... [09:16:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:42]Read from MH i2c: E2 [09:16:42]MH_I2C_Read... [09:16:42]Read from MH i2c: E2 62 00 [09:16:42]MH_I2C_Read... [09:16:42]Read from MH i2c: E2 62 00 F7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DC 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [09:16:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DC 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:42]wFMCommunicate OK [09:16:42]SAM_PROTO_GetFieldsCounters done [09:16:42]requested_item shift.num is exist - process it [09:16:42]requested_item shift.opened is exist - process it [09:16:42]req_shift_opened [09:16:42]FM_GetShiftState [09:16:42]SAM_PROTO_GetShiftState [09:16:42]wFMCommunicate request_size=4 [09:16:42]MH_SAM_APDU [09:16:42]CAPDU: 80 13 01 00 [09:16:42]Write to MH i2c: E2 08 00 F8 0C 80 13 01 00 00 00 00 00 81 [09:16:42]Write i2c OK [09:16:42]MH_I2C_Read... [09:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:42]Read from MH i2c: E2 [09:16:42]MH_I2C_Read... [09:16:42]Read from MH i2c: E2 0E 00 [09:16:42]MH_I2C_Read... [09:16:42]Read from MH i2c: E2 0E 00 F8 0C 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 A8 [09:16:42]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:16:42]wFMCommunicate OK [09:16:42]SAM_PROTO_GetShiftState done [09:16:42]FM_GetShiftState done [09:16:42]req_shift_opened done [09:16:42]requested_item shift.open_date is exist - process it [09:16:42]req_shift_open_date [09:16:42]req_shift_open_date done [09:16:42]produce_requested_data done [09:16:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77020,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:16:42]process_action_free close_receipt [09:16:42]json_value_free [09:16:42]json_value_free done [09:16:42]process_json_proto returns [09:16:42]Send response to host [09:16:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77020,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:16:42]free response buf [09:16:42]execute_script done [09:16:42]execute_script returns [09:16:42]free content buf [09:16:42]Sock 9.Close socket [09:16:42]Sock 9.Thread stoped [09:16:44]accept exits with 7 [09:16:44]New connection [09:16:44]New thread 3067174244 created [09:16:44]Thread 3067030884 joined [09:16:44]Waiting for new connection... [09:16:44] Sock 7.Parse request [09:16:44]Sock 7.Check first char [09:16:44]Sock 7.First char is OK [09:16:44]request: POST /json_proto HTTP/1.0 [09:16:44]Method: POST [09:16:44]URL: /json_proto [09:16:44]Method is POST - this is cgi request [09:16:44]url: /json_proto [09:16:44]query_string will be loaded in cgi processing [09:16:44]execute_cgi json_proto POST (null) [09:16:44]execute_cgi path=json_proto method=POST [09:16:44]POST find Content-Length [09:16:44]Host: 172.17.62.5:8080 [09:16:44]Content-Length: 1213 [09:16:44]Content-Type: application/json [09:16:44] [09:16:44]POST finish read [09:16:44]Found Content-Length = 1213 [09:16:44]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191584\u000A22.04.2024 08:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74643\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:44]execute_script... [09:16:44]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191584\u000A22.04.2024 08:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74643\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:44]POST & json_proto [09:16:44]process_json_proto [09:16:44]json parsed OK: [09:16:44]protocol is kg_v1.0 [09:16:44]action value=print_text [09:16:44]process_action print_text [09:16:44]cmd_print_text [09:16:44]ExternCall_PrintAddStr [09:16:44]wPrintStart [09:16:44]Write to MH i2c: 01 00 00 F9 0C 05 [09:16:44]Write i2c OK [09:16:44]MH_I2C_Read... [09:16:44]Read from MH i2c: 01 [09:16:44]MH_I2C_Read... [09:16:44]Read from MH i2c: 01 07 00 [09:16:44]MH_I2C_Read... [09:16:44]Read from MH i2c: 01 07 00 F9 0C 00 00 00 00 00 FF 0F 1A [09:16:44]RasterBufferAndPrint [09:16:44]line *****ТОВАРНЫЙ ЧЕК***** [09:16:44]line АЗС 106 [09:16:44]line Партнер нефть [09:16:44]line 02508201610067 [09:16:44]line Кассир : Токторбаева Н. [09:16:44]line Счет N : (1)191584 [09:16:44]line 22.04.2024 08:58 [09:16:44]line ПРОДАЖА [09:16:44]line ТРК (МРК, ГНК): 43 [09:16:44]line Вид ГСМ : 2710124130 [09:16:44]line Аи-92-К-5 [09:16:44]line 20.000 x 64.40 [09:16:44]line ИТОГ: 1288.00 [09:16:44]line Тип оплаты: Талоны: Топливная Карта [09:16:44]line 74643 [09:16:44]line ______________________ [09:16:44]line (подпись) [09:16:44]written 0, free lines is 4095 [09:16:44]Write to MH i2c: 01 00 00 0E 0D 1B [09:16:44]Write i2c OK [09:16:44]MH_I2C_Read... [09:16:44]Read from MH i2c: 01 [09:16:44]MH_I2C_Read... [09:16:44]Read from MH i2c: 01 07 00 [09:16:44]MH_I2C_Read... [09:16:44]Read from MH i2c: 01 07 00 0E 0D 00 00 00 00 00 F6 0D 25 [09:16:44]RasterBufferAndPrint [09:16:44]line [09:16:44]line [09:16:44]line [09:16:44]line [09:16:44]line [09:16:44]written 0, free lines is 3578 [09:16:44]MH_Cut [09:16:44]Write to MH i2c: D1 01 00 15 0D 01 F4 [09:16:44]Write i2c OK [09:16:44]MH_I2C_Read... [09:16:44]Read from MH i2c: D1 [09:16:44]MH_I2C_Read... [09:16:44]Read from MH i2c: D1 01 00 [09:16:44]MH_I2C_Read... [09:16:44]Read from MH i2c: D1 01 00 15 0D 00 F3 [09:16:44]Write to MH i2c: 01 00 00 16 0D 23 [09:16:44]Write i2c OK [09:16:44]MH_I2C_Read... [09:16:45]*** Cut start [09:16:45]*** Partial cut [09:16:45]*** CUTSNS_PIN = 1 [09:16:45]*** CUTSNS_PIN = 0 [09:16:45]*** Brake cut motor [09:16:45]Read from MH i2c: 01 [09:16:45]MH_I2C_Read... [09:16:45]*** Stop cut motor [09:16:46]*** Cut end [09:16:46]Read from MH i2c: 01 07 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: 01 07 00 16 0D 00 00 00 00 00 FF 0F 38 [09:16:46]process_action print_text done [09:16:46]requested_data is exist [09:16:46]produce_requested_data [09:16:46]requested_item fm.sn is exist - process it [09:16:46]wFMCommunicate request_size=4 [09:16:46]MH_SAM_APDU [09:16:46]CAPDU: 80 11 00 00 [09:16:46]Write to MH i2c: E2 08 00 17 0D 80 11 00 00 00 00 00 00 9E [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]OFD Sender: No OFD packet to send [09:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:46]Read from MH i2c: E2 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 17 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 17 00 17 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F1 [09:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:16:46]wFMCommunicate OK [09:16:46]requested_item fd.num is exist - process it [09:16:46]SAM_PROTO_GetFieldsCounters [09:16:46]wFMCommunicate request_size=4 [09:16:46]MH_SAM_APDU [09:16:46]CAPDU: 80 13 00 00 [09:16:46]Write to MH i2c: E2 08 00 18 0D 80 13 00 00 00 00 00 00 A1 [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:46]Read from MH i2c: E2 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 62 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 62 00 18 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DC 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [09:16:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DC 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:46]wFMCommunicate OK [09:16:46]SAM_PROTO_GetFieldsCounters done [09:16:46]requested_item shift.num is exist - process it [09:16:46]requested_item shift.opened is exist - process it [09:16:46]req_shift_opened [09:16:46]FM_GetShiftState [09:16:46]SAM_PROTO_GetShiftState [09:16:46]wFMCommunicate request_size=4 [09:16:46]MH_SAM_APDU [09:16:46]CAPDU: 80 13 01 00 [09:16:46]Write to MH i2c: E2 08 00 19 0D 80 13 01 00 00 00 00 00 A3 [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:46]Read from MH i2c: E2 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 0E 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 0E 00 19 0D 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 CA [09:16:46]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:16:46]wFMCommunicate OK [09:16:46]SAM_PROTO_GetShiftState done [09:16:46]FM_GetShiftState done [09:16:46]req_shift_opened done [09:16:46]requested_item shift.open_date is exist - process it [09:16:46]req_shift_open_date [09:16:46]req_shift_open_date done [09:16:46]produce_requested_data done [09:16:46]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77020,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:16:46]process_action_free print_text [09:16:46]json_value_free [09:16:46]json_value_free done [09:16:46]process_json_proto returns [09:16:46]Send response to host [09:16:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77020,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:16:46]free response buf [09:16:46]execute_script done [09:16:46]execute_script returns [09:16:46]free content buf [09:16:46]Sock 7.Close socket [09:16:46]Sock 7.Thread stoped [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:10]int [09:17:10]Write to MH i2c: 01 00 00 1A 0D 27 [09:17:10]*** FLAG_PRN_PAP1 set [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 07 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 07 00 1A 0D 00 01 00 00 00 FF 0F 3D [09:17:10]state=0 [09:17:10]No paper [09:17:10]int [09:17:10]Write to MH i2c: 01 00 00 1B 0D 28 [09:17:10]*** FLAG_PRN_PAP1 reset [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 07 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 07 00 1B 0D 00 00 00 00 00 FF 0F 3D [09:17:10]state=0 [09:17:10]int [09:17:10]Write to MH i2c: 01 00 00 1C 0D 29 [09:17:10]*** FLAG_PRN_PAP1 set [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 07 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 07 00 1C 0D 00 01 00 00 00 FF 0F 3F [09:17:10]state=0 [09:17:10]No paper [09:17:10]int [09:17:10]Write to MH i2c: 01 00 00 1D 0D 2A [09:17:10]*** FLAG_PRN_PAP2 set [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 07 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 07 00 1D 0D 00 03 00 00 00 FF 0F 42 [09:17:10]state=0 [09:17:10]No paper [09:17:10]Cover opened [09:17:11]OFD Sender: No OFD packet to send [09:17:15]Write to MH i2c: 01 00 00 1E 0D 2B [09:17:15]Write i2c OK [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: 01 [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: 01 07 00 [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: 01 07 00 1E 0D 00 03 00 00 00 FF 0F 43 [09:17:15]state=3 [09:17:15]No paper [09:17:15]Cover opened [09:17:16]OFD Sender: No OFD packet to send [09:17:16]int [09:17:16]Write to MH i2c: 01 00 00 1F 0D 2C [09:17:16]*** FLAG_PRN_PAP1 reset [09:17:16]*** FLAG_PRN_PAP2 reset [09:17:16]Write i2c OK [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: 01 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: 01 07 00 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: 01 07 00 1F 0D 00 00 00 00 00 FF 0F 41 [09:17:16]state=3 [09:17:16]Cover closed [09:17:17]int [09:17:17]Write to MH i2c: 01 00 00 20 0D 2D [09:17:17]*** FLAG_PRN_KEY set [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: 01 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: 01 07 00 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: 01 07 00 20 0D 00 08 00 00 00 FF 0F 4A [09:17:17]state=0 [09:17:17]Key pressed [09:17:17]Feed [09:17:17]Write to MH i2c: D8 00 00 21 0D 05 [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: D8 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: D8 01 00 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: D8 01 00 21 0D 00 06 [09:17:17]int [09:17:17]Write to MH i2c: 01 00 00 22 0D 2F [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: 01 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: 01 07 00 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: 01 07 00 22 0D 00 48 00 00 00 3C 00 BA [09:17:17]state=2 [09:17:17]Key pressed [09:17:17]int [09:17:17]Write to MH i2c: 01 00 00 23 0D 30 [09:17:17]*** FLAG_PRN_KEY reset [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: 01 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: 01 07 00 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: 01 07 00 23 0D 00 00 00 00 00 FF 0F 45 [09:17:17]state=2 [09:17:17]Stop feed [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:48]accept exits with 9 [09:17:48]New connection [09:17:48]New thread 3067030884 created [09:17:48]Thread 3067174244 joined [09:17:48]Waiting for new connection... [09:17:48] Sock 9.Parse request [09:17:48]Sock 9.Check first char [09:17:48]Sock 9.First char is OK [09:17:48]request: POST /json_proto HTTP/1.0 [09:17:48]Method: POST [09:17:48]URL: /json_proto [09:17:48]Method is POST - this is cgi request [09:17:48]url: /json_proto [09:17:48]query_string will be loaded in cgi processing [09:17:48]execute_cgi json_proto POST (null) [09:17:48]execute_cgi path=json_proto method=POST [09:17:48]POST find Content-Length [09:17:48]Host: 172.17.62.5:8080 [09:17:48]Content-Length: 987 [09:17:48]Content-Type: application/json [09:17:48] [09:17:48]POST finish read [09:17:48]Found Content-Length = 987 [09:17:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 23.190, "sum" : 735.12, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 23.19 \u0441\u043E\u043C", "deposit" : 1000.00, "total" : 735.00, "payments": [ { "type": 0, "sum" : 735.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:48]execute_script... [09:17: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)191582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 23.190, "sum" : 735.12, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 23.19 \u0441\u043E\u043C", "deposit" : 1000.00, "total" : 735.00, "payments": [ { "type": 0, "sum" : 735.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:48]POST & json_proto [09:17:48]process_json_proto [09:17:48]json parsed OK: [09:17:48]protocol is kg_v1.0 [09:17:48]action value=close_receipt [09:17:48]process_action close_receipt [09:17:48]cmd_close_receipt [09:17:48]MH_GetDate [09:17:48]Write to MH i2c: F0 00 00 24 0D 20 [09:17:48]Write i2c OK [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: F0 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: F0 09 00 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: F0 09 00 24 0D 00 3E 2B 26 66 F4 E9 65 64 C4 [09:17:48]GetLastDocTimeStamp 1713777400 [09:17:48]current date 1713777470 [09:17:48]FM_GetShiftState [09:17:48]SAM_PROTO_GetShiftState [09:17:48]wFMCommunicate request_size=4 [09:17:48]MH_SAM_APDU [09:17:48]CAPDU: 80 13 01 00 [09:17:48]Write to MH i2c: E2 08 00 25 0D 80 13 01 00 00 00 00 00 AF [09:17:48]Write i2c OK [09:17:48]MH_I2C_Read... [09:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:48]Read from MH i2c: E2 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 0E 00 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 0E 00 25 0D 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 D6 [09:17:48]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:17:48]wFMCommunicate OK [09:17:48]SAM_PROTO_GetShiftState done [09:17:48]FM_GetShiftState done [09:17:48]opened in 1713745124 [09:17:48]opened+sec_in_day 1713831524 [09:17:48]quantity*price = 73512 [09:17:48]sum+1 = 73513 [09:17:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 735.00 Внесено: 1000.00 СДАЧА: 265.00 НСП 1% : 6.50 НДС 12% : 78.07 Наличными: 735.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 40 22.04.2024 09:17 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 23.19 сом ФМ: 0000000000874652 ФД: 77021 ФПД: 120358902660943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T091750&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77021&fm=120358902660943&tin=02508201610067®Number=0000000000091573&sum=73500 [09:17:49]StoreToDocumentArchive [09:17:49]shift 373 fd 77021 [09:17:49]save to /storage/0373/doc_00077021 [09:17:49]save last doc name /storage/0373/doc_00077021 to /storage/kkm_last_doc_name [09:17:49]save OK [09:17:49]Clear old archive folders... [09:17:49]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:17:49]tlvbuf is 01701190 [09:17:49]SAM_PROTO_ClearQueue [09:17:49]wFMCommunicate request_size=4 [09:17:49]MH_SAM_APDU [09:17:49]CAPDU: 80 09 00 00 [09:17:49]Write to MH i2c: E2 08 00 32 0D 80 09 00 00 00 00 00 00 B1 [09:17:49]Write i2c OK [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: E2 [09:17:49]MH_I2C_Read... [09:17:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:49]Read from MH i2c: E2 03 00 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: E2 03 00 32 0D 00 90 00 B3 [09:17:49]RAPDU: 90 00 [09:17:49]wFMCommunicate OK [09:17:49]SAM_PROTO_ClearQueue done [09:17:49]KKMCreateOFDPacket [09:17:49]OFDProtocolAddRootSTLVToBuf [09:17:49]FM_MakeSignedData [09:17:49]FM_MakeSignedData [09:17:49]SAM_PROTO_SignData [09:17:49]wFMCommunicate request_size=4 [09:17:49]MH_SAM_APDU [09:17:49]CAPDU: 80 0D 01 02 [09:17:49]Write to MH i2c: E2 08 00 33 0D 80 0D 01 02 00 00 00 00 B9 [09:17:49]Write i2c OK [09:17:49]MH_I2C_Read... [09:17:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:49]Read from MH i2c: E2 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: E2 03 00 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: E2 03 00 33 0D 00 90 00 B4 [09:17:49]RAPDU: 90 00 [09:17:49]wFMCommunicate OK [09:17:49]wFMCommunicate request_size=255 [09:17:49]MH_SAM_APDU [09:17:49]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 96 5A 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 28 1F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 1E 00 00 00 00 07 04 06 00 1C 1F 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 3E 2B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DD 2C 01 00 35 04 06 00 6D 77 [09:17:49]Write to MH i2c: E2 02 01 34 0D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 96 5A 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 28 1F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 1E 00 00 00 00 07 04 06 00 1C 1F 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 3E 2B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DD 2C 01 00 35 04 06 00 6D 77 00 00 32 [09:17:49]Write i2c OK [09:17:49]MH_I2C_Read... [09:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:49]Read from MH i2c: E2 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: E2 03 00 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: E2 03 00 34 0D 00 90 00 B5 [09:17:49]RAPDU: 90 00 [09:17:49]wFMCommunicate OK [09:17:49]wFMCommunicate request_size=9 [09:17:49]MH_SAM_APDU [09:17:49]CAPDU: 80 0D 02 02 04 3D A3 7F 4F [09:17:49]Write to MH i2c: E2 0C 00 35 0D 80 0D 02 02 04 00 3D A3 7F 4F 00 00 72 [09:17:49]Write i2c OK [09:17:49]MH_I2C_Read... [09:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:49]Read from MH i2c: E2 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: E2 03 00 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: E2 03 00 35 0D 00 90 00 B6 [09:17:49]RAPDU: 90 00 [09:17:49]wFMCommunicate OK [09:17:49]wFMCommunicate request_size=4 [09:17:49]MH_SAM_APDU [09:17:49]CAPDU: 80 0D 03 02 [09:17:49]Write to MH i2c: E2 08 00 36 0D 80 0D 03 02 00 00 00 00 BE [09:17:49]Write i2c OK [09:17:49]MH_I2C_Read... [09:17:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:49]Read from MH i2c: E2 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: E2 0B 00 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: E2 0B 00 36 0D 00 08 96 B3 8A 67 09 9F 70 90 00 19 [09:17:49]RAPDU: 08 96 B3 8A 67 09 9F 70 90 00 [09:17:49]wFMCommunicate OK [09:17:49]SAM_PROTO_SignData done [09:17:49]FM_MakeSignedData done [09:17:49]CreateOFDProtocolMessage [09:17:49]wFMCommunicate request_size=4 [09:17:49]MH_SAM_APDU [09:17:49]CAPDU: 80 11 00 00 [09:17:49]Write to MH i2c: E2 08 00 37 0D 80 11 00 00 00 00 00 00 BE [09:17:49]Write i2c OK [09:17:49]MH_I2C_Read... [09:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:49]Read from MH i2c: E2 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: E2 17 00 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: E2 17 00 37 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 11 [09:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:17:49]wFMCommunicate OK [09:17:49]CreateOFDProtocolMessage done [09:17:49]OFDSenderStorePacket 77021 [09:17:49]StoreOFDPacket docnum=77021 [09:17:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 5D 05 06 01 72 48 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 96 5A 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 28 1F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 1E 00 00 00 00 07 04 06 00 1C 1F 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 3E 2B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DD 2C 01 00 35 04 06 00 6D 77 3D A3 7F 4F 08 96 B3 8A 67 09 9F 70 [09:17:49]CheckFolder [09:17:49]dirname=/storage/ofd_packets [09:17:49]CheckFolder done [09:17:49]ProducePacketName [09:17:49]name=ofd_packets/00077021 [09:17:49]NVStorageSaveData ofd_packets/00077021 [09:17:49]File name is /storage/ofd_packets/00077021 [09:17:49]Write 300 bytes [09:17:49]NVStorageSaveData done [09:17:49]OFDSenderStorePacket done [09:17:49]KKMCreateOFDPacket done [09:17:49]NVStorageSaveData kkm_last_timestamp [09:17:49]File name is /storage/kkm_last_timestamp [09:17:49]Write 4 bytes [09:17:49]NVStorageSaveData done [09:17:49]ExternCall_PrintAddStr [09:17:49]wPrintStart [09:17:49]Write to MH i2c: 01 00 00 38 0D 45 [09:17:49]Write i2c OK [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: 01 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: 01 07 00 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: 01 07 00 38 0D 00 00 00 00 00 FF 0F 5A [09:17:49]RasterBufferAndPrint [09:17:49]line Счет N : (1)191582 [09:17:49]line ИНН: 02508201610067 [09:17:49]line Контрольно-Кассовый Чек [09:17:49]line ПРОДАЖА [09:17:49]line ТРК (МРК, ГНК) : 71 [09:17:49]line Товар: 2711190000 [09:17:49]line ГАЗ-К-5 [09:17:49]line 23.190 * 31.70 [09:17:49]line = 735.12 [09:17:49]line НДС 12% НСП 1% [09:17:49]line > о реализуемом товаре [09:17:49]line ОКРУГЛЕНИЕ: -0.12 [09:17:49]line ИТОГО: 735.00 [09:17:49]line Внесено: 1000.00 [09:17:49]line СДАЧА: 265.00 [09:17:49]line НСП 1% : 6.50 [09:17:49]line НДС 12% : 78.07 [09:17:49]line Наличными: 735.00 [09:17:49]line Безнал.: 0.00 [09:17:49]line Место: АЗС № 106 "Партнер Нефть" [09:17:49]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:17:49]line СНО: Общий режим [09:17:49]line Чек 40 22.04.2024 09:17 [09:17:49]line Смена: 373 ФФД: 1.0 [09:17:49]line ЗНМ: 0300000141 [09:17:49]line РНМ: 0000000000091573 [09:17:49]line Версия ККМ: 001 [09:17:49]line [09:17:49]line Дисконтная программа [09:17:49]line СУГ [09:17:49]line номер 106 [09:17:49]line сэкономлено 23.19 сом [09:17:49]line ФМ: 0000000000874652 [09:17:49]line ФД: 77021 [09:17:49]line ФПД: 120358902660943 [09:17:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T091750&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77021&fm=120358902660943&tin=02508201610067®Number=0000000000091573&sum=73500 [09:17:50]OFD Sender: Processing packet 77021 [packets to send 129, broken 128] [09:17:50]ProducePacketName [09:17:50]name=ofd_packets/00077021 [09:17:50]OFD Sender: To server: pG, [09:17:50]CommunicateWithHost lk.salyk.kg:30040 [09:17:50]ConnectInit lk.salyk.kg [09:17:50]written 0, free lines is 4095 [09:17:50]Connected sock=10 [09:17:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 5D 05 06 01 72 48 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 96 5A 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 28 1F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 1E 00 00 00 00 07 04 06 00 1C 1F 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 3E 2B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DD 2C 01 00 35 04 06 00 6D 77 3D A3 7F 4F 08 96 B3 8A 67 09 9F 70 [09:17:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 8F 79 47 00 6C 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DD 2C 01 00 F4 03 04 00 C1 D2 25 66 B6 04 01 00 00 06 A9 41 1D 53 A5 63 03 [09:17:50]CommunicateWithHost err = 0 [09:17:50]CheckOFDResponse [09:17:50]1017 (14) - 77093643461234 [09:17:50]1041 (16) - 0000000000874652 [09:17:50]1040 (4) - 77021 [09:17:50]1012 (4) - 22.04.2024 03:00 [09:17:50]1206 (1) - 0 [09:17:50]OFD Sender: Remove packet 77021 [09:17:50]ProducePacketName [09:17:50]name=ofd_packets/00077021 [09:17:50]NVStorageDeleteData [09:17:50]Write to MH i2c: 01 00 00 67 0D 74 [09:17:50]Write i2c OK [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: 01 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: 01 07 00 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: 01 07 00 67 0D 00 00 00 00 00 92 0C 19 [09:17:50]RasterBufferAndPrint [09:17:50]line [09:17:50]line [09:17:50]line [09:17:50]line [09:17:50]line [09:17:50]written 0, free lines is 3225 [09:17:50]MH_Cut [09:17:50]Write to MH i2c: D1 01 00 6E 0D 01 4D [09:17:50]Write i2c OK [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: D1 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: D1 01 00 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: D1 01 00 6E 0D 00 4C [09:17:50]Write to MH i2c: 01 00 00 6F 0D 7C [09:17:50]Write i2c OK [09:17:50]MH_I2C_Read... [09:17:50]OFD Sender: No OFD packet to send [09:17:51]*** Cut start [09:17:51]*** Partial cut [09:17:51]*** CUTSNS_PIN = 1 [09:17:51]*** CUTSNS_PIN = 0 [09:17:51]*** Brake cut motor [09:17:51]Read from MH i2c: 01 [09:17:51]MH_I2C_Read... [09:17:51]*** Stop cut motor [09:17:51]*** Cut end [09:17:51]Read from MH i2c: 01 07 00 [09:17:51]MH_I2C_Read... [09:17:51]Read from MH i2c: 01 07 00 6F 0D 00 00 00 00 00 FF 0F 91 [09:17:51]process_action close_receipt done [09:17:51]requested_data is exist [09:17:51]produce_requested_data [09:17:51]requested_item fm.sn is exist - process it [09:17:51]wFMCommunicate request_size=4 [09:17:51]MH_SAM_APDU [09:17:51]CAPDU: 80 11 00 00 [09:17:51]Write to MH i2c: E2 08 00 70 0D 80 11 00 00 00 00 00 00 F7 [09:17:51]Write i2c OK [09:17:51]MH_I2C_Read... [09:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:51]Read from MH i2c: E2 [09:17:51]MH_I2C_Read... [09:17:51]Read from MH i2c: E2 17 00 [09:17:51]MH_I2C_Read... [09:17:51]Read from MH i2c: E2 17 00 70 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4A [09:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:17:51]wFMCommunicate OK [09:17:51]requested_item fd.num is exist - process it [09:17:51]SAM_PROTO_GetFieldsCounters [09:17:51]wFMCommunicate request_size=4 [09:17:51]MH_SAM_APDU [09:17:51]CAPDU: 80 13 00 00 [09:17:51]Write to MH i2c: E2 08 00 71 0D 80 13 00 00 00 00 00 00 FA [09:17:51]Write i2c OK [09:17:51]MH_I2C_Read... [09:17:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:52]Read from MH i2c: E2 [09:17:52]MH_I2C_Read... [09:17:52]Read from MH i2c: E2 62 00 [09:17:52]MH_I2C_Read... [09:17:52]Read from MH i2c: E2 62 00 71 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DD 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [09:17:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DD 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:52]wFMCommunicate OK [09:17:52]SAM_PROTO_GetFieldsCounters done [09:17:52]requested_item shift.num is exist - process it [09:17:52]requested_item shift.opened is exist - process it [09:17:52]req_shift_opened [09:17:52]FM_GetShiftState [09:17:52]SAM_PROTO_GetShiftState [09:17:52]wFMCommunicate request_size=4 [09:17:52]MH_SAM_APDU [09:17:52]CAPDU: 80 13 01 00 [09:17:52]Write to MH i2c: E2 08 00 72 0D 80 13 01 00 00 00 00 00 FC [09:17:52]Write i2c OK [09:17:52]MH_I2C_Read... [09:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:52]Read from MH i2c: E2 [09:17:52]MH_I2C_Read... [09:17:52]Read from MH i2c: E2 0E 00 [09:17:52]MH_I2C_Read... [09:17:52]Read from MH i2c: E2 0E 00 72 0D 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 23 [09:17:52]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:17:52]wFMCommunicate OK [09:17:52]SAM_PROTO_GetShiftState done [09:17:52]FM_GetShiftState done [09:17:52]req_shift_opened done [09:17:52]requested_item shift.open_date is exist - process it [09:17:52]req_shift_open_date [09:17:52]req_shift_open_date done [09:17:52]produce_requested_data done [09:17:52]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77021,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:17:52]process_action_free close_receipt [09:17:52]json_value_free [09:17:52]json_value_free done [09:17:52]process_json_proto returns [09:17:52]Send response to host [09:17:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77021,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:17:52]free response buf [09:17:52]execute_script done [09:17:52]execute_script returns [09:17:52]free content buf [09:17:52]Sock 9.Close socket [09:17:52]Sock 9.Thread stoped [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:36]accept exits with 7 [09:19:36]New connection [09:19:36]New thread 3067174244 created [09:19:36]Thread 3067030884 joined [09:19:36]Waiting for new connection... [09:19:36] Sock 7.Parse request [09:19:36]Sock 7.Check first char [09:19:36]Sock 7.First char is OK [09:19:36]request: POST /json_proto HTTP/1.0 [09:19:36]Method: POST [09:19:36]URL: /json_proto [09:19:36]Method is POST - this is cgi request [09:19:36]url: /json_proto [09:19:36]query_string will be loaded in cgi processing [09:19:36]execute_cgi json_proto POST (null) [09:19:36]execute_cgi path=json_proto method=POST [09:19:36]POST find Content-Length [09:19:36]Host: 172.17.62.5:8080 [09:19:36]Content-Length: 1175 [09:19:36]Content-Type: application/json [09:19:36] [09:19:36]POST finish read [09:19:36]Found Content-Length = 1175 [09:19:36]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191586\u000A22.04.2024 09:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1932.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102836\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:36]execute_script... [09:19:36]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191586\u000A22.04.2024 09:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1932.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102836\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:36]POST & json_proto [09:19:36]process_json_proto [09:19:36]json parsed OK: [09:19:36]protocol is kg_v1.0 [09:19:36]action value=print_text [09:19:36]process_action print_text [09:19:36]cmd_print_text [09:19:36]ExternCall_PrintAddStr [09:19:36]wPrintStart [09:19:36]Write to MH i2c: 01 00 00 73 0D 80 [09:19:36]Write i2c OK [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: 01 [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: 01 07 00 [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: 01 07 00 73 0D 00 00 00 00 00 FF 0F 95 [09:19:36]RasterBufferAndPrint [09:19:36]line *****ТОВАРНЫЙ ЧЕК***** [09:19:36]line АЗС 106 [09:19:36]line Партнер нефть [09:19:36]line 02508201610067 [09:19:36]line Кассир : Токторбаева Н. [09:19:36]line Счет N : (1)191586 [09:19:36]line 22.04.2024 09:00 [09:19:36]line ПРОДАЖА [09:19:36]line ТРК (МРК, ГНК): 33 [09:19:36]line Вид ГСМ : 2710124130 [09:19:36]line Аи-92-К-5 [09:19:36]line 30.000 x 64.40 [09:19:36]line ИТОГ: 1932.00 [09:19:36]line Тип оплаты: Талоны: ТК ГПНА Online [09:19:36]line 30102836 [09:19:36]line ______________________ [09:19:36]line (подпись) [09:19:36]written 0, free lines is 4095 [09:19:36]Write to MH i2c: 01 00 00 88 0D 95 [09:19:36]Write i2c OK [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: 01 [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: 01 07 00 [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: 01 07 00 88 0D 00 00 00 00 00 F4 0D 9D [09:19:36]RasterBufferAndPrint [09:19:36]line [09:19:36]line [09:19:36]line [09:19:36]line [09:19:36]line [09:19:36]written 0, free lines is 3574 [09:19:36]MH_Cut [09:19:36]Write to MH i2c: D1 01 00 8F 0D 01 6E [09:19:36]Write i2c OK [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: D1 [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: D1 01 00 [09:19:36]MH_I2C_Read... [09:19:36]Read from MH i2c: D1 01 00 8F 0D 00 6D [09:19:36]Write to MH i2c: 01 00 00 90 0D 9D [09:19:36]Write i2c OK [09:19:36]MH_I2C_Read... [09:19:37]*** Cut start [09:19:37]*** Partial cut [09:19:37]*** CUTSNS_PIN = 1 [09:19:37]*** CUTSNS_PIN = 0 [09:19:37]*** Brake cut motor [09:19:37]Read from MH i2c: 01 [09:19:37]MH_I2C_Read... [09:19:37]*** Stop cut motor [09:19:37]*** Cut end [09:19:37]Read from MH i2c: 01 07 00 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: 01 07 00 90 0D 00 00 00 00 00 FF 0F B2 [09:19:37]process_action print_text done [09:19:37]requested_data is exist [09:19:37]produce_requested_data [09:19:37]requested_item fm.sn is exist - process it [09:19:37]wFMCommunicate request_size=4 [09:19:37]MH_SAM_APDU [09:19:37]CAPDU: 80 11 00 00 [09:19:37]Write to MH i2c: E2 08 00 91 0D 80 11 00 00 00 00 00 00 18 [09:19:37]Write i2c OK [09:19:37]MH_I2C_Read... [09:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:37]Read from MH i2c: E2 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: E2 17 00 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: E2 17 00 91 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6B [09:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:19:37]wFMCommunicate OK [09:19:37]requested_item fd.num is exist - process it [09:19:37]SAM_PROTO_GetFieldsCounters [09:19:37]wFMCommunicate request_size=4 [09:19:37]MH_SAM_APDU [09:19:37]CAPDU: 80 13 00 00 [09:19:37]Write to MH i2c: E2 08 00 92 0D 80 13 00 00 00 00 00 00 1B [09:19:37]Write i2c OK [09:19:37]MH_I2C_Read... [09:19:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:37]Read from MH i2c: E2 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: E2 62 00 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: E2 62 00 92 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DD 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [09:19:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DD 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:37]wFMCommunicate OK [09:19:37]SAM_PROTO_GetFieldsCounters done [09:19:37]requested_item shift.num is exist - process it [09:19:37]requested_item shift.opened is exist - process it [09:19:37]req_shift_opened [09:19:37]FM_GetShiftState [09:19:37]SAM_PROTO_GetShiftState [09:19:37]wFMCommunicate request_size=4 [09:19:37]MH_SAM_APDU [09:19:37]CAPDU: 80 13 01 00 [09:19:37]Write to MH i2c: E2 08 00 93 0D 80 13 01 00 00 00 00 00 1D [09:19:37]Write i2c OK [09:19:37]MH_I2C_Read... [09:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:37]Read from MH i2c: E2 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: E2 0E 00 [09:19:37]MH_I2C_Read... [09:19:37]Read from MH i2c: E2 0E 00 93 0D 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 44 [09:19:37]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:19:37]wFMCommunicate OK [09:19:37]SAM_PROTO_GetShiftState done [09:19:37]FM_GetShiftState done [09:19:37]req_shift_opened done [09:19:37]requested_item shift.open_date is exist - process it [09:19:37]req_shift_open_date [09:19:37]req_shift_open_date done [09:19:37]produce_requested_data done [09:19:37]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77021,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:19:37]process_action_free print_text [09:19:37]json_value_free [09:19:37]json_value_free done [09:19:37]process_json_proto returns [09:19:37]Send response to host [09:19:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77021,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:19:37]free response buf [09:19:37]execute_script done [09:19:37]execute_script returns [09:19:37]free content buf [09:19:37]Sock 7.Close socket [09:19:37]Sock 7.Thread stoped [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:51]OFD Sender: No OFD packet to send [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]OFD Sender: No OFD packet to send [09:21:41]OFD Sender: No OFD packet to send [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:41]OFD Sender: No OFD packet to send [09:22:46]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]OFD Sender: No OFD packet to send [09:24:54]accept exits with 9 [09:24:54]New connection [09:24:54]New thread 3067030884 created [09:24:54]Thread 3067174244 joined [09:24:54]Waiting for new connection... [09:24:54] Sock 9.Parse request [09:24:54]Sock 9.Check first char [09:24:54]Sock 9.First char is OK [09:24:54]request: POST /json_proto HTTP/1.0 [09:24:54]Method: POST [09:24:54]URL: /json_proto [09:24:54]Method is POST - this is cgi request [09:24:54]url: /json_proto [09:24:54]query_string will be loaded in cgi processing [09:24:54]execute_cgi json_proto POST (null) [09:24:54]execute_cgi path=json_proto method=POST [09:24:54]POST find Content-Length [09:24:54]Host: 172.17.62.5:8080 [09:24:54]Content-Length: 215 [09:24:54]Content-Type: application/json [09:24:54] [09:24:54]POST finish read [09:24:54]Found Content-Length = 215 [09:24:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:54]execute_script... [09:24:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:54]POST & json_proto [09:24:54]process_json_proto [09:24:54]json parsed OK: [09:24:54]protocol is kg_v1.0 [09:24:54]action value=get_value [09:24:54]process_action get_value [09:24:54]cmd_get_value [09:24:54]process_action get_value done [09:24:54]requested_data is exist [09:24:54]produce_requested_data [09:24:54]requested_item kkm.sn is exist - process it [09:24:54]requested_item kkm.ver is exist - process it [09:24:54]requested_item fm.sn is exist - process it [09:24:54]wFMCommunicate request_size=4 [09:24:54]MH_SAM_APDU [09:24:54]CAPDU: 80 11 00 00 [09:24:54]Write to MH i2c: E2 08 00 94 0D 80 11 00 00 00 00 00 00 1B [09:24:54]Write i2c OK [09:24:54]MH_I2C_Read... [09:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:54]Read from MH i2c: E2 [09:24:54]MH_I2C_Read... [09:24:54]Read from MH i2c: E2 17 00 [09:24:54]MH_I2C_Read... [09:24:54]Read from MH i2c: E2 17 00 94 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6E [09:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:24:54]wFMCommunicate OK [09:24:54]requested_item fd.num is exist - process it [09:24:54]SAM_PROTO_GetFieldsCounters [09:24:54]wFMCommunicate request_size=4 [09:24:54]MH_SAM_APDU [09:24:54]CAPDU: 80 13 00 00 [09:24:54]Write to MH i2c: E2 08 00 95 0D 80 13 00 00 00 00 00 00 1E [09:24:54]Write i2c OK [09:24:54]MH_I2C_Read... [09:24:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:55]Read from MH i2c: E2 [09:24:55]MH_I2C_Read... [09:24:55]Read from MH i2c: E2 62 00 [09:24:55]MH_I2C_Read... [09:24:55]Read from MH i2c: E2 62 00 95 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DD 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [09:24:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DD 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:55]wFMCommunicate OK [09:24:55]SAM_PROTO_GetFieldsCounters done [09:24:55]requested_item shift.num is exist - process it [09:24:55]requested_item shift.opened is exist - process it [09:24:55]req_shift_opened [09:24:55]FM_GetShiftState [09:24:55]SAM_PROTO_GetShiftState [09:24:55]wFMCommunicate request_size=4 [09:24:55]MH_SAM_APDU [09:24:55]CAPDU: 80 13 01 00 [09:24:55]Write to MH i2c: E2 08 00 96 0D 80 13 01 00 00 00 00 00 20 [09:24:55]Write i2c OK [09:24:55]MH_I2C_Read... [09:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:55]Read from MH i2c: E2 [09:24:55]MH_I2C_Read... [09:24:55]Read from MH i2c: E2 0E 00 [09:24:55]MH_I2C_Read... [09:24:55]Read from MH i2c: E2 0E 00 96 0D 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 47 [09:24:55]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:24:55]wFMCommunicate OK [09:24:55]SAM_PROTO_GetShiftState done [09:24:55]FM_GetShiftState done [09:24:55]req_shift_opened done [09:24:55]requested_item shift.open_date is exist - process it [09:24:55]req_shift_open_date [09:24:55]req_shift_open_date done [09:24:55]produce_requested_data done [09:24:55]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":77021,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:24:55]process_action_free get_value [09:24:55]json_value_free [09:24:55]json_value_free done [09:24:55]process_json_proto returns [09:24:55]Send response to host [09:24:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":77021,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:24:55]free response buf [09:24:55]execute_script done [09:24:55]execute_script returns [09:24:55]free content buf [09:24:55]Sock 9.Close socket [09:24:55]Sock 9.Thread stoped [09:24:55]accept exits with 7 [09:24:55]New connection [09:24:55]New thread 3067174244 created [09:24:55]Thread 3067030884 joined [09:24:55]Waiting for new connection... [09:24:55] Sock 7.Parse request [09:24:55]Sock 7.Check first char [09:24:55]Sock 7.First char is OK [09:24:55]request: POST /json_proto HTTP/1.0 [09:24:55]Method: POST [09:24:55]URL: /json_proto [09:24:55]Method is POST - this is cgi request [09:24:55]url: /json_proto [09:24:55]query_string will be loaded in cgi processing [09:24:55]execute_cgi json_proto POST (null) [09:24:55]execute_cgi path=json_proto method=POST [09:24:55]POST find Content-Length [09:24:55]Host: 172.17.62.5:8080 [09:24:55]Content-Length: 331 [09:24:55]Content-Type: application/json [09:24:55] [09:24:55]POST finish read [09:24:55]Found Content-Length = 331 [09:24:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:24:55]execute_script... [09:24:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:24:55]POST & json_proto [09:24:55]process_json_proto [09:24:55]json parsed OK: [09:24:55]protocol is kg_v1.0 [09:24:55]action value=get_value [09:24:55]process_action get_value [09:24:55]cmd_get_value [09:24:55]process_action get_value done [09:24:55]requested_data is exist [09:24:55]produce_requested_data [09:24:55]requested_item fm.sale.total is exist - process it [09:24:55]SAM_PROTO_GetFMData [09:24:55]wFMCommunicate request_size=4 [09:24:55]MH_SAM_APDU [09:24:55]CAPDU: 80 13 03 00 [09:24:55]Write to MH i2c: E2 08 00 97 0D 80 13 03 00 00 00 00 00 23 [09:24:55]Write i2c OK [09:24:55]MH_I2C_Read... [09:24:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:24:55]Read from MH i2c: E2 [09:24:55]MH_I2C_Read... [09:24:55]Read from MH i2c: E2 FD 00 [09:24:55]MH_I2C_Read... [09:24:55]Read from MH i2c: E2 FD 00 97 0D 00 C8 04 85 04 C4 04 6E 04 04 00 F3 29 01 00 69 04 A3 00 6F 04 04 00 00 28 01 00 B1 04 05 00 7E 68 10 BC 02 70 04 05 00 EC 54 E0 77 02 72 04 04 00 92 13 30 44 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 E7 82 5A 4A 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 B4 24 32 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 60 [09:24:55]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 F3 29 01 00 69 04 A3 00 6F 04 04 00 00 28 01 00 B1 04 05 00 7E 68 10 BC 02 70 04 05 00 EC 54 E0 77 02 72 04 04 00 92 13 30 44 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 E7 82 5A 4A 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 B4 24 32 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 [09:24:55]wFMCommunicate OK [09:24:55]wFMCommunicate request_size=4 [09:24:55]MH_SAM_APDU [09:24:55]CAPDU: 80 17 00 00 [09:24:55]Write to MH i2c: E2 08 00 98 0D 80 17 00 00 00 00 00 00 25 [09:24:55]Write i2c OK [09:24:55]MH_I2C_Read... [09:24:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:24:56]Read from MH i2c: E2 [09:24:56]MH_I2C_Read... [09:24:56]Read from MH i2c: E2 FD 00 [09:24:56]MH_I2C_Read... [09:24:56]Read from MH i2c: E2 FD 00 98 0D 00 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 ED 81 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 19 [09:24:56]RAPDU: 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 ED 81 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [09:24:56]wFMCommunicate OK [09:24:56]wFMCommunicate request_size=4 [09:24:56]MH_SAM_APDU [09:24:56]CAPDU: 80 17 00 00 [09:24:56]Write to MH i2c: E2 08 00 99 0D 80 17 00 00 00 00 00 00 26 [09:24:56]Write i2c OK [09:24:56]MH_I2C_Read... [09:24:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:24:56]Read from MH i2c: E2 [09:24:56]MH_I2C_Read... [09:24:56]Read from MH i2c: E2 FD 00 [09:24:56]MH_I2C_Read... [09:24:56]Read from MH i2c: E2 FD 00 99 0D 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 FE [09:24:56]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [09:24:56]wFMCommunicate OK [09:24:56]wFMCommunicate request_size=4 [09:24:56]MH_SAM_APDU [09:24:56]CAPDU: 80 17 00 00 [09:24:56]Write to MH i2c: E2 08 00 9A 0D 80 17 00 00 00 00 00 00 27 [09:24:56]Write i2c OK [09:24:56]MH_I2C_Read... [09:24:56]OFD Sender: No OFD packet to send [09:24:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:24:56]Read from MH i2c: E2 [09:24:56]MH_I2C_Read... [09:24:56]Read from MH i2c: E2 FD 00 [09:24:56]MH_I2C_Read... [09:24:56]Read from MH i2c: E2 FD 00 9A 0D 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 9F [09:24:56]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [09:24:56]wFMCommunicate OK [09:24:56]wFMCommunicate request_size=4 [09:24:56]MH_SAM_APDU [09:24:56]CAPDU: 80 17 00 00 [09:24:56]Write to MH i2c: E2 08 00 9B 0D 80 17 00 00 00 00 00 00 28 [09:24:56]Write i2c OK [09:24:56]MH_I2C_Read... [09:24:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [09:24:56]Read from MH i2c: E2 [09:24:56]MH_I2C_Read... [09:24:56]Read from MH i2c: E2 E5 00 [09:24:56]MH_I2C_Read... [09:24:56]Read from MH i2c: E2 E5 00 9B 0D 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0C [09:24:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:24:56]wFMCommunicate OK [09:24:56]SAM_PROTO_GetFMData done [09:24:56]requested_item fm.sale_refund.total is exist - process it [09:24:56]requested_item fm.buy.total is exist - process it [09:24:56]requested_item shift.sale.total is exist - process it [09:24:56]SAM_PROTO_GetShiftData [09:24:56]wFMCommunicate request_size=4 [09:24:56]MH_SAM_APDU [09:24:56]CAPDU: 80 13 02 00 [09:24:56]Write to MH i2c: E2 08 00 9C 0D 80 13 02 00 00 00 00 00 27 [09:24:56]Write i2c OK [09:24:56]MH_I2C_Read... [09:24:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:24:57]Read from MH i2c: E2 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 FD 00 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 FD 00 9C 0D 00 AE 04 AA 04 AA 04 6E 04 04 00 28 00 00 00 69 04 9B 00 6F 04 04 00 28 00 00 00 B1 04 03 00 77 13 40 70 04 03 00 8C 8B 29 72 04 03 00 EB 87 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 3E CE 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2D 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 9A [09:24:57]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 28 00 00 00 69 04 9B 00 6F 04 04 00 28 00 00 00 B1 04 03 00 77 13 40 70 04 03 00 8C 8B 29 72 04 03 00 EB 87 16 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 3E CE 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2D 91 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [09:24:57]wFMCommunicate OK [09:24:57]wFMCommunicate request_size=4 [09:24:57]MH_SAM_APDU [09:24:57]CAPDU: 80 17 00 00 [09:24:57]Write to MH i2c: E2 08 00 9D 0D 80 17 00 00 00 00 00 00 2A [09:24:57]Write i2c OK [09:24:57]MH_I2C_Read... [09:24:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:24:57]Read from MH i2c: E2 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 FD 00 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 FD 00 9D 0D 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 4C [09:24:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [09:24:57]wFMCommunicate OK [09:24:57]wFMCommunicate request_size=4 [09:24:57]MH_SAM_APDU [09:24:57]CAPDU: 80 17 00 00 [09:24:57]Write to MH i2c: E2 08 00 9E 0D 80 17 00 00 00 00 00 00 2B [09:24:57]Write i2c OK [09:24:57]MH_I2C_Read... [09:24:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:24:57]Read from MH i2c: E2 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 FD 00 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 FD 00 9E 0D 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 E2 [09:24:57]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [09:24:57]wFMCommunicate OK [09:24:57]wFMCommunicate request_size=4 [09:24:57]MH_SAM_APDU [09:24:57]CAPDU: 80 17 00 00 [09:24:57]Write to MH i2c: E2 08 00 9F 0D 80 17 00 00 00 00 00 00 2C [09:24:57]Write i2c OK [09:24:57]MH_I2C_Read... [09:24:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:24:58]Read from MH i2c: E2 [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: E2 FD 00 [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: E2 FD 00 9F 0D 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 9E [09:24:58]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [09:24:58]wFMCommunicate OK [09:24:58]wFMCommunicate request_size=4 [09:24:58]MH_SAM_APDU [09:24:58]CAPDU: 80 17 00 00 [09:24:58]Write to MH i2c: E2 08 00 A0 0D 80 17 00 00 00 00 00 00 2D [09:24:58]Write i2c OK [09:24:58]MH_I2C_Read... [09:24:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:24:58]Read from MH i2c: E2 [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: E2 CB 00 [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: E2 CB 00 A0 0D 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 16 [09:24:58]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:24:58]wFMCommunicate OK [09:24:58]SAM_PROTO_GetShiftData done [09:24:58]requested_item shift.sale.total_cash is exist - process it [09:24:58]requested_item shift.sale_refund.total is exist - process it [09:24:58]requested_item shift.sale_refund.total_cash is exist - process it [09:24:58]requested_item shift.buy.total is exist - process it [09:24:58]requested_item shift.buy.total_cash is exist - process it [09:24:58]produce_requested_data done [09:24:58]produce_requested_data return {"fm.sale.total":117451265.26,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":41992.87,"shift.sale.total_cash":27227.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:24:58]process_action_free get_value [09:24:58]json_value_free [09:24:58]json_value_free done [09:24:58]process_json_proto returns [09:24:58]Send response to host [09:24:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117451265.26,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":41992.87,"shift.sale.total_cash":27227.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:24:58]free response buf [09:24:58]execute_script done [09:24:58]execute_script returns [09:24:58]free content buf [09:24:58]Sock 7.Close socket [09:24:58]Sock 7.Thread stoped [09:25:01]OFD Sender: No OFD packet to send [09:25:06]OFD Sender: No OFD packet to send [09:25:11]OFD Sender: No OFD packet to send [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:41]OFD Sender: No OFD packet to send [09:25:46]OFD Sender: No OFD packet to send [09:25:51]OFD Sender: No OFD packet to send [09:25:56]OFD Sender: No OFD packet to send [09:26:01]OFD Sender: No OFD packet to send [09:26:06]OFD Sender: No OFD packet to send [09:26:11]OFD Sender: No OFD packet to send [09:26:16]OFD Sender: No OFD packet to send [09:26:21]OFD Sender: No OFD packet to send [09:26:26]OFD Sender: No OFD packet to send [09:26:31]OFD Sender: No OFD packet to send [09:26:36]OFD Sender: No OFD packet to send [09:26:41]OFD Sender: No OFD packet to send [09:26:46]OFD Sender: No OFD packet to send [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:25]accept exits with 9 [09:27:25]New connection [09:27:25]New thread 3067030884 created [09:27:25]Thread 3067174244 joined [09:27:25]Waiting for new connection... [09:27:25] Sock 9.Parse request [09:27:25]Sock 9.Check first char [09:27:25]Sock 9.First char is OK [09:27:25]request: POST /json_proto HTTP/1.0 [09:27:25]Method: POST [09:27:25]URL: /json_proto [09:27:25]Method is POST - this is cgi request [09:27:25]url: /json_proto [09:27:25]query_string will be loaded in cgi processing [09:27:25]execute_cgi json_proto POST (null) [09:27:25]execute_cgi path=json_proto method=POST [09:27:25]POST find Content-Length [09:27:25]Host: 172.17.62.5:8080 [09:27:25]Content-Length: 1172 [09:27:25]Content-Type: application/json [09:27:25] [09:27:25]POST finish read [09:27:25]Found Content-Length = 1172 [09:27:25]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191588\u000A22.04.2024 09:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30103446\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:25]execute_script... [09:27:25]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191588\u000A22.04.2024 09:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30103446\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:25]POST & json_proto [09:27:25]process_json_proto [09:27:25]json parsed OK: [09:27:25]protocol is kg_v1.0 [09:27:25]action value=print_text [09:27:25]process_action print_text [09:27:25]cmd_print_text [09:27:25]ExternCall_PrintAddStr [09:27:25]wPrintStart [09:27:25]Write to MH i2c: 01 00 00 A1 0D AE [09:27:25]Write i2c OK [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: 01 [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: 01 07 00 [09:27:25]MH_I2C_Read... [09:27:25]Read from MH i2c: 01 07 00 A1 0D 00 00 00 00 00 FF 0F C3 [09:27:25]RasterBufferAndPrint [09:27:25]line *****ТОВАРНЫЙ ЧЕК***** [09:27:25]line АЗС 106 [09:27:25]line Партнер нефть [09:27:25]line 02508201610067 [09:27:25]line Кассир : Токторбаева Н. [09:27:25]line Счет N : (1)191588 [09:27:25]line 22.04.2024 09:08 [09:27:25]line ПРОДАЖА [09:27:25]line ТРК (МРК, ГНК): 61 [09:27:25]line Вид ГСМ : 2710194210 [09:27:25]line ДТ-К-5 [09:27:25]line 30.000 x 72.90 [09:27:25]line ИТОГ: 2187.00 [09:27:25]line Тип оплаты: Талоны: ТК ГПНА Online [09:27:25]line 30103446 [09:27:25]line ______________________ [09:27:25]line (подпись) [09:27:25]written 0, free lines is 4095 [09:27:26]Write to MH i2c: 01 00 00 B6 0D C3 [09:27:26]Write i2c OK [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: 01 [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: 01 07 00 [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: 01 07 00 B6 0D 00 00 00 00 00 F4 0D CB [09:27:26]RasterBufferAndPrint [09:27:26]line [09:27:26]line [09:27:26]line [09:27:26]line [09:27:26]line [09:27:26]written 0, free lines is 3574 [09:27:26]MH_Cut [09:27:26]Write to MH i2c: D1 01 00 BD 0D 01 9C [09:27:26]Write i2c OK [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: D1 [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: D1 01 00 [09:27:26]MH_I2C_Read... [09:27:26]Read from MH i2c: D1 01 00 BD 0D 00 9B [09:27:26]Write to MH i2c: 01 00 00 BE 0D CB [09:27:26]Write i2c OK [09:27:26]MH_I2C_Read... [09:27:26]*** Cut start [09:27:26]*** Partial cut [09:27:26]*** CUTSNS_PIN = 1 [09:27:26]*** CUTSNS_PIN = 0 [09:27:26]OFD Sender: No OFD packet to send [09:27:26]*** Brake cut motor [09:27:27]Read from MH i2c: 01 [09:27:27]MH_I2C_Read... [09:27:27]*** Stop cut motor [09:27:27]*** Cut end [09:27:27]Read from MH i2c: 01 07 00 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: 01 07 00 BE 0D 00 00 00 00 00 FF 0F E0 [09:27:27]process_action print_text done [09:27:27]requested_data is exist [09:27:27]produce_requested_data [09:27:27]requested_item fm.sn is exist - process it [09:27:27]wFMCommunicate request_size=4 [09:27:27]MH_SAM_APDU [09:27:27]CAPDU: 80 11 00 00 [09:27:27]Write to MH i2c: E2 08 00 BF 0D 80 11 00 00 00 00 00 00 46 [09:27:27]Write i2c OK [09:27:27]MH_I2C_Read... [09:27:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:27]Read from MH i2c: E2 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: E2 17 00 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: E2 17 00 BF 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 99 [09:27:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:27:27]wFMCommunicate OK [09:27:27]requested_item fd.num is exist - process it [09:27:27]SAM_PROTO_GetFieldsCounters [09:27:27]wFMCommunicate request_size=4 [09:27:27]MH_SAM_APDU [09:27:27]CAPDU: 80 13 00 00 [09:27:27]Write to MH i2c: E2 08 00 C0 0D 80 13 00 00 00 00 00 00 49 [09:27:27]Write i2c OK [09:27:27]MH_I2C_Read... [09:27:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:27]Read from MH i2c: E2 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: E2 62 00 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: E2 62 00 C0 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DD 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [09:27:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DD 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:27:27]wFMCommunicate OK [09:27:27]SAM_PROTO_GetFieldsCounters done [09:27:27]requested_item shift.num is exist - process it [09:27:27]requested_item shift.opened is exist - process it [09:27:27]req_shift_opened [09:27:27]FM_GetShiftState [09:27:27]SAM_PROTO_GetShiftState [09:27:27]wFMCommunicate request_size=4 [09:27:27]MH_SAM_APDU [09:27:27]CAPDU: 80 13 01 00 [09:27:27]Write to MH i2c: E2 08 00 C1 0D 80 13 01 00 00 00 00 00 4B [09:27:27]Write i2c OK [09:27:27]MH_I2C_Read... [09:27:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:27]Read from MH i2c: E2 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: E2 0E 00 [09:27:27]MH_I2C_Read... [09:27:27]Read from MH i2c: E2 0E 00 C1 0D 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 72 [09:27:27]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:27:27]wFMCommunicate OK [09:27:27]SAM_PROTO_GetShiftState done [09:27:27]FM_GetShiftState done [09:27:27]req_shift_opened done [09:27:27]requested_item shift.open_date is exist - process it [09:27:27]req_shift_open_date [09:27:27]req_shift_open_date done [09:27:27]produce_requested_data done [09:27:27]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77021,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:27:27]process_action_free print_text [09:27:27]json_value_free [09:27:27]json_value_free done [09:27:27]process_json_proto returns [09:27:27]Send response to host [09:27:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77021,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:27:27]free response buf [09:27:27]execute_script done [09:27:27]execute_script returns [09:27:27]free content buf [09:27:27]Sock 9.Close socket [09:27:27]Sock 9.Thread stoped [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:20]recv_with_timeout no data received [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:40]accept exits with 7 [09:31:40]New connection [09:31:40]New thread 3067174244 created [09:31:40]Thread 3067030884 joined [09:31:40]Waiting for new connection... [09:31:40] Sock 7.Parse request [09:31:40]Sock 7.Check first char [09:31:40]Sock 7.First char is OK [09:31:40]request: POST /json_proto HTTP/1.0 [09:31:40]Method: POST [09:31:40]URL: /json_proto [09:31:40]Method is POST - this is cgi request [09:31:40]url: /json_proto [09:31:40]query_string will be loaded in cgi processing [09:31:40]execute_cgi json_proto POST (null) [09:31:40]execute_cgi path=json_proto method=POST [09:31:40]POST find Content-Length [09:31:40]Host: 172.17.62.5:8080 [09:31:40]Content-Length: 677 [09:31:40]Content-Type: application/json [09:31:40] [09:31:40]POST finish read [09:31:40]Found Content-Length = 677 [09:31:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 8.550, "sum" : 550.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:40]execute_script... [09:31:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 8.550, "sum" : 550.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:40]POST & json_proto [09:31:40]process_json_proto [09:31:40]json parsed OK: [09:31:40]protocol is kg_v1.0 [09:31:40]action value=close_receipt [09:31:40]process_action close_receipt [09:31:40]cmd_close_receipt [09:31:40]MH_GetDate [09:31:40]Write to MH i2c: F0 00 00 C2 0D BE [09:31:40]Write i2c OK [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: F0 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: F0 09 00 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: F0 09 00 C2 0D 00 7F 2E 26 66 F4 E9 65 64 A6 [09:31:40]GetLastDocTimeStamp 1713777470 [09:31:40]current date 1713778303 [09:31:40]FM_GetShiftState [09:31:40]SAM_PROTO_GetShiftState [09:31:40]wFMCommunicate request_size=4 [09:31:40]MH_SAM_APDU [09:31:40]CAPDU: 80 13 01 00 [09:31:40]Write to MH i2c: E2 08 00 C3 0D 80 13 01 00 00 00 00 00 4D [09:31:40]Write i2c OK [09:31:40]MH_I2C_Read... [09:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:40]Read from MH i2c: E2 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: E2 0E 00 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: E2 0E 00 C3 0D 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 74 [09:31:40]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:31:40]wFMCommunicate OK [09:31:40]SAM_PROTO_GetShiftState done [09:31:40]FM_GetShiftState done [09:31:40]opened in 1713745124 [09:31:40]opened+sec_in_day 1713831524 [09:31:40]quantity*price = 55062 [09:31:40]sum+1 = 55063 [09:31:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.47 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 41 22.04.2024 09:31 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77022 ФПД: 1704260433742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T093143&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77022&fm=1704260433742&tin=02508201610067®Number=0000000000091573&sum=55000 [09:31:41]StoreToDocumentArchive [09:31:41]shift 373 fd 77022 [09:31:41]save to /storage/0373/doc_00077022 [09:31:41]save last doc name /storage/0373/doc_00077022 to /storage/kkm_last_doc_name [09:31:41]save OK [09:31:41]Clear old archive folders... [09:31:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:41]tlvbuf is 01713B40 [09:31:41]SAM_PROTO_ClearQueue [09:31:41]wFMCommunicate request_size=4 [09:31:41]MH_SAM_APDU [09:31:41]CAPDU: 80 09 00 00 [09:31:41]Write to MH i2c: E2 08 00 D0 0D 80 09 00 00 00 00 00 00 4F [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:41]Read from MH i2c: E2 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 03 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 03 00 D0 0D 00 90 00 51 [09:31:41]RAPDU: 90 00 [09:31:41]wFMCommunicate OK [09:31:41]SAM_PROTO_ClearQueue done [09:31:41]KKMCreateOFDPacket [09:31:41]OFDProtocolAddRootSTLVToBuf [09:31:41]FM_MakeSignedData [09:31:41]FM_MakeSignedData [09:31:41]SAM_PROTO_SignData [09:31:41]wFMCommunicate request_size=4 [09:31:41]MH_SAM_APDU [09:31:41]CAPDU: 80 0D 01 02 [09:31:41]Write to MH i2c: E2 08 00 D1 0D 80 0D 01 02 00 00 00 00 57 [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:41]Read from MH i2c: E2 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 03 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 03 00 D1 0D 00 90 00 52 [09:31:41]RAPDU: 90 00 [09:31:41]wFMCommunicate OK [09:31:41]wFMCommunicate request_size=255 [09:31:41]MH_SAM_APDU [09:31: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 35 FF 03 08 00 03 66 21 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 16 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 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 7F 2E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DE 2C 01 00 35 04 06 00 01 [09:31:41]Write to MH i2c: E2 02 01 D2 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 35 FF 03 08 00 03 66 21 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 16 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 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 7F 2E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DE 2C 01 00 35 04 06 00 01 00 00 2B [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:42]OFD Sender: No OFD packet to send [09:31:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 D2 0D 00 90 00 53 [09:31:42]RAPDU: 90 00 [09:31:42]wFMCommunicate OK [09:31:42]wFMCommunicate request_size=10 [09:31:42]MH_SAM_APDU [09:31:42]CAPDU: 80 0D 02 02 05 8C CD D6 77 4E [09:31:42]Write to MH i2c: E2 0D 00 D3 0D 80 0D 02 02 05 00 8C CD D6 77 4E 00 00 58 [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 D3 0D 00 90 00 54 [09:31:42]RAPDU: 90 00 [09:31:42]wFMCommunicate OK [09:31:42]wFMCommunicate request_size=4 [09:31:42]MH_SAM_APDU [09:31:42]CAPDU: 80 0D 03 02 [09:31:42]Write to MH i2c: E2 08 00 D4 0D 80 0D 03 02 00 00 00 00 5C [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 0B 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 0B 00 D4 0D 00 F9 7B E0 95 F8 51 EA 25 90 00 9E [09:31:42]RAPDU: F9 7B E0 95 F8 51 EA 25 90 00 [09:31:42]wFMCommunicate OK [09:31:42]SAM_PROTO_SignData done [09:31:42]FM_MakeSignedData done [09:31:42]CreateOFDProtocolMessage [09:31:42]wFMCommunicate request_size=4 [09:31:42]MH_SAM_APDU [09:31:42]CAPDU: 80 11 00 00 [09:31:42]Write to MH i2c: E2 08 00 D5 0D 80 11 00 00 00 00 00 00 5C [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 17 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 17 00 D5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AF [09:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:31:42]wFMCommunicate OK [09:31:42]CreateOFDProtocolMessage done [09:31:42]OFDSenderStorePacket 77022 [09:31:42]StoreOFDPacket docnum=77022 [09:31:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 59 D7 07 01 12 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 21 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 16 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 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 7F 2E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DE 2C 01 00 35 04 06 00 01 8C CD D6 77 4E F9 7B E0 95 F8 51 EA 25 [09:31:42]CheckFolder [09:31:42]dirname=/storage/ofd_packets [09:31:42]CheckFolder done [09:31:42]ProducePacketName [09:31:42]name=ofd_packets/00077022 [09:31:42]NVStorageSaveData ofd_packets/00077022 [09:31:42]File name is /storage/ofd_packets/00077022 [09:31:42]Write 301 bytes [09:31:42]NVStorageSaveData done [09:31:42]OFDSenderStorePacket done [09:31:42]KKMCreateOFDPacket done [09:31:42]NVStorageSaveData kkm_last_timestamp [09:31:42]File name is /storage/kkm_last_timestamp [09:31:42]Write 4 bytes [09:31:42]NVStorageSaveData done [09:31:42]ExternCall_PrintAddStr [09:31:42]wPrintStart [09:31:42]Write to MH i2c: 01 00 00 D6 0D E3 [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: 01 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: 01 07 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: 01 07 00 D6 0D 00 00 00 00 00 FF 0F F8 [09:31:42]RasterBufferAndPrint [09:31:42]line Счет N : (1)191590 [09:31:42]line ИНН: 02508201610067 [09:31:42]line Контрольно-Кассовый Чек [09:31:42]line ПРОДАЖА [09:31:42]line ТРК (МРК, ГНК) : 43 [09:31:42]line Товар: 2710124130 [09:31:42]line Аи-92-К-5 [09:31:42]line 8.550 * 64.40 [09:31:42]line = 550.62 [09:31:42]line НДС 12% НСП 1% [09:31:42]line > о реализуемом товаре [09:31:42]line ОКРУГЛЕНИЕ: -0.62 [09:31:42]line ИТОГО: 550.00 [09:31:42]line Внесено: 550.00 [09:31:42]line СДАЧА: 0.00 [09:31:42]line НСП 1% : 4.87 [09:31:42]line НДС 12% : 58.47 [09:31:42]line Наличными: 550.00 [09:31:42]line Безнал.: 0.00 [09:31:42]line Место: АЗС № 106 "Партнер Нефть" [09:31:42]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:31:42]line СНО: Общий режим [09:31:42]line Чек 41 22.04.2024 09:31 [09:31:42]line Смена: 373 ФФД: 1.0 [09:31:42]line ЗНМ: 0300000141 [09:31:42]line РНМ: 0000000000091573 [09:31:42]line Версия ККМ: 001 [09:31:42]line ФМ: 0000000000874652 [09:31:42]line ФД: 77022 [09:31:42]line ФПД: 1704260433742 [09:31:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T093143&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77022&fm=1704260433742&tin=02508201610067®Number=0000000000091573&sum=55000 [09:31:42]OFD Sender: Processing packet 77022 [packets to send 129, broken 128] [09:31:42]ProducePacketName [09:31:42]name=ofd_packets/00077022 [09:31:42]OFD Sender: To server: pG, [09:31:42]CommunicateWithHost lk.salyk.kg:30040 [09:31:42]ConnectInit lk.salyk.kg [09:31:42]written 0, free lines is 4095 [09:31:42]Connected sock=10 [09:31:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 59 D7 07 01 12 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 21 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 16 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 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 7F 2E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DE 2C 01 00 35 04 06 00 01 8C CD D6 77 4E F9 7B E0 95 F8 51 EA 25 [09:31:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 A0 A9 47 00 47 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DE 2C 01 00 F4 03 04 00 02 D6 25 66 B6 04 01 00 00 15 0A FF 9C 58 1D CD 5B [09:31:43]CommunicateWithHost err = 0 [09:31:43]CheckOFDResponse [09:31:43]1017 (14) - 77093643461234 [09:31:43]1041 (16) - 0000000000874652 [09:31:43]1040 (4) - 77022 [09:31:43]1012 (4) - 22.04.2024 03:14 [09:31:43]1206 (1) - 0 [09:31:43]OFD Sender: Remove packet 77022 [09:31:43]ProducePacketName [09:31:43]name=ofd_packets/00077022 [09:31:43]NVStorageDeleteData [09:31:43]Write to MH i2c: 01 00 00 00 0E 0E [09:31:43]Write i2c OK [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: 01 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: 01 07 00 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: 01 07 00 00 0E 00 00 00 00 00 E2 0C 03 [09:31:43]RasterBufferAndPrint [09:31:43]line [09:31:43]line [09:31:43]line [09:31:43]line [09:31:43]line [09:31:43]written 0, free lines is 3304 [09:31:43]MH_Cut [09:31:43]Write to MH i2c: D1 01 00 07 0E 01 E7 [09:31:43]Write i2c OK [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: D1 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: D1 01 00 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: D1 01 00 07 0E 00 E6 [09:31:43]Write to MH i2c: 01 00 00 08 0E 16 [09:31:43]Write i2c OK [09:31:43]MH_I2C_Read... [09:31:43]OFD Sender: No OFD packet to send [09:31:43]*** Cut start [09:31:43]*** Partial cut [09:31:43]*** CUTSNS_PIN = 1 [09:31:43]*** CUTSNS_PIN = 0 [09:31:44]*** Brake cut motor [09:31:44]Read from MH i2c: 01 [09:31:44]MH_I2C_Read... [09:31:44]*** Stop cut motor [09:31:44]*** Cut end [09:31:44]Read from MH i2c: 01 07 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: 01 07 00 08 0E 00 00 00 00 00 FF 0F 2B [09:31:44]process_action close_receipt done [09:31:44]requested_data is exist [09:31:44]produce_requested_data [09:31:44]requested_item fm.sn is exist - process it [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 11 00 00 [09:31:44]Write to MH i2c: E2 08 00 09 0E 80 11 00 00 00 00 00 00 91 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 17 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 17 00 09 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E4 [09:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:31:44]wFMCommunicate OK [09:31:44]requested_item fd.num is exist - process it [09:31:44]SAM_PROTO_GetFieldsCounters [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 13 00 00 [09:31:44]Write to MH i2c: E2 08 00 0A 0E 80 13 00 00 00 00 00 00 94 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 62 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 62 00 0A 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DE 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [09:31:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DE 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:44]wFMCommunicate OK [09:31:44]SAM_PROTO_GetFieldsCounters done [09:31:44]requested_item shift.num is exist - process it [09:31:44]requested_item shift.opened is exist - process it [09:31:44]req_shift_opened [09:31:44]FM_GetShiftState [09:31:44]SAM_PROTO_GetShiftState [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 13 01 00 [09:31:44]Write to MH i2c: E2 08 00 0B 0E 80 13 01 00 00 00 00 00 96 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 0E 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 0E 00 0B 0E 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 BD [09:31:44]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:31:44]wFMCommunicate OK [09:31:44]SAM_PROTO_GetShiftState done [09:31:44]FM_GetShiftState done [09:31:44]req_shift_opened done [09:31:44]requested_item shift.open_date is exist - process it [09:31:44]req_shift_open_date [09:31:44]req_shift_open_date done [09:31:44]produce_requested_data done [09:31:44]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77022,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:31:44]process_action_free close_receipt [09:31:44]json_value_free [09:31:44]json_value_free done [09:31:44]process_json_proto returns [09:31:44]Send response to host [09:31:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77022,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:31:44]free response buf [09:31:44]execute_script done [09:31:44]execute_script returns [09:31:44]free content buf [09:31:44]Sock 7.Close socket [09:31:44]Sock 7.Thread stoped [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:31]accept exits with 9 [09:34:31]New connection [09:34:31]New thread 3067030884 created [09:34:31]Thread 3067174244 joined [09:34:31]Waiting for new connection... [09:34:31] Sock 9.Parse request [09:34:31]Sock 9.Check first char [09:34:31]Sock 9.First char is OK [09:34:31]request: POST /json_proto HTTP/1.0 [09:34:31]Method: POST [09:34:31]URL: /json_proto [09:34:31]Method is POST - this is cgi request [09:34:31]url: /json_proto [09:34:31]query_string will be loaded in cgi processing [09:34:31]execute_cgi json_proto POST (null) [09:34:31]execute_cgi path=json_proto method=POST [09:34:31]POST find Content-Length [09:34:31]Host: 172.17.62.5:8080 [09:34:31]Content-Length: 990 [09:34:31]Content-Type: application/json [09:34:31] [09:34:31]POST finish read [09:34:31]Found Content-Length = 990 [09:34:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "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:34:31]execute_script... [09:34: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)191589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "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:34:31]POST & json_proto [09:34:31]process_json_proto [09:34:31]json parsed OK: [09:34:31]protocol is kg_v1.0 [09:34:31]action value=close_receipt [09:34:31]process_action close_receipt [09:34:31]cmd_close_receipt [09:34:31]MH_GetDate [09:34:31]Write to MH i2c: F0 00 00 0C 0E 09 [09:34:31]Write i2c OK [09:34:31]MH_I2C_Read... [09:34:31]Read from MH i2c: F0 [09:34:31]MH_I2C_Read... [09:34:31]Read from MH i2c: F0 09 00 [09:34:31]MH_I2C_Read... [09:34:31]Read from MH i2c: F0 09 00 0C 0E 00 2A 2F 26 66 F4 E9 65 64 9D [09:34:31]GetLastDocTimeStamp 1713778303 [09:34:31]current date 1713778474 [09:34:31]FM_GetShiftState [09:34:31]SAM_PROTO_GetShiftState [09:34:31]wFMCommunicate request_size=4 [09:34:31]MH_SAM_APDU [09:34:31]CAPDU: 80 13 01 00 [09:34:31]Write to MH i2c: E2 08 00 0D 0E 80 13 01 00 00 00 00 00 98 [09:34:31]Write i2c OK [09:34:31]MH_I2C_Read... [09:34:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:31]Read from MH i2c: E2 [09:34:31]MH_I2C_Read... [09:34:31]Read from MH i2c: E2 0E 00 [09:34:31]MH_I2C_Read... [09:34:31]Read from MH i2c: E2 0E 00 0D 0E 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 BF [09:34:31]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:34:31]wFMCommunicate OK [09:34:31]SAM_PROTO_GetShiftState done [09:34:31]FM_GetShiftState done [09:34:31]opened in 1713745124 [09:34:31]opened+sec_in_day 1713831524 [09:34:31]quantity*price = 100013 [09:34:31]sum+1 = 100015 [09:34:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 42 22.04.2024 09:34 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 31.55 сом ФМ: 0000000000874652 ФД: 77023 ФПД: 17635425086469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T093434&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77023&fm=17635425086469&tin=02508201610067®Number=0000000000091573&sum=100000 [09:34:32]StoreToDocumentArchive [09:34:32]shift 373 fd 77023 [09:34:32]save to /storage/0373/doc_00077023 [09:34:32]save last doc name /storage/0373/doc_00077023 to /storage/kkm_last_doc_name [09:34:32]save OK [09:34:32]Clear old archive folders... [09:34:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:34:32]tlvbuf is 017524B0 [09:34:32]SAM_PROTO_ClearQueue [09:34:32]wFMCommunicate request_size=4 [09:34:32]MH_SAM_APDU [09:34:32]CAPDU: 80 09 00 00 [09:34:32]Write to MH i2c: E2 08 00 1A 0E 80 09 00 00 00 00 00 00 9A [09:34:32]Write i2c OK [09:34:32]MH_I2C_Read... [09:34:32]Read from MH i2c: E2 [09:34:32]MH_I2C_Read... [09:34:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:32]Read from MH i2c: E2 03 00 [09:34:32]MH_I2C_Read... [09:34:32]Read from MH i2c: E2 03 00 1A 0E 00 90 00 9C [09:34:32]RAPDU: 90 00 [09:34:32]wFMCommunicate OK [09:34:32]SAM_PROTO_ClearQueue done [09:34:32]KKMCreateOFDPacket [09:34:32]OFDProtocolAddRootSTLVToBuf [09:34:32]FM_MakeSignedData [09:34:32]FM_MakeSignedData [09:34:32]SAM_PROTO_SignData [09:34:32]wFMCommunicate request_size=4 [09:34:32]MH_SAM_APDU [09:34:32]CAPDU: 80 0D 01 02 [09:34:32]Write to MH i2c: E2 08 00 1B 0E 80 0D 01 02 00 00 00 00 A2 [09:34:32]Write i2c OK [09:34:32]MH_I2C_Read... [09:34:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:32]Read from MH i2c: E2 [09:34:32]MH_I2C_Read... [09:34:32]Read from MH i2c: E2 03 00 [09:34:32]MH_I2C_Read... [09:34:32]Read from MH i2c: E2 03 00 1B 0E 00 90 00 9D [09:34:32]RAPDU: 90 00 [09:34:32]wFMCommunicate OK [09:34:32]wFMCommunicate request_size=255 [09:34:32]MH_SAM_APDU [09:34:32]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 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 2A 2F 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DF 2C 01 00 35 04 06 00 10 0A [09:34:33]Write to MH i2c: E2 02 01 1C 0E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 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 2A 2F 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DF 2C 01 00 35 04 06 00 10 0A 00 00 C6 [09:34:33]Write i2c OK [09:34:33]MH_I2C_Read... [09:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:33]Read from MH i2c: E2 [09:34:33]MH_I2C_Read... [09:34:33]Read from MH i2c: E2 03 00 [09:34:33]MH_I2C_Read... [09:34:33]Read from MH i2c: E2 03 00 1C 0E 00 90 00 9E [09:34:33]RAPDU: 90 00 [09:34:33]wFMCommunicate OK [09:34:33]wFMCommunicate request_size=9 [09:34:33]MH_SAM_APDU [09:34:33]CAPDU: 80 0D 02 02 04 11 3F 6C 05 [09:34:33]Write to MH i2c: E2 0C 00 1D 0E 80 0D 02 02 04 00 11 3F 6C 05 00 00 6E [09:34:33]Write i2c OK [09:34:33]MH_I2C_Read... [09:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:33]Read from MH i2c: E2 [09:34:33]MH_I2C_Read... [09:34:33]Read from MH i2c: E2 03 00 [09:34:33]MH_I2C_Read... [09:34:33]Read from MH i2c: E2 03 00 1D 0E 00 90 00 9F [09:34:33]RAPDU: 90 00 [09:34:33]wFMCommunicate OK [09:34:33]wFMCommunicate request_size=4 [09:34:33]MH_SAM_APDU [09:34:33]CAPDU: 80 0D 03 02 [09:34:33]Write to MH i2c: E2 08 00 1E 0E 80 0D 03 02 00 00 00 00 A7 [09:34:33]Write i2c OK [09:34:33]MH_I2C_Read... [09:34:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:33]Read from MH i2c: E2 [09:34:33]MH_I2C_Read... [09:34:33]Read from MH i2c: E2 0B 00 [09:34:33]MH_I2C_Read... [09:34:33]Read from MH i2c: E2 0B 00 1E 0E 00 DC 3B FF 33 B5 44 6D 30 90 00 87 [09:34:33]RAPDU: DC 3B FF 33 B5 44 6D 30 90 00 [09:34:33]wFMCommunicate OK [09:34:33]SAM_PROTO_SignData done [09:34:33]FM_MakeSignedData done [09:34:33]CreateOFDProtocolMessage [09:34:33]wFMCommunicate request_size=4 [09:34:33]MH_SAM_APDU [09:34:33]CAPDU: 80 11 00 00 [09:34:33]Write to MH i2c: E2 08 00 1F 0E 80 11 00 00 00 00 00 00 A7 [09:34:33]Write i2c OK [09:34:33]MH_I2C_Read... [09:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:33]Read from MH i2c: E2 [09:34:33]MH_I2C_Read... [09:34:33]Read from MH i2c: E2 17 00 [09:34:33]MH_I2C_Read... [09:34:33]Read from MH i2c: E2 17 00 1F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FA [09:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:34:33]wFMCommunicate OK [09:34:33]CreateOFDProtocolMessage done [09:34:33]OFDSenderStorePacket 77023 [09:34:33]StoreOFDPacket docnum=77023 [09:34:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 FA 3B 06 01 2E 5A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 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 2A 2F 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DF 2C 01 00 35 04 06 00 10 0A 11 3F 6C 05 DC 3B FF 33 B5 44 6D 30 [09:34:33]CheckFolder [09:34:33]dirname=/storage/ofd_packets [09:34:33]CheckFolder done [09:34:33]ProducePacketName [09:34:33]name=ofd_packets/00077023 [09:34:33]NVStorageSaveData ofd_packets/00077023 [09:34:33]File name is /storage/ofd_packets/00077023 [09:34:33]Write 300 bytes [09:34:33]NVStorageSaveData done [09:34:33]OFDSenderStorePacket done [09:34:33]KKMCreateOFDPacket done [09:34:33]NVStorageSaveData kkm_last_timestamp [09:34:33]File name is /storage/kkm_last_timestamp [09:34:33]Write 4 bytes [09:34:33]NVStorageSaveData done [09:34:33]ExternCall_PrintAddStr [09:34:33]wPrintStart [09:34:33]Write to MH i2c: 01 00 00 20 0E 2E [09:34:33]Write i2c OK [09:34:33]MH_I2C_Read... [09:34:33]Read from MH i2c: 01 [09:34:33]MH_I2C_Read... [09:34:33]Read from MH i2c: 01 07 00 [09:34:33]MH_I2C_Read... [09:34:33]Read from MH i2c: 01 07 00 20 0E 00 00 00 00 00 FF 0F 43 [09:34:33]RasterBufferAndPrint [09:34:33]line Счет N : (1)191589 [09:34:33]line ИНН: 02508201610067 [09:34:33]line Контрольно-Кассовый Чек [09:34:33]line ПРОДАЖА [09:34:33]line ТРК (МРК, ГНК) : 71 [09:34:33]line Товар: 2711190000 [09:34:33]line ГАЗ-К-5 [09:34:33]line 31.550 * 31.70 [09:34:33]line = 1000.14 [09:34:33]line НДС 12% НСП 1% [09:34:33]line > о реализуемом товаре [09:34:33]line ОКРУГЛЕНИЕ: -0.14 [09:34:33]line ИТОГО: 1000.00 [09:34:33]line Внесено: 1000.00 [09:34:33]line СДАЧА: 0.00 [09:34:33]line НСП 1% : 8.85 [09:34:33]line НДС 12% : 106.21 [09:34:33]line Наличными: 1000.00 [09:34:33]line Безнал.: 0.00 [09:34:33]line Место: АЗС № 106 "Партнер Нефть" [09:34:33]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:34:33]line СНО: Общий режим [09:34:33]line Чек 42 22.04.2024 09:34 [09:34:33]line Смена: 373 ФФД: 1.0 [09:34:33]line ЗНМ: 0300000141 [09:34:33]line РНМ: 0000000000091573 [09:34:33]line Версия ККМ: 001 [09:34:33]line [09:34:33]line Дисконтная программа [09:34:33]line СУГ [09:34:33]line номер 106 [09:34:33]line сэкономлено 31.55 сом [09:34:33]line ФМ: 0000000000874652 [09:34:33]line ФД: 77023 [09:34:33]line ФПД: 17635425086469 [09:34:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T093434&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77023&fm=17635425086469&tin=02508201610067®Number=0000000000091573&sum=100000 [09:34:33]OFD Sender: Processing packet 77023 [packets to send 129, broken 128] [09:34:33]ProducePacketName [09:34:33]name=ofd_packets/00077023 [09:34:33]OFD Sender: To server: pG, [09:34:33]CommunicateWithHost lk.salyk.kg:30040 [09:34:33]ConnectInit lk.salyk.kg [09:34:33]written 0, free lines is 4095 [09:34:33]Connected sock=10 [09:34:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 FA 3B 06 01 2E 5A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 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 2A 2F 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DF 2C 01 00 35 04 06 00 10 0A 11 3F 6C 05 DC 3B FF 33 B5 44 6D 30 [09:34:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 F5 90 47 00 65 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 DF 2C 01 00 F4 03 04 00 AD D6 25 66 B6 04 01 00 00 0C 7E B7 4A 3F 4A 4E D4 [09:34:34]CommunicateWithHost err = 0 [09:34:34]CheckOFDResponse [09:34:34]1017 (14) - 77093643461234 [09:34:34]1041 (16) - 0000000000874652 [09:34:34]1040 (4) - 77023 [09:34:34]1012 (4) - 22.04.2024 03:17 [09:34:34]1206 (1) - 0 [09:34:34]OFD Sender: Remove packet 77023 [09:34:34]ProducePacketName [09:34:34]name=ofd_packets/00077023 [09:34:34]NVStorageDeleteData [09:34:34]Write to MH i2c: 01 00 00 4F 0E 5D [09:34:34]Write i2c OK [09:34:34]MH_I2C_Read... [09:34:34]Read from MH i2c: 01 [09:34:34]MH_I2C_Read... [09:34:34]Read from MH i2c: 01 07 00 [09:34:34]MH_I2C_Read... [09:34:34]Read from MH i2c: 01 07 00 4F 0E 00 00 00 00 00 91 0C 01 [09:34:34]RasterBufferAndPrint [09:34:34]line [09:34:34]line [09:34:34]line [09:34:34]line [09:34:34]line [09:34:34]written 0, free lines is 3223 [09:34:34]MH_Cut [09:34:34]Write to MH i2c: D1 01 00 56 0E 01 36 [09:34:34]Write i2c OK [09:34:34]MH_I2C_Read... [09:34:34]Read from MH i2c: D1 [09:34:34]MH_I2C_Read... [09:34:34]Read from MH i2c: D1 01 00 [09:34:34]MH_I2C_Read... [09:34:34]Read from MH i2c: D1 01 00 56 0E 00 35 [09:34:34]Write to MH i2c: 01 00 00 57 0E 65 [09:34:34]Write i2c OK [09:34:34]MH_I2C_Read... [09:34:34]OFD Sender: No OFD packet to send [09:34:35]*** Cut start [09:34:35]*** Partial cut [09:34:35]*** CUTSNS_PIN = 1 [09:34:35]*** CUTSNS_PIN = 0 [09:34:35]*** Brake cut motor [09:34:35]Read from MH i2c: 01 [09:34:35]MH_I2C_Read... [09:34:35]*** Stop cut motor [09:34:35]*** Cut end [09:34:35]Read from MH i2c: 01 07 00 [09:34:35]MH_I2C_Read... [09:34:35]Read from MH i2c: 01 07 00 57 0E 00 00 00 00 00 FF 0F 7A [09:34:35]process_action close_receipt done [09:34:35]requested_data is exist [09:34:35]produce_requested_data [09:34:35]requested_item fm.sn is exist - process it [09:34:35]wFMCommunicate request_size=4 [09:34:35]MH_SAM_APDU [09:34:35]CAPDU: 80 11 00 00 [09:34:35]Write to MH i2c: E2 08 00 58 0E 80 11 00 00 00 00 00 00 E0 [09:34:35]Write i2c OK [09:34:35]MH_I2C_Read... [09:34:35]Read from MH i2c: E2 [09:34:35]MH_I2C_Read... [09:34:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:35]Read from MH i2c: E2 17 00 [09:34:35]MH_I2C_Read... [09:34:35]Read from MH i2c: E2 17 00 58 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 33 [09:34:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:34:35]wFMCommunicate OK [09:34:35]requested_item fd.num is exist - process it [09:34:35]SAM_PROTO_GetFieldsCounters [09:34:35]wFMCommunicate request_size=4 [09:34:35]MH_SAM_APDU [09:34:35]CAPDU: 80 13 00 00 [09:34:35]Write to MH i2c: E2 08 00 59 0E 80 13 00 00 00 00 00 00 E3 [09:34:35]Write i2c OK [09:34:35]MH_I2C_Read... [09:34:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:35]Read from MH i2c: E2 [09:34:35]MH_I2C_Read... [09:34:35]Read from MH i2c: E2 62 00 [09:34:35]MH_I2C_Read... [09:34:35]Read from MH i2c: E2 62 00 59 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [09:34:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:34:35]wFMCommunicate OK [09:34:35]SAM_PROTO_GetFieldsCounters done [09:34:35]requested_item shift.num is exist - process it [09:34:35]requested_item shift.opened is exist - process it [09:34:35]req_shift_opened [09:34:35]FM_GetShiftState [09:34:35]SAM_PROTO_GetShiftState [09:34:35]wFMCommunicate request_size=4 [09:34:35]MH_SAM_APDU [09:34:35]CAPDU: 80 13 01 00 [09:34:35]Write to MH i2c: E2 08 00 5A 0E 80 13 01 00 00 00 00 00 E5 [09:34:35]Write i2c OK [09:34:35]MH_I2C_Read... [09:34:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:35]Read from MH i2c: E2 [09:34:35]MH_I2C_Read... [09:34:35]Read from MH i2c: E2 0E 00 [09:34:35]MH_I2C_Read... [09:34:35]Read from MH i2c: E2 0E 00 5A 0E 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 0C [09:34:35]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:34:35]wFMCommunicate OK [09:34:35]SAM_PROTO_GetShiftState done [09:34:35]FM_GetShiftState done [09:34:35]req_shift_opened done [09:34:35]requested_item shift.open_date is exist - process it [09:34:35]req_shift_open_date [09:34:35]req_shift_open_date done [09:34:35]produce_requested_data done [09:34:35]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77023,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:34:35]process_action_free close_receipt [09:34:35]json_value_free [09:34:35]json_value_free done [09:34:35]process_json_proto returns [09:34:35]Send response to host [09:34:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77023,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:34:35]free response buf [09:34:35]execute_script done [09:34:35]execute_script returns [09:34:35]free content buf [09:34:35]Sock 9.Close socket [09:34:35]Sock 9.Thread stoped [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [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]accept exits with 7 [09:36:29]New connection [09:36:29]New thread 3067174244 created [09:36:29]Thread 3067030884 joined [09:36:29]Waiting for new connection... [09:36:29] Sock 7.Parse request [09:36:29]Sock 7.Check first char [09:36:29]Sock 7.First char is OK [09:36:29]request: POST /json_proto HTTP/1.0 [09:36:29]Method: POST [09:36:29]URL: /json_proto [09:36:29]Method is POST - this is cgi request [09:36:29]url: /json_proto [09:36:29]query_string will be loaded in cgi processing [09:36:29]execute_cgi json_proto POST (null) [09:36:29]execute_cgi path=json_proto method=POST [09:36:29]POST find Content-Length [09:36:29]Host: 172.17.62.5:8080 [09:36:29]Content-Length: 1210 [09:36:29]Content-Type: application/json [09:36:29] [09:36:29]POST finish read [09:36:29]Found Content-Length = 1210 [09:36:29]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191591\u000A22.04.2024 09:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 54.950 x 72.90\u000A\u0418\u0422\u041E\u0413: 4005.86\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74810\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:29]execute_script... [09:36:29]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191591\u000A22.04.2024 09:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 54.950 x 72.90\u000A\u0418\u0422\u041E\u0413: 4005.86\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74810\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:29]POST & json_proto [09:36:29]process_json_proto [09:36:29]json parsed OK: [09:36:29]protocol is kg_v1.0 [09:36:29]action value=print_text [09:36:29]process_action print_text [09:36:29]cmd_print_text [09:36:29]ExternCall_PrintAddStr [09:36:29]wPrintStart [09:36:29]Write to MH i2c: 01 00 00 5B 0E 69 [09:36:29]Write i2c OK [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: 01 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: 01 07 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: 01 07 00 5B 0E 00 00 00 00 00 FF 0F 7E [09:36:29]RasterBufferAndPrint [09:36:29]line *****ТОВАРНЫЙ ЧЕК***** [09:36:29]line АЗС 106 [09:36:29]line Партнер нефть [09:36:29]line 02508201610067 [09:36:29]line Кассир : Токторбаева Н. [09:36:29]line Счет N : (1)191591 [09:36:29]line 22.04.2024 09:17 [09:36:29]line ПРОДАЖА [09:36:29]line ТРК (МРК, ГНК): 51 [09:36:29]line Вид ГСМ : 2710194210 [09:36:29]line ДТ-К-5 [09:36:29]line 54.950 x 72.90 [09:36:29]line ИТОГ: 4005.86 [09:36:29]line Тип оплаты: Талоны: Топливная Карта [09:36:29]line 74810 [09:36:29]line ______________________ [09:36:29]line (подпись) [09:36:29]written 0, free lines is 4095 [09:36:29]Write to MH i2c: 01 00 00 70 0E 7E [09:36:29]Write i2c OK [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: 01 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: 01 07 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: 01 07 00 70 0E 00 00 00 00 00 F2 0D 84 [09:36:29]RasterBufferAndPrint [09:36:29]line [09:36:29]line [09:36:29]line [09:36:29]line [09:36:29]line [09:36:29]written 0, free lines is 3572 [09:36:29]MH_Cut [09:36:29]Write to MH i2c: D1 01 00 77 0E 01 57 [09:36:29]Write i2c OK [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: D1 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: D1 01 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: D1 01 00 77 0E 00 56 [09:36:29]Write to MH i2c: 01 00 00 78 0E 86 [09:36:29]Write i2c OK [09:36:29]MH_I2C_Read... [09:36:29]OFD Sender: No OFD packet to send [09:36:30]*** Cut start [09:36:30]*** Partial cut [09:36:30]*** CUTSNS_PIN = 1 [09:36:30]*** CUTSNS_PIN = 0 [09:36:30]*** Brake cut motor [09:36:30]Read from MH i2c: 01 [09:36:30]MH_I2C_Read... [09:36:30]*** Stop cut motor [09:36:30]*** Cut end [09:36:30]Read from MH i2c: 01 07 00 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: 01 07 00 78 0E 00 00 00 00 00 FF 0F 9B [09:36:30]process_action print_text done [09:36:30]requested_data is exist [09:36:30]produce_requested_data [09:36:30]requested_item fm.sn is exist - process it [09:36:30]wFMCommunicate request_size=4 [09:36:30]MH_SAM_APDU [09:36:30]CAPDU: 80 11 00 00 [09:36:30]Write to MH i2c: E2 08 00 79 0E 80 11 00 00 00 00 00 00 01 [09:36:30]Write i2c OK [09:36:30]MH_I2C_Read... [09:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:30]Read from MH i2c: E2 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 17 00 [09:36:30]MH_I2C_Read... [09:36:30]Read from MH i2c: E2 17 00 79 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 54 [09:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:36:30]wFMCommunicate OK [09:36:30]requested_item fd.num is exist - process it [09:36:30]SAM_PROTO_GetFieldsCounters [09:36:30]wFMCommunicate request_size=4 [09:36:30]MH_SAM_APDU [09:36:30]CAPDU: 80 13 00 00 [09:36:30]Write to MH i2c: E2 08 00 7A 0E 80 13 00 00 00 00 00 00 04 [09:36:30]Write i2c OK [09:36:30]MH_I2C_Read... [09:36:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:31]Read from MH i2c: E2 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: E2 62 00 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: E2 62 00 7A 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [09:36:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:31]wFMCommunicate OK [09:36:31]SAM_PROTO_GetFieldsCounters done [09:36:31]requested_item shift.num is exist - process it [09:36:31]requested_item shift.opened is exist - process it [09:36:31]req_shift_opened [09:36:31]FM_GetShiftState [09:36:31]SAM_PROTO_GetShiftState [09:36:31]wFMCommunicate request_size=4 [09:36:31]MH_SAM_APDU [09:36:31]CAPDU: 80 13 01 00 [09:36:31]Write to MH i2c: E2 08 00 7B 0E 80 13 01 00 00 00 00 00 06 [09:36:31]Write i2c OK [09:36:31]MH_I2C_Read... [09:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:31]Read from MH i2c: E2 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: E2 0E 00 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: E2 0E 00 7B 0E 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 2D [09:36:31]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:36:31]wFMCommunicate OK [09:36:31]SAM_PROTO_GetShiftState done [09:36:31]FM_GetShiftState done [09:36:31]req_shift_opened done [09:36:31]requested_item shift.open_date is exist - process it [09:36:31]req_shift_open_date [09:36:31]req_shift_open_date done [09:36:31]produce_requested_data done [09:36:31]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77023,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:36:31]process_action_free print_text [09:36:31]json_value_free [09:36:31]json_value_free done [09:36:31]process_json_proto returns [09:36:31]Send response to host [09:36:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77023,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:36:31]free response buf [09:36:31]execute_script done [09:36:31]execute_script returns [09:36:31]free content buf [09:36:31]Sock 7.Close socket [09:36:31]Sock 7.Thread stoped [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:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:39:55]accept exits with 9 [09:39:55]New connection [09:39:55]New thread 3067030884 created [09:39:55]Thread 3067174244 joined [09:39:55]Waiting for new connection... [09:39:55] Sock 9.Parse request [09:39:55]Sock 9.Check first char [09:39:55]Sock 9.First char is OK [09:39:55]request: POST /json_proto HTTP/1.0 [09:39:55]Method: POST [09:39:55]URL: /json_proto [09:39:55]Method is POST - this is cgi request [09:39:55]url: /json_proto [09:39:55]query_string will be loaded in cgi processing [09:39:55]execute_cgi json_proto POST (null) [09:39:55]execute_cgi path=json_proto method=POST [09:39:55]POST find Content-Length [09:39:55]Host: 172.17.62.5:8080 [09:39:55]Content-Length: 1174 [09:39:55]Content-Type: application/json [09:39:55] [09:39:55]POST finish read [09:39:55]Found Content-Length = 1174 [09:39:55]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191592\u000A22.04.2024 09:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 966.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:55]execute_script... [09:39:55]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191592\u000A22.04.2024 09:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 966.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:55]POST & json_proto [09:39:55]process_json_proto [09:39:55]json parsed OK: [09:39:55]protocol is kg_v1.0 [09:39:55]action value=print_text [09:39:55]process_action print_text [09:39:55]cmd_print_text [09:39:55]ExternCall_PrintAddStr [09:39:55]wPrintStart [09:39:55]Write to MH i2c: 01 00 00 7C 0E 8A [09:39:55]Write i2c OK [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: 01 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: 01 07 00 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: 01 07 00 7C 0E 00 00 00 00 00 FF 0F 9F [09:39:55]RasterBufferAndPrint [09:39:55]line *****ТОВАРНЫЙ ЧЕК***** [09:39:55]line АЗС 106 [09:39:55]line Партнер нефть [09:39:55]line 02508201610067 [09:39:55]line Кассир : Токторбаева Н. [09:39:55]line Счет N : (1)191592 [09:39:55]line 22.04.2024 09:21 [09:39:55]line ПРОДАЖА [09:39:55]line ТРК (МРК, ГНК): 43 [09:39:55]line Вид ГСМ : 2710124130 [09:39:55]line Аи-92-К-5 [09:39:55]line 15.000 x 64.40 [09:39:55]line ИТОГ: 966.00 [09:39:55]line Тип оплаты: Талоны: ТК ГПНА Online [09:39:55]line 30102984 [09:39:55]line ______________________ [09:39:55]line (подпись) [09:39:55]written 0, free lines is 4095 [09:39:55]Write to MH i2c: 01 00 00 91 0E 9F [09:39:55]Write i2c OK [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: 01 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: 01 07 00 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: 01 07 00 91 0E 00 00 00 00 00 F5 0D A8 [09:39:55]RasterBufferAndPrint [09:39:55]line [09:39:55]line [09:39:55]line [09:39:55]line [09:39:55]line [09:39:55]written 0, free lines is 3575 [09:39:55]MH_Cut [09:39:55]Write to MH i2c: D1 01 00 98 0E 01 78 [09:39:55]Write i2c OK [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: D1 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: D1 01 00 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: D1 01 00 98 0E 00 77 [09:39:55]Write to MH i2c: 01 00 00 99 0E A7 [09:39:55]Write i2c OK [09:39:55]MH_I2C_Read... [09:39:56]*** Cut start [09:39:56]*** Partial cut [09:39:56]*** CUTSNS_PIN = 1 [09:39:56]*** CUTSNS_PIN = 0 [09:39:56]*** Brake cut motor [09:39:57]Read from MH i2c: 01 [09:39:57]MH_I2C_Read... [09:39:57]*** Stop cut motor [09:39:57]*** Cut end [09:39:57]Read from MH i2c: 01 07 00 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: 01 07 00 99 0E 00 00 00 00 00 FF 0F BC [09:39:57]process_action print_text done [09:39:57]requested_data is exist [09:39:57]produce_requested_data [09:39:57]requested_item fm.sn is exist - process it [09:39:57]wFMCommunicate request_size=4 [09:39:57]MH_SAM_APDU [09:39:57]CAPDU: 80 11 00 00 [09:39:57]Write to MH i2c: E2 08 00 9A 0E 80 11 00 00 00 00 00 00 22 [09:39:57]Write i2c OK [09:39:57]MH_I2C_Read... [09:39:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:57]Read from MH i2c: E2 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 17 00 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 17 00 9A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 75 [09:39:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:39:57]wFMCommunicate OK [09:39:57]requested_item fd.num is exist - process it [09:39:57]SAM_PROTO_GetFieldsCounters [09:39:57]wFMCommunicate request_size=4 [09:39:57]MH_SAM_APDU [09:39:57]CAPDU: 80 13 00 00 [09:39:57]Write to MH i2c: E2 08 00 9B 0E 80 13 00 00 00 00 00 00 25 [09:39:57]Write i2c OK [09:39:57]MH_I2C_Read... [09:39:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:57]Read from MH i2c: E2 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 62 00 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 62 00 9B 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [09:39:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:57]wFMCommunicate OK [09:39:57]SAM_PROTO_GetFieldsCounters done [09:39:57]requested_item shift.num is exist - process it [09:39:57]requested_item shift.opened is exist - process it [09:39:57]req_shift_opened [09:39:57]FM_GetShiftState [09:39:57]SAM_PROTO_GetShiftState [09:39:57]wFMCommunicate request_size=4 [09:39:57]MH_SAM_APDU [09:39:57]CAPDU: 80 13 01 00 [09:39:57]Write to MH i2c: E2 08 00 9C 0E 80 13 01 00 00 00 00 00 27 [09:39:57]Write i2c OK [09:39:57]MH_I2C_Read... [09:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:57]Read from MH i2c: E2 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 0E 00 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 0E 00 9C 0E 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 4E [09:39:57]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:39:57]wFMCommunicate OK [09:39:57]SAM_PROTO_GetShiftState done [09:39:57]FM_GetShiftState done [09:39:57]req_shift_opened done [09:39:57]requested_item shift.open_date is exist - process it [09:39:57]req_shift_open_date [09:39:57]req_shift_open_date done [09:39:57]produce_requested_data done [09:39:57]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77023,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:39:57]process_action_free print_text [09:39:57]json_value_free [09:39:57]json_value_free done [09:39:57]process_json_proto returns [09:39:57]Send response to host [09:39:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77023,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:39:57]free response buf [09:39:57]execute_script done [09:39:57]execute_script returns [09:39:57]free content buf [09:39:57]Sock 9.Close socket [09:39:57]Sock 9.Thread stoped [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:34]accept exits with 7 [09:41:34]New connection [09:41:34]New thread 3067174244 created [09:41:34]Thread 3067030884 joined [09:41:34]Waiting for new connection... [09:41:34] Sock 7.Parse request [09:41:34]Sock 7.Check first char [09:41:34]Sock 7.First char is OK [09:41:34]request: POST /json_proto HTTP/1.0 [09:41:34]Method: POST [09:41:34]URL: /json_proto [09:41:34]Method is POST - this is cgi request [09:41:34]url: /json_proto [09:41:34]query_string will be loaded in cgi processing [09:41:34]execute_cgi json_proto POST (null) [09:41:34]execute_cgi path=json_proto method=POST [09:41:34]POST find Content-Length [09:41:34]Host: 172.17.62.5:8080 [09:41:34]Content-Length: 1175 [09:41:34]Content-Type: application/json [09:41:34] [09:41:34]POST finish read [09:41:34]Found Content-Length = 1175 [09:41:34]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191593\u000A22.04.2024 09:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:34]execute_script... [09:41:34]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191593\u000A22.04.2024 09:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:34]POST & json_proto [09:41:34]process_json_proto [09:41:34]json parsed OK: [09:41:34]protocol is kg_v1.0 [09:41:34]action value=print_text [09:41:34]process_action print_text [09:41:34]cmd_print_text [09:41:34]ExternCall_PrintAddStr [09:41:34]wPrintStart [09:41:34]Write to MH i2c: 01 00 00 9D 0E AB [09:41:34]Write i2c OK [09:41:34]MH_I2C_Read... [09:41:34]Read from MH i2c: 01 [09:41:34]MH_I2C_Read... [09:41:34]Read from MH i2c: 01 07 00 [09:41:34]MH_I2C_Read... [09:41:34]Read from MH i2c: 01 07 00 9D 0E 00 00 00 00 00 FF 0F C0 [09:41:34]RasterBufferAndPrint [09:41:34]line *****ТОВАРНЫЙ ЧЕК***** [09:41:34]line АЗС 106 [09:41:34]line Партнер нефть [09:41:34]line 02508201610067 [09:41:34]line Кассир : Токторбаева Н. [09:41:34]line Счет N : (1)191593 [09:41:34]line 22.04.2024 09:22 [09:41:34]line ПРОДАЖА [09:41:34]line ТРК (МРК, ГНК): 22 [09:41:34]line Вид ГСМ : 2710124130 [09:41:34]line Аи-92-К-5 [09:41:34]line 20.000 x 64.40 [09:41:34]line ИТОГ: 1288.00 [09:41:34]line Тип оплаты: Талоны: ТК ГПНА Online [09:41:34]line 30102984 [09:41:34]line ______________________ [09:41:34]line (подпись) [09:41:34]written 0, free lines is 4095 [09:41:35]Write to MH i2c: 01 00 00 B2 0E C0 [09:41:35]Write i2c OK [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: 01 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: 01 07 00 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: 01 07 00 B2 0E 00 00 00 00 00 F5 0D C9 [09:41:35]RasterBufferAndPrint [09:41:35]line [09:41:35]line [09:41:35]line [09:41:35]line [09:41:35]line [09:41:35]written 0, free lines is 3575 [09:41:35]MH_Cut [09:41:35]Write to MH i2c: D1 01 00 B9 0E 01 99 [09:41:35]Write i2c OK [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: D1 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: D1 01 00 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: D1 01 00 B9 0E 00 98 [09:41:35]Write to MH i2c: 01 00 00 BA 0E C8 [09:41:35]Write i2c OK [09:41:35]MH_I2C_Read... [09:41:35]OFD Sender: No OFD packet to send [09:41:35]*** Cut start [09:41:35]*** Partial cut [09:41:35]*** CUTSNS_PIN = 1 [09:41:35]*** CUTSNS_PIN = 0 [09:41:35]*** Brake cut motor [09:41:36]Read from MH i2c: 01 [09:41:36]MH_I2C_Read... [09:41:36]*** Stop cut motor [09:41:36]*** Cut end [09:41:36]Read from MH i2c: 01 07 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: 01 07 00 BA 0E 00 00 00 00 00 FF 0F DD [09:41:36]process_action print_text done [09:41:36]requested_data is exist [09:41:36]produce_requested_data [09:41:36]requested_item fm.sn is exist - process it [09:41:36]wFMCommunicate request_size=4 [09:41:36]MH_SAM_APDU [09:41:36]CAPDU: 80 11 00 00 [09:41:36]Write to MH i2c: E2 08 00 BB 0E 80 11 00 00 00 00 00 00 43 [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:36]Read from MH i2c: E2 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: E2 17 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: E2 17 00 BB 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 96 [09:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:41:36]wFMCommunicate OK [09:41:36]requested_item fd.num is exist - process it [09:41:36]SAM_PROTO_GetFieldsCounters [09:41:36]wFMCommunicate request_size=4 [09:41:36]MH_SAM_APDU [09:41:36]CAPDU: 80 13 00 00 [09:41:36]Write to MH i2c: E2 08 00 BC 0E 80 13 00 00 00 00 00 00 46 [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:36]Read from MH i2c: E2 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: E2 62 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: E2 62 00 BC 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [09:41:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:36]wFMCommunicate OK [09:41:36]SAM_PROTO_GetFieldsCounters done [09:41:36]requested_item shift.num is exist - process it [09:41:36]requested_item shift.opened is exist - process it [09:41:36]req_shift_opened [09:41:36]FM_GetShiftState [09:41:36]SAM_PROTO_GetShiftState [09:41:36]wFMCommunicate request_size=4 [09:41:36]MH_SAM_APDU [09:41:36]CAPDU: 80 13 01 00 [09:41:36]Write to MH i2c: E2 08 00 BD 0E 80 13 01 00 00 00 00 00 48 [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:36]Read from MH i2c: E2 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: E2 0E 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: E2 0E 00 BD 0E 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 6F [09:41:36]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:41:36]wFMCommunicate OK [09:41:36]SAM_PROTO_GetShiftState done [09:41:36]FM_GetShiftState done [09:41:36]req_shift_opened done [09:41:36]requested_item shift.open_date is exist - process it [09:41:36]req_shift_open_date [09:41:36]req_shift_open_date done [09:41:36]produce_requested_data done [09:41:36]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77023,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:41:36]process_action_free print_text [09:41:36]json_value_free [09:41:36]json_value_free done [09:41:36]process_json_proto returns [09:41:36]Send response to host [09:41:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77023,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:41:36]free response buf [09:41:36]execute_script done [09:41:36]execute_script returns [09:41:36]free content buf [09:41:36]Sock 7.Close socket [09:41:36]Sock 7.Thread stoped [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [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:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]accept exits with 10 [09:48:05]New connection [09:48:05]New thread 3067030884 created [09:48:05]Thread 3067174244 joined [09:48:05]Waiting for new connection... [09:48:05] Sock 10.Parse request [09:48:05]Sock 10.Check first char [09:48:05]Sock 10.First char is OK [09:48:05]request: POST /json_proto HTTP/1.0 [09:48:05]Method: POST [09:48:05]URL: /json_proto [09:48:05]Method is POST - this is cgi request [09:48:05]url: /json_proto [09:48:05]query_string will be loaded in cgi processing [09:48:05]execute_cgi json_proto POST (null) [09:48:05]execute_cgi path=json_proto method=POST [09:48:05]POST find Content-Length [09:48:05]Host: 172.17.62.5:8080 [09:48:05]Content-Length: 1175 [09:48:05]Content-Type: application/json [09:48:05] [09:48:05]POST finish read [09:48:05]Found Content-Length = 1175 [09:48:05]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191594\u000A22.04.2024 09:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 38.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 2447.20\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102919\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:05]execute_script... [09:48:05]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191594\u000A22.04.2024 09:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 38.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 2447.20\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102919\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:05]POST & json_proto [09:48:05]process_json_proto [09:48:05]json parsed OK: [09:48:05]protocol is kg_v1.0 [09:48:05]action value=print_text [09:48:05]process_action print_text [09:48:05]cmd_print_text [09:48:05]ExternCall_PrintAddStr [09:48:05]wPrintStart [09:48:05]Write to MH i2c: 01 00 00 BE 0E CC [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: 01 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: 01 07 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: 01 07 00 BE 0E 00 00 00 00 00 FF 0F E1 [09:48:05]RasterBufferAndPrint [09:48:05]line *****ТОВАРНЫЙ ЧЕК***** [09:48:05]line АЗС 106 [09:48:05]line Партнер нефть [09:48:05]line 02508201610067 [09:48:05]line Кассир : Токторбаева Н. [09:48:05]line Счет N : (1)191594 [09:48:05]line 22.04.2024 09:29 [09:48:05]line ПРОДАЖА [09:48:05]line ТРК (МРК, ГНК): 33 [09:48:05]line Вид ГСМ : 2710124130 [09:48:05]line Аи-92-К-5 [09:48:05]line 38.000 x 64.40 [09:48:05]line ИТОГ: 2447.20 [09:48:05]line Тип оплаты: Талоны: ТК ГПНА Online [09:48:05]line 30102919 [09:48:05]line ______________________ [09:48:05]line (подпись) [09:48:05]written 0, free lines is 4095 [09:48:05]Write to MH i2c: 01 00 00 D3 0E E1 [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: 01 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: 01 07 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: 01 07 00 D3 0E 00 00 00 00 00 F5 0D EA [09:48:05]RasterBufferAndPrint [09:48:05]line [09:48:05]line [09:48:05]line [09:48:05]line [09:48:05]line [09:48:05]written 0, free lines is 3575 [09:48:05]MH_Cut [09:48:05]Write to MH i2c: D1 01 00 DA 0E 01 BA [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: D1 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: D1 01 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: D1 01 00 DA 0E 00 B9 [09:48:05]Write to MH i2c: 01 00 00 DB 0E E9 [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]OFD Sender: No OFD packet to send [09:48:06]*** Cut start [09:48:06]*** Partial cut [09:48:06]*** CUTSNS_PIN = 1 [09:48:06]*** CUTSNS_PIN = 0 [09:48:06]*** Brake cut motor [09:48:06]Read from MH i2c: 01 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: 01 07 00 [09:48:06]MH_I2C_Read... [09:48:06]*** Stop cut motor [09:48:06]*** Cut end [09:48:06]Read from MH i2c: 01 07 00 DB 0E 00 00 00 00 00 FF 0F FE [09:48:06]process_action print_text done [09:48:06]requested_data is exist [09:48:06]produce_requested_data [09:48:06]requested_item fm.sn is exist - process it [09:48:06]wFMCommunicate request_size=4 [09:48:06]MH_SAM_APDU [09:48:06]CAPDU: 80 11 00 00 [09:48:06]Write to MH i2c: E2 08 00 DC 0E 80 11 00 00 00 00 00 00 64 [09:48:06]Write i2c OK [09:48:06]MH_I2C_Read... [09:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:06]Read from MH i2c: E2 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 17 00 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 17 00 DC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B7 [09:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:48:06]wFMCommunicate OK [09:48:06]requested_item fd.num is exist - process it [09:48:06]SAM_PROTO_GetFieldsCounters [09:48:06]wFMCommunicate request_size=4 [09:48:06]MH_SAM_APDU [09:48:06]CAPDU: 80 13 00 00 [09:48:06]Write to MH i2c: E2 08 00 DD 0E 80 13 00 00 00 00 00 00 67 [09:48:06]Write i2c OK [09:48:06]MH_I2C_Read... [09:48:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:06]Read from MH i2c: E2 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 62 00 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 62 00 DD 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [09:48:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:06]wFMCommunicate OK [09:48:06]SAM_PROTO_GetFieldsCounters done [09:48:06]requested_item shift.num is exist - process it [09:48:06]requested_item shift.opened is exist - process it [09:48:06]req_shift_opened [09:48:06]FM_GetShiftState [09:48:06]SAM_PROTO_GetShiftState [09:48:06]wFMCommunicate request_size=4 [09:48:06]MH_SAM_APDU [09:48:06]CAPDU: 80 13 01 00 [09:48:06]Write to MH i2c: E2 08 00 DE 0E 80 13 01 00 00 00 00 00 69 [09:48:06]Write i2c OK [09:48:06]MH_I2C_Read... [09:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:07]Read from MH i2c: E2 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: E2 0E 00 [09:48:07]MH_I2C_Read... [09:48:07]Read from MH i2c: E2 0E 00 DE 0E 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 90 [09:48:07]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:48:07]wFMCommunicate OK [09:48:07]SAM_PROTO_GetShiftState done [09:48:07]FM_GetShiftState done [09:48:07]req_shift_opened done [09:48:07]requested_item shift.open_date is exist - process it [09:48:07]req_shift_open_date [09:48:07]req_shift_open_date done [09:48:07]produce_requested_data done [09:48:07]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77023,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:48:07]process_action_free print_text [09:48:07]json_value_free [09:48:07]json_value_free done [09:48:07]process_json_proto returns [09:48:07]Send response to host [09:48:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77023,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:48:07]free response buf [09:48:07]execute_script done [09:48:07]execute_script returns [09:48:07]free content buf [09:48:07]Sock 10.Close socket [09:48:07]Sock 10.Thread stoped [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:49:59]accept exits with 7 [09:49:59]New connection [09:49:59]New thread 3067174244 created [09:49:59]Thread 3067030884 joined [09:49:59]Waiting for new connection... [09:49:59] Sock 7.Parse request [09:49:59]Sock 7.Check first char [09:49:59]Sock 7.First char is OK [09:49:59]request: POST /json_proto HTTP/1.0 [09:49:59]Method: POST [09:49:59]URL: /json_proto [09:49:59]Method is POST - this is cgi request [09:49:59]url: /json_proto [09:49:59]query_string will be loaded in cgi processing [09:49:59]execute_cgi json_proto POST (null) [09:49:59]execute_cgi path=json_proto method=POST [09:49:59]POST find Content-Length [09:49:59]Host: 172.17.62.5:8080 [09:49:59]Content-Length: 1173 [09:49:59]Content-Type: application/json [09:49:59] [09:49:59]POST finish read [09:49:59]Found Content-Length = 1173 [09:49:59]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191596\u000A22.04.2024 09:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 1.990 x 64.40\u000A\u0418\u0422\u041E\u0413: 128.16\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102919\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:59]execute_script... [09:49:59]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191596\u000A22.04.2024 09:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 1.990 x 64.40\u000A\u0418\u0422\u041E\u0413: 128.16\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102919\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:59]POST & json_proto [09:49:59]process_json_proto [09:49:59]json parsed OK: [09:49:59]protocol is kg_v1.0 [09:49:59]action value=print_text [09:49:59]process_action print_text [09:49:59]cmd_print_text [09:49:59]ExternCall_PrintAddStr [09:49:59]wPrintStart [09:49:59]Write to MH i2c: 01 00 00 DF 0E ED [09:49:59]Write i2c OK [09:49:59]MH_I2C_Read... [09:49:59]Read from MH i2c: 01 [09:49:59]MH_I2C_Read... [09:49:59]Read from MH i2c: 01 07 00 [09:49:59]MH_I2C_Read... [09:49:59]Read from MH i2c: 01 07 00 DF 0E 00 00 00 00 00 FF 0F 02 [09:49:59]RasterBufferAndPrint [09:49:59]line *****ТОВАРНЫЙ ЧЕК***** [09:49:59]line АЗС 106 [09:49:59]line Партнер нефть [09:49:59]line 02508201610067 [09:49:59]line Кассир : Токторбаева Н. [09:49:59]line Счет N : (1)191596 [09:49:59]line 22.04.2024 09:31 [09:49:59]line ПРОДАЖА [09:49:59]line ТРК (МРК, ГНК): 33 [09:49:59]line Вид ГСМ : 2710124130 [09:49:59]line Аи-92-К-5 [09:49:59]line 1.990 x 64.40 [09:49:59]line ИТОГ: 128.16 [09:49:59]line Тип оплаты: Талоны: ТК ГПНА Online [09:49:59]line 30102919 [09:49:59]line ______________________ [09:49:59]line (подпись) [09:49:59]written 0, free lines is 4095 [09:50:00]Write to MH i2c: 01 00 00 F4 0E 02 [09:50:00]Write i2c OK [09:50:00]MH_I2C_Read... [09:50:00]Read from MH i2c: 01 [09:50:00]MH_I2C_Read... [09:50:00]Read from MH i2c: 01 07 00 [09:50:00]MH_I2C_Read... [09:50:00]Read from MH i2c: 01 07 00 F4 0E 00 00 00 00 00 F3 0D 09 [09:50:00]RasterBufferAndPrint [09:50:00]line [09:50:00]line [09:50:00]line [09:50:00]line [09:50:00]line [09:50:00]written 0, free lines is 3572 [09:50:00]MH_Cut [09:50:00]Write to MH i2c: D1 01 00 FB 0E 01 DB [09:50:00]Write i2c OK [09:50:00]MH_I2C_Read... [09:50:00]Read from MH i2c: D1 [09:50:00]MH_I2C_Read... [09:50:00]Read from MH i2c: D1 01 00 [09:50:00]MH_I2C_Read... [09:50:00]Read from MH i2c: D1 01 00 FB 0E 00 DA [09:50:00]Write to MH i2c: 01 00 00 FC 0E 0A [09:50:00]Write i2c OK [09:50:00]MH_I2C_Read... [09:50:00]*** Cut start [09:50:00]*** Partial cut [09:50:00]*** CUTSNS_PIN = 1 [09:50:00]*** CUTSNS_PIN = 0 [09:50:00]OFD Sender: No OFD packet to send [09:50:00]*** Brake cut motor [09:50:01]Read from MH i2c: 01 [09:50:01]MH_I2C_Read... [09:50:01]Read from MH i2c: 01 07 00 [09:50:01]MH_I2C_Read... [09:50:01]*** Stop cut motor [09:50:01]*** Cut end [09:50:01]Read from MH i2c: 01 07 00 FC 0E 00 00 00 00 00 FF 0F 1F [09:50:01]process_action print_text done [09:50:01]requested_data is exist [09:50:01]produce_requested_data [09:50:01]requested_item fm.sn is exist - process it [09:50:01]wFMCommunicate request_size=4 [09:50:01]MH_SAM_APDU [09:50:01]CAPDU: 80 11 00 00 [09:50:01]Write to MH i2c: E2 08 00 FD 0E 80 11 00 00 00 00 00 00 85 [09:50:01]Write i2c OK [09:50:01]MH_I2C_Read... [09:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:01]Read from MH i2c: E2 [09:50:01]MH_I2C_Read... [09:50:01]Read from MH i2c: E2 17 00 [09:50:01]MH_I2C_Read... [09:50:01]Read from MH i2c: E2 17 00 FD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D8 [09:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:50:01]wFMCommunicate OK [09:50:01]requested_item fd.num is exist - process it [09:50:01]SAM_PROTO_GetFieldsCounters [09:50:01]wFMCommunicate request_size=4 [09:50:01]MH_SAM_APDU [09:50:01]CAPDU: 80 13 00 00 [09:50:01]Write to MH i2c: E2 08 00 FE 0E 80 13 00 00 00 00 00 00 88 [09:50:01]Write i2c OK [09:50:01]MH_I2C_Read... [09:50:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:01]Read from MH i2c: E2 [09:50:01]MH_I2C_Read... [09:50:01]Read from MH i2c: E2 62 00 [09:50:01]MH_I2C_Read... [09:50:01]Read from MH i2c: E2 62 00 FE 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [09:50:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:50:01]wFMCommunicate OK [09:50:01]SAM_PROTO_GetFieldsCounters done [09:50:01]requested_item shift.num is exist - process it [09:50:01]requested_item shift.opened is exist - process it [09:50:01]req_shift_opened [09:50:01]FM_GetShiftState [09:50:01]SAM_PROTO_GetShiftState [09:50:01]wFMCommunicate request_size=4 [09:50:01]MH_SAM_APDU [09:50:01]CAPDU: 80 13 01 00 [09:50:01]Write to MH i2c: E2 08 00 FF 0E 80 13 01 00 00 00 00 00 8A [09:50:01]Write i2c OK [09:50:01]MH_I2C_Read... [09:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:01]Read from MH i2c: E2 [09:50:01]MH_I2C_Read... [09:50:01]Read from MH i2c: E2 0E 00 [09:50:01]MH_I2C_Read... [09:50:01]Read from MH i2c: E2 0E 00 FF 0E 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 B1 [09:50:01]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:50:01]wFMCommunicate OK [09:50:01]SAM_PROTO_GetShiftState done [09:50:01]FM_GetShiftState done [09:50:01]req_shift_opened done [09:50:01]requested_item shift.open_date is exist - process it [09:50:01]req_shift_open_date [09:50:01]req_shift_open_date done [09:50:01]produce_requested_data done [09:50:01]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77023,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:50:01]process_action_free print_text [09:50:01]json_value_free [09:50:01]json_value_free done [09:50:01]process_json_proto returns [09:50:01]Send response to host [09:50:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77023,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:50:01]free response buf [09:50:01]execute_script done [09:50:01]execute_script returns [09:50:01]free content buf [09:50:01]Sock 7.Close socket [09:50:01]Sock 7.Thread stoped [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:56]OFD Sender: No OFD packet to send [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:55:58]accept exits with 9 [09:55:58]New connection [09:55:58]New thread 3067030884 created [09:55:58]Thread 3067174244 joined [09:55:58]Waiting for new connection... [09:55:58] Sock 9.Parse request [09:55:58]Sock 9.Check first char [09:55:58]Sock 9.First char is OK [09:55:58]request: POST /json_proto HTTP/1.0 [09:55:58]Method: POST [09:55:58]URL: /json_proto [09:55:58]Method is POST - this is cgi request [09:55:58]url: /json_proto [09:55:58]query_string will be loaded in cgi processing [09:55:58]execute_cgi json_proto POST (null) [09:55:58]execute_cgi path=json_proto method=POST [09:55:58]POST find Content-Length [09:55:58]Host: 172.17.62.5:8080 [09:55:58]Content-Length: 1175 [09:55:58]Content-Type: application/json [09:55:58] [09:55:58]POST finish read [09:55:58]Found Content-Length = 1175 [09:55:58]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191598\u000A22.04.2024 09:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1610.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102976\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:58]execute_script... [09:55:58]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191598\u000A22.04.2024 09:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1610.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102976\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:58]POST & json_proto [09:55:58]process_json_proto [09:55:58]json parsed OK: [09:55:58]protocol is kg_v1.0 [09:55:58]action value=print_text [09:55:58]process_action print_text [09:55:58]cmd_print_text [09:55:58]ExternCall_PrintAddStr [09:55:58]wPrintStart [09:55:58]Write to MH i2c: 01 00 00 00 0F 0F [09:55:58]Write i2c OK [09:55:58]MH_I2C_Read... [09:55:58]Read from MH i2c: 01 [09:55:58]MH_I2C_Read... [09:55:58]Read from MH i2c: 01 07 00 [09:55:58]MH_I2C_Read... [09:55:58]Read from MH i2c: 01 07 00 00 0F 00 00 00 00 00 FF 0F 24 [09:55:58]RasterBufferAndPrint [09:55:58]line *****ТОВАРНЫЙ ЧЕК***** [09:55:58]line АЗС 106 [09:55:58]line Партнер нефть [09:55:58]line 02508201610067 [09:55:58]line Кассир : Токторбаева Н. [09:55:58]line Счет N : (1)191598 [09:55:58]line 22.04.2024 09:37 [09:55:58]line ПРОДАЖА [09:55:58]line ТРК (МРК, ГНК): 12 [09:55:58]line Вид ГСМ : 2710124130 [09:55:58]line Аи-92-К-5 [09:55:58]line 25.000 x 64.40 [09:55:58]line ИТОГ: 1610.00 [09:55:58]line Тип оплаты: Талоны: ТК ГПНА Online [09:55:58]line 30102976 [09:55:58]line ______________________ [09:55:58]line (подпись) [09:55:58]written 0, free lines is 4095 [09:55:58]Write to MH i2c: 01 00 00 15 0F 24 [09:55:58]Write i2c OK [09:55:58]MH_I2C_Read... [09:55:58]Read from MH i2c: 01 [09:55:58]MH_I2C_Read... [09:55:58]Read from MH i2c: 01 07 00 [09:55:58]MH_I2C_Read... [09:55:58]Read from MH i2c: 01 07 00 15 0F 00 00 00 00 00 F5 0D 2D [09:55:58]RasterBufferAndPrint [09:55:58]line [09:55:58]line [09:55:58]line [09:55:58]line [09:55:58]line [09:55:58]written 0, free lines is 3575 [09:55:58]MH_Cut [09:55:58]Write to MH i2c: D1 01 00 1C 0F 01 FD [09:55:58]Write i2c OK [09:55:58]MH_I2C_Read... [09:55:58]Read from MH i2c: D1 [09:55:58]MH_I2C_Read... [09:55:58]Read from MH i2c: D1 01 00 [09:55:58]MH_I2C_Read... [09:55:58]Read from MH i2c: D1 01 00 1C 0F 00 FC [09:55:58]Write to MH i2c: 01 00 00 1D 0F 2C [09:55:58]Write i2c OK [09:55:58]MH_I2C_Read... [09:55:59]*** Cut start [09:55:59]*** Partial cut [09:55:59]*** CUTSNS_PIN = 1 [09:55:59]*** CUTSNS_PIN = 0 [09:55:59]*** Brake cut motor [09:56:00]Read from MH i2c: 01 [09:56:00]MH_I2C_Read... [09:56:00]*** Stop cut motor [09:56:00]*** Cut end [09:56:00]Read from MH i2c: 01 07 00 [09:56:00]MH_I2C_Read... [09:56:00]Read from MH i2c: 01 07 00 1D 0F 00 00 00 00 00 FF 0F 41 [09:56:00]process_action print_text done [09:56:00]requested_data is exist [09:56:00]produce_requested_data [09:56:00]requested_item fm.sn is exist - process it [09:56:00]wFMCommunicate request_size=4 [09:56:00]MH_SAM_APDU [09:56:00]CAPDU: 80 11 00 00 [09:56:00]Write to MH i2c: E2 08 00 1E 0F 80 11 00 00 00 00 00 00 A7 [09:56:00]Write i2c OK [09:56:00]MH_I2C_Read... [09:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:00]Read from MH i2c: E2 [09:56:00]MH_I2C_Read... [09:56:00]Read from MH i2c: E2 17 00 [09:56:00]MH_I2C_Read... [09:56:00]Read from MH i2c: E2 17 00 1E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FA [09:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:56:00]wFMCommunicate OK [09:56:00]requested_item fd.num is exist - process it [09:56:00]SAM_PROTO_GetFieldsCounters [09:56:00]wFMCommunicate request_size=4 [09:56:00]MH_SAM_APDU [09:56:00]CAPDU: 80 13 00 00 [09:56:00]Write to MH i2c: E2 08 00 1F 0F 80 13 00 00 00 00 00 00 AA [09:56:00]Write i2c OK [09:56:00]MH_I2C_Read... [09:56:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:00]Read from MH i2c: E2 [09:56:00]MH_I2C_Read... [09:56:00]Read from MH i2c: E2 62 00 [09:56:00]MH_I2C_Read... [09:56:00]Read from MH i2c: E2 62 00 1F 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [09:56:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 DF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:00]wFMCommunicate OK [09:56:00]SAM_PROTO_GetFieldsCounters done [09:56:00]requested_item shift.num is exist - process it [09:56:00]requested_item shift.opened is exist - process it [09:56:00]req_shift_opened [09:56:00]FM_GetShiftState [09:56:00]SAM_PROTO_GetShiftState [09:56:00]wFMCommunicate request_size=4 [09:56:00]MH_SAM_APDU [09:56:00]CAPDU: 80 13 01 00 [09:56:00]Write to MH i2c: E2 08 00 20 0F 80 13 01 00 00 00 00 00 AC [09:56:00]Write i2c OK [09:56:00]MH_I2C_Read... [09:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:00]Read from MH i2c: E2 [09:56:00]MH_I2C_Read... [09:56:00]Read from MH i2c: E2 0E 00 [09:56:00]MH_I2C_Read... [09:56:00]Read from MH i2c: E2 0E 00 20 0F 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 D3 [09:56:00]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:56:00]wFMCommunicate OK [09:56:00]SAM_PROTO_GetShiftState done [09:56:00]FM_GetShiftState done [09:56:00]req_shift_opened done [09:56:00]requested_item shift.open_date is exist - process it [09:56:00]req_shift_open_date [09:56:00]req_shift_open_date done [09:56:00]produce_requested_data done [09:56:00]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77023,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:56:00]process_action_free print_text [09:56:00]json_value_free [09:56:00]json_value_free done [09:56:00]process_json_proto returns [09:56:00]Send response to host [09:56:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77023,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:56:00]free response buf [09:56:00]execute_script done [09:56:00]execute_script returns [09:56:00]free content buf [09:56:00]Sock 9.Close socket [09:56:00]Sock 9.Thread stoped [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:47]accept exits with 7 [09:56:47]New connection [09:56:47]New thread 3067174244 created [09:56:47]Thread 3067030884 joined [09:56:47]Waiting for new connection... [09:56:47] Sock 7.Parse request [09:56:47]Sock 7.Check first char [09:56:47]Sock 7.First char is OK [09:56:47]request: POST /json_proto HTTP/1.0 [09:56:47]Method: POST [09:56:47]URL: /json_proto [09:56:47]Method is POST - this is cgi request [09:56:47]url: /json_proto [09:56:47]query_string will be loaded in cgi processing [09:56:47]execute_cgi json_proto POST (null) [09:56:47]execute_cgi path=json_proto method=POST [09:56:47]POST find Content-Length [09:56:47]Host: 172.17.62.5:8080 [09:56:47]Content-Length: 822 [09:56:47]Content-Type: application/json [09:56:47] [09:56:47]POST finish read [09:56:47]Found Content-Length = 822 [09:56:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 32.880, "sum" : 1075.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1075.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:47]execute_script... [09: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)191597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 32.880, "sum" : 1075.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1075.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:47]POST & json_proto [09:56:47]process_json_proto [09:56:47]json parsed OK: [09:56:47]protocol is kg_v1.0 [09:56:47]action value=close_receipt [09:56:47]process_action close_receipt [09:56:47]cmd_close_receipt [09:56:47]MH_GetDate [09:56:47]Write to MH i2c: F0 00 00 21 0F 1F [09:56:47]Write i2c OK [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: F0 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: F0 09 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: F0 09 00 21 0F 00 61 34 26 66 F4 E9 65 64 EF [09:56:47]GetLastDocTimeStamp 1713778474 [09:56:47]current date 1713779809 [09:56:47]FM_GetShiftState [09:56:47]SAM_PROTO_GetShiftState [09:56:47]wFMCommunicate request_size=4 [09:56:47]MH_SAM_APDU [09:56:47]CAPDU: 80 13 01 00 [09:56:47]Write to MH i2c: E2 08 00 22 0F 80 13 01 00 00 00 00 00 AE [09:56:47]Write i2c OK [09:56:47]MH_I2C_Read... [09:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:47]Read from MH i2c: E2 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 0E 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 0E 00 22 0F 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 D5 [09:56:47]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:56:47]wFMCommunicate OK [09:56:47]SAM_PROTO_GetShiftState done [09:56:47]FM_GetShiftState done [09:56:47]opened in 1713745124 [09:56:47]opened+sec_in_day 1713831524 [09:56:47]quantity*price = 107517 [09:56:47]sum+1 = 107519 [09:56:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1075.18 НСП 1% : 9.51 НДС 12% : 114.18 Наличными: 0.00 Безнал.: 1075.18 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 43 22.04.2024 09:56 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 77024 ФПД: 197140839345745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T095650&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77024&fm=197140839345745&tin=02508201610067®Number=0000000000091573&sum=107518 [09:56:48]StoreToDocumentArchive [09:56:48]shift 373 fd 77024 [09:56:48]save to /storage/0373/doc_00077024 [09:56:48]save last doc name /storage/0373/doc_00077024 to /storage/kkm_last_doc_name [09:56:48]save OK [09:56:48]Clear old archive folders... [09:56:48]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:56:48]tlvbuf is 017143E0 [09:56:48]SAM_PROTO_ClearQueue [09:56:48]wFMCommunicate request_size=4 [09:56:48]MH_SAM_APDU [09:56:48]CAPDU: 80 09 00 00 [09:56:48]Write to MH i2c: E2 08 00 2F 0F 80 09 00 00 00 00 00 00 B0 [09:56:48]Write i2c OK [09:56:48]MH_I2C_Read... [09:56:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:48]Read from MH i2c: E2 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 03 00 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 03 00 2F 0F 00 90 00 B2 [09:56:48]RAPDU: 90 00 [09:56:48]wFMCommunicate OK [09:56:48]SAM_PROTO_ClearQueue done [09:56:48]KKMCreateOFDPacket [09:56:48]OFDProtocolAddRootSTLVToBuf [09:56:48]FM_MakeSignedData [09:56:48]FM_MakeSignedData [09:56:48]SAM_PROTO_SignData [09:56:48]wFMCommunicate request_size=4 [09:56:48]MH_SAM_APDU [09:56:48]CAPDU: 80 0D 01 02 [09:56:48]Write to MH i2c: E2 08 00 30 0F 80 0D 01 02 00 00 00 00 B8 [09:56:48]Write i2c OK [09:56:48]MH_I2C_Read... [09:56:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:48]Read from MH i2c: E2 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 03 00 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 03 00 30 0F 00 90 00 B3 [09:56:48]RAPDU: 90 00 [09:56:48]wFMCommunicate OK [09:56:48]wFMCommunicate request_size=255 [09:56:48]MH_SAM_APDU [09:56:48]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 70 80 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 FE A3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FE A3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 2C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FE A3 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 62 34 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E0 2C 01 00 35 04 06 00 B3 4C [09:56:48]Write to MH i2c: E2 02 01 31 0F 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 70 80 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 FE A3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FE A3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 2C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FE A3 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 62 34 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E0 2C 01 00 35 04 06 00 B3 4C 00 00 60 [09:56:48]Write i2c OK [09:56:48]MH_I2C_Read... [09:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:48]Read from MH i2c: E2 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 03 00 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 03 00 31 0F 00 90 00 B4 [09:56:48]RAPDU: 90 00 [09:56:48]wFMCommunicate OK [09:56:48]wFMCommunicate request_size=9 [09:56:48]MH_SAM_APDU [09:56:48]CAPDU: 80 0D 02 02 04 6D B3 2E 51 [09:56:48]Write to MH i2c: E2 0C 00 32 0F 80 0D 02 02 04 00 6D B3 2E 51 00 00 62 [09:56:48]Write i2c OK [09:56:48]MH_I2C_Read... [09:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:48]Read from MH i2c: E2 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 03 00 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 03 00 32 0F 00 90 00 B5 [09:56:48]RAPDU: 90 00 [09:56:48]wFMCommunicate OK [09:56:48]wFMCommunicate request_size=4 [09:56:48]MH_SAM_APDU [09:56:48]CAPDU: 80 0D 03 02 [09:56:48]Write to MH i2c: E2 08 00 33 0F 80 0D 03 02 00 00 00 00 BD [09:56:48]Write i2c OK [09:56:48]MH_I2C_Read... [09:56:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:48]Read from MH i2c: E2 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 0B 00 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 0B 00 33 0F 00 81 E9 16 FB AF 1D 01 13 90 00 19 [09:56:48]RAPDU: 81 E9 16 FB AF 1D 01 13 90 00 [09:56:48]wFMCommunicate OK [09:56:48]SAM_PROTO_SignData done [09:56:48]FM_MakeSignedData done [09:56:48]CreateOFDProtocolMessage [09:56:48]wFMCommunicate request_size=4 [09:56:48]MH_SAM_APDU [09:56:48]CAPDU: 80 11 00 00 [09:56:48]Write to MH i2c: E2 08 00 34 0F 80 11 00 00 00 00 00 00 BD [09:56:48]Write i2c OK [09:56:48]MH_I2C_Read... [09:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:48]Read from MH i2c: E2 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 17 00 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 17 00 34 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 10 [09:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:56:48]wFMCommunicate OK [09:56:48]CreateOFDProtocolMessage done [09:56:48]OFDSenderStorePacket 77024 [09:56:48]StoreOFDPacket docnum=77024 [09:56:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 0F 94 06 01 79 F7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 70 80 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 FE A3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FE A3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 2C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FE A3 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 62 34 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E0 2C 01 00 35 04 06 00 B3 4C 6D B3 2E 51 81 E9 16 FB AF 1D 01 13 [09:56:48]CheckFolder [09:56:48]dirname=/storage/ofd_packets [09:56:48]CheckFolder done [09:56:48]ProducePacketName [09:56:48]name=ofd_packets/00077024 [09:56:48]NVStorageSaveData ofd_packets/00077024 [09:56:48]File name is /storage/ofd_packets/00077024 [09:56:48]Write 300 bytes [09:56:48]NVStorageSaveData done [09:56:48]OFDSenderStorePacket done [09:56:48]KKMCreateOFDPacket done [09:56:48]NVStorageSaveData kkm_last_timestamp [09:56:48]File name is /storage/kkm_last_timestamp [09:56:48]Write 4 bytes [09:56:48]NVStorageSaveData done [09:56:48]ExternCall_PrintAddStr [09:56:48]wPrintStart [09:56:48]Write to MH i2c: 01 00 00 35 0F 44 [09:56:48]Write i2c OK [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: 01 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: 01 07 00 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: 01 07 00 35 0F 00 00 00 00 00 FF 0F 59 [09:56:48]RasterBufferAndPrint [09:56:48]line Счет N : (1)191597 [09:56:48]line ИНН: 02508201610067 [09:56:48]line Контрольно-Кассовый Чек [09:56:48]line ПРОДАЖА [09:56:48]line ТРК (МРК, ГНК) : 71 [09:56:48]line Товар: 2711190000 [09:56:48]line ГАЗ-К-5 [09:56:48]line 32.880 * 32.70 [09:56:48]line = 1075.18 [09:56:48]line НДС 12% НСП 1% [09:56:48]line > о реализуемом товаре [09:56:48]line ИТОГО: 1075.18 [09:56:48]line НСП 1% : 9.51 [09:56:48]line НДС 12% : 114.18 [09:56:48]line Наличными: 0.00 [09:56:48]line Безнал.: 1075.18 [09:56:48]line Место: АЗС № 106 "Партнер Нефть" [09:56:48]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [09:56:48]line СНО: Общий режим [09:56:48]line Чек 43 22.04.2024 09:56 [09:56:48]line Смена: 373 ФФД: 1.0 [09:56:48]line ЗНМ: 0300000141 [09:56:48]line РНМ: 0000000000091573 [09:56:48]line Версия ККМ: 001 [09:56:48]line Платежная система: Бакай Банк [09:56:48]line ФМ: 0000000000874652 [09:56:48]line ФД: 77024 [09:56:48]line ФПД: 197140839345745 [09:56:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T095650&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77024&fm=197140839345745&tin=02508201610067®Number=0000000000091573&sum=107518 [09:56:48]written 0, free lines is 4095 [09:56:48]OFD Sender: Processing packet 77024 [packets to send 129, broken 128] [09:56:48]ProducePacketName [09:56:48]name=ofd_packets/00077024 [09:56:48]OFD Sender: To server: pG, [09:56:49]CommunicateWithHost lk.salyk.kg:30040 [09:56:49]ConnectInit lk.salyk.kg [09:56:49]Write to MH i2c: 01 00 00 5E 0F 6D [09:56:49]Write i2c OK [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: 01 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: 01 07 00 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: 01 07 00 5E 0F 00 00 00 00 00 F3 0C 73 [09:56:49]RasterBufferAndPrint [09:56:49]line [09:56:49]line [09:56:49]line [09:56:49]line [09:56:49]line [09:56:49]written 0, free lines is 3322 [09:56:49]MH_Cut [09:56:49]Write to MH i2c: D1 01 00 65 0F 01 46 [09:56:49]Write i2c OK [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: D1 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: D1 01 00 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: D1 01 00 65 0F 00 45 [09:56:49]Write to MH i2c: 01 00 00 66 0F 75 [09:56:49]Write i2c OK [09:56:49]MH_I2C_Read... [09:56:50]*** Cut start [09:56:50]*** Partial cut [09:56:50]*** CUTSNS_PIN = 1 [09:56:50]*** CUTSNS_PIN = 0 [09:56:50]*** Brake cut motor [09:56:50]Connected sock=10 [09:56:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 0F 94 06 01 79 F7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 70 80 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 FE A3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FE A3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 2C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FE A3 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 62 34 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E0 2C 01 00 35 04 06 00 B3 4C 6D B3 2E 51 81 E9 16 FB AF 1D 01 13 [09:56:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 60 7B 47 00 0F 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E0 2C 01 00 F4 03 04 00 E5 DB 25 66 B6 04 01 00 00 DD E7 17 FB 1E FA 5F E1 [09:56:50]CommunicateWithHost err = 0 [09:56:50]CheckOFDResponse [09:56:50]1017 (14) - 77093643461234 [09:56:50]1041 (16) - 0000000000874652 [09:56:50]1040 (4) - 77024 [09:56:50]1012 (4) - 22.04.2024 03:39 [09:56:50]1206 (1) - 0 [09:56:50]OFD Sender: Remove packet 77024 [09:56:50]ProducePacketName [09:56:50]name=ofd_packets/00077024 [09:56:50]NVStorageDeleteData [09:56:50]Read from MH i2c: 01 [09:56:50]MH_I2C_Read... [09:56:50]*** Stop cut motor [09:56:50]*** Cut end [09:56:50]Read from MH i2c: 01 07 00 [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: 01 07 00 66 0F 00 00 00 00 00 FF 0F 8A [09:56:50]process_action close_receipt done [09:56:50]requested_data is exist [09:56:50]produce_requested_data [09:56:50]requested_item fm.sn is exist - process it [09:56:50]wFMCommunicate request_size=4 [09:56:50]MH_SAM_APDU [09:56:50]CAPDU: 80 11 00 00 [09:56:50]Write to MH i2c: E2 08 00 67 0F 80 11 00 00 00 00 00 00 F0 [09:56:50]Write i2c OK [09:56:50]MH_I2C_Read... [09:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:50]Read from MH i2c: E2 [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: E2 17 00 [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: E2 17 00 67 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 43 [09:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:56:50]wFMCommunicate OK [09:56:50]requested_item fd.num is exist - process it [09:56:50]SAM_PROTO_GetFieldsCounters [09:56:50]wFMCommunicate request_size=4 [09:56:50]MH_SAM_APDU [09:56:50]CAPDU: 80 13 00 00 [09:56:50]Write to MH i2c: E2 08 00 68 0F 80 13 00 00 00 00 00 00 F3 [09:56:50]Write i2c OK [09:56:50]MH_I2C_Read... [09:56:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:50]Read from MH i2c: E2 [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: E2 62 00 [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: E2 62 00 68 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E0 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [09:56:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E0 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:50]wFMCommunicate OK [09:56:50]SAM_PROTO_GetFieldsCounters done [09:56:50]requested_item shift.num is exist - process it [09:56:50]requested_item shift.opened is exist - process it [09:56:50]req_shift_opened [09:56:50]FM_GetShiftState [09:56:50]SAM_PROTO_GetShiftState [09:56:50]wFMCommunicate request_size=4 [09:56:50]MH_SAM_APDU [09:56:50]CAPDU: 80 13 01 00 [09:56:50]Write to MH i2c: E2 08 00 69 0F 80 13 01 00 00 00 00 00 F5 [09:56:50]Write i2c OK [09:56:50]MH_I2C_Read... [09:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:50]Read from MH i2c: E2 [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: E2 0E 00 [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: E2 0E 00 69 0F 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 1C [09:56:50]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:56:50]wFMCommunicate OK [09:56:50]SAM_PROTO_GetShiftState done [09:56:50]FM_GetShiftState done [09:56:50]req_shift_opened done [09:56:50]requested_item shift.open_date is exist - process it [09:56:50]req_shift_open_date [09:56:50]req_shift_open_date done [09:56:50]produce_requested_data done [09:56:50]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77024,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:56:50]process_action_free close_receipt [09:56:50]json_value_free [09:56:50]json_value_free done [09:56:50]process_json_proto returns [09:56:50]Send response to host [09:56:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77024,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:56:51]free response buf [09:56:51]execute_script done [09:56:51]execute_script returns [09:56:51]free content buf [09:56:51]Sock 7.Close socket [09:56:51]Sock 7.Thread stoped [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:24]accept exits with 9 [09:58:24]New connection [09:58:24]New thread 3067030884 created [09:58:24]Thread 3067174244 joined [09:58:24]Waiting for new connection... [09:58:24] Sock 9.Parse request [09:58:24]Sock 9.Check first char [09:58:24]Sock 9.First char is OK [09:58:24]request: POST /json_proto HTTP/1.0 [09:58:24]Method: POST [09:58:24]URL: /json_proto [09:58:24]Method is POST - this is cgi request [09:58:24]url: /json_proto [09:58:24]query_string will be loaded in cgi processing [09:58:24]execute_cgi json_proto POST (null) [09:58:24]execute_cgi path=json_proto method=POST [09:58:24]POST find Content-Length [09:58:24]Host: 172.17.62.5:8080 [09:58:24]Content-Length: 1173 [09:58:24]Content-Type: application/json [09:58:24] [09:58:24]POST finish read [09:58:24]Found Content-Length = 1173 [09:58:24]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191600\u000A22.04.2024 09:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 322.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102976\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:24]execute_script... [09:58:24]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191600\u000A22.04.2024 09:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 322.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102976\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:24]POST & json_proto [09:58:24]process_json_proto [09:58:24]json parsed OK: [09:58:24]protocol is kg_v1.0 [09:58:24]action value=print_text [09:58:24]process_action print_text [09:58:24]cmd_print_text [09:58:24]ExternCall_PrintAddStr [09:58:24]wPrintStart [09:58:24]Write to MH i2c: 01 00 00 6A 0F 79 [09:58:24]Write i2c OK [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: 01 [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: 01 07 00 [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: 01 07 00 6A 0F 00 00 00 00 00 FF 0F 8E [09:58:24]RasterBufferAndPrint [09:58:24]line *****ТОВАРНЫЙ ЧЕК***** [09:58:24]line АЗС 106 [09:58:24]line Партнер нефть [09:58:24]line 02508201610067 [09:58:24]line Кассир : Токторбаева Н. [09:58:24]line Счет N : (1)191600 [09:58:24]line 22.04.2024 09:39 [09:58:24]line ПРОДАЖА [09:58:24]line ТРК (МРК, ГНК): 43 [09:58:24]line Вид ГСМ : 2710124130 [09:58:24]line Аи-92-К-5 [09:58:24]line 5.000 x 64.40 [09:58:24]line ИТОГ: 322.00 [09:58:24]line Тип оплаты: Талоны: ТК ГПНА Online [09:58:24]line 30102976 [09:58:24]line ______________________ [09:58:24]line (подпись) [09:58:24]written 0, free lines is 4095 [09:58:24]Write to MH i2c: 01 00 00 7F 0F 8E [09:58:24]Write i2c OK [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: 01 [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: 01 07 00 [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: 01 07 00 7F 0F 00 00 00 00 00 F4 0D 96 [09:58:24]RasterBufferAndPrint [09:58:24]line [09:58:24]line [09:58:24]line [09:58:24]line [09:58:24]line [09:58:24]written 0, free lines is 3574 [09:58:24]MH_Cut [09:58:24]Write to MH i2c: D1 01 00 86 0F 01 67 [09:58:24]Write i2c OK [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: D1 [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: D1 01 00 [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: D1 01 00 86 0F 00 66 [09:58:24]Write to MH i2c: 01 00 00 87 0F 96 [09:58:24]Write i2c OK [09:58:24]MH_I2C_Read... [09:58:24]*** Cut start [09:58:24]*** Partial cut [09:58:24]*** CUTSNS_PIN = 1 [09:58:25]*** CUTSNS_PIN = 0 [09:58:25]*** Brake cut motor [09:58:25]Read from MH i2c: 01 [09:58:25]MH_I2C_Read... [09:58:25]*** Stop cut motor [09:58:25]*** Cut end [09:58:25]Read from MH i2c: 01 07 00 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: 01 07 00 87 0F 00 00 00 00 00 FF 0F AB [09:58:25]process_action print_text done [09:58:25]requested_data is exist [09:58:25]produce_requested_data [09:58:25]requested_item fm.sn is exist - process it [09:58:25]wFMCommunicate request_size=4 [09:58:25]MH_SAM_APDU [09:58:25]CAPDU: 80 11 00 00 [09:58:25]Write to MH i2c: E2 08 00 88 0F 80 11 00 00 00 00 00 00 11 [09:58:25]Write i2c OK [09:58:25]MH_I2C_Read... [09:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:25]Read from MH i2c: E2 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: E2 17 00 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: E2 17 00 88 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 64 [09:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [09:58:25]wFMCommunicate OK [09:58:25]requested_item fd.num is exist - process it [09:58:25]SAM_PROTO_GetFieldsCounters [09:58:25]wFMCommunicate request_size=4 [09:58:25]MH_SAM_APDU [09:58:25]CAPDU: 80 13 00 00 [09:58:25]Write to MH i2c: E2 08 00 89 0F 80 13 00 00 00 00 00 00 14 [09:58:25]Write i2c OK [09:58:25]MH_I2C_Read... [09:58:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:25]Read from MH i2c: E2 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: E2 62 00 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: E2 62 00 89 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E0 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [09:58:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E0 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:25]wFMCommunicate OK [09:58:25]SAM_PROTO_GetFieldsCounters done [09:58:25]requested_item shift.num is exist - process it [09:58:25]requested_item shift.opened is exist - process it [09:58:25]req_shift_opened [09:58:25]FM_GetShiftState [09:58:25]SAM_PROTO_GetShiftState [09:58:25]wFMCommunicate request_size=4 [09:58:25]MH_SAM_APDU [09:58:25]CAPDU: 80 13 01 00 [09:58:25]Write to MH i2c: E2 08 00 8A 0F 80 13 01 00 00 00 00 00 16 [09:58:25]Write i2c OK [09:58:25]MH_I2C_Read... [09:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:25]Read from MH i2c: E2 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: E2 0E 00 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: E2 0E 00 8A 0F 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 3D [09:58:25]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [09:58:25]wFMCommunicate OK [09:58:25]SAM_PROTO_GetShiftState done [09:58:25]FM_GetShiftState done [09:58:25]req_shift_opened done [09:58:25]requested_item shift.open_date is exist - process it [09:58:25]req_shift_open_date [09:58:25]req_shift_open_date done [09:58:25]produce_requested_data done [09:58:25]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77024,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [09:58:25]process_action_free print_text [09:58:25]json_value_free [09:58:25]json_value_free done [09:58:25]process_json_proto returns [09:58:25]Send response to host [09:58:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77024,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [09:58:25]free response buf [09:58:25]execute_script done [09:58:25]execute_script returns [09:58:25]free content buf [09:58:25]Sock 9.Close socket [09:58:25]Sock 9.Thread stoped [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]accept exits with 7 [10:00:21]New connection [10:00:21]New thread 3067174244 created [10:00:21]Thread 3067030884 joined [10:00:21]Waiting for new connection... [10:00:21] Sock 7.Parse request [10:00:21]Sock 7.Check first char [10:00:21]Sock 7.First char is OK [10:00:21]request: POST /json_proto HTTP/1.0 [10:00:21]Method: POST [10:00:21]URL: /json_proto [10:00:21]Method is POST - this is cgi request [10:00:21]url: /json_proto [10:00:21]query_string will be loaded in cgi processing [10:00:21]execute_cgi json_proto POST (null) [10:00:21]execute_cgi path=json_proto method=POST [10:00:21]POST find Content-Length [10:00:21]Host: 172.17.62.5:8080 [10:00:21]Content-Length: 1215 [10:00:21]Content-Type: application/json [10:00:21] [10:00:21]POST finish read [10:00:21]Found Content-Length = 1215 [10:00:21]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191599\u000A22.04.2024 09:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 200.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 12880.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02104\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:21]execute_script... [10:00:21]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191599\u000A22.04.2024 09:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 200.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 12880.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02104\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:21]POST & json_proto [10:00:21]process_json_proto [10:00:21]json parsed OK: [10:00:21]protocol is kg_v1.0 [10:00:21]action value=print_text [10:00:21]process_action print_text [10:00:21]cmd_print_text [10:00:21]ExternCall_PrintAddStr [10:00:21]wPrintStart [10:00:21]Write to MH i2c: 01 00 00 8B 0F 9A [10:00:21]Write i2c OK [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: 01 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: 01 07 00 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: 01 07 00 8B 0F 00 00 00 00 00 FF 0F AF [10:00:21]RasterBufferAndPrint [10:00:21]line *****ТОВАРНЫЙ ЧЕК***** [10:00:21]line АЗС 106 [10:00:21]line Партнер нефть [10:00:21]line 02508201610067 [10:00:21]line Кассир : Токторбаева Н. [10:00:21]line Счет N : (1)191599 [10:00:21]line 22.04.2024 09:41 [10:00:21]line ПРОДАЖА [10:00:21]line ТРК (МРК, ГНК): 22 [10:00:21]line Вид ГСМ : 2710124130 [10:00:21]line Аи-92-К-5 [10:00:21]line 200.000 x 64.40 [10:00:21]line ИТОГ: 12880.00 [10:00:21]line Тип оплаты: Талоны: Топливная Карта [10:00:21]line 02104 [10:00:21]line ______________________ [10:00:21]line (подпись) [10:00:21]written 0, free lines is 4095 [10:00:21]OFD Sender: No OFD packet to send [10:00:21]Write to MH i2c: 01 00 00 A0 0F AF [10:00:21]Write i2c OK [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: 01 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: 01 07 00 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: 01 07 00 A0 0F 00 00 00 00 00 F5 0D B8 [10:00:21]RasterBufferAndPrint [10:00:21]line [10:00:21]line [10:00:21]line [10:00:21]line [10:00:21]line [10:00:21]written 0, free lines is 3575 [10:00:21]MH_Cut [10:00:21]Write to MH i2c: D1 01 00 A7 0F 01 88 [10:00:21]Write i2c OK [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: D1 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: D1 01 00 [10:00:21]MH_I2C_Read... [10:00:21]Read from MH i2c: D1 01 00 A7 0F 00 87 [10:00:21]Write to MH i2c: 01 00 00 A8 0F B7 [10:00:21]Write i2c OK [10:00:21]MH_I2C_Read... [10:00:22]*** Cut start [10:00:22]*** Partial cut [10:00:22]*** CUTSNS_PIN = 1 [10:00:22]*** CUTSNS_PIN = 0 [10:00:22]*** Brake cut motor [10:00:22]Read from MH i2c: 01 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: 01 07 00 [10:00:22]MH_I2C_Read... [10:00:22]*** Stop cut motor [10:00:22]*** Cut end [10:00:22]Read from MH i2c: 01 07 00 A8 0F 00 00 00 00 00 FF 0F CC [10:00:22]process_action print_text done [10:00:22]requested_data is exist [10:00:22]produce_requested_data [10:00:22]requested_item fm.sn is exist - process it [10:00:22]wFMCommunicate request_size=4 [10:00:22]MH_SAM_APDU [10:00:22]CAPDU: 80 11 00 00 [10:00:22]Write to MH i2c: E2 08 00 A9 0F 80 11 00 00 00 00 00 00 32 [10:00:22]Write i2c OK [10:00:22]MH_I2C_Read... [10:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:22]Read from MH i2c: E2 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: E2 17 00 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: E2 17 00 A9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 85 [10:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:00:22]wFMCommunicate OK [10:00:22]requested_item fd.num is exist - process it [10:00:22]SAM_PROTO_GetFieldsCounters [10:00:22]wFMCommunicate request_size=4 [10:00:22]MH_SAM_APDU [10:00:22]CAPDU: 80 13 00 00 [10:00:22]Write to MH i2c: E2 08 00 AA 0F 80 13 00 00 00 00 00 00 35 [10:00:22]Write i2c OK [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: E2 [10:00:22]MH_I2C_Read... [10:00:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:22]Read from MH i2c: E2 62 00 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: E2 62 00 AA 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E0 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [10:00:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E0 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:22]wFMCommunicate OK [10:00:22]SAM_PROTO_GetFieldsCounters done [10:00:22]requested_item shift.num is exist - process it [10:00:22]requested_item shift.opened is exist - process it [10:00:22]req_shift_opened [10:00:22]FM_GetShiftState [10:00:22]SAM_PROTO_GetShiftState [10:00:22]wFMCommunicate request_size=4 [10:00:22]MH_SAM_APDU [10:00:22]CAPDU: 80 13 01 00 [10:00:22]Write to MH i2c: E2 08 00 AB 0F 80 13 01 00 00 00 00 00 37 [10:00:22]Write i2c OK [10:00:22]MH_I2C_Read... [10:00:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:22]Read from MH i2c: E2 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: E2 0E 00 [10:00:22]MH_I2C_Read... [10:00:22]Read from MH i2c: E2 0E 00 AB 0F 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 5E [10:00:22]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [10:00:22]wFMCommunicate OK [10:00:22]SAM_PROTO_GetShiftState done [10:00:22]FM_GetShiftState done [10:00:22]req_shift_opened done [10:00:22]requested_item shift.open_date is exist - process it [10:00:22]req_shift_open_date [10:00:22]req_shift_open_date done [10:00:22]produce_requested_data done [10:00:22]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77024,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [10:00:22]process_action_free print_text [10:00:22]json_value_free [10:00:22]json_value_free done [10:00:22]process_json_proto returns [10:00:22]Send response to host [10:00:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77024,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [10:00:22]free response buf [10:00:22]execute_script done [10:00:22]execute_script returns [10:00:22]free content buf [10:00:22]Sock 7.Close socket [10:00:22]Sock 7.Thread stoped [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:00]accept exits with 9 [10:02:00]New connection [10:02:00]New thread 3067030884 created [10:02:00]Thread 3067174244 joined [10:02:00]Waiting for new connection... [10:02:00] Sock 9.Parse request [10:02:00]Sock 9.Check first char [10:02:00]Sock 9.First char is OK [10:02:00]request: POST /json_proto HTTP/1.0 [10:02:00]Method: POST [10:02:00]URL: /json_proto [10:02:00]Method is POST - this is cgi request [10:02:00]url: /json_proto [10:02:00]query_string will be loaded in cgi processing [10:02:00]execute_cgi json_proto POST (null) [10:02:00]execute_cgi path=json_proto method=POST [10:02:00]POST find Content-Length [10:02:00]Host: 172.17.62.5:8080 [10:02:00]Content-Length: 1213 [10:02:00]Content-Type: application/json [10:02:00] [10:02:00]POST finish read [10:02:00]Found Content-Length = 1213 [10:02:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191601\u000A22.04.2024 09:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 3220.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00301\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:00]execute_script... [10:02:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191601\u000A22.04.2024 09:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 3220.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00301\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:00]POST & json_proto [10:02:00]process_json_proto [10:02:00]json parsed OK: [10:02:00]protocol is kg_v1.0 [10:02:00]action value=print_text [10:02:00]process_action print_text [10:02:00]cmd_print_text [10:02:00]ExternCall_PrintAddStr [10:02:00]wPrintStart [10:02:00]Write to MH i2c: 01 00 00 AC 0F BB [10:02:00]Write i2c OK [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: 01 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: 01 07 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: 01 07 00 AC 0F 00 00 00 00 00 FF 0F D0 [10:02:00]RasterBufferAndPrint [10:02:00]line *****ТОВАРНЫЙ ЧЕК***** [10:02:00]line АЗС 106 [10:02:00]line Партнер нефть [10:02:00]line 02508201610067 [10:02:00]line Кассир : Токторбаева Н. [10:02:00]line Счет N : (1)191601 [10:02:00]line 22.04.2024 09:43 [10:02:00]line ПРОДАЖА [10:02:00]line ТРК (МРК, ГНК): 33 [10:02:00]line Вид ГСМ : 2710124130 [10:02:00]line Аи-92-К-5 [10:02:00]line 50.000 x 64.40 [10:02:00]line ИТОГ: 3220.00 [10:02:00]line Тип оплаты: Талоны: Топливная Карта [10:02:00]line 00301 [10:02:00]line ______________________ [10:02:00]line (подпись) [10:02:00]written 0, free lines is 4095 [10:02:01]Write to MH i2c: 01 00 00 C1 0F D0 [10:02:01]Write i2c OK [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: 01 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: 01 07 00 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: 01 07 00 C1 0F 00 00 00 00 00 F5 0D D9 [10:02:01]RasterBufferAndPrint [10:02:01]line [10:02:01]line [10:02:01]line [10:02:01]line [10:02:01]line [10:02:01]written 0, free lines is 3574 [10:02:01]MH_Cut [10:02:01]Write to MH i2c: D1 01 00 C8 0F 01 A9 [10:02:01]Write i2c OK [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: D1 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: D1 01 00 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: D1 01 00 C8 0F 00 A8 [10:02:01]Write to MH i2c: 01 00 00 C9 0F D8 [10:02:01]Write i2c OK [10:02:01]MH_I2C_Read... [10:02:01]OFD Sender: No OFD packet to send [10:02:01]*** Cut start [10:02:01]*** Partial cut [10:02:01]*** CUTSNS_PIN = 1 [10:02:01]*** CUTSNS_PIN = 0 [10:02:01]*** Brake cut motor [10:02:02]Read from MH i2c: 01 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: 01 07 00 [10:02:02]MH_I2C_Read... [10:02:02]*** Stop cut motor [10:02:02]*** Cut end [10:02:02]Read from MH i2c: 01 07 00 C9 0F 00 00 00 00 00 FF 0F ED [10:02:02]process_action print_text done [10:02:02]requested_data is exist [10:02:02]produce_requested_data [10:02:02]requested_item fm.sn is exist - process it [10:02:02]wFMCommunicate request_size=4 [10:02:02]MH_SAM_APDU [10:02:02]CAPDU: 80 11 00 00 [10:02:02]Write to MH i2c: E2 08 00 CA 0F 80 11 00 00 00 00 00 00 53 [10:02:02]Write i2c OK [10:02:02]MH_I2C_Read... [10:02:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:02]Read from MH i2c: E2 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: E2 17 00 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: E2 17 00 CA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A6 [10:02:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:02:02]wFMCommunicate OK [10:02:02]requested_item fd.num is exist - process it [10:02:02]SAM_PROTO_GetFieldsCounters [10:02:02]wFMCommunicate request_size=4 [10:02:02]MH_SAM_APDU [10:02:02]CAPDU: 80 13 00 00 [10:02:02]Write to MH i2c: E2 08 00 CB 0F 80 13 00 00 00 00 00 00 56 [10:02:02]Write i2c OK [10:02:02]MH_I2C_Read... [10:02:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:02]Read from MH i2c: E2 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: E2 62 00 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: E2 62 00 CB 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E0 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [10:02:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E0 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:02]wFMCommunicate OK [10:02:02]SAM_PROTO_GetFieldsCounters done [10:02:02]requested_item shift.num is exist - process it [10:02:02]requested_item shift.opened is exist - process it [10:02:02]req_shift_opened [10:02:02]FM_GetShiftState [10:02:02]SAM_PROTO_GetShiftState [10:02:02]wFMCommunicate request_size=4 [10:02:02]MH_SAM_APDU [10:02:02]CAPDU: 80 13 01 00 [10:02:02]Write to MH i2c: E2 08 00 CC 0F 80 13 01 00 00 00 00 00 58 [10:02:02]Write i2c OK [10:02:02]MH_I2C_Read... [10:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:02]Read from MH i2c: E2 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: E2 0E 00 [10:02:02]MH_I2C_Read... [10:02:02]Read from MH i2c: E2 0E 00 CC 0F 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 7F [10:02:02]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [10:02:02]wFMCommunicate OK [10:02:02]SAM_PROTO_GetShiftState done [10:02:02]FM_GetShiftState done [10:02:02]req_shift_opened done [10:02:02]requested_item shift.open_date is exist - process it [10:02:02]req_shift_open_date [10:02:02]req_shift_open_date done [10:02:02]produce_requested_data done [10:02:02]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77024,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [10:02:02]process_action_free print_text [10:02:02]json_value_free [10:02:02]json_value_free done [10:02:02]process_json_proto returns [10:02:02]Send response to host [10:02:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77024,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [10:02:02]free response buf [10:02:02]execute_script done [10:02:02]execute_script returns [10:02:02]free content buf [10:02:02]Sock 9.Close socket [10:02:02]Sock 9.Thread stoped [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]accept exits with 10 [10:04:56]New connection [10:04:56]New thread 3067174244 created [10:04:56]Thread 3067030884 joined [10:04:56]Waiting for new connection... [10:04:56] Sock 10.Parse request [10:04:56]Sock 10.Check first char [10:04:56]Sock 10.First char is OK [10:04:56]request: POST /json_proto HTTP/1.0 [10:04:56]Method: POST [10:04:56]URL: /json_proto [10:04:56]Method is POST - this is cgi request [10:04:56]url: /json_proto [10:04:56]query_string will be loaded in cgi processing [10:04:56]execute_cgi json_proto POST (null) [10:04:56]execute_cgi path=json_proto method=POST [10:04:56]POST find Content-Length [10:04:56]Host: 172.17.62.5:8080 [10:04:56]Content-Length: 679 [10:04:56]Content-Type: application/json [10:04:56] [10:04:56]POST finish read [10:04:56]Found Content-Length = 679 [10:04:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:04:56]execute_script... [10:04: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)191602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:04:56]POST & json_proto [10:04:56]process_json_proto [10:04:56]json parsed OK: [10:04:56]protocol is kg_v1.0 [10:04:56]action value=close_receipt [10:04:56]process_action close_receipt [10:04:56]cmd_close_receipt [10:04:56]MH_GetDate [10:04:56]Write to MH i2c: F0 00 00 CD 0F CB [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: F0 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: F0 09 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: F0 09 00 CD 0F 00 4B 36 26 66 F4 E9 65 64 87 [10:04:56]GetLastDocTimeStamp 1713779810 [10:04:56]current date 1713780299 [10:04:56]FM_GetShiftState [10:04:56]SAM_PROTO_GetShiftState [10:04:56]wFMCommunicate request_size=4 [10:04:56]MH_SAM_APDU [10:04:56]CAPDU: 80 13 01 00 [10:04:56]Write to MH i2c: E2 08 00 CE 0F 80 13 01 00 00 00 00 00 5A [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:56]Read from MH i2c: E2 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 0E 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: E2 0E 00 CE 0F 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 81 [10:04:56]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [10:04:56]wFMCommunicate OK [10:04:56]SAM_PROTO_GetShiftState done [10:04:56]FM_GetShiftState done [10:04:56]opened in 1713745124 [10:04:56]opened+sec_in_day 1713831524 [10:04:56]quantity*price = 100018 [10:04:56]sum+1 = 100020 [10:04:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 44 22.04.2024 10:04 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77025 ФПД: 260504754633713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T100459&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77025&fm=260504754633713&tin=02508201610067®Number=0000000000091573&sum=100000 [10:04:57]StoreToDocumentArchive [10:04:57]shift 373 fd 77025 [10:04:57]save to /storage/0373/doc_00077025 [10:04:57]save last doc name /storage/0373/doc_00077025 to /storage/kkm_last_doc_name [10:04:57]save OK [10:04:57]Clear old archive folders... [10:04:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:04:57]tlvbuf is 0175AF00 [10:04:57]SAM_PROTO_ClearQueue [10:04:57]wFMCommunicate request_size=4 [10:04:57]MH_SAM_APDU [10:04:57]CAPDU: 80 09 00 00 [10:04:57]Write to MH i2c: E2 08 00 DB 0F 80 09 00 00 00 00 00 00 5C [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 [10:04:57]MH_I2C_Read... [10:04:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:57]Read from MH i2c: E2 03 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 03 00 DB 0F 00 90 00 5E [10:04:57]RAPDU: 90 00 [10:04:57]wFMCommunicate OK [10:04:57]SAM_PROTO_ClearQueue done [10:04:57]KKMCreateOFDPacket [10:04:57]OFDProtocolAddRootSTLVToBuf [10:04:57]FM_MakeSignedData [10:04:57]FM_MakeSignedData [10:04:57]SAM_PROTO_SignData [10:04:57]wFMCommunicate request_size=4 [10:04:57]MH_SAM_APDU [10:04:57]CAPDU: 80 0D 01 02 [10:04:57]Write to MH i2c: E2 08 00 DC 0F 80 0D 01 02 00 00 00 00 64 [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:57]Read from MH i2c: E2 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 03 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 03 00 DC 0F 00 90 00 5F [10:04:57]RAPDU: 90 00 [10:04:57]wFMCommunicate OK [10:04:57]wFMCommunicate request_size=255 [10:04:57]MH_SAM_APDU [10:04: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 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 2C 00 00 00 F4 03 04 00 4B 36 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E1 2C 01 00 35 04 06 00 EC ED 7D 5C [10:04:57]Write to MH i2c: E2 02 01 DD 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 2C 00 00 00 F4 03 04 00 4B 36 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E1 2C 01 00 35 04 06 00 EC ED 7D 5C 00 00 39 [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:57]Read from MH i2c: E2 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 03 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 03 00 DD 0F 00 90 00 60 [10:04:57]RAPDU: 90 00 [10:04:57]wFMCommunicate OK [10:04:57]wFMCommunicate request_size=7 [10:04:57]MH_SAM_APDU [10:04:57]CAPDU: 80 0D 02 02 02 BB F1 [10:04:57]Write to MH i2c: E2 0A 00 DE 0F 80 0D 02 02 02 00 BB F1 00 00 17 [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:57]Read from MH i2c: E2 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 03 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 03 00 DE 0F 00 90 00 61 [10:04:57]RAPDU: 90 00 [10:04:57]wFMCommunicate OK [10:04:57]wFMCommunicate request_size=4 [10:04:57]MH_SAM_APDU [10:04:57]CAPDU: 80 0D 03 02 [10:04:57]Write to MH i2c: E2 08 00 DF 0F 80 0D 03 02 00 00 00 00 69 [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:57]Read from MH i2c: E2 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 0B 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 0B 00 DF 0F 00 35 CC B1 FC 15 09 01 F7 90 00 2E [10:04:57]RAPDU: 35 CC B1 FC 15 09 01 F7 90 00 [10:04:57]wFMCommunicate OK [10:04:57]SAM_PROTO_SignData done [10:04:57]FM_MakeSignedData done [10:04:57]CreateOFDProtocolMessage [10:04:57]wFMCommunicate request_size=4 [10:04:57]MH_SAM_APDU [10:04:57]CAPDU: 80 11 00 00 [10:04:57]Write to MH i2c: E2 08 00 E0 0F 80 11 00 00 00 00 00 00 69 [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:57]Read from MH i2c: E2 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 17 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: E2 17 00 E0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BC [10:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:04:57]wFMCommunicate OK [10:04:57]CreateOFDProtocolMessage done [10:04:57]OFDSenderStorePacket 77025 [10:04:57]StoreOFDPacket docnum=77025 [10:04:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 48 17 04 01 E1 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 2C 00 00 00 F4 03 04 00 4B 36 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E1 2C 01 00 35 04 06 00 EC ED 7D 5C BB F1 35 CC B1 FC 15 09 01 F7 [10:04:57]CheckFolder [10:04:57]dirname=/storage/ofd_packets [10:04:57]CheckFolder done [10:04:57]ProducePacketName [10:04:57]name=ofd_packets/00077025 [10:04:57]NVStorageSaveData ofd_packets/00077025 [10:04:57]File name is /storage/ofd_packets/00077025 [10:04:57]Write 298 bytes [10:04:57]NVStorageSaveData done [10:04:57]OFDSenderStorePacket done [10:04:57]KKMCreateOFDPacket done [10:04:57]NVStorageSaveData kkm_last_timestamp [10:04:57]File name is /storage/kkm_last_timestamp [10:04:57]Write 4 bytes [10:04:57]NVStorageSaveData done [10:04:57]ExternCall_PrintAddStr [10:04:57]wPrintStart [10:04:57]Write to MH i2c: 01 00 00 E1 0F F0 [10:04:57]OFD Sender: Processing packet 77025 [packets to send 129, broken 128] [10:04:57]ProducePacketName [10:04:57]name=ofd_packets/00077025 [10:04:57]OFD Sender: To server: pG, [10:04:57]CommunicateWithHost lk.salyk.kg:30040 [10:04:57]ConnectInit lk.salyk.kg [10:04:57]Write i2c OK [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: 01 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: 01 07 00 [10:04:57]MH_I2C_Read... [10:04:57]Read from MH i2c: 01 07 00 E1 0F 00 00 00 00 00 FF 0F 05 [10:04:57]RasterBufferAndPrint [10:04:57]line Счет N : (1)191602 [10:04:57]line ИНН: 02508201610067 [10:04:57]line Контрольно-Кассовый Чек [10:04:57]line ПРОДАЖА [10:04:57]line ТРК (МРК, ГНК) : 61 [10:04:57]line Товар: 2710194210 [10:04:57]line ДТ-К-5 [10:04:57]line 13.720 * 72.90 [10:04:57]line = 1000.19 [10:04:57]line НДС 12% НСП 1% [10:04:57]line > о реализуемом товаре [10:04:57]line ОКРУГЛЕНИЕ: -0.19 [10:04:57]line ИТОГО: 1000.00 [10:04:57]line Внесено: 1000.00 [10:04:57]line СДАЧА: 0.00 [10:04:57]line НСП 1% : 8.85 [10:04:57]line НДС 12% : 106.21 [10:04:57]line Наличными: 1000.00 [10:04:57]line Безнал.: 0.00 [10:04:57]line Место: АЗС № 106 "Партнер Нефть" [10:04:57]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:04:57]line СНО: Общий режим [10:04:57]line Чек 44 22.04.2024 10:04 [10:04:57]line Смена: 373 ФФД: 1.0 [10:04:57]line ЗНМ: 0300000141 [10:04:57]line РНМ: 0000000000091573 [10:04:57]line Версия ККМ: 001 [10:04:57]line ФМ: 0000000000874652 [10:04:57]line ФД: 77025 [10:04:57]line ФПД: 260504754633713 [10:04:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T100459&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77025&fm=260504754633713&tin=02508201610067®Number=0000000000091573&sum=100000 [10:04:58]Connected sock=7 [10:04:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 48 17 04 01 E1 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 2C 00 00 00 F4 03 04 00 4B 36 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E1 2C 01 00 35 04 06 00 EC ED 7D 5C BB F1 35 CC B1 FC 15 09 01 F7 [10:04:58]written 0, free lines is 4095 [10:04:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 91 40 47 00 A6 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E1 2C 01 00 F4 03 04 00 CD DD 25 66 B6 04 01 00 00 49 27 82 A7 C9 5B 47 57 [10:04:58]CommunicateWithHost err = 0 [10:04:58]CheckOFDResponse [10:04:58]1017 (14) - 77093643461234 [10:04:58]1041 (16) - 0000000000874652 [10:04:58]1040 (4) - 77025 [10:04:58]1012 (4) - 22.04.2024 03:47 [10:04:58]1206 (1) - 0 [10:04:58]OFD Sender: Remove packet 77025 [10:04:58]ProducePacketName [10:04:58]name=ofd_packets/00077025 [10:04:58]NVStorageDeleteData [10:04:58]Write to MH i2c: 01 00 00 0B 10 1B [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: 01 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: 01 07 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: 01 07 00 0B 10 00 00 00 00 00 E3 0C 11 [10:04:58]RasterBufferAndPrint [10:04:58]line [10:04:58]line [10:04:58]line [10:04:58]line [10:04:58]line [10:04:58]written 0, free lines is 3308 [10:04:58]MH_Cut [10:04:58]Write to MH i2c: D1 01 00 12 10 01 F4 [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: D1 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: D1 01 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: D1 01 00 12 10 00 F3 [10:04:58]Write to MH i2c: 01 00 00 13 10 23 [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:59]OFD Sender: No OFD packet to send [10:04:59]*** Cut start [10:04:59]*** Partial cut [10:04:59]*** CUTSNS_PIN = 1 [10:04:59]*** CUTSNS_PIN = 0 [10:04:59]*** Brake cut motor [10:05:00]Read from MH i2c: 01 [10:05:00]MH_I2C_Read... [10:05:00]*** Stop cut motor [10:05:00]*** Cut end [10:05:00]Read from MH i2c: 01 07 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: 01 07 00 13 10 00 00 00 00 00 FF 0F 38 [10:05:00]process_action close_receipt done [10:05:00]requested_data is exist [10:05:00]produce_requested_data [10:05:00]requested_item fm.sn is exist - process it [10:05:00]wFMCommunicate request_size=4 [10:05:00]MH_SAM_APDU [10:05:00]CAPDU: 80 11 00 00 [10:05:00]Write to MH i2c: E2 08 00 14 10 80 11 00 00 00 00 00 00 9E [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:00]Read from MH i2c: E2 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 17 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 17 00 14 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F1 [10:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:05:00]wFMCommunicate OK [10:05:00]requested_item fd.num is exist - process it [10:05:00]SAM_PROTO_GetFieldsCounters [10:05:00]wFMCommunicate request_size=4 [10:05:00]MH_SAM_APDU [10:05:00]CAPDU: 80 13 00 00 [10:05:00]Write to MH i2c: E2 08 00 15 10 80 13 00 00 00 00 00 00 A1 [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:00]Read from MH i2c: E2 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 62 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 62 00 15 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E1 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [10:05:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E1 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:00]wFMCommunicate OK [10:05:00]SAM_PROTO_GetFieldsCounters done [10:05:00]requested_item shift.num is exist - process it [10:05:00]requested_item shift.opened is exist - process it [10:05:00]req_shift_opened [10:05:00]FM_GetShiftState [10:05:00]SAM_PROTO_GetShiftState [10:05:00]wFMCommunicate request_size=4 [10:05:00]MH_SAM_APDU [10:05:00]CAPDU: 80 13 01 00 [10:05:00]Write to MH i2c: E2 08 00 16 10 80 13 01 00 00 00 00 00 A3 [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:00]Read from MH i2c: E2 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 0E 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 0E 00 16 10 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 CA [10:05:00]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [10:05:00]wFMCommunicate OK [10:05:00]SAM_PROTO_GetShiftState done [10:05:00]FM_GetShiftState done [10:05:00]req_shift_opened done [10:05:00]requested_item shift.open_date is exist - process it [10:05:00]req_shift_open_date [10:05:00]req_shift_open_date done [10:05:00]produce_requested_data done [10:05:00]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77025,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [10:05:00]process_action_free close_receipt [10:05:00]json_value_free [10:05:00]json_value_free done [10:05:00]process_json_proto returns [10:05:00]Send response to host [10:05:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77025,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [10:05:00]free response buf [10:05:00]execute_script done [10:05:00]execute_script returns [10:05:00]free content buf [10:05:00]Sock 10.Close socket [10:05:00]Sock 10.Thread stoped [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:49]OFD Sender: No OFD packet to send [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:54]OFD Sender: No OFD packet to send [10:12:59]OFD Sender: No OFD packet to send [10:13:04]OFD Sender: No OFD packet to send [10:13:09]OFD Sender: No OFD packet to send [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18: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:47]accept exits with 9 [10:19:47]New connection [10:19:47]New thread 3067030884 created [10:19:47]Thread 3067174244 joined [10:19:47]Waiting for new connection... [10:19:47] Sock 9.Parse request [10:19:47]Sock 9.Check first char [10:19:47]Sock 9.First char is OK [10:19:47]request: POST /json_proto HTTP/1.0 [10:19:47]Method: POST [10:19:47]URL: /json_proto [10:19:47]Method is POST - this is cgi request [10:19:47]url: /json_proto [10:19:47]query_string will be loaded in cgi processing [10:19:47]execute_cgi json_proto POST (null) [10:19:47]execute_cgi path=json_proto method=POST [10:19:47]POST find Content-Length [10:19:47]Host: 172.17.62.5:8080 [10:19:47]Content-Length: 675 [10:19:47]Content-Type: application/json [10:19:47] [10:19:47]POST finish read [10:19:47]Found Content-Length = 675 [10:19:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "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:19:47]execute_script... [10: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)191603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "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:19:47]POST & json_proto [10:19:47]process_json_proto [10:19:47]json parsed OK: [10:19:47]protocol is kg_v1.0 [10:19:47]action value=close_receipt [10:19:47]process_action close_receipt [10:19:47]cmd_close_receipt [10:19:47]MH_GetDate [10:19:47]Write to MH i2c: F0 00 00 17 10 16 [10:19:47]Write i2c OK [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: F0 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: F0 09 00 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: F0 09 00 17 10 00 C6 39 26 66 F4 E9 65 64 50 [10:19:47]GetLastDocTimeStamp 1713780299 [10:19:47]current date 1713781190 [10:19:47]FM_GetShiftState [10:19:47]SAM_PROTO_GetShiftState [10:19:47]wFMCommunicate request_size=4 [10:19:47]MH_SAM_APDU [10:19:47]CAPDU: 80 13 01 00 [10:19:47]Write to MH i2c: E2 08 00 18 10 80 13 01 00 00 00 00 00 A5 [10:19:47]Write i2c OK [10:19:47]MH_I2C_Read... [10:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:47]Read from MH i2c: E2 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 0E 00 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 0E 00 18 10 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 CC [10:19:47]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [10:19:47]wFMCommunicate OK [10:19:47]SAM_PROTO_GetShiftState done [10:19:47]FM_GetShiftState done [10:19:47]opened in 1713745124 [10:19:47]opened+sec_in_day 1713831524 [10:19:47]quantity*price = 100062 [10:19:47]sum+1 = 100063 [10:19:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 45 22.04.2024 10:19 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77026 ФПД: 10769422730666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T101950&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77026&fm=10769422730666&tin=02508201610067®Number=0000000000091573&sum=100000 [10:19:48]StoreToDocumentArchive [10:19:48]shift 373 fd 77026 [10:19:48]save to /storage/0373/doc_00077026 [10:19:48]save last doc name /storage/0373/doc_00077026 to /storage/kkm_last_doc_name [10:19:48]save OK [10:19:48]Clear old archive folders... [10:19:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:19:48]tlvbuf is 016FD760 [10:19:48]SAM_PROTO_ClearQueue [10:19:48]wFMCommunicate request_size=4 [10:19:48]MH_SAM_APDU [10:19:48]CAPDU: 80 09 00 00 [10:19:48]Write to MH i2c: E2 08 00 25 10 80 09 00 00 00 00 00 00 A7 [10:19:48]Write i2c OK [10:19:48]MH_I2C_Read... [10:19:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:48]Read from MH i2c: E2 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 03 00 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 03 00 25 10 00 90 00 A9 [10:19:48]RAPDU: 90 00 [10:19:48]wFMCommunicate OK [10:19:48]SAM_PROTO_ClearQueue done [10:19:48]KKMCreateOFDPacket [10:19:48]OFDProtocolAddRootSTLVToBuf [10:19:48]FM_MakeSignedData [10:19:48]FM_MakeSignedData [10:19:48]SAM_PROTO_SignData [10:19:48]wFMCommunicate request_size=4 [10:19:48]MH_SAM_APDU [10:19:48]CAPDU: 80 0D 01 02 [10:19:48]Write to MH i2c: E2 08 00 26 10 80 0D 01 02 00 00 00 00 AF [10:19:48]Write i2c OK [10:19:48]MH_I2C_Read... [10:19:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:48]Read from MH i2c: E2 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 03 00 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 03 00 26 10 00 90 00 AA [10:19:48]RAPDU: 90 00 [10:19:48]wFMCommunicate OK [10:19:48]wFMCommunicate request_size=255 [10:19:48]MH_SAM_APDU [10:19:48]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 C6 39 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E2 2C 01 00 35 04 06 00 [10:19:48]Write to MH i2c: E2 02 01 27 10 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 C6 39 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E2 2C 01 00 35 04 06 00 00 00 0D [10:19:48]Write i2c OK [10:19:48]MH_I2C_Read... [10:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:48]Read from MH i2c: E2 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 03 00 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 03 00 27 10 00 90 00 AB [10:19:48]RAPDU: 90 00 [10:19:48]wFMCommunicate OK [10:19:48]wFMCommunicate request_size=11 [10:19:48]MH_SAM_APDU [10:19:48]CAPDU: 80 0D 02 02 06 09 CB 73 9D C5 AA [10:19:48]Write to MH i2c: E2 0E 00 28 10 80 0D 02 02 06 00 09 CB 73 9D C5 AA 00 00 11 [10:19:48]Write i2c OK [10:19:48]MH_I2C_Read... [10:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:48]Read from MH i2c: E2 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 03 00 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 03 00 28 10 00 90 00 AC [10:19:48]RAPDU: 90 00 [10:19:48]wFMCommunicate OK [10:19:48]wFMCommunicate request_size=4 [10:19:48]MH_SAM_APDU [10:19:48]CAPDU: 80 0D 03 02 [10:19:48]Write to MH i2c: E2 08 00 29 10 80 0D 03 02 00 00 00 00 B4 [10:19:48]Write i2c OK [10:19:48]MH_I2C_Read... [10:19:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:48]Read from MH i2c: E2 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 0B 00 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 0B 00 29 10 00 25 35 2C FE 24 94 6D 2A 90 00 88 [10:19:48]RAPDU: 25 35 2C FE 24 94 6D 2A 90 00 [10:19:48]wFMCommunicate OK [10:19:48]SAM_PROTO_SignData done [10:19:48]FM_MakeSignedData done [10:19:48]CreateOFDProtocolMessage [10:19:48]wFMCommunicate request_size=4 [10:19:48]MH_SAM_APDU [10:19:48]CAPDU: 80 11 00 00 [10:19:48]Write to MH i2c: E2 08 00 2A 10 80 11 00 00 00 00 00 00 B4 [10:19:48]Write i2c OK [10:19:48]MH_I2C_Read... [10:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:48]Read from MH i2c: E2 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 17 00 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 17 00 2A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 07 [10:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:19:48]wFMCommunicate OK [10:19:48]CreateOFDProtocolMessage done [10:19:48]OFDSenderStorePacket 77026 [10:19:48]StoreOFDPacket docnum=77026 [10:19:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 69 02 08 01 DC C5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 C6 39 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E2 2C 01 00 35 04 06 00 09 CB 73 9D C5 AA 25 35 2C FE 24 94 6D 2A [10:19:48]CheckFolder [10:19:48]dirname=/storage/ofd_packets [10:19:48]CheckFolder done [10:19:48]ProducePacketName [10:19:48]name=ofd_packets/00077026 [10:19:48]NVStorageSaveData ofd_packets/00077026 [10:19:48]File name is /storage/ofd_packets/00077026 [10:19:48]Write 302 bytes [10:19:48]NVStorageSaveData done [10:19:48]OFDSenderStorePacket done [10:19:48]KKMCreateOFDPacket done [10:19:48]NVStorageSaveData kkm_last_timestamp [10:19:48]File name is /storage/kkm_last_timestamp [10:19:48]Write 4 bytes [10:19:48]NVStorageSaveData done [10:19:48]ExternCall_PrintAddStr [10:19:48]wPrintStart [10:19:48]Write to MH i2c: 01 00 00 2B 10 3B [10:19:48]Write i2c OK [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: 01 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: 01 07 00 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: 01 07 00 2B 10 00 00 00 00 00 FF 0F 50 [10:19:48]RasterBufferAndPrint [10:19:48]line Счет N : (1)191603 [10:19:48]line ИНН: 02508201610067 [10:19:48]line Контрольно-Кассовый Чек [10:19:48]line ПРОДАЖА [10:19:48]line ТРК (МРК, ГНК) : 41 [10:19:48]line Товар: 2710124130 [10:19:48]line SUPER 92-К-5 [10:19:48]line 15.300 * 65.40 [10:19:48]line = 1000.62 [10:19:48]line НДС 12% НСП 1% [10:19:48]line > о реализуемом товаре [10:19:48]line ОКРУГЛЕНИЕ: -0.62 [10:19:48]line ИТОГО: 1000.00 [10:19:48]line Внесено: 1000.00 [10:19:48]line СДАЧА: 0.00 [10:19:48]line НСП 1% : 8.85 [10:19:48]line НДС 12% : 106.26 [10:19:48]line Наличными: 1000.00 [10:19:48]line Безнал.: 0.00 [10:19:48]line Место: АЗС № 106 "Партнер Нефть" [10:19:48]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:19:48]line СНО: Общий режим [10:19:48]line Чек 45 22.04.2024 10:19 [10:19:48]line Смена: 373 ФФД: 1.0 [10:19:48]line ЗНМ: 0300000141 [10:19:48]line РНМ: 0000000000091573 [10:19:48]line Версия ККМ: 001 [10:19:48]line ФМ: 0000000000874652 [10:19:48]line ФД: 77026 [10:19:48]line ФПД: 10769422730666 [10:19:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T101950&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77026&fm=10769422730666&tin=02508201610067®Number=0000000000091573&sum=100000 [10:19:49]written 0, free lines is 4095 [10:19:49]OFD Sender: Processing packet 77026 [packets to send 129, broken 128] [10:19:49]ProducePacketName [10:19:49]name=ofd_packets/00077026 [10:19:49]OFD Sender: To server: pG, [10:19:49]CommunicateWithHost lk.salyk.kg:30040 [10:19:49]ConnectInit lk.salyk.kg [10:19:49]Connected sock=10 [10:19:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 69 02 08 01 DC C5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 C6 39 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E2 2C 01 00 35 04 06 00 09 CB 73 9D C5 AA 25 35 2C FE 24 94 6D 2A [10:19:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 9B CE 47 00 A5 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E2 2C 01 00 F4 03 04 00 48 E1 25 66 B6 04 01 00 00 0B 3D 07 0E 1C B1 02 74 [10:19:49]CommunicateWithHost err = 0 [10:19:49]CheckOFDResponse [10:19:49]1017 (14) - 77093643461234 [10:19:49]1041 (16) - 0000000000874652 [10:19:49]1040 (4) - 77026 [10:19:49]1012 (4) - 22.04.2024 04:02 [10:19:49]1206 (1) - 0 [10:19:49]OFD Sender: Remove packet 77026 [10:19:49]ProducePacketName [10:19:49]name=ofd_packets/00077026 [10:19:49]NVStorageDeleteData [10:19:49]Write to MH i2c: 01 00 00 55 10 65 [10:19:49]Write i2c OK [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: 01 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: 01 07 00 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: 01 07 00 55 10 00 00 00 00 00 F2 0C 6A [10:19:49]RasterBufferAndPrint [10:19:49]line [10:19:49]line [10:19:49]line [10:19:49]line [10:19:49]line [10:19:49]written 0, free lines is 3322 [10:19:49]MH_Cut [10:19:49]Write to MH i2c: D1 01 00 5C 10 01 3E [10:19:49]Write i2c OK [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: D1 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: D1 01 00 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: D1 01 00 5C 10 00 3D [10:19:49]Write to MH i2c: 01 00 00 5D 10 6D [10:19:49]Write i2c OK [10:19:49]MH_I2C_Read... [10:19:50]OFD Sender: No OFD packet to send [10:19:50]*** Cut start [10:19:50]*** Partial cut [10:19:50]*** CUTSNS_PIN = 1 [10:19:50]*** CUTSNS_PIN = 0 [10:19:50]*** Brake cut motor [10:19:51]Read from MH i2c: 01 [10:19:51]MH_I2C_Read... [10:19:51]*** Stop cut motor [10:19:51]*** Cut end [10:19:51]Read from MH i2c: 01 07 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 07 00 5D 10 00 00 00 00 00 FF 0F 82 [10:19:51]process_action close_receipt done [10:19:51]requested_data is exist [10:19:51]produce_requested_data [10:19:51]requested_item fm.sn is exist - process it [10:19:51]wFMCommunicate request_size=4 [10:19:51]MH_SAM_APDU [10:19:51]CAPDU: 80 11 00 00 [10:19:51]Write to MH i2c: E2 08 00 5E 10 80 11 00 00 00 00 00 00 E8 [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 17 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 17 00 5E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3B [10:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:19:51]wFMCommunicate OK [10:19:51]requested_item fd.num is exist - process it [10:19:51]SAM_PROTO_GetFieldsCounters [10:19:51]wFMCommunicate request_size=4 [10:19:51]MH_SAM_APDU [10:19:51]CAPDU: 80 13 00 00 [10:19:51]Write to MH i2c: E2 08 00 5F 10 80 13 00 00 00 00 00 00 EB [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 62 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 62 00 5F 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E2 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [10:19:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E2 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:51]wFMCommunicate OK [10:19:51]SAM_PROTO_GetFieldsCounters done [10:19:51]requested_item shift.num is exist - process it [10:19:51]requested_item shift.opened is exist - process it [10:19:51]req_shift_opened [10:19:51]FM_GetShiftState [10:19:51]SAM_PROTO_GetShiftState [10:19:51]wFMCommunicate request_size=4 [10:19:51]MH_SAM_APDU [10:19:51]CAPDU: 80 13 01 00 [10:19:51]Write to MH i2c: E2 08 00 60 10 80 13 01 00 00 00 00 00 ED [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 0E 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 0E 00 60 10 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 14 [10:19:51]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [10:19:51]wFMCommunicate OK [10:19:51]SAM_PROTO_GetShiftState done [10:19:51]FM_GetShiftState done [10:19:51]req_shift_opened done [10:19:51]requested_item shift.open_date is exist - process it [10:19:51]req_shift_open_date [10:19:51]req_shift_open_date done [10:19:51]produce_requested_data done [10:19:51]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77026,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [10:19:51]process_action_free close_receipt [10:19:51]json_value_free [10:19:51]json_value_free done [10:19:51]process_json_proto returns [10:19:51]Send response to host [10:19:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77026,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [10:19:51]free response buf [10:19:51]execute_script done [10:19:51]execute_script returns [10:19:51]free content buf [10:19:51]Sock 9.Close socket [10:19:51]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [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:03]accept exits with 7 [10:27:03]New connection [10:27:03]New thread 3067174244 created [10:27:03]Thread 3067030884 joined [10:27:03]Waiting for new connection... [10:27:03] Sock 7.Parse request [10:27:03]Sock 7.Check first char [10:27:03]Sock 7.First char is OK [10:27:03]request: POST /json_proto HTTP/1.0 [10:27:03]Method: POST [10:27:03]URL: /json_proto [10:27:03]Method is POST - this is cgi request [10:27:03]url: /json_proto [10:27:03]query_string will be loaded in cgi processing [10:27:03]execute_cgi json_proto POST (null) [10:27:03]execute_cgi path=json_proto method=POST [10:27:03]POST find Content-Length [10:27:03]Host: 172.17.62.5:8080 [10:27:03]Content-Length: 1172 [10:27:03]Content-Type: application/json [10:27:03] [10:27:03]POST finish read [10:27:03]Found Content-Length = 1172 [10:27:03]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191604\u000A22.04.2024 10:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30103446\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:03]execute_script... [10:27:03]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191604\u000A22.04.2024 10:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30103446\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:03]POST & json_proto [10:27:03]process_json_proto [10:27:03]json parsed OK: [10:27:03]protocol is kg_v1.0 [10:27:03]action value=print_text [10:27:03]process_action print_text [10:27:03]cmd_print_text [10:27:03]ExternCall_PrintAddStr [10:27:03]wPrintStart [10:27:03]Write to MH i2c: 01 00 00 61 10 71 [10:27:03]Write i2c OK [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: 01 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: 01 07 00 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: 01 07 00 61 10 00 00 00 00 00 FF 0F 86 [10:27:03]RasterBufferAndPrint [10:27:03]line *****ТОВАРНЫЙ ЧЕК***** [10:27:03]line АЗС 106 [10:27:03]line Партнер нефть [10:27:03]line 02508201610067 [10:27:03]line Кассир : Токторбаева Н. [10:27:03]line Счет N : (1)191604 [10:27:03]line 22.04.2024 10:08 [10:27:03]line ПРОДАЖА [10:27:03]line ТРК (МРК, ГНК): 61 [10:27:03]line Вид ГСМ : 2710194210 [10:27:03]line ДТ-К-5 [10:27:03]line 40.000 x 72.90 [10:27:03]line ИТОГ: 2916.00 [10:27:03]line Тип оплаты: Талоны: ТК ГПНА Online [10:27:03]line 30103446 [10:27:03]line ______________________ [10:27:03]line (подпись) [10:27:03]written 0, free lines is 4095 [10:27:03]Write to MH i2c: 01 00 00 76 10 86 [10:27:03]Write i2c OK [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: 01 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: 01 07 00 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: 01 07 00 76 10 00 00 00 00 00 F3 0D 8D [10:27:03]RasterBufferAndPrint [10:27:03]line [10:27:03]line [10:27:03]line [10:27:03]line [10:27:03]line [10:27:03]written 0, free lines is 3573 [10:27:03]MH_Cut [10:27:03]Write to MH i2c: D1 01 00 7D 10 01 5F [10:27:03]Write i2c OK [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: D1 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: D1 01 00 [10:27:03]MH_I2C_Read... [10:27:03]Read from MH i2c: D1 01 00 7D 10 00 5E [10:27:03]Write to MH i2c: 01 00 00 7E 10 8E [10:27:03]Write i2c OK [10:27:03]MH_I2C_Read... [10:27:04]*** Cut start [10:27:04]*** Partial cut [10:27:04]*** CUTSNS_PIN = 1 [10:27:04]*** CUTSNS_PIN = 0 [10:27:04]*** Brake cut motor [10:27:04]Read from MH i2c: 01 [10:27:04]MH_I2C_Read... [10:27:04]*** Stop cut motor [10:27:04]*** Cut end [10:27:04]Read from MH i2c: 01 07 00 [10:27:04]MH_I2C_Read... [10:27:04]Read from MH i2c: 01 07 00 7E 10 00 00 00 00 00 FF 0F A3 [10:27:04]process_action print_text done [10:27:04]requested_data is exist [10:27:04]produce_requested_data [10:27:04]requested_item fm.sn is exist - process it [10:27:04]wFMCommunicate request_size=4 [10:27:04]MH_SAM_APDU [10:27:04]CAPDU: 80 11 00 00 [10:27:04]Write to MH i2c: E2 08 00 7F 10 80 11 00 00 00 00 00 00 09 [10:27:04]Write i2c OK [10:27:04]MH_I2C_Read... [10:27:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:04]Read from MH i2c: E2 [10:27:04]MH_I2C_Read... [10:27:04]Read from MH i2c: E2 17 00 [10:27:04]MH_I2C_Read... [10:27:04]Read from MH i2c: E2 17 00 7F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5C [10:27:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:27:04]wFMCommunicate OK [10:27:04]requested_item fd.num is exist - process it [10:27:04]SAM_PROTO_GetFieldsCounters [10:27:04]wFMCommunicate request_size=4 [10:27:04]MH_SAM_APDU [10:27:04]CAPDU: 80 13 00 00 [10:27:04]Write to MH i2c: E2 08 00 80 10 80 13 00 00 00 00 00 00 0C [10:27:04]Write i2c OK [10:27:04]MH_I2C_Read... [10:27:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:04]Read from MH i2c: E2 [10:27:04]MH_I2C_Read... [10:27:04]Read from MH i2c: E2 62 00 [10:27:04]MH_I2C_Read... [10:27:04]Read from MH i2c: E2 62 00 80 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E2 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [10:27:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E2 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:04]wFMCommunicate OK [10:27:04]SAM_PROTO_GetFieldsCounters done [10:27:04]requested_item shift.num is exist - process it [10:27:04]requested_item shift.opened is exist - process it [10:27:04]req_shift_opened [10:27:04]FM_GetShiftState [10:27:04]SAM_PROTO_GetShiftState [10:27:04]wFMCommunicate request_size=4 [10:27:04]MH_SAM_APDU [10:27:04]CAPDU: 80 13 01 00 [10:27:04]Write to MH i2c: E2 08 00 81 10 80 13 01 00 00 00 00 00 0E [10:27:04]Write i2c OK [10:27:04]MH_I2C_Read... [10:27:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:04]Read from MH i2c: E2 [10:27:04]MH_I2C_Read... [10:27:04]Read from MH i2c: E2 0E 00 [10:27:04]MH_I2C_Read... [10:27:04]Read from MH i2c: E2 0E 00 81 10 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 35 [10:27:04]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [10:27:04]wFMCommunicate OK [10:27:04]SAM_PROTO_GetShiftState done [10:27:04]FM_GetShiftState done [10:27:04]req_shift_opened done [10:27:04]requested_item shift.open_date is exist - process it [10:27:04]req_shift_open_date [10:27:04]req_shift_open_date done [10:27:04]produce_requested_data done [10:27:04]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77026,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [10:27:04]process_action_free print_text [10:27:04]json_value_free [10:27:04]json_value_free done [10:27:04]process_json_proto returns [10:27:04]Send response to host [10:27:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77026,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [10:27:04]free response buf [10:27:04]execute_script done [10:27:04]execute_script returns [10:27:04]free content buf [10:27:04]Sock 7.Close socket [10:27:04]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:29:00]OFD Sender: No OFD packet to send [10:29:05]OFD Sender: No OFD packet to send [10:29:10]OFD Sender: No OFD packet to send [10:29:15]OFD Sender: No OFD packet to send [10:29:20]OFD Sender: No OFD packet to send [10:29:25]OFD Sender: No OFD packet to send [10:29:30]OFD Sender: No OFD packet to send [10:29:35]OFD Sender: No OFD packet to send [10:29:40]OFD Sender: No OFD packet to send [10:29:45]OFD Sender: No OFD packet to send [10:29:50]OFD Sender: No OFD packet to send [10:29:55]OFD Sender: No OFD packet to send [10:30:00]OFD Sender: No OFD packet to send [10:30:05]OFD Sender: No OFD packet to send [10:30:10]OFD Sender: No OFD packet to send [10:30:15]OFD Sender: No OFD packet to send [10:30:20]OFD Sender: No OFD packet to send [10:30:25]OFD Sender: No OFD packet to send [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:15]OFD Sender: No OFD packet to send [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:24]accept exits with 9 [10:41:24]New connection [10:41:24]New thread 3067030884 created [10:41:24]Thread 3067174244 joined [10:41:24]Waiting for new connection... [10:41:24] Sock 9.Parse request [10:41:24]Sock 9.Check first char [10:41:24]Sock 9.First char is OK [10:41:24]request: POST /json_proto HTTP/1.0 [10:41:24]Method: POST [10:41:24]URL: /json_proto [10:41:24]Method is POST - this is cgi request [10:41:24]url: /json_proto [10:41:24]query_string will be loaded in cgi processing [10:41:24]execute_cgi json_proto POST (null) [10:41:24]execute_cgi path=json_proto method=POST [10:41:24]POST find Content-Length [10:41:24]Host: 172.17.62.5:8080 [10:41:24]Content-Length: 677 [10:41:24]Content-Type: application/json [10:41:24] [10:41:24]POST finish read [10:41:24]Found Content-Length = 677 [10:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "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:41:24]execute_script... [10:41: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)191605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "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:41:24]POST & json_proto [10:41:24]process_json_proto [10:41:24]json parsed OK: [10:41:24]protocol is kg_v1.0 [10:41:24]action value=close_receipt [10:41:24]process_action close_receipt [10:41:24]cmd_close_receipt [10:41:24]MH_GetDate [10:41:24]Write to MH i2c: F0 00 00 82 10 81 [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: F0 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: F0 09 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: F0 09 00 82 10 00 D7 3E 26 66 F4 E9 65 64 D1 [10:41:24]GetLastDocTimeStamp 1713781190 [10:41:24]current date 1713782487 [10:41:24]FM_GetShiftState [10:41:24]SAM_PROTO_GetShiftState [10:41:24]wFMCommunicate request_size=4 [10:41:24]MH_SAM_APDU [10:41:24]CAPDU: 80 13 01 00 [10:41:24]Write to MH i2c: E2 08 00 83 10 80 13 01 00 00 00 00 00 10 [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:24]Read from MH i2c: E2 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 0E 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 0E 00 83 10 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 37 [10:41:24]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [10:41:24]wFMCommunicate OK [10:41:24]SAM_PROTO_GetShiftState done [10:41:24]FM_GetShiftState done [10:41:24]opened in 1713745124 [10:41:24]opened+sec_in_day 1713831524 [10:41:24]quantity*price = 50038 [10:41:24]sum+1 = 50040 [10:41:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 46 22.04.2024 10:41 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77027 ФПД: 154230200203471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T104127&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77027&fm=154230200203471&tin=02508201610067®Number=0000000000091573&sum=50000 [10:41:25]StoreToDocumentArchive [10:41:25]shift 373 fd 77027 [10:41:25]save to /storage/0373/doc_00077027 [10:41:25]save last doc name /storage/0373/doc_00077027 to /storage/kkm_last_doc_name [10:41:25]save OK [10:41:25]Clear old archive folders... [10:41:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:41:25]tlvbuf is 01701130 [10:41:25]SAM_PROTO_ClearQueue [10:41:25]wFMCommunicate request_size=4 [10:41:25]MH_SAM_APDU [10:41:25]CAPDU: 80 09 00 00 [10:41:25]Write to MH i2c: E2 08 00 90 10 80 09 00 00 00 00 00 00 12 [10:41:25]Write i2c OK [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: E2 [10:41:25]MH_I2C_Read... [10:41:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:25]Read from MH i2c: E2 03 00 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: E2 03 00 90 10 00 90 00 14 [10:41:25]RAPDU: 90 00 [10:41:25]wFMCommunicate OK [10:41:25]SAM_PROTO_ClearQueue done [10:41:25]KKMCreateOFDPacket [10:41:25]OFDProtocolAddRootSTLVToBuf [10:41:25]FM_MakeSignedData [10:41:25]FM_MakeSignedData [10:41:25]SAM_PROTO_SignData [10:41:25]wFMCommunicate request_size=4 [10:41:25]MH_SAM_APDU [10:41:25]CAPDU: 80 0D 01 02 [10:41:25]Write to MH i2c: E2 08 00 91 10 80 0D 01 02 00 00 00 00 1A [10:41:25]Write i2c OK [10:41:25]MH_I2C_Read... [10:41:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:25]Read from MH i2c: E2 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: E2 03 00 [10:41:25]MH_I2C_Read... [10:41:25]Read from MH i2c: E2 03 00 91 10 00 90 00 15 [10:41:25]RAPDU: 90 00 [10:41:25]wFMCommunicate OK [10:41:25]wFMCommunicate request_size=255 [10:41:25]MH_SAM_APDU [10:41:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D7 3E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E3 2C 01 00 35 04 06 00 8C [10:41:25]Write to MH i2c: E2 02 01 92 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D7 3E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E3 2C 01 00 35 04 06 00 8C 00 00 B0 [10:41:25]Write i2c OK [10:41:25]MH_I2C_Read... [10:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:26]Read from MH i2c: E2 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 03 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 03 00 92 10 00 90 00 16 [10:41:26]RAPDU: 90 00 [10:41:26]wFMCommunicate OK [10:41:26]wFMCommunicate request_size=10 [10:41:26]MH_SAM_APDU [10:41:26]CAPDU: 80 0D 02 02 05 45 84 4B F8 CF [10:41:26]Write to MH i2c: E2 0D 00 93 10 80 0D 02 02 05 00 45 84 4B F8 CF 00 00 02 [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:26]Read from MH i2c: E2 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 03 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 03 00 93 10 00 90 00 17 [10:41:26]RAPDU: 90 00 [10:41:26]wFMCommunicate OK [10:41:26]wFMCommunicate request_size=4 [10:41:26]MH_SAM_APDU [10:41:26]CAPDU: 80 0D 03 02 [10:41:26]Write to MH i2c: E2 08 00 94 10 80 0D 03 02 00 00 00 00 1F [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:26]Read from MH i2c: E2 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 0B 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 0B 00 94 10 00 FB DD 10 62 00 D4 7D 34 90 00 EF [10:41:26]RAPDU: FB DD 10 62 00 D4 7D 34 90 00 [10:41:26]wFMCommunicate OK [10:41:26]SAM_PROTO_SignData done [10:41:26]FM_MakeSignedData done [10:41:26]CreateOFDProtocolMessage [10:41:26]wFMCommunicate request_size=4 [10:41:26]MH_SAM_APDU [10:41:26]CAPDU: 80 11 00 00 [10:41:26]Write to MH i2c: E2 08 00 95 10 80 11 00 00 00 00 00 00 1F [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:26]Read from MH i2c: E2 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 17 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 17 00 95 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 72 [10:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:41:26]wFMCommunicate OK [10:41:26]CreateOFDProtocolMessage done [10:41:26]OFDSenderStorePacket 77027 [10:41:26]StoreOFDPacket docnum=77027 [10:41:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 06 C9 07 01 EB 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D7 3E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E3 2C 01 00 35 04 06 00 8C 45 84 4B F8 CF FB DD 10 62 00 D4 7D 34 [10:41:26]CheckFolder [10:41:26]dirname=/storage/ofd_packets [10:41:26]CheckFolder done [10:41:26]ProducePacketName [10:41:26]name=ofd_packets/00077027 [10:41:26]NVStorageSaveData ofd_packets/00077027 [10:41:26]File name is /storage/ofd_packets/00077027 [10:41:26]Write 301 bytes [10:41:26]NVStorageSaveData done [10:41:26]OFDSenderStorePacket done [10:41:26]KKMCreateOFDPacket done [10:41:26]NVStorageSaveData kkm_last_timestamp [10:41:26]File name is /storage/kkm_last_timestamp [10:41:26]Write 4 bytes [10:41:26]NVStorageSaveData done [10:41:26]ExternCall_PrintAddStr [10:41:26]wPrintStart [10:41:26]Write to MH i2c: 01 00 00 96 10 A6 [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: 01 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: 01 07 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: 01 07 00 96 10 00 00 00 00 00 FF 0F BB [10:41:26]RasterBufferAndPrint [10:41:26]line Счет N : (1)191605 [10:41:26]line ИНН: 02508201610067 [10:41:26]line Контрольно-Кассовый Чек [10:41:26]line ПРОДАЖА [10:41:26]line ТРК (МРК, ГНК) : 12 [10:41:26]line Товар: 2710124130 [10:41:26]line Аи-92-К-5 [10:41:26]line 7.770 * 64.40 [10:41:26]line = 500.39 [10:41:26]line НДС 12% НСП 1% [10:41:26]line > о реализуемом товаре [10:41:26]line ОКРУГЛЕНИЕ: -0.39 [10:41:26]line ИТОГО: 500.00 [10:41:26]line Внесено: 500.00 [10:41:26]line СДАЧА: 0.00 [10:41:26]line НСП 1% : 4.43 [10:41:26]line НДС 12% : 53.14 [10:41:26]line Наличными: 500.00 [10:41:26]line Безнал.: 0.00 [10:41:26]line Место: АЗС № 106 "Партнер Нефть" [10:41:26]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:41:26]line СНО: Общий режим [10:41:26]line Чек 46 22.04.2024 10:41 [10:41:26]line Смена: 373 ФФД: 1.0 [10:41:26]line ЗНМ: 0300000141 [10:41:26]line РНМ: 0000000000091573 [10:41:26]line Версия ККМ: 001 [10:41:26]line ФМ: 0000000000874652 [10:41:26]line ФД: 77027 [10:41:26]line ФПД: 154230200203471 [10:41:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T104127&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77027&fm=154230200203471&tin=02508201610067®Number=0000000000091573&sum=50000 [10:41:26]OFD Sender: Processing packet 77027 [packets to send 129, broken 128] [10:41:26]ProducePacketName [10:41:26]name=ofd_packets/00077027 [10:41:26]OFD Sender: To server: pG, [10:41:26]CommunicateWithHost lk.salyk.kg:30040 [10:41:26]ConnectInit lk.salyk.kg [10:41:26]written 0, free lines is 4095 [10:41:27]Write to MH i2c: 01 00 00 C0 10 D0 [10:41:27]Write i2c OK [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: 01 [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: 01 07 00 [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: 01 07 00 C0 10 00 00 00 00 00 E3 0C C6 [10:41:27]RasterBufferAndPrint [10:41:27]line [10:41:27]line [10:41:27]line [10:41:27]line [10:41:27]line [10:41:27]written 0, free lines is 3302 [10:41:27]MH_Cut [10:41:27]Write to MH i2c: D1 01 00 C7 10 01 A9 [10:41:27]Write i2c OK [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: D1 [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: D1 01 00 [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: D1 01 00 C7 10 00 A8 [10:41:27]Write to MH i2c: 01 00 00 C8 10 D8 [10:41:27]Write i2c OK [10:41:27]MH_I2C_Read... [10:41:27]*** Cut start [10:41:27]*** Partial cut [10:41:27]*** CUTSNS_PIN = 1 [10:41:27]*** CUTSNS_PIN = 0 [10:41:28]*** Brake cut motor [10:41:28]Read from MH i2c: 01 [10:41:28]MH_I2C_Read... [10:41:28]*** Stop cut motor [10:41:28]*** Cut end [10:41:28]Read from MH i2c: 01 07 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: 01 07 00 C8 10 00 00 00 00 00 FF 0F ED [10:41:28]process_action close_receipt done [10:41:28]requested_data is exist [10:41:28]produce_requested_data [10:41:28]requested_item fm.sn is exist - process it [10:41:28]wFMCommunicate request_size=4 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 11 00 00 [10:41:28]Write to MH i2c: E2 08 00 C9 10 80 11 00 00 00 00 00 00 53 [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 17 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 17 00 C9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A6 [10:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:41:28]wFMCommunicate OK [10:41:28]requested_item fd.num is exist - process it [10:41:28]SAM_PROTO_GetFieldsCounters [10:41:28]wFMCommunicate request_size=4 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 13 00 00 [10:41:28]Write to MH i2c: E2 08 00 CA 10 80 13 00 00 00 00 00 00 56 [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 62 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 62 00 CA 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E3 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [10:41:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E3 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:28]wFMCommunicate OK [10:41:28]SAM_PROTO_GetFieldsCounters done [10:41:28]requested_item shift.num is exist - process it [10:41:28]requested_item shift.opened is exist - process it [10:41:28]req_shift_opened [10:41:28]FM_GetShiftState [10:41:28]SAM_PROTO_GetShiftState [10:41:28]wFMCommunicate request_size=4 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 13 01 00 [10:41:28]Write to MH i2c: E2 08 00 CB 10 80 13 01 00 00 00 00 00 58 [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 0E 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 0E 00 CB 10 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 7F [10:41:28]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [10:41:28]wFMCommunicate OK [10:41:28]SAM_PROTO_GetShiftState done [10:41:28]FM_GetShiftState done [10:41:28]req_shift_opened done [10:41:28]requested_item shift.open_date is exist - process it [10:41:28]req_shift_open_date [10:41:28]req_shift_open_date done [10:41:28]produce_requested_data done [10:41:28]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77027,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [10:41:28]process_action_free close_receipt [10:41:28]json_value_free [10:41:28]json_value_free done [10:41:28]process_json_proto returns [10:41:28]Send response to host [10:41:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77027,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [10:41:28]free response buf [10:41:28]execute_script done [10:41:28]execute_script returns [10:41:28]free content buf [10:41:28]Sock 9.Close socket [10:41:28]Sock 9.Thread stoped [10:43:39]ConnectInit Can't connect to host [10:43:39]CommunicateWithHost connect error [10:43:39]CommunicateWithHost err = -1 [10:43:39]OFD Sender: Server communicate error [10:43:44]OFD Sender: Processing packet 77027 [packets to send 129, broken 128] [10:43:44]ProducePacketName [10:43:44]name=ofd_packets/00077027 [10:43:44]OFD Sender: To server: pG, [10:43:44]CommunicateWithHost lk.salyk.kg:30040 [10:43:44]ConnectInit lk.salyk.kg [10:43:44]Connected sock=9 [10:43:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 06 C9 07 01 EB 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D7 3E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E3 2C 01 00 35 04 06 00 8C 45 84 4B F8 CF FB DD 10 62 00 D4 7D 34 [10:43:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 DF 6E 47 00 33 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E3 2C 01 00 F4 03 04 00 E4 E6 25 66 B6 04 01 00 00 42 C9 B7 54 76 BF 65 86 [10:43:44]CommunicateWithHost err = 0 [10:43:44]CheckOFDResponse [10:43:44]1017 (14) - 77093643461234 [10:43:44]1041 (16) - 0000000000874652 [10:43:44]1040 (4) - 77027 [10:43:44]1012 (4) - 22.04.2024 04:26 [10:43:44]1206 (1) - 0 [10:43:44]OFD Sender: Remove packet 77027 [10:43:44]ProducePacketName [10:43:44]name=ofd_packets/00077027 [10:43:44]NVStorageDeleteData [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]accept exits with 7 [10:45:45]New connection [10:45:45]New thread 3067174244 created [10:45:45]Thread 3067030884 joined [10:45:45]Waiting for new connection... [10:45:45] Sock 7.Parse request [10:45:45]Sock 7.Check first char [10:45:45]Sock 7.First char is OK [10:45:45]request: POST /json_proto HTTP/1.0 [10:45:45]Method: POST [10:45:45]URL: /json_proto [10:45:45]Method is POST - this is cgi request [10:45:45]url: /json_proto [10:45:45]query_string will be loaded in cgi processing [10:45:45]execute_cgi json_proto POST (null) [10:45:45]execute_cgi path=json_proto method=POST [10:45:45]POST find Content-Length [10:45:45]Host: 172.17.62.5:8080 [10:45:45]Content-Length: 678 [10:45:45]Content-Type: application/json [10:45:45] [10:45:45]POST finish read [10:45:45]Found Content-Length = 678 [10:45:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.080, "sum" : 649.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 649.00, "total" : 649.00, "payments": [ { "type": 0, "sum" : 649.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:45]execute_script... [10:45:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 10.080, "sum" : 649.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 649.00, "total" : 649.00, "payments": [ { "type": 0, "sum" : 649.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:45]POST & json_proto [10:45:45]process_json_proto [10:45:45]json parsed OK: [10:45:45]protocol is kg_v1.0 [10:45:45]action value=close_receipt [10:45:45]process_action close_receipt [10:45:45]cmd_close_receipt [10:45:45]MH_GetDate [10:45:45]Write to MH i2c: F0 00 00 CC 10 CB [10:45:45]Write i2c OK [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: F0 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: F0 09 00 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: F0 09 00 CC 10 00 DC 3F 26 66 F4 E9 65 64 21 [10:45:45]GetLastDocTimeStamp 1713782487 [10:45:45]current date 1713782748 [10:45:45]FM_GetShiftState [10:45:45]SAM_PROTO_GetShiftState [10:45:45]wFMCommunicate request_size=4 [10:45:45]MH_SAM_APDU [10:45:45]CAPDU: 80 13 01 00 [10:45:45]Write to MH i2c: E2 08 00 CD 10 80 13 01 00 00 00 00 00 5A [10:45:45]Write i2c OK [10:45:45]MH_I2C_Read... [10:45:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:45]Read from MH i2c: E2 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 0E 00 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 0E 00 CD 10 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 81 [10:45:45]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [10:45:45]wFMCommunicate OK [10:45:45]SAM_PROTO_GetShiftState done [10:45:45]FM_GetShiftState done [10:45:45]opened in 1713745124 [10:45:45]opened+sec_in_day 1713831524 [10:45:45]quantity*price = 64915 [10:45:45]sum+1 = 64916 [10:45:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 649.00 Внесено: 649.00 СДАЧА: 0.00 НСП 1% : 5.74 НДС 12% : 68.94 Наличными: 649.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 47 22.04.2024 10:45 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77028 ФПД: 201291736416488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T104548&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77028&fm=201291736416488&tin=02508201610067®Number=0000000000091573&sum=64900 [10:45:46]StoreToDocumentArchive [10:45:46]shift 373 fd 77028 [10:45:46]save to /storage/0373/doc_00077028 [10:45:46]save last doc name /storage/0373/doc_00077028 to /storage/kkm_last_doc_name [10:45:46]save OK [10:45:46]Clear old archive folders... [10:45:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:46]tlvbuf is 0175A8F0 [10:45:46]SAM_PROTO_ClearQueue [10:45:46]wFMCommunicate request_size=4 [10:45:46]MH_SAM_APDU [10:45:46]CAPDU: 80 09 00 00 [10:45:46]Write to MH i2c: E2 08 00 DA 10 80 09 00 00 00 00 00 00 5C [10:45:46]Write i2c OK [10:45:46]MH_I2C_Read... [10:45:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:46]Read from MH i2c: E2 [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: E2 03 00 [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: E2 03 00 DA 10 00 90 00 5E [10:45:46]RAPDU: 90 00 [10:45:46]wFMCommunicate OK [10:45:46]SAM_PROTO_ClearQueue done [10:45:46]KKMCreateOFDPacket [10:45:46]OFDProtocolAddRootSTLVToBuf [10:45:46]FM_MakeSignedData [10:45:46]FM_MakeSignedData [10:45:46]SAM_PROTO_SignData [10:45:46]wFMCommunicate request_size=4 [10:45:46]MH_SAM_APDU [10:45:46]CAPDU: 80 0D 01 02 [10:45:46]Write to MH i2c: E2 08 00 DB 10 80 0D 01 02 00 00 00 00 64 [10:45:46]Write i2c OK [10:45:46]MH_I2C_Read... [10:45:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:46]Read from MH i2c: E2 [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: E2 03 00 [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: E2 03 00 DB 10 00 90 00 5F [10:45:46]RAPDU: 90 00 [10:45:46]wFMCommunicate OK [10:45:46]wFMCommunicate request_size=255 [10:45:46]MH_SAM_APDU [10:45: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 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 93 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 1A 00 00 00 00 07 04 06 00 84 FD 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 DC 3F 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E4 2C 01 00 35 04 06 00 B7 [10:45:46]Write to MH i2c: E2 02 01 DC 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 93 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 1A 00 00 00 00 07 04 06 00 84 FD 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 DC 3F 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E4 2C 01 00 35 04 06 00 B7 00 00 24 [10:45:46]Write i2c OK [10:45:46]MH_I2C_Read... [10:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:46]Read from MH i2c: E2 [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: E2 03 00 [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: E2 03 00 DC 10 00 90 00 60 [10:45:46]RAPDU: 90 00 [10:45:46]wFMCommunicate OK [10:45:46]wFMCommunicate request_size=10 [10:45:46]MH_SAM_APDU [10:45:46]CAPDU: 80 0D 02 02 05 12 E2 72 00 E8 [10:45:46]Write to MH i2c: E2 0D 00 DD 10 80 0D 02 02 05 00 12 E2 72 00 E8 00 00 BF [10:45:46]Write i2c OK [10:45:46]MH_I2C_Read... [10:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:46]Read from MH i2c: E2 [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: E2 03 00 [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: E2 03 00 DD 10 00 90 00 61 [10:45:46]RAPDU: 90 00 [10:45:46]wFMCommunicate OK [10:45:46]wFMCommunicate request_size=4 [10:45:46]MH_SAM_APDU [10:45:46]CAPDU: 80 0D 03 02 [10:45:46]Write to MH i2c: E2 08 00 DE 10 80 0D 03 02 00 00 00 00 69 [10:45:46]Write i2c OK [10:45:46]MH_I2C_Read... [10:45:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:46]Read from MH i2c: E2 [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: E2 0B 00 [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: E2 0B 00 DE 10 00 75 57 05 F9 12 0D D0 46 90 00 69 [10:45:46]RAPDU: 75 57 05 F9 12 0D D0 46 90 00 [10:45:46]wFMCommunicate OK [10:45:46]SAM_PROTO_SignData done [10:45:46]FM_MakeSignedData done [10:45:46]CreateOFDProtocolMessage [10:45:46]wFMCommunicate request_size=4 [10:45:46]MH_SAM_APDU [10:45:46]CAPDU: 80 11 00 00 [10:45:46]Write to MH i2c: E2 08 00 DF 10 80 11 00 00 00 00 00 00 69 [10:45:46]Write i2c OK [10:45:46]MH_I2C_Read... [10:45:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:46]Read from MH i2c: E2 [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: E2 17 00 [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: E2 17 00 DF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BC [10:45:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:45:46]wFMCommunicate OK [10:45:46]CreateOFDProtocolMessage done [10:45:46]OFDSenderStorePacket 77028 [10:45:46]StoreOFDPacket docnum=77028 [10:45:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 64 C2 07 01 6B 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 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 93 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 1A 00 00 00 00 07 04 06 00 84 FD 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 DC 3F 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E4 2C 01 00 35 04 06 00 B7 12 E2 72 00 E8 75 57 05 F9 12 0D D0 46 [10:45:46]CheckFolder [10:45:46]dirname=/storage/ofd_packets [10:45:46]CheckFolder done [10:45:46]ProducePacketName [10:45:46]name=ofd_packets/00077028 [10:45:46]NVStorageSaveData ofd_packets/00077028 [10:45:46]File name is /storage/ofd_packets/00077028 [10:45:46]Write 301 bytes [10:45:46]NVStorageSaveData done [10:45:46]OFDSenderStorePacket done [10:45:46]KKMCreateOFDPacket done [10:45:46]NVStorageSaveData kkm_last_timestamp [10:45:46]File name is /storage/kkm_last_timestamp [10:45:46]Write 4 bytes [10:45:46]NVStorageSaveData done [10:45:46]ExternCall_PrintAddStr [10:45:46]wPrintStart [10:45:46]Write to MH i2c: 01 00 00 E0 10 F0 [10:45:46]Write i2c OK [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: 01 [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: 01 07 00 [10:45:46]MH_I2C_Read... [10:45:46]Read from MH i2c: 01 07 00 E0 10 00 00 00 00 00 FF 0F 05 [10:45:46]RasterBufferAndPrint [10:45:46]line Счет N : (1)191606 [10:45:46]line ИНН: 02508201610067 [10:45:46]line Контрольно-Кассовый Чек [10:45:46]line ПРОДАЖА [10:45:46]line ТРК (МРК, ГНК) : 33 [10:45:46]line Товар: 2710124130 [10:45:46]line Аи-92-К-5 [10:45:46]line 10.080 * 64.40 [10:45:46]line = 649.15 [10:45:46]line НДС 12% НСП 1% [10:45:46]line > о реализуемом товаре [10:45:46]line ОКРУГЛЕНИЕ: -0.15 [10:45:46]line ИТОГО: 649.00 [10:45:46]line Внесено: 649.00 [10:45:46]line СДАЧА: 0.00 [10:45:46]line НСП 1% : 5.74 [10:45:46]line НДС 12% : 68.94 [10:45:46]line Наличными: 649.00 [10:45:46]line Безнал.: 0.00 [10:45:46]line Место: АЗС № 106 "Партнер Нефть" [10:45:46]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:45:46]line СНО: Общий режим [10:45:46]line Чек 47 22.04.2024 10:45 [10:45:46]line Смена: 373 ФФД: 1.0 [10:45:46]line ЗНМ: 0300000141 [10:45:46]line РНМ: 0000000000091573 [10:45:46]line Версия ККМ: 001 [10:45:46]line ФМ: 0000000000874652 [10:45:46]line ФД: 77028 [10:45:46]line ФПД: 201291736416488 [10:45:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T104548&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77028&fm=201291736416488&tin=02508201610067®Number=0000000000091573&sum=64900 [10:45:47]OFD Sender: Processing packet 77028 [packets to send 129, broken 128] [10:45:47]ProducePacketName [10:45:47]name=ofd_packets/00077028 [10:45:47]OFD Sender: To server: pG, [10:45:47]CommunicateWithHost lk.salyk.kg:30040 [10:45:47]ConnectInit lk.salyk.kg [10:45:47]written 0, free lines is 4095 [10:45:47]Connected sock=10 [10:45:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 64 C2 07 01 6B 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 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 93 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 1A 00 00 00 00 07 04 06 00 84 FD 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 DC 3F 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E4 2C 01 00 35 04 06 00 B7 12 E2 72 00 E8 75 57 05 F9 12 0D D0 46 [10:45:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 B6 B5 47 00 C7 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E4 2C 01 00 F4 03 04 00 5E E7 25 66 B6 04 01 00 00 EC 99 41 F5 2F 6C 54 AD [10:45:47]CommunicateWithHost err = 0 [10:45:47]CheckOFDResponse [10:45:47]1017 (14) - 77093643461234 [10:45:47]1041 (16) - 0000000000874652 [10:45:47]1040 (4) - 77028 [10:45:47]1012 (4) - 22.04.2024 04:28 [10:45:47]1206 (1) - 0 [10:45:47]OFD Sender: Remove packet 77028 [10:45:47]ProducePacketName [10:45:47]name=ofd_packets/00077028 [10:45:47]NVStorageDeleteData [10:45:47]Write to MH i2c: 01 00 00 0A 11 1B [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: 01 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: 01 07 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: 01 07 00 0A 11 00 00 00 00 00 F3 0C 21 [10:45:47]RasterBufferAndPrint [10:45:47]line [10:45:47]line [10:45:47]line [10:45:47]line [10:45:47]line [10:45:47]written 0, free lines is 3322 [10:45:47]MH_Cut [10:45:47]Write to MH i2c: D1 01 00 11 11 01 F4 [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: D1 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: D1 01 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: D1 01 00 11 11 00 F3 [10:45:47]Write to MH i2c: 01 00 00 12 11 23 [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:48]OFD Sender: No OFD packet to send [10:45:48]*** Cut start [10:45:48]*** Partial cut [10:45:48]*** CUTSNS_PIN = 1 [10:45:48]*** CUTSNS_PIN = 0 [10:45:48]*** Brake cut motor [10:45:49]Read from MH i2c: 01 [10:45:49]MH_I2C_Read... [10:45:49]*** Stop cut motor [10:45:49]*** Cut end [10:45:49]Read from MH i2c: 01 07 00 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: 01 07 00 12 11 00 00 00 00 00 FF 0F 38 [10:45:49]process_action close_receipt done [10:45:49]requested_data is exist [10:45:49]produce_requested_data [10:45:49]requested_item fm.sn is exist - process it [10:45:49]wFMCommunicate request_size=4 [10:45:49]MH_SAM_APDU [10:45:49]CAPDU: 80 11 00 00 [10:45:49]Write to MH i2c: E2 08 00 13 11 80 11 00 00 00 00 00 00 9E [10:45:49]Write i2c OK [10:45:49]MH_I2C_Read... [10:45:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:49]Read from MH i2c: E2 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 17 00 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 17 00 13 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F1 [10:45:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:45:49]wFMCommunicate OK [10:45:49]requested_item fd.num is exist - process it [10:45:49]SAM_PROTO_GetFieldsCounters [10:45:49]wFMCommunicate request_size=4 [10:45:49]MH_SAM_APDU [10:45:49]CAPDU: 80 13 00 00 [10:45:49]Write to MH i2c: E2 08 00 14 11 80 13 00 00 00 00 00 00 A1 [10:45:49]Write i2c OK [10:45:49]MH_I2C_Read... [10:45:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:49]Read from MH i2c: E2 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 62 00 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 62 00 14 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E4 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [10:45:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E4 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:49]wFMCommunicate OK [10:45:49]SAM_PROTO_GetFieldsCounters done [10:45:49]requested_item shift.num is exist - process it [10:45:49]requested_item shift.opened is exist - process it [10:45:49]req_shift_opened [10:45:49]FM_GetShiftState [10:45:49]SAM_PROTO_GetShiftState [10:45:49]wFMCommunicate request_size=4 [10:45:49]MH_SAM_APDU [10:45:49]CAPDU: 80 13 01 00 [10:45:49]Write to MH i2c: E2 08 00 15 11 80 13 01 00 00 00 00 00 A3 [10:45:49]Write i2c OK [10:45:49]MH_I2C_Read... [10:45:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:49]Read from MH i2c: E2 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 0E 00 [10:45:49]MH_I2C_Read... [10:45:49]Read from MH i2c: E2 0E 00 15 11 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 CA [10:45:49]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [10:45:49]wFMCommunicate OK [10:45:49]SAM_PROTO_GetShiftState done [10:45:49]FM_GetShiftState done [10:45:49]req_shift_opened done [10:45:49]requested_item shift.open_date is exist - process it [10:45:49]req_shift_open_date [10:45:49]req_shift_open_date done [10:45:49]produce_requested_data done [10:45:49]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77028,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [10:45:49]process_action_free close_receipt [10:45:49]json_value_free [10:45:49]json_value_free done [10:45:49]process_json_proto returns [10:45:49]Send response to host [10:45:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77028,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [10:45:49]free response buf [10:45:49]execute_script done [10:45:49]execute_script returns [10:45:49]free content buf [10:45:49]Sock 7.Close socket [10:45:49]Sock 7.Thread stoped [10:45:53]OFD Sender: No OFD packet to send [10:45:58]OFD Sender: No OFD packet to send [10:46:03]OFD Sender: No OFD packet to send [10:46:08]OFD Sender: No OFD packet to send [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:43]OFD Sender: No OFD packet to send [10:46:48]OFD Sender: No OFD packet to send [10:46:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:15]accept exits with 9 [10:48:15]New connection [10:48:15]New thread 3067030884 created [10:48:15]Thread 3067174244 joined [10:48:15]Waiting for new connection... [10:48:15] Sock 9.Parse request [10:48:15]Sock 9.Check first char [10:48:15]Sock 9.First char is OK [10:48:15]request: POST /json_proto HTTP/1.0 [10:48:15]Method: POST [10:48:15]URL: /json_proto [10:48:15]Method is POST - this is cgi request [10:48:15]url: /json_proto [10:48:15]query_string will be loaded in cgi processing [10:48:15]execute_cgi json_proto POST (null) [10:48:15]execute_cgi path=json_proto method=POST [10:48:15]POST find Content-Length [10:48:15]Host: 172.17.62.5:8080 [10:48:15]Content-Length: 1208 [10:48:15]Content-Type: application/json [10:48:15] [10:48:15]POST finish read [10:48:15]Found Content-Length = 1208 [10:48:15]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191607\u000A22.04.2024 10:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731355:358:238\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:15]execute_script... [10:48:15]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191607\u000A22.04.2024 10:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3731355:358:238\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:15]POST & json_proto [10:48:15]process_json_proto [10:48:15]json parsed OK: [10:48:15]protocol is kg_v1.0 [10:48:15]action value=print_text [10:48:15]process_action print_text [10:48:15]cmd_print_text [10:48:15]ExternCall_PrintAddStr [10:48:15]wPrintStart [10:48:15]Write to MH i2c: 01 00 00 16 11 27 [10:48:15]Write i2c OK [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: 01 [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: 01 07 00 [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: 01 07 00 16 11 00 00 00 00 00 FF 0F 3C [10:48:15]RasterBufferAndPrint [10:48:15]line *****ТОВАРНЫЙ ЧЕК***** [10:48:15]line АЗС 106 [10:48:15]line Партнер нефть [10:48:15]line 02508201610067 [10:48:15]line Кассир : Токторбаева Н. [10:48:15]line Счет N : (1)191607 [10:48:15]line 22.04.2024 10:29 [10:48:15]line ПРОДАЖА [10:48:15]line ТРК (МРК, ГНК): 23 [10:48:15]line Вид ГСМ : 2710194210 [10:48:15]line ДТ-К-5 [10:48:15]line 30.000 x 72.90 [10:48:15]line ИТОГ: 2187.00 [10:48:15]line Тип оплаты: Талоны: Партнер нефть [10:48:15]line 3731355:358:238 [10:48:15]line ______________________ [10:48:15]line (подпись) [10:48:15]written 0, free lines is 4095 [10:48:15]Write to MH i2c: 01 00 00 2B 11 3C [10:48:15]Write i2c OK [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: 01 [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: 01 07 00 [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: 01 07 00 2B 11 00 00 00 00 00 F9 0D 49 [10:48:15]RasterBufferAndPrint [10:48:15]line [10:48:15]line [10:48:15]line [10:48:15]line [10:48:15]line [10:48:15]written 0, free lines is 3579 [10:48:15]MH_Cut [10:48:15]Write to MH i2c: D1 01 00 32 11 01 15 [10:48:15]Write i2c OK [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: D1 [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: D1 01 00 [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: D1 01 00 32 11 00 14 [10:48:15]Write to MH i2c: 01 00 00 33 11 44 [10:48:15]Write i2c OK [10:48:15]MH_I2C_Read... [10:48:16]*** Cut start [10:48:16]*** Partial cut [10:48:16]*** CUTSNS_PIN = 1 [10:48:16]*** CUTSNS_PIN = 0 [10:48:16]*** Brake cut motor [10:48:17]Read from MH i2c: 01 [10:48:17]MH_I2C_Read... [10:48:17]*** Stop cut motor [10:48:17]*** Cut end [10:48:17]Read from MH i2c: 01 07 00 [10:48:17]MH_I2C_Read... [10:48:17]Read from MH i2c: 01 07 00 33 11 00 00 00 00 00 FF 0F 59 [10:48:17]process_action print_text done [10:48:17]requested_data is exist [10:48:17]produce_requested_data [10:48:17]requested_item fm.sn is exist - process it [10:48:17]wFMCommunicate request_size=4 [10:48:17]MH_SAM_APDU [10:48:17]CAPDU: 80 11 00 00 [10:48:17]Write to MH i2c: E2 08 00 34 11 80 11 00 00 00 00 00 00 BF [10:48:17]Write i2c OK [10:48:17]MH_I2C_Read... [10:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:17]Read from MH i2c: E2 [10:48:17]MH_I2C_Read... [10:48:17]Read from MH i2c: E2 17 00 [10:48:17]MH_I2C_Read... [10:48:17]Read from MH i2c: E2 17 00 34 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 12 [10:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:48:17]wFMCommunicate OK [10:48:17]requested_item fd.num is exist - process it [10:48:17]SAM_PROTO_GetFieldsCounters [10:48:17]wFMCommunicate request_size=4 [10:48:17]MH_SAM_APDU [10:48:17]CAPDU: 80 13 00 00 [10:48:17]Write to MH i2c: E2 08 00 35 11 80 13 00 00 00 00 00 00 C2 [10:48:17]Write i2c OK [10:48:17]MH_I2C_Read... [10:48:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:17]Read from MH i2c: E2 [10:48:17]MH_I2C_Read... [10:48:17]Read from MH i2c: E2 62 00 [10:48:17]MH_I2C_Read... [10:48:17]Read from MH i2c: E2 62 00 35 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E4 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [10:48:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E4 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:17]wFMCommunicate OK [10:48:17]SAM_PROTO_GetFieldsCounters done [10:48:17]requested_item shift.num is exist - process it [10:48:17]requested_item shift.opened is exist - process it [10:48:17]req_shift_opened [10:48:17]FM_GetShiftState [10:48:17]SAM_PROTO_GetShiftState [10:48:17]wFMCommunicate request_size=4 [10:48:17]MH_SAM_APDU [10:48:17]CAPDU: 80 13 01 00 [10:48:17]Write to MH i2c: E2 08 00 36 11 80 13 01 00 00 00 00 00 C4 [10:48:17]Write i2c OK [10:48:17]MH_I2C_Read... [10:48:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:17]Read from MH i2c: E2 [10:48:17]MH_I2C_Read... [10:48:17]Read from MH i2c: E2 0E 00 [10:48:17]MH_I2C_Read... [10:48:17]Read from MH i2c: E2 0E 00 36 11 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 EB [10:48:17]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [10:48:17]wFMCommunicate OK [10:48:17]SAM_PROTO_GetShiftState done [10:48:17]FM_GetShiftState done [10:48:17]req_shift_opened done [10:48:17]requested_item shift.open_date is exist - process it [10:48:17]req_shift_open_date [10:48:17]req_shift_open_date done [10:48:17]produce_requested_data done [10:48:17]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77028,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [10:48:17]process_action_free print_text [10:48:17]json_value_free [10:48:17]json_value_free done [10:48:17]process_json_proto returns [10:48:17]Send response to host [10:48:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77028,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [10:48:17]free response buf [10:48:17]execute_script done [10:48:17]execute_script returns [10:48:17]free content buf [10:48:17]Sock 9.Close socket [10:48:17]Sock 9.Thread stoped [10:48:18]OFD Sender: No OFD packet to send [10:48:23]OFD Sender: No OFD packet to send [10:48:28]OFD Sender: No OFD packet to send [10:48:33]OFD Sender: No OFD packet to send [10:48:38]OFD Sender: No OFD packet to send [10:48:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:31]accept exits with 7 [10:50:31]New connection [10:50:31]New thread 3067174244 created [10:50:31]Thread 3067030884 joined [10:50:31]Waiting for new connection... [10:50:31] Sock 7.Parse request [10:50:31]Sock 7.Check first char [10:50:31]Sock 7.First char is OK [10:50:31]request: POST /json_proto HTTP/1.0 [10:50:31]Method: POST [10:50:31]URL: /json_proto [10:50:31]Method is POST - this is cgi request [10:50:31]url: /json_proto [10:50:31]query_string will be loaded in cgi processing [10:50:31]execute_cgi json_proto POST (null) [10:50:31]execute_cgi path=json_proto method=POST [10:50:31]POST find Content-Length [10:50:31]Host: 172.17.62.5:8080 [10:50:31]Content-Length: 670 [10:50:31]Content-Type: application/json [10:50:31] [10:50:31]POST finish read [10:50:31]Found Content-Length = 670 [10:50:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 3.980, "sum" : 260.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:31]execute_script... [10:50: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)191609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 3.980, "sum" : 260.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:31]POST & json_proto [10:50:31]process_json_proto [10:50:31]json parsed OK: [10:50:31]protocol is kg_v1.0 [10:50:31]action value=close_receipt [10:50:31]process_action close_receipt [10:50:31]cmd_close_receipt [10:50:31]MH_GetDate [10:50:31]Write to MH i2c: F0 00 00 37 11 37 [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: F0 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: F0 09 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: F0 09 00 37 11 00 FA 40 26 66 F4 E9 65 64 AC [10:50:31]GetLastDocTimeStamp 1713782748 [10:50:31]current date 1713783034 [10:50:31]FM_GetShiftState [10:50:31]SAM_PROTO_GetShiftState [10:50:31]wFMCommunicate request_size=4 [10:50:31]MH_SAM_APDU [10:50:31]CAPDU: 80 13 01 00 [10:50:31]Write to MH i2c: E2 08 00 38 11 80 13 01 00 00 00 00 00 C6 [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 0E 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 0E 00 38 11 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 ED [10:50:31]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [10:50:31]wFMCommunicate OK [10:50:31]SAM_PROTO_GetShiftState done [10:50:31]FM_GetShiftState done [10:50:31]opened in 1713745124 [10:50:31]opened+sec_in_day 1713831524 [10:50:31]quantity*price = 26029 [10:50:31]sum+1 = 26030 [10:50:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 48 22.04.2024 10:50 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77029 ФПД: 185349406027420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T105034&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77029&fm=185349406027420&tin=02508201610067®Number=0000000000091573&sum=26000 [10:50:32]StoreToDocumentArchive [10:50:32]shift 373 fd 77029 [10:50:32]save to /storage/0373/doc_00077029 [10:50:32]save last doc name /storage/0373/doc_00077029 to /storage/kkm_last_doc_name [10:50:32]save OK [10:50:32]Clear old archive folders... [10:50:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:50:32]tlvbuf is 0175B3E0 [10:50:32]SAM_PROTO_ClearQueue [10:50:32]wFMCommunicate request_size=4 [10:50:32]MH_SAM_APDU [10:50:32]CAPDU: 80 09 00 00 [10:50:32]Write to MH i2c: E2 08 00 45 11 80 09 00 00 00 00 00 00 C8 [10:50:32]Write i2c OK [10:50:32]MH_I2C_Read... [10:50:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:32]Read from MH i2c: E2 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: E2 03 00 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: E2 03 00 45 11 00 90 00 CA [10:50:32]RAPDU: 90 00 [10:50:32]wFMCommunicate OK [10:50:32]SAM_PROTO_ClearQueue done [10:50:32]KKMCreateOFDPacket [10:50:32]OFDProtocolAddRootSTLVToBuf [10:50:32]FM_MakeSignedData [10:50:32]FM_MakeSignedData [10:50:32]SAM_PROTO_SignData [10:50:32]wFMCommunicate request_size=4 [10:50:32]MH_SAM_APDU [10:50:32]CAPDU: 80 0D 01 02 [10:50:32]Write to MH i2c: E2 08 00 46 11 80 0D 01 02 00 00 00 00 D0 [10:50:32]Write i2c OK [10:50:32]MH_I2C_Read... [10:50:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:32]Read from MH i2c: E2 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: E2 03 00 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: E2 03 00 46 11 00 90 00 CB [10:50:32]RAPDU: 90 00 [10:50:32]wFMCommunicate OK [10:50:32]wFMCommunicate request_size=255 [10:50:32]MH_SAM_APDU [10:50:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 AD 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 FA 40 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E5 2C 01 00 35 04 06 00 [10:50:32]Write to MH i2c: E2 02 01 47 11 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 AD 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 FA 40 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E5 2C 01 00 35 04 06 00 00 00 ED [10:50:32]Write i2c OK [10:50:32]MH_I2C_Read... [10:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:33]Read from MH i2c: E2 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 03 00 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 03 00 47 11 00 90 00 CC [10:50:33]RAPDU: 90 00 [10:50:33]wFMCommunicate OK [10:50:33]wFMCommunicate request_size=11 [10:50:33]MH_SAM_APDU [10:50:33]CAPDU: 80 0D 02 02 06 A8 93 05 81 6E 9C [10:50:33]Write to MH i2c: E2 0E 00 48 11 80 0D 02 02 06 00 A8 93 05 81 6E 9C 00 00 AA [10:50:33]Write i2c OK [10:50:33]MH_I2C_Read... [10:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:33]Read from MH i2c: E2 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 03 00 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 03 00 48 11 00 90 00 CD [10:50:33]RAPDU: 90 00 [10:50:33]wFMCommunicate OK [10:50:33]wFMCommunicate request_size=4 [10:50:33]MH_SAM_APDU [10:50:33]CAPDU: 80 0D 03 02 [10:50:33]Write to MH i2c: E2 08 00 49 11 80 0D 03 02 00 00 00 00 D5 [10:50:33]Write i2c OK [10:50:33]MH_I2C_Read... [10:50:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:33]Read from MH i2c: E2 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 0B 00 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 0B 00 49 11 00 5A 52 07 F9 8E 49 5A 49 90 00 FC [10:50:33]RAPDU: 5A 52 07 F9 8E 49 5A 49 90 00 [10:50:33]wFMCommunicate OK [10:50:33]SAM_PROTO_SignData done [10:50:33]FM_MakeSignedData done [10:50:33]CreateOFDProtocolMessage [10:50:33]wFMCommunicate request_size=4 [10:50:33]MH_SAM_APDU [10:50:33]CAPDU: 80 11 00 00 [10:50:33]Write to MH i2c: E2 08 00 4A 11 80 11 00 00 00 00 00 00 D5 [10:50:33]Write i2c OK [10:50:33]MH_I2C_Read... [10:50:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:33]Read from MH i2c: E2 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 17 00 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 17 00 4A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 28 [10:50:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:50:33]wFMCommunicate OK [10:50:33]CreateOFDProtocolMessage done [10:50:33]OFDSenderStorePacket 77029 [10:50:33]StoreOFDPacket docnum=77029 [10:50:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 6F 9B 08 01 F0 98 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 AD 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 FA 40 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E5 2C 01 00 35 04 06 00 A8 93 05 81 6E 9C 5A 52 07 F9 8E 49 5A 49 [10:50:33]CheckFolder [10:50:33]dirname=/storage/ofd_packets [10:50:33]CheckFolder done [10:50:33]ProducePacketName [10:50:33]name=ofd_packets/00077029 [10:50:33]NVStorageSaveData ofd_packets/00077029 [10:50:33]File name is /storage/ofd_packets/00077029 [10:50:33]Write 302 bytes [10:50:33]NVStorageSaveData done [10:50:33]OFDSenderStorePacket done [10:50:33]KKMCreateOFDPacket done [10:50:33]NVStorageSaveData kkm_last_timestamp [10:50:33]File name is /storage/kkm_last_timestamp [10:50:33]Write 4 bytes [10:50:33]NVStorageSaveData done [10:50:33]ExternCall_PrintAddStr [10:50:33]wPrintStart [10:50:33]Write to MH i2c: 01 00 00 4B 11 5C [10:50:33]Write i2c OK [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: 01 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: 01 07 00 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: 01 07 00 4B 11 00 00 00 00 00 FF 0F 71 [10:50:33]RasterBufferAndPrint [10:50:33]line Счет N : (1)191609 [10:50:33]line ИНН: 02508201610067 [10:50:33]line Контрольно-Кассовый Чек [10:50:33]line ПРОДАЖА [10:50:33]line ТРК (МРК, ГНК) : 41 [10:50:33]line Товар: 2710124130 [10:50:33]line SUPER 92-К-5 [10:50:33]line 3.980 * 65.40 [10:50:33]line = 260.29 [10:50:33]line НДС 12% НСП 1% [10:50:33]line > о реализуемом товаре [10:50:33]line ОКРУГЛЕНИЕ: -0.29 [10:50:33]line ИТОГО: 260.00 [10:50:33]line Внесено: 260.00 [10:50:33]line СДАЧА: 0.00 [10:50:33]line НСП 1% : 2.30 [10:50:33]line НДС 12% : 27.64 [10:50:33]line Наличными: 260.00 [10:50:33]line Безнал.: 0.00 [10:50:33]line Место: АЗС № 106 "Партнер Нефть" [10:50:33]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:50:33]line СНО: Общий режим [10:50:33]line Чек 48 22.04.2024 10:50 [10:50:33]line Смена: 373 ФФД: 1.0 [10:50:33]line ЗНМ: 0300000141 [10:50:33]line РНМ: 0000000000091573 [10:50:33]line Версия ККМ: 001 [10:50:33]line ФМ: 0000000000874652 [10:50:33]line ФД: 77029 [10:50:33]line ФПД: 185349406027420 [10:50:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T105034&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77029&fm=185349406027420&tin=02508201610067®Number=0000000000091573&sum=26000 [10:50:33]written 0, free lines is 4095 [10:50:33]OFD Sender: Processing packet 77029 [packets to send 129, broken 128] [10:50:33]ProducePacketName [10:50:33]name=ofd_packets/00077029 [10:50:33]OFD Sender: To server: pG, [10:50:33]CommunicateWithHost lk.salyk.kg:30040 [10:50:33]ConnectInit lk.salyk.kg [10:50:33]Connected sock=10 [10:50:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 6F 9B 08 01 F0 98 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 AD 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 FA 40 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E5 2C 01 00 35 04 06 00 A8 93 05 81 6E 9C 5A 52 07 F9 8E 49 5A 49 [10:50:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D9 BA 47 00 C5 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E5 2C 01 00 F4 03 04 00 7D E8 25 66 B6 04 01 00 00 01 83 28 CE 1A 75 C2 B4 [10:50:34]CommunicateWithHost err = 0 [10:50:34]CheckOFDResponse [10:50:34]1017 (14) - 77093643461234 [10:50:34]1041 (16) - 0000000000874652 [10:50:34]1040 (4) - 77029 [10:50:34]1012 (4) - 22.04.2024 04:33 [10:50:34]1206 (1) - 0 [10:50:34]OFD Sender: Remove packet 77029 [10:50:34]ProducePacketName [10:50:34]name=ofd_packets/00077029 [10:50:34]NVStorageDeleteData [10:50:34]Write to MH i2c: 01 00 00 75 11 86 [10:50:34]Write i2c OK [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: 01 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: 01 07 00 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: 01 07 00 75 11 00 00 00 00 00 06 0D A0 [10:50:34]RasterBufferAndPrint [10:50:34]line [10:50:34]line [10:50:34]line [10:50:34]line [10:50:34]line [10:50:34]written 0, free lines is 3340 [10:50:34]MH_Cut [10:50:34]Write to MH i2c: D1 01 00 7C 11 01 5F [10:50:34]Write i2c OK [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: D1 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: D1 01 00 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: D1 01 00 7C 11 00 5E [10:50:34]Write to MH i2c: 01 00 00 7D 11 8E [10:50:34]Write i2c OK [10:50:34]MH_I2C_Read... [10:50:34]OFD Sender: No OFD packet to send [10:50:34]*** Cut start [10:50:34]*** Partial cut [10:50:34]*** CUTSNS_PIN = 1 [10:50:34]*** CUTSNS_PIN = 0 [10:50:35]*** Brake cut motor [10:50:35]Read from MH i2c: 01 [10:50:35]MH_I2C_Read... [10:50:35]*** Stop cut motor [10:50:35]*** Cut end [10:50:35]Read from MH i2c: 01 07 00 [10:50:35]MH_I2C_Read... [10:50:35]Read from MH i2c: 01 07 00 7D 11 00 00 00 00 00 FF 0F A3 [10:50:35]process_action close_receipt done [10:50:35]requested_data is exist [10:50:35]produce_requested_data [10:50:35]requested_item fm.sn is exist - process it [10:50:35]wFMCommunicate request_size=4 [10:50:35]MH_SAM_APDU [10:50:35]CAPDU: 80 11 00 00 [10:50:35]Write to MH i2c: E2 08 00 7E 11 80 11 00 00 00 00 00 00 09 [10:50:35]Write i2c OK [10:50:35]MH_I2C_Read... [10:50:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:35]Read from MH i2c: E2 [10:50:35]MH_I2C_Read... [10:50:35]Read from MH i2c: E2 17 00 [10:50:35]MH_I2C_Read... [10:50:35]Read from MH i2c: E2 17 00 7E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5C [10:50:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:50:35]wFMCommunicate OK [10:50:35]requested_item fd.num is exist - process it [10:50:35]SAM_PROTO_GetFieldsCounters [10:50:35]wFMCommunicate request_size=4 [10:50:35]MH_SAM_APDU [10:50:35]CAPDU: 80 13 00 00 [10:50:35]Write to MH i2c: E2 08 00 7F 11 80 13 00 00 00 00 00 00 0C [10:50:35]Write i2c OK [10:50:35]MH_I2C_Read... [10:50:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:35]Read from MH i2c: E2 [10:50:35]MH_I2C_Read... [10:50:35]Read from MH i2c: E2 62 00 [10:50:35]MH_I2C_Read... [10:50:35]Read from MH i2c: E2 62 00 7F 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E5 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [10:50:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E5 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:35]wFMCommunicate OK [10:50:35]SAM_PROTO_GetFieldsCounters done [10:50:35]requested_item shift.num is exist - process it [10:50:35]requested_item shift.opened is exist - process it [10:50:35]req_shift_opened [10:50:35]FM_GetShiftState [10:50:35]SAM_PROTO_GetShiftState [10:50:35]wFMCommunicate request_size=4 [10:50:35]MH_SAM_APDU [10:50:35]CAPDU: 80 13 01 00 [10:50:35]Write to MH i2c: E2 08 00 80 11 80 13 01 00 00 00 00 00 0E [10:50:35]Write i2c OK [10:50:35]MH_I2C_Read... [10:50:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:35]Read from MH i2c: E2 [10:50:35]MH_I2C_Read... [10:50:35]Read from MH i2c: E2 0E 00 [10:50:35]MH_I2C_Read... [10:50:35]Read from MH i2c: E2 0E 00 80 11 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 35 [10:50:35]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [10:50:35]wFMCommunicate OK [10:50:35]SAM_PROTO_GetShiftState done [10:50:35]FM_GetShiftState done [10:50:35]req_shift_opened done [10:50:35]requested_item shift.open_date is exist - process it [10:50:35]req_shift_open_date [10:50:35]req_shift_open_date done [10:50:35]produce_requested_data done [10:50:35]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77029,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [10:50:35]process_action_free close_receipt [10:50:35]json_value_free [10:50:35]json_value_free done [10:50:35]process_json_proto returns [10:50:35]Send response to host [10:50:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77029,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [10:50:35]free response buf [10:50:35]execute_script done [10:50:35]execute_script returns [10:50:35]free content buf [10:50:35]Sock 7.Close socket [10:50:35]Sock 7.Thread stoped [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:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [10:52:49]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:24]OFD Sender: No OFD packet to send [10:53:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:43]accept exits with 9 [10:57:43]New connection [10:57:43]New thread 3067030884 created [10:57:43]Thread 3067174244 joined [10:57:43]Waiting for new connection... [10:57:43] Sock 9.Parse request [10:57:43]Sock 9.Check first char [10:57:43]Sock 9.First char is OK [10:57:43]request: POST /json_proto HTTP/1.0 [10:57:43]Method: POST [10:57:43]URL: /json_proto [10:57:43]Method is POST - this is cgi request [10:57:43]url: /json_proto [10:57:43]query_string will be loaded in cgi processing [10:57:43]execute_cgi json_proto POST (null) [10:57:43]execute_cgi path=json_proto method=POST [10:57:43]POST find Content-Length [10:57:43]Host: 172.17.62.5:8080 [10:57:43]Content-Length: 677 [10:57:43]Content-Type: application/json [10:57:43] [10:57:43]POST finish read [10:57:43]Found Content-Length = 677 [10:57:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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:57:43]execute_script... [10:57: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)191610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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:57:43]POST & json_proto [10:57:43]process_json_proto [10:57:43]json parsed OK: [10:57:43]protocol is kg_v1.0 [10:57:43]action value=close_receipt [10:57:43]process_action close_receipt [10:57:43]cmd_close_receipt [10:57:43]MH_GetDate [10:57:43]Write to MH i2c: F0 00 00 81 11 81 [10:57:43]Write i2c OK [10:57:43]MH_I2C_Read... [10:57:43]Read from MH i2c: F0 [10:57:43]MH_I2C_Read... [10:57:43]Read from MH i2c: F0 09 00 [10:57:43]MH_I2C_Read... [10:57:43]Read from MH i2c: F0 09 00 81 11 00 AA 42 26 66 F4 E9 65 64 A8 [10:57:43]GetLastDocTimeStamp 1713783034 [10:57:43]current date 1713783466 [10:57:43]FM_GetShiftState [10:57:43]SAM_PROTO_GetShiftState [10:57:43]wFMCommunicate request_size=4 [10:57:43]MH_SAM_APDU [10:57:43]CAPDU: 80 13 01 00 [10:57:43]Write to MH i2c: E2 08 00 82 11 80 13 01 00 00 00 00 00 10 [10:57:43]Write i2c OK [10:57:43]MH_I2C_Read... [10:57:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:43]Read from MH i2c: E2 [10:57:43]MH_I2C_Read... [10:57:43]Read from MH i2c: E2 0E 00 [10:57:43]MH_I2C_Read... [10:57:43]Read from MH i2c: E2 0E 00 82 11 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 37 [10:57:43]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [10:57:43]wFMCommunicate OK [10:57:43]SAM_PROTO_GetShiftState done [10:57:43]FM_GetShiftState done [10:57:43]opened in 1713745124 [10:57:43]opened+sec_in_day 1713831524 [10:57:43]quantity*price = 30010 [10:57:43]sum+1 = 30011 [10:57:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 49 22.04.2024 10:57 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77030 ФПД: 52215160535150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T105746&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77030&fm=52215160535150&tin=02508201610067®Number=0000000000091573&sum=30000 [10:57:44]StoreToDocumentArchive [10:57:44]shift 373 fd 77030 [10:57:44]save to /storage/0373/doc_00077030 [10:57:44]save last doc name /storage/0373/doc_00077030 to /storage/kkm_last_doc_name [10:57:44]save OK [10:57:44]Clear old archive folders... [10:57:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:57:44]tlvbuf is 01728A20 [10:57:44]SAM_PROTO_ClearQueue [10:57:44]wFMCommunicate request_size=4 [10:57:44]MH_SAM_APDU [10:57:44]CAPDU: 80 09 00 00 [10:57:44]Write to MH i2c: E2 08 00 8F 11 80 09 00 00 00 00 00 00 12 [10:57:44]Write i2c OK [10:57:44]MH_I2C_Read... [10:57:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:44]Read from MH i2c: E2 [10:57:44]MH_I2C_Read... [10:57:44]Read from MH i2c: E2 03 00 [10:57:44]MH_I2C_Read... [10:57:44]Read from MH i2c: E2 03 00 8F 11 00 90 00 14 [10:57:44]RAPDU: 90 00 [10:57:44]wFMCommunicate OK [10:57:44]SAM_PROTO_ClearQueue done [10:57:44]KKMCreateOFDPacket [10:57:44]OFDProtocolAddRootSTLVToBuf [10:57:44]FM_MakeSignedData [10:57:44]FM_MakeSignedData [10:57:44]SAM_PROTO_SignData [10:57:44]wFMCommunicate request_size=4 [10:57:44]MH_SAM_APDU [10:57:44]CAPDU: 80 0D 01 02 [10:57:44]Write to MH i2c: E2 08 00 90 11 80 0D 01 02 00 00 00 00 1A [10:57:44]Write i2c OK [10:57:44]MH_I2C_Read... [10:57:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:44]Read from MH i2c: E2 [10:57:44]MH_I2C_Read... [10:57:44]Read from MH i2c: E2 03 00 [10:57:44]MH_I2C_Read... [10:57:44]Read from MH i2c: E2 03 00 90 11 00 90 00 15 [10:57:44]RAPDU: 90 00 [10:57:44]wFMCommunicate OK [10:57:44]wFMCommunicate request_size=255 [10:57:44]MH_SAM_APDU [10:57: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 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 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 73 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 31 00 00 00 F4 03 04 00 AA 42 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E6 2C 01 00 35 04 06 00 2F [10:57:44]Write to MH i2c: E2 02 01 91 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 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 73 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 31 00 00 00 F4 03 04 00 AA 42 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E6 2C 01 00 35 04 06 00 2F 00 00 8F [10:57:44]Write i2c OK [10:57:44]MH_I2C_Read... [10:57:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:45]Read from MH i2c: E2 [10:57:45]MH_I2C_Read... [10:57:45]Read from MH i2c: E2 03 00 [10:57:45]MH_I2C_Read... [10:57:45]Read from MH i2c: E2 03 00 91 11 00 90 00 16 [10:57:45]RAPDU: 90 00 [10:57:45]wFMCommunicate OK [10:57:45]wFMCommunicate request_size=10 [10:57:45]MH_SAM_APDU [10:57:45]CAPDU: 80 0D 02 02 05 7D 4A 18 78 6E [10:57:45]Write to MH i2c: E2 0D 00 92 11 80 0D 02 02 05 00 7D 4A 18 78 6E 00 00 EC [10:57:45]Write i2c OK [10:57:45]MH_I2C_Read... [10:57:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:45]Read from MH i2c: E2 [10:57:45]MH_I2C_Read... [10:57:45]Read from MH i2c: E2 03 00 [10:57:45]MH_I2C_Read... [10:57:45]Read from MH i2c: E2 03 00 92 11 00 90 00 17 [10:57:45]RAPDU: 90 00 [10:57:45]wFMCommunicate OK [10:57:45]wFMCommunicate request_size=4 [10:57:45]MH_SAM_APDU [10:57:45]CAPDU: 80 0D 03 02 [10:57:45]Write to MH i2c: E2 08 00 93 11 80 0D 03 02 00 00 00 00 1F [10:57:45]OFD Sender: No OFD packet to send [10:57:45]Write i2c OK [10:57:45]MH_I2C_Read... [10:57:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:45]Read from MH i2c: E2 [10:57:45]MH_I2C_Read... [10:57:45]Read from MH i2c: E2 0B 00 [10:57:45]MH_I2C_Read... [10:57:45]Read from MH i2c: E2 0B 00 93 11 00 A0 77 24 CB 43 CC 0A 79 90 00 B8 [10:57:45]RAPDU: A0 77 24 CB 43 CC 0A 79 90 00 [10:57:45]wFMCommunicate OK [10:57:45]SAM_PROTO_SignData done [10:57:45]FM_MakeSignedData done [10:57:45]CreateOFDProtocolMessage [10:57:45]wFMCommunicate request_size=4 [10:57:45]MH_SAM_APDU [10:57:45]CAPDU: 80 11 00 00 [10:57:45]Write to MH i2c: E2 08 00 94 11 80 11 00 00 00 00 00 00 1F [10:57:45]Write i2c OK [10:57:45]MH_I2C_Read... [10:57:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:45]Read from MH i2c: E2 [10:57:45]MH_I2C_Read... [10:57:45]Read from MH i2c: E2 17 00 [10:57:45]MH_I2C_Read... [10:57:45]Read from MH i2c: E2 17 00 94 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 72 [10:57:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:57:45]wFMCommunicate OK [10:57:45]CreateOFDProtocolMessage done [10:57:45]OFDSenderStorePacket 77030 [10:57:45]StoreOFDPacket docnum=77030 [10:57:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 9A 96 07 01 DF 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 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 73 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 31 00 00 00 F4 03 04 00 AA 42 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E6 2C 01 00 35 04 06 00 2F 7D 4A 18 78 6E A0 77 24 CB 43 CC 0A 79 [10:57:45]CheckFolder [10:57:45]dirname=/storage/ofd_packets [10:57:45]CheckFolder done [10:57:45]ProducePacketName [10:57:45]name=ofd_packets/00077030 [10:57:45]NVStorageSaveData ofd_packets/00077030 [10:57:45]File name is /storage/ofd_packets/00077030 [10:57:45]Write 301 bytes [10:57:45]NVStorageSaveData done [10:57:45]OFDSenderStorePacket done [10:57:45]KKMCreateOFDPacket done [10:57:45]NVStorageSaveData kkm_last_timestamp [10:57:45]File name is /storage/kkm_last_timestamp [10:57:45]Write 4 bytes [10:57:45]NVStorageSaveData done [10:57:45]OFD Sender: Processing packet 77030 [packets to send 129, broken 128] [10:57:45]ProducePacketName [10:57:45]name=ofd_packets/00077030 [10:57:45]OFD Sender: To server: pG, [10:57:45]CommunicateWithHost lk.salyk.kg:30040 [10:57:45]ConnectInit lk.salyk.kg [10:57:45]ExternCall_PrintAddStr [10:57:45]wPrintStart [10:57:45]Write to MH i2c: 01 00 00 95 11 A6 [10:57:45]Write i2c OK [10:57:45]MH_I2C_Read... [10:57:45]Read from MH i2c: 01 [10:57:45]MH_I2C_Read... [10:57:45]Read from MH i2c: 01 07 00 [10:57:45]MH_I2C_Read... [10:57:45]Read from MH i2c: 01 07 00 95 11 00 00 00 00 00 FF 0F BB [10:57:45]RasterBufferAndPrint [10:57:45]line Счет N : (1)191610 [10:57:45]line ИНН: 02508201610067 [10:57:45]line Контрольно-Кассовый Чек [10:57:45]line ПРОДАЖА [10:57:45]line ТРК (МРК, ГНК) : 43 [10:57:45]line Товар: 2710124130 [10:57:45]line Аи-92-К-5 [10:57:45]line 4.660 * 64.40 [10:57:45]line = 300.10 [10:57:45]line НДС 12% НСП 1% [10:57:45]line > о реализуемом товаре [10:57:45]line ОКРУГЛЕНИЕ: -0.10 [10:57:45]line ИТОГО: 300.00 [10:57:45]line Внесено: 300.00 [10:57:45]line СДАЧА: 0.00 [10:57:45]line НСП 1% : 2.66 [10:57:45]line НДС 12% : 31.87 [10:57:45]line Наличными: 300.00 [10:57:45]line Безнал.: 0.00 [10:57:45]line Место: АЗС № 106 "Партнер Нефть" [10:57:45]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [10:57:45]line СНО: Общий режим [10:57:45]line Чек 49 22.04.2024 10:57 [10:57:45]line Смена: 373 ФФД: 1.0 [10:57:45]line ЗНМ: 0300000141 [10:57:45]line РНМ: 0000000000091573 [10:57:45]line Версия ККМ: 001 [10:57:45]line ФМ: 0000000000874652 [10:57:45]line ФД: 77030 [10:57:45]line ФПД: 52215160535150 [10:57:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T105746&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77030&fm=52215160535150&tin=02508201610067®Number=0000000000091573&sum=30000 [10:57:45]Connected sock=11 [10:57:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 9A 96 07 01 DF 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 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 73 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 31 00 00 00 F4 03 04 00 AA 42 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E6 2C 01 00 35 04 06 00 2F 7D 4A 18 78 6E A0 77 24 CB 43 CC 0A 79 [10:57:45]written 0, free lines is 4095 [10:57:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 65 9F 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 30 38 37 34 36 35 32 10 04 04 00 E6 2C 01 00 F4 03 04 00 2D EA 25 66 B6 04 01 00 00 DE C8 BF 6B 89 6B 31 1E [10:57:45]CommunicateWithHost err = 0 [10:57:45]CheckOFDResponse [10:57:45]1017 (14) - 77093643461234 [10:57:45]1041 (16) - 0000000000874652 [10:57:45]1040 (4) - 77030 [10:57:45]1012 (4) - 22.04.2024 04:40 [10:57:45]1206 (1) - 0 [10:57:45]OFD Sender: Remove packet 77030 [10:57:45]ProducePacketName [10:57:45]name=ofd_packets/00077030 [10:57:45]NVStorageDeleteData [10:57:46]Write to MH i2c: 01 00 00 BF 11 D0 [10:57:46]Write i2c OK [10:57:46]MH_I2C_Read... [10:57:46]Read from MH i2c: 01 [10:57:46]MH_I2C_Read... [10:57:46]Read from MH i2c: 01 07 00 [10:57:46]MH_I2C_Read... [10:57:46]Read from MH i2c: 01 07 00 BF 11 00 00 00 00 00 F2 0C D5 [10:57:46]RasterBufferAndPrint [10:57:46]line [10:57:46]line [10:57:46]line [10:57:46]line [10:57:46]line [10:57:46]written 0, free lines is 3322 [10:57:46]MH_Cut [10:57:46]Write to MH i2c: D1 01 00 C6 11 01 A9 [10:57:46]Write i2c OK [10:57:46]MH_I2C_Read... [10:57:46]Read from MH i2c: D1 [10:57:46]MH_I2C_Read... [10:57:46]Read from MH i2c: D1 01 00 [10:57:46]MH_I2C_Read... [10:57:46]Read from MH i2c: D1 01 00 C6 11 00 A8 [10:57:46]Write to MH i2c: 01 00 00 C7 11 D8 [10:57:46]Write i2c OK [10:57:46]MH_I2C_Read... [10:57:46]OFD Sender: No OFD packet to send [10:57:46]*** Cut start [10:57:46]*** Partial cut [10:57:46]*** CUTSNS_PIN = 1 [10:57:46]*** CUTSNS_PIN = 0 [10:57:47]*** Brake cut motor [10:57:47]Read from MH i2c: 01 [10:57:47]MH_I2C_Read... [10:57:47]*** Stop cut motor [10:57:47]*** Cut end [10:57:47]Read from MH i2c: 01 07 00 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: 01 07 00 C7 11 00 00 00 00 00 FF 0F ED [10:57:47]process_action close_receipt done [10:57:47]requested_data is exist [10:57:47]produce_requested_data [10:57:47]requested_item fm.sn is exist - process it [10:57:47]wFMCommunicate request_size=4 [10:57:47]MH_SAM_APDU [10:57:47]CAPDU: 80 11 00 00 [10:57:47]Write to MH i2c: E2 08 00 C8 11 80 11 00 00 00 00 00 00 53 [10:57:47]Write i2c OK [10:57:47]MH_I2C_Read... [10:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:47]Read from MH i2c: E2 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: E2 17 00 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: E2 17 00 C8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A6 [10:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [10:57:47]wFMCommunicate OK [10:57:47]requested_item fd.num is exist - process it [10:57:47]SAM_PROTO_GetFieldsCounters [10:57:47]wFMCommunicate request_size=4 [10:57:47]MH_SAM_APDU [10:57:47]CAPDU: 80 13 00 00 [10:57:47]Write to MH i2c: E2 08 00 C9 11 80 13 00 00 00 00 00 00 56 [10:57:47]Write i2c OK [10:57:47]MH_I2C_Read... [10:57:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:47]Read from MH i2c: E2 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: E2 62 00 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: E2 62 00 C9 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E6 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [10:57:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E6 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:47]wFMCommunicate OK [10:57:47]SAM_PROTO_GetFieldsCounters done [10:57:47]requested_item shift.num is exist - process it [10:57:47]requested_item shift.opened is exist - process it [10:57:47]req_shift_opened [10:57:47]FM_GetShiftState [10:57:47]SAM_PROTO_GetShiftState [10:57:47]wFMCommunicate request_size=4 [10:57:47]MH_SAM_APDU [10:57:47]CAPDU: 80 13 01 00 [10:57:47]Write to MH i2c: E2 08 00 CA 11 80 13 01 00 00 00 00 00 58 [10:57:47]Write i2c OK [10:57:47]MH_I2C_Read... [10:57:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:47]Read from MH i2c: E2 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: E2 0E 00 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: E2 0E 00 CA 11 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 7F [10:57:47]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [10:57:47]wFMCommunicate OK [10:57:47]SAM_PROTO_GetShiftState done [10:57:47]FM_GetShiftState done [10:57:47]req_shift_opened done [10:57:47]requested_item shift.open_date is exist - process it [10:57:47]req_shift_open_date [10:57:47]req_shift_open_date done [10:57:47]produce_requested_data done [10:57:47]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77030,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [10:57:47]process_action_free close_receipt [10:57:47]json_value_free [10:57:47]json_value_free done [10:57:47]process_json_proto returns [10:57:47]Send response to host [10:57:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77030,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [10:57:47]free response buf [10:57:47]execute_script done [10:57:47]execute_script returns [10:57:47]free content buf [10:57:47]Sock 9.Close socket [10:57:47]Sock 9.Thread stoped [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:24]accept exits with 7 [11:02:24]New connection [11:02:24]New thread 3067174244 created [11:02:24]Thread 3067030884 joined [11:02:24]Waiting for new connection... [11:02:24] Sock 7.Parse request [11:02:24]Sock 7.Check first char [11:02:24]Sock 7.First char is OK [11:02:24]request: POST /json_proto HTTP/1.0 [11:02:24]Method: POST [11:02:24]URL: /json_proto [11:02:24]Method is POST - this is cgi request [11:02:24]url: /json_proto [11:02:24]query_string will be loaded in cgi processing [11:02:24]execute_cgi json_proto POST (null) [11:02:24]execute_cgi path=json_proto method=POST [11:02:24]POST find Content-Length [11:02:24]Host: 172.17.62.5:8080 [11:02:24]Content-Length: 682 [11:02:24]Content-Type: application/json [11:02:24] [11:02:24]POST finish read [11:02:24]Found Content-Length = 682 [11:02:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:24]execute_script... [11:02: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)191611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:24]POST & json_proto [11:02:24]process_json_proto [11:02:24]json parsed OK: [11:02:24]protocol is kg_v1.0 [11:02:24]action value=close_receipt [11:02:24]process_action close_receipt [11:02:24]cmd_close_receipt [11:02:24]MH_GetDate [11:02:24]Write to MH i2c: F0 00 00 CB 11 CB [11:02:24]Write i2c OK [11:02:24]MH_I2C_Read... [11:02:24]Read from MH i2c: F0 [11:02:24]MH_I2C_Read... [11:02:24]Read from MH i2c: F0 09 00 [11:02:24]MH_I2C_Read... [11:02:24]Read from MH i2c: F0 09 00 CB 11 00 C3 43 26 66 F4 E9 65 64 0C [11:02:24]GetLastDocTimeStamp 1713783466 [11:02:24]current date 1713783747 [11:02:24]FM_GetShiftState [11:02:24]SAM_PROTO_GetShiftState [11:02:24]wFMCommunicate request_size=4 [11:02:24]MH_SAM_APDU [11:02:24]CAPDU: 80 13 01 00 [11:02:24]Write to MH i2c: E2 08 00 CC 11 80 13 01 00 00 00 00 00 5A [11:02:24]Write i2c OK [11:02:24]MH_I2C_Read... [11:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:24]Read from MH i2c: E2 [11:02:24]MH_I2C_Read... [11:02:24]Read from MH i2c: E2 0E 00 [11:02:24]MH_I2C_Read... [11:02:24]Read from MH i2c: E2 0E 00 CC 11 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 81 [11:02:24]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:02:24]wFMCommunicate OK [11:02:24]SAM_PROTO_GetShiftState done [11:02:24]FM_GetShiftState done [11:02:24]opened in 1713745124 [11:02:24]opened+sec_in_day 1713831524 [11:02:24]quantity*price = 100018 [11:02:24]sum+1 = 100020 [11:02:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 50 22.04.2024 11:02 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77031 ФПД: 85191827724423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T110227&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77031&fm=85191827724423&tin=02508201610067®Number=0000000000091573&sum=100000 [11:02:25]StoreToDocumentArchive [11:02:25]shift 373 fd 77031 [11:02:25]save to /storage/0373/doc_00077031 [11:02:25]save last doc name /storage/0373/doc_00077031 to /storage/kkm_last_doc_name [11:02:25]save OK [11:02:25]Clear old archive folders... [11:02:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:25]tlvbuf is 016FD110 [11:02:25]SAM_PROTO_ClearQueue [11:02:25]wFMCommunicate request_size=4 [11:02:25]MH_SAM_APDU [11:02:25]CAPDU: 80 09 00 00 [11:02:25]Write to MH i2c: E2 08 00 D9 11 80 09 00 00 00 00 00 00 5C [11:02:25]Write i2c OK [11:02:25]MH_I2C_Read... [11:02:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:25]Read from MH i2c: E2 [11:02:25]MH_I2C_Read... [11:02:25]Read from MH i2c: E2 03 00 [11:02:25]MH_I2C_Read... [11:02:25]Read from MH i2c: E2 03 00 D9 11 00 90 00 5E [11:02:25]RAPDU: 90 00 [11:02:25]wFMCommunicate OK [11:02:25]SAM_PROTO_ClearQueue done [11:02:25]KKMCreateOFDPacket [11:02:25]OFDProtocolAddRootSTLVToBuf [11:02:25]FM_MakeSignedData [11:02:25]FM_MakeSignedData [11:02:25]SAM_PROTO_SignData [11:02:25]wFMCommunicate request_size=4 [11:02:25]MH_SAM_APDU [11:02:25]CAPDU: 80 0D 01 02 [11:02:25]Write to MH i2c: E2 08 00 DA 11 80 0D 01 02 00 00 00 00 64 [11:02:25]Write i2c OK [11:02:25]MH_I2C_Read... [11:02:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:25]Read from MH i2c: E2 [11:02:25]MH_I2C_Read... [11:02:25]Read from MH i2c: E2 03 00 [11:02:25]MH_I2C_Read... [11:02:25]Read from MH i2c: E2 03 00 DA 11 00 90 00 5F [11:02:25]RAPDU: 90 00 [11:02:25]wFMCommunicate OK [11:02:25]wFMCommunicate request_size=255 [11:02:25]MH_SAM_APDU [11:02: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 32 00 00 00 F4 03 04 00 C3 43 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E7 2C 01 00 35 04 06 00 4D [11:02:25]Write to MH i2c: E2 02 01 DB 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 32 00 00 00 F4 03 04 00 C3 43 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E7 2C 01 00 35 04 06 00 4D 00 00 16 [11:02:26]Write i2c OK [11:02:26]MH_I2C_Read... [11:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:26]Read from MH i2c: E2 [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: E2 03 00 [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: E2 03 00 DB 11 00 90 00 60 [11:02:26]RAPDU: 90 00 [11:02:26]wFMCommunicate OK [11:02:26]wFMCommunicate request_size=10 [11:02:26]MH_SAM_APDU [11:02:26]CAPDU: 80 0D 02 02 05 7B 44 A1 18 87 [11:02:26]Write to MH i2c: E2 0D 00 DC 11 80 0D 02 02 05 00 7B 44 A1 18 87 00 00 70 [11:02:26]Write i2c OK [11:02:26]MH_I2C_Read... [11:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:26]Read from MH i2c: E2 [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: E2 03 00 [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: E2 03 00 DC 11 00 90 00 61 [11:02:26]RAPDU: 90 00 [11:02:26]wFMCommunicate OK [11:02:26]wFMCommunicate request_size=4 [11:02:26]MH_SAM_APDU [11:02:26]CAPDU: 80 0D 03 02 [11:02:26]Write to MH i2c: E2 08 00 DD 11 80 0D 03 02 00 00 00 00 69 [11:02:26]Write i2c OK [11:02:26]MH_I2C_Read... [11:02:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:26]Read from MH i2c: E2 [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: E2 0B 00 [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: E2 0B 00 DD 11 00 72 BD 08 E3 D3 A3 6D E0 90 00 47 [11:02:26]RAPDU: 72 BD 08 E3 D3 A3 6D E0 90 00 [11:02:26]wFMCommunicate OK [11:02:26]SAM_PROTO_SignData done [11:02:26]FM_MakeSignedData done [11:02:26]CreateOFDProtocolMessage [11:02:26]wFMCommunicate request_size=4 [11:02:26]MH_SAM_APDU [11:02:26]CAPDU: 80 11 00 00 [11:02:26]Write to MH i2c: E2 08 00 DE 11 80 11 00 00 00 00 00 00 69 [11:02:26]Write i2c OK [11:02:26]MH_I2C_Read... [11:02:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:26]Read from MH i2c: E2 [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: E2 17 00 [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: E2 17 00 DE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BC [11:02:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:02:26]wFMCommunicate OK [11:02:26]CreateOFDProtocolMessage done [11:02:26]OFDSenderStorePacket 77031 [11:02:26]StoreOFDPacket docnum=77031 [11:02:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 40 6B 07 01 2A 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 32 00 00 00 F4 03 04 00 C3 43 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E7 2C 01 00 35 04 06 00 4D 7B 44 A1 18 87 72 BD 08 E3 D3 A3 6D E0 [11:02:26]CheckFolder [11:02:26]dirname=/storage/ofd_packets [11:02:26]CheckFolder done [11:02:26]ProducePacketName [11:02:26]name=ofd_packets/00077031 [11:02:26]NVStorageSaveData ofd_packets/00077031 [11:02:26]File name is /storage/ofd_packets/00077031 [11:02:26]Write 301 bytes [11:02:26]NVStorageSaveData done [11:02:26]OFDSenderStorePacket done [11:02:26]KKMCreateOFDPacket done [11:02:26]NVStorageSaveData kkm_last_timestamp [11:02:26]File name is /storage/kkm_last_timestamp [11:02:26]Write 4 bytes [11:02:26]NVStorageSaveData done [11:02:26]ExternCall_PrintAddStr [11:02:26]wPrintStart [11:02:26]Write to MH i2c: 01 00 00 DF 11 F0 [11:02:26]Write i2c OK [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: 01 [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: 01 07 00 [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: 01 07 00 DF 11 00 00 00 00 00 FF 0F 05 [11:02:26]RasterBufferAndPrint [11:02:26]line Счет N : (1)191611 [11:02:26]line ИНН: 02508201610067 [11:02:26]line Контрольно-Кассовый Чек [11:02:26]line ПРОДАЖА [11:02:26]line ТРК (МРК, ГНК) : 21 [11:02:26]line Товар: 2710124500 [11:02:26]line Аи-95-К-5 [11:02:26]line 13.720 * 72.90 [11:02:26]line = 1000.19 [11:02:26]line НДС 12% НСП 1% [11:02:26]line > о реализуемом товаре [11:02:26]line ОКРУГЛЕНИЕ: -0.19 [11:02:26]line ИТОГО: 1000.00 [11:02:26]line Внесено: 1000.00 [11:02:26]line СДАЧА: 0.00 [11:02:26]line НСП 1% : 8.85 [11:02:26]line НДС 12% : 106.21 [11:02:26]line Наличными: 1000.00 [11:02:26]line Безнал.: 0.00 [11:02:26]line Место: АЗС № 106 "Партнер Нефть" [11:02:26]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:02:26]line СНО: Общий режим [11:02:26]line Чек 50 22.04.2024 11:02 [11:02:26]line Смена: 373 ФФД: 1.0 [11:02:26]line ЗНМ: 0300000141 [11:02:26]line РНМ: 0000000000091573 [11:02:26]line Версия ККМ: 001 [11:02:26]line ФМ: 0000000000874652 [11:02:26]line ФД: 77031 [11:02:26]line ФПД: 85191827724423 [11:02:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T110227&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77031&fm=85191827724423&tin=02508201610067®Number=0000000000091573&sum=100000 [11:02:26]written 0, free lines is 4095 [11:02:26]OFD Sender: Processing packet 77031 [packets to send 129, broken 128] [11:02:26]ProducePacketName [11:02:26]name=ofd_packets/00077031 [11:02:26]OFD Sender: To server: pG, [11:02:26]CommunicateWithHost lk.salyk.kg:30040 [11:02:26]ConnectInit lk.salyk.kg [11:02:26]Connected sock=10 [11:02:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 40 6B 07 01 2A 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 32 00 00 00 F4 03 04 00 C3 43 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E7 2C 01 00 35 04 06 00 4D 7B 44 A1 18 87 72 BD 08 E3 D3 A3 6D E0 [11:02:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 FC E7 47 00 5F 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E7 2C 01 00 F4 03 04 00 46 EB 25 66 B6 04 01 00 00 E6 23 92 B8 3F 6E FD EA [11:02:27]CommunicateWithHost err = 0 [11:02:27]CheckOFDResponse [11:02:27]1017 (14) - 77093643461234 [11:02:27]1041 (16) - 0000000000874652 [11:02:27]1040 (4) - 77031 [11:02:27]1012 (4) - 22.04.2024 04:44 [11:02:27]1206 (1) - 0 [11:02:27]OFD Sender: Remove packet 77031 [11:02:27]ProducePacketName [11:02:27]name=ofd_packets/00077031 [11:02:27]NVStorageDeleteData [11:02:27]Write to MH i2c: 01 00 00 09 12 1B [11:02:27]Write i2c OK [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: 01 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: 01 07 00 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: 01 07 00 09 12 00 00 00 00 00 ED 0C 1B [11:02:27]RasterBufferAndPrint [11:02:27]line [11:02:27]line [11:02:27]line [11:02:27]line [11:02:27]line [11:02:27]written 0, free lines is 3317 [11:02:27]MH_Cut [11:02:27]Write to MH i2c: D1 01 00 10 12 01 F4 [11:02:27]Write i2c OK [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: D1 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: D1 01 00 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: D1 01 00 10 12 00 F3 [11:02:27]Write to MH i2c: 01 00 00 11 12 23 [11:02:27]Write i2c OK [11:02:27]MH_I2C_Read... [11:02:27]OFD Sender: No OFD packet to send [11:02:27]*** Cut start [11:02:27]*** Partial cut [11:02:27]*** CUTSNS_PIN = 1 [11:02:27]*** CUTSNS_PIN = 0 [11:02:28]*** Brake cut motor [11:02:28]Read from MH i2c: 01 [11:02:28]MH_I2C_Read... [11:02:28]*** Stop cut motor [11:02:28]*** Cut end [11:02:28]Read from MH i2c: 01 07 00 [11:02:28]MH_I2C_Read... [11:02:28]Read from MH i2c: 01 07 00 11 12 00 00 00 00 00 FF 0F 38 [11:02:28]process_action close_receipt done [11:02:28]requested_data is exist [11:02:28]produce_requested_data [11:02:28]requested_item fm.sn is exist - process it [11:02:28]wFMCommunicate request_size=4 [11:02:28]MH_SAM_APDU [11:02:28]CAPDU: 80 11 00 00 [11:02:28]Write to MH i2c: E2 08 00 12 12 80 11 00 00 00 00 00 00 9E [11:02:28]Write i2c OK [11:02:28]MH_I2C_Read... [11:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:28]Read from MH i2c: E2 [11:02:28]MH_I2C_Read... [11:02:28]Read from MH i2c: E2 17 00 [11:02:28]MH_I2C_Read... [11:02:28]Read from MH i2c: E2 17 00 12 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F1 [11:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:02:28]wFMCommunicate OK [11:02:28]requested_item fd.num is exist - process it [11:02:28]SAM_PROTO_GetFieldsCounters [11:02:28]wFMCommunicate request_size=4 [11:02:28]MH_SAM_APDU [11:02:28]CAPDU: 80 13 00 00 [11:02:28]Write to MH i2c: E2 08 00 13 12 80 13 00 00 00 00 00 00 A1 [11:02:28]Write i2c OK [11:02:28]MH_I2C_Read... [11:02:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:28]Read from MH i2c: E2 [11:02:28]MH_I2C_Read... [11:02:28]Read from MH i2c: E2 62 00 [11:02:28]MH_I2C_Read... [11:02:28]Read from MH i2c: E2 62 00 13 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E7 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [11:02:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E7 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:28]wFMCommunicate OK [11:02:28]SAM_PROTO_GetFieldsCounters done [11:02:28]requested_item shift.num is exist - process it [11:02:28]requested_item shift.opened is exist - process it [11:02:28]req_shift_opened [11:02:28]FM_GetShiftState [11:02:28]SAM_PROTO_GetShiftState [11:02:28]wFMCommunicate request_size=4 [11:02:28]MH_SAM_APDU [11:02:28]CAPDU: 80 13 01 00 [11:02:28]Write to MH i2c: E2 08 00 14 12 80 13 01 00 00 00 00 00 A3 [11:02:28]Write i2c OK [11:02:28]MH_I2C_Read... [11:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:28]Read from MH i2c: E2 [11:02:28]MH_I2C_Read... [11:02:28]Read from MH i2c: E2 0E 00 [11:02:28]MH_I2C_Read... [11:02:28]Read from MH i2c: E2 0E 00 14 12 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 CA [11:02:28]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:02:28]wFMCommunicate OK [11:02:28]SAM_PROTO_GetShiftState done [11:02:28]FM_GetShiftState done [11:02:28]req_shift_opened done [11:02:28]requested_item shift.open_date is exist - process it [11:02:28]req_shift_open_date [11:02:28]req_shift_open_date done [11:02:28]produce_requested_data done [11:02:28]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77031,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [11:02:28]process_action_free close_receipt [11:02:28]json_value_free [11:02:28]json_value_free done [11:02:28]process_json_proto returns [11:02:28]Send response to host [11:02:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77031,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [11:02:28]free response buf [11:02:28]execute_script done [11:02:28]execute_script returns [11:02:28]free content buf [11:02:28]Sock 7.Close socket [11:02:28]Sock 7.Thread stoped [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:34]accept exits with 9 [11:05:34]New connection [11:05:34]New thread 3067030884 created [11:05:34]Thread 3067174244 joined [11:05:34]Waiting for new connection... [11:05:34] Sock 9.Parse request [11:05:34]Sock 9.Check first char [11:05:34]Sock 9.First char is OK [11:05:34]request: POST /json_proto HTTP/1.0 [11:05:34]Method: POST [11:05:34]URL: /json_proto [11:05:34]Method is POST - this is cgi request [11:05:34]url: /json_proto [11:05:34]query_string will be loaded in cgi processing [11:05:34]execute_cgi json_proto POST (null) [11:05:34]execute_cgi path=json_proto method=POST [11:05:34]POST find Content-Length [11:05:34]Host: 172.17.62.5:8080 [11:05:34]Content-Length: 978 [11:05:34]Content-Type: application/json [11:05:34] [11:05:34]POST finish read [11:05:34]Found Content-Length = 978 [11:05:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 55.710, "sum" : 4005.55, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 55.71 \u0441\u043E\u043C", "deposit" : 4005.00, "total" : 4005.00, "payments": [ { "type": 0, "sum" : 4005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:34]execute_script... [11:05: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)191612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 55.710, "sum" : 4005.55, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 55.71 \u0441\u043E\u043C", "deposit" : 4005.00, "total" : 4005.00, "payments": [ { "type": 0, "sum" : 4005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:34]POST & json_proto [11:05:34]process_json_proto [11:05:34]json parsed OK: [11:05:34]protocol is kg_v1.0 [11:05:34]action value=close_receipt [11:05:34]process_action close_receipt [11:05:34]cmd_close_receipt [11:05:34]MH_GetDate [11:05:34]Write to MH i2c: F0 00 00 15 12 16 [11:05:34]Write i2c OK [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: F0 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: F0 09 00 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: F0 09 00 15 12 00 81 44 26 66 F4 E9 65 64 16 [11:05:34]GetLastDocTimeStamp 1713783747 [11:05:34]current date 1713783937 [11:05:34]FM_GetShiftState [11:05:34]SAM_PROTO_GetShiftState [11:05:34]wFMCommunicate request_size=4 [11:05:34]MH_SAM_APDU [11:05:34]CAPDU: 80 13 01 00 [11:05:34]Write to MH i2c: E2 08 00 16 12 80 13 01 00 00 00 00 00 A5 [11:05:34]Write i2c OK [11:05:34]MH_I2C_Read... [11:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:34]Read from MH i2c: E2 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 0E 00 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 0E 00 16 12 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 CC [11:05:34]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:05:34]wFMCommunicate OK [11:05:34]SAM_PROTO_GetShiftState done [11:05:34]FM_GetShiftState done [11:05:34]opened in 1713745124 [11:05:34]opened+sec_in_day 1713831524 [11:05:34]quantity*price = 400554 [11:05:34]sum+1 = 400556 [11:05:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 4005.00 Внесено: 4005.00 СДАЧА: 0.00 НСП 1% : 35.45 НДС 12% : 425.37 Наличными: 4005.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 51 22.04.2024 11:05 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 55.71 сом ФМ: 0000000000874652 ФД: 77032 ФПД: 116423759021631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T110537&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77032&fm=116423759021631&tin=02508201610067®Number=0000000000091573&sum=400500 [11:05:35]StoreToDocumentArchive [11:05:35]shift 373 fd 77032 [11:05:35]save to /storage/0373/doc_00077032 [11:05:35]save last doc name /storage/0373/doc_00077032 to /storage/kkm_last_doc_name [11:05:35]save OK [11:05:35]Clear old archive folders... [11:05:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:05:35]tlvbuf is 016E04F0 [11:05:35]SAM_PROTO_ClearQueue [11:05:35]wFMCommunicate request_size=4 [11:05:35]MH_SAM_APDU [11:05:35]CAPDU: 80 09 00 00 [11:05:35]Write to MH i2c: E2 08 00 23 12 80 09 00 00 00 00 00 00 A7 [11:05:35]Write i2c OK [11:05:35]MH_I2C_Read... [11:05:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:35]Read from MH i2c: E2 [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: E2 03 00 [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: E2 03 00 23 12 00 90 00 A9 [11:05:35]RAPDU: 90 00 [11:05:35]wFMCommunicate OK [11:05:35]SAM_PROTO_ClearQueue done [11:05:35]KKMCreateOFDPacket [11:05:35]OFDProtocolAddRootSTLVToBuf [11:05:35]FM_MakeSignedData [11:05:35]FM_MakeSignedData [11:05:35]SAM_PROTO_SignData [11:05:35]wFMCommunicate request_size=4 [11:05:35]MH_SAM_APDU [11:05:35]CAPDU: 80 0D 01 02 [11:05:35]Write to MH i2c: E2 08 00 24 12 80 0D 01 02 00 00 00 00 AF [11:05:35]Write i2c OK [11:05:35]MH_I2C_Read... [11:05:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:36]Read from MH i2c: E2 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: E2 03 00 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: E2 03 00 24 12 00 90 00 AA [11:05:36]RAPDU: 90 00 [11:05:36]wFMCommunicate OK [11:05:36]wFMCommunicate request_size=255 [11:05:36]MH_SAM_APDU [11:05: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 35 FF 03 08 00 03 9E D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AB 1C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 1C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 A6 00 00 00 00 07 04 06 00 74 1C 06 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 81 44 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E8 2C 01 00 35 04 06 00 69 E3 04 CC [11:05:36]Write to MH i2c: E2 02 01 25 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 35 FF 03 08 00 03 9E D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AB 1C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 1C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 A6 00 00 00 00 07 04 06 00 74 1C 06 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 81 44 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E8 2C 01 00 35 04 06 00 69 E3 04 CC 00 00 8E [11:05:36]Write i2c OK [11:05:36]MH_I2C_Read... [11:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:36]Read from MH i2c: E2 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: E2 03 00 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: E2 03 00 25 12 00 90 00 AB [11:05:36]RAPDU: 90 00 [11:05:36]wFMCommunicate OK [11:05:36]wFMCommunicate request_size=7 [11:05:36]MH_SAM_APDU [11:05:36]CAPDU: 80 0D 02 02 02 C6 3F [11:05:36]Write to MH i2c: E2 0A 00 26 12 80 0D 02 02 02 00 C6 3F 00 00 BB [11:05:36]Write i2c OK [11:05:36]MH_I2C_Read... [11:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:36]Read from MH i2c: E2 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: E2 03 00 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: E2 03 00 26 12 00 90 00 AC [11:05:36]RAPDU: 90 00 [11:05:36]wFMCommunicate OK [11:05:36]wFMCommunicate request_size=4 [11:05:36]MH_SAM_APDU [11:05:36]CAPDU: 80 0D 03 02 [11:05:36]Write to MH i2c: E2 08 00 27 12 80 0D 03 02 00 00 00 00 B4 [11:05:36]Write i2c OK [11:05:36]MH_I2C_Read... [11:05:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:36]Read from MH i2c: E2 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: E2 0B 00 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: E2 0B 00 27 12 00 65 39 96 82 ED C2 E7 61 90 00 62 [11:05:36]RAPDU: 65 39 96 82 ED C2 E7 61 90 00 [11:05:36]wFMCommunicate OK [11:05:36]SAM_PROTO_SignData done [11:05:36]FM_MakeSignedData done [11:05:36]CreateOFDProtocolMessage [11:05:36]wFMCommunicate request_size=4 [11:05:36]MH_SAM_APDU [11:05:36]CAPDU: 80 11 00 00 [11:05:36]Write to MH i2c: E2 08 00 28 12 80 11 00 00 00 00 00 00 B4 [11:05:36]Write i2c OK [11:05:36]MH_I2C_Read... [11:05:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:36]Read from MH i2c: E2 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: E2 17 00 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: E2 17 00 28 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 07 [11:05:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:05:36]wFMCommunicate OK [11:05:36]CreateOFDProtocolMessage done [11:05:36]OFDSenderStorePacket 77032 [11:05:36]StoreOFDPacket docnum=77032 [11:05:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 DF FD 04 01 4C E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AB 1C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 1C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 A6 00 00 00 00 07 04 06 00 74 1C 06 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 81 44 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E8 2C 01 00 35 04 06 00 69 E3 04 CC C6 3F 65 39 96 82 ED C2 E7 61 [11:05:36]CheckFolder [11:05:36]dirname=/storage/ofd_packets [11:05:36]CheckFolder done [11:05:36]ProducePacketName [11:05:36]name=ofd_packets/00077032 [11:05:36]NVStorageSaveData ofd_packets/00077032 [11:05:36]File name is /storage/ofd_packets/00077032 [11:05:36]Write 298 bytes [11:05:36]NVStorageSaveData done [11:05:36]OFDSenderStorePacket done [11:05:36]KKMCreateOFDPacket done [11:05:36]NVStorageSaveData kkm_last_timestamp [11:05:36]File name is /storage/kkm_last_timestamp [11:05:36]Write 4 bytes [11:05:36]NVStorageSaveData done [11:05:36]ExternCall_PrintAddStr [11:05:36]wPrintStart [11:05:36]Write to MH i2c: 01 00 00 29 12 3B [11:05:36]Write i2c OK [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: 01 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: 01 07 00 [11:05:36]MH_I2C_Read... [11:05:36]Read from MH i2c: 01 07 00 29 12 00 00 00 00 00 FF 0F 50 [11:05:36]RasterBufferAndPrint [11:05:36]line Счет N : (1)191612 [11:05:36]line ИНН: 02508201610067 [11:05:36]line Контрольно-Кассовый Чек [11:05:36]line ПРОДАЖА [11:05:36]line ТРК (МРК, ГНК) : 61 [11:05:36]line Товар: 2710194210 [11:05:36]line ДТ-К-5 [11:05:36]line 55.710 * 71.90 [11:05:36]line = 4005.55 [11:05:36]line НДС 12% НСП 1% [11:05:36]line > о реализуемом товаре [11:05:36]line ОКРУГЛЕНИЕ: -0.55 [11:05:36]line ИТОГО: 4005.00 [11:05:36]line Внесено: 4005.00 [11:05:36]line СДАЧА: 0.00 [11:05:36]line НСП 1% : 35.45 [11:05:36]line НДС 12% : 425.37 [11:05:36]line Наличными: 4005.00 [11:05:36]line Безнал.: 0.00 [11:05:36]line Место: АЗС № 106 "Партнер Нефть" [11:05:36]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:05:36]line СНО: Общий режим [11:05:36]line Чек 51 22.04.2024 11:05 [11:05:36]line Смена: 373 ФФД: 1.0 [11:05:36]line ЗНМ: 0300000141 [11:05:36]line РНМ: 0000000000091573 [11:05:36]line Версия ККМ: 001 [11:05:36]line [11:05:36]line Дисконтная программа [11:05:36]line ДТ [11:05:36]line номер 106 [11:05:36]line сэкономлено 55.71 сом [11:05:36]line ФМ: 0000000000874652 [11:05:36]line ФД: 77032 [11:05:36]line ФПД: 116423759021631 [11:05:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T110537&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77032&fm=116423759021631&tin=02508201610067®Number=0000000000091573&sum=400500 [11:05:36]OFD Sender: Processing packet 77032 [packets to send 129, broken 128] [11:05:36]ProducePacketName [11:05:36]name=ofd_packets/00077032 [11:05:36]OFD Sender: To server: pG, [11:05:36]CommunicateWithHost lk.salyk.kg:30040 [11:05:36]ConnectInit lk.salyk.kg [11:05:36]written 0, free lines is 4095 [11:05:36]Connected sock=10 [11:05:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 DF FD 04 01 4C E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AB 1C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 1C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 A6 00 00 00 00 07 04 06 00 74 1C 06 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 81 44 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E8 2C 01 00 35 04 06 00 69 E3 04 CC C6 3F 65 39 96 82 ED C2 E7 61 [11:05:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 4B 09 47 00 47 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E8 2C 01 00 F4 03 04 00 04 EC 25 66 B6 04 01 00 00 36 CB 22 92 1F 94 94 5B [11:05:37]CommunicateWithHost err = 0 [11:05:37]CheckOFDResponse [11:05:37]1017 (14) - 77093643461234 [11:05:37]1041 (16) - 0000000000874652 [11:05:37]1040 (4) - 77032 [11:05:37]1012 (4) - 22.04.2024 04:48 [11:05:37]1206 (1) - 0 [11:05:37]OFD Sender: Remove packet 77032 [11:05:37]ProducePacketName [11:05:37]name=ofd_packets/00077032 [11:05:37]NVStorageDeleteData [11:05:37]Write to MH i2c: 01 00 00 58 12 6A [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: 01 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: 01 07 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: 01 07 00 58 12 00 00 00 00 00 87 0C 04 [11:05:37]RasterBufferAndPrint [11:05:37]line [11:05:37]line [11:05:37]line [11:05:37]line [11:05:37]line [11:05:37]written 0, free lines is 3216 [11:05:37]MH_Cut [11:05:37]Write to MH i2c: D1 01 00 5F 12 01 43 [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: D1 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: D1 01 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: D1 01 00 5F 12 00 42 [11:05:37]Write to MH i2c: 01 00 00 60 12 72 [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]OFD Sender: No OFD packet to send [11:05:38]*** Cut start [11:05:38]*** Partial cut [11:05:38]*** CUTSNS_PIN = 1 [11:05:38]*** CUTSNS_PIN = 0 [11:05:38]*** Brake cut motor [11:05:38]Read from MH i2c: 01 [11:05:38]MH_I2C_Read... [11:05:38]*** Stop cut motor [11:05:38]*** Cut end [11:05:38]Read from MH i2c: 01 07 00 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: 01 07 00 60 12 00 00 00 00 00 FF 0F 87 [11:05:38]process_action close_receipt done [11:05:38]requested_data is exist [11:05:38]produce_requested_data [11:05:38]requested_item fm.sn is exist - process it [11:05:38]wFMCommunicate request_size=4 [11:05:38]MH_SAM_APDU [11:05:38]CAPDU: 80 11 00 00 [11:05:38]Write to MH i2c: E2 08 00 61 12 80 11 00 00 00 00 00 00 ED [11:05:38]Write i2c OK [11:05:38]MH_I2C_Read... [11:05:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:38]Read from MH i2c: E2 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: E2 17 00 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: E2 17 00 61 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 40 [11:05:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:05:38]wFMCommunicate OK [11:05:38]requested_item fd.num is exist - process it [11:05:38]SAM_PROTO_GetFieldsCounters [11:05:38]wFMCommunicate request_size=4 [11:05:38]MH_SAM_APDU [11:05:38]CAPDU: 80 13 00 00 [11:05:38]Write to MH i2c: E2 08 00 62 12 80 13 00 00 00 00 00 00 F0 [11:05:38]Write i2c OK [11:05:38]MH_I2C_Read... [11:05:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:38]Read from MH i2c: E2 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: E2 62 00 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: E2 62 00 62 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E8 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [11:05:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E8 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:38]wFMCommunicate OK [11:05:38]SAM_PROTO_GetFieldsCounters done [11:05:38]requested_item shift.num is exist - process it [11:05:38]requested_item shift.opened is exist - process it [11:05:38]req_shift_opened [11:05:38]FM_GetShiftState [11:05:38]SAM_PROTO_GetShiftState [11:05:38]wFMCommunicate request_size=4 [11:05:38]MH_SAM_APDU [11:05:38]CAPDU: 80 13 01 00 [11:05:38]Write to MH i2c: E2 08 00 63 12 80 13 01 00 00 00 00 00 F2 [11:05:38]Write i2c OK [11:05:38]MH_I2C_Read... [11:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:38]Read from MH i2c: E2 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: E2 0E 00 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: E2 0E 00 63 12 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 19 [11:05:38]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:05:38]wFMCommunicate OK [11:05:38]SAM_PROTO_GetShiftState done [11:05:38]FM_GetShiftState done [11:05:38]req_shift_opened done [11:05:38]requested_item shift.open_date is exist - process it [11:05:38]req_shift_open_date [11:05:38]req_shift_open_date done [11:05:38]produce_requested_data done [11:05:38]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77032,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [11:05:38]process_action_free close_receipt [11:05:38]json_value_free [11:05:38]json_value_free done [11:05:38]process_json_proto returns [11:05:38]Send response to host [11:05:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77032,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [11:05:38]free response buf [11:05:38]execute_script done [11:05:38]execute_script returns [11:05:38]free content buf [11:05:38]Sock 9.Close socket [11:05:38]Sock 9.Thread stoped [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:18]accept exits with 7 [11:08:18]New connection [11:08:18]New thread 3067174244 created [11:08:18]Thread 3067030884 joined [11:08:18]Waiting for new connection... [11:08:18] Sock 7.Parse request [11:08:18]Sock 7.Check first char [11:08:18]Sock 7.First char is OK [11:08:18]request: POST /json_proto HTTP/1.0 [11:08:18]Method: POST [11:08:18]URL: /json_proto [11:08:18]Method is POST - this is cgi request [11:08:18]url: /json_proto [11:08:18]query_string will be loaded in cgi processing [11:08:18]execute_cgi json_proto POST (null) [11:08:18]execute_cgi path=json_proto method=POST [11:08:18]POST find Content-Length [11:08:18]Host: 172.17.62.5:8080 [11:08:18]Content-Length: 809 [11:08:18]Content-Type: application/json [11:08:18] [11:08:18]POST finish read [11:08:18]Found Content-Length = 809 [11:08:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 10.000, "sum" : 327.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 327.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:18]execute_script... [11:08: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)191613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 10.000, "sum" : 327.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 327.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:18]POST & json_proto [11:08:18]process_json_proto [11:08:18]json parsed OK: [11:08:18]protocol is kg_v1.0 [11:08:18]action value=close_receipt [11:08:18]process_action close_receipt [11:08:18]cmd_close_receipt [11:08:18]MH_GetDate [11:08:18]Write to MH i2c: F0 00 00 64 12 65 [11:08:18]Write i2c OK [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: F0 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: F0 09 00 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: F0 09 00 64 12 00 25 45 26 66 F4 E9 65 64 0A [11:08:18]GetLastDocTimeStamp 1713783937 [11:08:18]current date 1713784101 [11:08:18]FM_GetShiftState [11:08:18]SAM_PROTO_GetShiftState [11:08:18]wFMCommunicate request_size=4 [11:08:18]MH_SAM_APDU [11:08:18]CAPDU: 80 13 01 00 [11:08:18]Write to MH i2c: E2 08 00 65 12 80 13 01 00 00 00 00 00 F4 [11:08:18]Write i2c OK [11:08:18]MH_I2C_Read... [11:08:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:18]Read from MH i2c: E2 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: E2 0E 00 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: E2 0E 00 65 12 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 1B [11:08:18]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:08:18]wFMCommunicate OK [11:08:18]SAM_PROTO_GetShiftState done [11:08:18]FM_GetShiftState done [11:08:18]opened in 1713745124 [11:08:18]opened+sec_in_day 1713831524 [11:08:18]quantity*price = 32700 [11:08:18]sum+1 = 32701 [11:08:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 327.00 НСП 1% : 2.89 НДС 12% : 34.73 Наличными: 0.00 Безнал.: 327.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 52 22.04.2024 11:08 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 77033 ФПД: 119582221340605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T110821&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77033&fm=119582221340605&tin=02508201610067®Number=0000000000091573&sum=32700 [11:08:19]StoreToDocumentArchive [11:08:19]shift 373 fd 77033 [11:08:19]save to /storage/0373/doc_00077033 [11:08:19]save last doc name /storage/0373/doc_00077033 to /storage/kkm_last_doc_name [11:08:19]save OK [11:08:19]Clear old archive folders... [11:08:19]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:08:19]tlvbuf is 016FA1C0 [11:08:19]SAM_PROTO_ClearQueue [11:08:19]wFMCommunicate request_size=4 [11:08:19]MH_SAM_APDU [11:08:19]CAPDU: 80 09 00 00 [11:08:19]Write to MH i2c: E2 08 00 72 12 80 09 00 00 00 00 00 00 F6 [11:08:19]Write i2c OK [11:08:19]MH_I2C_Read... [11:08:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:19]Read from MH i2c: E2 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 03 00 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 03 00 72 12 00 90 00 F8 [11:08:19]RAPDU: 90 00 [11:08:19]wFMCommunicate OK [11:08:19]SAM_PROTO_ClearQueue done [11:08:19]KKMCreateOFDPacket [11:08:19]OFDProtocolAddRootSTLVToBuf [11:08:19]FM_MakeSignedData [11:08:19]FM_MakeSignedData [11:08:19]SAM_PROTO_SignData [11:08:19]wFMCommunicate request_size=4 [11:08:19]MH_SAM_APDU [11:08:19]CAPDU: 80 0D 01 02 [11:08:19]Write to MH i2c: E2 08 00 73 12 80 0D 01 02 00 00 00 00 FE [11:08:19]Write i2c OK [11:08:19]MH_I2C_Read... [11:08:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:19]Read from MH i2c: E2 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 03 00 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 03 00 73 12 00 90 00 F9 [11:08:19]RAPDU: 90 00 [11:08:19]wFMCommunicate OK [11:08:19]wFMCommunicate request_size=255 [11:08:19]MH_SAM_APDU [11:08:19]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BC 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 25 45 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E9 2C 01 00 35 04 06 00 6C C2 [11:08:19]Write to MH i2c: E2 02 01 74 12 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BC 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 25 45 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E9 2C 01 00 35 04 06 00 6C C2 00 00 0D [11:08:19]Write i2c OK [11:08:19]MH_I2C_Read... [11:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:19]Read from MH i2c: E2 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 03 00 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 03 00 74 12 00 90 00 FA [11:08:19]RAPDU: 90 00 [11:08:19]wFMCommunicate OK [11:08:19]wFMCommunicate request_size=9 [11:08:19]MH_SAM_APDU [11:08:19]CAPDU: 80 0D 02 02 04 67 D3 0F BD [11:08:19]Write to MH i2c: E2 0C 00 75 12 80 0D 02 02 04 00 67 D3 0F BD 00 00 0F [11:08:19]Write i2c OK [11:08:19]MH_I2C_Read... [11:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:19]Read from MH i2c: E2 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 03 00 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 03 00 75 12 00 90 00 FB [11:08:19]RAPDU: 90 00 [11:08:19]wFMCommunicate OK [11:08:19]wFMCommunicate request_size=4 [11:08:19]MH_SAM_APDU [11:08:19]CAPDU: 80 0D 03 02 [11:08:19]Write to MH i2c: E2 08 00 76 12 80 0D 03 02 00 00 00 00 03 [11:08:19]Write i2c OK [11:08:19]MH_I2C_Read... [11:08:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:19]Read from MH i2c: E2 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 0B 00 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 0B 00 76 12 00 1E B6 ED F0 97 16 A1 2B 90 00 2E [11:08:19]RAPDU: 1E B6 ED F0 97 16 A1 2B 90 00 [11:08:19]wFMCommunicate OK [11:08:19]SAM_PROTO_SignData done [11:08:19]FM_MakeSignedData done [11:08:19]CreateOFDProtocolMessage [11:08:19]wFMCommunicate request_size=4 [11:08:19]MH_SAM_APDU [11:08:19]CAPDU: 80 11 00 00 [11:08:19]Write to MH i2c: E2 08 00 77 12 80 11 00 00 00 00 00 00 03 [11:08:19]Write i2c OK [11:08:19]MH_I2C_Read... [11:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:19]Read from MH i2c: E2 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 17 00 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 17 00 77 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 56 [11:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:08:19]wFMCommunicate OK [11:08:19]CreateOFDProtocolMessage done [11:08:19]OFDSenderStorePacket 77033 [11:08:19]StoreOFDPacket docnum=77033 [11:08:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 01 B8 06 01 FD 4B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BC 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 25 45 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E9 2C 01 00 35 04 06 00 6C C2 67 D3 0F BD 1E B6 ED F0 97 16 A1 2B [11:08:19]CheckFolder [11:08:19]dirname=/storage/ofd_packets [11:08:19]CheckFolder done [11:08:19]ProducePacketName [11:08:19]name=ofd_packets/00077033 [11:08:19]NVStorageSaveData ofd_packets/00077033 [11:08:19]File name is /storage/ofd_packets/00077033 [11:08:19]Write 300 bytes [11:08:19]NVStorageSaveData done [11:08:19]OFDSenderStorePacket done [11:08:19]KKMCreateOFDPacket done [11:08:19]NVStorageSaveData kkm_last_timestamp [11:08:19]File name is /storage/kkm_last_timestamp [11:08:19]Write 4 bytes [11:08:19]NVStorageSaveData done [11:08:20]ExternCall_PrintAddStr [11:08:20]wPrintStart [11:08:20]Write to MH i2c: 01 00 00 78 12 8A [11:08:20]Write i2c OK [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: 01 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: 01 07 00 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: 01 07 00 78 12 00 00 00 00 00 FF 0F 9F [11:08:20]RasterBufferAndPrint [11:08:20]line Счет N : (1)191613 [11:08:20]line ИНН: 02508201610067 [11:08:20]line Контрольно-Кассовый Чек [11:08:20]line ПРОДАЖА [11:08:20]line ТРК (МРК, ГНК) : 71 [11:08:20]line Товар: 2711190000 [11:08:20]line ГАЗ-К-5 [11:08:20]line 10.000 * 32.70 [11:08:20]line = 327.00 [11:08:20]line НДС 12% НСП 1% [11:08:20]line > о реализуемом товаре [11:08:20]line ИТОГО: 327.00 [11:08:20]line НСП 1% : 2.89 [11:08:20]line НДС 12% : 34.73 [11:08:20]line Наличными: 0.00 [11:08:20]line Безнал.: 327.00 [11:08:20]line Место: АЗС № 106 "Партнер Нефть" [11:08:20]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:08:20]line СНО: Общий режим [11:08:20]line Чек 52 22.04.2024 11:08 [11:08:20]line Смена: 373 ФФД: 1.0 [11:08:20]line ЗНМ: 0300000141 [11:08:20]line РНМ: 0000000000091573 [11:08:20]line Версия ККМ: 001 [11:08:20]line Платежная система: О! деньги [11:08:20]line ФМ: 0000000000874652 [11:08:20]line ФД: 77033 [11:08:20]line ФПД: 119582221340605 [11:08:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T110821&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77033&fm=119582221340605&tin=02508201610067®Number=0000000000091573&sum=32700 [11:08:20]OFD Sender: Processing packet 77033 [packets to send 129, broken 128] [11:08:20]ProducePacketName [11:08:20]name=ofd_packets/00077033 [11:08:20]OFD Sender: To server: pG, [11:08:20]CommunicateWithHost lk.salyk.kg:30040 [11:08:20]ConnectInit lk.salyk.kg [11:08:20]written 0, free lines is 4095 [11:08:20]Connected sock=11 [11:08:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 01 B8 06 01 FD 4B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BC 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 25 45 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E9 2C 01 00 35 04 06 00 6C C2 67 D3 0F BD 1E B6 ED F0 97 16 A1 2B [11:08:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 E5 04 47 00 BC 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 E9 2C 01 00 F4 03 04 00 A8 EC 25 66 B6 04 01 00 00 77 4D 7A 65 CD AA 4F 93 [11:08:20]CommunicateWithHost err = 0 [11:08:20]CheckOFDResponse [11:08:20]1017 (14) - 77093643461234 [11:08:20]1041 (16) - 0000000000874652 [11:08:20]1040 (4) - 77033 [11:08:20]1012 (4) - 22.04.2024 04:50 [11:08:20]1206 (1) - 0 [11:08:20]OFD Sender: Remove packet 77033 [11:08:20]ProducePacketName [11:08:20]name=ofd_packets/00077033 [11:08:20]NVStorageDeleteData [11:08:20]Write to MH i2c: 01 00 00 A1 12 B3 [11:08:20]Write i2c OK [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: 01 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: 01 07 00 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: 01 07 00 A1 12 00 00 00 00 00 F8 0C BE [11:08:20]RasterBufferAndPrint [11:08:20]line [11:08:20]line [11:08:20]line [11:08:20]line [11:08:20]line [11:08:20]written 0, free lines is 3327 [11:08:20]MH_Cut [11:08:20]Write to MH i2c: D1 01 00 A8 12 01 8C [11:08:20]Write i2c OK [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: D1 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: D1 01 00 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: D1 01 00 A8 12 00 8B [11:08:20]Write to MH i2c: 01 00 00 A9 12 BB [11:08:20]Write i2c OK [11:08:20]MH_I2C_Read... [11:08:21]OFD Sender: No OFD packet to send [11:08:21]*** Cut start [11:08:21]*** Partial cut [11:08:21]*** CUTSNS_PIN = 1 [11:08:21]*** CUTSNS_PIN = 0 [11:08:21]*** Brake cut motor [11:08:22]Read from MH i2c: 01 [11:08:22]MH_I2C_Read... [11:08:22]*** Stop cut motor [11:08:22]*** Cut end [11:08:22]Read from MH i2c: 01 07 00 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: 01 07 00 A9 12 00 00 00 00 00 FF 0F D0 [11:08:22]process_action close_receipt done [11:08:22]requested_data is exist [11:08:22]produce_requested_data [11:08:22]requested_item fm.sn is exist - process it [11:08:22]wFMCommunicate request_size=4 [11:08:22]MH_SAM_APDU [11:08:22]CAPDU: 80 11 00 00 [11:08:22]Write to MH i2c: E2 08 00 AA 12 80 11 00 00 00 00 00 00 36 [11:08:22]Write i2c OK [11:08:22]MH_I2C_Read... [11:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:22]Read from MH i2c: E2 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 17 00 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 17 00 AA 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 89 [11:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:08:22]wFMCommunicate OK [11:08:22]requested_item fd.num is exist - process it [11:08:22]SAM_PROTO_GetFieldsCounters [11:08:22]wFMCommunicate request_size=4 [11:08:22]MH_SAM_APDU [11:08:22]CAPDU: 80 13 00 00 [11:08:22]Write to MH i2c: E2 08 00 AB 12 80 13 00 00 00 00 00 00 39 [11:08:22]Write i2c OK [11:08:22]MH_I2C_Read... [11:08:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:22]Read from MH i2c: E2 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 62 00 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 62 00 AB 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E9 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [11:08:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 E9 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:22]wFMCommunicate OK [11:08:22]SAM_PROTO_GetFieldsCounters done [11:08:22]requested_item shift.num is exist - process it [11:08:22]requested_item shift.opened is exist - process it [11:08:22]req_shift_opened [11:08:22]FM_GetShiftState [11:08:22]SAM_PROTO_GetShiftState [11:08:22]wFMCommunicate request_size=4 [11:08:22]MH_SAM_APDU [11:08:22]CAPDU: 80 13 01 00 [11:08:22]Write to MH i2c: E2 08 00 AC 12 80 13 01 00 00 00 00 00 3B [11:08:22]Write i2c OK [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 [11:08:22]MH_I2C_Read... [11:08:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:22]Read from MH i2c: E2 0E 00 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: E2 0E 00 AC 12 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 62 [11:08:22]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:08:22]wFMCommunicate OK [11:08:22]SAM_PROTO_GetShiftState done [11:08:22]FM_GetShiftState done [11:08:22]req_shift_opened done [11:08:22]requested_item shift.open_date is exist - process it [11:08:22]req_shift_open_date [11:08:22]req_shift_open_date done [11:08:22]produce_requested_data done [11:08:22]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77033,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [11:08:22]process_action_free close_receipt [11:08:22]json_value_free [11:08:22]json_value_free done [11:08:22]process_json_proto returns [11:08:22]Send response to host [11:08:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77033,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [11:08:22]free response buf [11:08:22]execute_script done [11:08:22]execute_script returns [11:08:22]free content buf [11:08:22]Sock 7.Close socket [11:08:22]Sock 7.Thread stoped [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]accept exits with 9 [11:13:26]New connection [11:13:26]New thread 3067030884 created [11:13:26]Thread 3067174244 joined [11:13:26]Waiting for new connection... [11:13:26] Sock 9.Parse request [11:13:26]Sock 9.Check first char [11:13:26]Sock 9.First char is OK [11:13:26]request: POST /json_proto HTTP/1.0 [11:13:26]Method: POST [11:13:26]URL: /json_proto [11:13:26]Method is POST - this is cgi request [11:13:26]url: /json_proto [11:13:26]query_string will be loaded in cgi processing [11:13:26]execute_cgi json_proto POST (null) [11:13:26]execute_cgi path=json_proto method=POST [11:13:26]POST find Content-Length [11:13:26]Host: 172.17.62.5:8080 [11:13:26]Content-Length: 679 [11:13:26]Content-Type: application/json [11:13:26] [11:13:26]POST finish read [11:13:26]Found Content-Length = 679 [11:13:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:13:26]execute_script... [11:13: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)191614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:13:26]POST & json_proto [11:13:26]process_json_proto [11:13:26]json parsed OK: [11:13:26]protocol is kg_v1.0 [11:13:26]action value=close_receipt [11:13:26]process_action close_receipt [11:13:26]cmd_close_receipt [11:13:26]MH_GetDate [11:13:26]Write to MH i2c: F0 00 00 AD 12 AE [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: F0 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: F0 09 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: F0 09 00 AD 12 00 59 46 26 66 F4 E9 65 64 88 [11:13:26]GetLastDocTimeStamp 1713784101 [11:13:26]current date 1713784409 [11:13:26]FM_GetShiftState [11:13:26]SAM_PROTO_GetShiftState [11:13:26]wFMCommunicate request_size=4 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 13 01 00 [11:13:26]Write to MH i2c: E2 08 00 AE 12 80 13 01 00 00 00 00 00 3D [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 0E 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 0E 00 AE 12 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 64 [11:13:26]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:13:26]wFMCommunicate OK [11:13:26]SAM_PROTO_GetShiftState done [11:13:26]FM_GetShiftState done [11:13:26]opened in 1713745124 [11:13:26]opened+sec_in_day 1713831524 [11:13:26]quantity*price = 100018 [11:13:26]sum+1 = 100020 [11:13:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 53 22.04.2024 11:13 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77034 ФПД: 76360415032844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T111329&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77034&fm=76360415032844&tin=02508201610067®Number=0000000000091573&sum=100000 [11:13:27]StoreToDocumentArchive [11:13:27]shift 373 fd 77034 [11:13:27]save to /storage/0373/doc_00077034 [11:13:27]save last doc name /storage/0373/doc_00077034 to /storage/kkm_last_doc_name [11:13:27]save OK [11:13:27]Clear old archive folders... [11:13:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:13:27]tlvbuf is 016FC8F0 [11:13:27]SAM_PROTO_ClearQueue [11:13:27]wFMCommunicate request_size=4 [11:13:27]MH_SAM_APDU [11:13:27]CAPDU: 80 09 00 00 [11:13:27]Write to MH i2c: E2 08 00 BB 12 80 09 00 00 00 00 00 00 3F [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:27]Read from MH i2c: E2 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 BB 12 00 90 00 41 [11:13:27]RAPDU: 90 00 [11:13:27]wFMCommunicate OK [11:13:27]SAM_PROTO_ClearQueue done [11:13:27]KKMCreateOFDPacket [11:13:27]OFDProtocolAddRootSTLVToBuf [11:13:27]FM_MakeSignedData [11:13:27]FM_MakeSignedData [11:13:27]SAM_PROTO_SignData [11:13:27]wFMCommunicate request_size=4 [11:13:27]MH_SAM_APDU [11:13:27]CAPDU: 80 0D 01 02 [11:13:27]Write to MH i2c: E2 08 00 BC 12 80 0D 01 02 00 00 00 00 47 [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:27]Read from MH i2c: E2 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 BC 12 00 90 00 42 [11:13:27]RAPDU: 90 00 [11:13:27]wFMCommunicate OK [11:13:27]wFMCommunicate request_size=255 [11:13:27]MH_SAM_APDU [11:13: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 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 35 00 00 00 F4 03 04 00 59 46 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EA 2C 01 00 35 04 06 00 45 73 0B 69 [11:13:27]Write to MH i2c: E2 02 01 BD 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 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 35 00 00 00 F4 03 04 00 59 46 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EA 2C 01 00 35 04 06 00 45 73 0B 69 00 00 C6 [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:27]Read from MH i2c: E2 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 BD 12 00 90 00 43 [11:13:27]RAPDU: 90 00 [11:13:27]wFMCommunicate OK [11:13:27]wFMCommunicate request_size=7 [11:13:27]MH_SAM_APDU [11:13:27]CAPDU: 80 0D 02 02 02 B6 0C [11:13:27]Write to MH i2c: E2 0A 00 BE 12 80 0D 02 02 02 00 B6 0C 00 00 10 [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:27]Read from MH i2c: E2 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 BE 12 00 90 00 44 [11:13:27]RAPDU: 90 00 [11:13:27]wFMCommunicate OK [11:13:27]wFMCommunicate request_size=4 [11:13:27]MH_SAM_APDU [11:13:27]CAPDU: 80 0D 03 02 [11:13:27]Write to MH i2c: E2 08 00 BF 12 80 0D 03 02 00 00 00 00 4C [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:28]Read from MH i2c: E2 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 0B 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 0B 00 BF 12 00 0A DE 21 9B A4 CA 79 56 90 00 2E [11:13:28]RAPDU: 0A DE 21 9B A4 CA 79 56 90 00 [11:13:28]wFMCommunicate OK [11:13:28]SAM_PROTO_SignData done [11:13:28]FM_MakeSignedData done [11:13:28]CreateOFDProtocolMessage [11:13:28]wFMCommunicate request_size=4 [11:13:28]MH_SAM_APDU [11:13:28]CAPDU: 80 11 00 00 [11:13:28]Write to MH i2c: E2 08 00 C0 12 80 11 00 00 00 00 00 00 4C [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:28]Read from MH i2c: E2 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 17 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 17 00 C0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9F [11:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:13:28]wFMCommunicate OK [11:13:28]CreateOFDProtocolMessage done [11:13:28]OFDSenderStorePacket 77034 [11:13:28]StoreOFDPacket docnum=77034 [11:13:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 E9 20 04 01 24 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 35 00 00 00 F4 03 04 00 59 46 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EA 2C 01 00 35 04 06 00 45 73 0B 69 B6 0C 0A DE 21 9B A4 CA 79 56 [11:13:28]CheckFolder [11:13:28]dirname=/storage/ofd_packets [11:13:28]CheckFolder done [11:13:28]ProducePacketName [11:13:28]name=ofd_packets/00077034 [11:13:28]NVStorageSaveData ofd_packets/00077034 [11:13:28]File name is /storage/ofd_packets/00077034 [11:13:28]Write 298 bytes [11:13:28]NVStorageSaveData done [11:13:28]OFDSenderStorePacket done [11:13:28]KKMCreateOFDPacket done [11:13:28]NVStorageSaveData kkm_last_timestamp [11:13:28]File name is /storage/kkm_last_timestamp [11:13:28]Write 4 bytes [11:13:28]NVStorageSaveData done [11:13:28]ExternCall_PrintAddStr [11:13:28]wPrintStart [11:13:28]Write to MH i2c: 01 00 00 C1 12 D3 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: 01 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: 01 07 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: 01 07 00 C1 12 00 00 00 00 00 FF 0F E8 [11:13:28]RasterBufferAndPrint [11:13:28]line Счет N : (1)191614 [11:13:28]line ИНН: 02508201610067 [11:13:28]line Контрольно-Кассовый Чек [11:13:28]line ПРОДАЖА [11:13:28]line ТРК (МРК, ГНК) : 23 [11:13:28]line Товар: 2710194210 [11:13:28]line ДТ-К-5 [11:13:28]line 13.720 * 72.90 [11:13:28]line = 1000.19 [11:13:28]line НДС 12% НСП 1% [11:13:28]line > о реализуемом товаре [11:13:28]line ОКРУГЛЕНИЕ: -0.19 [11:13:28]line ИТОГО: 1000.00 [11:13:28]line Внесено: 1000.00 [11:13:28]line СДАЧА: 0.00 [11:13:28]line НСП 1% : 8.85 [11:13:28]line НДС 12% : 106.21 [11:13:28]line Наличными: 1000.00 [11:13:28]line Безнал.: 0.00 [11:13:28]line Место: АЗС № 106 "Партнер Нефть" [11:13:28]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:13:28]line СНО: Общий режим [11:13:28]line Чек 53 22.04.2024 11:13 [11:13:28]line Смена: 373 ФФД: 1.0 [11:13:28]line ЗНМ: 0300000141 [11:13:28]line РНМ: 0000000000091573 [11:13:28]line Версия ККМ: 001 [11:13:28]line ФМ: 0000000000874652 [11:13:28]line ФД: 77034 [11:13:28]line ФПД: 76360415032844 [11:13:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T111329&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77034&fm=76360415032844&tin=02508201610067®Number=0000000000091573&sum=100000 [11:13:28]written 0, free lines is 4095 [11:13:28]OFD Sender: Processing packet 77034 [packets to send 129, broken 128] [11:13:28]ProducePacketName [11:13:28]name=ofd_packets/00077034 [11:13:28]OFD Sender: To server: pG, [11:13:28]CommunicateWithHost lk.salyk.kg:30040 [11:13:28]ConnectInit lk.salyk.kg [11:13:28]Write to MH i2c: 01 00 00 EB 12 FD [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: 01 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: 01 07 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: 01 07 00 EB 12 00 00 00 00 00 E3 0C F3 [11:13:28]RasterBufferAndPrint [11:13:28]line [11:13:28]line [11:13:28]line [11:13:28]line [11:13:28]line [11:13:28]written 0, free lines is 3305 [11:13:28]MH_Cut [11:13:28]Write to MH i2c: D1 01 00 F2 12 01 D6 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: D1 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: D1 01 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: D1 01 00 F2 12 00 D5 [11:13:28]Write to MH i2c: 01 00 00 F3 12 05 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]Connected sock=10 [11:13:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 E9 20 04 01 24 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 35 00 00 00 F4 03 04 00 59 46 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EA 2C 01 00 35 04 06 00 45 73 0B 69 B6 0C 0A DE 21 9B A4 CA 79 56 [11:13:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 01 0B 47 00 0E 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EA 2C 01 00 F4 03 04 00 DC ED 25 66 B6 04 01 00 00 95 3E 79 DE 09 33 D9 B9 [11:13:28]CommunicateWithHost err = 0 [11:13:28]CheckOFDResponse [11:13:28]1017 (14) - 77093643461234 [11:13:28]1041 (16) - 0000000000874652 [11:13:28]1040 (4) - 77034 [11:13:28]1012 (4) - 22.04.2024 04:55 [11:13:28]1206 (1) - 0 [11:13:28]OFD Sender: Remove packet 77034 [11:13:28]ProducePacketName [11:13:28]name=ofd_packets/00077034 [11:13:28]NVStorageDeleteData [11:13:29]*** Cut start [11:13:29]*** Partial cut [11:13:29]*** CUTSNS_PIN = 1 [11:13:29]OFD Sender: No OFD packet to send [11:13:29]*** CUTSNS_PIN = 0 [11:13:29]*** Brake cut motor [11:13:29]Read from MH i2c: 01 [11:13:29]MH_I2C_Read... [11:13:29]*** Stop cut motor [11:13:29]Read from MH i2c: 01 *** Cut end [11:13:29]07 00 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: 01 07 00 F3 12 00 00 00 00 00 FF 0F 1A [11:13:29]process_action close_receipt done [11:13:29]requested_data is exist [11:13:29]produce_requested_data [11:13:29]requested_item fm.sn is exist - process it [11:13:29]wFMCommunicate request_size=4 [11:13:29]MH_SAM_APDU [11:13:29]CAPDU: 80 11 00 00 [11:13:29]Write to MH i2c: E2 08 00 F4 12 80 11 00 00 00 00 00 00 80 [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:29]Read from MH i2c: E2 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 17 00 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 17 00 F4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D3 [11:13:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:13:29]wFMCommunicate OK [11:13:29]requested_item fd.num is exist - process it [11:13:29]SAM_PROTO_GetFieldsCounters [11:13:29]wFMCommunicate request_size=4 [11:13:29]MH_SAM_APDU [11:13:29]CAPDU: 80 13 00 00 [11:13:29]Write to MH i2c: E2 08 00 F5 12 80 13 00 00 00 00 00 00 83 [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:30]Read from MH i2c: E2 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 62 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 62 00 F5 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EA 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [11:13:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EA 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:30]wFMCommunicate OK [11:13:30]SAM_PROTO_GetFieldsCounters done [11:13:30]requested_item shift.num is exist - process it [11:13:30]requested_item shift.opened is exist - process it [11:13:30]req_shift_opened [11:13:30]FM_GetShiftState [11:13:30]SAM_PROTO_GetShiftState [11:13:30]wFMCommunicate request_size=4 [11:13:30]MH_SAM_APDU [11:13:30]CAPDU: 80 13 01 00 [11:13:30]Write to MH i2c: E2 08 00 F6 12 80 13 01 00 00 00 00 00 85 [11:13:30]Write i2c OK [11:13:30]MH_I2C_Read... [11:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:30]Read from MH i2c: E2 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 0E 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 0E 00 F6 12 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 AC [11:13:30]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:13:30]wFMCommunicate OK [11:13:30]SAM_PROTO_GetShiftState done [11:13:30]FM_GetShiftState done [11:13:30]req_shift_opened done [11:13:30]requested_item shift.open_date is exist - process it [11:13:30]req_shift_open_date [11:13:30]req_shift_open_date done [11:13:30]produce_requested_data done [11:13:30]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77034,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [11:13:30]process_action_free close_receipt [11:13:30]json_value_free [11:13:30]json_value_free done [11:13:30]process_json_proto returns [11:13:30]Send response to host [11:13:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77034,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [11:13:30]free response buf [11:13:30]execute_script done [11:13:30]execute_script returns [11:13:30]free content buf [11:13:30]Sock 9.Close socket [11:13:30]Sock 9.Thread stoped [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:30]accept exits with 7 [11:15:30]New connection [11:15:30]New thread 3067174244 created [11:15:30]Thread 3067030884 joined [11:15:30]Waiting for new connection... [11:15:30] Sock 7.Parse request [11:15:30]Sock 7.Check first char [11:15:30]Sock 7.First char is OK [11:15:30]request: POST /json_proto HTTP/1.0 [11:15:30]Method: POST [11:15:30]URL: /json_proto [11:15:30]Method is POST - this is cgi request [11:15:30]url: /json_proto [11:15:30]query_string will be loaded in cgi processing [11:15:30]execute_cgi json_proto POST (null) [11:15:30]execute_cgi path=json_proto method=POST [11:15:30]POST find Content-Length [11:15:30]Host: 172.17.62.5:8080 [11:15:30]Content-Length: 978 [11:15:30]Content-Type: application/json [11:15:30] [11:15:30]POST finish read [11:15:30]Found Content-Length = 978 [11:15:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 34.780, "sum" : 2500.68, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 34.78 \u0441\u043E\u043C", "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" ] } } [11:15:30]execute_script... [11:15: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)191615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 34.780, "sum" : 2500.68, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 34.78 \u0441\u043E\u043C", "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" ] } } [11:15:30]POST & json_proto [11:15:30]process_json_proto [11:15:30]json parsed OK: [11:15:30]protocol is kg_v1.0 [11:15:30]action value=close_receipt [11:15:30]process_action close_receipt [11:15:30]cmd_close_receipt [11:15:30]MH_GetDate [11:15:30]Write to MH i2c: F0 00 00 F7 12 F8 [11:15:30]Write i2c OK [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: F0 [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: F0 09 00 [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: F0 09 00 F7 12 00 D5 46 26 66 F4 E9 65 64 4E [11:15:30]GetLastDocTimeStamp 1713784409 [11:15:30]current date 1713784533 [11:15:30]FM_GetShiftState [11:15:30]SAM_PROTO_GetShiftState [11:15:30]wFMCommunicate request_size=4 [11:15:30]MH_SAM_APDU [11:15:30]CAPDU: 80 13 01 00 [11:15:30]Write to MH i2c: E2 08 00 F8 12 80 13 01 00 00 00 00 00 87 [11:15:30]Write i2c OK [11:15:30]MH_I2C_Read... [11:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:30]Read from MH i2c: E2 [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: E2 0E 00 [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: E2 0E 00 F8 12 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 AE [11:15:30]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:15:30]wFMCommunicate OK [11:15:30]SAM_PROTO_GetShiftState done [11:15:30]FM_GetShiftState done [11:15:30]opened in 1713745124 [11:15:30]opened+sec_in_day 1713831524 [11:15:30]quantity*price = 250068 [11:15:30]sum+1 = 250069 [11:15:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.56 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 54 22.04.2024 11:15 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 34.78 сом ФМ: 0000000000874652 ФД: 77035 ФПД: 212520907985369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T111533&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77035&fm=212520907985369&tin=02508201610067®Number=0000000000091573&sum=250000 [11:15:31]StoreToDocumentArchive [11:15:31]shift 373 fd 77035 [11:15:31]save to /storage/0373/doc_00077035 [11:15:31]save last doc name /storage/0373/doc_00077035 to /storage/kkm_last_doc_name [11:15:31]save OK [11:15:31]Clear old archive folders... [11:15:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:15:31]tlvbuf is 017001A0 [11:15:31]SAM_PROTO_ClearQueue [11:15:31]wFMCommunicate request_size=4 [11:15:31]MH_SAM_APDU [11:15:31]CAPDU: 80 09 00 00 [11:15:31]Write to MH i2c: E2 08 00 05 13 80 09 00 00 00 00 00 00 8A [11:15:31]Write i2c OK [11:15:31]MH_I2C_Read... [11:15:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:31]Read from MH i2c: E2 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 03 00 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 03 00 05 13 00 90 00 8C [11:15:31]RAPDU: 90 00 [11:15:31]wFMCommunicate OK [11:15:31]SAM_PROTO_ClearQueue done [11:15:31]KKMCreateOFDPacket [11:15:31]OFDProtocolAddRootSTLVToBuf [11:15:31]FM_MakeSignedData [11:15:31]FM_MakeSignedData [11:15:31]SAM_PROTO_SignData [11:15:31]wFMCommunicate request_size=4 [11:15:31]MH_SAM_APDU [11:15:31]CAPDU: 80 0D 01 02 [11:15:31]Write to MH i2c: E2 08 00 06 13 80 0D 01 02 00 00 00 00 92 [11:15:31]Write i2c OK [11:15:31]MH_I2C_Read... [11:15:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:31]Read from MH i2c: E2 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 03 00 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 03 00 06 13 00 90 00 8D [11:15:31]RAPDU: 90 00 [11:15:31]wFMCommunicate OK [11:15:31]wFMCommunicate request_size=255 [11:15:31]MH_SAM_APDU [11:15: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 35 FF 03 08 00 03 DC 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 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 36 00 00 00 F4 03 04 00 D5 46 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EB 2C 01 00 35 04 06 00 C1 49 61 3A [11:15:31]Write to MH i2c: E2 02 01 07 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 35 FF 03 08 00 03 DC 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 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 36 00 00 00 F4 03 04 00 D5 46 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EB 2C 01 00 35 04 06 00 C1 49 61 3A 00 00 D1 [11:15:31]Write i2c OK [11:15:31]MH_I2C_Read... [11:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:32]Read from MH i2c: E2 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 03 00 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 03 00 07 13 00 90 00 8E [11:15:32]RAPDU: 90 00 [11:15:32]wFMCommunicate OK [11:15:32]wFMCommunicate request_size=7 [11:15:32]MH_SAM_APDU [11:15:32]CAPDU: 80 0D 02 02 02 51 D9 [11:15:32]Write to MH i2c: E2 0A 00 08 13 80 0D 02 02 02 00 51 D9 00 00 C3 [11:15:32]Write i2c OK [11:15:32]MH_I2C_Read... [11:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:32]Read from MH i2c: E2 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 03 00 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 03 00 08 13 00 90 00 8F [11:15:32]RAPDU: 90 00 [11:15:32]wFMCommunicate OK [11:15:32]wFMCommunicate request_size=4 [11:15:32]MH_SAM_APDU [11:15:32]CAPDU: 80 0D 03 02 [11:15:32]Write to MH i2c: E2 08 00 09 13 80 0D 03 02 00 00 00 00 97 [11:15:32]Write i2c OK [11:15:32]MH_I2C_Read... [11:15:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:32]Read from MH i2c: E2 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 0B 00 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 0B 00 09 13 00 7F F6 E2 97 B0 CB CC 72 90 00 3F [11:15:32]RAPDU: 7F F6 E2 97 B0 CB CC 72 90 00 [11:15:32]wFMCommunicate OK [11:15:32]SAM_PROTO_SignData done [11:15:32]FM_MakeSignedData done [11:15:32]CreateOFDProtocolMessage [11:15:32]wFMCommunicate request_size=4 [11:15:32]MH_SAM_APDU [11:15:32]CAPDU: 80 11 00 00 [11:15:32]Write to MH i2c: E2 08 00 0A 13 80 11 00 00 00 00 00 00 97 [11:15:32]Write i2c OK [11:15:32]MH_I2C_Read... [11:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:32]Read from MH i2c: E2 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 17 00 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: E2 17 00 0A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EA [11:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:15:32]wFMCommunicate OK [11:15:32]CreateOFDProtocolMessage done [11:15:32]OFDSenderStorePacket 77035 [11:15:32]StoreOFDPacket docnum=77035 [11:15:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 E3 34 04 01 45 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 35 FF 03 08 00 03 DC 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 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 36 00 00 00 F4 03 04 00 D5 46 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EB 2C 01 00 35 04 06 00 C1 49 61 3A 51 D9 7F F6 E2 97 B0 CB CC 72 [11:15:32]CheckFolder [11:15:32]dirname=/storage/ofd_packets [11:15:32]CheckFolder done [11:15:32]ProducePacketName [11:15:32]name=ofd_packets/00077035 [11:15:32]NVStorageSaveData ofd_packets/00077035 [11:15:32]File name is /storage/ofd_packets/00077035 [11:15:32]Write 298 bytes [11:15:32]NVStorageSaveData done [11:15:32]OFDSenderStorePacket done [11:15:32]KKMCreateOFDPacket done [11:15:32]NVStorageSaveData kkm_last_timestamp [11:15:32]File name is /storage/kkm_last_timestamp [11:15:32]Write 4 bytes [11:15:32]NVStorageSaveData done [11:15:32]ExternCall_PrintAddStr [11:15:32]wPrintStart [11:15:32]Write to MH i2c: 01 00 00 0B 13 1E [11:15:32]Write i2c OK [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: 01 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: 01 07 00 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: 01 07 00 0B 13 00 00 00 00 00 FF 0F 33 [11:15:32]RasterBufferAndPrint [11:15:32]line Счет N : (1)191615 [11:15:32]line ИНН: 02508201610067 [11:15:32]line Контрольно-Кассовый Чек [11:15:32]line ПРОДАЖА [11:15:32]line ТРК (МРК, ГНК) : 51 [11:15:32]line Товар: 2710194210 [11:15:32]line ДТ-К-5 [11:15:32]line 34.780 * 71.90 [11:15:32]line = 2500.68 [11:15:32]line НДС 12% НСП 1% [11:15:32]line > о реализуемом товаре [11:15:32]line ОКРУГЛЕНИЕ: -0.68 [11:15:32]line ИТОГО: 2500.00 [11:15:32]line Внесено: 2500.00 [11:15:32]line СДАЧА: 0.00 [11:15:32]line НСП 1% : 22.13 [11:15:32]line НДС 12% : 265.56 [11:15:32]line Наличными: 2500.00 [11:15:32]line Безнал.: 0.00 [11:15:32]line Место: АЗС № 106 "Партнер Нефть" [11:15:32]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:15:32]line СНО: Общий режим [11:15:32]line Чек 54 22.04.2024 11:15 [11:15:32]line Смена: 373 ФФД: 1.0 [11:15:32]line ЗНМ: 0300000141 [11:15:32]line РНМ: 0000000000091573 [11:15:32]line Версия ККМ: 001 [11:15:32]line [11:15:32]line Дисконтная программа [11:15:32]line ДТ [11:15:32]line номер 106 [11:15:32]line сэкономлено 34.78 сом [11:15:32]line ФМ: 0000000000874652 [11:15:32]line ФД: 77035 [11:15:32]line ФПД: 212520907985369 [11:15:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T111533&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77035&fm=212520907985369&tin=02508201610067®Number=0000000000091573&sum=250000 [11:15:32]OFD Sender: Processing packet 77035 [packets to send 129, broken 128] [11:15:32]ProducePacketName [11:15:32]name=ofd_packets/00077035 [11:15:32]OFD Sender: To server: pG, [11:15:32]CommunicateWithHost lk.salyk.kg:30040 [11:15:32]ConnectInit lk.salyk.kg [11:15:32]written 0, free lines is 4095 [11:15:32]Connected sock=11 [11:15:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 E3 34 04 01 45 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 35 FF 03 08 00 03 DC 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 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 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 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 36 00 00 00 F4 03 04 00 D5 46 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EB 2C 01 00 35 04 06 00 C1 49 61 3A 51 D9 7F F6 E2 97 B0 CB CC 72 [11:15:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 DE 9A 47 00 85 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EB 2C 01 00 F4 03 04 00 58 EE 25 66 B6 04 01 00 00 A4 23 08 5B 40 10 A0 5C [11:15:32]CommunicateWithHost err = 0 [11:15:32]CheckOFDResponse [11:15:32]1017 (14) - 77093643461234 [11:15:32]1041 (16) - 0000000000874652 [11:15:32]1040 (4) - 77035 [11:15:32]1012 (4) - 22.04.2024 04:58 [11:15:32]1206 (1) - 0 [11:15:32]OFD Sender: Remove packet 77035 [11:15:32]ProducePacketName [11:15:32]name=ofd_packets/00077035 [11:15:32]NVStorageDeleteData [11:15:32]Write to MH i2c: 01 00 00 3A 13 4D [11:15:32]Write i2c OK [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: 01 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: 01 07 00 [11:15:32]MH_I2C_Read... [11:15:32]Read from MH i2c: 01 07 00 3A 13 00 00 00 00 00 92 0C F2 [11:15:32]RasterBufferAndPrint [11:15:32]line [11:15:32]line [11:15:32]line [11:15:32]line [11:15:32]line [11:15:32]written 0, free lines is 3224 [11:15:32]MH_Cut [11:15:32]Write to MH i2c: D1 01 00 41 13 01 26 [11:15:33]Write i2c OK [11:15:33]MH_I2C_Read... [11:15:33]Read from MH i2c: D1 [11:15:33]MH_I2C_Read... [11:15:33]Read from MH i2c: D1 01 00 [11:15:33]MH_I2C_Read... [11:15:33]Read from MH i2c: D1 01 00 41 13 00 25 [11:15:33]Write to MH i2c: 01 00 00 42 13 55 [11:15:33]Write i2c OK [11:15:33]MH_I2C_Read... [11:15:33]OFD Sender: No OFD packet to send [11:15:33]*** Cut start [11:15:33]*** Partial cut [11:15:33]*** CUTSNS_PIN = 1 [11:15:33]*** CUTSNS_PIN = 0 [11:15:34]*** Brake cut motor [11:15:34]Read from MH i2c: 01 [11:15:34]MH_I2C_Read... [11:15:34]*** Stop cut motor [11:15:34]*** Cut end [11:15:34]Read from MH i2c: 01 07 00 [11:15:34]MH_I2C_Read... [11:15:34]Read from MH i2c: 01 07 00 42 13 00 00 00 00 00 FF 0F 6A [11:15:34]process_action close_receipt done [11:15:34]requested_data is exist [11:15:34]produce_requested_data [11:15:34]requested_item fm.sn is exist - process it [11:15:34]wFMCommunicate request_size=4 [11:15:34]MH_SAM_APDU [11:15:34]CAPDU: 80 11 00 00 [11:15:34]Write to MH i2c: E2 08 00 43 13 80 11 00 00 00 00 00 00 D0 [11:15:34]Write i2c OK [11:15:34]MH_I2C_Read... [11:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:34]Read from MH i2c: E2 [11:15:34]MH_I2C_Read... [11:15:34]Read from MH i2c: E2 17 00 [11:15:34]MH_I2C_Read... [11:15:34]Read from MH i2c: E2 17 00 43 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 23 [11:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:15:34]wFMCommunicate OK [11:15:34]requested_item fd.num is exist - process it [11:15:34]SAM_PROTO_GetFieldsCounters [11:15:34]wFMCommunicate request_size=4 [11:15:34]MH_SAM_APDU [11:15:34]CAPDU: 80 13 00 00 [11:15:34]Write to MH i2c: E2 08 00 44 13 80 13 00 00 00 00 00 00 D3 [11:15:34]Write i2c OK [11:15:34]MH_I2C_Read... [11:15:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:34]Read from MH i2c: E2 [11:15:34]MH_I2C_Read... [11:15:34]Read from MH i2c: E2 62 00 [11:15:34]MH_I2C_Read... [11:15:34]Read from MH i2c: E2 62 00 44 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EB 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [11:15:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EB 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:34]wFMCommunicate OK [11:15:34]SAM_PROTO_GetFieldsCounters done [11:15:34]requested_item shift.num is exist - process it [11:15:34]requested_item shift.opened is exist - process it [11:15:34]req_shift_opened [11:15:34]FM_GetShiftState [11:15:34]SAM_PROTO_GetShiftState [11:15:34]wFMCommunicate request_size=4 [11:15:34]MH_SAM_APDU [11:15:34]CAPDU: 80 13 01 00 [11:15:34]Write to MH i2c: E2 08 00 45 13 80 13 01 00 00 00 00 00 D5 [11:15:34]Write i2c OK [11:15:34]MH_I2C_Read... [11:15:34]Read from MH i2c: E2 [11:15:34]MH_I2C_Read... [11:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:34]Read from MH i2c: E2 0E 00 [11:15:34]MH_I2C_Read... [11:15:34]Read from MH i2c: E2 0E 00 45 13 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 FC [11:15:34]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:15:34]wFMCommunicate OK [11:15:34]SAM_PROTO_GetShiftState done [11:15:34]FM_GetShiftState done [11:15:34]req_shift_opened done [11:15:34]requested_item shift.open_date is exist - process it [11:15:34]req_shift_open_date [11:15:34]req_shift_open_date done [11:15:34]produce_requested_data done [11:15:34]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77035,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [11:15:34]process_action_free close_receipt [11:15:34]json_value_free [11:15:34]json_value_free done [11:15:34]process_json_proto returns [11:15:34]Send response to host [11:15:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77035,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [11:15:34]free response buf [11:15:34]execute_script done [11:15:34]execute_script returns [11:15:34]free content buf [11:15:34]Sock 7.Close socket [11:15:34]Sock 7.Thread stoped [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20: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:51]accept exits with 9 [11:20:51]New connection [11:20:51]New thread 3067030884 created [11:20:51]Thread 3067174244 joined [11:20:51]Waiting for new connection... [11:20:51] Sock 9.Parse request [11:20:51]Sock 9.Check first char [11:20:51]Sock 9.First char is OK [11:20:51]request: POST /json_proto HTTP/1.0 [11:20:51]Method: POST [11:20:51]URL: /json_proto [11:20:51]Method is POST - this is cgi request [11:20:51]url: /json_proto [11:20:51]query_string will be loaded in cgi processing [11:20:51]execute_cgi json_proto POST (null) [11:20:51]execute_cgi path=json_proto method=POST [11:20:51]POST find Content-Length [11:20:51]Host: 172.17.62.5:8080 [11:20:51]Content-Length: 1211 [11:20:51]Content-Type: application/json [11:20:51] [11:20:51]POST finish read [11:20:51]Found Content-Length = 1211 [11:20:51]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191616\u000A22.04.2024 11:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68979\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:51]execute_script... [11:20:51]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191616\u000A22.04.2024 11:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68979\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:51]POST & json_proto [11:20:51]process_json_proto [11:20:51]json parsed OK: [11:20:51]protocol is kg_v1.0 [11:20:51]action value=print_text [11:20:51]process_action print_text [11:20:51]cmd_print_text [11:20:51]ExternCall_PrintAddStr [11:20:51]wPrintStart [11:20:51]Write to MH i2c: 01 00 00 46 13 59 [11:20:51]Write i2c OK [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: 01 [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: 01 07 00 [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: 01 07 00 46 13 00 00 00 00 00 FF 0F 6E [11:20:51]RasterBufferAndPrint [11:20:51]line *****ТОВАРНЫЙ ЧЕК***** [11:20:51]line АЗС 106 [11:20:51]line Партнер нефть [11:20:51]line 02508201610067 [11:20:51]line Кассир : Токторбаева Н. [11:20:51]line Счет N : (1)191616 [11:20:51]line 22.04.2024 11:02 [11:20:51]line ПРОДАЖА [11:20:51]line ТРК (МРК, ГНК): 51 [11:20:51]line Вид ГСМ : 2710194210 [11:20:51]line ДТ-К-5 [11:20:51]line 100.000 x 72.90 [11:20:51]line ИТОГ: 7290.00 [11:20:51]line Тип оплаты: Талоны: Топливная Карта [11:20:51]line 68979 [11:20:51]line ______________________ [11:20:51]line (подпись) [11:20:51]written 0, free lines is 4095 [11:20:51]Write to MH i2c: 01 00 00 5B 13 6E [11:20:51]Write i2c OK [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: 01 [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: 01 07 00 [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: 01 07 00 5B 13 00 00 00 00 00 F4 0D 76 [11:20:51]RasterBufferAndPrint [11:20:51]line [11:20:51]line [11:20:51]line [11:20:51]line [11:20:51]line [11:20:51]written 0, free lines is 3574 [11:20:51]MH_Cut [11:20:51]Write to MH i2c: D1 01 00 62 13 01 47 [11:20:51]Write i2c OK [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: D1 [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: D1 01 00 [11:20:51]MH_I2C_Read... [11:20:51]Read from MH i2c: D1 01 00 62 13 00 46 [11:20:51]Write to MH i2c: 01 00 00 63 13 76 [11:20:51]Write i2c OK [11:20:51]MH_I2C_Read... [11:20:52]*** Cut start [11:20:52]*** Partial cut [11:20:52]*** CUTSNS_PIN = 1 [11:20:52]*** CUTSNS_PIN = 0 [11:20:52]*** Brake cut motor [11:20:52]Read from MH i2c: 01 [11:20:52]MH_I2C_Read... [11:20:52]*** Stop cut motor [11:20:52]*** Cut end [11:20:52]Read from MH i2c: 01 07 00 [11:20:52]MH_I2C_Read... [11:20:52]Read from MH i2c: 01 07 00 63 13 00 00 00 00 00 FF 0F 8B [11:20:52]process_action print_text done [11:20:52]requested_data is exist [11:20:52]produce_requested_data [11:20:52]requested_item fm.sn is exist - process it [11:20:52]wFMCommunicate request_size=4 [11:20:52]MH_SAM_APDU [11:20:52]CAPDU: 80 11 00 00 [11:20:52]Write to MH i2c: E2 08 00 64 13 80 11 00 00 00 00 00 00 F1 [11:20:52]Write i2c OK [11:20:52]MH_I2C_Read... [11:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:52]Read from MH i2c: E2 [11:20:52]MH_I2C_Read... [11:20:52]Read from MH i2c: E2 17 00 [11:20:52]MH_I2C_Read... [11:20:52]Read from MH i2c: E2 17 00 64 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 44 [11:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:20:52]wFMCommunicate OK [11:20:52]requested_item fd.num is exist - process it [11:20:52]SAM_PROTO_GetFieldsCounters [11:20:52]wFMCommunicate request_size=4 [11:20:52]MH_SAM_APDU [11:20:52]CAPDU: 80 13 00 00 [11:20:52]Write to MH i2c: E2 08 00 65 13 80 13 00 00 00 00 00 00 F4 [11:20:52]Write i2c OK [11:20:52]MH_I2C_Read... [11:20:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:52]Read from MH i2c: E2 [11:20:52]MH_I2C_Read... [11:20:52]Read from MH i2c: E2 62 00 [11:20:52]MH_I2C_Read... [11:20:52]Read from MH i2c: E2 62 00 65 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EB 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [11:20:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EB 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:52]wFMCommunicate OK [11:20:52]SAM_PROTO_GetFieldsCounters done [11:20:52]requested_item shift.num is exist - process it [11:20:52]requested_item shift.opened is exist - process it [11:20:52]req_shift_opened [11:20:52]FM_GetShiftState [11:20:52]SAM_PROTO_GetShiftState [11:20:52]wFMCommunicate request_size=4 [11:20:52]MH_SAM_APDU [11:20:52]CAPDU: 80 13 01 00 [11:20:52]Write to MH i2c: E2 08 00 66 13 80 13 01 00 00 00 00 00 F6 [11:20:52]Write i2c OK [11:20:52]MH_I2C_Read... [11:20:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:52]Read from MH i2c: E2 [11:20:52]MH_I2C_Read... [11:20:52]Read from MH i2c: E2 0E 00 [11:20:52]MH_I2C_Read... [11:20:52]Read from MH i2c: E2 0E 00 66 13 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 1D [11:20:52]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:20:52]wFMCommunicate OK [11:20:52]SAM_PROTO_GetShiftState done [11:20:52]FM_GetShiftState done [11:20:52]req_shift_opened done [11:20:52]requested_item shift.open_date is exist - process it [11:20:52]req_shift_open_date [11:20:52]req_shift_open_date done [11:20:52]produce_requested_data done [11:20:52]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77035,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [11:20:52]process_action_free print_text [11:20:52]json_value_free [11:20:52]json_value_free done [11:20:52]process_json_proto returns [11:20:52]Send response to host [11:20:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77035,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [11:20:52]free response buf [11:20:52]execute_script done [11:20:52]execute_script returns [11:20:52]free content buf [11:20:52]Sock 9.Close socket [11:20:52]Sock 9.Thread stoped [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:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:44]accept exits with 7 [11:24:44]New connection [11:24:44]New thread 3067174244 created [11:24:44]Thread 3067030884 joined [11:24:44]Waiting for new connection... [11:24:44] Sock 7.Parse request [11:24:44]Sock 7.Check first char [11:24:44]Sock 7.First char is OK [11:24:44]request: POST /json_proto HTTP/1.0 [11:24:44]Method: POST [11:24:44]URL: /json_proto [11:24:44]Method is POST - this is cgi request [11:24:44]url: /json_proto [11:24:44]query_string will be loaded in cgi processing [11:24:44]execute_cgi json_proto POST (null) [11:24:44]execute_cgi path=json_proto method=POST [11:24:44]POST find Content-Length [11:24:44]Host: 172.17.62.5:8080 [11:24:44]Content-Length: 805 [11:24:44]Content-Type: application/json [11:24:44] [11:24:44]POST finish read [11:24:44]Found Content-Length = 805 [11:24:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:44]execute_script... [11:24: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)191617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:44]POST & json_proto [11:24:44]process_json_proto [11:24:44]json parsed OK: [11:24:44]protocol is kg_v1.0 [11:24:44]action value=close_receipt [11:24:44]process_action close_receipt [11:24:44]cmd_close_receipt [11:24:44]MH_GetDate [11:24:44]Write to MH i2c: F0 00 00 67 13 69 [11:24:44]Write i2c OK [11:24:44]MH_I2C_Read... [11:24:44]Read from MH i2c: F0 [11:24:44]MH_I2C_Read... [11:24:44]Read from MH i2c: F0 09 00 [11:24:44]MH_I2C_Read... [11:24:44]Read from MH i2c: F0 09 00 67 13 00 FF 48 26 66 F4 E9 65 64 EB [11:24:44]GetLastDocTimeStamp 1713784533 [11:24:44]current date 1713785087 [11:24:44]FM_GetShiftState [11:24:44]SAM_PROTO_GetShiftState [11:24:44]wFMCommunicate request_size=4 [11:24:44]MH_SAM_APDU [11:24:44]CAPDU: 80 13 01 00 [11:24:44]Write to MH i2c: E2 08 00 68 13 80 13 01 00 00 00 00 00 F8 [11:24:44]Write i2c OK [11:24:44]MH_I2C_Read... [11:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:44]Read from MH i2c: E2 [11:24:44]MH_I2C_Read... [11:24:44]Read from MH i2c: E2 0E 00 [11:24:44]MH_I2C_Read... [11:24:44]Read from MH i2c: E2 0E 00 68 13 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 1F [11:24:44]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:24:44]wFMCommunicate OK [11:24:44]SAM_PROTO_GetShiftState done [11:24:44]FM_GetShiftState done [11:24:44]opened in 1713745124 [11:24:44]opened+sec_in_day 1713831524 [11:24:44]quantity*price = 30010 [11:24:44]sum+1 = 30011 [11:24:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.10 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.10 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 55 22.04.2024 11:24 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 77036 ФПД: 182728107540112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T112447&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77036&fm=182728107540112&tin=02508201610067®Number=0000000000091573&sum=30010 [11:24:45]StoreToDocumentArchive [11:24:45]shift 373 fd 77036 [11:24:45]save to /storage/0373/doc_00077036 [11:24:45]save last doc name /storage/0373/doc_00077036 to /storage/kkm_last_doc_name [11:24:45]save OK [11:24:45]Clear old archive folders... [11:24:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:45]tlvbuf is 0171DFB0 [11:24:45]SAM_PROTO_ClearQueue [11:24:45]wFMCommunicate request_size=4 [11:24:45]MH_SAM_APDU [11:24:45]CAPDU: 80 09 00 00 [11:24:45]Write to MH i2c: E2 08 00 75 13 80 09 00 00 00 00 00 00 FA [11:24:45]Write i2c OK [11:24:45]MH_I2C_Read... [11:24:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:45]Read from MH i2c: E2 [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: E2 03 00 [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: E2 03 00 75 13 00 90 00 FC [11:24:45]RAPDU: 90 00 [11:24:45]wFMCommunicate OK [11:24:45]SAM_PROTO_ClearQueue done [11:24:45]KKMCreateOFDPacket [11:24:45]OFDProtocolAddRootSTLVToBuf [11:24:45]FM_MakeSignedData [11:24:45]FM_MakeSignedData [11:24:45]SAM_PROTO_SignData [11:24:45]wFMCommunicate request_size=4 [11:24:45]MH_SAM_APDU [11:24:45]CAPDU: 80 0D 01 02 [11:24:45]Write to MH i2c: E2 08 00 76 13 80 0D 01 02 00 00 00 00 02 [11:24:45]Write i2c OK [11:24:45]MH_I2C_Read... [11:24:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:45]Read from MH i2c: E2 [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: E2 03 00 [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: E2 03 00 76 13 00 90 00 FD [11:24:45]RAPDU: 90 00 [11:24:45]wFMCommunicate OK [11:24:45]wFMCommunicate request_size=255 [11:24:45]MH_SAM_APDU [11:24:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3A 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 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3A 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 FF 48 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EC 2C 01 00 35 04 06 00 A6 [11:24:45]Write to MH i2c: E2 02 01 77 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3A 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 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3A 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 FF 48 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EC 2C 01 00 35 04 06 00 A6 00 00 69 [11:24:45]Write i2c OK [11:24:45]MH_I2C_Read... [11:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:45]Read from MH i2c: E2 [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: E2 03 00 [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: E2 03 00 77 13 00 90 00 FE [11:24:45]RAPDU: 90 00 [11:24:45]wFMCommunicate OK [11:24:45]wFMCommunicate request_size=10 [11:24:45]MH_SAM_APDU [11:24:45]CAPDU: 80 0D 02 02 05 30 B3 F0 BE 90 [11:24:45]Write to MH i2c: E2 0D 00 78 13 80 0D 02 02 05 00 30 B3 F0 BE 90 00 00 30 [11:24:45]Write i2c OK [11:24:45]MH_I2C_Read... [11:24:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:46]Read from MH i2c: E2 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: E2 03 00 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: E2 03 00 78 13 00 90 00 FF [11:24:46]RAPDU: 90 00 [11:24:46]wFMCommunicate OK [11:24:46]wFMCommunicate request_size=4 [11:24:46]MH_SAM_APDU [11:24:46]CAPDU: 80 0D 03 02 [11:24:46]Write to MH i2c: E2 08 00 79 13 80 0D 03 02 00 00 00 00 07 [11:24:46]Write i2c OK [11:24:46]MH_I2C_Read... [11:24:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:46]Read from MH i2c: E2 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: E2 0B 00 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: E2 0B 00 79 13 00 E1 C4 D8 AF 80 71 67 20 90 00 AC [11:24:46]RAPDU: E1 C4 D8 AF 80 71 67 20 90 00 [11:24:46]wFMCommunicate OK [11:24:46]SAM_PROTO_SignData done [11:24:46]FM_MakeSignedData done [11:24:46]CreateOFDProtocolMessage [11:24:46]wFMCommunicate request_size=4 [11:24:46]MH_SAM_APDU [11:24:46]CAPDU: 80 11 00 00 [11:24:46]Write to MH i2c: E2 08 00 7A 13 80 11 00 00 00 00 00 00 07 [11:24:46]Write i2c OK [11:24:46]MH_I2C_Read... [11:24:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:46]Read from MH i2c: E2 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: E2 17 00 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: E2 17 00 7A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5A [11:24:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:24:46]wFMCommunicate OK [11:24:46]CreateOFDProtocolMessage done [11:24:46]OFDSenderStorePacket 77036 [11:24:46]StoreOFDPacket docnum=77036 [11:24:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C1 E5 07 01 83 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3A 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 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3A 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 FF 48 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EC 2C 01 00 35 04 06 00 A6 30 B3 F0 BE 90 E1 C4 D8 AF 80 71 67 20 [11:24:46]CheckFolder [11:24:46]dirname=/storage/ofd_packets [11:24:46]CheckFolder done [11:24:46]ProducePacketName [11:24:46]name=ofd_packets/00077036 [11:24:46]NVStorageSaveData ofd_packets/00077036 [11:24:46]File name is /storage/ofd_packets/00077036 [11:24:46]Write 301 bytes [11:24:46]NVStorageSaveData done [11:24:46]OFDSenderStorePacket done [11:24:46]KKMCreateOFDPacket done [11:24:46]NVStorageSaveData kkm_last_timestamp [11:24:46]File name is /storage/kkm_last_timestamp [11:24:46]Write 4 bytes [11:24:46]NVStorageSaveData done [11:24:46]ExternCall_PrintAddStr [11:24:46]wPrintStart [11:24:46]Write to MH i2c: 01 00 00 7B 13 8E [11:24:46]Write i2c OK [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: 01 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: 01 07 00 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: 01 07 00 7B 13 00 00 00 00 00 FF 0F A3 [11:24:46]RasterBufferAndPrint [11:24:46]line Счет N : (1)191617 [11:24:46]line ИНН: 02508201610067 [11:24:46]line Контрольно-Кассовый Чек [11:24:46]line ПРОДАЖА [11:24:46]line ТРК (МРК, ГНК) : 33 [11:24:46]line Товар: 2710124130 [11:24:46]line Аи-92-К-5 [11:24:46]line 4.660 * 64.40 [11:24:46]line = 300.10 [11:24:46]line НДС 12% НСП 1% [11:24:46]line > о реализуемом товаре [11:24:46]line ИТОГО: 300.10 [11:24:46]line НСП 1% : 2.66 [11:24:46]line НДС 12% : 31.87 [11:24:46]line Наличными: 0.00 [11:24:46]line Безнал.: 300.10 [11:24:46]line Место: АЗС № 106 "Партнер Нефть" [11:24:46]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:24:46]line СНО: Общий режим [11:24:46]line Чек 55 22.04.2024 11:24 [11:24:46]line Смена: 373 ФФД: 1.0 [11:24:46]line ЗНМ: 0300000141 [11:24:46]line РНМ: 0000000000091573 [11:24:46]line Версия ККМ: 001 [11:24:46]line Платежная система: О! деньги [11:24:46]line ФМ: 0000000000874652 [11:24:46]line ФД: 77036 [11:24:46]line ФПД: 182728107540112 [11:24:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T112447&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77036&fm=182728107540112&tin=02508201610067®Number=0000000000091573&sum=30010 [11:24:46]written 0, free lines is 4095 [11:24:46]OFD Sender: Processing packet 77036 [packets to send 129, broken 128] [11:24:46]ProducePacketName [11:24:46]name=ofd_packets/00077036 [11:24:46]OFD Sender: To server: pG, [11:24:46]CommunicateWithHost lk.salyk.kg:30040 [11:24:46]ConnectInit lk.salyk.kg [11:24:46]Write to MH i2c: 01 00 00 A4 13 B7 [11:24:46]Write i2c OK [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: 01 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: 01 07 00 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: 01 07 00 A4 13 00 00 00 00 00 FB 0C C5 [11:24:46]RasterBufferAndPrint [11:24:46]line [11:24:46]line [11:24:46]line [11:24:46]line [11:24:46]line [11:24:46]written 0, free lines is 3329 [11:24:46]MH_Cut [11:24:46]Write to MH i2c: D1 01 00 AB 13 01 90 [11:24:46]Write i2c OK [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: D1 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: D1 01 00 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: D1 01 00 AB 13 00 8F [11:24:46]Write to MH i2c: 01 00 00 AC 13 BF [11:24:46]Write i2c OK [11:24:46]MH_I2C_Read... [11:24:47]*** Cut start [11:24:47]*** Partial cut [11:24:47]*** CUTSNS_PIN = 1 [11:24:47]*** CUTSNS_PIN = 0 [11:24:47]*** Brake cut motor [11:24:47]Read from MH i2c: 01 [11:24:47]MH_I2C_Read... [11:24:47]*** Stop cut motor [11:24:47]*** Cut end [11:24:47]Read from MH i2c: 01 07 00 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: 01 07 00 AC 13 00 00 00 00 00 FF 0F D4 [11:24:47]process_action close_receipt done [11:24:47]requested_data is exist [11:24:47]produce_requested_data [11:24:47]requested_item fm.sn is exist - process it [11:24:47]wFMCommunicate request_size=4 [11:24:47]MH_SAM_APDU [11:24:47]CAPDU: 80 11 00 00 [11:24:47]Write to MH i2c: E2 08 00 AD 13 80 11 00 00 00 00 00 00 3A [11:24:47]Write i2c OK [11:24:47]MH_I2C_Read... [11:24:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:47]Read from MH i2c: E2 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: E2 17 00 [11:24:47]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 17 00 AD 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8D [11:24:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:24:48]wFMCommunicate OK [11:24:48]requested_item fd.num is exist - process it [11:24:48]SAM_PROTO_GetFieldsCounters [11:24:48]wFMCommunicate request_size=4 [11:24:48]MH_SAM_APDU [11:24:48]CAPDU: 80 13 00 00 [11:24:48]Write to MH i2c: E2 08 00 AE 13 80 13 00 00 00 00 00 00 3D [11:24:48]Write i2c OK [11:24:48]MH_I2C_Read... [11:24:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:48]Read from MH i2c: E2 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 62 00 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 62 00 AE 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EC 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [11:24:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EC 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:48]wFMCommunicate OK [11:24:48]SAM_PROTO_GetFieldsCounters done [11:24:48]requested_item shift.num is exist - process it [11:24:48]requested_item shift.opened is exist - process it [11:24:48]req_shift_opened [11:24:48]FM_GetShiftState [11:24:48]SAM_PROTO_GetShiftState [11:24:48]wFMCommunicate request_size=4 [11:24:48]MH_SAM_APDU [11:24:48]CAPDU: 80 13 01 00 [11:24:48]Write to MH i2c: E2 08 00 AF 13 80 13 01 00 00 00 00 00 3F [11:24:48]Write i2c OK [11:24:48]MH_I2C_Read... [11:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:48]Read from MH i2c: E2 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 0E 00 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 0E 00 AF 13 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 66 [11:24:48]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:24:48]wFMCommunicate OK [11:24:48]SAM_PROTO_GetShiftState done [11:24:48]FM_GetShiftState done [11:24:48]req_shift_opened done [11:24:48]requested_item shift.open_date is exist - process it [11:24:48]req_shift_open_date [11:24:48]req_shift_open_date done [11:24:48]produce_requested_data done [11:24:48]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77036,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [11:24:48]process_action_free close_receipt [11:24:48]json_value_free [11:24:48]json_value_free done [11:24:48]process_json_proto returns [11:24:48]Send response to host [11:24:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77036,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [11:24:48]free response buf [11:24:48]execute_script done [11:24:48]execute_script returns [11:24:48]free content buf [11:24:48]Sock 7.Close socket [11:24:48]Sock 7.Thread stoped [11:26:55]ConnectInit Can't connect to host [11:26:55]CommunicateWithHost connect error [11:26:55]CommunicateWithHost err = -1 [11:26:55]OFD Sender: Server communicate error [11:27:00]OFD Sender: Processing packet 77036 [packets to send 129, broken 128] [11:27:00]ProducePacketName [11:27:00]name=ofd_packets/00077036 [11:27:00]OFD Sender: To server: pG, [11:27:00]CommunicateWithHost lk.salyk.kg:30040 [11:27:00]ConnectInit lk.salyk.kg [11:27:00]Connected sock=7 [11:27:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C1 E5 07 01 83 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3A 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 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3A 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 FF 48 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EC 2C 01 00 35 04 06 00 A6 30 B3 F0 BE 90 E1 C4 D8 AF 80 71 67 20 [11:27:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 85 7A 47 00 24 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EC 2C 01 00 F4 03 04 00 08 F1 25 66 B6 04 01 00 00 2E 42 33 1C 73 9D 93 84 [11:27:00]CommunicateWithHost err = 0 [11:27:00]CheckOFDResponse [11:27:00]1017 (14) - 77093643461234 [11:27:00]1041 (16) - 0000000000874652 [11:27:00]1040 (4) - 77036 [11:27:00]1012 (4) - 22.04.2024 05:09 [11:27:00]1206 (1) - 0 [11:27:00]OFD Sender: Remove packet 77036 [11:27:00]ProducePacketName [11:27:00]name=ofd_packets/00077036 [11:27:00]NVStorageDeleteData [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:31]OFD Sender: No OFD packet to send [11:28:36]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]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:03]accept exits with 9 [11:29:03]New connection [11:29:03]New thread 3067030884 created [11:29:03]Thread 3067174244 joined [11:29:03]Waiting for new connection... [11:29:03] Sock 9.Parse request [11:29:03]Sock 9.Check first char [11:29:03]Sock 9.First char is OK [11:29:03]request: POST /json_proto HTTP/1.0 [11:29:03]Method: POST [11:29:03]URL: /json_proto [11:29:03]Method is POST - this is cgi request [11:29:03]url: /json_proto [11:29:03]query_string will be loaded in cgi processing [11:29:03]execute_cgi json_proto POST (null) [11:29:03]execute_cgi path=json_proto method=POST [11:29:03]POST find Content-Length [11:29:03]Host: 172.17.62.5:8080 [11:29:03]Content-Length: 801 [11:29:03]Content-Type: application/json [11:29:03] [11:29:03]POST finish read [11:29:03]Found Content-Length = 801 [11:29:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:03]execute_script... [11:29: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)191618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:03]POST & json_proto [11:29:03]process_json_proto [11:29:03]json parsed OK: [11:29:03]protocol is kg_v1.0 [11:29:03]action value=close_receipt [11:29:03]process_action close_receipt [11:29:03]cmd_close_receipt [11:29:03]MH_GetDate [11:29:03]Write to MH i2c: F0 00 00 B0 13 B2 [11:29:03]Write i2c OK [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: F0 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: F0 09 00 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: F0 09 00 B0 13 00 02 4A 26 66 F4 E9 65 64 39 [11:29:03]GetLastDocTimeStamp 1713785087 [11:29:03]current date 1713785346 [11:29:03]FM_GetShiftState [11:29:03]SAM_PROTO_GetShiftState [11:29:03]wFMCommunicate request_size=4 [11:29:03]MH_SAM_APDU [11:29:03]CAPDU: 80 13 01 00 [11:29:03]Write to MH i2c: E2 08 00 B1 13 80 13 01 00 00 00 00 00 41 [11:29:03]Write i2c OK [11:29:03]MH_I2C_Read... [11:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:03]Read from MH i2c: E2 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 0E 00 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 0E 00 B1 13 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 68 [11:29:03]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:29:03]wFMCommunicate OK [11:29:03]SAM_PROTO_GetShiftState done [11:29:03]FM_GetShiftState done [11:29:03]opened in 1713745124 [11:29:03]opened+sec_in_day 1713831524 [11:29:03]quantity*price = 100062 [11:29:03]sum+1 = 100063 [11:29:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.62 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.62 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 56 22.04.2024 11:29 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 77037 ФПД: 243141386633432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T112906&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77037&fm=243141386633432&tin=02508201610067®Number=0000000000091573&sum=100062 [11:29:04]StoreToDocumentArchive [11:29:04]shift 373 fd 77037 [11:29:04]save to /storage/0373/doc_00077037 [11:29:04]save last doc name /storage/0373/doc_00077037 to /storage/kkm_last_doc_name [11:29:04]save OK [11:29:04]Clear old archive folders... [11:29:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:29:04]tlvbuf is 01746B80 [11:29:04]SAM_PROTO_ClearQueue [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 09 00 00 [11:29:04]Write to MH i2c: E2 08 00 BE 13 80 09 00 00 00 00 00 00 43 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 BE 13 00 90 00 45 [11:29:04]RAPDU: 90 00 [11:29:04]wFMCommunicate OK [11:29:04]SAM_PROTO_ClearQueue done [11:29:04]KKMCreateOFDPacket [11:29:04]OFDProtocolAddRootSTLVToBuf [11:29:04]FM_MakeSignedData [11:29:04]FM_MakeSignedData [11:29:04]SAM_PROTO_SignData [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 0D 01 02 [11:29:04]Write to MH i2c: E2 08 00 BF 13 80 0D 01 02 00 00 00 00 4B [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 BF 13 00 90 00 46 [11:29:04]RAPDU: 90 00 [11:29:04]wFMCommunicate OK [11:29:04]wFMCommunicate request_size=255 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 02 4A 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 ED 2C 01 00 35 04 06 00 [11:29:04]Write to MH i2c: E2 02 01 C0 13 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 02 4A 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 ED 2C 01 00 35 04 06 00 00 00 88 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 C0 13 00 90 00 47 [11:29:04]RAPDU: 90 00 [11:29:04]wFMCommunicate OK [11:29:04]wFMCommunicate request_size=11 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 0D 02 02 06 DD 22 C3 FB 00 D8 [11:29:04]Write to MH i2c: E2 0E 00 C1 13 80 0D 02 02 06 00 DD 22 C3 FB 00 D8 00 00 EF [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 C1 13 00 90 00 48 [11:29:04]RAPDU: 90 00 [11:29:04]wFMCommunicate OK [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 0D 03 02 [11:29:04]Write to MH i2c: E2 08 00 C2 13 80 0D 03 02 00 00 00 00 50 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 0B 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 0B 00 C2 13 00 E3 5D 1E 27 C7 96 23 54 90 00 AA [11:29:04]RAPDU: E3 5D 1E 27 C7 96 23 54 90 00 [11:29:04]wFMCommunicate OK [11:29:04]SAM_PROTO_SignData done [11:29:04]FM_MakeSignedData done [11:29:04]CreateOFDProtocolMessage [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 11 00 00 [11:29:04]Write to MH i2c: E2 08 00 C3 13 80 11 00 00 00 00 00 00 50 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 17 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 17 00 C3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A3 [11:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:29:04]wFMCommunicate OK [11:29:04]CreateOFDProtocolMessage done [11:29:04]OFDSenderStorePacket 77037 [11:29:04]StoreOFDPacket docnum=77037 [11:29:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 B5 81 08 01 61 D1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 02 4A 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 ED 2C 01 00 35 04 06 00 DD 22 C3 FB 00 D8 E3 5D 1E 27 C7 96 23 54 [11:29:04]CheckFolder [11:29:04]dirname=/storage/ofd_packets [11:29:04]CheckFolder done [11:29:04]ProducePacketName [11:29:04]name=ofd_packets/00077037 [11:29:04]NVStorageSaveData ofd_packets/00077037 [11:29:04]File name is /storage/ofd_packets/00077037 [11:29:04]Write 302 bytes [11:29:04]NVStorageSaveData done [11:29:04]OFDSenderStorePacket done [11:29:04]KKMCreateOFDPacket done [11:29:04]NVStorageSaveData kkm_last_timestamp [11:29:04]File name is /storage/kkm_last_timestamp [11:29:04]Write 4 bytes [11:29:04]NVStorageSaveData done [11:29:04]ExternCall_PrintAddStr [11:29:04]wPrintStart [11:29:04]Write to MH i2c: 01 00 00 C4 13 D7 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: 01 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: 01 07 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: 01 07 00 C4 13 00 00 00 00 00 FF 0F EC [11:29:04]RasterBufferAndPrint [11:29:04]line Счет N : (1)191618 [11:29:04]line ИНН: 02508201610067 [11:29:04]line Контрольно-Кассовый Чек [11:29:04]line ПРОДАЖА [11:29:04]line ТРК (МРК, ГНК) : 31 [11:29:04]line Товар: 2710124130 [11:29:04]line SUPER 92-К-5 [11:29:04]line 15.300 * 65.40 [11:29:04]line = 1000.62 [11:29:04]line НДС 12% НСП 1% [11:29:04]line > о реализуемом товаре [11:29:04]line ИТОГО: 1000.62 [11:29:04]line НСП 1% : 8.85 [11:29:04]line НДС 12% : 106.26 [11:29:04]line Наличными: 0.00 [11:29:04]line Безнал.: 1000.62 [11:29:04]line Место: АЗС № 106 "Партнер Нефть" [11:29:04]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:29:04]line СНО: Общий режим [11:29:04]line Чек 56 22.04.2024 11:29 [11:29:04]line Смена: 373 ФФД: 1.0 [11:29:04]line ЗНМ: 0300000141 [11:29:04]line РНМ: 0000000000091573 [11:29:04]line Версия ККМ: 001 [11:29:04]line Платежная система: О! деньги [11:29:04]line ФМ: 0000000000874652 [11:29:04]line ФД: 77037 [11:29:04]line ФПД: 243141386633432 [11:29:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T112906&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77037&fm=243141386633432&tin=02508201610067®Number=0000000000091573&sum=100062 [11:29:04]written 0, free lines is 4095 [11:29:04]OFD Sender: Processing packet 77037 [packets to send 129, broken 128] [11:29:04]ProducePacketName [11:29:04]name=ofd_packets/00077037 [11:29:04]OFD Sender: To server: pG, [11:29:04]CommunicateWithHost lk.salyk.kg:30040 [11:29:04]ConnectInit lk.salyk.kg [11:29:05]Connected sock=10 [11:29:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 B5 81 08 01 61 D1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 02 4A 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 ED 2C 01 00 35 04 06 00 DD 22 C3 FB 00 D8 E3 5D 1E 27 C7 96 23 54 [11:29:05]Write to MH i2c: 01 00 00 ED 13 00 [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 07 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 07 00 ED 13 00 00 00 00 00 FA 0C 0D [11:29:05]RasterBufferAndPrint [11:29:05]line [11:29:05]line [11:29:05]line [11:29:05]line [11:29:05]line [11:29:05]written 0, free lines is 3328 [11:29:05]MH_Cut [11:29:05]Write to MH i2c: D1 01 00 F4 13 01 D9 [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: D1 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: D1 01 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: D1 01 00 F4 13 00 D8 [11:29:05]Write to MH i2c: 01 00 00 F5 13 08 [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 BD F3 47 00 05 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 ED 2C 01 00 F4 03 04 00 84 F1 25 66 B6 04 01 00 00 BD 55 8E D0 59 16 34 0D [11:29:05]CommunicateWithHost err = 0 [11:29:05]CheckOFDResponse [11:29:05]1017 (14) - 77093643461234 [11:29:05]1041 (16) - 0000000000874652 [11:29:05]1040 (4) - 77037 [11:29:05]1012 (4) - 22.04.2024 05:11 [11:29:05]1206 (1) - 0 [11:29:05]OFD Sender: Remove packet 77037 [11:29:05]ProducePacketName [11:29:05]name=ofd_packets/00077037 [11:29:05]NVStorageDeleteData [11:29:05]OFD Sender: No OFD packet to send [11:29:05]*** Cut start [11:29:05]*** Partial cut [11:29:05]*** CUTSNS_PIN = 1 [11:29:06]*** CUTSNS_PIN = 0 [11:29:06]*** Brake cut motor [11:29:06]Read from MH i2c: 01 [11:29:06]MH_I2C_Read... [11:29:06]*** Stop cut motor [11:29:06]*** Cut end [11:29:06]Read from MH i2c: 01 07 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: 01 07 00 F5 13 00 00 00 00 00 FF 0F 1D [11:29:06]process_action close_receipt done [11:29:06]requested_data is exist [11:29:06]produce_requested_data [11:29:06]requested_item fm.sn is exist - process it [11:29:06]wFMCommunicate request_size=4 [11:29:06]MH_SAM_APDU [11:29:06]CAPDU: 80 11 00 00 [11:29:06]Write to MH i2c: E2 08 00 F6 13 80 11 00 00 00 00 00 00 83 [11:29:06]Write i2c OK [11:29:06]MH_I2C_Read... [11:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:06]Read from MH i2c: E2 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 17 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 17 00 F6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D6 [11:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:29:06]wFMCommunicate OK [11:29:06]requested_item fd.num is exist - process it [11:29:06]SAM_PROTO_GetFieldsCounters [11:29:06]wFMCommunicate request_size=4 [11:29:06]MH_SAM_APDU [11:29:06]CAPDU: 80 13 00 00 [11:29:06]Write to MH i2c: E2 08 00 F7 13 80 13 00 00 00 00 00 00 86 [11:29:06]Write i2c OK [11:29:06]MH_I2C_Read... [11:29:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:06]Read from MH i2c: E2 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 62 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 62 00 F7 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 ED 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [11:29:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 ED 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:06]wFMCommunicate OK [11:29:06]SAM_PROTO_GetFieldsCounters done [11:29:06]requested_item shift.num is exist - process it [11:29:06]requested_item shift.opened is exist - process it [11:29:06]req_shift_opened [11:29:06]FM_GetShiftState [11:29:06]SAM_PROTO_GetShiftState [11:29:06]wFMCommunicate request_size=4 [11:29:06]MH_SAM_APDU [11:29:06]CAPDU: 80 13 01 00 [11:29:06]Write to MH i2c: E2 08 00 F8 13 80 13 01 00 00 00 00 00 88 [11:29:06]Write i2c OK [11:29:06]MH_I2C_Read... [11:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:06]Read from MH i2c: E2 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 0E 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 0E 00 F8 13 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 AF [11:29:06]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:29:06]wFMCommunicate OK [11:29:06]SAM_PROTO_GetShiftState done [11:29:06]FM_GetShiftState done [11:29:06]req_shift_opened done [11:29:06]requested_item shift.open_date is exist - process it [11:29:06]req_shift_open_date [11:29:06]req_shift_open_date done [11:29:06]produce_requested_data done [11:29:06]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77037,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [11:29:06]process_action_free close_receipt [11:29:06]json_value_free [11:29:06]json_value_free done [11:29:06]process_json_proto returns [11:29:06]Send response to host [11:29:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77037,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [11:29:06]free response buf [11:29:06]execute_script done [11:29:06]execute_script returns [11:29:06]free content buf [11:29:06]Sock 9.Close socket [11:29:06]Sock 9.Thread stoped [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31: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:13]accept exits with 7 [11:35:13]New connection [11:35:13]New thread 3067174244 created [11:35:13]Thread 3067030884 joined [11:35:13]Waiting for new connection... [11:35:13] Sock 7.Parse request [11:35:13]Sock 7.Check first char [11:35:13]Sock 7.First char is OK [11:35:13]request: POST /json_proto HTTP/1.0 [11:35:13]Method: POST [11:35:13]URL: /json_proto [11:35:13]Method is POST - this is cgi request [11:35:13]url: /json_proto [11:35:13]query_string will be loaded in cgi processing [11:35:13]execute_cgi json_proto POST (null) [11:35:13]execute_cgi path=json_proto method=POST [11:35:13]POST find Content-Length [11:35:13]Host: 172.17.62.5:8080 [11:35:13]Content-Length: 675 [11:35:13]Content-Type: application/json [11:35:13] [11:35:13]POST finish read [11:35:13]Found Content-Length = 675 [11:35:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:13]execute_script... [11:35: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)191620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:13]POST & json_proto [11:35:13]process_json_proto [11:35:13]json parsed OK: [11:35:13]protocol is kg_v1.0 [11:35:13]action value=close_receipt [11:35:13]process_action close_receipt [11:35:13]cmd_close_receipt [11:35:13]MH_GetDate [11:35:13]Write to MH i2c: F0 00 00 F9 13 FB [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: F0 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: F0 09 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: F0 09 00 F9 13 00 74 4B 26 66 F4 E9 65 64 F5 [11:35:13]GetLastDocTimeStamp 1713785346 [11:35:13]current date 1713785716 [11:35:13]FM_GetShiftState [11:35:13]SAM_PROTO_GetShiftState [11:35:13]wFMCommunicate request_size=4 [11:35:13]MH_SAM_APDU [11:35:13]CAPDU: 80 13 01 00 [11:35:13]Write to MH i2c: E2 08 00 FA 13 80 13 01 00 00 00 00 00 8A [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 0E 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 0E 00 FA 13 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 B1 [11:35:13]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:35:13]wFMCommunicate OK [11:35:13]SAM_PROTO_GetShiftState done [11:35:13]FM_GetShiftState done [11:35:13]opened in 1713745124 [11:35:13]opened+sec_in_day 1713831524 [11:35:13]quantity*price = 73045 [11:35:13]sum+1 = 73047 [11:35:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 730.00 Внесено: 730.00 СДАЧА: 0.00 НСП 1% : 6.46 НДС 12% : 77.57 Наличными: 730.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 57 22.04.2024 11:35 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77038 ФПД: 117482277173999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T113516&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77038&fm=117482277173999&tin=02508201610067®Number=0000000000091573&sum=73000 [11:35:14]StoreToDocumentArchive [11:35:14]shift 373 fd 77038 [11:35:14]save to /storage/0373/doc_00077038 [11:35:14]save last doc name /storage/0373/doc_00077038 to /storage/kkm_last_doc_name [11:35:14]save OK [11:35:14]Clear old archive folders... [11:35:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:35:14]tlvbuf is 0171E750 [11:35:14]SAM_PROTO_ClearQueue [11:35:14]wFMCommunicate request_size=4 [11:35:14]MH_SAM_APDU [11:35:14]CAPDU: 80 09 00 00 [11:35:14]Write to MH i2c: E2 08 00 07 14 80 09 00 00 00 00 00 00 8D [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:14]Read from MH i2c: E2 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 03 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 03 00 07 14 00 90 00 8F [11:35:14]RAPDU: 90 00 [11:35:14]wFMCommunicate OK [11:35:14]SAM_PROTO_ClearQueue done [11:35:14]KKMCreateOFDPacket [11:35:14]OFDProtocolAddRootSTLVToBuf [11:35:14]FM_MakeSignedData [11:35:14]FM_MakeSignedData [11:35:14]SAM_PROTO_SignData [11:35:14]wFMCommunicate request_size=4 [11:35:14]MH_SAM_APDU [11:35:14]CAPDU: 80 0D 01 02 [11:35:14]Write to MH i2c: E2 08 00 08 14 80 0D 01 02 00 00 00 00 95 [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:14]Read from MH i2c: E2 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 03 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 03 00 08 14 00 90 00 90 [11:35:14]RAPDU: 90 00 [11:35:14]wFMCommunicate OK [11:35:14]wFMCommunicate request_size=255 [11:35:14]MH_SAM_APDU [11:35:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 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 74 4B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EE 2C 01 00 35 04 06 00 6A D9 79 65 [11:35:14]Write to MH i2c: E2 02 01 09 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 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 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 74 4B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EE 2C 01 00 35 04 06 00 6A D9 79 65 00 00 FC [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:14]Read from MH i2c: E2 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 03 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 03 00 09 14 00 90 00 91 [11:35:14]RAPDU: 90 00 [11:35:14]wFMCommunicate OK [11:35:14]wFMCommunicate request_size=7 [11:35:14]MH_SAM_APDU [11:35:14]CAPDU: 80 0D 02 02 02 FA EF [11:35:14]Write to MH i2c: E2 0A 00 0A 14 80 0D 02 02 02 00 FA EF 00 00 85 [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:14]Read from MH i2c: E2 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 03 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 03 00 0A 14 00 90 00 92 [11:35:14]RAPDU: 90 00 [11:35:14]wFMCommunicate OK [11:35:14]wFMCommunicate request_size=4 [11:35:14]MH_SAM_APDU [11:35:14]CAPDU: 80 0D 03 02 [11:35:14]Write to MH i2c: E2 08 00 0B 14 80 0D 03 02 00 00 00 00 9A [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:14]Read from MH i2c: E2 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 0B 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 0B 00 0B 14 00 B8 31 D2 1C 55 0C C7 98 90 00 32 [11:35:14]RAPDU: B8 31 D2 1C 55 0C C7 98 90 00 [11:35:14]wFMCommunicate OK [11:35:14]SAM_PROTO_SignData done [11:35:14]FM_MakeSignedData done [11:35:14]CreateOFDProtocolMessage [11:35:14]wFMCommunicate request_size=4 [11:35:14]MH_SAM_APDU [11:35:14]CAPDU: 80 11 00 00 [11:35:14]Write to MH i2c: E2 08 00 0C 14 80 11 00 00 00 00 00 00 9A [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:14]Read from MH i2c: E2 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 17 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 17 00 0C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 ED [11:35:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:35:14]wFMCommunicate OK [11:35:14]CreateOFDProtocolMessage done [11:35:14]OFDSenderStorePacket 77038 [11:35:14]StoreOFDPacket docnum=77038 [11:35:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 2D 28 04 01 42 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 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 74 4B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EE 2C 01 00 35 04 06 00 6A D9 79 65 FA EF B8 31 D2 1C 55 0C C7 98 [11:35:14]CheckFolder [11:35:14]dirname=/storage/ofd_packets [11:35:14]CheckFolder done [11:35:14]ProducePacketName [11:35:14]name=ofd_packets/00077038 [11:35:14]NVStorageSaveData ofd_packets/00077038 [11:35:14]File name is /storage/ofd_packets/00077038 [11:35:14]Write 298 bytes [11:35:14]NVStorageSaveData done [11:35:14]OFDSenderStorePacket done [11:35:14]KKMCreateOFDPacket done [11:35:14]NVStorageSaveData kkm_last_timestamp [11:35:14]File name is /storage/kkm_last_timestamp [11:35:14]Write 4 bytes [11:35:14]NVStorageSaveData done [11:35:14]ExternCall_PrintAddStr [11:35:14]wPrintStart [11:35:14]Write to MH i2c: 01 00 00 0D 14 21 [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: 01 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: 01 07 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: 01 07 00 0D 14 00 00 00 00 00 FF 0F 36 [11:35:14]RasterBufferAndPrint [11:35:14]line Счет N : (1)191620 [11:35:14]line ИНН: 02508201610067 [11:35:14]line Контрольно-Кассовый Чек [11:35:14]line ПРОДАЖА [11:35:14]line ТРК (МРК, ГНК) : 61 [11:35:14]line Товар: 2710194210 [11:35:14]line ДТ-К-5 [11:35:14]line 10.020 * 72.90 [11:35:14]line = 730.46 [11:35:14]line НДС 12% НСП 1% [11:35:14]line > о реализуемом товаре [11:35:14]line ОКРУГЛЕНИЕ: -0.46 [11:35:14]line ИТОГО: 730.00 [11:35:14]line Внесено: 730.00 [11:35:14]line СДАЧА: 0.00 [11:35:14]line НСП 1% : 6.46 [11:35:14]line НДС 12% : 77.57 [11:35:14]line Наличными: 730.00 [11:35:14]line Безнал.: 0.00 [11:35:14]line Место: АЗС № 106 "Партнер Нефть" [11:35:14]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:35:14]line СНО: Общий режим [11:35:14]line Чек 57 22.04.2024 11:35 [11:35:14]line Смена: 373 ФФД: 1.0 [11:35:14]line ЗНМ: 0300000141 [11:35:14]line РНМ: 0000000000091573 [11:35:14]line Версия ККМ: 001 [11:35:14]line ФМ: 0000000000874652 [11:35:14]line ФД: 77038 [11:35:14]line ФПД: 117482277173999 [11:35:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T113516&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77038&fm=117482277173999&tin=02508201610067®Number=0000000000091573&sum=73000 [11:35:15]OFD Sender: Processing packet 77038 [packets to send 129, broken 128] [11:35:15]ProducePacketName [11:35:15]name=ofd_packets/00077038 [11:35:15]OFD Sender: To server: pG, [11:35:15]CommunicateWithHost lk.salyk.kg:30040 [11:35:15]ConnectInit lk.salyk.kg [11:35:15]written 0, free lines is 4095 [11:35:15]Connected sock=10 [11:35:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 2D 28 04 01 42 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 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 74 4B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EE 2C 01 00 35 04 06 00 6A D9 79 65 FA EF B8 31 D2 1C 55 0C C7 98 [11:35:15]Write to MH i2c: 01 00 00 37 14 4B [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: 01 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: 01 07 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: 01 07 00 37 14 00 00 00 00 00 E3 0C 41 [11:35:15]RasterBufferAndPrint [11:35:15]line [11:35:15]line [11:35:15]line [11:35:15]line [11:35:15]line [11:35:15]written 0, free lines is 3305 [11:35:15]MH_Cut [11:35:15]Write to MH i2c: D1 01 00 3E 14 01 24 [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: D1 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: D1 01 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: D1 01 00 3E 14 00 23 [11:35:15]Write to MH i2c: 01 00 00 3F 14 53 [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 DF 25 47 00 45 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EE 2C 01 00 F4 03 04 00 F7 F2 25 66 B6 04 01 00 00 5A A8 DF 39 CB 43 14 27 [11:35:15]CommunicateWithHost err = 0 [11:35:15]CheckOFDResponse [11:35:15]1017 (14) - 77093643461234 [11:35:15]1041 (16) - 0000000000874652 [11:35:15]1040 (4) - 77038 [11:35:15]1012 (4) - 22.04.2024 05:17 [11:35:15]1206 (1) - 0 [11:35:15]OFD Sender: Remove packet 77038 [11:35:15]ProducePacketName [11:35:15]name=ofd_packets/00077038 [11:35:15]NVStorageDeleteData [11:35:16]OFD Sender: No OFD packet to send [11:35:16]*** Cut start [11:35:16]*** Partial cut [11:35:16]*** CUTSNS_PIN = 1 [11:35:16]*** CUTSNS_PIN = 0 [11:35:16]*** Brake cut motor [11:35:17]Read from MH i2c: 01 [11:35:17]MH_I2C_Read... [11:35:17]*** Stop cut motor [11:35:17]*** Cut end [11:35:17]Read from MH i2c: 01 07 00 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: 01 07 00 3F 14 00 00 00 00 00 FF 0F 68 [11:35:17]process_action close_receipt done [11:35:17]requested_data is exist [11:35:17]produce_requested_data [11:35:17]requested_item fm.sn is exist - process it [11:35:17]wFMCommunicate request_size=4 [11:35:17]MH_SAM_APDU [11:35:17]CAPDU: 80 11 00 00 [11:35:17]Write to MH i2c: E2 08 00 40 14 80 11 00 00 00 00 00 00 CE [11:35:17]Write i2c OK [11:35:17]MH_I2C_Read... [11:35:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:17]Read from MH i2c: E2 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: E2 17 00 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: E2 17 00 40 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 21 [11:35:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:35:17]wFMCommunicate OK [11:35:17]requested_item fd.num is exist - process it [11:35:17]SAM_PROTO_GetFieldsCounters [11:35:17]wFMCommunicate request_size=4 [11:35:17]MH_SAM_APDU [11:35:17]CAPDU: 80 13 00 00 [11:35:17]Write to MH i2c: E2 08 00 41 14 80 13 00 00 00 00 00 00 D1 [11:35:17]Write i2c OK [11:35:17]MH_I2C_Read... [11:35:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:17]Read from MH i2c: E2 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: E2 62 00 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: E2 62 00 41 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EE 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [11:35:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EE 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:17]wFMCommunicate OK [11:35:17]SAM_PROTO_GetFieldsCounters done [11:35:17]requested_item shift.num is exist - process it [11:35:17]requested_item shift.opened is exist - process it [11:35:17]req_shift_opened [11:35:17]FM_GetShiftState [11:35:17]SAM_PROTO_GetShiftState [11:35:17]wFMCommunicate request_size=4 [11:35:17]MH_SAM_APDU [11:35:17]CAPDU: 80 13 01 00 [11:35:17]Write to MH i2c: E2 08 00 42 14 80 13 01 00 00 00 00 00 D3 [11:35:17]Write i2c OK [11:35:17]MH_I2C_Read... [11:35:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:17]Read from MH i2c: E2 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: E2 0E 00 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: E2 0E 00 42 14 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 FA [11:35:17]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:35:17]wFMCommunicate OK [11:35:17]SAM_PROTO_GetShiftState done [11:35:17]FM_GetShiftState done [11:35:17]req_shift_opened done [11:35:17]requested_item shift.open_date is exist - process it [11:35:17]req_shift_open_date [11:35:17]req_shift_open_date done [11:35:17]produce_requested_data done [11:35:17]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77038,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [11:35:17]process_action_free close_receipt [11:35:17]json_value_free [11:35:17]json_value_free done [11:35:17]process_json_proto returns [11:35:17]Send response to host [11:35:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77038,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [11:35:17]free response buf [11:35:17]execute_script done [11:35:17]execute_script returns [11:35:17]free content buf [11:35:17]Sock 7.Close socket [11:35:17]Sock 7.Thread stoped [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:01]OFD Sender: No OFD packet to send [11:36:05]accept exits with 9 [11:36:05]New connection [11:36:05]New thread 3067030884 created [11:36:05]Thread 3067174244 joined [11:36:05]Waiting for new connection... [11:36:05] Sock 9.Parse request [11:36:05]Sock 9.Check first char [11:36:05]Sock 9.First char is OK [11:36:05]request: POST /json_proto HTTP/1.0 [11:36:05]Method: POST [11:36:05]URL: /json_proto [11:36:05]Method is POST - this is cgi request [11:36:05]url: /json_proto [11:36:05]query_string will be loaded in cgi processing [11:36:05]execute_cgi json_proto POST (null) [11:36:05]execute_cgi path=json_proto method=POST [11:36:05]POST find Content-Length [11:36:05]Host: 172.17.62.5:8080 [11:36:05]Content-Length: 805 [11:36:05]Content-Type: application/json [11:36:05] [11:36:05]POST finish read [11:36:05]Found Content-Length = 805 [11:36:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:05]execute_script... [11:36: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)191621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:05]POST & json_proto [11:36:05]process_json_proto [11:36:05]json parsed OK: [11:36:05]protocol is kg_v1.0 [11:36:05]action value=close_receipt [11:36:05]process_action close_receipt [11:36:05]cmd_close_receipt [11:36:05]MH_GetDate [11:36:05]Write to MH i2c: F0 00 00 43 14 46 [11:36:05]Write i2c OK [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: F0 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: F0 09 00 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: F0 09 00 43 14 00 A8 4B 26 66 F4 E9 65 64 74 [11:36:05]GetLastDocTimeStamp 1713785716 [11:36:05]current date 1713785768 [11:36:05]FM_GetShiftState [11:36:05]SAM_PROTO_GetShiftState [11:36:05]wFMCommunicate request_size=4 [11:36:05]MH_SAM_APDU [11:36:05]CAPDU: 80 13 01 00 [11:36:05]Write to MH i2c: E2 08 00 44 14 80 13 01 00 00 00 00 00 D5 [11:36:05]Write i2c OK [11:36:05]MH_I2C_Read... [11:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:05]Read from MH i2c: E2 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 0E 00 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 0E 00 44 14 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 FC [11:36:05]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:36:05]wFMCommunicate OK [11:36:05]SAM_PROTO_GetShiftState done [11:36:05]FM_GetShiftState done [11:36:05]opened in 1713745124 [11:36:05]opened+sec_in_day 1713831524 [11:36:05]quantity*price = 100018 [11:36:05]sum+1 = 100020 [11:36:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 58 22.04.2024 11:36 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 77039 ФПД: 227573669167313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T113608&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77039&fm=227573669167313&tin=02508201610067®Number=0000000000091573&sum=100019 [11:36:06]StoreToDocumentArchive [11:36:06]shift 373 fd 77039 [11:36:06]save to /storage/0373/doc_00077039 [11:36:06]save last doc name /storage/0373/doc_00077039 to /storage/kkm_last_doc_name [11:36:06]save OK [11:36:06]Clear old archive folders... [11:36:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:36:06]tlvbuf is 016FD150 [11:36:06]SAM_PROTO_ClearQueue [11:36:06]wFMCommunicate request_size=4 [11:36:06]MH_SAM_APDU [11:36:06]CAPDU: 80 09 00 00 [11:36:06]Write to MH i2c: E2 08 00 51 14 80 09 00 00 00 00 00 00 D7 [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 [11:36:06]MH_I2C_Read... [11:36:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:06]Read from MH i2c: E2 03 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 03 00 51 14 00 90 00 D9 [11:36:06]RAPDU: 90 00 [11:36:06]wFMCommunicate OK [11:36:06]SAM_PROTO_ClearQueue done [11:36:06]KKMCreateOFDPacket [11:36:06]OFDProtocolAddRootSTLVToBuf [11:36:06]FM_MakeSignedData [11:36:06]FM_MakeSignedData [11:36:06]SAM_PROTO_SignData [11:36:06]wFMCommunicate request_size=4 [11:36:06]MH_SAM_APDU [11:36:06]CAPDU: 80 0D 01 02 [11:36:06]Write to MH i2c: E2 08 00 52 14 80 0D 01 02 00 00 00 00 DF [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:06]Read from MH i2c: E2 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 03 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 03 00 52 14 00 90 00 DA [11:36:06]RAPDU: 90 00 [11:36:06]wFMCommunicate OK [11:36:06]wFMCommunicate request_size=255 [11:36:06]MH_SAM_APDU [11:36:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A8 4B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EF 2C 01 00 35 04 06 00 CE FA 1F B6 [11:36:06]Write to MH i2c: E2 02 01 53 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 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A8 4B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EF 2C 01 00 35 04 06 00 CE FA 1F B6 00 00 53 [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:06]Read from MH i2c: E2 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 03 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 03 00 53 14 00 90 00 DB [11:36:06]RAPDU: 90 00 [11:36:06]wFMCommunicate OK [11:36:06]wFMCommunicate request_size=7 [11:36:06]MH_SAM_APDU [11:36:06]CAPDU: 80 0D 02 02 02 00 D1 [11:36:06]Write to MH i2c: E2 0A 00 54 14 80 0D 02 02 02 00 00 D1 00 00 B7 [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:06]Read from MH i2c: E2 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 03 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 03 00 54 14 00 90 00 DC [11:36:06]RAPDU: 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 0D 03 02 [11:36:06]Write to MH i2c: E2 08 00 55 14 80 0D 03 02 00 00 00 00 E4 [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:06]Read from MH i2c: E2 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 0B 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: E2 0B 00 55 14 00 37 1D E8 85 94 C9 81 3E 90 00 C2 [11:36:06]RAPDU: 37 1D E8 85 94 C9 81 3E 90 00 [11:36:06]wFMCommunicate OK [11:36:06]SAM_PROTO_SignData done [11:36:06]FM_MakeSignedData done [11:36:06]CreateOFDProtocolMessage [11:36:06]wFMCommunicate request_size=4 [11:36:06]MH_SAM_APDU [11:36:06]CAPDU: 80 11 00 00 [11:36:06]Write to MH i2c: E2 08 00 56 14 80 11 00 00 00 00 00 00 E4 [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:07]Read from MH i2c: E2 [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: E2 17 00 [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: E2 17 00 56 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 37 [11:36:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:36:07]wFMCommunicate OK [11:36:07]CreateOFDProtocolMessage done [11:36:07]OFDSenderStorePacket 77039 [11:36:07]StoreOFDPacket docnum=77039 [11:36:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 1F 38 04 01 BA 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A8 4B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EF 2C 01 00 35 04 06 00 CE FA 1F B6 00 D1 37 1D E8 85 94 C9 81 3E [11:36:07]CheckFolder [11:36:07]dirname=/storage/ofd_packets [11:36:07]CheckFolder done [11:36:07]ProducePacketName [11:36:07]name=ofd_packets/00077039 [11:36:07]NVStorageSaveData ofd_packets/00077039 [11:36:07]File name is /storage/ofd_packets/00077039 [11:36:07]Write 298 bytes [11:36:07]NVStorageSaveData done [11:36:07]OFDSenderStorePacket done [11:36:07]KKMCreateOFDPacket done [11:36:07]NVStorageSaveData kkm_last_timestamp [11:36:07]File name is /storage/kkm_last_timestamp [11:36:07]Write 4 bytes [11:36:07]NVStorageSaveData done [11:36:07]ExternCall_PrintAddStr [11:36:07]wPrintStart [11:36:07]Write to MH i2c: 01 00 00 57 14 6B [11:36:07]Write i2c OK [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: 01 [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: 01 07 00 [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: 01 07 00 57 14 00 00 00 00 00 FF 0F 80 [11:36:07]RasterBufferAndPrint [11:36:07]line Счет N : (1)191621 [11:36:07]line ИНН: 02508201610067 [11:36:07]line Контрольно-Кассовый Чек [11:36:07]line ПРОДАЖА [11:36:07]line ТРК (МРК, ГНК) : 13 [11:36:07]line Товар: 2710194210 [11:36:07]line ДТ-К-5 [11:36:07]line 13.720 * 72.90 [11:36:07]line = 1000.19 [11:36:07]line НДС 12% НСП 1% [11:36:07]line > о реализуемом товаре [11:36:07]line ИТОГО: 1000.19 [11:36:07]line НСП 1% : 8.85 [11:36:07]line НДС 12% : 106.21 [11:36:07]line Наличными: 0.00 [11:36:07]line Безнал.: 1000.19 [11:36:07]line Место: АЗС № 106 "Партнер Нефть" [11:36:07]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:36:07]line СНО: Общий режим [11:36:07]line Чек 58 22.04.2024 11:36 [11:36:07]line Смена: 373 ФФД: 1.0 [11:36:07]line ЗНМ: 0300000141 [11:36:07]line РНМ: 0000000000091573 [11:36:07]line Версия ККМ: 001 [11:36:07]line Платежная система: О! деньги [11:36:07]line ФМ: 0000000000874652 [11:36:07]line ФД: 77039 [11:36:07]line ФПД: 227573669167313 [11:36:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T113608&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77039&fm=227573669167313&tin=02508201610067®Number=0000000000091573&sum=100019 [11:36:07]OFD Sender: Processing packet 77039 [packets to send 129, broken 128] [11:36:07]ProducePacketName [11:36:07]name=ofd_packets/00077039 [11:36:07]OFD Sender: To server: pG, [11:36:07]CommunicateWithHost lk.salyk.kg:30040 [11:36:07]ConnectInit lk.salyk.kg [11:36:07]written 0, free lines is 4095 [11:36:07]Connected sock=10 [11:36:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 1F 38 04 01 BA 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A8 4B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 EF 2C 01 00 35 04 06 00 CE FA 1F B6 00 D1 37 1D E8 85 94 C9 81 3E [11:36:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 14 BD 47 00 D4 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 30 38 37 34 36 35 32 10 04 04 00 EF 2C 01 00 F4 03 04 00 2B F3 25 66 B6 04 01 00 00 82 55 D0 98 1B 8C 97 04 [11:36:07]CommunicateWithHost err = 0 [11:36:07]CheckOFDResponse [11:36:07]1017 (14) - 77093643461234 [11:36:07]1041 (16) - 0000000000874652 [11:36:07]1040 (4) - 77039 [11:36:07]1012 (4) - 22.04.2024 05:18 [11:36:07]1206 (1) - 0 [11:36:07]OFD Sender: Remove packet 77039 [11:36:07]ProducePacketName [11:36:07]name=ofd_packets/00077039 [11:36:07]NVStorageDeleteData [11:36:07]int [11:36:07]Write to MH i2c: 01 00 00 7E 14 92 [11:36:07]*** FLAG_PRN_PAP1 set [11:36:07]Write i2c OK [11:36:07]MH_I2C_Read... [11:36:07]Write i2c OK [11:36:07]MH_I2C_Read... [11:36:07]*** FLAG_PRN_PAP1 reset [11:36:07]Read from MH i2c: DD [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: DD [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: DD 01 00 [11:36:07]answer for other command [DD] [11:36:07]MH Int Process stopped [11:36:07]Read from MH i2c: DD 01 00 [11:36:07]MH_I2C_Read... [11:36:07]Read from MH i2c: DD 01 00 7E 14 05 74 [11:36:07]answer with wrong packet_num 147E - expected 147F [11:36:07]process_action_free close_receipt [11:36:07]json_value_free [11:36:07]json_value_free done [11:36:07]process_json_proto returns [11:36:07]Send response to host [11:36:07]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [11:36:07]free response buf [11:36:07]execute_script done [11:36:07]execute_script returns [11:36:07]free content buf [11:36:07]Sock 9.Close socket [11:36:07]Sock 9.Thread stoped [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:34]*** FLAG_PRN_PAP1 set [11:36:34]*** FLAG_PRN_PAP1 reset [11:36:34]*** FLAG_PRN_PAP1 set [11:36:34]*** FLAG_PRN_PAP2 set [11:36:37]*** FLAG_PRN_PAP1 reset [11:36:37]*** FLAG_PRN_PAP1 set [11:36:37]*** FLAG_PRN_PAP2 reset [11:36:37]*** FLAG_PRN_PAP1 reset [11:36:38]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 6F [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725CA (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 29385190+1684400628=1713785818 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CA FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 70 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 DB 4B 26 66 F4 E9 65 64 57 [11:36:59]Current date/time: 22.04.2024 11:36 [11:36:59]FM_Init [11:36:59]wFMConnect [11:36:59]MH_SAM_On [11:36:59]Write to MH i2c: E0 00 00 08 00 E7 [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]*** iso7816_init finished! [11:36:59]*** atr: [11:36:59]*** 0F 3B D5 18 FF 81 91 FE [11:36:59]*** 1F C3 80 73 C8 21 10 0A [11:36:59]*** 00 00 00 00 00 00 00 00 [11:36:59]*** 00 00 00 00 00 00 00 00 [11:36:59]*** 00 00 00 00 00 00 00 00 [11:36:59]*** 00 00 00 00 00 00 00 00 [11:36:59]*** 00 00 00 00 00 00 00 00 [11:36:59]*** 00 00 00 00 00 00 00 00 [11:36:59]Read from MH i2c: E0 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E0 10 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [11:36:59]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [11:36:59]wFMCommunicate request_size=10 [11:36:59]MH_SAM_APDU [11:36:59]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [11:36:59]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [11:36:59]Read from MH i2c: E2 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 03 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [11:36:59]RAPDU: 90 00 [11:36:59]wFMCommunicate OK [11:36:59]wFMCommunicate request_size=4 [11:36:59]MH_SAM_APDU [11:36:59]CAPDU: 80 11 00 00 [11:36:59]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:59]Read from MH i2c: E2 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 17 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D7 [11:36:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:36:59]wFMCommunicate OK [11:36:59]Detected FM SN is 0000000000874652 [11:36:59]Stored FM SN is 0000000000874652 [11:36:59]wFMCommunicate request_size=9 [11:36:59]MH_SAM_APDU [11:36:59]CAPDU: 80 16 00 00 04 68 2F 01 00 [11:36:59]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 68 2F 01 00 00 00 2A [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [11:36:59]Read from MH i2c: E2 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 03 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [11:36:59]RAPDU: 90 00 [11:36:59]wFMCommunicate OK [11:36:59]FM PIN OK [11:36:59]wFMCommunicate request_size=8 [11:36:59]MH_SAM_APDU [11:36:59]CAPDU: 80 14 04 00 03 02 00 01 [11:36:59]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [11:36:59]Read from MH i2c: E2 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 03 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [11:36:59]RAPDU: 90 00 [11:36:59]wFMCommunicate OK [11:36:59]wFMCommunicate request_size=13 [11:36:59]MH_SAM_APDU [11:36:59]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [11:36:59]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [11:36:59]Read from MH i2c: E2 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 03 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [11:36:59]RAPDU: 90 00 [11:36:59]wFMCommunicate OK [11:36:59]wFMCommunicate request_size=4 [11:36:59]MH_SAM_APDU [11:36:59]CAPDU: 80 11 00 00 [11:36:59]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:59]Read from MH i2c: E2 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 17 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DB [11:36:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:36:59]wFMCommunicate OK [11:36:59]DocumentArchiveInit [11:36:59]Start Httpd... [11:36:59]Httpd thread 3067768164 created [11:36:59]Write to MH i2c: 01 00 00 0F 00 0F [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: 01 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: 01 07 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [11:36:59]MH Int Process started [11:36:59]Allocated Socket 7 [11:36:59]Bind OK [11:36:59]Listen OK [11:36:59]httpd running on port 8080 [11:36:59]Waiting for new connection... [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]accept exits with 8 [11:37:24]New connection [11:37:24]New thread 3067481444 created [11:37:24]Waiting for new connection... [11:37:24] Sock 8.Parse request [11:37:24]Sock 8.Check first char [11:37:24]Sock 8.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.62.5: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 10 00 80 11 00 00 00 00 00 00 8A [11:37:24]Write i2c OK [11:37:24]MH_I2C_Read... [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]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:24]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DD [11:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 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 11 00 80 13 00 00 00 00 00 00 8D [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 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [11:37:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 EF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11: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 12 00 80 13 01 00 00 00 00 00 8F [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 12 00 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 B6 [11:37:24]RAPDU: 09 00 01 E4 AC 25 66 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":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":77039,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [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":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":77039,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [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 8.Close socket [11:37:24]Sock 8.Thread stoped [11:37:24]accept exits with 9 [11:37:24]New connection [11:37:24]New thread 3067338084 created [11:37:24]Thread 3067481444 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.62.5: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: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 fm.sale.total is exist - process it [11:37:24]SAM_PROTO_GetFMData [11:37:24]wFMCommunicate request_size=4 [11:37:24]MH_SAM_APDU [11:37:24]CAPDU: 80 13 03 00 [11:37:24]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:37:24]OFD Sender: No OFD packet to send [11:37:24]Write i2c OK [11:37:24]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 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 05 2A 01 00 69 04 A3 00 6F 04 04 00 12 28 01 00 B1 04 05 00 BB 2C 2C BC 02 70 04 05 00 A4 72 F6 77 02 72 04 04 00 17 BA 35 44 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 F2 75 5D 4A 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 9D 63 32 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 90 00 57 [11:37:25]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 05 2A 01 00 69 04 A3 00 6F 04 04 00 12 28 01 00 B1 04 05 00 BB 2C 2C BC 02 70 04 05 00 A4 72 F6 77 02 72 04 04 00 17 BA 35 44 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 F2 75 5D 4A 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 9D 63 32 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F3 01 00 00 B1 04 05 00 F4 34 DE 15 01 70 04 05 00 F4 34 DE 15 01 72 04 00 00 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 6D 18 82 1D EF 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 14 00 80 17 00 00 00 00 00 00 94 [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 14 00 00 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 ED 81 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 88 [11:37:25]RAPDU: 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 ED 81 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 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 15 00 80 17 00 00 00 00 00 00 95 [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 15 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 6D [11:37:25]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [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 16 00 80 17 00 00 00 00 00 00 96 [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 16 00 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 0E [11:37:25]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 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 17 00 80 17 00 00 00 00 00 00 97 [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 = 226! [11:37:26]Read from MH i2c: E2 [11:37:26]MH_I2C_Read... [11:37:26]Read from MH i2c: E2 E5 00 [11:37:26]MH_I2C_Read... [11:37:26]Read from MH i2c: E2 E5 00 17 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [11:37:26]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 18 00 80 13 02 00 00 00 00 00 96 [11:37:26]Write i2c OK [11:37:26]MH_I2C_Read... [11:37:26]*** iso7816_exchange 80 13 02 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 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 3A 00 00 00 69 04 9B 00 6F 04 04 00 3A 00 00 00 B1 04 03 00 B4 D7 5B 70 04 03 00 44 A9 3F 72 04 03 00 70 2E 1C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 49 C1 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 D0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 90 [11:37:26]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 3A 00 00 00 69 04 9B 00 6F 04 04 00 3A 00 00 00 B1 04 03 00 B4 D7 5B 70 04 03 00 44 A9 3F 72 04 03 00 70 2E 1C 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 49 C1 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 16 D0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [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 19 00 80 17 00 00 00 00 00 00 99 [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 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [11:37:26]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [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 1A 00 80 17 00 00 00 00 00 00 9A [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 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [11:37:27]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [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 1B 00 80 17 00 00 00 00 00 00 9B [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 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [11:37:27]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [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 1C 00 80 17 00 00 00 00 00 00 9C [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 = 200! [11:37:27]Read from MH i2c: E2 [11:37:27]MH_I2C_Read... [11:37:27]Read from MH i2c: E2 CB 00 [11:37:27]MH_I2C_Read... [11:37:27]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [11:37:27]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:37:27]wFMCommunicate OK [11:37:27]SAM_PROTO_GetShiftData done [11:37:27]requested_item shift.sale.total_cash is exist - process it [11:37:27]requested_item shift.sale_refund.total is exist - process it [11:37:27]requested_item shift.sale_refund.total_cash is exist - process it [11:37:27]requested_item shift.buy.total is exist - process it [11:37:27]requested_item shift.buy.total_cash is exist - process it [11:37:27]produce_requested_data done [11:37:27]produce_requested_data return {"fm.sale.total":117469462.35,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":60189.96,"shift.sale.total_cash":41721.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:27]process_action_free get_value [11:37:27]json_value_free [11:37:27]json_value_free done [11:37:27]process_json_proto returns [11:37:27]Send response to host [11:37:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117469462.35,"fm.sale_refund.total":46618513.80,"fm.buy.total":0.00,"shift.sale.total":60189.96,"shift.sale.total_cash":41721.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:27]free response buf [11:37:27]execute_script done [11:37:27]execute_script returns [11:37:27]free content buf [11:37:27]Sock 9.Close socket [11:37:27]Sock 9.Thread stoped [11:37:28]accept exits with 8 [11:37:28]New connection [11:37:28]New thread 3067481444 created [11:37:28]Thread 3067338084 joined [11:37:28]Waiting for new connection... [11:37:28] Sock 8.Parse request [11:37:28]Sock 8.Check first char [11:37:28]Sock 8.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.62.5:8080 [11:37:28]Content-Length: 144 [11:37:28]Content-Type: application/json [11:37:28] [11:37:28]POST finish read [11:37:28]Found Content-Length = 144 [11:37:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [11:37:28]execute_script... [11:37:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [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=print_doc [11:37:28]process_action print_doc [11:37:28]ExternCall_PrintAddStr [11:37:28]wPrintStart [11:37:28]Write to MH i2c: 01 00 00 1D 00 1D [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: 01 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: 01 07 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [11:37:28]RasterBufferAndPrint [11:37:28]line Счет N : (1)191621 [11:37:28]line ИНН: 02508201610067 [11:37:28]line Контрольно-Кассовый Чек [11:37:28]line ПРОДАЖА [11:37:28]line ТРК (МРК, ГНК) : 13 [11:37:28]line Товар: 2710194210 [11:37:28]line ДТ-К-5 [11:37:28]line 13.720 * 72.90 [11:37:28]line = 1000.19 [11:37:28]line НДС 12% НСП 1% [11:37:28]line > о реализуемом товаре [11:37:28]line ИТОГО: 1000.19 [11:37:28]line НСП 1% : 8.85 [11:37:28]line НДС 12% : 106.21 [11:37:28]line Наличными: 0.00 [11:37:28]line Безнал.: 1000.19 [11:37:28]line Место: АЗС № 106 "Партнер Нефть" [11:37:28]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:37:28]line СНО: Общий режим [11:37:28]line Чек 58 22.04.2024 11:36 [11:37:28]line Смена: 373 ФФД: 1.0 [11:37:28]line ЗНМ: 0300000141 [11:37:28]line РНМ: 0000000000091573 [11:37:28]line Версия ККМ: 001 [11:37:28]line Платежная система: О! деньги [11:37:28]line ФМ: 0000000000874652 [11:37:28]line ФД: 77039 [11:37:28]line ФПД: 227573669167313 [11:37:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T113608&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77039&fm=227573669167313&tin=02508201610067®Number=0000000000091573&sum=100019 [11:37:28]written 0, free lines is 4095 [11:37:28]Write to MH i2c: 01 00 00 46 00 46 [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: 01 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: 01 07 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: 01 07 00 46 00 00 00 00 00 00 FB 0C 54 [11:37:28]RasterBufferAndPrint [11:37:28]line [11:37:28]line [11:37:28]line [11:37:28]line [11:37:28]line [11:37:28]written 0, free lines is 3336 [11:37:28]MH_Cut [11:37:28]Write to MH i2c: D1 01 00 4D 00 01 1F [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: D1 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: D1 01 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: D1 01 00 4D 00 00 1E [11:37:28]Write to MH i2c: 01 00 00 4E 00 4E [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:29]*** Cut start [11:37:29]*** Partial cut [11:37:29]*** CUTSNS_PIN = 1 [11:37:29]*** CUTSNS_PIN = 0 [11:37:29]*** Brake cut motor [11:37:29]Read from MH i2c: 01 [11:37:29]MH_I2C_Read... [11:37:29]*** Stop cut motor [11:37:29]*** Cut end [11:37:29]Read from MH i2c: 01 07 00 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 FF 0F 63 [11:37:29]process_action print_doc done [11:37:29]requested_data is exist [11:37:29]produce_requested_data [11:37:29]produce_requested_data return (null) [11:37:29]process_action_free print_doc [11:37:29]json_value_free [11:37:29]json_value_free done [11:37:29]process_json_proto returns [11:37:29]Send response to host [11:37:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [11:37:29]free response buf [11:37:29]execute_script done [11:37:29]execute_script returns [11:37:29]free content buf [11:37:29]Sock 8.Close socket [11:37:29]Sock 8.Thread stoped [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:38]accept exits with 9 [11:40:38]New connection [11:40:38]New thread 3067338084 created [11:40:38]Thread 3067481444 joined [11:40:38]Waiting for new connection... [11:40:38] Sock 9.Parse request [11:40:38]Sock 9.Check first char [11:40:38]Sock 9.First char is OK [11:40:38]request: POST /json_proto HTTP/1.0 [11:40:38]Method: POST [11:40:38]URL: /json_proto [11:40:38]Method is POST - this is cgi request [11:40:38]url: /json_proto [11:40:38]query_string will be loaded in cgi processing [11:40:38]execute_cgi json_proto POST (null) [11:40:38]execute_cgi path=json_proto method=POST [11:40:38]POST find Content-Length [11:40:38]Host: 172.17.62.5:8080 [11:40:38]Content-Length: 677 [11:40:38]Content-Type: application/json [11:40:38] [11:40:38]POST finish read [11:40:38]Found Content-Length = 677 [11:40:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 6.220, "sum" : 400.57, "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:40:38]execute_script... [11:40:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 6.220, "sum" : 400.57, "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:40:38]POST & json_proto [11:40:38]process_json_proto [11:40:38]json parsed OK: [11:40:38]protocol is kg_v1.0 [11:40:38]action value=close_receipt [11:40:38]process_action close_receipt [11:40:38]cmd_close_receipt [11:40:38]MH_GetDate [11:40:38]Write to MH i2c: F0 00 00 4F 00 3E [11:40:38]Write i2c OK [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: F0 [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: F0 09 00 [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: F0 09 00 4F 00 00 B6 4C 26 66 F4 E9 65 64 7B [11:40:38]GetLastDocTimeStamp 1713785768 [11:40:38]current date 1713786038 [11:40:38]FM_GetShiftState [11:40:38]SAM_PROTO_GetShiftState [11:40:38]wFMCommunicate request_size=4 [11:40:38]MH_SAM_APDU [11:40:38]CAPDU: 80 13 01 00 [11:40:38]Write to MH i2c: E2 08 00 50 00 80 13 01 00 00 00 00 00 CD [11:40:38]Write i2c OK [11:40:38]MH_I2C_Read... [11:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:38]Read from MH i2c: E2 [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: E2 0E 00 [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: E2 0E 00 50 00 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 F4 [11:40:38]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:40:38]wFMCommunicate OK [11:40:38]SAM_PROTO_GetShiftState done [11:40:38]FM_GetShiftState done [11:40:38]opened in 1713745124 [11:40:38]opened+sec_in_day 1713831524 [11:40:38]quantity*price = 40056 [11:40:38]sum+1 = 40058 [11:40:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 59 22.04.2024 11:40 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77040 ФПД: 77471381765840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T114038&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77040&fm=77471381765840&tin=02508201610067®Number=0000000000091573&sum=40000 [11:40:39]StoreToDocumentArchive [11:40:39]shift 373 fd 77040 [11:40:39]save to /storage/0373/doc_00077040 [11:40:39]save last doc name /storage/0373/doc_00077040 to /storage/kkm_last_doc_name [11:40:39]save OK [11:40:39]Clear old archive folders... [11:40:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:39]tlvbuf is 00B9B550 [11:40:39]SAM_PROTO_ClearQueue [11:40:39]wFMCommunicate request_size=4 [11:40:39]MH_SAM_APDU [11:40:39]CAPDU: 80 09 00 00 [11:40:39]Write to MH i2c: E2 08 00 5D 00 80 09 00 00 00 00 00 00 CF [11:40:39]Write i2c OK [11:40:39]MH_I2C_Read... [11:40:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:39]Read from MH i2c: E2 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: E2 03 00 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: E2 03 00 5D 00 00 90 00 D1 [11:40:39]RAPDU: 90 00 [11:40:39]wFMCommunicate OK [11:40:39]SAM_PROTO_ClearQueue done [11:40:39]KKMCreateOFDPacket [11:40:39]OFDProtocolAddRootSTLVToBuf [11:40:39]FM_MakeSignedData [11:40:39]FM_MakeSignedData [11:40:39]SAM_PROTO_SignData [11:40:39]wFMCommunicate request_size=4 [11:40:39]MH_SAM_APDU [11:40:39]CAPDU: 80 0D 01 02 [11:40:39]Write to MH i2c: E2 08 00 5E 00 80 0D 01 02 00 00 00 00 D7 [11:40:39]Write i2c OK [11:40:39]MH_I2C_Read... [11:40:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:39]Read from MH i2c: E2 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: E2 03 00 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [11:40:39]RAPDU: 90 00 [11:40:39]wFMCommunicate OK [11:40:39]wFMCommunicate request_size=255 [11:40:39]MH_SAM_APDU [11:40:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 3B 00 00 00 F4 03 04 00 B6 4C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F0 2C 01 00 35 04 06 00 46 [11:40:39]Write to MH i2c: E2 02 01 5F 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 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 3B 00 00 00 F4 03 04 00 B6 4C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F0 2C 01 00 35 04 06 00 46 00 00 06 [11:40:39]Write i2c OK [11:40:39]MH_I2C_Read... [11:40:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:39]Read from MH i2c: E2 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: E2 03 00 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [11:40:39]RAPDU: 90 00 [11:40:39]wFMCommunicate OK [11:40:39]wFMCommunicate request_size=10 [11:40:39]MH_SAM_APDU [11:40:39]CAPDU: 80 0D 02 02 05 75 B6 30 BE D0 [11:40:39]Write to MH i2c: E2 0D 00 60 00 80 0D 02 02 05 00 75 B6 30 BE D0 00 00 CD [11:40:39]Write i2c OK [11:40:39]MH_I2C_Read... [11:40:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:39]Read from MH i2c: E2 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: E2 03 00 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [11:40:39]RAPDU: 90 00 [11:40:39]wFMCommunicate OK [11:40:39]wFMCommunicate request_size=4 [11:40:39]MH_SAM_APDU [11:40:39]CAPDU: 80 0D 03 02 [11:40:39]Write to MH i2c: E2 08 00 61 00 80 0D 03 02 00 00 00 00 DC [11:40:39]Write i2c OK [11:40:39]MH_I2C_Read... [11:40:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:39]Read from MH i2c: E2 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: E2 0B 00 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: E2 0B 00 61 00 00 AD 4C DE 23 89 0B 2C 07 90 00 9E [11:40:39]RAPDU: AD 4C DE 23 89 0B 2C 07 90 00 [11:40:39]wFMCommunicate OK [11:40:39]SAM_PROTO_SignData done [11:40:39]FM_MakeSignedData done [11:40:39]CreateOFDProtocolMessage [11:40:39]wFMCommunicate request_size=4 [11:40:39]MH_SAM_APDU [11:40:39]CAPDU: 80 11 00 00 [11:40:39]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [11:40:39]Write i2c OK [11:40:39]MH_I2C_Read... [11:40:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:39]Read from MH i2c: E2 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: E2 17 00 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2F [11:40:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:40:39]wFMCommunicate OK [11:40:39]CreateOFDProtocolMessage done [11:40:39]OFDSenderStorePacket 77040 [11:40:39]StoreOFDPacket docnum=77040 [11:40:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 66 E8 07 01 E9 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 3B 00 00 00 F4 03 04 00 B6 4C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F0 2C 01 00 35 04 06 00 46 75 B6 30 BE D0 AD 4C DE 23 89 0B 2C 07 [11:40:39]CheckFolder [11:40:39]dirname=/storage/ofd_packets [11:40:39]CheckFolder done [11:40:39]ProducePacketName [11:40:39]name=ofd_packets/00077040 [11:40:39]NVStorageSaveData ofd_packets/00077040 [11:40:39]File name is /storage/ofd_packets/00077040 [11:40:39]Write 301 bytes [11:40:39]NVStorageSaveData done [11:40:39]OFDSenderStorePacket done [11:40:39]KKMCreateOFDPacket done [11:40:39]NVStorageSaveData kkm_last_timestamp [11:40:39]File name is /storage/kkm_last_timestamp [11:40:39]Write 4 bytes [11:40:39]NVStorageSaveData done [11:40:39]OFD Sender: Processing packet 77040 [packets to send 129, broken 128] [11:40:39]ProducePacketName [11:40:39]name=ofd_packets/00077040 [11:40:39]OFD Sender: To server: pG, [11:40:39]CommunicateWithHost lk.salyk.kg:30040 [11:40:39]ConnectInit lk.salyk.kg [11:40:39]ExternCall_PrintAddStr [11:40:39]wPrintStart [11:40:39]Write to MH i2c: 01 00 00 63 00 63 [11:40:39]Write i2c OK [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: 01 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: 01 07 00 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [11:40:39]RasterBufferAndPrint [11:40:39]line Счет N : (1)191623 [11:40:39]line ИНН: 02508201610067 [11:40:39]line Контрольно-Кассовый Чек [11:40:39]line ПРОДАЖА [11:40:39]line ТРК (МРК, ГНК) : 22 [11:40:39]line Товар: 2710124130 [11:40:39]line Аи-92-К-5 [11:40:39]line 6.220 * 64.40 [11:40:39]line = 400.57 [11:40:39]line НДС 12% НСП 1% [11:40:39]line > о реализуемом товаре [11:40:39]line ОКРУГЛЕНИЕ: -0.57 [11:40:39]line ИТОГО: 400.00 [11:40:39]line Внесено: 400.00 [11:40:39]line СДАЧА: 0.00 [11:40:39]line НСП 1% : 3.54 [11:40:39]line НДС 12% : 42.54 [11:40:39]line Наличными: 400.00 [11:40:39]line Безнал.: 0.00 [11:40:39]line Место: АЗС № 106 "Партнер Нефть" [11:40:39]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:40:39]line СНО: Общий режим [11:40:39]line Чек 59 22.04.2024 11:40 [11:40:39]line Смена: 373 ФФД: 1.0 [11:40:39]line ЗНМ: 0300000141 [11:40:39]line РНМ: 0000000000091573 [11:40:39]line Версия ККМ: 001 [11:40:39]line ФМ: 0000000000874652 [11:40:39]line ФД: 77040 [11:40:39]line ФПД: 77471381765840 [11:40:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T114038&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77040&fm=77471381765840&tin=02508201610067®Number=0000000000091573&sum=40000 [11:40:40]Connected sock=11 [11:40:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 66 E8 07 01 E9 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 79 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 9E 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 3B 00 00 00 F4 03 04 00 B6 4C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F0 2C 01 00 35 04 06 00 46 75 B6 30 BE D0 AD 4C DE 23 89 0B 2C 07 [11:40:40]written 0, free lines is 4095 [11:40:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 85 62 47 00 77 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F0 2C 01 00 F4 03 04 00 38 F4 25 66 B6 04 01 00 00 1A F1 EE DC 2C 12 F0 FD [11:40:40]CommunicateWithHost err = 0 [11:40:40]CheckOFDResponse [11:40:40]1017 (14) - 77093643461234 [11:40:40]1041 (16) - 0000000000874652 [11:40:40]1040 (4) - 77040 [11:40:40]1012 (4) - 22.04.2024 05:23 [11:40:40]1206 (1) - 0 [11:40:40]OFD Sender: Remove packet 77040 [11:40:40]ProducePacketName [11:40:40]name=ofd_packets/00077040 [11:40:40]NVStorageDeleteData [11:40:40]Write to MH i2c: 01 00 00 8D 00 8D [11:40:40]Write i2c OK [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: 01 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: 01 07 00 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: 01 07 00 8D 00 00 00 00 00 00 DC 0C 7C [11:40:40]RasterBufferAndPrint [11:40:40]line [11:40:40]line [11:40:40]line [11:40:40]line [11:40:40]line [11:40:40]written 0, free lines is 3298 [11:40:40]MH_Cut [11:40:40]Write to MH i2c: D1 01 00 94 00 01 66 [11:40:40]Write i2c OK [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: D1 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: D1 01 00 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: D1 01 00 94 00 00 65 [11:40:40]Write to MH i2c: 01 00 00 95 00 95 [11:40:40]Write i2c OK [11:40:40]MH_I2C_Read... [11:40:40]OFD Sender: No OFD packet to send [11:40:41]*** Cut start [11:40:41]*** Partial cut [11:40:41]*** CUTSNS_PIN = 1 [11:40:41]*** CUTSNS_PIN = 0 [11:40:41]*** Brake cut motor [11:40:42]Read from MH i2c: 01 [11:40:42]MH_I2C_Read... [11:40:42]*** Stop cut motor [11:40:42]*** Cut end [11:40:42]Read from MH i2c: 01 07 00 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: 01 07 00 95 00 00 00 00 00 00 FF 0F AA [11:40:42]process_action close_receipt done [11:40:42]requested_data is exist [11:40:42]produce_requested_data [11:40:42]requested_item fm.sn is exist - process it [11:40:42]wFMCommunicate request_size=4 [11:40:42]MH_SAM_APDU [11:40:42]CAPDU: 80 11 00 00 [11:40:42]Write to MH i2c: E2 08 00 96 00 80 11 00 00 00 00 00 00 10 [11:40:42]Write i2c OK [11:40:42]MH_I2C_Read... [11:40:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:42]Read from MH i2c: E2 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: E2 17 00 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: E2 17 00 96 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 63 [11:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:40:42]wFMCommunicate OK [11:40:42]requested_item fd.num is exist - process it [11:40:42]SAM_PROTO_GetFieldsCounters [11:40:42]wFMCommunicate request_size=4 [11:40:42]MH_SAM_APDU [11:40:42]CAPDU: 80 13 00 00 [11:40:42]Write to MH i2c: E2 08 00 97 00 80 13 00 00 00 00 00 00 13 [11:40:42]Write i2c OK [11:40:42]MH_I2C_Read... [11:40:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:42]Read from MH i2c: E2 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: E2 62 00 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: E2 62 00 97 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F0 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [11:40:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F0 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:42]wFMCommunicate OK [11:40:42]SAM_PROTO_GetFieldsCounters done [11:40:42]requested_item shift.num is exist - process it [11:40:42]requested_item shift.opened is exist - process it [11:40:42]req_shift_opened [11:40:42]FM_GetShiftState [11:40:42]SAM_PROTO_GetShiftState [11:40:42]wFMCommunicate request_size=4 [11:40:42]MH_SAM_APDU [11:40:42]CAPDU: 80 13 01 00 [11:40:42]Write to MH i2c: E2 08 00 98 00 80 13 01 00 00 00 00 00 15 [11:40:42]Write i2c OK [11:40:42]MH_I2C_Read... [11:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:42]Read from MH i2c: E2 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: E2 0E 00 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: E2 0E 00 98 00 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 3C [11:40:42]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:40:42]wFMCommunicate OK [11:40:42]SAM_PROTO_GetShiftState done [11:40:42]FM_GetShiftState done [11:40:42]req_shift_opened done [11:40:42]requested_item shift.open_date is exist - process it [11:40:42]req_shift_open_date [11:40:42]req_shift_open_date done [11:40:42]produce_requested_data done [11:40:42]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77040,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [11:40:42]process_action_free close_receipt [11:40:42]json_value_free [11:40:42]json_value_free done [11:40:42]process_json_proto returns [11:40:42]Send response to host [11:40:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77040,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [11:40:42]free response buf [11:40:42]execute_script done [11:40:42]execute_script returns [11:40:42]free content buf [11:40:42]Sock 9.Close socket [11:40:42]Sock 9.Thread stoped [11:40:42]accept exits with 8 [11:40:42]New connection [11:40:42]New thread 3067481444 created [11:40:42]Thread 3067338084 joined [11:40:42]Waiting for new connection... [11:40:42] Sock 8.Parse request [11:40:42]Sock 8.Check first char [11:40:42]Sock 8.First char is OK [11:40:42]request: POST /json_proto HTTP/1.0 [11:40:42]Method: POST [11:40:42]URL: /json_proto [11:40:42]Method is POST - this is cgi request [11:40:42]url: /json_proto [11:40:42]query_string will be loaded in cgi processing [11:40:42]execute_cgi json_proto POST (null) [11:40:42]execute_cgi path=json_proto method=POST [11:40:42]POST find Content-Length [11:40:42]Host: 172.17.62.5:8080 [11:40:42]Content-Length: 677 [11:40:42]Content-Type: application/json [11:40:42] [11:40:42]POST finish read [11:40:42]Found Content-Length = 677 [11:40:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "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:40:42]execute_script... [11:40: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)191622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "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:40:42]POST & json_proto [11:40:42]process_json_proto [11:40:42]json parsed OK: [11:40:42]protocol is kg_v1.0 [11:40:42]action value=close_receipt [11:40:42]process_action close_receipt [11:40:42]cmd_close_receipt [11:40:42]MH_GetDate [11:40:42]Write to MH i2c: F0 00 00 99 00 88 [11:40:42]Write i2c OK [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: F0 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: F0 09 00 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: F0 09 00 99 00 00 BA 4C 26 66 F4 E9 65 64 C9 [11:40:42]GetLastDocTimeStamp 1713786038 [11:40:42]current date 1713786042 [11:40:42]FM_GetShiftState [11:40:42]SAM_PROTO_GetShiftState [11:40:42]wFMCommunicate request_size=4 [11:40:42]MH_SAM_APDU [11:40:42]CAPDU: 80 13 01 00 [11:40:42]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [11:40:42]Write i2c OK [11:40:42]MH_I2C_Read... [11:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:42]Read from MH i2c: E2 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: E2 0E 00 [11:40:42]MH_I2C_Read... [11:40:42]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 3E [11:40:42]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:40:42]wFMCommunicate OK [11:40:42]SAM_PROTO_GetShiftState done [11:40:42]FM_GetShiftState done [11:40:42]opened in 1713745124 [11:40:42]opened+sec_in_day 1713831524 [11:40:42]quantity*price = 50038 [11:40:42]sum+1 = 50040 [11:40:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 60 22.04.2024 11:40 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77041 ФПД: 97135590915541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T114042&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77041&fm=97135590915541&tin=02508201610067®Number=0000000000091573&sum=50000 [11:40:44]StoreToDocumentArchive [11:40:44]shift 373 fd 77041 [11:40:44]save to /storage/0373/doc_00077041 [11:40:44]save last doc name /storage/0373/doc_00077041 to /storage/kkm_last_doc_name [11:40:44]save OK [11:40:44]Clear old archive folders... [11:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:44]tlvbuf is 00BB36D0 [11:40:44]SAM_PROTO_ClearQueue [11:40:44]wFMCommunicate request_size=4 [11:40:44]MH_SAM_APDU [11:40:44]CAPDU: 80 09 00 00 [11:40:44]Write to MH i2c: E2 08 00 A7 00 80 09 00 00 00 00 00 00 19 [11:40:44]Write i2c OK [11:40:44]MH_I2C_Read... [11:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:44]Read from MH i2c: E2 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 03 00 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 03 00 A7 00 00 90 00 1B [11:40:44]RAPDU: 90 00 [11:40:44]wFMCommunicate OK [11:40:44]SAM_PROTO_ClearQueue done [11:40:44]KKMCreateOFDPacket [11:40:44]OFDProtocolAddRootSTLVToBuf [11:40:44]FM_MakeSignedData [11:40:44]FM_MakeSignedData [11:40:44]SAM_PROTO_SignData [11:40:44]wFMCommunicate request_size=4 [11:40:44]MH_SAM_APDU [11:40:44]CAPDU: 80 0D 01 02 [11:40:44]Write to MH i2c: E2 08 00 A8 00 80 0D 01 02 00 00 00 00 21 [11:40:44]Write i2c OK [11:40:44]MH_I2C_Read... [11:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:44]Read from MH i2c: E2 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 03 00 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [11:40:44]RAPDU: 90 00 [11:40:44]wFMCommunicate OK [11:40:44]wFMCommunicate request_size=255 [11:40:44]MH_SAM_APDU [11:40: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 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3C 00 00 00 F4 03 04 00 BA 4C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F1 2C 01 00 35 04 06 00 58 [11:40:44]Write to MH i2c: E2 02 01 A9 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 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3C 00 00 00 F4 03 04 00 BA 4C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F1 2C 01 00 35 04 06 00 58 00 00 90 [11:40:44]Write i2c OK [11:40:44]MH_I2C_Read... [11:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:44]Read from MH i2c: E2 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 03 00 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [11:40:44]RAPDU: 90 00 [11:40:44]wFMCommunicate OK [11:40:44]wFMCommunicate request_size=10 [11:40:44]MH_SAM_APDU [11:40:44]CAPDU: 80 0D 02 02 05 58 24 64 3D D5 [11:40:44]Write to MH i2c: E2 0D 00 AA 00 80 0D 02 02 05 00 58 24 64 3D D5 00 00 20 [11:40:44]Write i2c OK [11:40:44]MH_I2C_Read... [11:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:44]Read from MH i2c: E2 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 03 00 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [11:40:44]RAPDU: 90 00 [11:40:44]wFMCommunicate OK [11:40:44]wFMCommunicate request_size=4 [11:40:44]MH_SAM_APDU [11:40:44]CAPDU: 80 0D 03 02 [11:40:44]Write to MH i2c: E2 08 00 AB 00 80 0D 03 02 00 00 00 00 26 [11:40:44]Write i2c OK [11:40:44]MH_I2C_Read... [11:40:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:44]Read from MH i2c: E2 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 0B 00 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 0B 00 AB 00 00 C9 3A 8A 6E B0 36 99 81 90 00 22 [11:40:44]RAPDU: C9 3A 8A 6E B0 36 99 81 90 00 [11:40:44]wFMCommunicate OK [11:40:44]SAM_PROTO_SignData done [11:40:44]FM_MakeSignedData done [11:40:44]CreateOFDProtocolMessage [11:40:44]wFMCommunicate request_size=4 [11:40:44]MH_SAM_APDU [11:40:44]CAPDU: 80 11 00 00 [11:40:44]Write to MH i2c: E2 08 00 AC 00 80 11 00 00 00 00 00 00 26 [11:40:44]Write i2c OK [11:40:44]MH_I2C_Read... [11:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:44]Read from MH i2c: E2 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 17 00 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: E2 17 00 AC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 79 [11:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:40:44]wFMCommunicate OK [11:40:44]CreateOFDProtocolMessage done [11:40:44]OFDSenderStorePacket 77041 [11:40:44]StoreOFDPacket docnum=77041 [11:40:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 58 76 07 01 52 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3C 00 00 00 F4 03 04 00 BA 4C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F1 2C 01 00 35 04 06 00 58 58 24 64 3D D5 C9 3A 8A 6E B0 36 99 81 [11:40:44]CheckFolder [11:40:44]dirname=/storage/ofd_packets [11:40:44]CheckFolder done [11:40:44]ProducePacketName [11:40:44]name=ofd_packets/00077041 [11:40:44]NVStorageSaveData ofd_packets/00077041 [11:40:44]File name is /storage/ofd_packets/00077041 [11:40:44]Write 301 bytes [11:40:44]NVStorageSaveData done [11:40:44]OFDSenderStorePacket done [11:40:44]KKMCreateOFDPacket done [11:40:44]NVStorageSaveData kkm_last_timestamp [11:40:44]File name is /storage/kkm_last_timestamp [11:40:44]Write 4 bytes [11:40:44]NVStorageSaveData done [11:40:44]ExternCall_PrintAddStr [11:40:44]wPrintStart [11:40:44]Write to MH i2c: 01 00 00 AD 00 AD [11:40:44]Write i2c OK [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: 01 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: 01 07 00 [11:40:44]MH_I2C_Read... [11:40:44]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [11:40:44]RasterBufferAndPrint [11:40:44]line Счет N : (1)191622 [11:40:44]line ИНН: 02508201610067 [11:40:44]line Контрольно-Кассовый Чек [11:40:44]line ПРОДАЖА [11:40:44]line ТРК (МРК, ГНК) : 43 [11:40:44]line Товар: 2710124130 [11:40:44]line Аи-92-К-5 [11:40:44]line 7.770 * 64.40 [11:40:44]line = 500.39 [11:40:44]line НДС 12% НСП 1% [11:40:44]line > о реализуемом товаре [11:40:44]line ОКРУГЛЕНИЕ: -0.39 [11:40:44]line ИТОГО: 500.00 [11:40:44]line Внесено: 500.00 [11:40:44]line СДАЧА: 0.00 [11:40:44]line НСП 1% : 4.43 [11:40:44]line НДС 12% : 53.14 [11:40:44]line Наличными: 500.00 [11:40:44]line Безнал.: 0.00 [11:40:44]line Место: АЗС № 106 "Партнер Нефть" [11:40:44]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:40:44]line СНО: Общий режим [11:40:44]line Чек 60 22.04.2024 11:40 [11:40:44]line Смена: 373 ФФД: 1.0 [11:40:44]line ЗНМ: 0300000141 [11:40:44]line РНМ: 0000000000091573 [11:40:44]line Версия ККМ: 001 [11:40:44]line ФМ: 0000000000874652 [11:40:44]line ФД: 77041 [11:40:44]line ФПД: 97135590915541 [11:40:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T114042&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77041&fm=97135590915541&tin=02508201610067®Number=0000000000091573&sum=50000 [11:40:44]written 0, free lines is 4095 [11:40:44]OFD Sender: Processing packet 77041 [packets to send 129, broken 128] [11:40:44]ProducePacketName [11:40:44]name=ofd_packets/00077041 [11:40:44]OFD Sender: To server: pG, [11:40:44]CommunicateWithHost lk.salyk.kg:30040 [11:40:44]ConnectInit lk.salyk.kg [11:40:44]Connected sock=10 [11:40:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 58 76 07 01 52 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3C 00 00 00 F4 03 04 00 BA 4C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F1 2C 01 00 35 04 06 00 58 58 24 64 3D D5 C9 3A 8A 6E B0 36 99 81 [11:40:45]Write to MH i2c: 01 00 00 D7 00 D7 [11:40:45]Write i2c OK [11:40:45]MH_I2C_Read... [11:40:45]Read from MH i2c: 01 [11:40:45]MH_I2C_Read... [11:40:45]Read from MH i2c: 01 07 00 [11:40:45]MH_I2C_Read... [11:40:45]Read from MH i2c: 01 07 00 D7 00 00 00 00 00 00 F8 0C E2 [11:40:45]RasterBufferAndPrint [11:40:45]line [11:40:45]line [11:40:45]line [11:40:45]line [11:40:45]line [11:40:45]written 0, free lines is 3333 [11:40:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 C1 AD 47 00 B3 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F1 2C 01 00 F4 03 04 00 3D F4 25 66 B6 04 01 00 00 7C 05 7C 5F 49 66 8F 38 [11:40:45]CommunicateWithHost err = 0 [11:40:45]CheckOFDResponse [11:40:45]1017 (14) - 77093643461234 [11:40:45]1041 (16) - 0000000000874652 [11:40:45]1040 (4) - 77041 [11:40:45]1012 (4) - 22.04.2024 05:23 [11:40:45]1206 (1) - 0 [11:40:45]OFD Sender: Remove packet 77041 [11:40:45]ProducePacketName [11:40:45]name=ofd_packets/00077041 [11:40:45]NVStorageDeleteData [11:40:45]MH_Cut [11:40:45]Write to MH i2c: D1 01 00 DE 00 01 B0 [11:40:45]Write i2c OK [11:40:45]MH_I2C_Read... [11:40:45]Read from MH i2c: D1 [11:40:45]MH_I2C_Read... [11:40:45]Read from MH i2c: D1 01 00 [11:40:45]MH_I2C_Read... [11:40:45]Read from MH i2c: D1 01 00 DE 00 00 AF [11:40:45]Write to MH i2c: 01 00 00 DF 00 DF [11:40:45]Write i2c OK [11:40:45]MH_I2C_Read... [11:40:45]OFD Sender: No OFD packet to send [11:40:45]*** Cut start [11:40:45]*** Partial cut [11:40:45]*** CUTSNS_PIN = 1 [11:40:45]*** CUTSNS_PIN = 0 [11:40:46]*** Brake cut motor [11:40:46]Read from MH i2c: 01 [11:40:46]MH_I2C_Read... [11:40:46]*** Stop cut motor [11:40:46]*** Cut end [11:40:46]Read from MH i2c: 01 07 00 [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: 01 07 00 DF 00 00 00 00 00 00 FF 0F F4 [11:40:46]process_action close_receipt done [11:40:46]requested_data is exist [11:40:46]produce_requested_data [11:40:46]requested_item fm.sn is exist - process it [11:40:46]wFMCommunicate request_size=4 [11:40:46]MH_SAM_APDU [11:40:46]CAPDU: 80 11 00 00 [11:40:46]Write to MH i2c: E2 08 00 E0 00 80 11 00 00 00 00 00 00 5A [11:40:46]Write i2c OK [11:40:46]MH_I2C_Read... [11:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:46]Read from MH i2c: E2 [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: E2 17 00 [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: E2 17 00 E0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AD [11:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:40:46]wFMCommunicate OK [11:40:46]requested_item fd.num is exist - process it [11:40:46]SAM_PROTO_GetFieldsCounters [11:40:46]wFMCommunicate request_size=4 [11:40:46]MH_SAM_APDU [11:40:46]CAPDU: 80 13 00 00 [11:40:46]Write to MH i2c: E2 08 00 E1 00 80 13 00 00 00 00 00 00 5D [11:40:46]Write i2c OK [11:40:46]MH_I2C_Read... [11:40:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:46]Read from MH i2c: E2 [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: E2 62 00 [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: E2 62 00 E1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F1 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [11:40:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F1 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:46]wFMCommunicate OK [11:40:46]SAM_PROTO_GetFieldsCounters done [11:40:46]requested_item shift.num is exist - process it [11:40:46]requested_item shift.opened is exist - process it [11:40:46]req_shift_opened [11:40:46]FM_GetShiftState [11:40:46]SAM_PROTO_GetShiftState [11:40:46]wFMCommunicate request_size=4 [11:40:46]MH_SAM_APDU [11:40:46]CAPDU: 80 13 01 00 [11:40:46]Write to MH i2c: E2 08 00 E2 00 80 13 01 00 00 00 00 00 5F [11:40:46]Write i2c OK [11:40:46]MH_I2C_Read... [11:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:46]Read from MH i2c: E2 [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: E2 0E 00 [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: E2 0E 00 E2 00 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 86 [11:40:46]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:40:46]wFMCommunicate OK [11:40:46]SAM_PROTO_GetShiftState done [11:40:46]FM_GetShiftState done [11:40:46]req_shift_opened done [11:40:46]requested_item shift.open_date is exist - process it [11:40:46]req_shift_open_date [11:40:46]req_shift_open_date done [11:40:46]produce_requested_data done [11:40:46]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77041,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [11:40:46]process_action_free close_receipt [11:40:46]json_value_free [11:40:46]json_value_free done [11:40:46]process_json_proto returns [11:40:46]Send response to host [11:40:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77041,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [11:40:46]free response buf [11:40:46]execute_script done [11:40:46]execute_script returns [11:40:46]free content buf [11:40:46]Sock 8.Close socket [11:40:46]Sock 8.Thread stoped [11:40:47]accept exits with 9 [11:40:47]New connection [11:40:47]New thread 3067338084 created [11:40:47]Thread 3067481444 joined [11:40:47]Waiting for new connection... [11:40:47] Sock 9.Parse request [11:40:47]Sock 9.Check first char [11:40:47]Sock 9.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.62.5:8080 [11:40:47]Content-Length: 674 [11:40:47]Content-Type: application/json [11:40:47] [11:40:47]POST finish read [11:40:47]Found Content-Length = 674 [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)191624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.730, "sum" : 709.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 709.00, "total" : 709.00, "payments": [ { "type": 0, "sum" : 709.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)191624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.730, "sum" : 709.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 709.00, "total" : 709.00, "payments": [ { "type": 0, "sum" : 709.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 E3 00 D2 [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 E3 00 00 BF 4C 26 66 F4 E9 65 64 18 [11:40:47]GetLastDocTimeStamp 1713786042 [11:40:47]current date 1713786047 [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 E4 00 80 13 01 00 00 00 00 00 61 [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 E4 00 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 88 [11:40:47]RAPDU: 09 00 01 E4 AC 25 66 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 1713745124 [11:40:47]opened+sec_in_day 1713831524 [11:40:47]quantity*price = 70931 [11:40:47]sum+1 = 70933 [11:40:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 709.00 Внесено: 709.00 СДАЧА: 0.00 НСП 1% : 6.28 НДС 12% : 75.33 Наличными: 709.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 61 22.04.2024 11:40 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77042 ФПД: 46350075853961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T114047&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77042&fm=46350075853961&tin=02508201610067®Number=0000000000091573&sum=70900 [11:40:49]StoreToDocumentArchive [11:40:49]shift 373 fd 77042 [11:40:49]save to /storage/0373/doc_00077042 [11:40:49]save last doc name /storage/0373/doc_00077042 to /storage/kkm_last_doc_name [11:40:49]save OK [11:40:49]Clear old archive folders... [11:40:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:40:49]tlvbuf is 00B67410 [11:40:49]SAM_PROTO_ClearQueue [11:40:49]wFMCommunicate request_size=4 [11:40:49]MH_SAM_APDU [11:40:49]CAPDU: 80 09 00 00 [11:40:49]Write to MH i2c: E2 08 00 F1 00 80 09 00 00 00 00 00 00 63 [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:49]Read from MH i2c: E2 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 03 00 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 03 00 F1 00 00 90 00 65 [11:40:49]RAPDU: 90 00 [11:40:49]wFMCommunicate OK [11:40:49]SAM_PROTO_ClearQueue done [11:40:49]KKMCreateOFDPacket [11:40:49]OFDProtocolAddRootSTLVToBuf [11:40:49]FM_MakeSignedData [11:40:49]FM_MakeSignedData [11:40:49]SAM_PROTO_SignData [11:40:49]wFMCommunicate request_size=4 [11:40:49]MH_SAM_APDU [11:40:49]CAPDU: 80 0D 01 02 [11:40:49]Write to MH i2c: E2 08 00 F2 00 80 0D 01 02 00 00 00 00 6B [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:49]Read from MH i2c: E2 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 03 00 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 03 00 F2 00 00 90 00 66 [11:40:49]RAPDU: 90 00 [11:40:49]wFMCommunicate OK [11:40:49]wFMCommunicate request_size=255 [11:40:49]MH_SAM_APDU [11:40: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 35 FF 03 08 00 03 02 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 14 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 1D 00 00 00 00 07 04 06 00 F4 14 01 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 BF 4C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F2 2C 01 00 35 04 06 00 2A 27 B7 CE [11:40:49]Write to MH i2c: E2 02 01 F3 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 35 FF 03 08 00 03 02 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 14 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 1D 00 00 00 00 07 04 06 00 F4 14 01 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 BF 4C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F2 2C 01 00 35 04 06 00 2A 27 B7 CE 00 00 01 [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:49]Read from MH i2c: E2 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 03 00 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [11:40:49]RAPDU: 90 00 [11:40:49]wFMCommunicate OK [11:40:49]wFMCommunicate request_size=7 [11:40:49]MH_SAM_APDU [11:40:49]CAPDU: 80 0D 02 02 02 7C 89 [11:40:49]Write to MH i2c: E2 0A 00 F4 00 80 0D 02 02 02 00 7C 89 00 00 77 [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:49] [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 03 00 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [11:40:49]RAPDU: 90 00 [11:40:49]wFMCommunicate OK [11:40:49]wFMCommunicate request_size=4 [11:40:49]MH_SAM_APDU [11:40:49]CAPDU: 80 0D 03 02 [11:40:49]Write to MH i2c: E2 08 00 F5 00 80 0D 03 02 00 00 00 00 70 [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:49]*** 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 F5 00 00 81 E6 27 69 6B 42 F4 62 90 00 6B [11:40:49]RAPDU: 81 E6 27 69 6B 42 F4 62 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 F6 00 80 11 00 00 00 00 00 00 70 [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:49]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 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C3 [11:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:40:49]wFMCommunicate OK [11:40:49]CreateOFDProtocolMessage done [11:40:49]OFDSenderStorePacket 77042 [11:40:49]StoreOFDPacket docnum=77042 [11:40:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 ED D1 04 01 92 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 14 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 1D 00 00 00 00 07 04 06 00 F4 14 01 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 BF 4C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F2 2C 01 00 35 04 06 00 2A 27 B7 CE 7C 89 81 E6 27 69 6B 42 F4 62 [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/00077042 [11:40:49]NVStorageSaveData ofd_packets/00077042 [11:40:49]File name is /storage/ofd_packets/00077042 [11:40:49]Write 298 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 F7 00 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 F7 00 00 00 00 00 00 FF 0F 0C [11:40:49]RasterBufferAndPrint [11:40:49]line Счет N : (1)191624 [11:40:49]line ИНН: 02508201610067 [11:40:49]line Контрольно-Кассовый Чек [11:40:49]line ПРОДАЖА [11:40:49]line ТРК (МРК, ГНК) : 51 [11:40:49]line Товар: 2710194210 [11:40:49]line ДТ-К-5 [11:40:49]line 9.730 * 72.90 [11:40:49]line = 709.32 [11:40:49]line НДС 12% НСП 1% [11:40:49]line > о реализуемом товаре [11:40:49]line ОКРУГЛЕНИЕ: -0.32 [11:40:49]line ИТОГО: 709.00 [11:40:49]line Внесено: 709.00 [11:40:49]line СДАЧА: 0.00 [11:40:49]line НСП 1% : 6.28 [11:40:49]line НДС 12% : 75.33 [11:40:49]line Наличными: 709.00 [11:40:49]line Безнал.: 0.00 [11:40:49]line Место: АЗС № 106 "Партнер Нефть" [11:40:49]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:40:49]line СНО: Общий режим [11:40:49]line Чек 61 22.04.2024 11:40 [11:40:49]line Смена: 373 ФФД: 1.0 [11:40:49]line ЗНМ: 0300000141 [11:40:49]line РНМ: 0000000000091573 [11:40:49]line Версия ККМ: 001 [11:40:50]line ФМ: 0000000000874652 [11:40:50]line ФД: 77042 [11:40:50]line ФПД: 46350075853961 [11:40:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T114047&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77042&fm=46350075853961&tin=02508201610067®Number=0000000000091573&sum=70900 [11:40:50]OFD Sender: Processing packet 77042 [packets to send 129, broken 128] [11:40:50]ProducePacketName [11:40:50]name=ofd_packets/00077042 [11:40:50]OFD Sender: To server: pG, [11:40:50]CommunicateWithHost lk.salyk.kg:30040 [11:40:50]ConnectInit lk.salyk.kg [11:40:50]written 0, free lines is 4095 [11:40:50]Connected sock=8 [11:40:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 ED D1 04 01 92 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 26 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 14 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 1D 00 00 00 00 07 04 06 00 F4 14 01 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 BF 4C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F2 2C 01 00 35 04 06 00 2A 27 B7 CE 7C 89 81 E6 27 69 6B 42 F4 62 [11:40:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 26 E9 47 00 95 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F2 2C 01 00 F4 03 Write to MH i2c: 01 00 00 21 01 22 [11:40:50]04 00 42 F4 25 66 B6 04 01 00 00 82 01 0C CA D9 14 26 57 [11:40:50]CommunicateWithHost err = 0 [11:40:50]CheckOFDResponse [11:40:50]1017 (14) - 77093643461234 [11:40:50]1041 (16) - 0000000000874652 [11:40:50]1040 (4) - 77042 [11:40:50]1012 (4) - 22.04.2024 05:23 [11:40:50]1206 (1) - 0 [11:40:50]OFD Sender: Remove packet 77042 [11:40:50]ProducePacketName [11:40:50]name=ofd_packets/00077042 [11:40:50]NVStorageDeleteData [11:40:50]Write i2c OK [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: 01 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: 01 07 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: 01 07 00 21 01 00 00 00 00 00 40 0D 76 [11:40:50]RasterBufferAndPrint [11:40:50]line [11:40:50]line [11:40:50]line [11:40:50]line [11:40:50]line [11:40:50]written 0, free lines is 3438 [11:40:50]MH_Cut [11:40:50]Write to MH i2c: D1 01 00 28 01 01 FB [11:40:50]Write i2c OK [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: D1 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: D1 01 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: D1 01 00 28 01 00 FA [11:40:50]Write to MH i2c: 01 00 00 29 01 2A [11:40:50]Write i2c OK [11:40:50]MH_I2C_Read... [11:40:51]OFD Sender: No OFD packet to send [11:40:51]*** Cut start [11:40:51]*** Partial cut [11:40:51]*** CUTSNS_PIN = 1 [11:40:51]*** CUTSNS_PIN = 0 [11:40:51]*** Brake cut motor [11:40:51]Read from MH i2c: 01 *** Stop cut motor [11:40:52] [11:40:52]*** Cut end [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: 01 07 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: 01 07 00 29 01 00 00 00 00 00 FF 0F 3F [11:40:52]process_action close_receipt done [11:40:52]requested_data is exist [11:40:52]produce_requested_data [11:40:52]requested_item fm.sn is exist - process it [11:40:52]wFMCommunicate request_size=4 [11:40:52]MH_SAM_APDU [11:40:52]CAPDU: 80 11 00 00 [11:40:52]Write to MH i2c: E2 08 00 2A 01 80 11 00 00 00 00 00 00 A5 [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:52]Read from MH i2c: E2 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 17 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 17 00 2A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F8 [11:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:40:52]wFMCommunicate OK [11:40:52]requested_item fd.num is exist - process it [11:40:52]SAM_PROTO_GetFieldsCounters [11:40:52]wFMCommunicate request_size=4 [11:40:52]MH_SAM_APDU [11:40:52]CAPDU: 80 13 00 00 [11:40:52]Write to MH i2c: E2 08 00 2B 01 80 13 00 00 00 00 00 00 A8 [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:52]Read from MH i2c: E2 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 62 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 62 00 2B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F2 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [11:40:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F2 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:52]wFMCommunicate OK [11:40:52]SAM_PROTO_GetFieldsCounters done [11:40:52]requested_item shift.num is exist - process it [11:40:52]requested_item shift.opened is exist - process it [11:40:52]req_shift_opened [11:40:52]FM_GetShiftState [11:40:52]SAM_PROTO_GetShiftState [11:40:52]wFMCommunicate request_size=4 [11:40:52]MH_SAM_APDU [11:40:52]CAPDU: 80 13 01 00 [11:40:52]Write to MH i2c: E2 08 00 2C 01 80 13 01 00 00 00 00 00 AA [11:40:52]Write i2c OK [11:40:52]MH_I2C_Read... [11:40:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:52]Read from MH i2c: E2 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 0E 00 [11:40:52]MH_I2C_Read... [11:40:52]Read from MH i2c: E2 0E 00 2C 01 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 D1 [11:40:52]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:40:52]wFMCommunicate OK [11:40:52]SAM_PROTO_GetShiftState done [11:40:52]FM_GetShiftState done [11:40:52]req_shift_opened done [11:40:52]requested_item shift.open_date is exist - process it [11:40:52]req_shift_open_date [11:40:52]req_shift_open_date done [11:40:52]produce_requested_data done [11:40:52]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77042,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [11:40:52]process_action_free close_receipt [11:40:52]json_value_free [11:40:52]json_value_free done [11:40:52]process_json_proto returns [11:40:52]Send response to host [11:40:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77042,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [11:40:52]free response buf [11:40:52]execute_script done [11:40:52]execute_script returns [11:40:52]free content buf [11:40:52]Sock 9.Close socket [11:40:52]Sock 9.Thread stoped [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:12]accept exits with 10 [11:43:12]New connection [11:43:12]New thread 3067481444 created [11:43:12]Thread 3067338084 joined [11:43:12]Waiting for new connection... [11:43:12] Sock 10.Parse request [11:43:12]Sock 10.Check first char [11:43:12]Sock 10.First char is OK [11:43:12]request: POST /json_proto HTTP/1.0 [11:43:12]Method: POST [11:43:12]URL: /json_proto [11:43:12]Method is POST - this is cgi request [11:43:12]url: /json_proto [11:43:12]query_string will be loaded in cgi processing [11:43:12]execute_cgi json_proto POST (null) [11:43:12]execute_cgi path=json_proto method=POST [11:43:12]POST find Content-Length [11:43:12]Host: 172.17.62.5:8080 [11:43:12]Content-Length: 802 [11:43:12]Content-Type: application/json [11:43:12] [11:43:12]POST finish read [11:43:12]Found Content-Length = 802 [11:43:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:12]execute_script... [11:43: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)191625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:12]POST & json_proto [11:43:12]process_json_proto [11:43:12]json parsed OK: [11:43:12]protocol is kg_v1.0 [11:43:12]action value=close_receipt [11:43:12]process_action close_receipt [11:43:12]cmd_close_receipt [11:43:12]MH_GetDate [11:43:12]Write to MH i2c: F0 00 00 2D 01 1D [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: F0 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: F0 09 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: F0 09 00 2D 01 00 50 4D 26 66 F4 E9 65 64 F5 [11:43:12]GetLastDocTimeStamp 1713786047 [11:43:12]current date 1713786192 [11:43:12]FM_GetShiftState [11:43:12]SAM_PROTO_GetShiftState [11:43:12]wFMCommunicate request_size=4 [11:43:12]MH_SAM_APDU [11:43:12]CAPDU: 80 13 01 00 [11:43:12]Write to MH i2c: E2 08 00 2E 01 80 13 01 00 00 00 00 00 AC [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:12]Read from MH i2c: E2 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 0E 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 0E 00 2E 01 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 D3 [11:43:12]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:43:12]wFMCommunicate OK [11:43:12]SAM_PROTO_GetShiftState done [11:43:12]FM_GetShiftState done [11:43:12]opened in 1713745124 [11:43:12]opened+sec_in_day 1713831524 [11:43:12]quantity*price = 30034 [11:43:12]sum+1 = 30036 [11:43:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.35 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.35 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 62 22.04.2024 11:43 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 77043 ФПД: 54758033358013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T114312&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77043&fm=54758033358013&tin=02508201610067®Number=0000000000091573&sum=30035 [11:43:13]StoreToDocumentArchive [11:43:13]shift 373 fd 77043 [11:43:13]save to /storage/0373/doc_00077043 [11:43:13]save last doc name /storage/0373/doc_00077043 to /storage/kkm_last_doc_name [11:43:13]save OK [11:43:13]Clear old archive folders... [11:43:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:43:13]tlvbuf is 00B553E0 [11:43:13]SAM_PROTO_ClearQueue [11:43:13]wFMCommunicate request_size=4 [11:43:13]MH_SAM_APDU [11:43:13]CAPDU: 80 09 00 00 [11:43:13]Write to MH i2c: E2 08 00 3B 01 80 09 00 00 00 00 00 00 AE [11:43:13]Write i2c OK [11:43:13]MH_I2C_Read... [11:43:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:13]Read from MH i2c: E2 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 03 00 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 03 00 3B 01 00 90 00 B0 [11:43:13]RAPDU: 90 00 [11:43:13]wFMCommunicate OK [11:43:13]SAM_PROTO_ClearQueue done [11:43:13]KKMCreateOFDPacket [11:43:13]OFDProtocolAddRootSTLVToBuf [11:43:13]FM_MakeSignedData [11:43:13]FM_MakeSignedData [11:43:13]SAM_PROTO_SignData [11:43:13]wFMCommunicate request_size=4 [11:43:13]MH_SAM_APDU [11:43:13]CAPDU: 80 0D 01 02 [11:43:13]Write to MH i2c: E2 08 00 3C 01 80 0D 01 02 00 00 00 00 B6 [11:43:13]Write i2c OK [11:43:13]MH_I2C_Read... [11:43:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:13]Read from MH i2c: E2 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 03 00 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [11:43:13]RAPDU: 90 00 [11:43:13]wFMCommunicate OK [11:43:13]wFMCommunicate request_size=255 [11:43:13]MH_SAM_APDU [11:43:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 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 53 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 50 4D 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F3 2C 01 00 35 04 06 00 31 CD 59 20 [11:43:13]Write to MH i2c: E2 02 01 3D 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 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 53 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 50 4D 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F3 2C 01 00 35 04 06 00 31 CD 59 20 00 00 2A [11:43:13]Write i2c OK [11:43:13]MH_I2C_Read... [11:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:13]Read from MH i2c: E2 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 03 00 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [11:43:13]RAPDU: 90 00 [11:43:13]wFMCommunicate OK [11:43:13]wFMCommunicate request_size=7 [11:43:13]MH_SAM_APDU [11:43:13]CAPDU: 80 0D 02 02 02 7C BD [11:43:13]Write to MH i2c: E2 0A 00 3E 01 80 0D 02 02 02 00 7C BD 00 00 F6 [11:43:13]Write i2c OK [11:43:13]MH_I2C_Read... [11:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:13]Read from MH i2c: E2 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 03 00 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [11:43:13]RAPDU: 90 00 [11:43:13]wFMCommunicate OK [11:43:13]wFMCommunicate request_size=4 [11:43:13]MH_SAM_APDU [11:43:13]CAPDU: 80 0D 03 02 [11:43:13]Write to MH i2c: E2 08 00 3F 01 80 0D 03 02 00 00 00 00 BB [11:43:13]Write i2c OK [11:43:13]MH_I2C_Read... [11:43:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:13]Read from MH i2c: E2 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 0B 00 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 0B 00 3F 01 00 6A D3 D5 B7 2C B4 6D 8A 90 00 5C [11:43:13]RAPDU: 6A D3 D5 B7 2C B4 6D 8A 90 00 [11:43:13]wFMCommunicate OK [11:43:13]SAM_PROTO_SignData done [11:43:13]FM_MakeSignedData done [11:43:13]CreateOFDProtocolMessage [11:43:13]wFMCommunicate request_size=4 [11:43:13]MH_SAM_APDU [11:43:13]CAPDU: 80 11 00 00 [11:43:13]Write to MH i2c: E2 08 00 40 01 80 11 00 00 00 00 00 00 BB [11:43:13]Write i2c OK [11:43:13]MH_I2C_Read... [11:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:13]Read from MH i2c: E2 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 17 00 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: E2 17 00 40 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0E [11:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:43:13]wFMCommunicate OK [11:43:13]CreateOFDProtocolMessage done [11:43:13]OFDSenderStorePacket 77043 [11:43:13]StoreOFDPacket docnum=77043 [11:43:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 4F FB 04 01 E0 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 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 53 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 50 4D 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F3 2C 01 00 35 04 06 00 31 CD 59 20 7C BD 6A D3 D5 B7 2C B4 6D 8A [11:43:13]CheckFolder [11:43:13]dirname=/storage/ofd_packets [11:43:13]CheckFolder done [11:43:13]ProducePacketName [11:43:13]name=ofd_packets/00077043 [11:43:13]NVStorageSaveData ofd_packets/00077043 [11:43:13]File name is /storage/ofd_packets/00077043 [11:43:13]Write 298 bytes [11:43:13]NVStorageSaveData done [11:43:13]OFDSenderStorePacket done [11:43:13]KKMCreateOFDPacket done [11:43:13]NVStorageSaveData kkm_last_timestamp [11:43:13]File name is /storage/kkm_last_timestamp [11:43:13]Write 4 bytes [11:43:13]NVStorageSaveData done [11:43:13]ExternCall_PrintAddStr [11:43:13]wPrintStart [11:43:13]Write to MH i2c: 01 00 00 41 01 42 [11:43:13]Write i2c OK [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: 01 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: 01 07 00 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [11:43:13]RasterBufferAndPrint [11:43:13]line Счет N : (1)191625 [11:43:13]line ИНН: 02508201610067 [11:43:13]line Контрольно-Кассовый Чек [11:43:13]line ПРОДАЖА [11:43:13]line ТРК (МРК, ГНК) : 51 [11:43:13]line Товар: 2710194210 [11:43:13]line ДТ-К-5 [11:43:13]line 4.120 * 72.90 [11:43:13]line = 300.35 [11:43:13]line НДС 12% НСП 1% [11:43:13]line > о реализуемом товаре [11:43:13]line ИТОГО: 300.35 [11:43:13]line НСП 1% : 2.66 [11:43:13]line НДС 12% : 31.90 [11:43:13]line Наличными: 0.00 [11:43:13]line Безнал.: 300.35 [11:43:13]line Место: АЗС № 106 "Партнер Нефть" [11:43:13]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:43:13]line СНО: Общий режим [11:43:13]line Чек 62 22.04.2024 11:43 [11:43:13]line Смена: 373 ФФД: 1.0 [11:43:13]line ЗНМ: 0300000141 [11:43:13]line РНМ: 0000000000091573 [11:43:13]line Версия ККМ: 001 [11:43:13]line Платежная система: О! деньги [11:43:13]line ФМ: 0000000000874652 [11:43:13]line ФД: 77043 [11:43:13]line ФПД: 54758033358013 [11:43:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T114312&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77043&fm=54758033358013&tin=02508201610067®Number=0000000000091573&sum=30035 [11:43:14]OFD Sender: Processing packet 77043 [packets to send 129, broken 128] [11:43:14]ProducePacketName [11:43:14]name=ofd_packets/00077043 [11:43:14]OFD Sender: To server: pG, [11:43:14]CommunicateWithHost lk.salyk.kg:30040 [11:43:14]ConnectInit lk.salyk.kg [11:43:14]written 0, free lines is 4095 [11:43:14]Connected sock=9 [11:43:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 4F FB 04 01 E0 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 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 53 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 50 4D 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F3 2C 01 00 35 04 06 00 31 CD 59 20 7C BD 6A D3 D5 B7 2C B4 6D 8A [11:43:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 47 D1 47 00 73 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F3 2C 01 00 F4 03 04 00 D2 F4 25 66 B6 04 01 00 00 5F 5D 8E 3F DF 2F 22 D1 [11:43:14]CommunicateWithHost err = 0 [11:43:14]CheckOFDResponse [11:43:14]1017 (14) - 77093643461234 [11:43:14]1041 (16) - 0000000000874652 [11:43:14]1040 (4) - 77043 [11:43:14]1012 (4) - 22.04.2024 05:25 [11:43:14]1206 (1) - 0 [11:43:14]OFD Sender: Remove packet 77043 [11:43:14]ProducePacketName [11:43:14]name=ofd_packets/00077043 [11:43:14]NVStorageDeleteData [11:43:14]Write to MH i2c: 01 00 00 6A 01 6B [11:43:14]Write i2c OK [11:43:14]MH_I2C_Read... [11:43:14]Read from MH i2c: 01 [11:43:14]MH_I2C_Read... [11:43:14]Read from MH i2c: 01 07 00 [11:43:14]MH_I2C_Read... [11:43:14]Read from MH i2c: 01 07 00 6A 01 00 00 00 00 00 0A 0D 89 [11:43:14]RasterBufferAndPrint [11:43:14]line [11:43:14]line [11:43:14]line [11:43:14]line [11:43:14]line [11:43:14]written 0, free lines is 3345 [11:43:14]MH_Cut [11:43:14]Write to MH i2c: D1 01 00 71 01 01 44 [11:43:14]Write i2c OK [11:43:14]MH_I2C_Read... [11:43:14]Read from MH i2c: D1 [11:43:14]MH_I2C_Read... [11:43:14]Read from MH i2c: D1 01 00 [11:43:14]MH_I2C_Read... [11:43:14]Read from MH i2c: D1 01 00 71 01 00 43 [11:43:14]Write to MH i2c: 01 00 00 72 01 73 [11:43:14]Write i2c OK [11:43:14]MH_I2C_Read... [11:43:14]OFD Sender: No OFD packet to send [11:43:15]*** Cut start [11:43:15]*** Partial cut [11:43:15]*** CUTSNS_PIN = 1 [11:43:15]*** CUTSNS_PIN = 0 [11:43:15]*** Brake cut motor [11:43:15]Read from MH i2c: 01 [11:43:15]MH_I2C_Read... [11:43:15]*** Stop cut motor [11:43:15]*** Cut end [11:43:15]Read from MH i2c: 01 07 00 [11:43:15]MH_I2C_Read... [11:43:15]Read from MH i2c: 01 07 00 72 01 00 00 00 00 00 FF 0F 88 [11:43:15]process_action close_receipt done [11:43:15]requested_data is exist [11:43:15]produce_requested_data [11:43:15]requested_item fm.sn is exist - process it [11:43:15]wFMCommunicate request_size=4 [11:43:15]MH_SAM_APDU [11:43:15]CAPDU: 80 11 00 00 [11:43:15]Write to MH i2c: E2 08 00 73 01 80 11 00 00 00 00 00 00 EE [11:43:15]Write i2c OK [11:43:15]MH_I2C_Read... [11:43:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:15]Read from MH i2c: E2 [11:43:15]MH_I2C_Read... [11:43:15]Read from MH i2c: E2 17 00 [11:43:15]MH_I2C_Read... [11:43:15]Read from MH i2c: E2 17 00 73 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 41 [11:43:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:43:15]wFMCommunicate OK [11:43:15]requested_item fd.num is exist - process it [11:43:15]SAM_PROTO_GetFieldsCounters [11:43:15]wFMCommunicate request_size=4 [11:43:15]MH_SAM_APDU [11:43:15]CAPDU: 80 13 00 00 [11:43:15]Write to MH i2c: E2 08 00 74 01 80 13 00 00 00 00 00 00 F1 [11:43:15]Write i2c OK [11:43:15]MH_I2C_Read... [11:43:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:16]Read from MH i2c: E2 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 62 00 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 62 00 74 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F3 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [11:43:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F3 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:16]wFMCommunicate OK [11:43:16]SAM_PROTO_GetFieldsCounters done [11:43:16]requested_item shift.num is exist - process it [11:43:16]requested_item shift.opened is exist - process it [11:43:16]req_shift_opened [11:43:16]FM_GetShiftState [11:43:16]SAM_PROTO_GetShiftState [11:43:16]wFMCommunicate request_size=4 [11:43:16]MH_SAM_APDU [11:43:16]CAPDU: 80 13 01 00 [11:43:16]Write to MH i2c: E2 08 00 75 01 80 13 01 00 00 00 00 00 F3 [11:43:16]Write i2c OK [11:43:16]MH_I2C_Read... [11:43:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:16]Read from MH i2c: E2 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 0E 00 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 0E 00 75 01 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 1A [11:43:16]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:43:16]wFMCommunicate OK [11:43:16]SAM_PROTO_GetShiftState done [11:43:16]FM_GetShiftState done [11:43:16]req_shift_opened done [11:43:16]requested_item shift.open_date is exist - process it [11:43:16]req_shift_open_date [11:43:16]req_shift_open_date done [11:43:16]produce_requested_data done [11:43:16]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77043,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [11:43:16]process_action_free close_receipt [11:43:16]json_value_free [11:43:16]json_value_free done [11:43:16]process_json_proto returns [11:43:16]Send response to host [11:43:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77043,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [11:43:16]free response buf [11:43:16]execute_script done [11:43:16]execute_script returns [11:43:16]free content buf [11:43:16]Sock 10.Close socket [11:43:16]Sock 10.Thread stoped [11:43:18]accept exits with 8 [11:43:18]New connection [11:43:18]New thread 3067338084 created [11:43:18]Thread 3067481444 joined [11:43:18]Waiting for new connection... [11:43:18] Sock 8.Parse request [11:43:18]Sock 8.Check first char [11:43:18]Sock 8.First char is OK [11:43:18]request: POST /json_proto HTTP/1.0 [11:43:18]Method: POST [11:43:18]URL: /json_proto [11:43:18]Method is POST - this is cgi request [11:43:18]url: /json_proto [11:43:18]query_string will be loaded in cgi processing [11:43:18]execute_cgi json_proto POST (null) [11:43:18]execute_cgi path=json_proto method=POST [11:43:18]POST find Content-Length [11:43:18]Host: 172.17.62.5:8080 [11:43:18]Content-Length: 822 [11:43:18]Content-Type: application/json [11:43:18] [11:43:18]POST finish read [11:43:18]Found Content-Length = 822 [11:43:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 61.180, "sum" : 2000.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:18]execute_script... [11:43: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)191619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 61.180, "sum" : 2000.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:18]POST & json_proto [11:43:18]process_json_proto [11:43:18]json parsed OK: [11:43:18]protocol is kg_v1.0 [11:43:18]action value=close_receipt [11:43:18]process_action close_receipt [11:43:18]cmd_close_receipt [11:43:18]MH_GetDate [11:43:18]Write to MH i2c: F0 00 00 76 01 66 [11:43:18]Write i2c OK [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: F0 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: F0 09 00 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: F0 09 00 76 01 00 56 4D 26 66 F4 E9 65 64 44 [11:43:18]GetLastDocTimeStamp 1713786192 [11:43:18]current date 1713786198 [11:43:18]FM_GetShiftState [11:43:18]SAM_PROTO_GetShiftState [11:43:18]wFMCommunicate request_size=4 [11:43:18]MH_SAM_APDU [11:43:18]CAPDU: 80 13 01 00 [11:43:18]Write to MH i2c: E2 08 00 77 01 80 13 01 00 00 00 00 00 F5 [11:43:18]Write i2c OK [11:43:18]MH_I2C_Read... [11:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:18]Read from MH i2c: E2 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: E2 0E 00 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: E2 0E 00 77 01 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 1C [11:43:18]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:43:18]wFMCommunicate OK [11:43:18]SAM_PROTO_GetShiftState done [11:43:18]FM_GetShiftState done [11:43:18]opened in 1713745124 [11:43:18]opened+sec_in_day 1713831524 [11:43:18]quantity*price = 200058 [11:43:18]sum+1 = 200060 [11:43:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.59 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 0.00 Безнал.: 2000.59 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 63 22.04.2024 11:43 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874652 ФД: 77044 ФПД: 253496141569673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T114318&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77044&fm=253496141569673&tin=02508201610067®Number=0000000000091573&sum=200059 [11:43:19]StoreToDocumentArchive [11:43:19]shift 373 fd 77044 [11:43:19]save to /storage/0373/doc_00077044 [11:43:19]save last doc name /storage/0373/doc_00077044 to /storage/kkm_last_doc_name [11:43:19]save OK [11:43:19]Clear old archive folders... [11:43:19]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:43:19]tlvbuf is 00B552C0 [11:43:19]SAM_PROTO_ClearQueue [11:43:19]wFMCommunicate request_size=4 [11:43:19]MH_SAM_APDU [11:43:19]CAPDU: 80 09 00 00 [11:43:19]Write to MH i2c: E2 08 00 84 01 80 09 00 00 00 00 00 00 F7 [11:43:19]Write i2c OK [11:43:19]MH_I2C_Read... [11:43:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:19]Read from MH i2c: E2 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 03 00 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 03 00 84 01 00 90 00 F9 [11:43:19]RAPDU: 90 00 [11:43:19]wFMCommunicate OK [11:43:19]SAM_PROTO_ClearQueue done [11:43:19]KKMCreateOFDPacket [11:43:19]OFDProtocolAddRootSTLVToBuf [11:43:19]FM_MakeSignedData [11:43:19]FM_MakeSignedData [11:43:19]SAM_PROTO_SignData [11:43:19]wFMCommunicate request_size=4 [11:43:19]MH_SAM_APDU [11:43:19]CAPDU: 80 0D 01 02 [11:43:19]Write to MH i2c: E2 08 00 85 01 80 0D 01 02 00 00 00 00 FF [11:43:19]Write i2c OK [11:43:19]MH_I2C_Read... [11:43:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:19]Read from MH i2c: E2 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 03 00 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: E2 03 00 85 01 00 90 00 FA [11:43:19]RAPDU: 90 00 [11:43:19]wFMCommunicate OK [11:43:19]wFMCommunicate request_size=255 [11:43:19]MH_SAM_APDU [11:43:19]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FC EE 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 56 4D 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F4 2C 01 00 35 04 06 00 E6 8D [11:43:19]Write to MH i2c: E2 02 01 86 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FC EE 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 56 4D 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F4 2C 01 00 35 04 06 00 E6 8D 00 00 C4 [11:43:19]Write i2c OK [11:43:19]MH_I2C_Read... [11:43:20]OFD Sender: No OFD packet to send [11:43:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:20]Read from MH i2c: E2 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 03 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 03 00 86 01 00 90 00 FB [11:43:20]RAPDU: 90 00 [11:43:20]wFMCommunicate OK [11:43:20]wFMCommunicate request_size=9 [11:43:20]MH_SAM_APDU [11:43:20]CAPDU: 80 0D 02 02 04 AB 78 5E 89 [11:43:20]Write to MH i2c: E2 0C 00 87 01 80 0D 02 02 04 00 AB 78 5E 89 00 00 14 [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:20]Read from MH i2c: E2 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 03 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 03 00 87 01 00 90 00 FC [11:43:20]RAPDU: 90 00 [11:43:20]wFMCommunicate OK [11:43:20]wFMCommunicate request_size=4 [11:43:20]MH_SAM_APDU [11:43:20]CAPDU: 80 0D 03 02 [11:43:20]Write to MH i2c: E2 08 00 88 01 80 0D 03 02 00 00 00 00 04 [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:20]Read from MH i2c: E2 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 0B 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 0B 00 88 01 00 18 66 A0 0E C4 AB F5 36 90 00 CB [11:43:20]RAPDU: 18 66 A0 0E C4 AB F5 36 90 00 [11:43:20]wFMCommunicate OK [11:43:20]SAM_PROTO_SignData done [11:43:20]FM_MakeSignedData done [11:43:20]CreateOFDProtocolMessage [11:43:20]wFMCommunicate request_size=4 [11:43:20]MH_SAM_APDU [11:43:20]CAPDU: 80 11 00 00 [11:43:20]Write to MH i2c: E2 08 00 89 01 80 11 00 00 00 00 00 00 04 [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:20]Read from MH i2c: E2 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 17 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 17 00 89 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 57 [11:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:43:20]wFMCommunicate OK [11:43:20]CreateOFDProtocolMessage done [11:43:20]OFDSenderStorePacket 77044 [11:43:20]StoreOFDPacket docnum=77044 [11:43:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 43 4B 06 01 E5 8F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FC EE 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 56 4D 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F4 2C 01 00 35 04 06 00 E6 8D AB 78 5E 89 18 66 A0 0E C4 AB F5 36 [11:43:20]CheckFolder [11:43:20]dirname=/storage/ofd_packets [11:43:20]CheckFolder done [11:43:20]ProducePacketName [11:43:20]name=ofd_packets/00077044 [11:43:20]NVStorageSaveData ofd_packets/00077044 [11:43:20]File name is /storage/ofd_packets/00077044 [11:43:20]Write 300 bytes [11:43:20]NVStorageSaveData done [11:43:20]OFDSenderStorePacket done [11:43:20]KKMCreateOFDPacket done [11:43:20]NVStorageSaveData kkm_last_timestamp [11:43:20]File name is /storage/kkm_last_timestamp [11:43:20]Write 4 bytes [11:43:20]NVStorageSaveData done [11:43:20]ExternCall_PrintAddStr [11:43:20]wPrintStart [11:43:20]Write to MH i2c: 01 00 00 8A 01 8B [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: 01 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: 01 07 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 FF 0F A0 [11:43:20]RasterBufferAndPrint [11:43:20]line Счет N : (1)191619 [11:43:20]line ИНН: 02508201610067 [11:43:20]line Контрольно-Кассовый Чек [11:43:20]line ПРОДАЖА [11:43:20]line ТРК (МРК, ГНК) : 71 [11:43:20]line Товар: 2711190000 [11:43:20]line ГАЗ-К-5 [11:43:20]line 61.180 * 32.70 [11:43:20]line = 2000.59 [11:43:20]line НДС 12% НСП 1% [11:43:20]line > о реализуемом товаре [11:43:20]line ИТОГО: 2000.59 [11:43:20]line НСП 1% : 17.70 [11:43:20]line НДС 12% : 212.45 [11:43:20]line Наличными: 0.00 [11:43:20]line Безнал.: 2000.59 [11:43:20]line Место: АЗС № 106 "Партнер Нефть" [11:43:20]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:43:20]line СНО: Общий режим [11:43:20]line Чек 63 22.04.2024 11:43 [11:43:20]line Смена: 373 ФФД: 1.0 [11:43:20]line ЗНМ: 0300000141 [11:43:20]line РНМ: 0000000000091573 [11:43:20]line Версия ККМ: 001 [11:43:20]line Платежная система: Бакай Банк [11:43:20]line ФМ: 0000000000874652 [11:43:20]line ФД: 77044 [11:43:20]line ФПД: 253496141569673 [11:43:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T114318&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77044&fm=253496141569673&tin=02508201610067®Number=0000000000091573&sum=200059 [11:43:20]written 0, free lines is 4095 [11:43:20]OFD Sender: Processing packet 77044 [packets to send 129, broken 128] [11:43:20]ProducePacketName [11:43:20]name=ofd_packets/00077044 [11:43:20]OFD Sender: To server: pG, [11:43:20]CommunicateWithHost lk.salyk.kg:30040 [11:43:20]ConnectInit lk.salyk.kg [11:43:20]Connected sock=9 [11:43:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 43 4B 06 01 E5 8F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FC EE 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 7B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 56 4D 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F4 2C 01 00 35 04 06 00 E6 8D AB 78 5E 89 18 66 A0 0E C4 AB F5 36 [11:43:20]Write to MH i2c: 01 00 00 B3 01 B4 [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: 01 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: 01 07 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: 01 07 00 B3 01 00 00 00 00 00 13 0D DB [11:43:20]RasterBufferAndPrint [11:43:20]line [11:43:20]line [11:43:20]line [11:43:20]line [11:43:20]line [11:43:20]written 0, free lines is 3358 [11:43:20]MH_Cut [11:43:20]Write to MH i2c: D1 01 00 BA 01 01 8D [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: D1 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: D1 01 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: D1 01 00 BA 01 00 8C [11:43:20]Write to MH i2c: 01 00 00 BB 01 BC [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 54 02 47 00 40 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F4 2C 01 00 F4 03 04 00 D9 F4 25 66 B6 04 01 00 00 03 CF 14 17 FA 14 CC 7C [11:43:20]CommunicateWithHost err = 0 [11:43:20]CheckOFDResponse [11:43:20]1017 (14) - 77093643461234 [11:43:20]1041 (16) - 0000000000874652 [11:43:20]1040 (4) - 77044 [11:43:20]1012 (4) - 22.04.2024 05:25 [11:43:20]1206 (1) - 0 [11:43:20]OFD Sender: Remove packet 77044 [11:43:20]ProducePacketName [11:43:20]name=ofd_packets/00077044 [11:43:20]NVStorageDeleteData [11:43:21]OFD Sender: No OFD packet to send [11:43:21]*** Cut start [11:43:21]*** Partial cut [11:43:21]*** CUTSNS_PIN = 1 [11:43:21]*** CUTSNS_PIN = 0 [11:43:21]*** Brake cut motor [11:43:22]Read from MH i2c: 01 [11:43:22]MH_I2C_Read... [11:43:22]*** Stop cut motor [11:43:22]*** Cut end [11:43:22]Read from MH i2c: 01 07 00 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: 01 07 00 BB 01 00 00 00 00 00 FF 0F D1 [11:43:22]process_action close_receipt done [11:43:22]requested_data is exist [11:43:22]produce_requested_data [11:43:22]requested_item fm.sn is exist - process it [11:43:22]wFMCommunicate request_size=4 [11:43:22]MH_SAM_APDU [11:43:22]CAPDU: 80 11 00 00 [11:43:22]Write to MH i2c: E2 08 00 BC 01 80 11 00 00 00 00 00 00 37 [11:43:22]Write i2c OK [11:43:22]MH_I2C_Read... [11:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:22]Read from MH i2c: E2 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 17 00 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 17 00 BC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 8A [11:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:43:22]wFMCommunicate OK [11:43:22]requested_item fd.num is exist - process it [11:43:22]SAM_PROTO_GetFieldsCounters [11:43:22]wFMCommunicate request_size=4 [11:43:22]MH_SAM_APDU [11:43:22]CAPDU: 80 13 00 00 [11:43:22]Write to MH i2c: E2 08 00 BD 01 80 13 00 00 00 00 00 00 3A [11:43:22]Write i2c OK [11:43:22]MH_I2C_Read... [11:43:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:22]Read from MH i2c: E2 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 62 00 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 62 00 BD 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F4 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [11:43:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F4 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:22]wFMCommunicate OK [11:43:22]SAM_PROTO_GetFieldsCounters done [11:43:22]requested_item shift.num is exist - process it [11:43:22]requested_item shift.opened is exist - process it [11:43:22]req_shift_opened [11:43:22]FM_GetShiftState [11:43:22]SAM_PROTO_GetShiftState [11:43:22]wFMCommunicate request_size=4 [11:43:22]MH_SAM_APDU [11:43:22]CAPDU: 80 13 01 00 [11:43:22]Write to MH i2c: E2 08 00 BE 01 80 13 01 00 00 00 00 00 3C [11:43:22]Write i2c OK [11:43:22]MH_I2C_Read... [11:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:22]Read from MH i2c: E2 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 0E 00 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 0E 00 BE 01 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 63 [11:43:22]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:43:22]wFMCommunicate OK [11:43:22]SAM_PROTO_GetShiftState done [11:43:22]FM_GetShiftState done [11:43:22]req_shift_opened done [11:43:22]requested_item shift.open_date is exist - process it [11:43:22]req_shift_open_date [11:43:22]req_shift_open_date done [11:43:22]produce_requested_data done [11:43:22]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77044,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [11:43:22]process_action_free close_receipt [11:43:22]json_value_free [11:43:22]json_value_free done [11:43:22]process_json_proto returns [11:43:22]Send response to host [11:43:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77044,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [11:43:22]free response buf [11:43:22]execute_script done [11:43:22]execute_script returns [11:43:22]free content buf [11:43:22]Sock 8.Close socket [11:43:22]Sock 8.Thread stoped [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:18]accept exits with 10 [11:45:18]New connection [11:45:18]New thread 3067481444 created [11:45:18]Thread 3067338084 joined [11:45:18]Waiting for new connection... [11:45:18] Sock 10.Parse request [11:45:18]Sock 10.Check first char [11:45:18]Sock 10.First char is OK [11:45:18]request: POST /json_proto HTTP/1.0 [11:45:18]Method: POST [11:45:18]URL: /json_proto [11:45:18]Method is POST - this is cgi request [11:45:18]url: /json_proto [11:45:18]query_string will be loaded in cgi processing [11:45:18]execute_cgi json_proto POST (null) [11:45:18]execute_cgi path=json_proto method=POST [11:45:18]POST find Content-Length [11:45:18]Host: 172.17.62.5:8080 [11:45:18]Content-Length: 675 [11:45:18]Content-Type: application/json [11:45:18] [11:45:18]POST finish read [11:45:18]Found Content-Length = 675 [11:45:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "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:45:18]execute_script... [11:45: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)191626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "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:45:18]POST & json_proto [11:45:18]process_json_proto [11:45:18]json parsed OK: [11:45:18]protocol is kg_v1.0 [11:45:18]action value=close_receipt [11:45:18]process_action close_receipt [11:45:18]cmd_close_receipt [11:45:18]MH_GetDate [11:45:18]Write to MH i2c: F0 00 00 BF 01 AF [11:45:18]Write i2c OK [11:45:18]MH_I2C_Read... [11:45:18]Read from MH i2c: F0 [11:45:18]MH_I2C_Read... [11:45:18]Read from MH i2c: F0 09 00 [11:45:18]MH_I2C_Read... [11:45:18]Read from MH i2c: F0 09 00 BF 01 00 CF 4D 26 66 F4 E9 65 64 06 [11:45:18]GetLastDocTimeStamp 1713786198 [11:45:18]current date 1713786319 [11:45:18]FM_GetShiftState [11:45:18]SAM_PROTO_GetShiftState [11:45:18]wFMCommunicate request_size=4 [11:45:18]MH_SAM_APDU [11:45:18]CAPDU: 80 13 01 00 [11:45:18]Write to MH i2c: E2 08 00 C0 01 80 13 01 00 00 00 00 00 3E [11:45:18]Write i2c OK [11:45:18]MH_I2C_Read... [11:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:18]Read from MH i2c: E2 [11:45:18]MH_I2C_Read... [11:45:18]Read from MH i2c: E2 0E 00 [11:45:18]MH_I2C_Read... [11:45:18]Read from MH i2c: E2 0E 00 C0 01 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 65 [11:45:18]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:45:18]wFMCommunicate OK [11:45:18]SAM_PROTO_GetShiftState done [11:45:18]FM_GetShiftState done [11:45:18]opened in 1713745124 [11:45:18]opened+sec_in_day 1713831524 [11:45:18]quantity*price = 100062 [11:45:18]sum+1 = 100063 [11:45:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 64 22.04.2024 11:45 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77045 ФПД: 56284065489386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T114519&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77045&fm=56284065489386&tin=02508201610067®Number=0000000000091573&sum=100000 [11:45:20]StoreToDocumentArchive [11:45:20]shift 373 fd 77045 [11:45:20]save to /storage/0373/doc_00077045 [11:45:20]save last doc name /storage/0373/doc_00077045 to /storage/kkm_last_doc_name [11:45:20]save OK [11:45:20]Clear old archive folders... [11:45:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:45:20]tlvbuf is 00B53530 [11:45:20]SAM_PROTO_ClearQueue [11:45:20]wFMCommunicate request_size=4 [11:45:20]MH_SAM_APDU [11:45:20]CAPDU: 80 09 00 00 [11:45:20]Write to MH i2c: E2 08 00 CD 01 80 09 00 00 00 00 00 00 40 [11:45:20]Write i2c OK [11:45:20]MH_I2C_Read... [11:45:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:20]Read from MH i2c: E2 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 03 00 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 03 00 CD 01 00 90 00 42 [11:45:20]RAPDU: 90 00 [11:45:20]wFMCommunicate OK [11:45:20]SAM_PROTO_ClearQueue done [11:45:20]KKMCreateOFDPacket [11:45:20]OFDProtocolAddRootSTLVToBuf [11:45:20]FM_MakeSignedData [11:45:20]FM_MakeSignedData [11:45:20]SAM_PROTO_SignData [11:45:20]wFMCommunicate request_size=4 [11:45:20]MH_SAM_APDU [11:45:20]CAPDU: 80 0D 01 02 [11:45:20]Write to MH i2c: E2 08 00 CE 01 80 0D 01 02 00 00 00 00 48 [11:45:20]Write i2c OK [11:45:20]MH_I2C_Read... [11:45:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:20]Read from MH i2c: E2 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 03 00 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 03 00 CE 01 00 90 00 43 [11:45:20]RAPDU: 90 00 [11:45:20]wFMCommunicate OK [11:45:20]wFMCommunicate request_size=255 [11:45:20]MH_SAM_APDU [11:45:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CF 4D 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F5 2C 01 00 35 04 06 00 [11:45:20]Write to MH i2c: E2 02 01 CF 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CF 4D 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F5 2C 01 00 35 04 06 00 00 00 E9 [11:45:20]Write i2c OK [11:45:20]MH_I2C_Read... [11:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:20]Read from MH i2c: E2 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 03 00 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 03 00 CF 01 00 90 00 44 [11:45:20]RAPDU: 90 00 [11:45:20]wFMCommunicate OK [11:45:20]wFMCommunicate request_size=11 [11:45:20]MH_SAM_APDU [11:45:20]CAPDU: 80 0D 02 02 06 33 30 A7 BA E1 EA [11:45:20]Write to MH i2c: E2 0E 00 D0 01 80 0D 02 02 06 00 33 30 A7 BA E1 EA 00 00 E6 [11:45:20]Write i2c OK [11:45:20]MH_I2C_Read... [11:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:20]Read from MH i2c: E2 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 03 00 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 03 00 D0 01 00 90 00 45 [11:45:20]RAPDU: 90 00 [11:45:20]wFMCommunicate OK [11:45:20]wFMCommunicate request_size=4 [11:45:20]MH_SAM_APDU [11:45:20]CAPDU: 80 0D 03 02 [11:45:20]Write to MH i2c: E2 08 00 D1 01 80 0D 03 02 00 00 00 00 4D [11:45:20]Write i2c OK [11:45:20]MH_I2C_Read... [11:45:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:20]Read from MH i2c: E2 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 0B 00 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 0B 00 D1 01 00 40 2E 1F 01 E0 13 D6 61 90 00 06 [11:45:20]RAPDU: 40 2E 1F 01 E0 13 D6 61 90 00 [11:45:20]wFMCommunicate OK [11:45:20]SAM_PROTO_SignData done [11:45:20]FM_MakeSignedData done [11:45:20]CreateOFDProtocolMessage [11:45:20]wFMCommunicate request_size=4 [11:45:20]MH_SAM_APDU [11:45:20]CAPDU: 80 11 00 00 [11:45:20]Write to MH i2c: E2 08 00 D2 01 80 11 00 00 00 00 00 00 4D [11:45:20]Write i2c OK [11:45:20]MH_I2C_Read... [11:45:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:20]Read from MH i2c: E2 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 17 00 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 17 00 D2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A0 [11:45:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:45:20]wFMCommunicate OK [11:45:20]CreateOFDProtocolMessage done [11:45:20]OFDSenderStorePacket 77045 [11:45:20]StoreOFDPacket docnum=77045 [11:45:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 3F AD 08 01 66 E6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CF 4D 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F5 2C 01 00 35 04 06 00 33 30 A7 BA E1 EA 40 2E 1F 01 E0 13 D6 61 [11:45:20]CheckFolder [11:45:20]dirname=/storage/ofd_packets [11:45:20]CheckFolder done [11:45:20]ProducePacketName [11:45:20]name=ofd_packets/00077045 [11:45:20]NVStorageSaveData ofd_packets/00077045 [11:45:20]File name is /storage/ofd_packets/00077045 [11:45:20]Write 302 bytes [11:45:20]NVStorageSaveData done [11:45:20]OFDSenderStorePacket done [11:45:20]KKMCreateOFDPacket done [11:45:20]NVStorageSaveData kkm_last_timestamp [11:45:20]File name is /storage/kkm_last_timestamp [11:45:20]Write 4 bytes [11:45:20]NVStorageSaveData done [11:45:20]ExternCall_PrintAddStr [11:45:20]wPrintStart [11:45:20]Write to MH i2c: 01 00 00 D3 01 D4 [11:45:20]Write i2c OK [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: 01 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: 01 07 00 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 FF 0F E9 [11:45:20]RasterBufferAndPrint [11:45:20]line Счет N : (1)191626 [11:45:20]line ИНН: 02508201610067 [11:45:20]line Контрольно-Кассовый Чек [11:45:20]line ПРОДАЖА [11:45:20]line ТРК (МРК, ГНК) : 41 [11:45:20]line Товар: 2710124130 [11:45:20]line SUPER 92-К-5 [11:45:20]line 15.300 * 65.40 [11:45:20]line = 1000.62 [11:45:20]line НДС 12% НСП 1% [11:45:20]line > о реализуемом товаре [11:45:20]line ОКРУГЛЕНИЕ: -0.62 [11:45:20]line ИТОГО: 1000.00 [11:45:20]line Внесено: 1000.00 [11:45:20]line СДАЧА: 0.00 [11:45:20]line НСП 1% : 8.85 [11:45:20]line НДС 12% : 106.26 [11:45:20]line Наличными: 1000.00 [11:45:20]line Безнал.: 0.00 [11:45:20]line Место: АЗС № 106 "Партнер Нефть" [11:45:20]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:45:20]line СНО: Общий режим [11:45:20]line Чек 64 22.04.2024 11:45 [11:45:20]line Смена: 373 ФФД: 1.0 [11:45:20]line ЗНМ: 0300000141 [11:45:20]line РНМ: 0000000000091573 [11:45:20]line Версия ККМ: 001 [11:45:20]line ФМ: 0000000000874652 [11:45:20]line ФД: 77045 [11:45:20]line ФПД: 56284065489386 [11:45:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T114519&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77045&fm=56284065489386&tin=02508201610067®Number=0000000000091573&sum=100000 [11:45:20]written 0, free lines is 4095 [11:45:20]OFD Sender: Processing packet 77045 [packets to send 129, broken 128] [11:45:20]ProducePacketName [11:45:20]name=ofd_packets/00077045 [11:45:20]OFD Sender: To server: pG, [11:45:20]CommunicateWithHost lk.salyk.kg:30040 [11:45:20]ConnectInit lk.salyk.kg [11:45:21]Connected sock=9 [11:45:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 3F AD 08 01 66 E6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CF 4D 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F5 2C 01 00 35 04 06 00 33 30 A7 BA E1 EA 40 2E 1F 01 E0 13 D6 61 [11:45:21]Write to MH i2c: 01 00 00 FD 01 FE [11:45:21]Write i2c OK [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: 01 [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: 01 07 00 [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: 01 07 00 FD 01 00 00 00 00 00 FB 0C 0C [11:45:21]RasterBufferAndPrint [11:45:21]line [11:45:21]line [11:45:21]line [11:45:21]line [11:45:21]line [11:45:21]written 0, free lines is 3329 [11:45:21]MH_Cut [11:45:21]Write to MH i2c: D1 01 00 04 02 01 D8 [11:45:21]Write i2c OK [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: D1 [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: D1 01 00 [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: D1 01 00 04 02 00 D7 [11:45:21]Write to MH i2c: 01 00 00 05 02 07 [11:45:21]Write i2c OK [11:45:21]MH_I2C_Read... [11:45:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 F9 18 47 00 80 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F5 2C 01 00 F4 03 04 00 51 F5 25 66 B6 04 01 00 00 E4 72 4B DC 12 5D CB 97 [11:45:21]CommunicateWithHost err = 0 [11:45:21]CheckOFDResponse [11:45:21]1017 (14) - 77093643461234 [11:45:21]1041 (16) - 0000000000874652 [11:45:21]1040 (4) - 77045 [11:45:21]1012 (4) - 22.04.2024 05:27 [11:45:21]1206 (1) - 0 [11:45:21]OFD Sender: Remove packet 77045 [11:45:21]ProducePacketName [11:45:21]name=ofd_packets/00077045 [11:45:21]NVStorageDeleteData [11:45:22]OFD Sender: No OFD packet to send [11:45:22]*** Cut start [11:45:22]*** Partial cut [11:45:22]*** CUTSNS_PIN = 1 [11:45:22]*** CUTSNS_PIN = 0 [11:45:22]*** Brake cut motor [11:45:22]Read from MH i2c: 01 [11:45:22]MH_I2C_Read... [11:45:22]*** Stop cut motor [11:45:22]*** Cut end [11:45:22]Read from MH i2c: 01 07 00 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: 01 07 00 05 02 00 00 00 00 00 FF 0F 1C [11:45:22]process_action close_receipt done [11:45:22]requested_data is exist [11:45:22]produce_requested_data [11:45:22]requested_item fm.sn is exist - process it [11:45:22]wFMCommunicate request_size=4 [11:45:22]MH_SAM_APDU [11:45:22]CAPDU: 80 11 00 00 [11:45:22]Write to MH i2c: E2 08 00 06 02 80 11 00 00 00 00 00 00 82 [11:45:22]Write i2c OK [11:45:22]MH_I2C_Read... [11:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:22]Read from MH i2c: E2 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 17 00 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 17 00 06 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D5 [11:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:45:22]wFMCommunicate OK [11:45:22]requested_item fd.num is exist - process it [11:45:22]SAM_PROTO_GetFieldsCounters [11:45:22]wFMCommunicate request_size=4 [11:45:22]MH_SAM_APDU [11:45:22]CAPDU: 80 13 00 00 [11:45:22]Write to MH i2c: E2 08 00 07 02 80 13 00 00 00 00 00 00 85 [11:45:22]Write i2c OK [11:45:22]MH_I2C_Read... [11:45:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:22]Read from MH i2c: E2 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 62 00 [11:45:22]MH_I2C_Read... [11:45:22]Read from MH i2c: E2 62 00 07 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F5 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [11:45:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F5 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:22]wFMCommunicate OK [11:45:22]SAM_PROTO_GetFieldsCounters done [11:45:22]requested_item shift.num is exist - process it [11:45:22]requested_item shift.opened is exist - process it [11:45:22]req_shift_opened [11:45:22]FM_GetShiftState [11:45:22]SAM_PROTO_GetShiftState [11:45:22]wFMCommunicate request_size=4 [11:45:22]MH_SAM_APDU [11:45:22]CAPDU: 80 13 01 00 [11:45:22]Write to MH i2c: E2 08 00 08 02 80 13 01 00 00 00 00 00 87 [11:45:22]Write i2c OK [11:45:22]MH_I2C_Read... [11:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:23]Read from MH i2c: E2 [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: E2 0E 00 [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: E2 0E 00 08 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 AE [11:45:23]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:45:23]wFMCommunicate OK [11:45:23]SAM_PROTO_GetShiftState done [11:45:23]FM_GetShiftState done [11:45:23]req_shift_opened done [11:45:23]requested_item shift.open_date is exist - process it [11:45:23]req_shift_open_date [11:45:23]req_shift_open_date done [11:45:23]produce_requested_data done [11:45:23]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77045,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [11:45:23]process_action_free close_receipt [11:45:23]json_value_free [11:45:23]json_value_free done [11:45:23]process_json_proto returns [11:45:23]Send response to host [11:45:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77045,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [11:45:23]free response buf [11:45:23]execute_script done [11:45:23]execute_script returns [11:45:23]free content buf [11:45:23]Sock 10.Close socket [11:45:23]Sock 10.Thread stoped [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [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:48:59]accept exits with 8 [11:48:59]New connection [11:48:59]New thread 3067338084 created [11:48:59]Thread 3067481444 joined [11:48:59]Waiting for new connection... [11:48:59] Sock 8.Parse request [11:48:59]Sock 8.Check first char [11:48:59]Sock 8.First char is OK [11:48:59]request: POST /json_proto HTTP/1.0 [11:48:59]Method: POST [11:48:59]URL: /json_proto [11:48:59]Method is POST - this is cgi request [11:48:59]url: /json_proto [11:48:59]query_string will be loaded in cgi processing [11:48:59]execute_cgi json_proto POST (null) [11:48:59]execute_cgi path=json_proto method=POST [11:48:59]POST find Content-Length [11:48:59]Host: 172.17.62.5:8080 [11:48:59]Content-Length: 679 [11:48:59]Content-Type: application/json [11:48:59] [11:48:59]POST finish read [11:48:59]Found Content-Length = 679 [11:48:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 16.470, "sum" : 1200.66, "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:48:59]execute_script... [11:48: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)191627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 16.470, "sum" : 1200.66, "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:48:59]POST & json_proto [11:48:59]process_json_proto [11:48:59]json parsed OK: [11:48:59]protocol is kg_v1.0 [11:48:59]action value=close_receipt [11:48:59]process_action close_receipt [11:48:59]cmd_close_receipt [11:48:59]MH_GetDate [11:48:59]Write to MH i2c: F0 00 00 09 02 FA [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: F0 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: F0 09 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: F0 09 00 09 02 00 AB 4E 26 66 F4 E9 65 64 2E [11:48:59]GetLastDocTimeStamp 1713786319 [11:48:59]current date 1713786539 [11:48:59]FM_GetShiftState [11:48:59]SAM_PROTO_GetShiftState [11:48:59]wFMCommunicate request_size=4 [11:48:59]MH_SAM_APDU [11:48:59]CAPDU: 80 13 01 00 [11:48:59]Write to MH i2c: E2 08 00 0A 02 80 13 01 00 00 00 00 00 89 [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:59]Read from MH i2c: E2 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 0E 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 0E 00 0A 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 B0 [11:48:59]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:48:59]wFMCommunicate OK [11:48:59]SAM_PROTO_GetShiftState done [11:48:59]FM_GetShiftState done [11:48:59]opened in 1713745124 [11:48:59]opened+sec_in_day 1713831524 [11:48:59]quantity*price = 120066 [11:48:59]sum+1 = 120067 [11:48:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.50 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 65 22.04.2024 11:48 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77046 ФПД: 237973551218044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T114859&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77046&fm=237973551218044&tin=02508201610067®Number=0000000000091573&sum=120000 [11:49:01]StoreToDocumentArchive [11:49:01]shift 373 fd 77046 [11:49:01]save to /storage/0373/doc_00077046 [11:49:01]save last doc name /storage/0373/doc_00077046 to /storage/kkm_last_doc_name [11:49:01]save OK [11:49:01]Clear old archive folders... [11:49:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:49:01]tlvbuf is 00BBDF70 [11:49:01]SAM_PROTO_ClearQueue [11:49:01]wFMCommunicate request_size=4 [11:49:01]MH_SAM_APDU [11:49:01]CAPDU: 80 09 00 00 [11:49:01]Write to MH i2c: E2 08 00 17 02 80 09 00 00 00 00 00 00 8B [11:49:01]Write i2c OK [11:49:01]MH_I2C_Read... [11:49:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:01]Read from MH i2c: E2 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 03 00 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 03 00 17 02 00 90 00 8D [11:49:01]RAPDU: 90 00 [11:49:01]wFMCommunicate OK [11:49:01]SAM_PROTO_ClearQueue done [11:49:01]KKMCreateOFDPacket [11:49:01]OFDProtocolAddRootSTLVToBuf [11:49:01]FM_MakeSignedData [11:49:01]FM_MakeSignedData [11:49:01]SAM_PROTO_SignData [11:49:01]wFMCommunicate request_size=4 [11:49:01]MH_SAM_APDU [11:49:01]CAPDU: 80 0D 01 02 [11:49:01]Write to MH i2c: E2 08 00 18 02 80 0D 01 02 00 00 00 00 93 [11:49:01]Write i2c OK [11:49:01]MH_I2C_Read... [11:49:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:01]Read from MH i2c: E2 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 03 00 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 03 00 18 02 00 90 00 8E [11:49:01]RAPDU: 90 00 [11:49:01]wFMCommunicate OK [11:49:01]wFMCommunicate request_size=255 [11:49:01]MH_SAM_APDU [11:49: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 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 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 CE 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 41 00 00 00 F4 03 04 00 AB 4E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F6 2C 01 00 35 04 06 00 D8 6F 88 FC [11:49:01]Write to MH i2c: E2 02 01 19 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 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 CE 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 41 00 00 00 F4 03 04 00 AB 4E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F6 2C 01 00 35 04 06 00 D8 6F 88 FC 00 00 71 [11:49:01]Write i2c OK [11:49:01]MH_I2C_Read... [11:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:01]Read from MH i2c: E2 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 03 00 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 03 00 19 02 00 90 00 8F [11:49:01]RAPDU: 90 00 [11:49:01]wFMCommunicate OK [11:49:01]wFMCommunicate request_size=7 [11:49:01]MH_SAM_APDU [11:49:01]CAPDU: 80 0D 02 02 02 7D 7C [11:49:01]Write to MH i2c: E2 0A 00 1A 02 80 0D 02 02 02 00 7D 7C 00 00 93 [11:49:01]Write i2c OK [11:49:01]MH_I2C_Read... [11:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:01]Read from MH i2c: E2 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 03 00 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 03 00 1A 02 00 90 00 90 [11:49:01]RAPDU: 90 00 [11:49:01]wFMCommunicate OK [11:49:01]wFMCommunicate request_size=4 [11:49:01]MH_SAM_APDU [11:49:01]CAPDU: 80 0D 03 02 [11:49:01]Write to MH i2c: E2 08 00 1B 02 80 0D 03 02 00 00 00 00 98 [11:49:01]Write i2c OK [11:49:01]MH_I2C_Read... [11:49:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:01]Read from MH i2c: E2 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 0B 00 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 0B 00 1B 02 00 86 54 DE 80 B9 84 64 DB 90 00 4D [11:49:01]RAPDU: 86 54 DE 80 B9 84 64 DB 90 00 [11:49:01]wFMCommunicate OK [11:49:01]SAM_PROTO_SignData done [11:49:01]FM_MakeSignedData done [11:49:01]CreateOFDProtocolMessage [11:49:01]wFMCommunicate request_size=4 [11:49:01]MH_SAM_APDU [11:49:01]CAPDU: 80 11 00 00 [11:49:01]Write to MH i2c: E2 08 00 1C 02 80 11 00 00 00 00 00 00 98 [11:49:01]Write i2c OK [11:49:01]MH_I2C_Read... [11:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:01]Read from MH i2c: E2 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 17 00 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: E2 17 00 1C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 EB [11:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:49:01]wFMCommunicate OK [11:49:01]CreateOFDProtocolMessage done [11:49:01]OFDSenderStorePacket 77046 [11:49:01]StoreOFDPacket docnum=77046 [11:49:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 23 9B 04 01 A6 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 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 CE 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 41 00 00 00 F4 03 04 00 AB 4E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F6 2C 01 00 35 04 06 00 D8 6F 88 FC 7D 7C 86 54 DE 80 B9 84 64 DB [11:49:01]CheckFolder [11:49:01]dirname=/storage/ofd_packets [11:49:01]CheckFolder done [11:49:01]ProducePacketName [11:49:01]name=ofd_packets/00077046 [11:49:01]NVStorageSaveData ofd_packets/00077046 [11:49:01]File name is /storage/ofd_packets/00077046 [11:49:01]Write 298 bytes [11:49:01]NVStorageSaveData done [11:49:01]OFDSenderStorePacket done [11:49:01]KKMCreateOFDPacket done [11:49:01]NVStorageSaveData kkm_last_timestamp [11:49:01]File name is /storage/kkm_last_timestamp [11:49:01]Write 4 bytes [11:49:01]NVStorageSaveData done [11:49:01]ExternCall_PrintAddStr [11:49:01]wPrintStart [11:49:01]Write to MH i2c: 01 00 00 1D 02 1F [11:49:01]Write i2c OK [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: 01 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: 01 07 00 [11:49:01]MH_I2C_Read... [11:49:01]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 FF 0F 34 [11:49:01]RasterBufferAndPrint [11:49:01]line Счет N : (1)191627 [11:49:01]line ИНН: 02508201610067 [11:49:01]line Контрольно-Кассовый Чек [11:49:01]line ПРОДАЖА [11:49:01]line ТРК (МРК, ГНК) : 61 [11:49:01]line Товар: 2710194210 [11:49:01]line ДТ-К-5 [11:49:01]line 16.470 * 72.90 [11:49:01]line = 1200.66 [11:49:01]line НДС 12% НСП 1% [11:49:01]line > о реализуемом товаре [11:49:01]line ОКРУГЛЕНИЕ: -0.66 [11:49:01]line ИТОГО: 1200.00 [11:49:01]line Внесено: 1200.00 [11:49:01]line СДАЧА: 0.00 [11:49:01]line НСП 1% : 10.62 [11:49:01]line НДС 12% : 127.50 [11:49:01]line Наличными: 1200.00 [11:49:01]line Безнал.: 0.00 [11:49:01]line Место: АЗС № 106 "Партнер Нефть" [11:49:01]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [11:49:01]line СНО: Общий режим [11:49:01]line Чек 65 22.04.2024 11:48 [11:49:01]line Смена: 373 ФФД: 1.0 [11:49:01]line ЗНМ: 0300000141 [11:49:01]line РНМ: 0000000000091573 [11:49:01]line Версия ККМ: 001 [11:49:01]line ФМ: 0000000000874652 [11:49:01]line ФД: 77046 [11:49:01]line ФПД: 237973551218044 [11:49:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T114859&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77046&fm=237973551218044&tin=02508201610067®Number=0000000000091573&sum=120000 [11:49:01]OFD Sender: Processing packet 77046 [packets to send 129, broken 128] [11:49:01]ProducePacketName [11:49:01]name=ofd_packets/00077046 [11:49:01]OFD Sender: To server: pG, [11:49:01]CommunicateWithHost lk.salyk.kg:30040 [11:49:01]ConnectInit lk.salyk.kg [11:49:01]written 0, free lines is 4095 [11:49:02]Connected sock=10 [11:49:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 23 9B 04 01 A6 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 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 CE 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 41 00 00 00 F4 03 04 00 AB 4E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F6 2C 01 00 35 04 06 00 D8 6F 88 FC 7D 7C 86 54 DE 80 B9 84 64 DB [11:49:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 5E E3 47 00 74 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F6 2C 01 00 F4 03 04 00 2E F6 25 66 B6 04 01 00 00 ED 90 55 98 F7 16 8D 38 [11:49:02]CommunicateWithHost err = 0 [11:49:02]CheckOFDResponse [11:49:02]1017 (14) - 77093643461234 [11:49:02]1041 (16) - 0000000000874652 [11:49:02]1040 (4) - 77046 [11:49:02]1012 (4) - 22.04.2024 05:31 [11:49:02]1206 (1) - 0 [11:49:02]OFD Sender: Remove packet 77046 [11:49:02]ProducePacketName [11:49:02]name=ofd_packets/00077046 [11:49:02]NVStorageDeleteData [11:49:02]Write to MH i2c: 01 00 00 47 02 49 [11:49:02]Write i2c OK [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: 01 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: 01 07 00 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: 01 07 00 47 02 00 00 00 00 00 EB 0C 47 [11:49:02]RasterBufferAndPrint [11:49:02]line [11:49:02]line [11:49:02]line [11:49:02]line [11:49:02]line [11:49:02]written 0, free lines is 3310 [11:49:02]MH_Cut [11:49:02]Write to MH i2c: D1 01 00 4E 02 01 22 [11:49:02]Write i2c OK [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: D1 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: D1 01 00 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: D1 01 00 4E 02 00 21 [11:49:02]Write to MH i2c: 01 00 00 4F 02 51 [11:49:02]Write i2c OK [11:49:02]MH_I2C_Read... [11:49:02]OFD Sender: No OFD packet to send [11:49:03]*** Cut start [11:49:03]*** Partial cut [11:49:03]*** CUTSNS_PIN = 1 [11:49:03]*** CUTSNS_PIN = 0 [11:49:03]*** Brake cut motor [11:49:03]Read from MH i2c: 01 [11:49:03]MH_I2C_Read... [11:49:03]*** Stop cut motor [11:49:03]*** Cut end [11:49:03]Read from MH i2c: 01 07 00 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: 01 07 00 4F 02 00 00 00 00 00 FF 0F 66 [11:49:03]process_action close_receipt done [11:49:03]requested_data is exist [11:49:03]produce_requested_data [11:49:03]requested_item fm.sn is exist - process it [11:49:03]wFMCommunicate request_size=4 [11:49:03]MH_SAM_APDU [11:49:03]CAPDU: 80 11 00 00 [11:49:03]Write to MH i2c: E2 08 00 50 02 80 11 00 00 00 00 00 00 CC [11:49:03]Write i2c OK [11:49:03]MH_I2C_Read... [11:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:03]Read from MH i2c: E2 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: E2 17 00 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: E2 17 00 50 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 1F [11:49:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:49:03]wFMCommunicate OK [11:49:03]requested_item fd.num is exist - process it [11:49:03]SAM_PROTO_GetFieldsCounters [11:49:03]wFMCommunicate request_size=4 [11:49:03]MH_SAM_APDU [11:49:03]CAPDU: 80 13 00 00 [11:49:03]Write to MH i2c: E2 08 00 51 02 80 13 00 00 00 00 00 00 CF [11:49:03]Write i2c OK [11:49:03]MH_I2C_Read... [11:49:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:03]Read from MH i2c: E2 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: E2 62 00 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: E2 62 00 51 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F6 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [11:49:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F6 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:03]wFMCommunicate OK [11:49:03]SAM_PROTO_GetFieldsCounters done [11:49:03]requested_item shift.num is exist - process it [11:49:03]requested_item shift.opened is exist - process it [11:49:03]req_shift_opened [11:49:03]FM_GetShiftState [11:49:03]SAM_PROTO_GetShiftState [11:49:03]wFMCommunicate request_size=4 [11:49:03]MH_SAM_APDU [11:49:03]CAPDU: 80 13 01 00 [11:49:03]Write to MH i2c: E2 08 00 52 02 80 13 01 00 00 00 00 00 D1 [11:49:03]Write i2c OK [11:49:03]MH_I2C_Read... [11:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:03]Read from MH i2c: E2 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: E2 0E 00 [11:49:03]MH_I2C_Read... [11:49:03]Read from MH i2c: E2 0E 00 52 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 F8 [11:49:03]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:49:03]wFMCommunicate OK [11:49:03]SAM_PROTO_GetShiftState done [11:49:03]FM_GetShiftState done [11:49:03]req_shift_opened done [11:49:03]requested_item shift.open_date is exist - process it [11:49:03]req_shift_open_date [11:49:03]req_shift_open_date done [11:49:03]produce_requested_data done [11:49:03]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77046,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [11:49:03]process_action_free close_receipt [11:49:03]json_value_free [11:49:03]json_value_free done [11:49:03]process_json_proto returns [11:49:03]Send response to host [11:49:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77046,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [11:49:03]free response buf [11:49:03]execute_script done [11:49:03]execute_script returns [11:49:03]free content buf [11:49:03]Sock 8.Close socket [11:49:03]Sock 8.Thread stoped [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:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:32]accept exits with 9 [11:54:32]New connection [11:54:32]New thread 3067481444 created [11:54:32]Thread 3067338084 joined [11:54:32]Waiting for new connection... [11:54:32] Sock 9.Parse request [11:54:32]Sock 9.Check first char [11:54:32]Sock 9.First char is OK [11:54:32]request: POST /json_proto HTTP/1.0 [11:54:32]Method: POST [11:54:32]URL: /json_proto [11:54:32]Method is POST - this is cgi request [11:54:32]url: /json_proto [11:54:32]query_string will be loaded in cgi processing [11:54:32]execute_cgi json_proto POST (null) [11:54:32]execute_cgi path=json_proto method=POST [11:54:32]POST find Content-Length [11:54:32]Host: 172.17.62.5:8080 [11:54:32]Content-Length: 1177 [11:54:32]Content-Type: application/json [11:54:32] [11:54:32]POST finish read [11:54:32]Found Content-Length = 1177 [11:54: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191628\u000A22.04.2024 11:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711190000\u000A\u0413\u0410\u0417-\u041A-5\u000A 15.920 x 32.70\u000A\u0418\u0422\u041E\u0413: 520.58\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096673\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:32]execute_script... [11:54: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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191628\u000A22.04.2024 11:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711190000\u000A\u0413\u0410\u0417-\u041A-5\u000A 15.920 x 32.70\u000A\u0418\u0422\u041E\u0413: 520.58\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096673\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:32]POST & json_proto [11:54:32]process_json_proto [11:54:32]json parsed OK: [11:54:32]protocol is kg_v1.0 [11:54:32]action value=print_text [11:54:32]process_action print_text [11:54:32]cmd_print_text [11:54:32]ExternCall_PrintAddStr [11:54:32]wPrintStart [11:54:32]Write to MH i2c: 01 00 00 53 02 55 [11:54:32]Write i2c OK [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: 01 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: 01 07 00 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: 01 07 00 53 02 00 00 00 00 00 FF 0F 6A [11:54:32]RasterBufferAndPrint [11:54:32]line *****ТОВАРНЫЙ ЧЕК***** [11:54:32]line АЗС 106 [11:54:32]line Партнер нефть [11:54:32]line 02508201610067 [11:54:32]line Кассир : Токторбаева Н. [11:54:32]line Счет N : (1)191628 [11:54:32]line 22.04.2024 11:35 [11:54:32]line ПРОДАЖА [11:54:32]line ТРК (МРК, ГНК): 71 [11:54:32]line Вид ГСМ : 2711190000 [11:54:32]line ГАЗ-К-5 [11:54:32]line 15.920 x 32.70 [11:54:32]line ИТОГ: 520.58 [11:54:32]line Тип оплаты: Талоны: ТК ГПНА Online [11:54:32]line 30096673 [11:54:32]line ______________________ [11:54:32]line (подпись) [11:54:32]written 0, free lines is 4095 [11:54:32]Write to MH i2c: 01 00 00 68 02 6A [11:54:32]Write i2c OK [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: 01 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: 01 07 00 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 F2 0D 70 [11:54:32]RasterBufferAndPrint [11:54:32]line [11:54:32]line [11:54:32]line [11:54:32]line [11:54:32]line [11:54:32]written 0, free lines is 3572 [11:54:32]MH_Cut [11:54:32]Write to MH i2c: D1 01 00 6F 02 01 43 [11:54:32]Write i2c OK [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: D1 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: D1 01 00 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: D1 01 00 6F 02 00 42 [11:54:32]Write to MH i2c: 01 00 00 70 02 72 [11:54:32]Write i2c OK [11:54:32]MH_I2C_Read... [11:54:33]OFD Sender: No OFD packet to send [11:54:33]*** Cut start [11:54:33]*** Partial cut [11:54:33]*** CUTSNS_PIN = 1 [11:54:33]*** CUTSNS_PIN = 0 [11:54:33]*** Brake cut motor [11:54:33]Read from MH i2c: 01 [11:54:33]MH_I2C_Read... [11:54:33]*** Stop cut motor [11:54:33]*** Cut end [11:54:33]Read from MH i2c: 01 07 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [11:54:33]process_action print_text done [11:54:33]requested_data is exist [11:54:33]produce_requested_data [11:54:33]requested_item fm.sn is exist - process it [11:54:33]wFMCommunicate request_size=4 [11:54:33]MH_SAM_APDU [11:54:33]CAPDU: 80 11 00 00 [11:54:33]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:33]Read from MH i2c: E2 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 17 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 40 [11:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:54:33]wFMCommunicate OK [11:54:33]requested_item fd.num is exist - process it [11:54:33]SAM_PROTO_GetFieldsCounters [11:54:33]wFMCommunicate request_size=4 [11:54:33]MH_SAM_APDU [11:54:33]CAPDU: 80 13 00 00 [11:54:33]Write to MH i2c: E2 08 00 72 02 80 13 00 00 00 00 00 00 F0 [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:33]Read from MH i2c: E2 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 62 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 62 00 72 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F6 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [11:54:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F6 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:33]wFMCommunicate OK [11:54:33]SAM_PROTO_GetFieldsCounters done [11:54:33]requested_item shift.num is exist - process it [11:54:33]requested_item shift.opened is exist - process it [11:54:33]req_shift_opened [11:54:33]FM_GetShiftState [11:54:33]SAM_PROTO_GetShiftState [11:54:33]wFMCommunicate request_size=4 [11:54:33]MH_SAM_APDU [11:54:33]CAPDU: 80 13 01 00 [11:54:33]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:34]Read from MH i2c: E2 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: E2 0E 00 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 19 [11:54:34]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:54:34]wFMCommunicate OK [11:54:34]SAM_PROTO_GetShiftState done [11:54:34]FM_GetShiftState done [11:54:34]req_shift_opened done [11:54:34]requested_item shift.open_date is exist - process it [11:54:34]req_shift_open_date [11:54:34]req_shift_open_date done [11:54:34]produce_requested_data done [11:54:34]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77046,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [11:54:34]process_action_free print_text [11:54:34]json_value_free [11:54:34]json_value_free done [11:54:34]process_json_proto returns [11:54:34]Send response to host [11:54:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77046,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [11:54:34]free response buf [11:54:34]execute_script done [11:54:34]execute_script returns [11:54:34]free content buf [11:54:34]Sock 9.Close socket [11:54:34]Sock 9.Thread stoped [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:40]accept exits with 8 [11:59:40]New connection [11:59:40]New thread 3067338084 created [11:59:40]Thread 3067481444 joined [11:59:40]Waiting for new connection... [11:59:40] Sock 8.Parse request [11:59:40]Sock 8.Check first char [11:59:40]Sock 8.First char is OK [11:59:40]request: POST /json_proto HTTP/1.0 [11:59:40]Method: POST [11:59:40]URL: /json_proto [11:59:40]Method is POST - this is cgi request [11:59:40]url: /json_proto [11:59:40]query_string will be loaded in cgi processing [11:59:40]execute_cgi json_proto POST (null) [11:59:40]execute_cgi path=json_proto method=POST [11:59:40]POST find Content-Length [11:59:40]Host: 172.17.62.5:8080 [11:59:40]Content-Length: 1175 [11:59:40]Content-Type: application/json [11:59:40] [11:59:40]POST finish read [11:59:40]Found Content-Length = 1175 [11:59:40]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191629\u000A22.04.2024 11:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:40]execute_script... [11:59:40]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191629\u000A22.04.2024 11:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:40]POST & json_proto [11:59:40]process_json_proto [11:59:40]json parsed OK: [11:59:40]protocol is kg_v1.0 [11:59:40]action value=print_text [11:59:40]process_action print_text [11:59:40]cmd_print_text [11:59:40]ExternCall_PrintAddStr [11:59:40]wPrintStart [11:59:40]Write to MH i2c: 01 00 00 74 02 76 [11:59:40]Write i2c OK [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: 01 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: 01 07 00 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: 01 07 00 74 02 00 00 00 00 00 FF 0F 8B [11:59:40]RasterBufferAndPrint [11:59:40]line *****ТОВАРНЫЙ ЧЕК***** [11:59:40]line АЗС 106 [11:59:40]line Партнер нефть [11:59:40]line 02508201610067 [11:59:40]line Кассир : Токторбаева Н. [11:59:40]line Счет N : (1)191629 [11:59:40]line 22.04.2024 11:41 [11:59:40]line ПРОДАЖА [11:59:40]line ТРК (МРК, ГНК): 22 [11:59:40]line Вид ГСМ : 2710124130 [11:59:40]line Аи-92-К-5 [11:59:40]line 20.000 x 64.40 [11:59:40]line ИТОГ: 1288.00 [11:59:40]line Тип оплаты: Талоны: ТК ГПНА Online [11:59:40]line 30102984 [11:59:40]line ______________________ [11:59:40]line (подпись) [11:59:40]written 0, free lines is 4095 [11:59:40]Write to MH i2c: 01 00 00 89 02 8B [11:59:40]Write i2c OK [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: 01 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: 01 07 00 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: 01 07 00 89 02 00 00 00 00 00 F4 0D 93 [11:59:40]RasterBufferAndPrint [11:59:40]line [11:59:40]line [11:59:40]line [11:59:40]line [11:59:40]line [11:59:40]written 0, free lines is 3573 [11:59:40]MH_Cut [11:59:40]Write to MH i2c: D1 01 00 90 02 01 64 [11:59:40]Write i2c OK [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: D1 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: D1 01 00 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: D1 01 00 90 02 00 63 [11:59:40]Write to MH i2c: 01 00 00 91 02 93 [11:59:40]Write i2c OK [11:59:40]MH_I2C_Read... [11:59:40]*** Cut start [11:59:40]*** Partial cut [11:59:40]*** CUTSNS_PIN = 1 [11:59:40]*** CUTSNS_PIN = 0 [11:59:41]*** Brake cut motor [11:59:41]Read from MH i2c: 01 [11:59:41]MH_I2C_Read... [11:59:41]*** Stop cut motor [11:59:41]*** Cut end [11:59:41]Read from MH i2c: 01 07 00 [11:59:41]MH_I2C_Read... [11:59:41]Read from MH i2c: 01 07 00 91 02 00 00 00 00 00 FF 0F A8 [11:59:41]process_action print_text done [11:59:41]requested_data is exist [11:59:41]produce_requested_data [11:59:41]requested_item fm.sn is exist - process it [11:59:41]wFMCommunicate request_size=4 [11:59:41]MH_SAM_APDU [11:59:41]CAPDU: 80 11 00 00 [11:59:41]Write to MH i2c: E2 08 00 92 02 80 11 00 00 00 00 00 00 0E [11:59:41]Write i2c OK [11:59:41]MH_I2C_Read... [11:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:41]Read from MH i2c: E2 [11:59:41]MH_I2C_Read... [11:59:41]Read from MH i2c: E2 17 00 [11:59:41]MH_I2C_Read... [11:59:41]Read from MH i2c: E2 17 00 92 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 61 [11:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [11:59:41]wFMCommunicate OK [11:59:41]requested_item fd.num is exist - process it [11:59:41]SAM_PROTO_GetFieldsCounters [11:59:41]wFMCommunicate request_size=4 [11:59:41]MH_SAM_APDU [11:59:41]CAPDU: 80 13 00 00 [11:59:41]Write to MH i2c: E2 08 00 93 02 80 13 00 00 00 00 00 00 11 [11:59:41]Write i2c OK [11:59:41]MH_I2C_Read... [11:59:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:41]Read from MH i2c: E2 [11:59:41]MH_I2C_Read... [11:59:41]Read from MH i2c: E2 62 00 [11:59:41]MH_I2C_Read... [11:59:41]Read from MH i2c: E2 62 00 93 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F6 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [11:59:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F6 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:41]wFMCommunicate OK [11:59:41]SAM_PROTO_GetFieldsCounters done [11:59:41]requested_item shift.num is exist - process it [11:59:41]requested_item shift.opened is exist - process it [11:59:41]req_shift_opened [11:59:41]FM_GetShiftState [11:59:41]SAM_PROTO_GetShiftState [11:59:41]wFMCommunicate request_size=4 [11:59:41]MH_SAM_APDU [11:59:41]CAPDU: 80 13 01 00 [11:59:41]Write to MH i2c: E2 08 00 94 02 80 13 01 00 00 00 00 00 13 [11:59:41]Write i2c OK [11:59:41]MH_I2C_Read... [11:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:41]Read from MH i2c: E2 [11:59:41]MH_I2C_Read... [11:59:41]Read from MH i2c: E2 0E 00 [11:59:41]MH_I2C_Read... [11:59:41]Read from MH i2c: E2 0E 00 94 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 3A [11:59:41]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [11:59:41]wFMCommunicate OK [11:59:41]SAM_PROTO_GetShiftState done [11:59:41]FM_GetShiftState done [11:59:41]req_shift_opened done [11:59:41]requested_item shift.open_date is exist - process it [11:59:41]req_shift_open_date [11:59:41]req_shift_open_date done [11:59:41]produce_requested_data done [11:59:41]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77046,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [11:59:41]process_action_free print_text [11:59:41]json_value_free [11:59:41]json_value_free done [11:59:41]process_json_proto returns [11:59:41]Send response to host [11:59:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77046,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [11:59:41]free response buf [11:59:41]execute_script done [11:59:41]execute_script returns [11:59:41]free content buf [11:59:41]Sock 8.Close socket [11:59:41]Sock 8.Thread stoped [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:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:46]accept exits with 9 [12:06:46]New connection [12:06:46]New thread 3067481444 created [12:06:46]Thread 3067338084 joined [12:06:46]Waiting for new connection... [12:06:46] Sock 9.Parse request [12:06:46]Sock 9.Check first char [12:06:46]Sock 9.First char is OK [12:06:46]request: POST /json_proto HTTP/1.0 [12:06:46]Method: POST [12:06:46]URL: /json_proto [12:06:46]Method is POST - this is cgi request [12:06:46]url: /json_proto [12:06:46]query_string will be loaded in cgi processing [12:06:46]execute_cgi json_proto POST (null) [12:06:46]execute_cgi path=json_proto method=POST [12:06:46]POST find Content-Length [12:06:46]Host: 172.17.62.5:8080 [12:06:46]Content-Length: 674 [12:06:46]Content-Type: application/json [12:06:46] [12:06:46]POST finish read [12:06:46]Found Content-Length = 674 [12:06:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:06:46]execute_script... [12:06: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)191631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:06:46]POST & json_proto [12:06:46]process_json_proto [12:06:46]json parsed OK: [12:06:46]protocol is kg_v1.0 [12:06:46]action value=close_receipt [12:06:46]process_action close_receipt [12:06:46]cmd_close_receipt [12:06:46]MH_GetDate [12:06:46]Write to MH i2c: F0 00 00 95 02 86 [12:06:46]Write i2c OK [12:06:46]MH_I2C_Read... [12:06:46]Read from MH i2c: F0 [12:06:46]MH_I2C_Read... [12:06:46]Read from MH i2c: F0 09 00 [12:06:46]MH_I2C_Read... [12:06:46]Read from MH i2c: F0 09 00 95 02 00 D6 52 26 66 F4 E9 65 64 E9 [12:06:46]GetLastDocTimeStamp 1713786539 [12:06:46]current date 1713787606 [12:06:46]FM_GetShiftState [12:06:46]SAM_PROTO_GetShiftState [12:06:46]wFMCommunicate request_size=4 [12:06:46]MH_SAM_APDU [12:06:46]CAPDU: 80 13 01 00 [12:06:46]Write to MH i2c: E2 08 00 96 02 80 13 01 00 00 00 00 00 15 [12:06:46]Write i2c OK [12:06:46]MH_I2C_Read... [12:06:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:46]Read from MH i2c: E2 [12:06:46]MH_I2C_Read... [12:06:46]Read from MH i2c: E2 0E 00 [12:06:46]MH_I2C_Read... [12:06:46]Read from MH i2c: E2 0E 00 96 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 3C [12:06:46]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [12:06:46]wFMCommunicate OK [12:06:46]SAM_PROTO_GetShiftState done [12:06:46]FM_GetShiftState done [12:06:46]opened in 1713745124 [12:06:46]opened+sec_in_day 1713831524 [12:06:46]quantity*price = 50009 [12:06:46]sum+1 = 50010 [12:06:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 66 22.04.2024 12:06 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77047 ФПД: 245458668795332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T120646&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77047&fm=245458668795332&tin=02508201610067®Number=0000000000091573&sum=50000 [12:06:47]StoreToDocumentArchive [12:06:47]shift 373 fd 77047 [12:06:47]save to /storage/0373/doc_00077047 [12:06:47]save last doc name /storage/0373/doc_00077047 to /storage/kkm_last_doc_name [12:06:47]save OK [12:06:47]Clear old archive folders... [12:06:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:06:47]tlvbuf is 00B55C20 [12:06:47]SAM_PROTO_ClearQueue [12:06:47]wFMCommunicate request_size=4 [12:06:47]MH_SAM_APDU [12:06:47]CAPDU: 80 09 00 00 [12:06:47]Write to MH i2c: E2 08 00 A3 02 80 09 00 00 00 00 00 00 17 [12:06:47]Write i2c OK [12:06:47]MH_I2C_Read... [12:06:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:47]Read from MH i2c: E2 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 03 00 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 03 00 A3 02 00 90 00 19 [12:06:47]RAPDU: 90 00 [12:06:47]wFMCommunicate OK [12:06:47]SAM_PROTO_ClearQueue done [12:06:47]KKMCreateOFDPacket [12:06:47]OFDProtocolAddRootSTLVToBuf [12:06:47]FM_MakeSignedData [12:06:47]FM_MakeSignedData [12:06:47]SAM_PROTO_SignData [12:06:47]wFMCommunicate request_size=4 [12:06:47]MH_SAM_APDU [12:06:47]CAPDU: 80 0D 01 02 [12:06:47]Write to MH i2c: E2 08 00 A4 02 80 0D 01 02 00 00 00 00 1F [12:06:47]Write i2c OK [12:06:47]MH_I2C_Read... [12:06:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:47]Read from MH i2c: E2 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 03 00 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 03 00 A4 02 00 90 00 1A [12:06:47]RAPDU: 90 00 [12:06:47]wFMCommunicate OK [12:06:47]wFMCommunicate request_size=255 [12:06:47]MH_SAM_APDU [12:06:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 D6 52 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F7 2C 01 00 35 04 06 00 DF 3E 4C C2 [12:06:47]Write to MH i2c: E2 02 01 A5 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 D6 52 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F7 2C 01 00 35 04 06 00 DF 3E 4C C2 00 00 84 [12:06:47]Write i2c OK [12:06:47]MH_I2C_Read... [12:06:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:47]Read from MH i2c: E2 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 03 00 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 03 00 A5 02 00 90 00 1B [12:06:47]RAPDU: 90 00 [12:06:47]wFMCommunicate OK [12:06:47]wFMCommunicate request_size=7 [12:06:47]MH_SAM_APDU [12:06:47]CAPDU: 80 0D 02 02 02 B5 C4 [12:06:47]Write to MH i2c: E2 0A 00 A6 02 80 0D 02 02 02 00 B5 C4 00 00 9F [12:06:47]Write i2c OK [12:06:47]MH_I2C_Read... [12:06:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:47]Read from MH i2c: E2 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 03 00 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 03 00 A6 02 00 90 00 1C [12:06:47]RAPDU: 90 00 [12:06:47]wFMCommunicate OK [12:06:47]wFMCommunicate request_size=4 [12:06:47]MH_SAM_APDU [12:06:47]CAPDU: 80 0D 03 02 [12:06:47]Write to MH i2c: E2 08 00 A7 02 80 0D 03 02 00 00 00 00 24 [12:06:47]Write i2c OK [12:06:47]MH_I2C_Read... [12:06:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:47]Read from MH i2c: E2 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 0B 00 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 0B 00 A7 02 00 84 90 05 D1 1E B8 31 D5 90 00 EB [12:06:47]RAPDU: 84 90 05 D1 1E B8 31 D5 90 00 [12:06:47]wFMCommunicate OK [12:06:47]SAM_PROTO_SignData done [12:06:47]FM_MakeSignedData done [12:06:47]CreateOFDProtocolMessage [12:06:47]wFMCommunicate request_size=4 [12:06:47]MH_SAM_APDU [12:06:47]CAPDU: 80 11 00 00 [12:06:47]Write to MH i2c: E2 08 00 A8 02 80 11 00 00 00 00 00 00 24 [12:06:47]Write i2c OK [12:06:47]MH_I2C_Read... [12:06:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:47]Read from MH i2c: E2 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 17 00 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: E2 17 00 A8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 77 [12:06:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:06:47]wFMCommunicate OK [12:06:47]CreateOFDProtocolMessage done [12:06:48]OFDSenderStorePacket 77047 [12:06:48]StoreOFDPacket docnum=77047 [12:06:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 7C FD 04 01 B7 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 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 D6 52 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F7 2C 01 00 35 04 06 00 DF 3E 4C C2 B5 C4 84 90 05 D1 1E B8 31 D5 [12:06:48]CheckFolder [12:06:48]dirname=/storage/ofd_packets [12:06:48]CheckFolder done [12:06:48]ProducePacketName [12:06:48]name=ofd_packets/00077047 [12:06:48]NVStorageSaveData ofd_packets/00077047 [12:06:48]File name is /storage/ofd_packets/00077047 [12:06:48]Write 298 bytes [12:06:48]NVStorageSaveData done [12:06:48]OFDSenderStorePacket done [12:06:48]KKMCreateOFDPacket done [12:06:48]NVStorageSaveData kkm_last_timestamp [12:06:48]File name is /storage/kkm_last_timestamp [12:06:48]Write 4 bytes [12:06:48]NVStorageSaveData done [12:06:48]ExternCall_PrintAddStr [12:06:48]wPrintStart [12:06:48]Write to MH i2c: 01 00 00 A9 02 AB [12:06:48]Write i2c OK [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: 01 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: 01 07 00 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: 01 07 00 A9 02 00 00 00 00 00 FF 0F C0 [12:06:48]RasterBufferAndPrint [12:06:48]line Счет N : (1)191631 [12:06:48]line ИНН: 02508201610067 [12:06:48]line Контрольно-Кассовый Чек [12:06:48]line ПРОДАЖА [12:06:48]line ТРК (МРК, ГНК) : 13 [12:06:48]line Товар: 2710194210 [12:06:48]line ДТ-К-5 [12:06:48]line 6.860 * 72.90 [12:06:48]line = 500.09 [12:06:48]line НДС 12% НСП 1% [12:06:48]line > о реализуемом товаре [12:06:48]line ОКРУГЛЕНИЕ: -0.09 [12:06:48]line ИТОГО: 500.00 [12:06:48]line Внесено: 500.00 [12:06:48]line СДАЧА: 0.00 [12:06:48]line НСП 1% : 4.43 [12:06:48]line НДС 12% : 53.11 [12:06:48]line Наличными: 500.00 [12:06:48]line Безнал.: 0.00 [12:06:48]line Место: АЗС № 106 "Партнер Нефть" [12:06:48]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:06:48]line СНО: Общий режим [12:06:48]line Чек 66 22.04.2024 12:06 [12:06:48]line Смена: 373 ФФД: 1.0 [12:06:48]line ЗНМ: 0300000141 [12:06:48]line РНМ: 0000000000091573 [12:06:48]line Версия ККМ: 001 [12:06:48]line ФМ: 0000000000874652 [12:06:48]line ФД: 77047 [12:06:48]line ФПД: 245458668795332 [12:06:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T120646&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77047&fm=245458668795332&tin=02508201610067®Number=0000000000091573&sum=50000 [12:06:48]OFD Sender: Processing packet 77047 [packets to send 129, broken 128] [12:06:48]ProducePacketName [12:06:48]name=ofd_packets/00077047 [12:06:48]OFD Sender: To server: pG, [12:06:48]CommunicateWithHost lk.salyk.kg:30040 [12:06:48]ConnectInit lk.salyk.kg [12:06:48]written 0, free lines is 4095 [12:06:48]Connected sock=11 [12:06:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 7C FD 04 01 B7 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 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 D6 52 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F7 2C 01 00 35 04 06 00 DF 3E 4C C2 B5 C4 84 90 05 D1 1E B8 31 D5 [12:06:48]Write to MH i2c: 01 00 00 D3 02 D5 [12:06:48]Write i2c OK [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: 01 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: 01 07 00 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: 01 07 00 D3 02 00 00 00 00 00 EB 0C D3 [12:06:48]RasterBufferAndPrint [12:06:48]line [12:06:48]line [12:06:48]line [12:06:48]line [12:06:48]line [12:06:48]written 0, free lines is 3313 [12:06:48]MH_Cut [12:06:48]Write to MH i2c: D1 01 00 DA 02 01 AE [12:06:48]Write i2c OK [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: D1 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: D1 01 00 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: D1 01 00 DA 02 00 AD [12:06:48]Write to MH i2c: 01 00 00 DB 02 DD [12:06:48]Write i2c OK [12:06:48]MH_I2C_Read... [12:06:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D9 34 47 00 3C 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F7 2C 01 00 F4 03 04 00 59 FA 25 66 B6 04 01 00 00 7E 32 1A 52 C9 E3 FA C3 [12:06:48]CommunicateWithHost err = 0 [12:06:48]CheckOFDResponse [12:06:48]1017 (14) - 77093643461234 [12:06:48]1041 (16) - 0000000000874652 [12:06:48]1040 (4) - 77047 [12:06:48]1012 (4) - 22.04.2024 05:49 [12:06:48]1206 (1) - 0 [12:06:48]OFD Sender: Remove packet 77047 [12:06:48]ProducePacketName [12:06:48]name=ofd_packets/00077047 [12:06:48]NVStorageDeleteData [12:06:49]OFD Sender: No OFD packet to send [12:06:49]*** Cut start [12:06:49]*** Partial cut [12:06:49]*** CUTSNS_PIN = 1 [12:06:49]*** CUTSNS_PIN = 0 [12:06:49]*** Brake cut motor [12:06:50]Read from MH i2c: 01 [12:06:50]MH_I2C_Read... [12:06:50]*** Stop cut motor [12:06:50]*** Cut end [12:06:50]Read from MH i2c: 01 07 00 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: 01 07 00 DB 02 00 00 00 00 00 FF 0F F2 [12:06:50]process_action close_receipt done [12:06:50]requested_data is exist [12:06:50]produce_requested_data [12:06:50]requested_item fm.sn is exist - process it [12:06:50]wFMCommunicate request_size=4 [12:06:50]MH_SAM_APDU [12:06:50]CAPDU: 80 11 00 00 [12:06:50]Write to MH i2c: E2 08 00 DC 02 80 11 00 00 00 00 00 00 58 [12:06:50]Write i2c OK [12:06:50]MH_I2C_Read... [12:06:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:50]Read from MH i2c: E2 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 17 00 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 17 00 DC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AB [12:06:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:06:50]wFMCommunicate OK [12:06:50]requested_item fd.num is exist - process it [12:06:50]SAM_PROTO_GetFieldsCounters [12:06:50]wFMCommunicate request_size=4 [12:06:50]MH_SAM_APDU [12:06:50]CAPDU: 80 13 00 00 [12:06:50]Write to MH i2c: E2 08 00 DD 02 80 13 00 00 00 00 00 00 5B [12:06:50]Write i2c OK [12:06:50]MH_I2C_Read... [12:06:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:50]Read from MH i2c: E2 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 62 00 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 62 00 DD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F7 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [12:06:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F7 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:50]wFMCommunicate OK [12:06:50]SAM_PROTO_GetFieldsCounters done [12:06:50]requested_item shift.num is exist - process it [12:06:50]requested_item shift.opened is exist - process it [12:06:50]req_shift_opened [12:06:50]FM_GetShiftState [12:06:50]SAM_PROTO_GetShiftState [12:06:50]wFMCommunicate request_size=4 [12:06:50]MH_SAM_APDU [12:06:50]CAPDU: 80 13 01 00 [12:06:50]Write to MH i2c: E2 08 00 DE 02 80 13 01 00 00 00 00 00 5D [12:06:50]Write i2c OK [12:06:50]MH_I2C_Read... [12:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:50]Read from MH i2c: E2 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 0E 00 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 0E 00 DE 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 84 [12:06:50]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [12:06:50]wFMCommunicate OK [12:06:50]SAM_PROTO_GetShiftState done [12:06:50]FM_GetShiftState done [12:06:50]req_shift_opened done [12:06:50]requested_item shift.open_date is exist - process it [12:06:50]req_shift_open_date [12:06:50]req_shift_open_date done [12:06:50]produce_requested_data done [12:06:50]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77047,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [12:06:50]process_action_free close_receipt [12:06:50]json_value_free [12:06:50]json_value_free done [12:06:50]process_json_proto returns [12:06:50]Send response to host [12:06:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77047,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [12:06:50]free response buf [12:06:50]execute_script done [12:06:50]execute_script returns [12:06:50]free content buf [12:06:50]Sock 9.Close socket [12:06:50]Sock 9.Thread stoped [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:30]accept exits with 8 [12:08:30]New connection [12:08:30]New thread 3067338084 created [12:08:30]Thread 3067481444 joined [12:08:30]Waiting for new connection... [12:08:30] Sock 8.Parse request [12:08:30]Sock 8.Check first char [12:08:30]Sock 8.First char is OK [12:08:30]request: POST /json_proto HTTP/1.0 [12:08:30]Method: POST [12:08:30]URL: /json_proto [12:08:30]Method is POST - this is cgi request [12:08:30]url: /json_proto [12:08:30]query_string will be loaded in cgi processing [12:08:30]execute_cgi json_proto POST (null) [12:08:30]execute_cgi path=json_proto method=POST [12:08:30]POST find Content-Length [12:08:30]Host: 172.17.62.5:8080 [12:08:30]Content-Length: 990 [12:08:30]Content-Type: application/json [12:08:30] [12:08:30]POST finish read [12:08:30]Found Content-Length = 990 [12:08:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 60.250, "sum" : 1909.93, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 60.25 \u0441\u043E\u043C", "deposit" : 2500.00, "total" : 1909.00, "payments": [ { "type": 0, "sum" : 1909.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:30]execute_script... [12:08: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)191630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 60.250, "sum" : 1909.93, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 60.25 \u0441\u043E\u043C", "deposit" : 2500.00, "total" : 1909.00, "payments": [ { "type": 0, "sum" : 1909.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:30]POST & json_proto [12:08:30]process_json_proto [12:08:30]json parsed OK: [12:08:30]protocol is kg_v1.0 [12:08:30]action value=close_receipt [12:08:30]process_action close_receipt [12:08:30]cmd_close_receipt [12:08:30]MH_GetDate [12:08:30]Write to MH i2c: F0 00 00 DF 02 D0 [12:08:30]Write i2c OK [12:08:30]MH_I2C_Read... [12:08:30]Read from MH i2c: F0 [12:08:30]MH_I2C_Read... [12:08:30]Read from MH i2c: F0 09 00 [12:08:30]MH_I2C_Read... [12:08:30]Read from MH i2c: F0 09 00 DF 02 00 3F 53 26 66 F4 E9 65 64 9D [12:08:30]GetLastDocTimeStamp 1713787606 [12:08:30]current date 1713787711 [12:08:30]FM_GetShiftState [12:08:30]SAM_PROTO_GetShiftState [12:08:30]wFMCommunicate request_size=4 [12:08:30]MH_SAM_APDU [12:08:30]CAPDU: 80 13 01 00 [12:08:30]Write to MH i2c: E2 08 00 E0 02 80 13 01 00 00 00 00 00 5F [12:08:30]Write i2c OK [12:08:30]MH_I2C_Read... [12:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:30]Read from MH i2c: E2 [12:08:30]MH_I2C_Read... [12:08:30]Read from MH i2c: E2 0E 00 [12:08:30]MH_I2C_Read... [12:08:30]Read from MH i2c: E2 0E 00 E0 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 86 [12:08:30]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [12:08:30]wFMCommunicate OK [12:08:30]SAM_PROTO_GetShiftState done [12:08:30]FM_GetShiftState done [12:08:30]opened in 1713745124 [12:08:30]opened+sec_in_day 1713831524 [12:08:30]quantity*price = 190992 [12:08:30]sum+1 = 190994 [12:08:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.93 ИТОГО: 1909.00 Внесено: 2500.00 СДАЧА: 591.00 НСП 1% : 16.90 НДС 12% : 202.82 Наличными: 1909.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 67 22.04.2024 12:08 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 60.25 сом ФМ: 0000000000874652 ФД: 77048 ФПД: 2338999332607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T120831&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77048&fm=2338999332607&tin=02508201610067®Number=0000000000091573&sum=190900 [12:08:32]StoreToDocumentArchive [12:08:32]shift 373 fd 77048 [12:08:32]save to /storage/0373/doc_00077048 [12:08:32]save last doc name /storage/0373/doc_00077048 to /storage/kkm_last_doc_name [12:08:32]save OK [12:08:32]Clear old archive folders... [12:08:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:08:32]tlvbuf is 00B6E970 [12:08:32]SAM_PROTO_ClearQueue [12:08:32]wFMCommunicate request_size=4 [12:08:32]MH_SAM_APDU [12:08:32]CAPDU: 80 09 00 00 [12:08:32]Write to MH i2c: E2 08 00 ED 02 80 09 00 00 00 00 00 00 61 [12:08:32]Write i2c OK [12:08:32]MH_I2C_Read... [12:08:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:32]Read from MH i2c: E2 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: E2 03 00 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: E2 03 00 ED 02 00 90 00 63 [12:08:32]RAPDU: 90 00 [12:08:32]wFMCommunicate OK [12:08:32]SAM_PROTO_ClearQueue done [12:08:32]KKMCreateOFDPacket [12:08:32]OFDProtocolAddRootSTLVToBuf [12:08:32]FM_MakeSignedData [12:08:32]FM_MakeSignedData [12:08:32]SAM_PROTO_SignData [12:08:32]wFMCommunicate request_size=4 [12:08:32]MH_SAM_APDU [12:08:32]CAPDU: 80 0D 01 02 [12:08:32]Write to MH i2c: E2 08 00 EE 02 80 0D 01 02 00 00 00 00 69 [12:08:32]Write i2c OK [12:08:32]MH_I2C_Read... [12:08:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:32]Read from MH i2c: E2 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: E2 03 00 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: E2 03 00 EE 02 00 90 00 64 [12:08:32]RAPDU: 90 00 [12:08:32]wFMCommunicate OK [12:08:32]wFMCommunicate request_size=255 [12:08:32]MH_SAM_APDU [12:08:32]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A EB 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 11 EA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 E9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 4F 00 00 00 00 07 04 06 00 B4 E9 02 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 3F 53 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F8 2C 01 00 35 04 06 00 02 20 [12:08:32]Write to MH i2c: E2 02 01 EF 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A EB 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 11 EA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 E9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 4F 00 00 00 00 07 04 06 00 B4 E9 02 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 3F 53 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F8 2C 01 00 35 04 06 00 02 20 00 00 4F [12:08:32]Write i2c OK [12:08:32]MH_I2C_Read... [12:08:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:32]Read from MH i2c: E2 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: E2 03 00 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: E2 03 00 EF 02 00 90 00 65 [12:08:32]RAPDU: 90 00 [12:08:32]wFMCommunicate OK [12:08:32]wFMCommunicate request_size=9 [12:08:32]MH_SAM_APDU [12:08:32]CAPDU: 80 0D 02 02 04 97 39 6E FF [12:08:32]Write to MH i2c: E2 0C 00 F0 02 80 0D 02 02 04 00 97 39 6E FF 00 00 B1 [12:08:32]Write i2c OK [12:08:32]MH_I2C_Read... [12:08:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:32]Read from MH i2c: E2 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: E2 03 00 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: E2 03 00 F0 02 00 90 00 66 [12:08:32]RAPDU: 90 00 [12:08:32]wFMCommunicate OK [12:08:32]wFMCommunicate request_size=4 [12:08:32]MH_SAM_APDU [12:08:32]CAPDU: 80 0D 03 02 [12:08:32]Write to MH i2c: E2 08 00 F1 02 80 0D 03 02 00 00 00 00 6E [12:08:32]Write i2c OK [12:08:32]MH_I2C_Read... [12:08:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:32]Read from MH i2c: E2 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: E2 0B 00 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: E2 0B 00 F1 02 00 31 3A 67 D2 08 41 04 74 90 00 D4 [12:08:32]RAPDU: 31 3A 67 D2 08 41 04 74 90 00 [12:08:32]wFMCommunicate OK [12:08:32]SAM_PROTO_SignData done [12:08:32]FM_MakeSignedData done [12:08:32]CreateOFDProtocolMessage [12:08:32]wFMCommunicate request_size=4 [12:08:32]MH_SAM_APDU [12:08:32]CAPDU: 80 11 00 00 [12:08:32]Write to MH i2c: E2 08 00 F2 02 80 11 00 00 00 00 00 00 6E [12:08:32]Write i2c OK [12:08:32]MH_I2C_Read... [12:08:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:32]Read from MH i2c: E2 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: E2 17 00 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: E2 17 00 F2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 C1 [12:08:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:08:32]wFMCommunicate OK [12:08:32]CreateOFDProtocolMessage done [12:08:32]OFDSenderStorePacket 77048 [12:08:32]StoreOFDPacket docnum=77048 [12:08:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 F8 2E 06 01 67 25 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A EB 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 11 EA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 E9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 4F 00 00 00 00 07 04 06 00 B4 E9 02 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 3F 53 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F8 2C 01 00 35 04 06 00 02 20 97 39 6E FF 31 3A 67 D2 08 41 04 74 [12:08:32]CheckFolder [12:08:32]dirname=/storage/ofd_packets [12:08:32]CheckFolder done [12:08:32]ProducePacketName [12:08:32]name=ofd_packets/00077048 [12:08:32]NVStorageSaveData ofd_packets/00077048 [12:08:32]File name is /storage/ofd_packets/00077048 [12:08:32]Write 300 bytes [12:08:32]NVStorageSaveData done [12:08:32]OFDSenderStorePacket done [12:08:32]KKMCreateOFDPacket done [12:08:32]NVStorageSaveData kkm_last_timestamp [12:08:32]File name is /storage/kkm_last_timestamp [12:08:32]Write 4 bytes [12:08:32]NVStorageSaveData done [12:08:32]ExternCall_PrintAddStr [12:08:32]wPrintStart [12:08:32]Write to MH i2c: 01 00 00 F3 02 F5 [12:08:32]Write i2c OK [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: 01 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: 01 07 00 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: 01 07 00 F3 02 00 00 00 00 00 FF 0F 0A [12:08:32]RasterBufferAndPrint [12:08:32]line Счет N : (1)191630 [12:08:32]line ИНН: 02508201610067 [12:08:32]line Контрольно-Кассовый Чек [12:08:32]line ПРОДАЖА [12:08:32]line ТРК (МРК, ГНК) : 71 [12:08:32]line Товар: 2711190000 [12:08:32]line ГАЗ-К-5 [12:08:32]line 60.250 * 31.70 [12:08:32]line = 1909.93 [12:08:32]line НДС 12% НСП 1% [12:08:32]line > о реализуемом товаре [12:08:32]line ОКРУГЛЕНИЕ: -0.93 [12:08:32]line ИТОГО: 1909.00 [12:08:32]line Внесено: 2500.00 [12:08:32]line СДАЧА: 591.00 [12:08:32]line НСП 1% : 16.90 [12:08:32]line НДС 12% : 202.82 [12:08:32]line Наличными: 1909.00 [12:08:32]line Безнал.: 0.00 [12:08:32]line Место: АЗС № 106 "Партнер Нефть" [12:08:32]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:08:32]line СНО: Общий режим [12:08:32]line Чек 67 22.04.2024 12:08 [12:08:32]line Смена: 373 ФФД: 1.0 [12:08:32]line ЗНМ: 0300000141 [12:08:32]line РНМ: 0000000000091573 [12:08:32]line Версия ККМ: 001 [12:08:32]line [12:08:32]line Дисконтная программа [12:08:32]line СУГ [12:08:32]line номер 106 [12:08:32]line сэкономлено 60.25 сом [12:08:32]line ФМ: 0000000000874652 [12:08:32]line ФД: 77048 [12:08:32]line ФПД: 2338999332607 [12:08:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T120831&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77048&fm=2338999332607&tin=02508201610067®Number=0000000000091573&sum=190900 [12:08:32]OFD Sender: Processing packet 77048 [packets to send 129, broken 128] [12:08:32]ProducePacketName [12:08:32]name=ofd_packets/00077048 [12:08:32]OFD Sender: To server: pG, [12:08:32]CommunicateWithHost lk.salyk.kg:30040 [12:08:32]ConnectInit lk.salyk.kg [12:08:32]written 0, free lines is 4095 [12:08:33]Connected sock=10 [12:08:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 F8 2E 06 01 67 25 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A EB 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 11 EA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 E9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 4F 00 00 00 00 07 04 06 00 B4 E9 02 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 3F 53 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F8 2C 01 00 35 04 06 00 02 20 97 39 6E FF 31 3A 67 D2 08 41 04 74 [12:08:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 80 67 47 00 A4 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F8 2C 01 00 F4 03 04 00 C1 FA 25 66 B6 04 01 00 00 B8 F6 C8 38 4C 5B 22 65 [12:08:33]CommunicateWithHost err = 0 [12:08:33]CheckOFDResponse [12:08:33]1017 (14) - 77093643461234 [12:08:33]1041 (16) - 0000000000874652 [12:08:33]1040 (4) - 77048 [12:08:33]1012 (4) - 22.04.2024 05:50 [12:08:33]1206 (1) - 0 [12:08:33]OFD Sender: Remove packet 77048 [12:08:33]ProducePacketName [12:08:33]name=ofd_packets/00077048 [12:08:33]NVStorageDeleteData [12:08:33]Write to MH i2c: 01 00 00 22 03 25 [12:08:33]Write i2c OK [12:08:33]MH_I2C_Read... [12:08:33]Read from MH i2c: 01 [12:08:33]MH_I2C_Read... [12:08:33]Read from MH i2c: 01 07 00 [12:08:33]MH_I2C_Read... [12:08:33]Read from MH i2c: 01 07 00 22 03 00 00 00 00 00 98 0C D0 [12:08:33]RasterBufferAndPrint [12:08:33]line [12:08:33]line [12:08:33]line [12:08:33]line [12:08:33]line [12:08:33]written 0, free lines is 3230 [12:08:33]MH_Cut [12:08:33]Write to MH i2c: D1 01 00 29 03 01 FE [12:08:33]Write i2c OK [12:08:33]MH_I2C_Read... [12:08:33]Read from MH i2c: D1 [12:08:33]MH_I2C_Read... [12:08:33]Read from MH i2c: D1 01 00 [12:08:33]MH_I2C_Read... [12:08:33]Read from MH i2c: D1 01 00 29 03 00 FD [12:08:33]Write to MH i2c: 01 00 00 2A 03 2D [12:08:33]Write i2c OK [12:08:33]MH_I2C_Read... [12:08:33]OFD Sender: No OFD packet to send [12:08:34]*** Cut start [12:08:34]*** Partial cut [12:08:34]*** CUTSNS_PIN = 1 [12:08:34]*** CUTSNS_PIN = 0 [12:08:34]*** Brake cut motor [12:08:34]Read from MH i2c: 01 [12:08:34]MH_I2C_Read... [12:08:34]*** Stop cut motor [12:08:34]*** Cut end [12:08:34]Read from MH i2c: 01 07 00 [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: 01 07 00 2A 03 00 00 00 00 00 FF 0F 42 [12:08:34]process_action close_receipt done [12:08:34]requested_data is exist [12:08:34]produce_requested_data [12:08:34]requested_item fm.sn is exist - process it [12:08:34]wFMCommunicate request_size=4 [12:08:34]MH_SAM_APDU [12:08:34]CAPDU: 80 11 00 00 [12:08:34]Write to MH i2c: E2 08 00 2B 03 80 11 00 00 00 00 00 00 A8 [12:08:34]Write i2c OK [12:08:34]MH_I2C_Read... [12:08:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:34]Read from MH i2c: E2 [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: E2 17 00 [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: E2 17 00 2B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FB [12:08:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:08:34]wFMCommunicate OK [12:08:34]requested_item fd.num is exist - process it [12:08:34]SAM_PROTO_GetFieldsCounters [12:08:34]wFMCommunicate request_size=4 [12:08:34]MH_SAM_APDU [12:08:34]CAPDU: 80 13 00 00 [12:08:34]Write to MH i2c: E2 08 00 2C 03 80 13 00 00 00 00 00 00 AB [12:08:34]Write i2c OK [12:08:34]MH_I2C_Read... [12:08:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:35]Read from MH i2c: E2 [12:08:35]MH_I2C_Read... [12:08:35]Read from MH i2c: E2 62 00 [12:08:35]MH_I2C_Read... [12:08:35]Read from MH i2c: E2 62 00 2C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F8 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [12:08:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F8 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:35]wFMCommunicate OK [12:08:35]SAM_PROTO_GetFieldsCounters done [12:08:35]requested_item shift.num is exist - process it [12:08:35]requested_item shift.opened is exist - process it [12:08:35]req_shift_opened [12:08:35]FM_GetShiftState [12:08:35]SAM_PROTO_GetShiftState [12:08:35]wFMCommunicate request_size=4 [12:08:35]MH_SAM_APDU [12:08:35]CAPDU: 80 13 01 00 [12:08:35]Write to MH i2c: E2 08 00 2D 03 80 13 01 00 00 00 00 00 AD [12:08:35]Write i2c OK [12:08:35]MH_I2C_Read... [12:08:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:35]Read from MH i2c: E2 [12:08:35]MH_I2C_Read... [12:08:35]Read from MH i2c: E2 0E 00 [12:08:35]MH_I2C_Read... [12:08:35]Read from MH i2c: E2 0E 00 2D 03 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 D4 [12:08:35]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [12:08:35]wFMCommunicate OK [12:08:35]SAM_PROTO_GetShiftState done [12:08:35]FM_GetShiftState done [12:08:35]req_shift_opened done [12:08:35]requested_item shift.open_date is exist - process it [12:08:35]req_shift_open_date [12:08:35]req_shift_open_date done [12:08:35]produce_requested_data done [12:08:35]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77048,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [12:08:35]process_action_free close_receipt [12:08:35]json_value_free [12:08:35]json_value_free done [12:08:35]process_json_proto returns [12:08:35]Send response to host [12:08:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77048,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [12:08:35]free response buf [12:08:35]execute_script done [12:08:35]execute_script returns [12:08:35]free content buf [12:08:35]Sock 8.Close socket [12:08:35]Sock 8.Thread stoped [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:28]OFD Sender: No OFD packet to send [12:09:33]OFD Sender: No OFD packet to send [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:49]OFD Sender: No OFD packet to send [12:11:54]OFD Sender: No OFD packet to send [12:11:59]OFD Sender: No OFD packet to send [12:12:04]OFD Sender: No OFD packet to send [12:12:09]OFD Sender: No OFD packet to send [12:12:14]OFD Sender: No OFD packet to send [12:12:19]OFD Sender: No OFD packet to send [12:12:24]OFD Sender: No OFD packet to send [12:12:29]OFD Sender: No OFD packet to send [12:12:34]OFD Sender: No OFD packet to send [12:12:39]OFD Sender: No OFD packet to send [12:12:44]OFD Sender: No OFD packet to send [12:12:49]OFD Sender: No OFD packet to send [12:12:54]OFD Sender: No OFD packet to send [12:12:59]OFD Sender: No OFD packet to send [12:13:04]OFD Sender: No OFD packet to send [12:13:09]OFD Sender: No OFD packet to send [12:13:14]OFD Sender: No OFD packet to send [12:13:19]OFD Sender: No OFD packet to send [12:13:24]OFD Sender: No OFD packet to send [12:13:29]OFD Sender: No OFD packet to send [12:13:34]OFD Sender: No OFD packet to send [12:13:39]OFD Sender: No OFD packet to send [12:13:44]OFD Sender: No OFD packet to send [12:13:49]OFD Sender: No OFD packet to send [12:13:51]accept exits with 9 [12:13:51]New connection [12:13:51]New thread 3067481444 created [12:13:51]Thread 3067338084 joined [12:13:51]Waiting for new connection... [12:13:51] Sock 9.Parse request [12:13:51]Sock 9.Check first char [12:13:51]Sock 9.First char is OK [12:13:51]request: POST /json_proto HTTP/1.0 [12:13:51]Method: POST [12:13:51]URL: /json_proto [12:13:51]Method is POST - this is cgi request [12:13:51]url: /json_proto [12:13:51]query_string will be loaded in cgi processing [12:13:51]execute_cgi json_proto POST (null) [12:13:51]execute_cgi path=json_proto method=POST [12:13:51]POST find Content-Length [12:13:51]Host: 172.17.62.5:8080 [12:13:51]Content-Length: 809 [12:13:51]Content-Type: application/json [12:13:51] [12:13:51]POST finish read [12:13:51]Found Content-Length = 809 [12:13:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 18.350, "sum" : 600.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:51]execute_script... [12:13: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)191632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 18.350, "sum" : 600.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:51]POST & json_proto [12:13:51]process_json_proto [12:13:51]json parsed OK: [12:13:51]protocol is kg_v1.0 [12:13:51]action value=close_receipt [12:13:51]process_action close_receipt [12:13:51]cmd_close_receipt [12:13:51]MH_GetDate [12:13:51]Write to MH i2c: F0 00 00 2E 03 20 [12:13:51]Write i2c OK [12:13:51]MH_I2C_Read... [12:13:51]Read from MH i2c: F0 [12:13:51]MH_I2C_Read... [12:13:51]Read from MH i2c: F0 09 00 [12:13:51]MH_I2C_Read... [12:13:51]Read from MH i2c: F0 09 00 2E 03 00 80 54 26 66 F4 E9 65 64 2F [12:13:51]GetLastDocTimeStamp 1713787711 [12:13:51]current date 1713788032 [12:13:51]FM_GetShiftState [12:13:51]SAM_PROTO_GetShiftState [12:13:51]wFMCommunicate request_size=4 [12:13:51]MH_SAM_APDU [12:13:51]CAPDU: 80 13 01 00 [12:13:51]Write to MH i2c: E2 08 00 2F 03 80 13 01 00 00 00 00 00 AF [12:13:51]Write i2c OK [12:13:51]MH_I2C_Read... [12:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:51]Read from MH i2c: E2 [12:13:51]MH_I2C_Read... [12:13:51]Read from MH i2c: E2 0E 00 [12:13:51]MH_I2C_Read... [12:13:51]Read from MH i2c: E2 0E 00 2F 03 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 D6 [12:13:51]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [12:13:51]wFMCommunicate OK [12:13:51]SAM_PROTO_GetShiftState done [12:13:51]FM_GetShiftState done [12:13:51]opened in 1713745124 [12:13:51]opened+sec_in_day 1713831524 [12:13:51]quantity*price = 60004 [12:13:51]sum+1 = 60006 [12:13:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.05 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.05 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 68 22.04.2024 12:13 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 77049 ФПД: 217702947114740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T121352&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77049&fm=217702947114740&tin=02508201610067®Number=0000000000091573&sum=60005 [12:13:53]StoreToDocumentArchive [12:13:53]shift 373 fd 77049 [12:13:53]save to /storage/0373/doc_00077049 [12:13:53]save last doc name /storage/0373/doc_00077049 to /storage/kkm_last_doc_name [12:13:53]save OK [12:13:53]Clear old archive folders... [12:13:53]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:13:53]tlvbuf is 00BBF740 [12:13:53]SAM_PROTO_ClearQueue [12:13:53]wFMCommunicate request_size=4 [12:13:53]MH_SAM_APDU [12:13:53]CAPDU: 80 09 00 00 [12:13:53]Write to MH i2c: E2 08 00 3C 03 80 09 00 00 00 00 00 00 B1 [12:13:53]Write i2c OK [12:13:53]MH_I2C_Read... [12:13:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:53]Read from MH i2c: E2 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 03 00 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 03 00 3C 03 00 90 00 B3 [12:13:53]RAPDU: 90 00 [12:13:53]wFMCommunicate OK [12:13:53]SAM_PROTO_ClearQueue done [12:13:53]KKMCreateOFDPacket [12:13:53]OFDProtocolAddRootSTLVToBuf [12:13:53]FM_MakeSignedData [12:13:53]FM_MakeSignedData [12:13:53]SAM_PROTO_SignData [12:13:53]wFMCommunicate request_size=4 [12:13:53]MH_SAM_APDU [12:13:53]CAPDU: 80 0D 01 02 [12:13:53]Write to MH i2c: E2 08 00 3D 03 80 0D 01 02 00 00 00 00 B9 [12:13:53]Write i2c OK [12:13:53]MH_I2C_Read... [12:13:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:53]Read from MH i2c: E2 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 03 00 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 03 00 3D 03 00 90 00 B4 [12:13:53]RAPDU: 90 00 [12:13:53]wFMCommunicate OK [12:13:53]wFMCommunicate request_size=255 [12:13:53]MH_SAM_APDU [12:13:53]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 80 54 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F9 2C 01 00 35 04 06 00 C5 FF [12:13:53]Write to MH i2c: E2 02 01 3E 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 80 54 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F9 2C 01 00 35 04 06 00 C5 FF 00 00 33 [12:13:53]Write i2c OK [12:13:53]MH_I2C_Read... [12:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:53]Read from MH i2c: E2 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 03 00 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 03 00 3E 03 00 90 00 B5 [12:13:53]RAPDU: 90 00 [12:13:53]wFMCommunicate OK [12:13:53]wFMCommunicate request_size=9 [12:13:53]MH_SAM_APDU [12:13:53]CAPDU: 80 0D 02 02 04 EA D4 4E F4 [12:13:53]Write to MH i2c: E2 0C 00 3F 03 80 0D 02 02 04 00 EA D4 4E F4 00 00 C4 [12:13:53]Write i2c OK [12:13:53]MH_I2C_Read... [12:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:53]Read from MH i2c: E2 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 03 00 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 03 00 3F 03 00 90 00 B6 [12:13:53]RAPDU: 90 00 [12:13:53]wFMCommunicate OK [12:13:53]wFMCommunicate request_size=4 [12:13:53]MH_SAM_APDU [12:13:53]CAPDU: 80 0D 03 02 [12:13:53]Write to MH i2c: E2 08 00 40 03 80 0D 03 02 00 00 00 00 BE [12:13:53]Write i2c OK [12:13:53]MH_I2C_Read... [12:13:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:53]Read from MH i2c: E2 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 0B 00 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 0B 00 40 03 00 13 ED D5 D4 15 71 C9 37 90 00 EE [12:13:53]RAPDU: 13 ED D5 D4 15 71 C9 37 90 00 [12:13:53]wFMCommunicate OK [12:13:53]SAM_PROTO_SignData done [12:13:53]FM_MakeSignedData done [12:13:53]CreateOFDProtocolMessage [12:13:53]wFMCommunicate request_size=4 [12:13:53]MH_SAM_APDU [12:13:53]CAPDU: 80 11 00 00 [12:13:53]Write to MH i2c: E2 08 00 41 03 80 11 00 00 00 00 00 00 BE [12:13:53]Write i2c OK [12:13:53]MH_I2C_Read... [12:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:53]Read from MH i2c: E2 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 17 00 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 17 00 41 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 11 [12:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:13:53]wFMCommunicate OK [12:13:53]CreateOFDProtocolMessage done [12:13:53]OFDSenderStorePacket 77049 [12:13:53]StoreOFDPacket docnum=77049 [12:13:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 27 A2 06 01 C4 38 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 80 54 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F9 2C 01 00 35 04 06 00 C5 FF EA D4 4E F4 13 ED D5 D4 15 71 C9 37 [12:13:53]CheckFolder [12:13:53]dirname=/storage/ofd_packets [12:13:53]CheckFolder done [12:13:53]ProducePacketName [12:13:53]name=ofd_packets/00077049 [12:13:53]NVStorageSaveData ofd_packets/00077049 [12:13:53]File name is /storage/ofd_packets/00077049 [12:13:53]Write 300 bytes [12:13:53]NVStorageSaveData done [12:13:53]OFDSenderStorePacket done [12:13:53]KKMCreateOFDPacket done [12:13:53]NVStorageSaveData kkm_last_timestamp [12:13:53]File name is /storage/kkm_last_timestamp [12:13:53]Write 4 bytes [12:13:53]NVStorageSaveData done [12:13:53]ExternCall_PrintAddStr [12:13:53]wPrintStart [12:13:53]Write to MH i2c: 01 00 00 42 03 45 [12:13:53]Write i2c OK [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: 01 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: 01 07 00 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: 01 07 00 42 03 00 00 00 00 00 FF 0F 5A [12:13:53]RasterBufferAndPrint [12:13:53]line Счет N : (1)191632 [12:13:53]line ИНН: 02508201610067 [12:13:53]line Контрольно-Кассовый Чек [12:13:53]line ПРОДАЖА [12:13:53]line ТРК (МРК, ГНК) : 71 [12:13:53]line Товар: 2711190000 [12:13:53]line ГАЗ-К-5 [12:13:53]line 18.350 * 32.70 [12:13:53]line = 600.05 [12:13:53]line НДС 12% НСП 1% [12:13:53]line > о реализуемом товаре [12:13:53]line ИТОГО: 600.05 [12:13:53]line НСП 1% : 5.31 [12:13:53]line НДС 12% : 63.72 [12:13:53]line Наличными: 0.00 [12:13:53]line Безнал.: 600.05 [12:13:53]line Место: АЗС № 106 "Партнер Нефть" [12:13:53]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:13:53]line СНО: Общий режим [12:13:53]line Чек 68 22.04.2024 12:13 [12:13:53]line Смена: 373 ФФД: 1.0 [12:13:53]line ЗНМ: 0300000141 [12:13:53]line РНМ: 0000000000091573 [12:13:53]line Версия ККМ: 001 [12:13:53]line Платежная система: О! деньги [12:13:53]line ФМ: 0000000000874652 [12:13:53]line ФД: 77049 [12:13:53]line ФПД: 217702947114740 [12:13:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T121352&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77049&fm=217702947114740&tin=02508201610067®Number=0000000000091573&sum=60005 [12:13:53]written 0, free lines is 4095 [12:13:53]OFD Sender: Processing packet 77049 [packets to send 129, broken 128] [12:13:53]ProducePacketName [12:13:53]name=ofd_packets/00077049 [12:13:53]OFD Sender: To server: pG, [12:13:54]CommunicateWithHost lk.salyk.kg:30040 [12:13:54]ConnectInit lk.salyk.kg [12:13:54]Write to MH i2c: 01 00 00 6B 03 6E [12:13:54]Write i2c OK [12:13:54]MH_I2C_Read... [12:13:54]Read from MH i2c: 01 [12:13:54]MH_I2C_Read... [12:13:54]Read from MH i2c: 01 07 00 [12:13:54]MH_I2C_Read... [12:13:54]Read from MH i2c: 01 07 00 6B 03 00 00 00 00 00 F5 0C 76 [12:13:54]RasterBufferAndPrint [12:13:54]line [12:13:54]line [12:13:54]line [12:13:54]line [12:13:54]line [12:13:54]written 0, free lines is 3324 [12:13:54]MH_Cut [12:13:54]Write to MH i2c: D1 01 00 72 03 01 47 [12:13:54]Write i2c OK [12:13:54]MH_I2C_Read... [12:13:54]Read from MH i2c: D1 [12:13:54]MH_I2C_Read... [12:13:54]Read from MH i2c: D1 01 00 [12:13:54]MH_I2C_Read... [12:13:54]Read from MH i2c: D1 01 00 72 03 00 46 [12:13:54]Write to MH i2c: 01 00 00 73 03 76 [12:13:54]Write i2c OK [12:13:54]MH_I2C_Read... [12:13:54]Connected sock=10 [12:13:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 27 A2 06 01 C4 38 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 80 54 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F9 2C 01 00 35 04 06 00 C5 FF EA D4 4E F4 13 ED D5 D4 15 71 C9 37 [12:13:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 BC 2C 47 00 78 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 F9 2C 01 00 F4 03 04 00 02 FC 25 66 B6 04 01 00 00 93 6D C9 33 51 3C 22 BE [12:13:54]CommunicateWithHost err = 0 [12:13:54]CheckOFDResponse [12:13:54]1017 (14) - 77093643461234 [12:13:54]1041 (16) - 0000000000874652 [12:13:54]1040 (4) - 77049 [12:13:54]1012 (4) - 22.04.2024 05:56 [12:13:54]1206 (1) - 0 [12:13:54]OFD Sender: Remove packet 77049 [12:13:54]ProducePacketName [12:13:54]name=ofd_packets/00077049 [12:13:54]NVStorageDeleteData [12:13:54]*** Cut start [12:13:54]*** Partial cut [12:13:54]*** CUTSNS_PIN = 1 [12:13:54]OFD Sender: No OFD packet to send [12:13:54]*** CUTSNS_PIN = 0 [12:13:55]*** Brake cut motor [12:13:55]Read from MH i2c: 01 [12:13:55]MH_I2C_Read... [12:13:55]*** Stop cut motor [12:13:55]*** Cut end [12:13:55]Read from MH i2c: 01 07 00 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: 01 07 00 73 03 00 00 00 00 00 FF 0F 8B [12:13:55]process_action close_receipt done [12:13:55]requested_data is exist [12:13:55]produce_requested_data [12:13:55]requested_item fm.sn is exist - process it [12:13:55]wFMCommunicate request_size=4 [12:13:55]MH_SAM_APDU [12:13:55]CAPDU: 80 11 00 00 [12:13:55]Write to MH i2c: E2 08 00 74 03 80 11 00 00 00 00 00 00 F1 [12:13:55]Write i2c OK [12:13:55]MH_I2C_Read... [12:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:55]Read from MH i2c: E2 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: E2 17 00 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: E2 17 00 74 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 44 [12:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:13:55]wFMCommunicate OK [12:13:55]requested_item fd.num is exist - process it [12:13:55]SAM_PROTO_GetFieldsCounters [12:13:55]wFMCommunicate request_size=4 [12:13:55]MH_SAM_APDU [12:13:55]CAPDU: 80 13 00 00 [12:13:55]Write to MH i2c: E2 08 00 75 03 80 13 00 00 00 00 00 00 F4 [12:13:55]Write i2c OK [12:13:55]MH_I2C_Read... [12:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:55]Read from MH i2c: E2 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: E2 62 00 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: E2 62 00 75 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F9 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [12:13:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 F9 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:55]wFMCommunicate OK [12:13:55]SAM_PROTO_GetFieldsCounters done [12:13:55]requested_item shift.num is exist - process it [12:13:55]requested_item shift.opened is exist - process it [12:13:55]req_shift_opened [12:13:55]FM_GetShiftState [12:13:55]SAM_PROTO_GetShiftState [12:13:55]wFMCommunicate request_size=4 [12:13:55]MH_SAM_APDU [12:13:55]CAPDU: 80 13 01 00 [12:13:55]Write to MH i2c: E2 08 00 76 03 80 13 01 00 00 00 00 00 F6 [12:13:55]Write i2c OK [12:13:55]MH_I2C_Read... [12:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:55]Read from MH i2c: E2 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: E2 0E 00 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: E2 0E 00 76 03 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 1D [12:13:55]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [12:13:55]wFMCommunicate OK [12:13:55]SAM_PROTO_GetShiftState done [12:13:55]FM_GetShiftState done [12:13:55]req_shift_opened done [12:13:55]requested_item shift.open_date is exist - process it [12:13:55]req_shift_open_date [12:13:55]req_shift_open_date done [12:13:55]produce_requested_data done [12:13:55]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77049,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [12:13:55]process_action_free close_receipt [12:13:55]json_value_free [12:13:55]json_value_free done [12:13:55]process_json_proto returns [12:13:55]Send response to host [12:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77049,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [12:13:55]free response buf [12:13:55]execute_script done [12:13:55]execute_script returns [12:13:55]free content buf [12:13:55]Sock 9.Close socket [12:13:55]Sock 9.Thread stoped [12:13:59]OFD Sender: No OFD packet to send [12:14:04]OFD Sender: No OFD packet to send [12:14:09]OFD Sender: No OFD packet to send [12:14:14]OFD Sender: No OFD packet to send [12:14:19]OFD Sender: No OFD packet to send [12:14:24]OFD Sender: No OFD packet to send [12:14:29]OFD Sender: No OFD packet to send [12:14:34]OFD Sender: No OFD packet to send [12:14:39]OFD Sender: No OFD packet to send [12:14:44]OFD Sender: No OFD packet to send [12:14:49]OFD Sender: No OFD packet to send [12:14:54]OFD Sender: No OFD packet to send [12:14:59]OFD Sender: No OFD packet to send [12:15:04]OFD Sender: No OFD packet to send [12:15:09]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:24]OFD Sender: No OFD packet to send [12:15:29]OFD Sender: No OFD packet to send [12:15:34]OFD Sender: No OFD packet to send [12:15:39]OFD Sender: No OFD packet to send [12:15:44]OFD Sender: No OFD packet to send [12:15:49]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:12]accept exits with 8 [12:19:12]New connection [12:19:12]New thread 3067338084 created [12:19:12]Thread 3067481444 joined [12:19:12]Waiting for new connection... [12:19:12] Sock 8.Parse request [12:19:12]Sock 8.Check first char [12:19:12]Sock 8.First char is OK [12:19:12]request: POST /json_proto HTTP/1.0 [12:19:12]Method: POST [12:19:12]URL: /json_proto [12:19:12]Method is POST - this is cgi request [12:19:12]url: /json_proto [12:19:12]query_string will be loaded in cgi processing [12:19:12]execute_cgi json_proto POST (null) [12:19:12]execute_cgi path=json_proto method=POST [12:19:12]POST find Content-Length [12:19:12]Host: 172.17.62.5:8080 [12:19:12]Content-Length: 990 [12:19:12]Content-Type: application/json [12:19:12] [12:19:12]POST finish read [12:19:12]Found Content-Length = 990 [12:19:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "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:19:12]execute_script... [12:19:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "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:19:12]POST & json_proto [12:19:12]process_json_proto [12:19:12]json parsed OK: [12:19:12]protocol is kg_v1.0 [12:19:12]action value=close_receipt [12:19:12]process_action close_receipt [12:19:12]cmd_close_receipt [12:19:12]MH_GetDate [12:19:12]Write to MH i2c: F0 00 00 77 03 69 [12:19:12]Write i2c OK [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: F0 [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: F0 09 00 [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: F0 09 00 77 03 00 C0 55 26 66 F4 E9 65 64 B9 [12:19:12]GetLastDocTimeStamp 1713788032 [12:19:12]current date 1713788352 [12:19:12]FM_GetShiftState [12:19:12]SAM_PROTO_GetShiftState [12:19:12]wFMCommunicate request_size=4 [12:19:12]MH_SAM_APDU [12:19:12]CAPDU: 80 13 01 00 [12:19:12]Write to MH i2c: E2 08 00 78 03 80 13 01 00 00 00 00 00 F8 [12:19:12]Write i2c OK [12:19:12]MH_I2C_Read... [12:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:12]Read from MH i2c: E2 [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: E2 0E 00 [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: E2 0E 00 78 03 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 1F [12:19:12]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [12:19:12]wFMCommunicate OK [12:19:12]SAM_PROTO_GetShiftState done [12:19:12]FM_GetShiftState done [12:19:12]opened in 1713745124 [12:19:12]opened+sec_in_day 1713831524 [12:19:12]quantity*price = 100013 [12:19:12]sum+1 = 100015 [12:19:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 69 22.04.2024 12:19 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 31.55 сом ФМ: 0000000000874652 ФД: 77050 ФПД: 154632826560552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T121912&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77050&fm=154632826560552&tin=02508201610067®Number=0000000000091573&sum=100000 [12:19:13]StoreToDocumentArchive [12:19:13]shift 373 fd 77050 [12:19:13]save to /storage/0373/doc_00077050 [12:19:13]save last doc name /storage/0373/doc_00077050 to /storage/kkm_last_doc_name [12:19:13]save OK [12:19:13]Clear old archive folders... [12:19:13]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:19:13]tlvbuf is 00BBF020 [12:19:13]SAM_PROTO_ClearQueue [12:19:13]wFMCommunicate request_size=4 [12:19:13]MH_SAM_APDU [12:19:13]CAPDU: 80 09 00 00 [12:19:13]Write to MH i2c: E2 08 00 85 03 80 09 00 00 00 00 00 00 FA [12:19:13]Write i2c OK [12:19:13]MH_I2C_Read... [12:19:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:13]Read from MH i2c: E2 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 85 03 00 90 00 FC [12:19:13]RAPDU: 90 00 [12:19:13]wFMCommunicate OK [12:19:13]SAM_PROTO_ClearQueue done [12:19:13]KKMCreateOFDPacket [12:19:13]OFDProtocolAddRootSTLVToBuf [12:19:13]FM_MakeSignedData [12:19:13]FM_MakeSignedData [12:19:13]SAM_PROTO_SignData [12:19:13]wFMCommunicate request_size=4 [12:19:13]MH_SAM_APDU [12:19:13]CAPDU: 80 0D 01 02 [12:19:13]Write to MH i2c: E2 08 00 86 03 80 0D 01 02 00 00 00 00 02 [12:19:13]Write i2c OK [12:19:13]MH_I2C_Read... [12:19:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:13]Read from MH i2c: E2 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 86 03 00 90 00 FD [12:19:13]RAPDU: 90 00 [12:19:13]wFMCommunicate OK [12:19:13]wFMCommunicate request_size=255 [12:19:13]MH_SAM_APDU [12:19:13]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 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 45 00 00 00 F4 03 04 00 C0 55 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FA 2C 01 00 35 04 06 00 8C A3 [12:19:13]Write to MH i2c: E2 02 01 87 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 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 45 00 00 00 F4 03 04 00 C0 55 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FA 2C 01 00 35 04 06 00 8C A3 00 00 2D [12:19:13]Write i2c OK [12:19:13]MH_I2C_Read... [12:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:13]Read from MH i2c: E2 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 87 03 00 90 00 FE [12:19:13]RAPDU: 90 00 [12:19:13]wFMCommunicate OK [12:19:13]wFMCommunicate request_size=9 [12:19:13]MH_SAM_APDU [12:19:13]CAPDU: 80 0D 02 02 04 42 B2 A0 28 [12:19:13]Write to MH i2c: E2 0C 00 88 03 80 0D 02 02 04 00 42 B2 A0 28 00 00 C9 [12:19:13]Write i2c OK [12:19:13]MH_I2C_Read... [12:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:13]Read from MH i2c: E2 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 88 03 00 90 00 FF [12:19:13]RAPDU: 90 00 [12:19:13]wFMCommunicate OK [12:19:13]wFMCommunicate request_size=4 [12:19:13]MH_SAM_APDU [12:19:13]CAPDU: 80 0D 03 02 [12:19:13]Write to MH i2c: E2 08 00 89 03 80 0D 03 02 00 00 00 00 07 [12:19:13]Write i2c OK [12:19:13]MH_I2C_Read... [12:19:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:14]Read from MH i2c: E2 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 0B 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 0B 00 89 03 00 C9 EB 46 C2 B6 C7 EA 6B 90 00 96 [12:19:14]RAPDU: C9 EB 46 C2 B6 C7 EA 6B 90 00 [12:19:14]wFMCommunicate OK [12:19:14]SAM_PROTO_SignData done [12:19:14]FM_MakeSignedData done [12:19:14]CreateOFDProtocolMessage [12:19:14]wFMCommunicate request_size=4 [12:19:14]MH_SAM_APDU [12:19:14]CAPDU: 80 11 00 00 [12:19:14]Write to MH i2c: E2 08 00 8A 03 80 11 00 00 00 00 00 00 07 [12:19:14]Write i2c OK [12:19:14]MH_I2C_Read... [12:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:14]Read from MH i2c: E2 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 17 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 17 00 8A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5A [12:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:19:14]wFMCommunicate OK [12:19:14]CreateOFDProtocolMessage done [12:19:14]OFDSenderStorePacket 77050 [12:19:14]StoreOFDPacket docnum=77050 [12:19:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 BB 8C 06 01 6D CF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 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 45 00 00 00 F4 03 04 00 C0 55 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FA 2C 01 00 35 04 06 00 8C A3 42 B2 A0 28 C9 EB 46 C2 B6 C7 EA 6B [12:19:14]CheckFolder [12:19:14]dirname=/storage/ofd_packets [12:19:14]CheckFolder done [12:19:14]ProducePacketName [12:19:14]name=ofd_packets/00077050 [12:19:14]NVStorageSaveData ofd_packets/00077050 [12:19:14]File name is /storage/ofd_packets/00077050 [12:19:14]Write 300 bytes [12:19:14]NVStorageSaveData done [12:19:14]OFDSenderStorePacket done [12:19:14]KKMCreateOFDPacket done [12:19:14]NVStorageSaveData kkm_last_timestamp [12:19:14]File name is /storage/kkm_last_timestamp [12:19:14]Write 4 bytes [12:19:14]NVStorageSaveData done [12:19:14]ExternCall_PrintAddStr [12:19:14]wPrintStart [12:19:14]Write to MH i2c: 01 00 00 8B 03 8E [12:19:14]Write i2c OK [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: 01 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: 01 07 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: 01 07 00 8B 03 00 00 00 00 00 FF 0F A3 [12:19:14]RasterBufferAndPrint [12:19:14]line Счет N : (1)191633 [12:19:14]line ИНН: 02508201610067 [12:19:14]line Контрольно-Кассовый Чек [12:19:14]line ПРОДАЖА [12:19:14]line ТРК (МРК, ГНК) : 71 [12:19:14]line Товар: 2711190000 [12:19:14]line ГАЗ-К-5 [12:19:14]line 31.550 * 31.70 [12:19:14]line = 1000.14 [12:19:14]line НДС 12% НСП 1% [12:19:14]line > о реализуемом товаре [12:19:14]line ОКРУГЛЕНИЕ: -0.14 [12:19:14]line ИТОГО: 1000.00 [12:19:14]line Внесено: 1000.00 [12:19:14]line СДАЧА: 0.00 [12:19:14]line НСП 1% : 8.85 [12:19:14]line НДС 12% : 106.21 [12:19:14]line Наличными: 1000.00 [12:19:14]line Безнал.: 0.00 [12:19:14]line Место: АЗС № 106 "Партнер Нефть" [12:19:14]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:19:14]line СНО: Общий режим [12:19:14]line Чек 69 22.04.2024 12:19 [12:19:14]line Смена: 373 ФФД: 1.0 [12:19:14]line ЗНМ: 0300000141 [12:19:14]line РНМ: 0000000000091573 [12:19:14]line Версия ККМ: 001 [12:19:14]line [12:19:14]line Дисконтная программа [12:19:14]line СУГ [12:19:14]line номер 106 [12:19:14]line сэкономлено 31.55 сом [12:19:14]line ФМ: 0000000000874652 [12:19:14]line ФД: 77050 [12:19:14]line ФПД: 154632826560552 [12:19:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T121912&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77050&fm=154632826560552&tin=02508201610067®Number=0000000000091573&sum=100000 [12:19:14]OFD Sender: Processing packet 77050 [packets to send 129, broken 128] [12:19:14]ProducePacketName [12:19:14]name=ofd_packets/00077050 [12:19:14]OFD Sender: To server: pG, [12:19:14]CommunicateWithHost lk.salyk.kg:30040 [12:19:14]ConnectInit lk.salyk.kg [12:19:14]written 0, free lines is 4095 [12:19:14]Connected sock=10 [12:19:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 BB 8C 06 01 6D CF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 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 45 00 00 00 F4 03 04 00 C0 55 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FA 2C 01 00 35 04 06 00 8C A3 42 B2 A0 28 C9 EB 46 C2 B6 C7 EA 6B [12:19:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 05 E2 47 00 1B C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FA 2C 01 00 F4 03 04 00 43 FD 25 66 B6 04 01 00 00 05 3F 05 C5 7E 7F D0 95 [12:19:14]CommunicateWithHost err = 0 [12:19:14]CheckOFDResponse [12:19:14]1017 (14) - 77093643461234 [12:19:14]1041 (16) - 0000000000874652 [12:19:14]1040 (4) - 77050 [12:19:14]1012 (4) - 22.04.2024 06:01 [12:19:14]1206 (1) - 0 [12:19:14]OFD Sender: Remove packet 77050 [12:19:14]ProducePacketName [12:19:14]name=ofd_packets/00077050 [12:19:14]NVStorageDeleteData [12:19:14]Write to MH i2c: 01 00 00 BA 03 BD [12:19:14]Write i2c OK [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: 01 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: 01 07 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: 01 07 00 BA 03 00 00 00 00 00 A4 0C 74 [12:19:14]RasterBufferAndPrint [12:19:14]line [12:19:14]line [12:19:14]line [12:19:14]line [12:19:14]line [12:19:14]written 0, free lines is 3242 [12:19:14]MH_Cut [12:19:14]Write to MH i2c: D1 01 00 C1 03 01 96 [12:19:14]Write i2c OK [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: D1 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: D1 01 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: D1 01 00 C1 03 00 95 [12:19:14]Write to MH i2c: 01 00 00 C2 03 C5 [12:19:14]Write i2c OK [12:19:14]MH_I2C_Read... [12:19:15]OFD Sender: No OFD packet to send [12:19:15]*** Cut start [12:19:15]*** Partial cut [12:19:15]*** CUTSNS_PIN = 1 [12:19:15]*** CUTSNS_PIN = 0 [12:19:15]*** Brake cut motor [12:19:16]Read from MH i2c: 01 [12:19:16]MH_I2C_Read... [12:19:16]*** Stop cut motor [12:19:16]*** Cut end [12:19:16]Read from MH i2c: 01 07 00 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: 01 07 00 C2 03 00 00 00 00 00 FF 0F DA [12:19:16]process_action close_receipt done [12:19:16]requested_data is exist [12:19:16]produce_requested_data [12:19:16]requested_item fm.sn is exist - process it [12:19:16]wFMCommunicate request_size=4 [12:19:16]MH_SAM_APDU [12:19:16]CAPDU: 80 11 00 00 [12:19:16]Write to MH i2c: E2 08 00 C3 03 80 11 00 00 00 00 00 00 40 [12:19:16]Write i2c OK [12:19:16]MH_I2C_Read... [12:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:16]Read from MH i2c: E2 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 17 00 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 17 00 C3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 93 [12:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:19:16]wFMCommunicate OK [12:19:16]requested_item fd.num is exist - process it [12:19:16]SAM_PROTO_GetFieldsCounters [12:19:16]wFMCommunicate request_size=4 [12:19:16]MH_SAM_APDU [12:19:16]CAPDU: 80 13 00 00 [12:19:16]Write to MH i2c: E2 08 00 C4 03 80 13 00 00 00 00 00 00 43 [12:19:16]Write i2c OK [12:19:16]MH_I2C_Read... [12:19:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:16]Read from MH i2c: E2 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 62 00 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 62 00 C4 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FA 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [12:19:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FA 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:16]wFMCommunicate OK [12:19:16]SAM_PROTO_GetFieldsCounters done [12:19:16]requested_item shift.num is exist - process it [12:19:16]requested_item shift.opened is exist - process it [12:19:16]req_shift_opened [12:19:16]FM_GetShiftState [12:19:16]SAM_PROTO_GetShiftState [12:19:16]wFMCommunicate request_size=4 [12:19:16]MH_SAM_APDU [12:19:16]CAPDU: 80 13 01 00 [12:19:16]Write to MH i2c: E2 08 00 C5 03 80 13 01 00 00 00 00 00 45 [12:19:16]Write i2c OK [12:19:16]MH_I2C_Read... [12:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:16]Read from MH i2c: E2 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 0E 00 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 0E 00 C5 03 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 6C [12:19:16]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [12:19:16]wFMCommunicate OK [12:19:16]SAM_PROTO_GetShiftState done [12:19:16]FM_GetShiftState done [12:19:16]req_shift_opened done [12:19:16]requested_item shift.open_date is exist - process it [12:19:16]req_shift_open_date [12:19:16]req_shift_open_date done [12:19:16]produce_requested_data done [12:19:16]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77050,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [12:19:16]process_action_free close_receipt [12:19:16]json_value_free [12:19:16]json_value_free done [12:19:16]process_json_proto returns [12:19:16]Send response to host [12:19:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77050,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [12:19:16]free response buf [12:19:16]execute_script done [12:19:16]execute_script returns [12:19:16]free content buf [12:19:16]Sock 8.Close socket [12:19:16]Sock 8.Thread stoped [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:45]OFD Sender: No OFD packet to send [12:19:50]OFD Sender: No OFD packet to send [12:19:55]OFD Sender: No OFD packet to send [12:20:00]OFD Sender: No OFD packet to send [12:20:05]OFD Sender: No OFD packet to send [12:20:10]OFD Sender: No OFD packet to send [12:20:15]OFD Sender: No OFD packet to send [12:20:20]OFD Sender: No OFD packet to send [12:20:25]OFD Sender: No OFD packet to send [12:20:30]OFD Sender: No OFD packet to send [12:20:35]OFD Sender: No OFD packet to send [12:20:40]OFD Sender: No OFD packet to send [12:20:45]OFD Sender: No OFD packet to send [12:20:50]OFD Sender: No OFD packet to send [12:20:55]OFD Sender: No OFD packet to send [12:21:00]OFD Sender: No OFD packet to send [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [12:21:20]OFD Sender: No OFD packet to send [12:21:25]OFD Sender: No OFD packet to send [12:21:30]OFD Sender: No OFD packet to send [12:21:35]OFD Sender: No OFD packet to send [12:21:40]OFD Sender: No OFD packet to send [12:21:45]OFD Sender: No OFD packet to send [12:21:50]OFD Sender: No OFD packet to send [12:21:55]OFD Sender: No OFD packet to send [12:22:00]OFD Sender: No OFD packet to send [12:22:05]OFD Sender: No OFD packet to send [12:22:10]OFD Sender: No OFD packet to send [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]OFD Sender: No OFD packet to send [12:23:50]OFD Sender: No OFD packet to send [12:23:55]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [12:26:00]OFD Sender: No OFD packet to send [12:26:05]OFD Sender: No OFD packet to send [12:26:10]OFD Sender: No OFD packet to send [12:26:15]OFD Sender: No OFD packet to send [12:26:20]OFD Sender: No OFD packet to send [12:26:25]OFD Sender: No OFD packet to send [12:26:30]OFD Sender: No OFD packet to send [12:26:35]OFD Sender: No OFD packet to send [12:26:40]OFD Sender: No OFD packet to send [12:26:45]OFD Sender: No OFD packet to send [12:26:50]OFD Sender: No OFD packet to send [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:19]accept exits with 9 [12:29:19]New connection [12:29:19]New thread 3067481444 created [12:29:19]Thread 3067338084 joined [12:29:19]Waiting for new connection... [12:29:19] Sock 9.Parse request [12:29:19]Sock 9.Check first char [12:29:19]Sock 9.First char is OK [12:29:19]request: POST /json_proto HTTP/1.0 [12:29:19]Method: POST [12:29:19]URL: /json_proto [12:29:19]Method is POST - this is cgi request [12:29:19]url: /json_proto [12:29:19]query_string will be loaded in cgi processing [12:29:19]execute_cgi json_proto POST (null) [12:29:19]execute_cgi path=json_proto method=POST [12:29:19]POST find Content-Length [12:29:19]Host: 172.17.62.5:8080 [12:29:19]Content-Length: 990 [12:29:19]Content-Type: application/json [12:29:19] [12:29:19]POST finish read [12:29:19]Found Content-Length = 990 [12:29:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "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:29:19]execute_script... [12:29:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 31.550, "sum" : 1000.14, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 31.55 \u0441\u043E\u043C", "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:29:19]POST & json_proto [12:29:19]process_json_proto [12:29:19]json parsed OK: [12:29:19]protocol is kg_v1.0 [12:29:19]action value=close_receipt [12:29:19]process_action close_receipt [12:29:19]cmd_close_receipt [12:29:19]MH_GetDate [12:29:19]Write to MH i2c: F0 00 00 C6 03 B8 [12:29:19]Write i2c OK [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: F0 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: F0 09 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: F0 09 00 C6 03 00 1F 58 26 66 F4 E9 65 64 6A [12:29:19]GetLastDocTimeStamp 1713788352 [12:29:19]current date 1713788959 [12:29:19]FM_GetShiftState [12:29:19]SAM_PROTO_GetShiftState [12:29:19]wFMCommunicate request_size=4 [12:29:19]MH_SAM_APDU [12:29:19]CAPDU: 80 13 01 00 [12:29:19]Write to MH i2c: E2 08 00 C7 03 80 13 01 00 00 00 00 00 47 [12:29:19]Write i2c OK [12:29:19]MH_I2C_Read... [12:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:19]Read from MH i2c: E2 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 0E 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 0E 00 C7 03 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 6E [12:29:19]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [12:29:19]wFMCommunicate OK [12:29:19]SAM_PROTO_GetShiftState done [12:29:19]FM_GetShiftState done [12:29:19]opened in 1713745124 [12:29:19]opened+sec_in_day 1713831524 [12:29:19]quantity*price = 100013 [12:29:19]sum+1 = 100015 [12:29:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 70 22.04.2024 12:29 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 31.55 сом ФМ: 0000000000874652 ФД: 77051 ФПД: 183951958954416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T122919&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77051&fm=183951958954416&tin=02508201610067®Number=0000000000091573&sum=100000 [12:29:20]StoreToDocumentArchive [12:29:20]shift 373 fd 77051 [12:29:20]save to /storage/0373/doc_00077051 [12:29:20]save last doc name /storage/0373/doc_00077051 to /storage/kkm_last_doc_name [12:29:20]save OK [12:29:20]Clear old archive folders... [12:29:20]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:29:20]tlvbuf is 00B69580 [12:29:20]SAM_PROTO_ClearQueue [12:29:20]wFMCommunicate request_size=4 [12:29:20]MH_SAM_APDU [12:29:20]CAPDU: 80 09 00 00 [12:29:20]Write to MH i2c: E2 08 00 D4 03 80 09 00 00 00 00 00 00 49 [12:29:20]Write i2c OK [12:29:20]MH_I2C_Read... [12:29:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:20]Read from MH i2c: E2 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 03 00 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 03 00 D4 03 00 90 00 4B [12:29:20]RAPDU: 90 00 [12:29:20]wFMCommunicate OK [12:29:20]SAM_PROTO_ClearQueue done [12:29:20]KKMCreateOFDPacket [12:29:20]OFDProtocolAddRootSTLVToBuf [12:29:20]FM_MakeSignedData [12:29:20]FM_MakeSignedData [12:29:20]SAM_PROTO_SignData [12:29:20]wFMCommunicate request_size=4 [12:29:20]MH_SAM_APDU [12:29:20]CAPDU: 80 0D 01 02 [12:29:20]Write to MH i2c: E2 08 00 D5 03 80 0D 01 02 00 00 00 00 51 [12:29:20]Write i2c OK [12:29:20]MH_I2C_Read... [12:29:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:20]Read from MH i2c: E2 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 03 00 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 03 00 D5 03 00 90 00 4C [12:29:20]RAPDU: 90 00 [12:29:20]wFMCommunicate OK [12:29:20]wFMCommunicate request_size=255 [12:29:20]MH_SAM_APDU [12:29:20]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 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 46 00 00 00 F4 03 04 00 1F 58 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FB 2C 01 00 35 04 06 00 A7 4D [12:29:20]Write to MH i2c: E2 02 01 D6 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 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 46 00 00 00 F4 03 04 00 1F 58 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FB 2C 01 00 35 04 06 00 A7 4D 00 00 A5 [12:29:20]Write i2c OK [12:29:20]MH_I2C_Read... [12:29:21]OFD Sender: No OFD packet to send [12:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:21]Read from MH i2c: E2 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 03 00 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 03 00 D6 03 00 90 00 4D [12:29:21]RAPDU: 90 00 [12:29:21]wFMCommunicate OK [12:29:21]wFMCommunicate request_size=9 [12:29:21]MH_SAM_APDU [12:29:21]CAPDU: 80 0D 02 02 04 A7 2B 51 B0 [12:29:21]Write to MH i2c: E2 0C 00 D7 03 80 0D 02 02 04 00 A7 2B 51 B0 00 00 2F [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:21]Read from MH i2c: E2 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 03 00 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 03 00 D7 03 00 90 00 4E [12:29:21]RAPDU: 90 00 [12:29:21]wFMCommunicate OK [12:29:21]wFMCommunicate request_size=4 [12:29:21]MH_SAM_APDU [12:29:21]CAPDU: 80 0D 03 02 [12:29:21]Write to MH i2c: E2 08 00 D8 03 80 0D 03 02 00 00 00 00 56 [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:21]Read from MH i2c: E2 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 0B 00 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 0B 00 D8 03 00 2A 81 62 64 78 15 47 9B 90 00 37 [12:29:21]RAPDU: 2A 81 62 64 78 15 47 9B 90 00 [12:29:21]wFMCommunicate OK [12:29:21]SAM_PROTO_SignData done [12:29:21]FM_MakeSignedData done [12:29:21]CreateOFDProtocolMessage [12:29:21]wFMCommunicate request_size=4 [12:29:21]MH_SAM_APDU [12:29:21]CAPDU: 80 11 00 00 [12:29:21]Write to MH i2c: E2 08 00 D9 03 80 11 00 00 00 00 00 00 56 [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:21]Read from MH i2c: E2 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 17 00 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 17 00 D9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A9 [12:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:29:21]wFMCommunicate OK [12:29:21]CreateOFDProtocolMessage done [12:29:21]OFDSenderStorePacket 77051 [12:29:21]StoreOFDPacket docnum=77051 [12:29:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 F3 54 06 01 C3 D1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 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 46 00 00 00 F4 03 04 00 1F 58 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FB 2C 01 00 35 04 06 00 A7 4D A7 2B 51 B0 2A 81 62 64 78 15 47 9B [12:29:21]CheckFolder [12:29:21]dirname=/storage/ofd_packets [12:29:21]CheckFolder done [12:29:21]ProducePacketName [12:29:21]name=ofd_packets/00077051 [12:29:21]NVStorageSaveData ofd_packets/00077051 [12:29:21]File name is /storage/ofd_packets/00077051 [12:29:21]Write 300 bytes [12:29:21]NVStorageSaveData done [12:29:21]OFDSenderStorePacket done [12:29:21]KKMCreateOFDPacket done [12:29:21]NVStorageSaveData kkm_last_timestamp [12:29:21]File name is /storage/kkm_last_timestamp [12:29:21]Write 4 bytes [12:29:21]NVStorageSaveData done [12:29:21]ExternCall_PrintAddStr [12:29:21]wPrintStart [12:29:21]Write to MH i2c: 01 00 00 DA 03 DD [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: 01 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: 01 07 00 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 FF 0F F2 [12:29:21]RasterBufferAndPrint [12:29:21]line Счет N : (1)191634 [12:29:21]line ИНН: 02508201610067 [12:29:21]line Контрольно-Кассовый Чек [12:29:21]line ПРОДАЖА [12:29:21]line ТРК (МРК, ГНК) : 71 [12:29:21]line Товар: 2711190000 [12:29:21]line ГАЗ-К-5 [12:29:21]line 31.550 * 31.70 [12:29:21]line = 1000.14 [12:29:21]line НДС 12% НСП 1% [12:29:21]line > о реализуемом товаре [12:29:21]line ОКРУГЛЕНИЕ: -0.14 [12:29:21]line ИТОГО: 1000.00 [12:29:21]line Внесено: 1000.00 [12:29:21]line СДАЧА: 0.00 [12:29:21]line НСП 1% : 8.85 [12:29:21]line НДС 12% : 106.21 [12:29:21]line Наличными: 1000.00 [12:29:21]line Безнал.: 0.00 [12:29:21]line Место: АЗС № 106 "Партнер Нефть" [12:29:21]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:29:21]line СНО: Общий режим [12:29:21]line Чек 70 22.04.2024 12:29 [12:29:21]line Смена: 373 ФФД: 1.0 [12:29:21]line ЗНМ: 0300000141 [12:29:21]line РНМ: 0000000000091573 [12:29:21]line Версия ККМ: 001 [12:29:21]line [12:29:21]line Дисконтная программа [12:29:21]line СУГ [12:29:21]line номер 106 [12:29:21]line сэкономлено 31.55 сом [12:29:21]line ФМ: 0000000000874652 [12:29:21]line ФД: 77051 [12:29:21]line ФПД: 183951958954416 [12:29:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T122919&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77051&fm=183951958954416&tin=02508201610067®Number=0000000000091573&sum=100000 [12:29:21]OFD Sender: Processing packet 77051 [packets to send 129, broken 128] [12:29:21]ProducePacketName [12:29:21]name=ofd_packets/00077051 [12:29:21]OFD Sender: To server: pG, [12:29:21]CommunicateWithHost lk.salyk.kg:30040 [12:29:21]ConnectInit lk.salyk.kg [12:29:21]written 0, free lines is 4095 [12:29:21]Connected sock=10 [12:29:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 F3 54 06 01 C3 D1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 7B 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 AE 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 46 00 00 00 F4 03 04 00 1F 58 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FB 2C 01 00 35 04 06 00 A7 4D A7 2B 51 B0 2A 81 62 64 78 15 47 9B [12:29:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 0A F3 47 00 3C A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FB 2C 01 00 F4 03 04 00 A2 FF 25 66 B6 04 01 00 00 16 B3 9E 7F 79 5D 8B 23 [12:29:22]CommunicateWithHost err = 0 [12:29:22]CheckOFDResponse [12:29:22]1017 (14) - 77093643461234 [12:29:22]1041 (16) - 0000000000874652 [12:29:22]1040 (4) - 77051 [12:29:22]1012 (4) - 22.04.2024 06:11 [12:29:22]1206 (1) - 0 [12:29:22]OFD Sender: Remove packet 77051 [12:29:22]ProducePacketName [12:29:22]name=ofd_packets/00077051 [12:29:22]NVStorageDeleteData [12:29:22]Write to MH i2c: 01 00 00 09 04 0D [12:29:22]Write i2c OK [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: 01 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: 01 07 00 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: 01 07 00 09 04 00 00 00 00 00 9F 0C BF [12:29:22]RasterBufferAndPrint [12:29:22]line [12:29:22]line [12:29:22]line [12:29:22]line [12:29:22]line [12:29:22]written 0, free lines is 3237 [12:29:22]MH_Cut [12:29:22]Write to MH i2c: D1 01 00 10 04 01 E6 [12:29:22]Write i2c OK [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: D1 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: D1 01 00 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: D1 01 00 10 04 00 E5 [12:29:22]Write to MH i2c: 01 00 00 11 04 15 [12:29:22]Write i2c OK [12:29:22]MH_I2C_Read... [12:29:22]OFD Sender: No OFD packet to send [12:29:22]*** Cut start [12:29:22]*** Partial cut [12:29:22]*** CUTSNS_PIN = 1 [12:29:23]*** CUTSNS_PIN = 0 [12:29:23]*** Brake cut motor [12:29:23]Read from MH i2c: 01 [12:29:23]MH_I2C_Read... [12:29:23]*** Stop cut motor [12:29:23]*** Cut end [12:29:23]Read from MH i2c: 01 07 00 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: 01 07 00 11 04 00 00 00 00 00 FF 0F 2A [12:29:23]process_action close_receipt done [12:29:23]requested_data is exist [12:29:23]produce_requested_data [12:29:23]requested_item fm.sn is exist - process it [12:29:23]wFMCommunicate request_size=4 [12:29:23]MH_SAM_APDU [12:29:23]CAPDU: 80 11 00 00 [12:29:23]Write to MH i2c: E2 08 00 12 04 80 11 00 00 00 00 00 00 90 [12:29:23]Write i2c OK [12:29:23]MH_I2C_Read... [12:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:23]Read from MH i2c: E2 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: E2 17 00 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: E2 17 00 12 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E3 [12:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:29:23]wFMCommunicate OK [12:29:23]requested_item fd.num is exist - process it [12:29:23]SAM_PROTO_GetFieldsCounters [12:29:23]wFMCommunicate request_size=4 [12:29:23]MH_SAM_APDU [12:29:23]CAPDU: 80 13 00 00 [12:29:23]Write to MH i2c: E2 08 00 13 04 80 13 00 00 00 00 00 00 93 [12:29:23]Write i2c OK [12:29:23]MH_I2C_Read... [12:29:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:23]Read from MH i2c: E2 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: E2 62 00 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: E2 62 00 13 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FB 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [12:29:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FB 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:23]wFMCommunicate OK [12:29:23]SAM_PROTO_GetFieldsCounters done [12:29:23]requested_item shift.num is exist - process it [12:29:23]requested_item shift.opened is exist - process it [12:29:23]req_shift_opened [12:29:23]FM_GetShiftState [12:29:23]SAM_PROTO_GetShiftState [12:29:23]wFMCommunicate request_size=4 [12:29:23]MH_SAM_APDU [12:29:23]CAPDU: 80 13 01 00 [12:29:23]Write to MH i2c: E2 08 00 14 04 80 13 01 00 00 00 00 00 95 [12:29:23]Write i2c OK [12:29:23]MH_I2C_Read... [12:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:23]Read from MH i2c: E2 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: E2 0E 00 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: E2 0E 00 14 04 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 BC [12:29:23]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [12:29:23]wFMCommunicate OK [12:29:23]SAM_PROTO_GetShiftState done [12:29:23]FM_GetShiftState done [12:29:23]req_shift_opened done [12:29:23]requested_item shift.open_date is exist - process it [12:29:23]req_shift_open_date [12:29:23]req_shift_open_date done [12:29:23]produce_requested_data done [12:29:23]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77051,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [12:29:23]process_action_free close_receipt [12:29:23]json_value_free [12:29:23]json_value_free done [12:29:23]process_json_proto returns [12:29:23]Send response to host [12:29:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77051,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [12:29:23]free response buf [12:29:23]execute_script done [12:29:23]execute_script returns [12:29:23]free content buf [12:29:23]Sock 9.Close socket [12:29:23]Sock 9.Thread stoped [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:39]accept exits with 8 [12:31:39]New connection [12:31:39]New thread 3067338084 created [12:31:39]Thread 3067481444 joined [12:31:39]Waiting for new connection... [12:31:39] Sock 8.Parse request [12:31:39]Sock 8.Check first char [12:31:39]Sock 8.First char is OK [12:31:39]request: POST /json_proto HTTP/1.0 [12:31:39]Method: POST [12:31:39]URL: /json_proto [12:31:39]Method is POST - this is cgi request [12:31:39]url: /json_proto [12:31:39]query_string will be loaded in cgi processing [12:31:39]execute_cgi json_proto POST (null) [12:31:39]execute_cgi path=json_proto method=POST [12:31:39]POST find Content-Length [12:31:39]Host: 172.17.62.5:8080 [12:31:39]Content-Length: 802 [12:31:39]Content-Type: application/json [12:31:39] [12:31:39]POST finish read [12:31:39]Found Content-Length = 802 [12:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:39]execute_script... [12:31:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:39]POST & json_proto [12:31:39]process_json_proto [12:31:39]json parsed OK: [12:31:39]protocol is kg_v1.0 [12:31:39]action value=close_receipt [12:31:39]process_action close_receipt [12:31:39]cmd_close_receipt [12:31:39]MH_GetDate [12:31:39]Write to MH i2c: F0 00 00 15 04 08 [12:31:39]Write i2c OK [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: F0 [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: F0 09 00 [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: F0 09 00 15 04 00 AB 58 26 66 F4 E9 65 64 46 [12:31:39]GetLastDocTimeStamp 1713788959 [12:31:39]current date 1713789099 [12:31:39]FM_GetShiftState [12:31:39]SAM_PROTO_GetShiftState [12:31:39]wFMCommunicate request_size=4 [12:31:39]MH_SAM_APDU [12:31:39]CAPDU: 80 13 01 00 [12:31:39]Write to MH i2c: E2 08 00 16 04 80 13 01 00 00 00 00 00 97 [12:31:39]Write i2c OK [12:31:39]MH_I2C_Read... [12:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:39]Read from MH i2c: E2 [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: E2 0E 00 [12:31:39]MH_I2C_Read... [12:31:39]Read from MH i2c: E2 0E 00 16 04 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 BE [12:31:39]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [12:31:39]wFMCommunicate OK [12:31:39]SAM_PROTO_GetShiftState done [12:31:39]FM_GetShiftState done [12:31:39]opened in 1713745124 [12:31:39]opened+sec_in_day 1713831524 [12:31:39]quantity*price = 60069 [12:31:39]sum+1 = 60071 [12:31:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.70 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 0.00 Безнал.: 600.70 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 71 22.04.2024 12:31 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 77052 ФПД: 125572057478354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T123139&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77052&fm=125572057478354&tin=02508201610067®Number=0000000000091573&sum=60070 [12:31:40]StoreToDocumentArchive [12:31:40]shift 373 fd 77052 [12:31:40]save to /storage/0373/doc_00077052 [12:31:40]save last doc name /storage/0373/doc_00077052 to /storage/kkm_last_doc_name [12:31:40]save OK [12:31:40]Clear old archive folders... [12:31:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:31:40]tlvbuf is 00B56CF0 [12:31:40]SAM_PROTO_ClearQueue [12:31:40]wFMCommunicate request_size=4 [12:31:40]MH_SAM_APDU [12:31:40]CAPDU: 80 09 00 00 [12:31:40]Write to MH i2c: E2 08 00 23 04 80 09 00 00 00 00 00 00 99 [12:31:40]Write i2c OK [12:31:40]MH_I2C_Read... [12:31:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:40]Read from MH i2c: E2 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 03 00 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [12:31:40]RAPDU: 90 00 [12:31:40]wFMCommunicate OK [12:31:40]SAM_PROTO_ClearQueue done [12:31:40]KKMCreateOFDPacket [12:31:40]OFDProtocolAddRootSTLVToBuf [12:31:40]FM_MakeSignedData [12:31:40]FM_MakeSignedData [12:31:40]SAM_PROTO_SignData [12:31:40]wFMCommunicate request_size=4 [12:31:40]MH_SAM_APDU [12:31:40]CAPDU: 80 0D 01 02 [12:31:40]Write to MH i2c: E2 08 00 24 04 80 0D 01 02 00 00 00 00 A1 [12:31:40]Write i2c OK [12:31:40]MH_I2C_Read... [12:31:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:40]Read from MH i2c: E2 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 03 00 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 03 00 24 04 00 90 00 9C [12:31:40]RAPDU: 90 00 [12:31:40]wFMCommunicate OK [12:31:40]wFMCommunicate request_size=255 [12:31:40]MH_SAM_APDU [12:31:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AB 58 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FC 2C 01 00 35 04 06 00 72 35 05 E1 [12:31:40]Write to MH i2c: E2 02 01 25 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AB 58 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FC 2C 01 00 35 04 06 00 72 35 05 E1 00 00 AF [12:31:40]Write i2c OK [12:31:40]MH_I2C_Read... [12:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:40]Read from MH i2c: E2 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 03 00 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 03 00 25 04 00 90 00 9D [12:31:40]RAPDU: 90 00 [12:31:40]wFMCommunicate OK [12:31:40]wFMCommunicate request_size=7 [12:31:40]MH_SAM_APDU [12:31:40]CAPDU: 80 0D 02 02 02 34 D2 [12:31:40]Write to MH i2c: E2 0A 00 26 04 80 0D 02 02 02 00 34 D2 00 00 AE [12:31:40]Write i2c OK [12:31:40]MH_I2C_Read... [12:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:40]Read from MH i2c: E2 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 03 00 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 03 00 26 04 00 90 00 9E [12:31:40]RAPDU: 90 00 [12:31:40]wFMCommunicate OK [12:31:40]wFMCommunicate request_size=4 [12:31:40]MH_SAM_APDU [12:31:40]CAPDU: 80 0D 03 02 [12:31:40]Write to MH i2c: E2 08 00 27 04 80 0D 03 02 00 00 00 00 A6 [12:31:40]Write i2c OK [12:31:40]MH_I2C_Read... [12:31:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:40]Read from MH i2c: E2 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 0B 00 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 0B 00 27 04 00 C1 34 9D 94 5B 8A 79 68 90 00 93 [12:31:40]RAPDU: C1 34 9D 94 5B 8A 79 68 90 00 [12:31:40]wFMCommunicate OK [12:31:40]SAM_PROTO_SignData done [12:31:40]FM_MakeSignedData done [12:31:40]CreateOFDProtocolMessage [12:31:40]wFMCommunicate request_size=4 [12:31:40]MH_SAM_APDU [12:31:40]CAPDU: 80 11 00 00 [12:31:40]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [12:31:40]Write i2c OK [12:31:40]MH_I2C_Read... [12:31:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:40]Read from MH i2c: E2 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 17 00 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 17 00 28 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F9 [12:31:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:31:40]wFMCommunicate OK [12:31:40]CreateOFDProtocolMessage done [12:31:40]OFDSenderStorePacket 77052 [12:31:40]StoreOFDPacket docnum=77052 [12:31:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 01 19 04 01 CA 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 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AB 58 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FC 2C 01 00 35 04 06 00 72 35 05 E1 34 D2 C1 34 9D 94 5B 8A 79 68 [12:31:40]CheckFolder [12:31:40]dirname=/storage/ofd_packets [12:31:40]CheckFolder done [12:31:40]ProducePacketName [12:31:40]name=ofd_packets/00077052 [12:31:40]NVStorageSaveData ofd_packets/00077052 [12:31:40]File name is /storage/ofd_packets/00077052 [12:31:40]Write 298 bytes [12:31:40]NVStorageSaveData done [12:31:40]OFDSenderStorePacket done [12:31:40]KKMCreateOFDPacket done [12:31:40]NVStorageSaveData kkm_last_timestamp [12:31:40]File name is /storage/kkm_last_timestamp [12:31:40]Write 4 bytes [12:31:40]NVStorageSaveData done [12:31:40]ExternCall_PrintAddStr [12:31:40]wPrintStart [12:31:40]Write to MH i2c: 01 00 00 29 04 2D [12:31:40]Write i2c OK [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: 01 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: 01 07 00 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: 01 07 00 29 04 00 00 00 00 00 FF 0F 42 [12:31:40]RasterBufferAndPrint [12:31:40]line Счет N : (1)191635 [12:31:40]line ИНН: 02508201610067 [12:31:40]line Контрольно-Кассовый Чек [12:31:40]line ПРОДАЖА [12:31:40]line ТРК (МРК, ГНК) : 23 [12:31:40]line Товар: 2710194210 [12:31:40]line ДТ-К-5 [12:31:40]line 8.240 * 72.90 [12:31:40]line = 600.70 [12:31:40]line НДС 12% НСП 1% [12:31:40]line > о реализуемом товаре [12:31:40]line ИТОГО: 600.70 [12:31:40]line НСП 1% : 5.32 [12:31:40]line НДС 12% : 63.79 [12:31:40]line Наличными: 0.00 [12:31:40]line Безнал.: 600.70 [12:31:40]line Место: АЗС № 106 "Партнер Нефть" [12:31:40]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:31:40]line СНО: Общий режим [12:31:40]line Чек 71 22.04.2024 12:31 [12:31:40]line Смена: 373 ФФД: 1.0 [12:31:40]line ЗНМ: 0300000141 [12:31:40]line РНМ: 0000000000091573 [12:31:40]line Версия ККМ: 001 [12:31:40]line Платежная система: О! деньги [12:31:40]line ФМ: 0000000000874652 [12:31:40]line ФД: 77052 [12:31:40]line ФПД: 125572057478354 [12:31:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T123139&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77052&fm=125572057478354&tin=02508201610067®Number=0000000000091573&sum=60070 [12:31:41]OFD Sender: Processing packet 77052 [packets to send 129, broken 128] [12:31:41]ProducePacketName [12:31:41]name=ofd_packets/00077052 [12:31:41]OFD Sender: To server: pG, [12:31:41]CommunicateWithHost lk.salyk.kg:30040 [12:31:41]ConnectInit lk.salyk.kg [12:31:41]written 0, free lines is 4095 [12:31:41]Connected sock=10 [12:31:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 01 19 04 01 CA 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 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AB 58 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FC 2C 01 00 35 04 06 00 72 35 05 E1 34 D2 C1 34 9D 94 5B 8A 79 68 [12:31:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 8F 97 47 00 6E 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FC 2C 01 00 F4 03 04 00 2D 00 26 66 B6 04 01 00 00 F3 E3 DF 1B 8F 12 66 E2 [12:31:41]CommunicateWithHost err = 0 [12:31:41]CheckOFDResponse [12:31:41]1017 (14) - 77093643461234 [12:31:41]1041 (16) - 0000000000874652 [12:31:41]1040 (4) - 77052 [12:31:41]1012 (4) - 22.04.2024 06:14 [12:31:41]1206 (1) - 0 [12:31:41]OFD Sender: Remove packet 77052 [12:31:41]ProducePacketName [12:31:41]name=ofd_packets/00077052 [12:31:41]NVStorageDeleteData [12:31:41]Write to MH i2c: 01 00 00 52 04 56 [12:31:41]Write i2c OK [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: 01 [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: 01 07 00 [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: 01 07 00 52 04 00 00 00 00 00 01 0D 6B [12:31:41]RasterBufferAndPrint [12:31:41]line [12:31:41]line [12:31:41]line [12:31:41]line [12:31:41]line [12:31:41]written 0, free lines is 3336 [12:31:41]MH_Cut [12:31:41]Write to MH i2c: D1 01 00 59 04 01 2F [12:31:41]Write i2c OK [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: D1 [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: D1 01 00 [12:31:41]MH_I2C_Read... [12:31:41]Read from MH i2c: D1 01 00 59 04 00 2E [12:31:41]Write to MH i2c: 01 00 00 5A 04 5E [12:31:41]Write i2c OK [12:31:41]MH_I2C_Read... [12:31:42]OFD Sender: No OFD packet to send [12:31:42]*** Cut start [12:31:42]*** Partial cut [12:31:42]*** CUTSNS_PIN = 1 [12:31:42]*** CUTSNS_PIN = 0 [12:31:42]*** Brake cut motor [12:31:42]Read from MH i2c: 01 [12:31:42]MH_I2C_Read... [12:31:42]*** Stop cut motor [12:31:42]*** Cut end [12:31:42]Read from MH i2c: 01 07 00 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: 01 07 00 5A 04 00 00 00 00 00 FF 0F 73 [12:31:42]process_action close_receipt done [12:31:42]requested_data is exist [12:31:42]produce_requested_data [12:31:42]requested_item fm.sn is exist - process it [12:31:42]wFMCommunicate request_size=4 [12:31:42]MH_SAM_APDU [12:31:42]CAPDU: 80 11 00 00 [12:31:42]Write to MH i2c: E2 08 00 5B 04 80 11 00 00 00 00 00 00 D9 [12:31:42]Write i2c OK [12:31:42]MH_I2C_Read... [12:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:42]Read from MH i2c: E2 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 17 00 [12:31:42]MH_I2C_Read... [12:31:42]Read from MH i2c: E2 17 00 5B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 2C [12:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:31:42]wFMCommunicate OK [12:31:42]requested_item fd.num is exist - process it [12:31:42]SAM_PROTO_GetFieldsCounters [12:31:42]wFMCommunicate request_size=4 [12:31:42]MH_SAM_APDU [12:31:42]CAPDU: 80 13 00 00 [12:31:42]Write to MH i2c: E2 08 00 5C 04 80 13 00 00 00 00 00 00 DC [12:31:42]Write i2c OK [12:31:42]MH_I2C_Read... [12:31:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:43]Read from MH i2c: E2 [12:31:43]MH_I2C_Read... [12:31:43]Read from MH i2c: E2 62 00 [12:31:43]MH_I2C_Read... [12:31:43]Read from MH i2c: E2 62 00 5C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FC 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [12:31:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FC 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:43]wFMCommunicate OK [12:31:43]SAM_PROTO_GetFieldsCounters done [12:31:43]requested_item shift.num is exist - process it [12:31:43]requested_item shift.opened is exist - process it [12:31:43]req_shift_opened [12:31:43]FM_GetShiftState [12:31:43]SAM_PROTO_GetShiftState [12:31:43]wFMCommunicate request_size=4 [12:31:43]MH_SAM_APDU [12:31:43]CAPDU: 80 13 01 00 [12:31:43]Write to MH i2c: E2 08 00 5D 04 80 13 01 00 00 00 00 00 DE [12:31:43]Write i2c OK [12:31:43]MH_I2C_Read... [12:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:43]Read from MH i2c: E2 [12:31:43]MH_I2C_Read... [12:31:43]Read from MH i2c: E2 0E 00 [12:31:43]MH_I2C_Read... [12:31:43]Read from MH i2c: E2 0E 00 5D 04 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 05 [12:31:43]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [12:31:43]wFMCommunicate OK [12:31:43]SAM_PROTO_GetShiftState done [12:31:43]FM_GetShiftState done [12:31:43]req_shift_opened done [12:31:43]requested_item shift.open_date is exist - process it [12:31:43]req_shift_open_date [12:31:43]req_shift_open_date done [12:31:43]produce_requested_data done [12:31:43]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77052,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [12:31:43]process_action_free close_receipt [12:31:43]json_value_free [12:31:43]json_value_free done [12:31:43]process_json_proto returns [12:31:43]Send response to host [12:31:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77052,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [12:31:43]free response buf [12:31:43]execute_script done [12:31:43]execute_script returns [12:31:43]free content buf [12:31:43]Sock 8.Close socket [12:31:43]Sock 8.Thread stoped [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:55]accept exits with 9 [12:39:55]New connection [12:39:55]New thread 3067481444 created [12:39:55]Thread 3067338084 joined [12:39:55]Waiting for new connection... [12:39:55] Sock 9.Parse request [12:39:55]Sock 9.Check first char [12:39:55]Sock 9.First char is OK [12:39:55]request: POST /json_proto HTTP/1.0 [12:39:55]Method: POST [12:39:55]URL: /json_proto [12:39:55]Method is POST - this is cgi request [12:39:55]url: /json_proto [12:39:55]query_string will be loaded in cgi processing [12:39:55]execute_cgi json_proto POST (null) [12:39:55]execute_cgi path=json_proto method=POST [12:39:55]POST find Content-Length [12:39:55]Host: 172.17.62.5:8080 [12:39:55]Content-Length: 1210 [12:39:55]Content-Type: application/json [12:39:55] [12:39:55]POST finish read [12:39:55]Found Content-Length = 1210 [12:39:55]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191636\u000A22.04.2024 12:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02551\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:55]execute_script... [12:39:55]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191636\u000A22.04.2024 12:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02551\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:55]POST & json_proto [12:39:55]process_json_proto [12:39:55]json parsed OK: [12:39:55]protocol is kg_v1.0 [12:39:55]action value=print_text [12:39:55]process_action print_text [12:39:55]cmd_print_text [12:39:55]ExternCall_PrintAddStr [12:39:55]wPrintStart [12:39:55]Write to MH i2c: 01 00 00 5E 04 62 [12:39:55]Write i2c OK [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: 01 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: 01 07 00 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: 01 07 00 5E 04 00 00 00 00 00 FF 0F 77 [12:39:55]RasterBufferAndPrint [12:39:55]line *****ТОВАРНЫЙ ЧЕК***** [12:39:55]line АЗС 106 [12:39:55]line Партнер нефть [12:39:55]line 02508201610067 [12:39:55]line Кассир : Токторбаева Н. [12:39:55]line Счет N : (1)191636 [12:39:55]line 22.04.2024 12:21 [12:39:55]line ПРОДАЖА [12:39:55]line ТРК (МРК, ГНК): 61 [12:39:55]line Вид ГСМ : 2710194210 [12:39:55]line ДТ-К-5 [12:39:55]line 40.000 x 72.90 [12:39:55]line ИТОГ: 2916.00 [12:39:55]line Тип оплаты: Талоны: Топливная Карта [12:39:55]line 02551 [12:39:55]line ______________________ [12:39:55]line (подпись) [12:39:55]written 0, free lines is 4095 [12:39:55]Write to MH i2c: 01 00 00 73 04 77 [12:39:55]Write i2c OK [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: 01 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: 01 07 00 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 F4 0D 7F [12:39:55]RasterBufferAndPrint [12:39:55]line [12:39:55]line [12:39:55]line [12:39:55]line [12:39:55]line [12:39:55]written 0, free lines is 3574 [12:39:55]MH_Cut [12:39:55]Write to MH i2c: D1 01 00 7A 04 01 50 [12:39:55]Write i2c OK [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: D1 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: D1 01 00 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: D1 01 00 7A 04 00 4F [12:39:55]Write to MH i2c: 01 00 00 7B 04 7F [12:39:55]Write i2c OK [12:39:55]MH_I2C_Read... [12:39:56]*** Cut start [12:39:56]*** Partial cut [12:39:56]*** CUTSNS_PIN = 1 [12:39:56]*** CUTSNS_PIN = 0 [12:39:56]*** Brake cut motor [12:39:56]Read from MH i2c: 01 [12:39:56]MH_I2C_Read... [12:39:56]*** Stop cut motor [12:39:56]*** Cut end [12:39:56]Read from MH i2c: 01 07 00 [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: 01 07 00 7B 04 00 00 00 00 00 FF 0F 94 [12:39:56]process_action print_text done [12:39:56]requested_data is exist [12:39:56]produce_requested_data [12:39:56]requested_item fm.sn is exist - process it [12:39:56]wFMCommunicate request_size=4 [12:39:56]MH_SAM_APDU [12:39:56]CAPDU: 80 11 00 00 [12:39:56]Write to MH i2c: E2 08 00 7C 04 80 11 00 00 00 00 00 00 FA [12:39:56]Write i2c OK [12:39:56]MH_I2C_Read... [12:39:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:56]Read from MH i2c: E2 [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: E2 17 00 [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: E2 17 00 7C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4D [12:39:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:39:56]wFMCommunicate OK [12:39:56]requested_item fd.num is exist - process it [12:39:56]SAM_PROTO_GetFieldsCounters [12:39:56]wFMCommunicate request_size=4 [12:39:56]MH_SAM_APDU [12:39:56]CAPDU: 80 13 00 00 [12:39:56]Write to MH i2c: E2 08 00 7D 04 80 13 00 00 00 00 00 00 FD [12:39:56]Write i2c OK [12:39:56]MH_I2C_Read... [12:39:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:57]Read from MH i2c: E2 [12:39:57]MH_I2C_Read... [12:39:57]Read from MH i2c: E2 62 00 [12:39:57]MH_I2C_Read... [12:39:57]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 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FC 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [12:39:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FC 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:57]wFMCommunicate OK [12:39:57]SAM_PROTO_GetFieldsCounters done [12:39:57]requested_item shift.num is exist - process it [12:39:57]requested_item shift.opened is exist - process it [12:39:57]req_shift_opened [12:39:57]FM_GetShiftState [12:39:57]SAM_PROTO_GetShiftState [12:39:57]wFMCommunicate request_size=4 [12:39:57]MH_SAM_APDU [12:39:57]CAPDU: 80 13 01 00 [12:39:57]Write to MH i2c: E2 08 00 7E 04 80 13 01 00 00 00 00 00 FF [12:39:57]Write i2c OK [12:39:57]MH_I2C_Read... [12:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:57]Read from MH i2c: E2 [12:39:57]MH_I2C_Read... [12:39:57]Read from MH i2c: E2 0E 00 [12:39:57]MH_I2C_Read... [12:39:57]Read from MH i2c: E2 0E 00 7E 04 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 26 [12:39:57]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [12:39:57]wFMCommunicate OK [12:39:57]SAM_PROTO_GetShiftState done [12:39:57]FM_GetShiftState done [12:39:57]req_shift_opened done [12:39:57]requested_item shift.open_date is exist - process it [12:39:57]req_shift_open_date [12:39:57]req_shift_open_date done [12:39:57]produce_requested_data done [12:39:57]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77052,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [12:39:57]process_action_free print_text [12:39:57]json_value_free [12:39:57]json_value_free done [12:39:57]process_json_proto returns [12:39:57]Send response to host [12:39:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77052,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [12:39:57]free response buf [12:39:57]execute_script done [12:39:57]execute_script returns [12:39:57]free content buf [12:39:57]Sock 9.Close socket [12:39:57]Sock 9.Thread stoped [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:33]accept exits with 8 [12:47:33]New connection [12:47:33]New thread 3067338084 created [12:47:33]Thread 3067481444 joined [12:47:33]Waiting for new connection... [12:47:33] Sock 8.Parse request [12:47:33]Sock 8.Check first char [12:47:33]Sock 8.First char is OK [12:47:33]request: POST /json_proto HTTP/1.0 [12:47:33]Method: POST [12:47:33]URL: /json_proto [12:47:33]Method is POST - this is cgi request [12:47:33]url: /json_proto [12:47:33]query_string will be loaded in cgi processing [12:47:33]execute_cgi json_proto POST (null) [12:47:33]execute_cgi path=json_proto method=POST [12:47:33]POST find Content-Length [12:47:33]Host: 172.17.62.5:8080 [12:47:33]Content-Length: 1173 [12:47:33]Content-Type: application/json [12:47:33] [12:47:33]POST finish read [12:47:33]Found Content-Length = 1173 [12:47:33]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191637\u000A22.04.2024 12:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 322.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:33]execute_script... [12:47:33]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191637\u000A22.04.2024 12:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 322.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102984\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:33]POST & json_proto [12:47:33]process_json_proto [12:47:33]json parsed OK: [12:47:33]protocol is kg_v1.0 [12:47:33]action value=print_text [12:47:33]process_action print_text [12:47:33]cmd_print_text [12:47:33]ExternCall_PrintAddStr [12:47:33]wPrintStart [12:47:33]Write to MH i2c: 01 00 00 7F 04 83 [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: 01 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: 01 07 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: 01 07 00 7F 04 00 00 00 00 00 FF 0F 98 [12:47:33]RasterBufferAndPrint [12:47:33]line *****ТОВАРНЫЙ ЧЕК***** [12:47:33]line АЗС 106 [12:47:33]line Партнер нефть [12:47:33]line 02508201610067 [12:47:33]line Кассир : Токторбаева Н. [12:47:33]line Счет N : (1)191637 [12:47:33]line 22.04.2024 12:28 [12:47:33]line ПРОДАЖА [12:47:33]line ТРК (МРК, ГНК): 22 [12:47:33]line Вид ГСМ : 2710124130 [12:47:33]line Аи-92-К-5 [12:47:33]line 5.000 x 64.40 [12:47:33]line ИТОГ: 322.00 [12:47:33]line Тип оплаты: Талоны: ТК ГПНА Online [12:47:33]line 30102984 [12:47:33]line ______________________ [12:47:33]line (подпись) [12:47:33]written 0, free lines is 4095 [12:47:33]Write to MH i2c: 01 00 00 94 04 98 [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: 01 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: 01 07 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: 01 07 00 94 04 00 00 00 00 00 F5 0D A1 [12:47:33]RasterBufferAndPrint [12:47:33]line [12:47:33]line [12:47:33]line [12:47:33]line [12:47:33]line [12:47:33]written 0, free lines is 3575 [12:47:33]MH_Cut [12:47:33]Write to MH i2c: D1 01 00 9B 04 01 71 [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: D1 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: D1 01 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: D1 01 00 9B 04 00 70 [12:47:33]Write to MH i2c: 01 00 00 9C 04 A0 [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:34]*** Cut start [12:47:34]*** Partial cut [12:47:34]*** CUTSNS_PIN = 1 [12:47:34]*** CUTSNS_PIN = 0 [12:47:34]*** Brake cut motor [12:47:35]Read from MH i2c: 01 [12:47:35]MH_I2C_Read... [12:47:35]*** Stop cut motor [12:47:35]*** Cut end [12:47:35]Read from MH i2c: 01 07 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: 01 07 00 9C 04 00 00 00 00 00 FF 0F B5 [12:47:35]process_action print_text done [12:47:35]requested_data is exist [12:47:35]produce_requested_data [12:47:35]requested_item fm.sn is exist - process it [12:47:35]wFMCommunicate request_size=4 [12:47:35]MH_SAM_APDU [12:47:35]CAPDU: 80 11 00 00 [12:47:35]Write to MH i2c: E2 08 00 9D 04 80 11 00 00 00 00 00 00 1B [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:35]Read from MH i2c: E2 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 17 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 17 00 9D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6E [12:47:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:47:35]wFMCommunicate OK [12:47:35]requested_item fd.num is exist - process it [12:47:35]SAM_PROTO_GetFieldsCounters [12:47:35]wFMCommunicate request_size=4 [12:47:35]MH_SAM_APDU [12:47:35]CAPDU: 80 13 00 00 [12:47:35]Write to MH i2c: E2 08 00 9E 04 80 13 00 00 00 00 00 00 1E [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:35]Read from MH i2c: E2 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 62 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 62 00 9E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FC 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [12:47:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FC 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:35]wFMCommunicate OK [12:47:35]SAM_PROTO_GetFieldsCounters done [12:47:35]requested_item shift.num is exist - process it [12:47:35]requested_item shift.opened is exist - process it [12:47:35]req_shift_opened [12:47:35]FM_GetShiftState [12:47:35]SAM_PROTO_GetShiftState [12:47:35]wFMCommunicate request_size=4 [12:47:35]MH_SAM_APDU [12:47:35]CAPDU: 80 13 01 00 [12:47:35]Write to MH i2c: E2 08 00 9F 04 80 13 01 00 00 00 00 00 20 [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:35]Read from MH i2c: E2 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 0E 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 0E 00 9F 04 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 47 [12:47:35]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [12:47:35]wFMCommunicate OK [12:47:35]SAM_PROTO_GetShiftState done [12:47:35]FM_GetShiftState done [12:47:35]req_shift_opened done [12:47:35]requested_item shift.open_date is exist - process it [12:47:35]req_shift_open_date [12:47:35]req_shift_open_date done [12:47:35]produce_requested_data done [12:47:35]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77052,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [12:47:35]process_action_free print_text [12:47:35]json_value_free [12:47:35]json_value_free done [12:47:35]process_json_proto returns [12:47:35]Send response to host [12:47:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77052,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [12:47:35]free response buf [12:47:35]execute_script done [12:47:35]execute_script returns [12:47:35]free content buf [12:47:35]Sock 8.Close socket [12:47:35]Sock 8.Thread stoped [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:49]accept exits with 9 [12:56:49]New connection [12:56:49]New thread 3067481444 created [12:56:49]Thread 3067338084 joined [12:56:49]Waiting for new connection... [12:56:49] Sock 9.Parse request [12:56:49]Sock 9.Check first char [12:56:49]Sock 9.First char is OK [12:56:49]request: POST /json_proto HTTP/1.0 [12:56:49]Method: POST [12:56:49]URL: /json_proto [12:56:49]Method is POST - this is cgi request [12:56:49]url: /json_proto [12:56:49]query_string will be loaded in cgi processing [12:56:49]execute_cgi json_proto POST (null) [12:56:49]execute_cgi path=json_proto method=POST [12:56:49]POST find Content-Length [12:56:49]Host: 172.17.62.5:8080 [12:56:49]Content-Length: 677 [12:56:49]Content-Type: application/json [12:56:49] [12:56:49]POST finish read [12:56:49]Found Content-Length = 677 [12:56:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "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:56:49]execute_script... [12:56: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)191638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 7.770, "sum" : 500.39, "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:56:49]POST & json_proto [12:56:49]process_json_proto [12:56:49]json parsed OK: [12:56:49]protocol is kg_v1.0 [12:56:49]action value=close_receipt [12:56:49]process_action close_receipt [12:56:49]cmd_close_receipt [12:56:49]MH_GetDate [12:56:49]Write to MH i2c: F0 00 00 A0 04 93 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: F0 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: F0 09 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: F0 09 00 A0 04 00 92 5E 26 66 F4 E9 65 64 BE [12:56:49]GetLastDocTimeStamp 1713789099 [12:56:49]current date 1713790610 [12:56:49]FM_GetShiftState [12:56:49]SAM_PROTO_GetShiftState [12:56:49]wFMCommunicate request_size=4 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 13 01 00 [12:56:49]Write to MH i2c: E2 08 00 A1 04 80 13 01 00 00 00 00 00 22 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 0E 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 0E 00 A1 04 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 49 [12:56:49]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [12:56:49]wFMCommunicate OK [12:56:49]SAM_PROTO_GetShiftState done [12:56:49]FM_GetShiftState done [12:56:49]opened in 1713745124 [12:56:49]opened+sec_in_day 1713831524 [12:56:49]quantity*price = 50038 [12:56:49]sum+1 = 50040 [12:56:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 72 22.04.2024 12:56 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77053 ФПД: 276325177452608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T125650&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77053&fm=276325177452608&tin=02508201610067®Number=0000000000091573&sum=50000 [12:56:51]StoreToDocumentArchive [12:56:51]shift 373 fd 77053 [12:56:51]save to /storage/0373/doc_00077053 [12:56:51]save last doc name /storage/0373/doc_00077053 to /storage/kkm_last_doc_name [12:56:51]save OK [12:56:51]Clear old archive folders... [12:56:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:51]tlvbuf is 00B575F0 [12:56:51]SAM_PROTO_ClearQueue [12:56:51]wFMCommunicate request_size=4 [12:56:51]MH_SAM_APDU [12:56:51]CAPDU: 80 09 00 00 [12:56:51]Write to MH i2c: E2 08 00 AE 04 80 09 00 00 00 00 00 00 24 [12:56:51]Write i2c OK [12:56:51]MH_I2C_Read... [12:56:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:51]Read from MH i2c: E2 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 03 00 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 03 00 AE 04 00 90 00 26 [12:56:51]RAPDU: 90 00 [12:56:51]wFMCommunicate OK [12:56:51]SAM_PROTO_ClearQueue done [12:56:51]KKMCreateOFDPacket [12:56:51]OFDProtocolAddRootSTLVToBuf [12:56:51]FM_MakeSignedData [12:56:51]FM_MakeSignedData [12:56:51]SAM_PROTO_SignData [12:56:51]wFMCommunicate request_size=4 [12:56:51]MH_SAM_APDU [12:56:51]CAPDU: 80 0D 01 02 [12:56:51]Write to MH i2c: E2 08 00 AF 04 80 0D 01 02 00 00 00 00 2C [12:56:51]Write i2c OK [12:56:51]MH_I2C_Read... [12:56:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:51]Read from MH i2c: E2 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 03 00 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 03 00 AF 04 00 90 00 27 [12:56:51]RAPDU: 90 00 [12:56:51]wFMCommunicate OK [12:56:51]wFMCommunicate request_size=255 [12:56:51]MH_SAM_APDU [12:56:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 48 00 00 00 F4 03 04 00 92 5E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FD 2C 01 00 35 04 06 00 FB [12:56:51]Write to MH i2c: E2 02 01 B0 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 48 00 00 00 F4 03 04 00 92 5E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FD 2C 01 00 35 04 06 00 FB 00 00 40 [12:56:51]Write i2c OK [12:56:51]MH_I2C_Read... [12:56:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:51]Read from MH i2c: E2 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 03 00 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 03 00 B0 04 00 90 00 28 [12:56:51]RAPDU: 90 00 [12:56:51]wFMCommunicate OK [12:56:51]wFMCommunicate request_size=10 [12:56:51]MH_SAM_APDU [12:56:51]CAPDU: 80 0D 02 02 05 50 F8 0B 68 40 [12:56:51]Write to MH i2c: E2 0D 00 B1 04 80 0D 02 02 05 00 50 F8 0B 68 40 00 00 34 [12:56:51]Write i2c OK [12:56:51]MH_I2C_Read... [12:56:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:51]Read from MH i2c: E2 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 03 00 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 03 00 B1 04 00 90 00 29 [12:56:51]RAPDU: 90 00 [12:56:51]wFMCommunicate OK [12:56:51]wFMCommunicate request_size=4 [12:56:51]MH_SAM_APDU [12:56:51]CAPDU: 80 0D 03 02 [12:56:51]Write to MH i2c: E2 08 00 B2 04 80 0D 03 02 00 00 00 00 31 [12:56:51]Write i2c OK [12:56:51]MH_I2C_Read... [12:56:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:51]Read from MH i2c: E2 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 0B 00 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 0B 00 B2 04 00 7F 9D D0 82 CB 99 1C 9E 90 00 BE [12:56:51]RAPDU: 7F 9D D0 82 CB 99 1C 9E 90 00 [12:56:51]wFMCommunicate OK [12:56:51]SAM_PROTO_SignData done [12:56:51]FM_MakeSignedData done [12:56:51]CreateOFDProtocolMessage [12:56:51]wFMCommunicate request_size=4 [12:56:51]MH_SAM_APDU [12:56:51]CAPDU: 80 11 00 00 [12:56:51]Write to MH i2c: E2 08 00 B3 04 80 11 00 00 00 00 00 00 31 [12:56:51]Write i2c OK [12:56:51]MH_I2C_Read... [12:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:51]Read from MH i2c: E2 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 17 00 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 17 00 B3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 84 [12:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:56:51]wFMCommunicate OK [12:56:51]CreateOFDProtocolMessage done [12:56:51]OFDSenderStorePacket 77053 [12:56:51]StoreOFDPacket docnum=77053 [12:56:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 0E C2 07 01 44 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 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 48 00 00 00 F4 03 04 00 92 5E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FD 2C 01 00 35 04 06 00 FB 50 F8 0B 68 40 7F 9D D0 82 CB 99 1C 9E [12:56:51]CheckFolder [12:56:51]dirname=/storage/ofd_packets [12:56:51]CheckFolder done [12:56:51]ProducePacketName [12:56:51]name=ofd_packets/00077053 [12:56:51]NVStorageSaveData ofd_packets/00077053 [12:56:51]File name is /storage/ofd_packets/00077053 [12:56:51]Write 301 bytes [12:56:51]NVStorageSaveData done [12:56:51]OFDSenderStorePacket done [12:56:51]KKMCreateOFDPacket done [12:56:51]NVStorageSaveData kkm_last_timestamp [12:56:51]File name is /storage/kkm_last_timestamp [12:56:51]Write 4 bytes [12:56:51]NVStorageSaveData done [12:56:51]ExternCall_PrintAddStr [12:56:51]wPrintStart [12:56:51]Write to MH i2c: 01 00 00 B4 04 B8 [12:56:51]Write i2c OK [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: 01 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: 01 07 00 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: 01 07 00 B4 04 00 00 00 00 00 FF 0F CD [12:56:51]RasterBufferAndPrint [12:56:51]line Счет N : (1)191638 [12:56:51]line ИНН: 02508201610067 [12:56:51]line Контрольно-Кассовый Чек [12:56:51]line ПРОДАЖА [12:56:51]line ТРК (МРК, ГНК) : 33 [12:56:51]line Товар: 2710124130 [12:56:51]line Аи-92-К-5 [12:56:51]line 7.770 * 64.40 [12:56:51]line = 500.39 [12:56:51]line НДС 12% НСП 1% [12:56:51]line > о реализуемом товаре [12:56:51]line ОКРУГЛЕНИЕ: -0.39 [12:56:51]line ИТОГО: 500.00 [12:56:51]line Внесено: 500.00 [12:56:51]line СДАЧА: 0.00 [12:56:51]line НСП 1% : 4.43 [12:56:51]line НДС 12% : 53.14 [12:56:51]line Наличными: 500.00 [12:56:51]line Безнал.: 0.00 [12:56:51]line Место: АЗС № 106 "Партнер Нефть" [12:56:51]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [12:56:51]line СНО: Общий режим [12:56:51]line Чек 72 22.04.2024 12:56 [12:56:51]line Смена: 373 ФФД: 1.0 [12:56:51]line ЗНМ: 0300000141 [12:56:51]line РНМ: 0000000000091573 [12:56:51]line Версия ККМ: 001 [12:56:51]line ФМ: 0000000000874652 [12:56:51]line ФД: 77053 [12:56:51]line ФПД: 276325177452608 [12:56:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T125650&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77053&fm=276325177452608&tin=02508201610067®Number=0000000000091573&sum=50000 [12:56:51]OFD Sender: Processing packet 77053 [packets to send 129, broken 128] [12:56:51]ProducePacketName [12:56:51]name=ofd_packets/00077053 [12:56:51]OFD Sender: To server: pG, [12:56:51]CommunicateWithHost lk.salyk.kg:30040 [12:56:51]ConnectInit lk.salyk.kg [12:56:51]written 0, free lines is 4095 [12:56:52]Connected sock=10 [12:56:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 0E C2 07 01 44 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 35 FF 03 08 00 03 5A 1E 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 77 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 48 00 00 00 F4 03 04 00 92 5E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FD 2C 01 00 35 04 06 00 FB 50 F8 0B 68 40 7F 9D D0 82 CB 99 1C 9E [12:56:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 B5 E5 47 00 91 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FD 2C 01 00 F4 03 04 00 14 06 26 66 B6 04 01 00 00 EB 49 D7 2B 68 F1 30 76 [12:56:52]CommunicateWithHost err = 0 [12:56:52]CheckOFDResponse [12:56:52]1017 (14) - 77093643461234 [12:56:52]1041 (16) - 0000000000874652 [12:56:52]1040 (4) - 77053 [12:56:52]1012 (4) - 22.04.2024 06:39 [12:56:52]1206 (1) - 0 [12:56:52]OFD Sender: Remove packet 77053 [12:56:52]ProducePacketName [12:56:52]name=ofd_packets/00077053 [12:56:52]NVStorageDeleteData [12:56:52]Write to MH i2c: 01 00 00 DE 04 E2 [12:56:52]Write i2c OK [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: 01 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: 01 07 00 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: 01 07 00 DE 04 00 00 00 00 00 FA 0C EF [12:56:52]RasterBufferAndPrint [12:56:52]line [12:56:52]line [12:56:52]line [12:56:52]line [12:56:52]line [12:56:52]written 0, free lines is 3328 [12:56:52]MH_Cut [12:56:52]Write to MH i2c: D1 01 00 E5 04 01 BB [12:56:52]Write i2c OK [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: D1 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: D1 01 00 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: D1 01 00 E5 04 00 BA [12:56:52]Write to MH i2c: 01 00 00 E6 04 EA [12:56:52]Write i2c OK [12:56:52]MH_I2C_Read... [12:56:52]OFD Sender: No OFD packet to send [12:56:53]*** Cut start [12:56:53]*** Partial cut [12:56:53]*** CUTSNS_PIN = 1 [12:56:53]*** CUTSNS_PIN = 0 [12:56:53]*** Brake cut motor [12:56:53]Read from MH i2c: 01 [12:56:53]MH_I2C_Read... [12:56:53]*** Stop cut motor [12:56:53]*** Cut end [12:56:53]Read from MH i2c: 01 07 00 [12:56:53]MH_I2C_Read... [12:56:53]Read from MH i2c: 01 07 00 E6 04 00 00 00 00 00 FF 0F FF [12:56:53]process_action close_receipt done [12:56:53]requested_data is exist [12:56:53]produce_requested_data [12:56:53]requested_item fm.sn is exist - process it [12:56:53]wFMCommunicate request_size=4 [12:56:53]MH_SAM_APDU [12:56:53]CAPDU: 80 11 00 00 [12:56:53]Write to MH i2c: E2 08 00 E7 04 80 11 00 00 00 00 00 00 65 [12:56:53]Write i2c OK [12:56:53]MH_I2C_Read... [12:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:53]Read from MH i2c: E2 [12:56:53]MH_I2C_Read... [12:56:53]Read from MH i2c: E2 17 00 [12:56:53]MH_I2C_Read... [12:56:53]Read from MH i2c: E2 17 00 E7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B8 [12:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [12:56:53]wFMCommunicate OK [12:56:53]requested_item fd.num is exist - process it [12:56:53]SAM_PROTO_GetFieldsCounters [12:56:53]wFMCommunicate request_size=4 [12:56:53]MH_SAM_APDU [12:56:53]CAPDU: 80 13 00 00 [12:56:53]Write to MH i2c: E2 08 00 E8 04 80 13 00 00 00 00 00 00 68 [12:56:53]Write i2c OK [12:56:53]MH_I2C_Read... [12:56:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:53]Read from MH i2c: E2 [12:56:53]MH_I2C_Read... [12:56:53]Read from MH i2c: E2 62 00 [12:56:53]MH_I2C_Read... [12:56:53]Read from MH i2c: E2 62 00 E8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FD 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [12:56:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FD 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:53]wFMCommunicate OK [12:56:53]SAM_PROTO_GetFieldsCounters done [12:56:53]requested_item shift.num is exist - process it [12:56:53]requested_item shift.opened is exist - process it [12:56:53]req_shift_opened [12:56:53]FM_GetShiftState [12:56:53]SAM_PROTO_GetShiftState [12:56:53]wFMCommunicate request_size=4 [12:56:53]MH_SAM_APDU [12:56:53]CAPDU: 80 13 01 00 [12:56:53]Write to MH i2c: E2 08 00 E9 04 80 13 01 00 00 00 00 00 6A [12:56:53]Write i2c OK [12:56:53]MH_I2C_Read... [12:56:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:54]Read from MH i2c: E2 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 0E 00 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 0E 00 E9 04 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 91 [12:56:54]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [12:56:54]wFMCommunicate OK [12:56:54]SAM_PROTO_GetShiftState done [12:56:54]FM_GetShiftState done [12:56:54]req_shift_opened done [12:56:54]requested_item shift.open_date is exist - process it [12:56:54]req_shift_open_date [12:56:54]req_shift_open_date done [12:56:54]produce_requested_data done [12:56:54]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77053,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [12:56:54]process_action_free close_receipt [12:56:54]json_value_free [12:56:54]json_value_free done [12:56:54]process_json_proto returns [12:56:54]Send response to host [12:56:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77053,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [12:56:54]free response buf [12:56:54]execute_script done [12:56:54]execute_script returns [12:56:54]free content buf [12:56:54]Sock 9.Close socket [12:56:54]Sock 9.Thread stoped [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:29]accept exits with 8 [13:02:29]New connection [13:02:29]New thread 3067338084 created [13:02:29]Thread 3067481444 joined [13:02:29]Waiting for new connection... [13:02:29] Sock 8.Parse request [13:02:29]Sock 8.Check first char [13:02:29]Sock 8.First char is OK [13:02:29]request: POST /json_proto HTTP/1.0 [13:02:29]Method: POST [13:02:29]URL: /json_proto [13:02:29]Method is POST - this is cgi request [13:02:29]url: /json_proto [13:02:29]query_string will be loaded in cgi processing [13:02:29]execute_cgi json_proto POST (null) [13:02:29]execute_cgi path=json_proto method=POST [13:02:29]POST find Content-Length [13:02:29]Host: 172.17.62.5:8080 [13:02:29]Content-Length: 1175 [13:02:29]Content-Type: application/json [13:02:29] [13:02:29]POST finish read [13:02:29]Found Content-Length = 1175 [13:02:29]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191639\u000A22.04.2024 12:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102950\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:29]execute_script... [13:02:29]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191639\u000A22.04.2024 12:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.40\u000A\u0418\u0422\u041E\u0413: 1288.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102950\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:29]POST & json_proto [13:02:29]process_json_proto [13:02:29]json parsed OK: [13:02:29]protocol is kg_v1.0 [13:02:29]action value=print_text [13:02:29]process_action print_text [13:02:29]cmd_print_text [13:02:29]ExternCall_PrintAddStr [13:02:29]wPrintStart [13:02:29]Write to MH i2c: 01 00 00 EA 04 EE [13:02:29]Write i2c OK [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: 01 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: 01 07 00 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: 01 07 00 EA 04 00 00 00 00 00 FF 0F 03 [13:02:29]RasterBufferAndPrint [13:02:29]line *****ТОВАРНЫЙ ЧЕК***** [13:02:29]line АЗС 106 [13:02:29]line Партнер нефть [13:02:29]line 02508201610067 [13:02:29]line Кассир : Токторбаева Н. [13:02:29]line Счет N : (1)191639 [13:02:29]line 22.04.2024 12:43 [13:02:29]line ПРОДАЖА [13:02:29]line ТРК (МРК, ГНК): 43 [13:02:29]line Вид ГСМ : 2710124130 [13:02:29]line Аи-92-К-5 [13:02:29]line 20.000 x 64.40 [13:02:29]line ИТОГ: 1288.00 [13:02:29]line Тип оплаты: Талоны: ТК ГПНА Online [13:02:29]line 30102950 [13:02:29]line ______________________ [13:02:29]line (подпись) [13:02:29]written 0, free lines is 4095 [13:02:29]Write to MH i2c: 01 00 00 FF 04 03 [13:02:29]Write i2c OK [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: 01 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: 01 07 00 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: 01 07 00 FF 04 00 00 00 00 00 F5 0D 0C [13:02:29]RasterBufferAndPrint [13:02:29]line [13:02:29]line [13:02:29]line [13:02:29]line [13:02:29]line [13:02:29]written 0, free lines is 3575 [13:02:29]MH_Cut [13:02:29]Write to MH i2c: D1 01 00 06 05 01 DD [13:02:29]Write i2c OK [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: D1 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: D1 01 00 [13:02:29]MH_I2C_Read... [13:02:29]Read from MH i2c: D1 01 00 06 05 00 DC [13:02:29]Write to MH i2c: 01 00 00 07 05 0C [13:02:29]Write i2c OK [13:02:29]MH_I2C_Read... [13:02:30]*** Cut start [13:02:30]*** Partial cut [13:02:30]*** CUTSNS_PIN = 1 [13:02:30]*** CUTSNS_PIN = 0 [13:02:30]*** Brake cut motor [13:02:31]Read from MH i2c: 01 [13:02:31]MH_I2C_Read... [13:02:31]*** Stop cut motor [13:02:31]*** Cut end [13:02:31]Read from MH i2c: 01 07 00 [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: 01 07 00 07 05 00 00 00 00 00 FF 0F 21 [13:02:31]process_action print_text done [13:02:31]requested_data is exist [13:02:31]produce_requested_data [13:02:31]requested_item fm.sn is exist - process it [13:02:31]wFMCommunicate request_size=4 [13:02:31]MH_SAM_APDU [13:02:31]CAPDU: 80 11 00 00 [13:02:31]Write to MH i2c: E2 08 00 08 05 80 11 00 00 00 00 00 00 87 [13:02:31]Write i2c OK [13:02:31]MH_I2C_Read... [13:02:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:31]Read from MH i2c: E2 [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: E2 17 00 [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: E2 17 00 08 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DA [13:02:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:02:31]wFMCommunicate OK [13:02:31]requested_item fd.num is exist - process it [13:02:31]SAM_PROTO_GetFieldsCounters [13:02:31]wFMCommunicate request_size=4 [13:02:31]MH_SAM_APDU [13:02:31]CAPDU: 80 13 00 00 [13:02:31]Write to MH i2c: E2 08 00 09 05 80 13 00 00 00 00 00 00 8A [13:02:31]Write i2c OK [13:02:31]MH_I2C_Read... [13:02:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:31]Read from MH i2c: E2 [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: E2 62 00 [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: E2 62 00 09 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FD 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [13:02:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FD 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:31]wFMCommunicate OK [13:02:31]SAM_PROTO_GetFieldsCounters done [13:02:31]requested_item shift.num is exist - process it [13:02:31]requested_item shift.opened is exist - process it [13:02:31]req_shift_opened [13:02:31]FM_GetShiftState [13:02:31]SAM_PROTO_GetShiftState [13:02:31]wFMCommunicate request_size=4 [13:02:31]MH_SAM_APDU [13:02:31]CAPDU: 80 13 01 00 [13:02:31]Write to MH i2c: E2 08 00 0A 05 80 13 01 00 00 00 00 00 8C [13:02:31]Write i2c OK [13:02:31]MH_I2C_Read... [13:02:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:31]Read from MH i2c: E2 [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: E2 0E 00 [13:02:31]MH_I2C_Read... [13:02:31]Read from MH i2c: E2 0E 00 0A 05 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 B3 [13:02:31]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:02:31]wFMCommunicate OK [13:02:31]SAM_PROTO_GetShiftState done [13:02:31]FM_GetShiftState done [13:02:31]req_shift_opened done [13:02:31]requested_item shift.open_date is exist - process it [13:02:31]req_shift_open_date [13:02:31]req_shift_open_date done [13:02:31]produce_requested_data done [13:02:31]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77053,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [13:02:31]process_action_free print_text [13:02:31]json_value_free [13:02:31]json_value_free done [13:02:31]process_json_proto returns [13:02:31]Send response to host [13:02:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77053,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [13:02:31]free response buf [13:02:31]execute_script done [13:02:31]execute_script returns [13:02:31]free content buf [13:02:31]Sock 8.Close socket [13:02:31]Sock 8.Thread stoped [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:17]accept exits with 10 [13:10:17]New connection [13:10:17]New thread 3067481444 created [13:10:17]Thread 3067338084 joined [13:10:17]Waiting for new connection... [13:10:17] Sock 10.Parse request [13:10:17]Sock 10.Check first char [13:10:17]Sock 10.First char is OK [13:10:17]request: POST /json_proto HTTP/1.0 [13:10:17]Method: POST [13:10:17]URL: /json_proto [13:10:17]Method is POST - this is cgi request [13:10:17]url: /json_proto [13:10:17]query_string will be loaded in cgi processing [13:10:17]execute_cgi json_proto POST (null) [13:10:17]execute_cgi path=json_proto method=POST [13:10:17]POST find Content-Length [13:10:17]Host: 172.17.62.5:8080 [13:10:17]Content-Length: 678 [13:10:17]Content-Type: application/json [13:10:17] [13:10:17]POST finish read [13:10:17]Found Content-Length = 678 [13:10:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.020, "sum" : 967.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 967.00, "total" : 967.00, "payments": [ { "type": 0, "sum" : 967.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:17]execute_script... [13:10: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)191640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.020, "sum" : 967.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 967.00, "total" : 967.00, "payments": [ { "type": 0, "sum" : 967.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:17]POST & json_proto [13:10:17]process_json_proto [13:10:17]json parsed OK: [13:10:17]protocol is kg_v1.0 [13:10:17]action value=close_receipt [13:10:17]process_action close_receipt [13:10:17]cmd_close_receipt [13:10:17]MH_GetDate [13:10:17]Write to MH i2c: F0 00 00 0B 05 FF [13:10:17]Write i2c OK [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: F0 [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: F0 09 00 [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: F0 09 00 0B 05 00 BA 61 26 66 F4 E9 65 64 55 [13:10:17]GetLastDocTimeStamp 1713790610 [13:10:17]current date 1713791418 [13:10:17]FM_GetShiftState [13:10:17]SAM_PROTO_GetShiftState [13:10:17]wFMCommunicate request_size=4 [13:10:17]MH_SAM_APDU [13:10:17]CAPDU: 80 13 01 00 [13:10:17]Write to MH i2c: E2 08 00 0C 05 80 13 01 00 00 00 00 00 8E [13:10:17]Write i2c OK [13:10:17]MH_I2C_Read... [13:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:17]Read from MH i2c: E2 [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: E2 0E 00 [13:10:17]MH_I2C_Read... [13:10:17]Read from MH i2c: E2 0E 00 0C 05 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 B5 [13:10:17]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:10:17]wFMCommunicate OK [13:10:17]SAM_PROTO_GetShiftState done [13:10:17]FM_GetShiftState done [13:10:17]opened in 1713745124 [13:10:17]opened+sec_in_day 1713831524 [13:10:17]quantity*price = 96728 [13:10:17]sum+1 = 96730 [13:10:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 967.00 Внесено: 967.00 СДАЧА: 0.00 НСП 1% : 8.56 НДС 12% : 102.72 Наличными: 967.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 73 22.04.2024 13:10 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77054 ФПД: 69553009013665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T131018&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77054&fm=69553009013665&tin=02508201610067®Number=0000000000091573&sum=96700 [13:10:19]StoreToDocumentArchive [13:10:19]shift 373 fd 77054 [13:10:19]save to /storage/0373/doc_00077054 [13:10:19]save last doc name /storage/0373/doc_00077054 to /storage/kkm_last_doc_name [13:10:19]save OK [13:10:19]Clear old archive folders... [13:10:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:19]tlvbuf is 00B68020 [13:10:19]SAM_PROTO_ClearQueue [13:10:19]wFMCommunicate request_size=4 [13:10:19]MH_SAM_APDU [13:10:19]CAPDU: 80 09 00 00 [13:10:19]Write to MH i2c: E2 08 00 19 05 80 09 00 00 00 00 00 00 90 [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:19]Read from MH i2c: E2 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 03 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 03 00 19 05 00 90 00 92 [13:10:19]RAPDU: 90 00 [13:10:19]wFMCommunicate OK [13:10:19]SAM_PROTO_ClearQueue done [13:10:19]KKMCreateOFDPacket [13:10:19]OFDProtocolAddRootSTLVToBuf [13:10:19]FM_MakeSignedData [13:10:19]FM_MakeSignedData [13:10:19]SAM_PROTO_SignData [13:10:19]wFMCommunicate request_size=4 [13:10:19]MH_SAM_APDU [13:10:19]CAPDU: 80 0D 01 02 [13:10:19]Write to MH i2c: E2 08 00 1A 05 80 0D 01 02 00 00 00 00 98 [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:19]Read from MH i2c: E2 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 03 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [13:10:19]RAPDU: 90 00 [13:10:19]wFMCommunicate OK [13:10:19]wFMCommunicate request_size=255 [13:10:19]MH_SAM_APDU [13:10:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 3A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 D9 79 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 79 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 28 00 00 00 00 07 04 06 00 BC 79 01 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 BA 61 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FE 2C 01 00 35 04 06 00 3F [13:10:19]Write to MH i2c: E2 02 01 1B 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 35 FF 03 08 00 03 AC 3A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 D9 79 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 79 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 28 00 00 00 00 07 04 06 00 BC 79 01 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 BA 61 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FE 2C 01 00 35 04 06 00 3F 00 00 FB [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:19]Read from MH i2c: E2 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 03 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 03 00 1B 05 00 90 00 94 [13:10:19]RAPDU: 90 00 [13:10:19]wFMCommunicate OK [13:10:19]wFMCommunicate request_size=10 [13:10:19]MH_SAM_APDU [13:10:19]CAPDU: 80 0D 02 02 05 42 12 65 33 A1 [13:10:19]Write to MH i2c: E2 0D 00 1C 05 80 0D 02 02 05 00 42 12 65 33 A1 00 00 32 [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:19]Read from MH i2c: E2 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 03 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 03 00 1C 05 00 90 00 95 [13:10:19]RAPDU: 90 00 [13:10:19]wFMCommunicate OK [13:10:19]wFMCommunicate request_size=4 [13:10:19]MH_SAM_APDU [13:10:19]CAPDU: 80 0D 03 02 [13:10:19]Write to MH i2c: E2 08 00 1D 05 80 0D 03 02 00 00 00 00 9D [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:19]Read from MH i2c: E2 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 0B 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 0B 00 1D 05 00 CC C0 11 C3 63 7E 15 8C 90 00 80 [13:10:19]RAPDU: CC C0 11 C3 63 7E 15 8C 90 00 [13:10:19]wFMCommunicate OK [13:10:19]SAM_PROTO_SignData done [13:10:19]FM_MakeSignedData done [13:10:19]CreateOFDProtocolMessage [13:10:19]wFMCommunicate request_size=4 [13:10:19]MH_SAM_APDU [13:10:19]CAPDU: 80 11 00 00 [13:10:19]Write to MH i2c: E2 08 00 1E 05 80 11 00 00 00 00 00 00 9D [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:19]Read from MH i2c: E2 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 17 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: E2 17 00 1E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F0 [13:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:10:19]wFMCommunicate OK [13:10:19]CreateOFDProtocolMessage done [13:10:19]OFDSenderStorePacket 77054 [13:10:19]StoreOFDPacket docnum=77054 [13:10:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C2 1C 07 01 49 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 3A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 D9 79 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 79 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 28 00 00 00 00 07 04 06 00 BC 79 01 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 BA 61 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FE 2C 01 00 35 04 06 00 3F 42 12 65 33 A1 CC C0 11 C3 63 7E 15 8C [13:10:19]CheckFolder [13:10:19]dirname=/storage/ofd_packets [13:10:19]CheckFolder done [13:10:19]ProducePacketName [13:10:19]name=ofd_packets/00077054 [13:10:19]NVStorageSaveData ofd_packets/00077054 [13:10:19]File name is /storage/ofd_packets/00077054 [13:10:19]Write 301 bytes [13:10:19]NVStorageSaveData done [13:10:19]OFDSenderStorePacket done [13:10:19]KKMCreateOFDPacket done [13:10:19]NVStorageSaveData kkm_last_timestamp [13:10:19]File name is /storage/kkm_last_timestamp [13:10:19]Write 4 bytes [13:10:19]NVStorageSaveData done [13:10:19]ExternCall_PrintAddStr [13:10:19]wPrintStart [13:10:19]Write to MH i2c: 01 00 00 1F 05 24 [13:10:19]Write i2c OK [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: 01 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: 01 07 00 [13:10:19]MH_I2C_Read... [13:10:19]Read from MH i2c: 01 07 00 1F 05 00 00 00 00 00 FF 0F 39 [13:10:19]RasterBufferAndPrint [13:10:19]line Счет N : (1)191640 [13:10:19]line ИНН: 02508201610067 [13:10:19]line Контрольно-Кассовый Чек [13:10:19]line ПРОДАЖА [13:10:19]line ТРК (МРК, ГНК) : 43 [13:10:19]line Товар: 2710124130 [13:10:19]line Аи-92-К-5 [13:10:19]line 15.020 * 64.40 [13:10:19]line = 967.29 [13:10:19]line НДС 12% НСП 1% [13:10:19]line > о реализуемом товаре [13:10:19]line ОКРУГЛЕНИЕ: -0.29 [13:10:19]line ИТОГО: 967.00 [13:10:19]line Внесено: 967.00 [13:10:19]line СДАЧА: 0.00 [13:10:19]line НСП 1% : 8.56 [13:10:19]line НДС 12% : 102.72 [13:10:19]line Наличными: 967.00 [13:10:19]line Безнал.: 0.00 [13:10:19]line Место: АЗС № 106 "Партнер Нефть" [13:10:19]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:10:19]line СНО: Общий режим [13:10:19]line Чек 73 22.04.2024 13:10 [13:10:19]line Смена: 373 ФФД: 1.0 [13:10:19]line ЗНМ: 0300000141 [13:10:19]line РНМ: 0000000000091573 [13:10:19]line Версия ККМ: 001 [13:10:19]line ФМ: 0000000000874652 [13:10:19]line ФД: 77054 [13:10:19]line ФПД: 69553009013665 [13:10:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T131018&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77054&fm=69553009013665&tin=02508201610067®Number=0000000000091573&sum=96700 [13:10:19]OFD Sender: Processing packet 77054 [packets to send 129, broken 128] [13:10:19]ProducePacketName [13:10:19]name=ofd_packets/00077054 [13:10:19]OFD Sender: To server: pG, [13:10:19]CommunicateWithHost lk.salyk.kg:30040 [13:10:19]ConnectInit lk.salyk.kg [13:10:19]written 0, free lines is 4095 [13:10:20]Connected sock=9 [13:10:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 C2 1C 07 01 49 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 3A 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 D9 79 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 79 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 28 00 00 00 00 07 04 06 00 BC 79 01 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 BA 61 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FE 2C 01 00 35 04 06 00 3F 42 12 65 33 A1 CC C0 11 C3 63 7E 15 8C [13:10:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 7B D2 47 00 0E A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FE 2C 01 00 F4 03 04 00 3C 09 26 66 B6 04 01 00 00 03 9E D1 88 1B B1 96 5D [13:10:20]CommunicateWithHost err = 0 [13:10:20]CheckOFDResponse [13:10:20]1017 (14) - 77093643461234 [13:10:20]1041 (16) - 0000000000874652 [13:10:20]1040 (4) - 77054 [13:10:20]1012 (4) - 22.04.2024 06:52 [13:10:20]1206 (1) - 0 [13:10:20]OFD Sender: Remove packet 77054 [13:10:20]ProducePacketName [13:10:20]name=ofd_packets/00077054 [13:10:20]NVStorageDeleteData [13:10:20]Write to MH i2c: 01 00 00 49 05 4E [13:10:20]Write i2c OK [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: 01 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: 01 07 00 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: 01 07 00 49 05 00 00 00 00 00 F1 0C 52 [13:10:20]RasterBufferAndPrint [13:10:20]line [13:10:20]line [13:10:20]line [13:10:20]line [13:10:20]line [13:10:20]written 0, free lines is 3322 [13:10:20]MH_Cut [13:10:20]Write to MH i2c: D1 01 00 50 05 01 27 [13:10:20]Write i2c OK [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: D1 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: D1 01 00 [13:10:20]MH_I2C_Read... [13:10:20]Read from MH i2c: D1 01 00 50 05 00 26 [13:10:20]Write to MH i2c: 01 00 00 51 05 56 [13:10:20]Write i2c OK [13:10:20]MH_I2C_Read... [13:10:20]OFD Sender: No OFD packet to send [13:10:21]*** Cut start [13:10:21]*** Partial cut [13:10:21]*** CUTSNS_PIN = 1 [13:10:21]*** CUTSNS_PIN = 0 [13:10:21]*** Brake cut motor [13:10:21]Read from MH i2c: 01 [13:10:21]MH_I2C_Read... [13:10:21]*** Stop cut motor [13:10:21]*** Cut end [13:10:21]Read from MH i2c: 01 07 00 [13:10:21]MH_I2C_Read... [13:10:21]Read from MH i2c: 01 07 00 51 05 00 00 00 00 00 FF 0F 6B [13:10:21]process_action close_receipt done [13:10:21]requested_data is exist [13:10:21]produce_requested_data [13:10:21]requested_item fm.sn is exist - process it [13:10:21]wFMCommunicate request_size=4 [13:10:21]MH_SAM_APDU [13:10:21]CAPDU: 80 11 00 00 [13:10:21]Write to MH i2c: E2 08 00 52 05 80 11 00 00 00 00 00 00 D1 [13:10:21]Write i2c OK [13:10:21]MH_I2C_Read... [13:10:21]Read from MH i2c: E2 [13:10:21]MH_I2C_Read... [13:10:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:21]Read from MH i2c: E2 17 00 [13:10:21]MH_I2C_Read... [13:10:21]Read from MH i2c: E2 17 00 52 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 24 [13:10:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:10:21]wFMCommunicate OK [13:10:21]requested_item fd.num is exist - process it [13:10:21]SAM_PROTO_GetFieldsCounters [13:10:21]wFMCommunicate request_size=4 [13:10:21]MH_SAM_APDU [13:10:21]CAPDU: 80 13 00 00 [13:10:21]Write to MH i2c: E2 08 00 53 05 80 13 00 00 00 00 00 00 D4 [13:10:21]Write i2c OK [13:10:21]MH_I2C_Read... [13:10:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:21]Read from MH i2c: E2 [13:10:21]MH_I2C_Read... [13:10:21]Read from MH i2c: E2 62 00 [13:10:21]MH_I2C_Read... [13:10:21]Read from MH i2c: E2 62 00 53 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FE 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [13:10:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FE 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:21]wFMCommunicate OK [13:10:21]SAM_PROTO_GetFieldsCounters done [13:10:21]requested_item shift.num is exist - process it [13:10:21]requested_item shift.opened is exist - process it [13:10:21]req_shift_opened [13:10:21]FM_GetShiftState [13:10:21]SAM_PROTO_GetShiftState [13:10:21]wFMCommunicate request_size=4 [13:10:21]MH_SAM_APDU [13:10:21]CAPDU: 80 13 01 00 [13:10:21]Write to MH i2c: E2 08 00 54 05 80 13 01 00 00 00 00 00 D6 [13:10:21]Write i2c OK [13:10:21]MH_I2C_Read... [13:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:22]Read from MH i2c: E2 [13:10:22]MH_I2C_Read... [13:10:22]Read from MH i2c: E2 0E 00 [13:10:22]MH_I2C_Read... [13:10:22]Read from MH i2c: E2 0E 00 54 05 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 FD [13:10:22]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:10:22]wFMCommunicate OK [13:10:22]SAM_PROTO_GetShiftState done [13:10:22]FM_GetShiftState done [13:10:22]req_shift_opened done [13:10:22]requested_item shift.open_date is exist - process it [13:10:22]req_shift_open_date [13:10:22]req_shift_open_date done [13:10:22]produce_requested_data done [13:10:22]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77054,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [13:10:22]process_action_free close_receipt [13:10:22]json_value_free [13:10:22]json_value_free done [13:10:22]process_json_proto returns [13:10:22]Send response to host [13:10:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77054,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [13:10:22]free response buf [13:10:22]execute_script done [13:10:22]execute_script returns [13:10:22]free content buf [13:10:22]Sock 10.Close socket [13:10:22]Sock 10.Thread stoped [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:00]OFD Sender: No OFD packet to send [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:11]accept exits with 8 [13:11:11]New connection [13:11:11]New thread 3067338084 created [13:11:11]Thread 3067481444 joined [13:11:11]Waiting for new connection... [13:11:11] Sock 8.Parse request [13:11:11]Sock 8.Check first char [13:11:11]Sock 8.First char is OK [13:11:11]request: POST /json_proto HTTP/1.0 [13:11:11]Method: POST [13:11:11]URL: /json_proto [13:11:11]Method is POST - this is cgi request [13:11:11]url: /json_proto [13:11:11]query_string will be loaded in cgi processing [13:11:11]execute_cgi json_proto POST (null) [13:11:11]execute_cgi path=json_proto method=POST [13:11:11]POST find Content-Length [13:11:11]Host: 172.17.62.5:8080 [13:11:11]Content-Length: 681 [13:11:11]Content-Type: application/json [13:11:11] [13:11:11]POST finish read [13:11:11]Found Content-Length = 681 [13:11:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "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:11:11]execute_script... [13:11: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)191641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "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:11:11]POST & json_proto [13:11:11]process_json_proto [13:11:11]json parsed OK: [13:11:11]protocol is kg_v1.0 [13:11:11]action value=close_receipt [13:11:11]process_action close_receipt [13:11:11]cmd_close_receipt [13:11:11]MH_GetDate [13:11:11]Write to MH i2c: F0 00 00 55 05 49 [13:11:11]Write i2c OK [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: F0 [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: F0 09 00 [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: F0 09 00 55 05 00 EF 61 26 66 F4 E9 65 64 D4 [13:11:11]GetLastDocTimeStamp 1713791418 [13:11:11]current date 1713791471 [13:11:11]FM_GetShiftState [13:11:11]SAM_PROTO_GetShiftState [13:11:11]wFMCommunicate request_size=4 [13:11:11]MH_SAM_APDU [13:11:11]CAPDU: 80 13 01 00 [13:11:11]Write to MH i2c: E2 08 00 56 05 80 13 01 00 00 00 00 00 D8 [13:11:11]Write i2c OK [13:11:11]MH_I2C_Read... [13:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:11]Read from MH i2c: E2 [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: E2 0E 00 [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: E2 0E 00 56 05 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 FF [13:11:11]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:11:11]wFMCommunicate OK [13:11:11]SAM_PROTO_GetShiftState done [13:11:11]FM_GetShiftState done [13:11:11]opened in 1713745124 [13:11:11]opened+sec_in_day 1713831524 [13:11:11]quantity*price = 50031 [13:11:11]sum+1 = 50032 [13:11:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 74 22.04.2024 13:11 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77055 ФПД: 213689111657024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T131111&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77055&fm=213689111657024&tin=02508201610067®Number=0000000000091573&sum=50000 [13:11:12]StoreToDocumentArchive [13:11:12]shift 373 fd 77055 [13:11:12]save to /storage/0373/doc_00077055 [13:11:12]save last doc name /storage/0373/doc_00077055 to /storage/kkm_last_doc_name [13:11:12]save OK [13:11:12]Clear old archive folders... [13:11:12]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:11:12]tlvbuf is 00B51B60 [13:11:12]SAM_PROTO_ClearQueue [13:11:12]wFMCommunicate request_size=4 [13:11:12]MH_SAM_APDU [13:11:12]CAPDU: 80 09 00 00 [13:11:12]Write to MH i2c: E2 08 00 63 05 80 09 00 00 00 00 00 00 DA [13:11:12]Write i2c OK [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: E2 [13:11:12]MH_I2C_Read... [13:11:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:12]Read from MH i2c: E2 03 00 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: E2 03 00 63 05 00 90 00 DC [13:11:12]RAPDU: 90 00 [13:11:12]wFMCommunicate OK [13:11:12]SAM_PROTO_ClearQueue done [13:11:12]KKMCreateOFDPacket [13:11:12]OFDProtocolAddRootSTLVToBuf [13:11:12]FM_MakeSignedData [13:11:12]FM_MakeSignedData [13:11:12]SAM_PROTO_SignData [13:11:12]wFMCommunicate request_size=4 [13:11:12]MH_SAM_APDU [13:11:12]CAPDU: 80 0D 01 02 [13:11:12]Write to MH i2c: E2 08 00 64 05 80 0D 01 02 00 00 00 00 E2 [13:11:12]Write i2c OK [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: E2 [13:11:12]MH_I2C_Read... [13:11:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:12]Read from MH i2c: E2 03 00 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: E2 03 00 64 05 00 90 00 DD [13:11:12]RAPDU: 90 00 [13:11:12]wFMCommunicate OK [13:11:12]wFMCommunicate request_size=255 [13:11:12]MH_SAM_APDU [13:11:12]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 EF 61 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FF 2C 01 00 35 04 06 00 C2 59 [13:11:12]Write to MH i2c: E2 02 01 65 05 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 EF 61 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FF 2C 01 00 35 04 06 00 C2 59 00 00 30 [13:11:12]Write i2c OK [13:11:12]MH_I2C_Read... [13:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:12]Read from MH i2c: E2 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: E2 03 00 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: E2 03 00 65 05 00 90 00 DE [13:11:12]RAPDU: 90 00 [13:11:12]wFMCommunicate OK [13:11:12]wFMCommunicate request_size=9 [13:11:12]MH_SAM_APDU [13:11:12]CAPDU: 80 0D 02 02 04 5F 97 BA 40 [13:11:12]Write to MH i2c: E2 0C 00 66 05 80 0D 02 02 04 00 5F 97 BA 40 00 00 DD [13:11:12]Write i2c OK [13:11:12]MH_I2C_Read... [13:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:12]Read from MH i2c: E2 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: E2 03 00 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: E2 03 00 66 05 00 90 00 DF [13:11:12]RAPDU: 90 00 [13:11:12]wFMCommunicate OK [13:11:12]wFMCommunicate request_size=4 [13:11:12]MH_SAM_APDU [13:11:12]CAPDU: 80 0D 03 02 [13:11:12]Write to MH i2c: E2 08 00 67 05 80 0D 03 02 00 00 00 00 E7 [13:11:12]Write i2c OK [13:11:12]MH_I2C_Read... [13:11:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:12]Read from MH i2c: E2 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: E2 0B 00 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: E2 0B 00 67 05 00 26 E2 0F 1A 24 3F 9C 67 90 00 7F [13:11:12]RAPDU: 26 E2 0F 1A 24 3F 9C 67 90 00 [13:11:12]wFMCommunicate OK [13:11:12]SAM_PROTO_SignData done [13:11:12]FM_MakeSignedData done [13:11:12]CreateOFDProtocolMessage [13:11:12]wFMCommunicate request_size=4 [13:11:12]MH_SAM_APDU [13:11:12]CAPDU: 80 11 00 00 [13:11:12]Write to MH i2c: E2 08 00 68 05 80 11 00 00 00 00 00 00 E7 [13:11:12]Write i2c OK [13:11:12]MH_I2C_Read... [13:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:12]Read from MH i2c: E2 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: E2 17 00 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: E2 17 00 68 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3A [13:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:11:12]wFMCommunicate OK [13:11:12]CreateOFDProtocolMessage done [13:11:12]OFDSenderStorePacket 77055 [13:11:12]StoreOFDPacket docnum=77055 [13:11:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 FA B5 06 01 70 C4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 EF 61 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FF 2C 01 00 35 04 06 00 C2 59 5F 97 BA 40 26 E2 0F 1A 24 3F 9C 67 [13:11:12]CheckFolder [13:11:12]dirname=/storage/ofd_packets [13:11:12]CheckFolder done [13:11:12]ProducePacketName [13:11:12]name=ofd_packets/00077055 [13:11:12]NVStorageSaveData ofd_packets/00077055 [13:11:12]File name is /storage/ofd_packets/00077055 [13:11:12]Write 300 bytes [13:11:12]NVStorageSaveData done [13:11:12]OFDSenderStorePacket done [13:11:12]KKMCreateOFDPacket done [13:11:12]NVStorageSaveData kkm_last_timestamp [13:11:12]File name is /storage/kkm_last_timestamp [13:11:12]Write 4 bytes [13:11:12]NVStorageSaveData done [13:11:12]ExternCall_PrintAddStr [13:11:12]wPrintStart [13:11:12]Write to MH i2c: 01 00 00 69 05 6E [13:11:12]Write i2c OK [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: 01 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: 01 07 00 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: 01 07 00 69 05 00 00 00 00 00 FF 0F 83 [13:11:12]RasterBufferAndPrint [13:11:12]line Счет N : (1)191641 [13:11:12]line ИНН: 02508201610067 [13:11:12]line Контрольно-Кассовый Чек [13:11:12]line ПРОДАЖА [13:11:12]line ТРК (МРК, ГНК) : 71 [13:11:12]line Товар: 2711190000 [13:11:12]line ГАЗ-К-5 [13:11:12]line 15.300 * 32.70 [13:11:12]line = 500.31 [13:11:12]line НДС 12% НСП 1% [13:11:12]line > о реализуемом товаре [13:11:12]line ОКРУГЛЕНИЕ: -0.31 [13:11:12]line ИТОГО: 500.00 [13:11:12]line Внесено: 500.00 [13:11:12]line СДАЧА: 0.00 [13:11:12]line НСП 1% : 4.43 [13:11:12]line НДС 12% : 53.13 [13:11:12]line Наличными: 500.00 [13:11:12]line Безнал.: 0.00 [13:11:12]line Место: АЗС № 106 "Партнер Нефть" [13:11:12]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:11:12]line СНО: Общий режим [13:11:12]line Чек 74 22.04.2024 13:11 [13:11:12]line Смена: 373 ФФД: 1.0 [13:11:12]line ЗНМ: 0300000141 [13:11:12]line РНМ: 0000000000091573 [13:11:12]line Версия ККМ: 001 [13:11:12]line ФМ: 0000000000874652 [13:11:12]line ФД: 77055 [13:11:12]line ФПД: 213689111657024 [13:11:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T131111&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77055&fm=213689111657024&tin=02508201610067®Number=0000000000091573&sum=50000 [13:11:13]OFD Sender: Processing packet 77055 [packets to send 129, broken 128] [13:11:13]ProducePacketName [13:11:13]name=ofd_packets/00077055 [13:11:13]OFD Sender: To server: pG, [13:11:13]CommunicateWithHost lk.salyk.kg:30040 [13:11:13]ConnectInit lk.salyk.kg [13:11:13]written 0, free lines is 4095 [13:11:13]Connected sock=10 [13:11:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 FA B5 06 01 70 C4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 EF 61 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FF 2C 01 00 35 04 06 00 C2 59 5F 97 BA 40 26 E2 0F 1A 24 3F 9C 67 [13:11:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 89 DA 47 00 9B 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 FF 2C 01 00 F4 03 04 00 72 09 26 66 B6 04 01 00 00 F4 74 5A 54 3A 58 C5 62 [13:11:13]CommunicateWithHost err = 0 [13:11:13]CheckOFDResponse [13:11:13]1017 (14) - 77093643461234 [13:11:13]1041 (16) - 0000000000874652 [13:11:13]1040 (4) - 77055 [13:11:13]1012 (4) - 22.04.2024 06:53 [13:11:13]1206 (1) - 0 [13:11:13]OFD Sender: Remove packet 77055 [13:11:13]ProducePacketName [13:11:13]name=ofd_packets/00077055 [13:11:13]NVStorageDeleteData [13:11:13]Write to MH i2c: 01 00 00 93 05 98 [13:11:13]Write i2c OK [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: 01 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: 01 07 00 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: 01 07 00 93 05 00 00 00 00 00 01 0D AD [13:11:13]RasterBufferAndPrint [13:11:13]line [13:11:13]line [13:11:13]line [13:11:13]line [13:11:13]line [13:11:13]written 0, free lines is 3335 [13:11:13]MH_Cut [13:11:13]Write to MH i2c: D1 01 00 9A 05 01 71 [13:11:13]Write i2c OK [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: D1 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: D1 01 00 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: D1 01 00 9A 05 00 70 [13:11:13]Write to MH i2c: 01 00 00 9B 05 A0 [13:11:13]Write i2c OK [13:11:13]MH_I2C_Read... [13:11:14]OFD Sender: No OFD packet to send [13:11:14]*** Cut start [13:11:14]*** Partial cut [13:11:14]*** CUTSNS_PIN = 1 [13:11:14]*** CUTSNS_PIN = 0 [13:11:14]*** Brake cut motor [13:11:15]Read from MH i2c: 01 [13:11:15]MH_I2C_Read... [13:11:15]*** Stop cut motor [13:11:15]*** Cut end [13:11:15]Read from MH i2c: 01 07 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: 01 07 00 9B 05 00 00 00 00 00 FF 0F B5 [13:11:15]process_action close_receipt done [13:11:15]requested_data is exist [13:11:15]produce_requested_data [13:11:15]requested_item fm.sn is exist - process it [13:11:15]wFMCommunicate request_size=4 [13:11:15]MH_SAM_APDU [13:11:15]CAPDU: 80 11 00 00 [13:11:15]Write to MH i2c: E2 08 00 9C 05 80 11 00 00 00 00 00 00 1B [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:15]Read from MH i2c: E2 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 17 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 17 00 9C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6E [13:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:11:15]wFMCommunicate OK [13:11:15]requested_item fd.num is exist - process it [13:11:15]SAM_PROTO_GetFieldsCounters [13:11:15]wFMCommunicate request_size=4 [13:11:15]MH_SAM_APDU [13:11:15]CAPDU: 80 13 00 00 [13:11:15]Write to MH i2c: E2 08 00 9D 05 80 13 00 00 00 00 00 00 1E [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:15]Read from MH i2c: E2 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 62 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 62 00 9D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [13:11:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 FF 2C 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:15]wFMCommunicate OK [13:11:15]SAM_PROTO_GetFieldsCounters done [13:11:15]requested_item shift.num is exist - process it [13:11:15]requested_item shift.opened is exist - process it [13:11:15]req_shift_opened [13:11:15]FM_GetShiftState [13:11:15]SAM_PROTO_GetShiftState [13:11:15]wFMCommunicate request_size=4 [13:11:15]MH_SAM_APDU [13:11:15]CAPDU: 80 13 01 00 [13:11:15]Write to MH i2c: E2 08 00 9E 05 80 13 01 00 00 00 00 00 20 [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:15]Read from MH i2c: E2 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 0E 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 0E 00 9E 05 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 47 [13:11:15]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:11:15]wFMCommunicate OK [13:11:15]SAM_PROTO_GetShiftState done [13:11:15]FM_GetShiftState done [13:11:15]req_shift_opened done [13:11:15]requested_item shift.open_date is exist - process it [13:11:15]req_shift_open_date [13:11:15]req_shift_open_date done [13:11:15]produce_requested_data done [13:11:15]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77055,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [13:11:15]process_action_free close_receipt [13:11:15]json_value_free [13:11:15]json_value_free done [13:11:15]process_json_proto returns [13:11:15]Send response to host [13:11:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77055,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [13:11:15]free response buf [13:11:15]execute_script done [13:11:15]execute_script returns [13:11:15]free content buf [13:11:15]Sock 8.Close socket [13:11:15]Sock 8.Thread stoped [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:39]OFD Sender: No OFD packet to send [13:19:44]OFD Sender: No OFD packet to send [13:19:49]OFD Sender: No OFD packet to send [13:19:54]OFD Sender: No OFD packet to send [13:19:59]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:02]accept exits with 9 [13:27:02]New connection [13:27:02]New thread 3067481444 created [13:27:02]Thread 3067338084 joined [13:27:02]Waiting for new connection... [13:27:02] Sock 9.Parse request [13:27:02]Sock 9.Check first char [13:27:02]Sock 9.First char is OK [13:27:02]request: POST /json_proto HTTP/1.0 [13:27:02]Method: POST [13:27:02]URL: /json_proto [13:27:02]Method is POST - this is cgi request [13:27:02]url: /json_proto [13:27:02]query_string will be loaded in cgi processing [13:27:02]execute_cgi json_proto POST (null) [13:27:02]execute_cgi path=json_proto method=POST [13:27:02]POST find Content-Length [13:27:02]Host: 172.17.62.5:8080 [13:27:02]Content-Length: 978 [13:27:02]Content-Type: application/json [13:27:02] [13:27:02]POST finish read [13:27:02]Found Content-Length = 978 [13:27:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.87 \u0441\u043E\u043C", "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:27:02]execute_script... [13:27: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)191642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.87 \u0441\u043E\u043C", "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:27:02]POST & json_proto [13:27:02]process_json_proto [13:27:02]json parsed OK: [13:27:02]protocol is kg_v1.0 [13:27:02]action value=close_receipt [13:27:02]process_action close_receipt [13:27:02]cmd_close_receipt [13:27:02]MH_GetDate [13:27:02]Write to MH i2c: F0 00 00 9F 05 93 [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: F0 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: F0 09 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: F0 09 00 9F 05 00 A6 65 26 66 F4 E9 65 64 D9 [13:27:02]GetLastDocTimeStamp 1713791471 [13:27:02]current date 1713792422 [13:27:02]FM_GetShiftState [13:27:02]SAM_PROTO_GetShiftState [13:27:02]wFMCommunicate request_size=4 [13:27:02]MH_SAM_APDU [13:27:02]CAPDU: 80 13 01 00 [13:27:02]Write to MH i2c: E2 08 00 A0 05 80 13 01 00 00 00 00 00 22 [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:02]Read from MH i2c: E2 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 0E 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 0E 00 A0 05 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 49 [13:27:02]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:27:02]wFMCommunicate OK [13:27:02]SAM_PROTO_GetShiftState done [13:27:02]FM_GetShiftState done [13:27:02]opened in 1713745124 [13:27:02]opened+sec_in_day 1713831524 [13:27:02]quantity*price = 150055 [13:27:02]sum+1 = 150056 [13:27:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 75 22.04.2024 13:27 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 20.87 сом ФМ: 0000000000874652 ФД: 77056 ФПД: 159620832614206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T132702&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77056&fm=159620832614206&tin=02508201610067®Number=0000000000091573&sum=150000 [13:27:03]StoreToDocumentArchive [13:27:03]shift 373 fd 77056 [13:27:03]save to /storage/0373/doc_00077056 [13:27:03]save last doc name /storage/0373/doc_00077056 to /storage/kkm_last_doc_name [13:27:03]save OK [13:27:03]Clear old archive folders... [13:27:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:27:03]tlvbuf is 00B554F0 [13:27:03]SAM_PROTO_ClearQueue [13:27:03]wFMCommunicate request_size=4 [13:27:03]MH_SAM_APDU [13:27:03]CAPDU: 80 09 00 00 [13:27:03]Write to MH i2c: E2 08 00 AD 05 80 09 00 00 00 00 00 00 24 [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:03]Read from MH i2c: E2 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 03 00 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 03 00 AD 05 00 90 00 26 [13:27:03]RAPDU: 90 00 [13:27:03]wFMCommunicate OK [13:27:03]SAM_PROTO_ClearQueue done [13:27:03]KKMCreateOFDPacket [13:27:03]OFDProtocolAddRootSTLVToBuf [13:27:03]FM_MakeSignedData [13:27:03]FM_MakeSignedData [13:27:03]SAM_PROTO_SignData [13:27:03]wFMCommunicate request_size=4 [13:27:03]MH_SAM_APDU [13:27:03]CAPDU: 80 0D 01 02 [13:27:03]Write to MH i2c: E2 08 00 AE 05 80 0D 01 02 00 00 00 00 2C [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:03]Read from MH i2c: E2 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 03 00 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 03 00 AE 05 00 90 00 27 [13:27:03]RAPDU: 90 00 [13:27:03]wFMCommunicate OK [13:27:03]wFMCommunicate request_size=255 [13:27:03]MH_SAM_APDU [13:27:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 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 4B 00 00 00 F4 03 04 00 A6 65 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 00 2D 01 00 35 04 06 00 91 2C 9F 06 [13:27:03]Write to MH i2c: E2 02 01 AF 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 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 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 4B 00 00 00 F4 03 04 00 A6 65 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 00 2D 01 00 35 04 06 00 91 2C 9F 06 00 00 15 [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:03]Read from MH i2c: E2 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 03 00 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 03 00 AF 05 00 90 00 28 [13:27:03]RAPDU: 90 00 [13:27:03]wFMCommunicate OK [13:27:03]wFMCommunicate request_size=7 [13:27:03]MH_SAM_APDU [13:27:03]CAPDU: 80 0D 02 02 02 D7 3E [13:27:03]Write to MH i2c: E2 0A 00 B0 05 80 0D 02 02 02 00 D7 3E 00 00 48 [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 B0 05 00 90 00 29 [13:27:04]RAPDU: 90 00 [13:27:04]wFMCommunicate OK [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 0D 03 02 [13:27:04]Write to MH i2c: E2 08 00 B1 05 80 0D 03 02 00 00 00 00 31 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 0B 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 0B 00 B1 05 00 ED A5 CA 1C 15 87 B5 28 90 00 23 [13:27:04]RAPDU: ED A5 CA 1C 15 87 B5 28 90 00 [13:27:04]wFMCommunicate OK [13:27:04]SAM_PROTO_SignData done [13:27:04]FM_MakeSignedData done [13:27:04]CreateOFDProtocolMessage [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 11 00 00 [13:27:04]Write to MH i2c: E2 08 00 B2 05 80 11 00 00 00 00 00 00 31 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 17 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 17 00 B2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 84 [13:27:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:27:04]wFMCommunicate OK [13:27:04]CreateOFDProtocolMessage done [13:27:04]OFDSenderStorePacket 77056 [13:27:04]StoreOFDPacket docnum=77056 [13:27:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 CB E0 04 01 9D 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 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 4B 00 00 00 F4 03 04 00 A6 65 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 00 2D 01 00 35 04 06 00 91 2C 9F 06 D7 3E ED A5 CA 1C 15 87 B5 28 [13:27:04]CheckFolder [13:27:04]dirname=/storage/ofd_packets [13:27:04]CheckFolder done [13:27:04]ProducePacketName [13:27:04]name=ofd_packets/00077056 [13:27:04]NVStorageSaveData ofd_packets/00077056 [13:27:04]File name is /storage/ofd_packets/00077056 [13:27:04]Write 298 bytes [13:27:04]NVStorageSaveData done [13:27:04]OFDSenderStorePacket done [13:27:04]KKMCreateOFDPacket done [13:27:04]NVStorageSaveData kkm_last_timestamp [13:27:04]File name is /storage/kkm_last_timestamp [13:27:04]Write 4 bytes [13:27:04]NVStorageSaveData done [13:27:04]ExternCall_PrintAddStr [13:27:04]wPrintStart [13:27:04]Write to MH i2c: 01 00 00 B3 05 B8 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 07 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 07 00 B3 05 00 00 00 00 00 FF 0F CD [13:27:04]RasterBufferAndPrint [13:27:04]line Счет N : (1)191642 [13:27:04]line ИНН: 02508201610067 [13:27:04]line Контрольно-Кассовый Чек [13:27:04]line ПРОДАЖА [13:27:04]line ТРК (МРК, ГНК) : 51 [13:27:04]line Товар: 2710194210 [13:27:04]line ДТ-К-5 [13:27:04]line 20.870 * 71.90 [13:27:04]line = 1500.55 [13:27:04]line НДС 12% НСП 1% [13:27:04]line > о реализуемом товаре [13:27:04]line ОКРУГЛЕНИЕ: -0.55 [13:27:04]line ИТОГО: 1500.00 [13:27:04]line Внесено: 1500.00 [13:27:04]line СДАЧА: 0.00 [13:27:04]line НСП 1% : 13.28 [13:27:04]line НДС 12% : 159.35 [13:27:04]line Наличными: 1500.00 [13:27:04]line Безнал.: 0.00 [13:27:04]line Место: АЗС № 106 "Партнер Нефть" [13:27:04]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:27:04]line СНО: Общий режим [13:27:04]line Чек 75 22.04.2024 13:27 [13:27:04]line Смена: 373 ФФД: 1.0 [13:27:04]line ЗНМ: 0300000141 [13:27:04]line РНМ: 0000000000091573 [13:27:04]line Версия ККМ: 001 [13:27:04]line [13:27:04]line Дисконтная программа [13:27:04]line ДТ [13:27:04]line номер 106 [13:27:04]line сэкономлено 20.87 сом [13:27:04]line ФМ: 0000000000874652 [13:27:04]line ФД: 77056 [13:27:04]line ФПД: 159620832614206 [13:27:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T132702&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77056&fm=159620832614206&tin=02508201610067®Number=0000000000091573&sum=150000 [13:27:04]OFD Sender: Processing packet 77056 [packets to send 129, broken 128] [13:27:04]ProducePacketName [13:27:04]name=ofd_packets/00077056 [13:27:04]OFD Sender: To server: pG, [13:27:04]CommunicateWithHost lk.salyk.kg:30040 [13:27:04]ConnectInit lk.salyk.kg [13:27:04]written 0, free lines is 4095 [13:27:04]Connected sock=10 [13:27:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 CB E0 04 01 9D 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 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 4B 00 00 00 F4 03 04 00 A6 65 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 00 2D 01 00 35 04 06 00 91 2C 9F 06 D7 3E ED A5 CA 1C 15 87 B5 28 [13:27:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 6B 76 47 00 98 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 00 2D 01 00 F4 03 04 00 29 0D 26 66 B6 04 01 00 00 3F 1E A6 5A E5 36 93 D8 [13:27:04]CommunicateWithHost err = 0 [13:27:04]CheckOFDResponse [13:27:04]1017 (14) - 77093643461234 [13:27:04]1041 (16) - 0000000000874652 [13:27:04]1040 (4) - 77056 [13:27:04]1012 (4) - 22.04.2024 07:09 [13:27:04]1206 (1) - 0 [13:27:04]OFD Sender: Remove packet 77056 [13:27:04]ProducePacketName [13:27:04]name=ofd_packets/00077056 [13:27:04]NVStorageDeleteData [13:27:04]Write to MH i2c: 01 00 00 E2 05 E7 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 07 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 07 00 E2 05 00 00 00 00 00 BF 0C B9 [13:27:04]RasterBufferAndPrint [13:27:04]line [13:27:04]line [13:27:04]line [13:27:04]line [13:27:04]line [13:27:04]written 0, free lines is 3269 [13:27:04]MH_Cut [13:27:04]Write to MH i2c: D1 01 00 E9 05 01 C0 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: D1 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: D1 01 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: D1 01 00 E9 05 00 BF [13:27:04]Write to MH i2c: 01 00 00 EA 05 EF [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:05]OFD Sender: No OFD packet to send [13:27:05]*** Cut start [13:27:05]*** Partial cut [13:27:05]*** CUTSNS_PIN = 1 [13:27:05]*** CUTSNS_PIN = 0 [13:27:06]*** Brake cut motor [13:27:06]Read from MH i2c: 01 [13:27:06]MH_I2C_Read... [13:27:06]*** Stop cut motor [13:27:06]*** Cut end [13:27:06]Read from MH i2c: 01 07 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: 01 07 00 EA 05 00 00 00 00 00 FF 0F 04 [13:27:06]process_action close_receipt done [13:27:06]requested_data is exist [13:27:06]produce_requested_data [13:27:06]requested_item fm.sn is exist - process it [13:27:06]wFMCommunicate request_size=4 [13:27:06]MH_SAM_APDU [13:27:06]CAPDU: 80 11 00 00 [13:27:06]Write to MH i2c: E2 08 00 EB 05 80 11 00 00 00 00 00 00 6A [13:27:06]Write i2c OK [13:27:06]MH_I2C_Read... [13:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:06]Read from MH i2c: E2 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 17 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 17 00 EB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 BD [13:27:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:27:06]wFMCommunicate OK [13:27:06]requested_item fd.num is exist - process it [13:27:06]SAM_PROTO_GetFieldsCounters [13:27:06]wFMCommunicate request_size=4 [13:27:06]MH_SAM_APDU [13:27:06]CAPDU: 80 13 00 00 [13:27:06]Write to MH i2c: E2 08 00 EC 05 80 13 00 00 00 00 00 00 6D [13:27:06]Write i2c OK [13:27:06]MH_I2C_Read... [13:27:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:06]Read from MH i2c: E2 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 62 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 62 00 EC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 00 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [13:27:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 00 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:27:06]wFMCommunicate OK [13:27:06]SAM_PROTO_GetFieldsCounters done [13:27:06]requested_item shift.num is exist - process it [13:27:06]requested_item shift.opened is exist - process it [13:27:06]req_shift_opened [13:27:06]FM_GetShiftState [13:27:06]SAM_PROTO_GetShiftState [13:27:06]wFMCommunicate request_size=4 [13:27:06]MH_SAM_APDU [13:27:06]CAPDU: 80 13 01 00 [13:27:06]Write to MH i2c: E2 08 00 ED 05 80 13 01 00 00 00 00 00 6F [13:27:06]Write i2c OK [13:27:06]MH_I2C_Read... [13:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:06]Read from MH i2c: E2 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 0E 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 0E 00 ED 05 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 96 [13:27:06]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:27:06]wFMCommunicate OK [13:27:06]SAM_PROTO_GetShiftState done [13:27:06]FM_GetShiftState done [13:27:06]req_shift_opened done [13:27:06]requested_item shift.open_date is exist - process it [13:27:06]req_shift_open_date [13:27:06]req_shift_open_date done [13:27:06]produce_requested_data done [13:27:06]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77056,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [13:27:06]process_action_free close_receipt [13:27:06]json_value_free [13:27:06]json_value_free done [13:27:06]process_json_proto returns [13:27:06]Send response to host [13:27:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77056,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [13:27:06]free response buf [13:27:06]execute_script done [13:27:06]execute_script returns [13:27:06]free content buf [13:27:06]Sock 9.Close socket [13:27:06]Sock 9.Thread stoped [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:02]accept exits with 8 [13:33:02]New connection [13:33:02]New thread 3067338084 created [13:33:02]Thread 3067481444 joined [13:33:02]Waiting for new connection... [13:33:02] Sock 8.Parse request [13:33:02]Sock 8.Check first char [13:33:02]Sock 8.First char is OK [13:33:02]request: POST /json_proto HTTP/1.0 [13:33:02]Method: POST [13:33:02]URL: /json_proto [13:33:02]Method is POST - this is cgi request [13:33:02]url: /json_proto [13:33:02]query_string will be loaded in cgi processing [13:33:02]execute_cgi json_proto POST (null) [13:33:02]execute_cgi path=json_proto method=POST [13:33:02]POST find Content-Length [13:33:02]Host: 172.17.62.5:8080 [13:33:02]Content-Length: 986 [13:33:02]Content-Type: application/json [13:33:02] [13:33:02]POST finish read [13:33:02]Found Content-Length = 986 [13:33:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 15.780, "sum" : 500.23, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 15.78 \u0441\u043E\u043C", "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:33:02]execute_script... [13:33: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)191643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 15.780, "sum" : 500.23, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 15.78 \u0441\u043E\u043C", "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:33:02]POST & json_proto [13:33:02]process_json_proto [13:33:02]json parsed OK: [13:33:02]protocol is kg_v1.0 [13:33:02]action value=close_receipt [13:33:02]process_action close_receipt [13:33:02]cmd_close_receipt [13:33:02]MH_GetDate [13:33:02]Write to MH i2c: F0 00 00 EE 05 E2 [13:33:02]Write i2c OK [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: F0 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: F0 09 00 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: F0 09 00 EE 05 00 0F 67 26 66 F4 E9 65 64 93 [13:33:02]GetLastDocTimeStamp 1713792422 [13:33:02]current date 1713792783 [13:33:02]FM_GetShiftState [13:33:02]SAM_PROTO_GetShiftState [13:33:02]wFMCommunicate request_size=4 [13:33:02]MH_SAM_APDU [13:33:02]CAPDU: 80 13 01 00 [13:33:02]Write to MH i2c: E2 08 00 EF 05 80 13 01 00 00 00 00 00 71 [13:33:02]Write i2c OK [13:33:02]MH_I2C_Read... [13:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:03]Read from MH i2c: E2 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: E2 0E 00 [13:33:03]MH_I2C_Read... [13:33:03]Read from MH i2c: E2 0E 00 EF 05 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 98 [13:33:03]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:33:03]wFMCommunicate OK [13:33:03]SAM_PROTO_GetShiftState done [13:33:03]FM_GetShiftState done [13:33:03]opened in 1713745124 [13:33:03]opened+sec_in_day 1713831524 [13:33:03]quantity*price = 50022 [13:33:03]sum+1 = 50024 [13:33:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 76 22.04.2024 13:33 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 15.78 сом ФМ: 0000000000874652 ФД: 77057 ФПД: 241435271111216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T133303&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77057&fm=241435271111216&tin=02508201610067®Number=0000000000091573&sum=50000 [13:33:04]StoreToDocumentArchive [13:33:04]shift 373 fd 77057 [13:33:04]save to /storage/0373/doc_00077057 [13:33:04]save last doc name /storage/0373/doc_00077057 to /storage/kkm_last_doc_name [13:33:04]save OK [13:33:04]Clear old archive folders... [13:33:04]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:33:04]tlvbuf is 00B72C10 [13:33:04]SAM_PROTO_ClearQueue [13:33:04]wFMCommunicate request_size=4 [13:33:04]MH_SAM_APDU [13:33:04]CAPDU: 80 09 00 00 [13:33:04]Write to MH i2c: E2 08 00 FC 05 80 09 00 00 00 00 00 00 73 [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:04]Read from MH i2c: E2 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 03 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 03 00 FC 05 00 90 00 75 [13:33:04]RAPDU: 90 00 [13:33:04]wFMCommunicate OK [13:33:04]SAM_PROTO_ClearQueue done [13:33:04]KKMCreateOFDPacket [13:33:04]OFDProtocolAddRootSTLVToBuf [13:33:04]FM_MakeSignedData [13:33:04]FM_MakeSignedData [13:33:04]SAM_PROTO_SignData [13:33:04]wFMCommunicate request_size=4 [13:33:04]MH_SAM_APDU [13:33:04]CAPDU: 80 0D 01 02 [13:33:04]Write to MH i2c: E2 08 00 FD 05 80 0D 01 02 00 00 00 00 7B [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:04]Read from MH i2c: E2 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 03 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 03 00 FD 05 00 90 00 76 [13:33:04]RAPDU: 90 00 [13:33:04]wFMCommunicate OK [13:33:04]wFMCommunicate request_size=255 [13:33:04]MH_SAM_APDU [13:33:04]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 0F 67 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 01 2D 01 00 35 04 06 00 DB 95 [13:33:04]Write to MH i2c: E2 02 01 FE 05 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 0F 67 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 01 2D 01 00 35 04 06 00 DB 95 00 00 BE [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:04]Read from MH i2c: E2 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 03 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 03 00 FE 05 00 90 00 77 [13:33:04]RAPDU: 90 00 [13:33:04]wFMCommunicate OK [13:33:04]wFMCommunicate request_size=9 [13:33:04]MH_SAM_APDU [13:33:04]CAPDU: 80 0D 02 02 04 87 92 22 30 [13:33:04]Write to MH i2c: E2 0C 00 FF 05 80 0D 02 02 04 00 87 92 22 30 00 00 F1 [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:04]Read from MH i2c: E2 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 03 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [13:33:04]RAPDU: 90 00 [13:33:04]wFMCommunicate OK [13:33:04]wFMCommunicate request_size=4 [13:33:04]MH_SAM_APDU [13:33:04]CAPDU: 80 0D 03 02 [13:33:04]Write to MH i2c: E2 08 00 00 06 80 0D 03 02 00 00 00 00 81 [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:04]Read from MH i2c: E2 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 0B 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 0B 00 00 06 00 F1 7D 4D 98 CF A3 23 F2 90 00 5C [13:33:04]RAPDU: F1 7D 4D 98 CF A3 23 F2 90 00 [13:33:04]wFMCommunicate OK [13:33:04]SAM_PROTO_SignData done [13:33:04]FM_MakeSignedData done [13:33:04]CreateOFDProtocolMessage [13:33:04]wFMCommunicate request_size=4 [13:33:04]MH_SAM_APDU [13:33:04]CAPDU: 80 11 00 00 [13:33:04]Write to MH i2c: E2 08 00 01 06 80 11 00 00 00 00 00 00 81 [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:04]Read from MH i2c: E2 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 17 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 17 00 01 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D4 [13:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:33:04]wFMCommunicate OK [13:33:04]CreateOFDProtocolMessage done [13:33:04]OFDSenderStorePacket 77057 [13:33:04]StoreOFDPacket docnum=77057 [13:33:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 8A 5F 06 01 E8 E7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 0F 67 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 01 2D 01 00 35 04 06 00 DB 95 87 92 22 30 F1 7D 4D 98 CF A3 23 F2 [13:33:04]CheckFolder [13:33:04]dirname=/storage/ofd_packets [13:33:04]CheckFolder done [13:33:04]ProducePacketName [13:33:04]name=ofd_packets/00077057 [13:33:04]NVStorageSaveData ofd_packets/00077057 [13:33:04]File name is /storage/ofd_packets/00077057 [13:33:04]Write 300 bytes [13:33:04]NVStorageSaveData done [13:33:04]OFDSenderStorePacket done [13:33:04]KKMCreateOFDPacket done [13:33:04]NVStorageSaveData kkm_last_timestamp [13:33:04]File name is /storage/kkm_last_timestamp [13:33:04]Write 4 bytes [13:33:04]NVStorageSaveData done [13:33:04]ExternCall_PrintAddStr [13:33:04]wPrintStart [13:33:04]Write to MH i2c: 01 00 00 02 06 08 [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: 01 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: 01 07 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: 01 07 00 02 06 00 00 00 00 00 FF 0F 1D [13:33:04]RasterBufferAndPrint [13:33:04]line Счет N : (1)191643 [13:33:04]line ИНН: 02508201610067 [13:33:04]line Контрольно-Кассовый Чек [13:33:04]line ПРОДАЖА [13:33:04]line ТРК (МРК, ГНК) : 71 [13:33:04]line Товар: 2711190000 [13:33:04]line ГАЗ-К-5 [13:33:04]line 15.780 * 31.70 [13:33:04]line = 500.23 [13:33:04]line НДС 12% НСП 1% [13:33:04]line > о реализуемом товаре [13:33:04]line ОКРУГЛЕНИЕ: -0.23 [13:33:04]line ИТОГО: 500.00 [13:33:04]line Внесено: 500.00 [13:33:04]line СДАЧА: 0.00 [13:33:04]line НСП 1% : 4.43 [13:33:04]line НДС 12% : 53.12 [13:33:04]line Наличными: 500.00 [13:33:04]line Безнал.: 0.00 [13:33:04]line Место: АЗС № 106 "Партнер Нефть" [13:33:04]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:33:04]line СНО: Общий режим [13:33:04]line Чек 76 22.04.2024 13:33 [13:33:04]line Смена: 373 ФФД: 1.0 [13:33:04]line ЗНМ: 0300000141 [13:33:04]line РНМ: 0000000000091573 [13:33:04]line Версия ККМ: 001 [13:33:04]line [13:33:04]line Дисконтная программа [13:33:04]line СУГ [13:33:04]line номер 106 [13:33:04]line сэкономлено 15.78 сом [13:33:04]line ФМ: 0000000000874652 [13:33:04]line ФД: 77057 [13:33:04]line ФПД: 241435271111216 [13:33:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T133303&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77057&fm=241435271111216&tin=02508201610067®Number=0000000000091573&sum=50000 [13:33:04]OFD Sender: Processing packet 77057 [packets to send 129, broken 128] [13:33:04]ProducePacketName [13:33:04]name=ofd_packets/00077057 [13:33:05]OFD Sender: To server: pG, [13:33:05]CommunicateWithHost lk.salyk.kg:30040 [13:33:05]ConnectInit lk.salyk.kg [13:33:05]written 0, free lines is 4095 [13:33:05]Connected sock=10 [13:33:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 8A 5F 06 01 E8 E7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 67 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 0F 67 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 01 2D 01 00 35 04 06 00 DB 95 87 92 22 30 F1 7D 4D 98 CF A3 23 F2 [13:33:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 84 3C 47 00 79 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 01 2D 01 00 F4 03 04 00 91 0E 26 66 B6 04 01 00 00 16 EA FD 17 5D D3 E1 27 [13:33:05]CommunicateWithHost err = 0 [13:33:05]CheckOFDResponse [13:33:05]1017 (14) - 77093643461234 [13:33:05]1041 (16) - 0000000000874652 [13:33:05]1040 (4) - 77057 [13:33:05]1012 (4) - 22.04.2024 07:15 [13:33:05]1206 (1) - 0 [13:33:05]OFD Sender: Remove packet 77057 [13:33:05]ProducePacketName [13:33:05]name=ofd_packets/00077057 [13:33:05]NVStorageDeleteData [13:33:05]Write to MH i2c: 01 00 00 31 06 37 [13:33:05]Write i2c OK [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: 01 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: 01 07 00 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: 01 07 00 31 06 00 00 00 00 00 A8 0C F2 [13:33:05]RasterBufferAndPrint [13:33:05]line [13:33:05]line [13:33:05]line [13:33:05]line [13:33:05]line [13:33:05]written 0, free lines is 3246 [13:33:05]MH_Cut [13:33:05]Write to MH i2c: D1 01 00 38 06 01 10 [13:33:05]Write i2c OK [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: D1 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: D1 01 00 [13:33:05]MH_I2C_Read... [13:33:05]Read from MH i2c: D1 01 00 38 06 00 0F [13:33:05]Write to MH i2c: 01 00 00 39 06 3F [13:33:05]Write i2c OK [13:33:05]MH_I2C_Read... [13:33:05]OFD Sender: No OFD packet to send [13:33:06]*** Cut start [13:33:06]*** Partial cut [13:33:06]*** CUTSNS_PIN = 1 [13:33:06]*** CUTSNS_PIN = 0 [13:33:06]*** Brake cut motor [13:33:06]Read from MH i2c: 01 [13:33:06]MH_I2C_Read... [13:33:06]*** Stop cut motor [13:33:06]*** Cut end [13:33:06]Read from MH i2c: 01 07 00 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: 01 07 00 39 06 00 00 00 00 00 FF 0F 54 [13:33:06]process_action close_receipt done [13:33:06]requested_data is exist [13:33:06]produce_requested_data [13:33:06]requested_item fm.sn is exist - process it [13:33:06]wFMCommunicate request_size=4 [13:33:06]MH_SAM_APDU [13:33:06]CAPDU: 80 11 00 00 [13:33:06]Write to MH i2c: E2 08 00 3A 06 80 11 00 00 00 00 00 00 BA [13:33:06]Write i2c OK [13:33:06]MH_I2C_Read... [13:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:06]Read from MH i2c: E2 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: E2 17 00 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: E2 17 00 3A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 0D [13:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:33:06]wFMCommunicate OK [13:33:06]requested_item fd.num is exist - process it [13:33:06]SAM_PROTO_GetFieldsCounters [13:33:06]wFMCommunicate request_size=4 [13:33:06]MH_SAM_APDU [13:33:06]CAPDU: 80 13 00 00 [13:33:06]Write to MH i2c: E2 08 00 3B 06 80 13 00 00 00 00 00 00 BD [13:33:06]Write i2c OK [13:33:06]MH_I2C_Read... [13:33:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:07]Read from MH i2c: E2 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 62 00 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 62 00 3B 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 01 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [13:33:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 01 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:07]wFMCommunicate OK [13:33:07]SAM_PROTO_GetFieldsCounters done [13:33:07]requested_item shift.num is exist - process it [13:33:07]requested_item shift.opened is exist - process it [13:33:07]req_shift_opened [13:33:07]FM_GetShiftState [13:33:07]SAM_PROTO_GetShiftState [13:33:07]wFMCommunicate request_size=4 [13:33:07]MH_SAM_APDU [13:33:07]CAPDU: 80 13 01 00 [13:33:07]Write to MH i2c: E2 08 00 3C 06 80 13 01 00 00 00 00 00 BF [13:33:07]Write i2c OK [13:33:07]MH_I2C_Read... [13:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:07]Read from MH i2c: E2 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 0E 00 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 0E 00 3C 06 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 E6 [13:33:07]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:33:07]wFMCommunicate OK [13:33:07]SAM_PROTO_GetShiftState done [13:33:07]FM_GetShiftState done [13:33:07]req_shift_opened done [13:33:07]requested_item shift.open_date is exist - process it [13:33:07]req_shift_open_date [13:33:07]req_shift_open_date done [13:33:07]produce_requested_data done [13:33:07]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77057,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [13:33:07]process_action_free close_receipt [13:33:07]json_value_free [13:33:07]json_value_free done [13:33:07]process_json_proto returns [13:33:07]Send response to host [13:33:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77057,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [13:33:07]free response buf [13:33:07]execute_script done [13:33:07]execute_script returns [13:33:07]free content buf [13:33:07]Sock 8.Close socket [13:33:07]Sock 8.Thread stoped [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:20]accept exits with 9 [13:35:20]New connection [13:35:20]New thread 3067481444 created [13:35:20]Thread 3067338084 joined [13:35:20]Waiting for new connection... [13:35:20] Sock 9.Parse request [13:35:20]Sock 9.Check first char [13:35:20]Sock 9.First char is OK [13:35:20]request: POST /json_proto HTTP/1.0 [13:35:20]Method: POST [13:35:20]URL: /json_proto [13:35:20]Method is POST - this is cgi request [13:35:20]url: /json_proto [13:35:20]query_string will be loaded in cgi processing [13:35:20]execute_cgi json_proto POST (null) [13:35:20]execute_cgi path=json_proto method=POST [13:35:20]POST find Content-Length [13:35:20]Host: 172.17.62.5:8080 [13:35:20]Content-Length: 675 [13:35:20]Content-Type: application/json [13:35:20] [13:35:20]POST finish read [13:35:20]Found Content-Length = 675 [13:35:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "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:35:20]execute_script... [13: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)191644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 15.300, "sum" : 1000.62, "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:35:20]POST & json_proto [13:35:20]process_json_proto [13:35:20]json parsed OK: [13:35:20]protocol is kg_v1.0 [13:35:20]action value=close_receipt [13:35:20]process_action close_receipt [13:35:20]cmd_close_receipt [13:35:20]MH_GetDate [13:35:20]Write to MH i2c: F0 00 00 3D 06 32 [13:35:20]Write i2c OK [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: F0 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: F0 09 00 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: F0 09 00 3D 06 00 98 67 26 66 F4 E9 65 64 6C [13:35:20]GetLastDocTimeStamp 1713792783 [13:35:20]current date 1713792920 [13:35:20]FM_GetShiftState [13:35:20]SAM_PROTO_GetShiftState [13:35:20]wFMCommunicate request_size=4 [13:35:20]MH_SAM_APDU [13:35:20]CAPDU: 80 13 01 00 [13:35:20]Write to MH i2c: E2 08 00 3E 06 80 13 01 00 00 00 00 00 C1 [13:35:20]Write i2c OK [13:35:20]MH_I2C_Read... [13:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:20]Read from MH i2c: E2 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: E2 0E 00 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: E2 0E 00 3E 06 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 E8 [13:35:20]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:35:20]wFMCommunicate OK [13:35:20]SAM_PROTO_GetShiftState done [13:35:20]FM_GetShiftState done [13:35:20]opened in 1713745124 [13:35:20]opened+sec_in_day 1713831524 [13:35:20]quantity*price = 100062 [13:35:20]sum+1 = 100063 [13:35:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 77 22.04.2024 13:35 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77058 ФПД: 231192191078706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T133520&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77058&fm=231192191078706&tin=02508201610067®Number=0000000000091573&sum=100000 [13:35:21]StoreToDocumentArchive [13:35:21]shift 373 fd 77058 [13:35:21]save to /storage/0373/doc_00077058 [13:35:21]save last doc name /storage/0373/doc_00077058 to /storage/kkm_last_doc_name [13:35:21]save OK [13:35:21]Clear old archive folders... [13:35:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:35:21]tlvbuf is 00B699E0 [13:35:21]SAM_PROTO_ClearQueue [13:35:21]wFMCommunicate request_size=4 [13:35:21]MH_SAM_APDU [13:35:21]CAPDU: 80 09 00 00 [13:35:21]Write to MH i2c: E2 08 00 4B 06 80 09 00 00 00 00 00 00 C3 [13:35:21]Write i2c OK [13:35:21]MH_I2C_Read... [13:35:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:21]Read from MH i2c: E2 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 03 00 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 03 00 4B 06 00 90 00 C5 [13:35:21]RAPDU: 90 00 [13:35:21]wFMCommunicate OK [13:35:21]SAM_PROTO_ClearQueue done [13:35:21]KKMCreateOFDPacket [13:35:21]OFDProtocolAddRootSTLVToBuf [13:35:21]FM_MakeSignedData [13:35:21]FM_MakeSignedData [13:35:21]SAM_PROTO_SignData [13:35:21]wFMCommunicate request_size=4 [13:35:21]MH_SAM_APDU [13:35:21]CAPDU: 80 0D 01 02 [13:35:21]Write to MH i2c: E2 08 00 4C 06 80 0D 01 02 00 00 00 00 CB [13:35:21]Write i2c OK [13:35:21]MH_I2C_Read... [13:35:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:21]Read from MH i2c: E2 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 03 00 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 03 00 4C 06 00 90 00 C6 [13:35:21]RAPDU: 90 00 [13:35:21]wFMCommunicate OK [13:35:21]wFMCommunicate request_size=255 [13:35:21]MH_SAM_APDU [13:35:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 98 67 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 02 2D 01 00 35 04 06 00 [13:35:21]Write to MH i2c: E2 02 01 4D 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 98 67 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 02 2D 01 00 35 04 06 00 00 00 6A [13:35:21]Write i2c OK [13:35:21]MH_I2C_Read... [13:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:21]Read from MH i2c: E2 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 03 00 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [13:35:21]RAPDU: 90 00 [13:35:21]wFMCommunicate OK [13:35:21]wFMCommunicate request_size=11 [13:35:21]MH_SAM_APDU [13:35:21]CAPDU: 80 0D 02 02 06 D2 44 A0 6C 91 32 [13:35:21]Write to MH i2c: E2 0E 00 4E 06 80 0D 02 02 06 00 D2 44 A0 6C 91 32 00 00 BF [13:35:21]Write i2c OK [13:35:21]MH_I2C_Read... [13:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:21]Read from MH i2c: E2 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 03 00 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 03 00 4E 06 00 90 00 C8 [13:35:21]RAPDU: 90 00 [13:35:21]wFMCommunicate OK [13:35:21]wFMCommunicate request_size=4 [13:35:21]MH_SAM_APDU [13:35:21]CAPDU: 80 0D 03 02 [13:35:21]Write to MH i2c: E2 08 00 4F 06 80 0D 03 02 00 00 00 00 D0 [13:35:21]Write i2c OK [13:35:21]MH_I2C_Read... [13:35:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:21]Read from MH i2c: E2 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 0B 00 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 0B 00 4F 06 00 52 CB D0 4F C7 F6 0C 08 90 00 DE [13:35:21]RAPDU: 52 CB D0 4F C7 F6 0C 08 90 00 [13:35:21]wFMCommunicate OK [13:35:21]SAM_PROTO_SignData done [13:35:21]FM_MakeSignedData done [13:35:21]CreateOFDProtocolMessage [13:35:21]wFMCommunicate request_size=4 [13:35:21]MH_SAM_APDU [13:35:21]CAPDU: 80 11 00 00 [13:35:21]Write to MH i2c: E2 08 00 50 06 80 11 00 00 00 00 00 00 D0 [13:35:21]Write i2c OK [13:35:21]MH_I2C_Read... [13:35:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:21]Read from MH i2c: E2 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 17 00 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 17 00 50 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 23 [13:35:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:35:21]wFMCommunicate OK [13:35:21]CreateOFDProtocolMessage done [13:35:21]OFDSenderStorePacket 77058 [13:35:21]StoreOFDPacket docnum=77058 [13:35:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 1A 96 08 01 1E AC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 98 67 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 02 2D 01 00 35 04 06 00 D2 44 A0 6C 91 32 52 CB D0 4F C7 F6 0C 08 [13:35:21]CheckFolder [13:35:21]dirname=/storage/ofd_packets [13:35:21]CheckFolder done [13:35:21]ProducePacketName [13:35:21]name=ofd_packets/00077058 [13:35:21]NVStorageSaveData ofd_packets/00077058 [13:35:21]File name is /storage/ofd_packets/00077058 [13:35:21]Write 302 bytes [13:35:21]NVStorageSaveData done [13:35:21]OFDSenderStorePacket done [13:35:21]KKMCreateOFDPacket done [13:35:21]NVStorageSaveData kkm_last_timestamp [13:35:21]File name is /storage/kkm_last_timestamp [13:35:21]Write 4 bytes [13:35:21]NVStorageSaveData done [13:35:21]ExternCall_PrintAddStr [13:35:21]wPrintStart [13:35:21]Write to MH i2c: 01 00 00 51 06 57 [13:35:21]Write i2c OK [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: 01 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: 01 07 00 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: 01 07 00 51 06 00 00 00 00 00 FF 0F 6C [13:35:21]RasterBufferAndPrint [13:35:21]line Счет N : (1)191644 [13:35:21]line ИНН: 02508201610067 [13:35:21]line Контрольно-Кассовый Чек [13:35:21]line ПРОДАЖА [13:35:21]line ТРК (МРК, ГНК) : 31 [13:35:21]line Товар: 2710124130 [13:35:21]line SUPER 92-К-5 [13:35:21]line 15.300 * 65.40 [13:35:21]line = 1000.62 [13:35:21]line НДС 12% НСП 1% [13:35:21]line > о реализуемом товаре [13:35:21]line ОКРУГЛЕНИЕ: -0.62 [13:35:21]line ИТОГО: 1000.00 [13:35:21]line Внесено: 1000.00 [13:35:21]line СДАЧА: 0.00 [13:35:21]line НСП 1% : 8.85 [13:35:21]line НДС 12% : 106.26 [13:35:21]line Наличными: 1000.00 [13:35:21]line Безнал.: 0.00 [13:35:21]line Место: АЗС № 106 "Партнер Нефть" [13:35:21]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:35:21]line СНО: Общий режим [13:35:21]line Чек 77 22.04.2024 13:35 [13:35:21]line Смена: 373 ФФД: 1.0 [13:35:21]line ЗНМ: 0300000141 [13:35:21]line РНМ: 0000000000091573 [13:35:21]line Версия ККМ: 001 [13:35:21]line ФМ: 0000000000874652 [13:35:21]line ФД: 77058 [13:35:21]line ФПД: 231192191078706 [13:35:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T133520&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77058&fm=231192191078706&tin=02508201610067®Number=0000000000091573&sum=100000 [13:35:22]OFD Sender: Processing packet 77058 [packets to send 129, broken 128] [13:35:22]ProducePacketName [13:35:22]name=ofd_packets/00077058 [13:35:22]OFD Sender: To server: pG, [13:35:22]CommunicateWithHost lk.salyk.kg:30040 [13:35:22]ConnectInit lk.salyk.kg [13:35:22]written 0, free lines is 4095 [13:35:22]Connected sock=8 [13:35:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 1A 96 08 01 1E AC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 DE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 98 67 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 02 2D 01 00 35 04 06 00 D2 44 A0 6C 91 32 52 CB D0 4F C7 F6 0C 08 [13:35:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 7D FC 47 00 D7 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 02 2D 01 00 F4 03 04 00 1B 0F 26 66 B6 04 01 00 00 6B AF 52 C0 BA AF 76 8B [13:35:22]CommunicateWithHost err = 0 [13:35:22]CheckOFDResponse [13:35:22]1017 (14) - 77093643461234 [13:35:22]1041 (16) - 0000000000874652 [13:35:22]1040 (4) - 77058 [13:35:22]1012 (4) - 22.04.2024 07:17 [13:35:22]1206 (1) - 0 [13:35:22]OFD Sender: Remove packet 77058 [13:35:22]ProducePacketName [13:35:22]name=ofd_packets/00077058 [13:35:22]NVStorageDeleteData [13:35:22]Write to MH i2c: 01 00 00 7B 06 81 [13:35:22]Write i2c OK [13:35:22]MH_I2C_Read... [13:35:22]Read from MH i2c: 01 [13:35:22]MH_I2C_Read... [13:35:22]Read from MH i2c: 01 07 00 [13:35:22]MH_I2C_Read... [13:35:22]Read from MH i2c: 01 07 00 7B 06 00 00 00 00 00 F6 0C 8A [13:35:22]RasterBufferAndPrint [13:35:22]line [13:35:22]line [13:35:22]line [13:35:22]line [13:35:22]line [13:35:22]written 0, free lines is 3326 [13:35:22]MH_Cut [13:35:22]Write to MH i2c: D1 01 00 82 06 01 5A [13:35:22]Write i2c OK [13:35:22]MH_I2C_Read... [13:35:22]Read from MH i2c: D1 [13:35:22]MH_I2C_Read... [13:35:22]Read from MH i2c: D1 01 00 [13:35:22]MH_I2C_Read... [13:35:22]Read from MH i2c: D1 01 00 82 06 00 59 [13:35:22]Write to MH i2c: 01 00 00 83 06 89 [13:35:22]Write i2c OK [13:35:22]MH_I2C_Read... [13:35:23]OFD Sender: No OFD packet to send [13:35:23]*** Cut start [13:35:23]*** Partial cut [13:35:23]*** CUTSNS_PIN = 1 [13:35:23]*** CUTSNS_PIN = 0 [13:35:23]*** Brake cut motor [13:35:24]Read from MH i2c: 01 [13:35:24]MH_I2C_Read... [13:35:24]*** Stop cut motor [13:35:24]*** Cut end [13:35:24]Read from MH i2c: 01 07 00 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: 01 07 00 83 06 00 00 00 00 00 FF 0F 9E [13:35:24]process_action close_receipt done [13:35:24]requested_data is exist [13:35:24]produce_requested_data [13:35:24]requested_item fm.sn is exist - process it [13:35:24]wFMCommunicate request_size=4 [13:35:24]MH_SAM_APDU [13:35:24]CAPDU: 80 11 00 00 [13:35:24]Write to MH i2c: E2 08 00 84 06 80 11 00 00 00 00 00 00 04 [13:35:24]Write i2c OK [13:35:24]MH_I2C_Read... [13:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:24]Read from MH i2c: E2 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: E2 17 00 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: E2 17 00 84 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 57 [13:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:35:24]wFMCommunicate OK [13:35:24]requested_item fd.num is exist - process it [13:35:24]SAM_PROTO_GetFieldsCounters [13:35:24]wFMCommunicate request_size=4 [13:35:24]MH_SAM_APDU [13:35:24]CAPDU: 80 13 00 00 [13:35:24]Write to MH i2c: E2 08 00 85 06 80 13 00 00 00 00 00 00 07 [13:35:24]Write i2c OK [13:35:24]MH_I2C_Read... [13:35:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:24]Read from MH i2c: E2 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: E2 62 00 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: E2 62 00 85 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 02 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [13:35:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 02 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:35:24]wFMCommunicate OK [13:35:24]SAM_PROTO_GetFieldsCounters done [13:35:24]requested_item shift.num is exist - process it [13:35:24]requested_item shift.opened is exist - process it [13:35:24]req_shift_opened [13:35:24]FM_GetShiftState [13:35:24]SAM_PROTO_GetShiftState [13:35:24]wFMCommunicate request_size=4 [13:35:24]MH_SAM_APDU [13:35:24]CAPDU: 80 13 01 00 [13:35:24]Write to MH i2c: E2 08 00 86 06 80 13 01 00 00 00 00 00 09 [13:35:24]Write i2c OK [13:35:24]MH_I2C_Read... [13:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:24]Read from MH i2c: E2 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: E2 0E 00 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: E2 0E 00 86 06 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 30 [13:35:24]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:35:24]wFMCommunicate OK [13:35:24]SAM_PROTO_GetShiftState done [13:35:24]FM_GetShiftState done [13:35:24]req_shift_opened done [13:35:24]requested_item shift.open_date is exist - process it [13:35:24]req_shift_open_date [13:35:24]req_shift_open_date done [13:35:24]produce_requested_data done [13:35:24]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77058,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [13:35:24]process_action_free close_receipt [13:35:24]json_value_free [13:35:24]json_value_free done [13:35:24]process_json_proto returns [13:35:24]Send response to host [13:35:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77058,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [13:35:24]free response buf [13:35:24]execute_script done [13:35:24]execute_script returns [13:35:24]free content buf [13:35:24]Sock 9.Close socket [13:35:24]Sock 9.Thread stoped [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:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:22]accept exits with 10 [13:50:22]New connection [13:50:22]New thread 3067338084 created [13:50:22]Thread 3067481444 joined [13:50:22]Waiting for new connection... [13:50:22] Sock 10.Parse request [13:50:22]Sock 10.Check first char [13:50:22]Sock 10.First char is OK [13:50:22]request: POST /json_proto HTTP/1.0 [13:50:22]Method: POST [13:50:22]URL: /json_proto [13:50:22]Method is POST - this is cgi request [13:50:22]url: /json_proto [13:50:22]query_string will be loaded in cgi processing [13:50:22]execute_cgi json_proto POST (null) [13:50:22]execute_cgi path=json_proto method=POST [13:50:22]POST find Content-Length [13:50:22]Host: 172.17.62.5:8080 [13:50:22]Content-Length: 802 [13:50:22]Content-Type: application/json [13:50:22] [13:50:22]POST finish read [13:50:22]Found Content-Length = 802 [13:50:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:22]execute_script... [13:50: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)191647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:22]POST & json_proto [13:50:22]process_json_proto [13:50:22]json parsed OK: [13:50:22]protocol is kg_v1.0 [13:50:22]action value=close_receipt [13:50:22]process_action close_receipt [13:50:22]cmd_close_receipt [13:50:22]MH_GetDate [13:50:22]Write to MH i2c: F0 00 00 87 06 7C [13:50:22]Write i2c OK [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: F0 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: F0 09 00 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: F0 09 00 87 06 00 1E 6B 26 66 F4 E9 65 64 40 [13:50:22]GetLastDocTimeStamp 1713792920 [13:50:22]current date 1713793822 [13:50:22]FM_GetShiftState [13:50:22]SAM_PROTO_GetShiftState [13:50:22]wFMCommunicate request_size=4 [13:50:22]MH_SAM_APDU [13:50:22]CAPDU: 80 13 01 00 [13:50:22]Write to MH i2c: E2 08 00 88 06 80 13 01 00 00 00 00 00 0B [13:50:22]Write i2c OK [13:50:22]MH_I2C_Read... [13:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:22]Read from MH i2c: E2 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 0E 00 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 0E 00 88 06 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 32 [13:50:22]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:50:22]wFMCommunicate OK [13:50:22]SAM_PROTO_GetShiftState done [13:50:22]FM_GetShiftState done [13:50:22]opened in 1713745124 [13:50:22]opened+sec_in_day 1713831524 [13:50:22]quantity*price = 40022 [13:50:22]sum+1 = 40023 [13:50:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.22 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 0.00 Безнал.: 400.22 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 78 22.04.2024 13:50 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 77059 ФПД: 140507678046968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T135022&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77059&fm=140507678046968&tin=02508201610067®Number=0000000000091573&sum=40022 [13:50:23]StoreToDocumentArchive [13:50:23]shift 373 fd 77059 [13:50:23]save to /storage/0373/doc_00077059 [13:50:23]save last doc name /storage/0373/doc_00077059 to /storage/kkm_last_doc_name [13:50:23]save OK [13:50:23]Clear old archive folders... [13:50:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:50:23]tlvbuf is 00BBBF20 [13:50:23]SAM_PROTO_ClearQueue [13:50:23]wFMCommunicate request_size=4 [13:50:23]MH_SAM_APDU [13:50:23]CAPDU: 80 09 00 00 [13:50:23]Write to MH i2c: E2 08 00 95 06 80 09 00 00 00 00 00 00 0D [13:50:23]Write i2c OK [13:50:23]MH_I2C_Read... [13:50:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:23]Read from MH i2c: E2 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: E2 03 00 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: E2 03 00 95 06 00 90 00 0F [13:50:23]RAPDU: 90 00 [13:50:23]wFMCommunicate OK [13:50:23]SAM_PROTO_ClearQueue done [13:50:23]KKMCreateOFDPacket [13:50:23]OFDProtocolAddRootSTLVToBuf [13:50:23]FM_MakeSignedData [13:50:23]FM_MakeSignedData [13:50:23]SAM_PROTO_SignData [13:50:23]wFMCommunicate request_size=4 [13:50:23]MH_SAM_APDU [13:50:23]CAPDU: 80 0D 01 02 [13:50:23]Write to MH i2c: E2 08 00 96 06 80 0D 01 02 00 00 00 00 15 [13:50:23]Write i2c OK [13:50:23]MH_I2C_Read... [13:50:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:23]Read from MH i2c: E2 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: E2 03 00 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: E2 03 00 96 06 00 90 00 10 [13:50:23]RAPDU: 90 00 [13:50:23]wFMCommunicate OK [13:50:23]wFMCommunicate request_size=255 [13:50:23]MH_SAM_APDU [13:50: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 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 1E 6B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 03 2D 01 00 35 04 06 00 7F CA 7E 3C [13:50:23]Write to MH i2c: E2 02 01 97 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 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 1E 6B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 03 2D 01 00 35 04 06 00 7F CA 7E 3C 00 00 7F [13:50:23]Write i2c OK [13:50:23]MH_I2C_Read... [13:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:23]Read from MH i2c: E2 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: E2 03 00 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: E2 03 00 97 06 00 90 00 11 [13:50:23]RAPDU: 90 00 [13:50:23]wFMCommunicate OK [13:50:23]wFMCommunicate request_size=7 [13:50:23]MH_SAM_APDU [13:50:23]CAPDU: 80 0D 02 02 02 FA F8 [13:50:23]Write to MH i2c: E2 0A 00 98 06 80 0D 02 02 02 00 FA F8 00 00 0E [13:50:23]Write i2c OK [13:50:23]MH_I2C_Read... [13:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:23]Read from MH i2c: E2 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: E2 03 00 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [13:50:23]RAPDU: 90 00 [13:50:23]wFMCommunicate OK [13:50:23]wFMCommunicate request_size=4 [13:50:23]MH_SAM_APDU [13:50:23]CAPDU: 80 0D 03 02 [13:50:23]Write to MH i2c: E2 08 00 99 06 80 0D 03 02 00 00 00 00 1A [13:50:23]Write i2c OK [13:50:23]MH_I2C_Read... [13:50:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:23]Read from MH i2c: E2 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: E2 0B 00 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: E2 0B 00 99 06 00 9B 1C ED 11 B0 F5 93 E8 90 00 F0 [13:50:23]RAPDU: 9B 1C ED 11 B0 F5 93 E8 90 00 [13:50:23]wFMCommunicate OK [13:50:23]SAM_PROTO_SignData done [13:50:23]FM_MakeSignedData done [13:50:23]CreateOFDProtocolMessage [13:50:23]wFMCommunicate request_size=4 [13:50:23]MH_SAM_APDU [13:50:23]CAPDU: 80 11 00 00 [13:50:23]Write to MH i2c: E2 08 00 9A 06 80 11 00 00 00 00 00 00 1A [13:50:23]Write i2c OK [13:50:23]MH_I2C_Read... [13:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:23]Read from MH i2c: E2 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: E2 17 00 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: E2 17 00 9A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 6D [13:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:50:23]wFMCommunicate OK [13:50:23]CreateOFDProtocolMessage done [13:50:23]OFDSenderStorePacket 77059 [13:50:23]StoreOFDPacket docnum=77059 [13:50:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 36 90 04 01 9B 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 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 1E 6B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 03 2D 01 00 35 04 06 00 7F CA 7E 3C FA F8 9B 1C ED 11 B0 F5 93 E8 [13:50:23]CheckFolder [13:50:23]dirname=/storage/ofd_packets [13:50:23]CheckFolder done [13:50:23]ProducePacketName [13:50:23]name=ofd_packets/00077059 [13:50:23]NVStorageSaveData ofd_packets/00077059 [13:50:23]File name is /storage/ofd_packets/00077059 [13:50:23]Write 298 bytes [13:50:23]NVStorageSaveData done [13:50:23]OFDSenderStorePacket done [13:50:23]KKMCreateOFDPacket done [13:50:23]NVStorageSaveData kkm_last_timestamp [13:50:23]File name is /storage/kkm_last_timestamp [13:50:23]Write 4 bytes [13:50:23]NVStorageSaveData done [13:50:23]ExternCall_PrintAddStr [13:50:23]wPrintStart [13:50:23]Write to MH i2c: 01 00 00 9B 06 A1 [13:50:23]Write i2c OK [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: 01 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: 01 07 00 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: 01 07 00 9B 06 00 00 00 00 00 FF 0F B6 [13:50:23]RasterBufferAndPrint [13:50:23]line Счет N : (1)191647 [13:50:23]line ИНН: 02508201610067 [13:50:23]line Контрольно-Кассовый Чек [13:50:23]line ПРОДАЖА [13:50:23]line ТРК (МРК, ГНК) : 51 [13:50:23]line Товар: 2710194210 [13:50:23]line ДТ-К-5 [13:50:23]line 5.490 * 72.90 [13:50:23]line = 400.22 [13:50:23]line НДС 12% НСП 1% [13:50:23]line > о реализуемом товаре [13:50:23]line ИТОГО: 400.22 [13:50:23]line НСП 1% : 3.54 [13:50:23]line НДС 12% : 42.50 [13:50:23]line Наличными: 0.00 [13:50:23]line Безнал.: 400.22 [13:50:23]line Место: АЗС № 106 "Партнер Нефть" [13:50:23]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:50:23]line СНО: Общий режим [13:50:23]line Чек 78 22.04.2024 13:50 [13:50:23]line Смена: 373 ФФД: 1.0 [13:50:23]line ЗНМ: 0300000141 [13:50:23]line РНМ: 0000000000091573 [13:50:23]line Версия ККМ: 001 [13:50:23]line Платежная система: О! деньги [13:50:23]line ФМ: 0000000000874652 [13:50:23]line ФД: 77059 [13:50:23]line ФПД: 140507678046968 [13:50:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T135022&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77059&fm=140507678046968&tin=02508201610067®Number=0000000000091573&sum=40022 [13:50:24]OFD Sender: Processing packet 77059 [packets to send 129, broken 128] [13:50:24]ProducePacketName [13:50:24]name=ofd_packets/00077059 [13:50:24]OFD Sender: To server: pG, [13:50:24]CommunicateWithHost lk.salyk.kg:30040 [13:50:24]ConnectInit lk.salyk.kg [13:50:24]written 0, free lines is 4095 [13:50:24]Connected sock=9 [13:50:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 36 90 04 01 9B 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 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 1E 6B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 03 2D 01 00 35 04 06 00 7F CA 7E 3C FA F8 9B 1C ED 11 B0 F5 93 E8 [13:50:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 35 05 47 00 40 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 30 38 37 34 36 35 32 10 04 04 00 03 2D 01 00 F4 03 04 00 A1 12 26 66 B6 04 01 00 00 3B 61 08 01 81 39 5E CC [13:50:24]CommunicateWithHost err = 0 [13:50:24]CheckOFDResponse [13:50:24]1017 (14) - 77093643461234 [13:50:24]1041 (16) - 0000000000874652 [13:50:24]1040 (4) - 77059 [13:50:24]1012 (4) - 22.04.2024 07:32 [13:50:24]1206 (1) - 0 [13:50:24]OFD Sender: Remove packet 77059 [13:50:24]ProducePacketName [13:50:24]name=ofd_packets/00077059 [13:50:24]NVStorageDeleteData [13:50:24]Write to MH i2c: 01 00 00 C4 06 CA [13:50:24]Write i2c OK [13:50:24]MH_I2C_Read... [13:50:24]Read from MH i2c: 01 [13:50:24]MH_I2C_Read... [13:50:24]Read from MH i2c: 01 07 00 [13:50:24]MH_I2C_Read... [13:50:24]Read from MH i2c: 01 07 00 C4 06 00 00 00 00 00 F3 0C D0 [13:50:24]RasterBufferAndPrint [13:50:24]line [13:50:24]line [13:50:24]line [13:50:24]line [13:50:24]line [13:50:24]written 0, free lines is 3322 [13:50:24]MH_Cut [13:50:24]Write to MH i2c: D1 01 00 CB 06 01 A3 [13:50:24]Write i2c OK [13:50:24]MH_I2C_Read... [13:50:24]Read from MH i2c: D1 [13:50:24]MH_I2C_Read... [13:50:24]Read from MH i2c: D1 01 00 [13:50:24]MH_I2C_Read... [13:50:24]Read from MH i2c: D1 01 00 CB 06 00 A2 [13:50:24]Write to MH i2c: 01 00 00 CC 06 D2 [13:50:24]Write i2c OK [13:50:24]MH_I2C_Read... [13:50:25]OFD Sender: No OFD packet to send [13:50:25]*** Cut start [13:50:25]*** Partial cut [13:50:25]*** CUTSNS_PIN = 1 [13:50:25]*** CUTSNS_PIN = 0 [13:50:25]*** Brake cut motor [13:50:25]Read from MH i2c: 01 [13:50:25]MH_I2C_Read... [13:50:25]*** Stop cut motor [13:50:25]*** Cut end [13:50:25]Read from MH i2c: 01 07 00 [13:50:25]MH_I2C_Read... [13:50:25]Read from MH i2c: 01 07 00 CC 06 00 00 00 00 00 FF 0F E7 [13:50:25]process_action close_receipt done [13:50:25]requested_data is exist [13:50:25]produce_requested_data [13:50:25]requested_item fm.sn is exist - process it [13:50:25]wFMCommunicate request_size=4 [13:50:25]MH_SAM_APDU [13:50:25]CAPDU: 80 11 00 00 [13:50:25]Write to MH i2c: E2 08 00 CD 06 80 11 00 00 00 00 00 00 4D [13:50:25]Write i2c OK [13:50:25]MH_I2C_Read... [13:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:26]Read from MH i2c: E2 [13:50:26]MH_I2C_Read... [13:50:26]Read from MH i2c: E2 17 00 [13:50:26]MH_I2C_Read... [13:50:26]Read from MH i2c: E2 17 00 CD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 A0 [13:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:50:26]wFMCommunicate OK [13:50:26]requested_item fd.num is exist - process it [13:50:26]SAM_PROTO_GetFieldsCounters [13:50:26]wFMCommunicate request_size=4 [13:50:26]MH_SAM_APDU [13:50:26]CAPDU: 80 13 00 00 [13:50:26]Write to MH i2c: E2 08 00 CE 06 80 13 00 00 00 00 00 00 50 [13:50:26]Write i2c OK [13:50:26]MH_I2C_Read... [13:50:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:26]Read from MH i2c: E2 [13:50:26]MH_I2C_Read... [13:50:26]Read from MH i2c: E2 62 00 [13:50:26]MH_I2C_Read... [13:50:26]Read from MH i2c: E2 62 00 CE 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 03 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [13:50:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 03 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:50:26]wFMCommunicate OK [13:50:26]SAM_PROTO_GetFieldsCounters done [13:50:26]requested_item shift.num is exist - process it [13:50:26]requested_item shift.opened is exist - process it [13:50:26]req_shift_opened [13:50:26]FM_GetShiftState [13:50:26]SAM_PROTO_GetShiftState [13:50:26]wFMCommunicate request_size=4 [13:50:26]MH_SAM_APDU [13:50:26]CAPDU: 80 13 01 00 [13:50:26]Write to MH i2c: E2 08 00 CF 06 80 13 01 00 00 00 00 00 52 [13:50:26]Write i2c OK [13:50:26]MH_I2C_Read... [13:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:26]Read from MH i2c: E2 [13:50:26]MH_I2C_Read... [13:50:26]Read from MH i2c: E2 0E 00 [13:50:26]MH_I2C_Read... [13:50:26]Read from MH i2c: E2 0E 00 CF 06 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 79 [13:50:26]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:50:26]wFMCommunicate OK [13:50:26]SAM_PROTO_GetShiftState done [13:50:26]FM_GetShiftState done [13:50:26]req_shift_opened done [13:50:26]requested_item shift.open_date is exist - process it [13:50:26]req_shift_open_date [13:50:26]req_shift_open_date done [13:50:26]produce_requested_data done [13:50:26]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77059,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [13:50:26]process_action_free close_receipt [13:50:26]json_value_free [13:50:26]json_value_free done [13:50:26]process_json_proto returns [13:50:26]Send response to host [13:50:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77059,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [13:50:26]free response buf [13:50:26]execute_script done [13:50:26]execute_script returns [13:50:26]free content buf [13:50:26]Sock 10.Close socket [13:50:26]Sock 10.Thread stoped [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:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:02]accept exits with 8 [13:52:02]New connection [13:52:02]New thread 3067481444 created [13:52:02]Thread 3067338084 joined [13:52:02]Waiting for new connection... [13:52:02] Sock 8.Parse request [13:52:02]Sock 8.Check first char [13:52:02]Sock 8.First char is OK [13:52:02]request: POST /json_proto HTTP/1.0 [13:52:02]Method: POST [13:52:02]URL: /json_proto [13:52:02]Method is POST - this is cgi request [13:52:02]url: /json_proto [13:52:02]query_string will be loaded in cgi processing [13:52:02]execute_cgi json_proto POST (null) [13:52:02]execute_cgi path=json_proto method=POST [13:52:02]POST find Content-Length [13:52:02]Host: 172.17.62.5:8080 [13:52:02]Content-Length: 938 [13:52:02]Content-Type: application/json [13:52:02] [13:52:02]POST finish read [13:52:02]Found Content-Length = 938 [13:52:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 50.000, "sum" : 3595.00, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 50.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 3595.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:02]execute_script... [13:52: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)191646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 50.000, "sum" : 3595.00, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 50.00 \u0441\u043E\u043C", "payments": [ { "type": 0, "sum" : 3595.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:02]POST & json_proto [13:52:02]process_json_proto [13:52:02]json parsed OK: [13:52:02]protocol is kg_v1.0 [13:52:02]action value=close_receipt [13:52:02]process_action close_receipt [13:52:02]cmd_close_receipt [13:52:02]MH_GetDate [13:52:02]Write to MH i2c: F0 00 00 D0 06 C5 [13:52:02]Write i2c OK [13:52:02]MH_I2C_Read... [13:52:02]Read from MH i2c: F0 [13:52:02]MH_I2C_Read... [13:52:02]Read from MH i2c: F0 09 00 [13:52:02]MH_I2C_Read... [13:52:02]Read from MH i2c: F0 09 00 D0 06 00 83 6B 26 66 F4 E9 65 64 EE [13:52:02]GetLastDocTimeStamp 1713793822 [13:52:02]current date 1713793923 [13:52:02]FM_GetShiftState [13:52:02]SAM_PROTO_GetShiftState [13:52:02]wFMCommunicate request_size=4 [13:52:02]MH_SAM_APDU [13:52:02]CAPDU: 80 13 01 00 [13:52:02]Write to MH i2c: E2 08 00 D1 06 80 13 01 00 00 00 00 00 54 [13:52:02]Write i2c OK [13:52:02]MH_I2C_Read... [13:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:02]Read from MH i2c: E2 [13:52:02]MH_I2C_Read... [13:52:02]Read from MH i2c: E2 0E 00 [13:52:02]MH_I2C_Read... [13:52:02]Read from MH i2c: E2 0E 00 D1 06 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 7B [13:52:02]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:52:02]wFMCommunicate OK [13:52:02]SAM_PROTO_GetShiftState done [13:52:02]FM_GetShiftState done [13:52:02]opened in 1713745124 [13:52:02]opened+sec_in_day 1713831524 [13:52:02]quantity*price = 359500 [13:52:02]sum+1 = 359501 [13:52:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3595.00 НСП 1% : 31.81 НДС 12% : 381.77 Наличными: 3595.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 79 22.04.2024 13:52 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 50.00 сом ФМ: 0000000000874652 ФД: 77060 ФПД: 247735397219109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T135203&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77060&fm=247735397219109&tin=02508201610067®Number=0000000000091573&sum=359500 [13:52:04]StoreToDocumentArchive [13:52:04]shift 373 fd 77060 [13:52:04]save to /storage/0373/doc_00077060 [13:52:04]save last doc name /storage/0373/doc_00077060 to /storage/kkm_last_doc_name [13:52:04]save OK [13:52:04]Clear old archive folders... [13:52:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:52:04]tlvbuf is 00BBBE00 [13:52:04]SAM_PROTO_ClearQueue [13:52:04]wFMCommunicate request_size=4 [13:52:04]MH_SAM_APDU [13:52:04]CAPDU: 80 09 00 00 [13:52:04]Write to MH i2c: E2 08 00 DE 06 80 09 00 00 00 00 00 00 56 [13:52:04]Write i2c OK [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 [13:52:04]MH_I2C_Read... [13:52:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:04]Read from MH i2c: E2 03 00 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 03 00 DE 06 00 90 00 58 [13:52:04]RAPDU: 90 00 [13:52:04]wFMCommunicate OK [13:52:04]SAM_PROTO_ClearQueue done [13:52:04]KKMCreateOFDPacket [13:52:04]OFDProtocolAddRootSTLVToBuf [13:52:04]FM_MakeSignedData [13:52:04]FM_MakeSignedData [13:52:04]SAM_PROTO_SignData [13:52:04]wFMCommunicate request_size=4 [13:52:04]MH_SAM_APDU [13:52:04]CAPDU: 80 0D 01 02 [13:52:04]Write to MH i2c: E2 08 00 DF 06 80 0D 01 02 00 00 00 00 5E [13:52:04]Write i2c OK [13:52:04]MH_I2C_Read... [13:52:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:04]Read from MH i2c: E2 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 03 00 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 03 00 DF 06 00 90 00 59 [13:52:04]RAPDU: 90 00 [13:52:04]wFMCommunicate OK [13:52:04]wFMCommunicate request_size=255 [13:52:04]MH_SAM_APDU [13:52:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4C 7C 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 7C 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 95 00 00 00 00 07 04 06 00 4C 7C 05 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 83 6B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 04 2D 01 00 35 04 06 00 E1 50 64 59 [13:52:04]Write to MH i2c: E2 02 01 E0 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 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4C 7C 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 7C 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 95 00 00 00 00 07 04 06 00 4C 7C 05 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 83 6B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 04 2D 01 00 35 04 06 00 E1 50 64 59 00 00 F5 [13:52:04]Write i2c OK [13:52:04]MH_I2C_Read... [13:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:04]Read from MH i2c: E2 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 03 00 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 03 00 E0 06 00 90 00 5A [13:52:04]RAPDU: 90 00 [13:52:04]wFMCommunicate OK [13:52:04]wFMCommunicate request_size=7 [13:52:04]MH_SAM_APDU [13:52:04]CAPDU: 80 0D 02 02 02 7B 25 [13:52:04]Write to MH i2c: E2 0A 00 E1 06 80 0D 02 02 02 00 7B 25 00 00 05 [13:52:04]Write i2c OK [13:52:04]MH_I2C_Read... [13:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:04]Read from MH i2c: E2 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 03 00 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 03 00 E1 06 00 90 00 5B [13:52:04]RAPDU: 90 00 [13:52:04]wFMCommunicate OK [13:52:04]wFMCommunicate request_size=4 [13:52:04]MH_SAM_APDU [13:52:04]CAPDU: 80 0D 03 02 [13:52:04]Write to MH i2c: E2 08 00 E2 06 80 0D 03 02 00 00 00 00 63 [13:52:04]Write i2c OK [13:52:04]MH_I2C_Read... [13:52:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:04]Read from MH i2c: E2 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 0B 00 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 0B 00 E2 06 00 40 56 15 B6 77 53 F6 3F 90 00 C4 [13:52:04]RAPDU: 40 56 15 B6 77 53 F6 3F 90 00 [13:52:04]wFMCommunicate OK [13:52:04]SAM_PROTO_SignData done [13:52:04]FM_MakeSignedData done [13:52:04]CreateOFDProtocolMessage [13:52:04]wFMCommunicate request_size=4 [13:52:04]MH_SAM_APDU [13:52:04]CAPDU: 80 11 00 00 [13:52:04]Write to MH i2c: E2 08 00 E3 06 80 11 00 00 00 00 00 00 63 [13:52:04]Write i2c OK [13:52:04]MH_I2C_Read... [13:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:04]Read from MH i2c: E2 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 17 00 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: E2 17 00 E3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B6 [13:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:52:04]wFMCommunicate OK [13:52:04]CreateOFDProtocolMessage done [13:52:04]OFDSenderStorePacket 77060 [13:52:04]StoreOFDPacket docnum=77060 [13:52:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 28 A5 04 01 4E 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4C 7C 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 7C 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 95 00 00 00 00 07 04 06 00 4C 7C 05 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 83 6B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 04 2D 01 00 35 04 06 00 E1 50 64 59 7B 25 40 56 15 B6 77 53 F6 3F [13:52:04]CheckFolder [13:52:04]dirname=/storage/ofd_packets [13:52:04]CheckFolder done [13:52:04]ProducePacketName [13:52:04]name=ofd_packets/00077060 [13:52:04]NVStorageSaveData ofd_packets/00077060 [13:52:04]File name is /storage/ofd_packets/00077060 [13:52:04]Write 298 bytes [13:52:04]NVStorageSaveData done [13:52:04]OFDSenderStorePacket done [13:52:04]KKMCreateOFDPacket done [13:52:04]NVStorageSaveData kkm_last_timestamp [13:52:04]File name is /storage/kkm_last_timestamp [13:52:04]Write 4 bytes [13:52:04]OFD Sender: Processing packet 77060 [packets to send 129, broken 128] [13:52:04]ProducePacketName [13:52:04]name=ofd_packets/00077060 [13:52:04]OFD Sender: To server: pG, [13:52:04]CommunicateWithHost lk.salyk.kg:30040 [13:52:04]ConnectInit lk.salyk.kg [13:52:04]NVStorageSaveData done [13:52:04]ExternCall_PrintAddStr [13:52:04]wPrintStart [13:52:04]Write to MH i2c: 01 00 00 E4 06 EA [13:52:04]Write i2c OK [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: 01 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: 01 07 00 [13:52:04]MH_I2C_Read... [13:52:04]Read from MH i2c: 01 07 00 E4 06 00 00 00 00 00 FF 0F FF [13:52:04]RasterBufferAndPrint [13:52:04]line Счет N : (1)191646 [13:52:04]line ИНН: 02508201610067 [13:52:04]line Контрольно-Кассовый Чек [13:52:04]line ПРОДАЖА [13:52:04]line ТРК (МРК, ГНК) : 23 [13:52:04]line Товар: 2710194210 [13:52:04]line ДТ-К-5 [13:52:04]line 50.000 * 71.90 [13:52:04]line = 3595.00 [13:52:04]line НДС 12% НСП 1% [13:52:04]line > о реализуемом товаре [13:52:04]line ИТОГО: 3595.00 [13:52:04]line НСП 1% : 31.81 [13:52:04]line НДС 12% : 381.77 [13:52:04]line Наличными: 3595.00 [13:52:04]line Безнал.: 0.00 [13:52:04]line Место: АЗС № 106 "Партнер Нефть" [13:52:04]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:52:04]line СНО: Общий режим [13:52:04]line Чек 79 22.04.2024 13:52 [13:52:04]line Смена: 373 ФФД: 1.0 [13:52:04]line ЗНМ: 0300000141 [13:52:04]line РНМ: 0000000000091573 [13:52:04]line Версия ККМ: 001 [13:52:04]line [13:52:04]line Дисконтная программа [13:52:04]line ДТ [13:52:04]line номер 106 [13:52:04]line сэкономлено 50.00 сом [13:52:04]line ФМ: 0000000000874652 [13:52:04]line ФД: 77060 [13:52:04]line ФПД: 247735397219109 [13:52:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T135203&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77060&fm=247735397219109&tin=02508201610067®Number=0000000000091573&sum=359500 [13:52:04]Connected sock=11 [13:52:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 28 A5 04 01 4E 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4C 7C 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 7C 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 95 00 00 00 00 07 04 06 00 4C 7C 05 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 83 6B 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 04 2D 01 00 35 04 06 00 E1 50 64 59 7B 25 40 56 15 B6 77 53 F6 3F [13:52:04]written 0, free lines is 4095 [13:52:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 14 74 47 00 40 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 30 38 37 34 36 35 32 10 04 04 00 04 2D 01 00 F4 03 04 00 05 13 26 66 B6 04 01 00 00 07 87 31 3F 94 4A 8C 10 [13:52:05]CommunicateWithHost err = 0 [13:52:05]CheckOFDResponse [13:52:05]1017 (14) - 77093643461234 [13:52:05]1041 (16) - 0000000000874652 [13:52:05]1040 (4) - 77060 [13:52:05]1012 (4) - 22.04.2024 07:34 [13:52:05]1206 (1) - 0 [13:52:05]OFD Sender: Remove packet 77060 [13:52:05]ProducePacketName [13:52:05]name=ofd_packets/00077060 [13:52:05]NVStorageDeleteData [13:52:05]Write to MH i2c: 01 00 00 10 07 17 [13:52:05]Write i2c OK [13:52:05]MH_I2C_Read... [13:52:05]Read from MH i2c: 01 [13:52:05]MH_I2C_Read... [13:52:05]Read from MH i2c: 01 07 00 [13:52:05]MH_I2C_Read... [13:52:05]Read from MH i2c: 01 07 00 10 07 00 00 00 00 00 C5 0C EF [13:52:05]RasterBufferAndPrint [13:52:05]line [13:52:05]line [13:52:05]line [13:52:05]line [13:52:05]line [13:52:05]written 0, free lines is 3275 [13:52:05]MH_Cut [13:52:05]Write to MH i2c: D1 01 00 17 07 01 F0 [13:52:05]Write i2c OK [13:52:05]MH_I2C_Read... [13:52:05]Read from MH i2c: D1 [13:52:05]MH_I2C_Read... [13:52:05]Read from MH i2c: D1 01 00 [13:52:05]MH_I2C_Read... [13:52:05]Read from MH i2c: D1 01 00 17 07 00 EF [13:52:05]Write to MH i2c: 01 00 00 18 07 1F [13:52:05]Write i2c OK [13:52:05]MH_I2C_Read... [13:52:05]OFD Sender: No OFD packet to send [13:52:06]*** Cut start [13:52:06]*** Partial cut [13:52:06]*** CUTSNS_PIN = 1 [13:52:06]*** CUTSNS_PIN = 0 [13:52:06]*** Brake cut motor [13:52:06]Read from MH i2c: 01 [13:52:06]MH_I2C_Read... [13:52:06]*** Stop cut motor [13:52:06]*** Cut end [13:52:06]Read from MH i2c: 01 07 00 [13:52:06]MH_I2C_Read... [13:52:06]Read from MH i2c: 01 07 00 18 07 00 00 00 00 00 FF 0F 34 [13:52:06]process_action close_receipt done [13:52:06]requested_data is exist [13:52:06]produce_requested_data [13:52:06]requested_item fm.sn is exist - process it [13:52:06]wFMCommunicate request_size=4 [13:52:06]MH_SAM_APDU [13:52:06]CAPDU: 80 11 00 00 [13:52:06]Write to MH i2c: E2 08 00 19 07 80 11 00 00 00 00 00 00 9A [13:52:06]Write i2c OK [13:52:06]MH_I2C_Read... [13:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:06]Read from MH i2c: E2 [13:52:06]MH_I2C_Read... [13:52:06]Read from MH i2c: E2 17 00 [13:52:06]MH_I2C_Read... [13:52:06]Read from MH i2c: E2 17 00 19 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 ED [13:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:52:06]wFMCommunicate OK [13:52:06]requested_item fd.num is exist - process it [13:52:06]SAM_PROTO_GetFieldsCounters [13:52:06]wFMCommunicate request_size=4 [13:52:06]MH_SAM_APDU [13:52:06]CAPDU: 80 13 00 00 [13:52:06]Write to MH i2c: E2 08 00 1A 07 80 13 00 00 00 00 00 00 9D [13:52:06]Write i2c OK [13:52:06]MH_I2C_Read... [13:52:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:06]Read from MH i2c: E2 [13:52:06]MH_I2C_Read... [13:52:06]Read from MH i2c: E2 62 00 [13:52:06]MH_I2C_Read... [13:52:06]Read from MH i2c: E2 62 00 1A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 04 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [13:52:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 04 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:52:06]wFMCommunicate OK [13:52:06]SAM_PROTO_GetFieldsCounters done [13:52:06]requested_item shift.num is exist - process it [13:52:06]requested_item shift.opened is exist - process it [13:52:06]req_shift_opened [13:52:06]FM_GetShiftState [13:52:06]SAM_PROTO_GetShiftState [13:52:06]wFMCommunicate request_size=4 [13:52:06]MH_SAM_APDU [13:52:06]CAPDU: 80 13 01 00 [13:52:06]Write to MH i2c: E2 08 00 1B 07 80 13 01 00 00 00 00 00 9F [13:52:06]Write i2c OK [13:52:06]MH_I2C_Read... [13:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:07]Read from MH i2c: E2 [13:52:07]MH_I2C_Read... [13:52:07]Read from MH i2c: E2 0E 00 [13:52:07]MH_I2C_Read... [13:52:07]Read from MH i2c: E2 0E 00 1B 07 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 C6 [13:52:07]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:52:07]wFMCommunicate OK [13:52:07]SAM_PROTO_GetShiftState done [13:52:07]FM_GetShiftState done [13:52:07]req_shift_opened done [13:52:07]requested_item shift.open_date is exist - process it [13:52:07]req_shift_open_date [13:52:07]req_shift_open_date done [13:52:07]produce_requested_data done [13:52:07]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77060,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [13:52:07]process_action_free close_receipt [13:52:07]json_value_free [13:52:07]json_value_free done [13:52:07]process_json_proto returns [13:52:07]Send response to host [13:52:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77060,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [13:52:07]free response buf [13:52:07]execute_script done [13:52:07]execute_script returns [13:52:07]free content buf [13:52:07]Sock 8.Close socket [13:52:07]Sock 8.Thread stoped [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:54:56]accept exits with 10 [13:54:56]New connection [13:54:56]New thread 3067338084 created [13:54:56]Thread 3067481444 joined [13:54:56]Waiting for new connection... [13:54:56] Sock 10.Parse request [13:54:56]Sock 10.Check first char [13:54:56]Sock 10.First char is OK [13:54:56]request: POST /json_proto HTTP/1.0 [13:54:56]Method: POST [13:54:56]URL: /json_proto [13:54:56]Method is POST - this is cgi request [13:54:56]url: /json_proto [13:54:56]query_string will be loaded in cgi processing [13:54:56]execute_cgi json_proto POST (null) [13:54:56]execute_cgi path=json_proto method=POST [13:54:56]POST find Content-Length [13:54:56]Host: 172.17.62.5:8080 [13:54:56]Content-Length: 990 [13:54:56]Content-Type: application/json [13:54:56] [13:54:56]POST finish read [13:54:56]Found Content-Length = 990 [13:54:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 63.100, "sum" : 2000.27, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 63.10 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:56]execute_script... [13:54:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 63.100, "sum" : 2000.27, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 63.10 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:56]POST & json_proto [13:54:56]process_json_proto [13:54:56]json parsed OK: [13:54:56]protocol is kg_v1.0 [13:54:56]action value=close_receipt [13:54:56]process_action close_receipt [13:54:56]cmd_close_receipt [13:54:56]MH_GetDate [13:54:56]Write to MH i2c: F0 00 00 1C 07 12 [13:54:56]Write i2c OK [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: F0 [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: F0 09 00 [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: F0 09 00 1C 07 00 30 6C 26 66 F4 E9 65 64 E9 [13:54:56]GetLastDocTimeStamp 1713793923 [13:54:56]current date 1713794096 [13:54:56]FM_GetShiftState [13:54:56]SAM_PROTO_GetShiftState [13:54:56]wFMCommunicate request_size=4 [13:54:56]MH_SAM_APDU [13:54:56]CAPDU: 80 13 01 00 [13:54:56]Write to MH i2c: E2 08 00 1D 07 80 13 01 00 00 00 00 00 A1 [13:54:56]Write i2c OK [13:54:56]MH_I2C_Read... [13:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:56]Read from MH i2c: E2 [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: E2 0E 00 [13:54:56]MH_I2C_Read... [13:54:56]Read from MH i2c: E2 0E 00 1D 07 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 C8 [13:54:56]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:54:56]wFMCommunicate OK [13:54:56]SAM_PROTO_GetShiftState done [13:54:56]FM_GetShiftState done [13:54:56]opened in 1713745124 [13:54:56]opened+sec_in_day 1713831524 [13:54:56]quantity*price = 200027 [13:54:56]sum+1 = 200028 [13:54:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 80 22.04.2024 13:54 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 63.10 сом ФМ: 0000000000874652 ФД: 77061 ФПД: 145751106127789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T135456&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77061&fm=145751106127789&tin=02508201610067®Number=0000000000091573&sum=200000 [13:54:57]StoreToDocumentArchive [13:54:57]shift 373 fd 77061 [13:54:57]save to /storage/0373/doc_00077061 [13:54:57]save last doc name /storage/0373/doc_00077061 to /storage/kkm_last_doc_name [13:54:57]save OK [13:54:57]Clear old archive folders... [13:54:57]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:54:57]tlvbuf is 00BBC360 [13:54:57]SAM_PROTO_ClearQueue [13:54:57]wFMCommunicate request_size=4 [13:54:57]MH_SAM_APDU [13:54:57]CAPDU: 80 09 00 00 [13:54:57]Write to MH i2c: E2 08 00 2A 07 80 09 00 00 00 00 00 00 A3 [13:54:57]Write i2c OK [13:54:57]MH_I2C_Read... [13:54:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:57]Read from MH i2c: E2 [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: E2 03 00 [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: E2 03 00 2A 07 00 90 00 A5 [13:54:57]RAPDU: 90 00 [13:54:57]wFMCommunicate OK [13:54:57]SAM_PROTO_ClearQueue done [13:54:57]KKMCreateOFDPacket [13:54:57]OFDProtocolAddRootSTLVToBuf [13:54:57]FM_MakeSignedData [13:54:57]FM_MakeSignedData [13:54:57]SAM_PROTO_SignData [13:54:57]wFMCommunicate request_size=4 [13:54:57]MH_SAM_APDU [13:54:57]CAPDU: 80 0D 01 02 [13:54:57]Write to MH i2c: E2 08 00 2B 07 80 0D 01 02 00 00 00 00 AB [13:54:57]Write i2c OK [13:54:57]MH_I2C_Read... [13:54:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:57]Read from MH i2c: E2 [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: E2 03 00 [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: E2 03 00 2B 07 00 90 00 A6 [13:54:57]RAPDU: 90 00 [13:54:57]wFMCommunicate OK [13:54:57]wFMCommunicate request_size=255 [13:54:57]MH_SAM_APDU [13:54:57]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7C F6 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 5B 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 50 00 00 00 F4 03 04 00 30 6C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 05 2D 01 00 35 04 06 00 84 8F [13:54:57]Write to MH i2c: E2 02 01 2C 07 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7C F6 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 5B 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 50 00 00 00 F4 03 04 00 30 6C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 05 2D 01 00 35 04 06 00 84 8F 00 00 B7 [13:54:57]Write i2c OK [13:54:57]MH_I2C_Read... [13:54:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:57]Read from MH i2c: E2 [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: E2 03 00 [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: E2 03 00 2C 07 00 90 00 A7 [13:54:57]RAPDU: 90 00 [13:54:57]wFMCommunicate OK [13:54:57]wFMCommunicate request_size=9 [13:54:57]MH_SAM_APDU [13:54:57]CAPDU: 80 0D 02 02 04 52 E8 07 AD [13:54:57]Write to MH i2c: E2 0C 00 2D 07 80 0D 02 02 04 00 52 E8 07 AD 00 00 A4 [13:54:57]Write i2c OK [13:54:57]MH_I2C_Read... [13:54:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:57]Read from MH i2c: E2 [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: E2 03 00 [13:54:57]MH_I2C_Read... [13:54:57]Read from MH i2c: E2 03 00 2D 07 00 90 00 A8 [13:54:57]RAPDU: 90 00 [13:54:57]wFMCommunicate OK [13:54:57]wFMCommunicate request_size=4 [13:54:57]MH_SAM_APDU [13:54:57]CAPDU: 80 0D 03 02 [13:54:57]Write to MH i2c: E2 08 00 2E 07 80 0D 03 02 00 00 00 00 B0 [13:54:57]Write i2c OK [13:54:57]MH_I2C_Read... [13:54:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:58]Read from MH i2c: E2 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: E2 0B 00 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: E2 0B 00 2E 07 00 7A 5D C8 8D 44 8C 63 21 90 00 31 [13:54:58]RAPDU: 7A 5D C8 8D 44 8C 63 21 90 00 [13:54:58]wFMCommunicate OK [13:54:58]SAM_PROTO_SignData done [13:54:58]FM_MakeSignedData done [13:54:58]CreateOFDProtocolMessage [13:54:58]wFMCommunicate request_size=4 [13:54:58]MH_SAM_APDU [13:54:58]CAPDU: 80 11 00 00 [13:54:58]Write to MH i2c: E2 08 00 2F 07 80 11 00 00 00 00 00 00 B0 [13:54:58]Write i2c OK [13:54:58]MH_I2C_Read... [13:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:58]Read from MH i2c: E2 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: E2 17 00 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: E2 17 00 2F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 03 [13:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:54:58]wFMCommunicate OK [13:54:58]CreateOFDProtocolMessage done [13:54:58]OFDSenderStorePacket 77061 [13:54:58]StoreOFDPacket docnum=77061 [13:54:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 AD 74 06 01 66 F7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7C F6 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 5B 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 50 00 00 00 F4 03 04 00 30 6C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 05 2D 01 00 35 04 06 00 84 8F 52 E8 07 AD 7A 5D C8 8D 44 8C 63 21 [13:54:58]CheckFolder [13:54:58]dirname=/storage/ofd_packets [13:54:58]CheckFolder done [13:54:58]ProducePacketName [13:54:58]name=ofd_packets/00077061 [13:54:58]NVStorageSaveData ofd_packets/00077061 [13:54:58]File name is /storage/ofd_packets/00077061 [13:54:58]Write 300 bytes [13:54:58]NVStorageSaveData done [13:54:58]OFDSenderStorePacket done [13:54:58]KKMCreateOFDPacket done [13:54:58]NVStorageSaveData kkm_last_timestamp [13:54:58]File name is /storage/kkm_last_timestamp [13:54:58]Write 4 bytes [13:54:58]NVStorageSaveData done [13:54:58]ExternCall_PrintAddStr [13:54:58]wPrintStart [13:54:58]Write to MH i2c: 01 00 00 30 07 37 [13:54:58]Write i2c OK [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: 01 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: 01 07 00 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: 01 07 00 30 07 00 00 00 00 00 FF 0F 4C [13:54:58]RasterBufferAndPrint [13:54:58]line Счет N : (1)191645 [13:54:58]line ИНН: 02508201610067 [13:54:58]line Контрольно-Кассовый Чек [13:54:58]line ПРОДАЖА [13:54:58]line ТРК (МРК, ГНК) : 71 [13:54:58]line Товар: 2711190000 [13:54:58]line ГАЗ-К-5 [13:54:58]line 63.100 * 31.70 [13:54:58]line = 2000.27 [13:54:58]line НДС 12% НСП 1% [13:54:58]line > о реализуемом товаре [13:54:58]line ОКРУГЛЕНИЕ: -0.27 [13:54:58]line ИТОГО: 2000.00 [13:54:58]line Внесено: 2000.00 [13:54:58]line СДАЧА: 0.00 [13:54:58]line НСП 1% : 17.70 [13:54:58]line НДС 12% : 212.42 [13:54:58]line Наличными: 2000.00 [13:54:58]line Безнал.: 0.00 [13:54:58]line Место: АЗС № 106 "Партнер Нефть" [13:54:58]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:54:58]line СНО: Общий режим [13:54:58]line Чек 80 22.04.2024 13:54 [13:54:58]line Смена: 373 ФФД: 1.0 [13:54:58]line ЗНМ: 0300000141 [13:54:58]line РНМ: 0000000000091573 [13:54:58]line Версия ККМ: 001 [13:54:58]line [13:54:58]line Дисконтная программа [13:54:58]line СУГ [13:54:58]line номер 106 [13:54:58]line сэкономлено 63.10 сом [13:54:58]line ФМ: 0000000000874652 [13:54:58]line ФД: 77061 [13:54:58]line ФПД: 145751106127789 [13:54:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T135456&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77061&fm=145751106127789&tin=02508201610067®Number=0000000000091573&sum=200000 [13:54:58]written 0, free lines is 4095 [13:54:58]OFD Sender: Processing packet 77061 [packets to send 129, broken 128] [13:54:58]ProducePacketName [13:54:58]name=ofd_packets/00077061 [13:54:58]OFD Sender: To server: pG, [13:54:58]CommunicateWithHost lk.salyk.kg:30040 [13:54:58]ConnectInit lk.salyk.kg [13:54:58]Connected sock=9 [13:54:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 AD 74 06 01 66 F7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7C F6 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 5B 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 50 00 00 00 F4 03 04 00 30 6C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 05 2D 01 00 35 04 06 00 84 8F 52 E8 07 AD 7A 5D C8 8D 44 8C 63 21 [13:54:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 D4 DD 47 00 54 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 05 2D 01 00 F4 03 04 00 B2 13 26 66 B6 04 01 00 00 D0 47 CD AA 4E AB E2 9B [13:54:58]CommunicateWithHost err = 0 [13:54:58]CheckOFDResponse [13:54:58]1017 (14) - 77093643461234 [13:54:58]1041 (16) - 0000000000874652 [13:54:58]1040 (4) - 77061 [13:54:58]1012 (4) - 22.04.2024 07:37 [13:54:58]1206 (1) - 0 [13:54:58]OFD Sender: Remove packet 77061 [13:54:58]ProducePacketName [13:54:58]name=ofd_packets/00077061 [13:54:58]NVStorageDeleteData [13:54:58]Write to MH i2c: 01 00 00 5F 07 66 [13:54:58]Write i2c OK [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: 01 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: 01 07 00 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: 01 07 00 5F 07 00 00 00 00 00 A3 0C 1C [13:54:58]RasterBufferAndPrint [13:54:58]line [13:54:58]line [13:54:58]line [13:54:58]line [13:54:58]line [13:54:58]written 0, free lines is 3244 [13:54:58]MH_Cut [13:54:58]Write to MH i2c: D1 01 00 66 07 01 3F [13:54:58]Write i2c OK [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: D1 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: D1 01 00 [13:54:58]MH_I2C_Read... [13:54:58]Read from MH i2c: D1 01 00 66 07 00 3E [13:54:58]Write to MH i2c: 01 00 00 67 07 6E [13:54:58]Write i2c OK [13:54:58]MH_I2C_Read... [13:54:59]OFD Sender: No OFD packet to send [13:54:59]*** Cut start [13:54:59]*** Partial cut [13:54:59]*** CUTSNS_PIN = 1 [13:54:59]*** CUTSNS_PIN = 0 [13:54:59]*** Brake cut motor [13:54:59]Read from MH i2c: 01 [13:54:59]MH_I2C_Read... [13:54:59]*** Stop cut motor [13:54:59]*** Cut end [13:54:59]Read from MH i2c: 01 07 00 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: 01 07 00 67 07 00 00 00 00 00 FF 0F 83 [13:55:00]process_action close_receipt done [13:55:00]requested_data is exist [13:55:00]produce_requested_data [13:55:00]requested_item fm.sn is exist - process it [13:55:00]wFMCommunicate request_size=4 [13:55:00]MH_SAM_APDU [13:55:00]CAPDU: 80 11 00 00 [13:55:00]Write to MH i2c: E2 08 00 68 07 80 11 00 00 00 00 00 00 E9 [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:00]Read from MH i2c: E2 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 17 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 17 00 68 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 3C [13:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:55:00]wFMCommunicate OK [13:55:00]requested_item fd.num is exist - process it [13:55:00]SAM_PROTO_GetFieldsCounters [13:55:00]wFMCommunicate request_size=4 [13:55:00]MH_SAM_APDU [13:55:00]CAPDU: 80 13 00 00 [13:55:00]Write to MH i2c: E2 08 00 69 07 80 13 00 00 00 00 00 00 EC [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:00]Read from MH i2c: E2 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 62 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 62 00 69 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 05 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [13:55:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 05 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:00]wFMCommunicate OK [13:55:00]SAM_PROTO_GetFieldsCounters done [13:55:00]requested_item shift.num is exist - process it [13:55:00]requested_item shift.opened is exist - process it [13:55:00]req_shift_opened [13:55:00]FM_GetShiftState [13:55:00]SAM_PROTO_GetShiftState [13:55:00]wFMCommunicate request_size=4 [13:55:00]MH_SAM_APDU [13:55:00]CAPDU: 80 13 01 00 [13:55:00]Write to MH i2c: E2 08 00 6A 07 80 13 01 00 00 00 00 00 EE [13:55:00]Write i2c OK [13:55:00]MH_I2C_Read... [13:55:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:00]Read from MH i2c: E2 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 0E 00 [13:55:00]MH_I2C_Read... [13:55:00]Read from MH i2c: E2 0E 00 6A 07 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 15 [13:55:00]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:55:00]wFMCommunicate OK [13:55:00]SAM_PROTO_GetShiftState done [13:55:00]FM_GetShiftState done [13:55:00]req_shift_opened done [13:55:00]requested_item shift.open_date is exist - process it [13:55:00]req_shift_open_date [13:55:00]req_shift_open_date done [13:55:00]produce_requested_data done [13:55:00]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77061,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [13:55:00]process_action_free close_receipt [13:55:00]json_value_free [13:55:00]json_value_free done [13:55:00]process_json_proto returns [13:55:00]Send response to host [13:55:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77061,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [13:55:00]free response buf [13:55:00]execute_script done [13:55:00]execute_script returns [13:55:00]free content buf [13:55:00]Sock 10.Close socket [13:55:00]Sock 10.Thread stoped [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:52]accept exits with 8 [13:55:52]New connection [13:55:52]New thread 3067481444 created [13:55:52]Thread 3067338084 joined [13:55:52]Waiting for new connection... [13:55:52] Sock 8.Parse request [13:55:52]Sock 8.Check first char [13:55:52]Sock 8.First char is OK [13:55:52]request: POST /json_proto HTTP/1.0 [13:55:52]Method: POST [13:55:52]URL: /json_proto [13:55:52]Method is POST - this is cgi request [13:55:52]url: /json_proto [13:55:52]query_string will be loaded in cgi processing [13:55:52]execute_cgi json_proto POST (null) [13:55:52]execute_cgi path=json_proto method=POST [13:55:52]POST find Content-Length [13:55:52]Host: 172.17.62.5:8080 [13:55:52]Content-Length: 682 [13:55:52]Content-Type: application/json [13:55:52] [13:55:52]POST finish read [13:55:52]Found Content-Length = 682 [13:55:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 31.060, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:52]execute_script... [13:55: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)191648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 31.060, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:52]POST & json_proto [13:55:52]process_json_proto [13:55:52]json parsed OK: [13:55:52]protocol is kg_v1.0 [13:55:52]action value=close_receipt [13:55:52]process_action close_receipt [13:55:52]cmd_close_receipt [13:55:52]MH_GetDate [13:55:52]Write to MH i2c: F0 00 00 6B 07 61 [13:55:52]Write i2c OK [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: F0 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: F0 09 00 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: F0 09 00 6B 07 00 68 6C 26 66 F4 E9 65 64 70 [13:55:52]GetLastDocTimeStamp 1713794096 [13:55:52]current date 1713794152 [13:55:52]FM_GetShiftState [13:55:52]SAM_PROTO_GetShiftState [13:55:52]wFMCommunicate request_size=4 [13:55:52]MH_SAM_APDU [13:55:52]CAPDU: 80 13 01 00 [13:55:52]Write to MH i2c: E2 08 00 6C 07 80 13 01 00 00 00 00 00 F0 [13:55:52]Write i2c OK [13:55:52]MH_I2C_Read... [13:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:52]Read from MH i2c: E2 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 0E 00 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 0E 00 6C 07 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 17 [13:55:52]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:55:52]wFMCommunicate OK [13:55:52]SAM_PROTO_GetShiftState done [13:55:52]FM_GetShiftState done [13:55:52]opened in 1713745124 [13:55:52]opened+sec_in_day 1713831524 [13:55:52]quantity*price = 200026 [13:55:52]sum+1 = 200027 [13:55:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 81 22.04.2024 13:55 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77062 ФПД: 94871194776023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T135552&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77062&fm=94871194776023&tin=02508201610067®Number=0000000000091573&sum=200000 [13:55:53]StoreToDocumentArchive [13:55:53]shift 373 fd 77062 [13:55:53]save to /storage/0373/doc_00077062 [13:55:53]save last doc name /storage/0373/doc_00077062 to /storage/kkm_last_doc_name [13:55:53]save OK [13:55:53]Clear old archive folders... [13:55:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:53]tlvbuf is 00BCBD50 [13:55:53]SAM_PROTO_ClearQueue [13:55:53]wFMCommunicate request_size=4 [13:55:53]MH_SAM_APDU [13:55:53]CAPDU: 80 09 00 00 [13:55:53]Write to MH i2c: E2 08 00 79 07 80 09 00 00 00 00 00 00 F2 [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:53]Read from MH i2c: E2 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 03 00 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 03 00 79 07 00 90 00 F4 [13:55:53]RAPDU: 90 00 [13:55:53]wFMCommunicate OK [13:55:53]SAM_PROTO_ClearQueue done [13:55:53]KKMCreateOFDPacket [13:55:53]OFDProtocolAddRootSTLVToBuf [13:55:53]FM_MakeSignedData [13:55:53]FM_MakeSignedData [13:55:53]SAM_PROTO_SignData [13:55:53]wFMCommunicate request_size=4 [13:55:53]MH_SAM_APDU [13:55:53]CAPDU: 80 0D 01 02 [13:55:53]Write to MH i2c: E2 08 00 7A 07 80 0D 01 02 00 00 00 00 FA [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:53]Read from MH i2c: E2 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 03 00 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [13:55:53]RAPDU: 90 00 [13:55:53]wFMCommunicate OK [13:55:53]wFMCommunicate request_size=255 [13:55:53]MH_SAM_APDU [13:55:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 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 51 00 00 00 F4 03 04 00 68 6C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 06 2D 01 00 35 04 06 00 56 [13:55:53]Write to MH i2c: E2 02 01 7B 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 35 FF 03 08 00 03 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 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 51 00 00 00 F4 03 04 00 68 6C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 06 2D 01 00 35 04 06 00 56 00 00 09 [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:53]Read from MH i2c: E2 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 03 00 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [13:55:53]RAPDU: 90 00 [13:55:53]wFMCommunicate OK [13:55:53]wFMCommunicate request_size=10 [13:55:53]MH_SAM_APDU [13:55:53]CAPDU: 80 0D 02 02 05 48 EB DD 31 D7 [13:55:53]Write to MH i2c: E2 0D 00 7C 07 80 0D 02 02 05 00 48 EB DD 31 D7 00 00 1F [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:53]Read from MH i2c: E2 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 03 00 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 03 00 7C 07 00 90 00 F7 [13:55:53]RAPDU: 90 00 [13:55:53]wFMCommunicate OK [13:55:53]wFMCommunicate request_size=4 [13:55:53]MH_SAM_APDU [13:55:53]CAPDU: 80 0D 03 02 [13:55:53]Write to MH i2c: E2 08 00 7D 07 80 0D 03 02 00 00 00 00 FF [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:53]Read from MH i2c: E2 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 0B 00 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 0B 00 7D 07 00 FF C6 9D 53 5C 0F E7 10 90 00 17 [13:55:53]RAPDU: FF C6 9D 53 5C 0F E7 10 90 00 [13:55:53]wFMCommunicate OK [13:55:53]SAM_PROTO_SignData done [13:55:53]FM_MakeSignedData done [13:55:53]CreateOFDProtocolMessage [13:55:53]wFMCommunicate request_size=4 [13:55:53]MH_SAM_APDU [13:55:53]CAPDU: 80 11 00 00 [13:55:53]Write to MH i2c: E2 08 00 7E 07 80 11 00 00 00 00 00 00 FF [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:53]Read from MH i2c: E2 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 17 00 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 17 00 7E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 52 [13:55:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:55:53]wFMCommunicate OK [13:55:53]CreateOFDProtocolMessage done [13:55:53]OFDSenderStorePacket 77062 [13:55:53]StoreOFDPacket docnum=77062 [13:55:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 8B 4B 07 01 6F 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 35 FF 03 08 00 03 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 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 51 00 00 00 F4 03 04 00 68 6C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 06 2D 01 00 35 04 06 00 56 48 EB DD 31 D7 FF C6 9D 53 5C 0F E7 10 [13:55:53]CheckFolder [13:55:53]dirname=/storage/ofd_packets [13:55:53]CheckFolder done [13:55:53]ProducePacketName [13:55:53]name=ofd_packets/00077062 [13:55:53]NVStorageSaveData ofd_packets/00077062 [13:55:53]File name is /storage/ofd_packets/00077062 [13:55:53]Write 301 bytes [13:55:53]NVStorageSaveData done [13:55:53]OFDSenderStorePacket done [13:55:53]KKMCreateOFDPacket done [13:55:53]NVStorageSaveData kkm_last_timestamp [13:55:53]File name is /storage/kkm_last_timestamp [13:55:53]Write 4 bytes [13:55:53]NVStorageSaveData done [13:55:53]OFD Sender: Processing packet 77062 [packets to send 129, broken 128] [13:55:53]ProducePacketName [13:55:53]name=ofd_packets/00077062 [13:55:53]OFD Sender: To server: pG, [13:55:53]CommunicateWithHost lk.salyk.kg:30040 [13:55:53]ConnectInit lk.salyk.kg [13:55:53]ExternCall_PrintAddStr [13:55:53]wPrintStart [13:55:53]Write to MH i2c: 01 00 00 7F 07 86 [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: 01 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: 01 07 00 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: 01 07 00 7F 07 00 00 00 00 00 FF 0F 9B [13:55:53]RasterBufferAndPrint [13:55:53]line Счет N : (1)191648 [13:55:53]line ИНН: 02508201610067 [13:55:53]line Контрольно-Кассовый Чек [13:55:53]line ПРОДАЖА [13:55:53]line ТРК (МРК, ГНК) : 43 [13:55:53]line Товар: 2710124130 [13:55:53]line Аи-92-К-5 [13:55:53]line 31.060 * 64.40 [13:55:53]line = 2000.26 [13:55:53]line НДС 12% НСП 1% [13:55:53]line > о реализуемом товаре [13:55:53]line ОКРУГЛЕНИЕ: -0.26 [13:55:53]line ИТОГО: 2000.00 [13:55:53]line Внесено: 2000.00 [13:55:53]line СДАЧА: 0.00 [13:55:53]line НСП 1% : 17.70 [13:55:53]line НДС 12% : 212.42 [13:55:53]line Наличными: 2000.00 [13:55:53]line Безнал.: 0.00 [13:55:53]line Место: АЗС № 106 "Партнер Нефть" [13:55:53]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:55:53]line СНО: Общий режим [13:55:53]line Чек 81 22.04.2024 13:55 [13:55:53]line Смена: 373 ФФД: 1.0 [13:55:53]line ЗНМ: 0300000141 [13:55:53]line РНМ: 0000000000091573 [13:55:53]line Версия ККМ: 001 [13:55:53]line ФМ: 0000000000874652 [13:55:53]line ФД: 77062 [13:55:53]line ФПД: 94871194776023 [13:55:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T135552&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77062&fm=94871194776023&tin=02508201610067®Number=0000000000091573&sum=200000 [13:55:54]written 0, free lines is 4095 [13:55:54]Connected sock=12 [13:55:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 8B 4B 07 01 6F 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 35 FF 03 08 00 03 54 79 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 5A 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 51 00 00 00 F4 03 04 00 68 6C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 06 2D 01 00 35 04 06 00 56 48 EB DD 31 D7 FF C6 9D 53 5C 0F E7 10 [13:55:54]Write to MH i2c: 01 00 00 A9 07 B0 [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: 01 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: 01 07 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: 01 07 00 A9 07 00 00 00 00 00 E6 0C A9 [13:55:54]RasterBufferAndPrint [13:55:54]line [13:55:54]line [13:55:54]line [13:55:54]line [13:55:54]line [13:55:54]written 0, free lines is 3308 [13:55:54]MH_Cut [13:55:54]Write to MH i2c: D1 01 00 B0 07 01 89 [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: D1 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: D1 01 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: D1 01 00 B0 07 00 88 [13:55:54]Write to MH i2c: 01 00 00 B1 07 B8 [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 DF 8C 47 00 09 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 06 2D 01 00 F4 03 04 00 EB 13 26 66 B6 04 01 00 00 62 02 FC 08 04 B1 7C 68 [13:55:54]CommunicateWithHost err = 0 [13:55:54]CheckOFDResponse [13:55:54]1017 (14) - 77093643461234 [13:55:54]1041 (16) - 0000000000874652 [13:55:54]1040 (4) - 77062 [13:55:54]1012 (4) - 22.04.2024 07:38 [13:55:54]1206 (1) - 0 [13:55:54]OFD Sender: Remove packet 77062 [13:55:54]ProducePacketName [13:55:54]name=ofd_packets/00077062 [13:55:54]NVStorageDeleteData [13:55:55]OFD Sender: No OFD packet to send [13:55:55]*** Cut start [13:55:55]*** Partial cut [13:55:55]*** CUTSNS_PIN = 1 [13:55:55]*** CUTSNS_PIN = 0 [13:55:55]*** Brake cut motor [13:55:56]Read from MH i2c: 01 [13:55:56]MH_I2C_Read... [13:55:56]*** Stop cut motor [13:55:56]*** Cut end [13:55:56]Read from MH i2c: 01 07 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: 01 07 00 B1 07 00 00 00 00 00 FF 0F CD [13:55:56]process_action close_receipt done [13:55:56]requested_data is exist [13:55:56]produce_requested_data [13:55:56]requested_item fm.sn is exist - process it [13:55:56]wFMCommunicate request_size=4 [13:55:56]MH_SAM_APDU [13:55:56]CAPDU: 80 11 00 00 [13:55:56]Write to MH i2c: E2 08 00 B2 07 80 11 00 00 00 00 00 00 33 [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:56]Read from MH i2c: E2 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 17 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 17 00 B2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 86 [13:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:55:56]wFMCommunicate OK [13:55:56]requested_item fd.num is exist - process it [13:55:56]SAM_PROTO_GetFieldsCounters [13:55:56]wFMCommunicate request_size=4 [13:55:56]MH_SAM_APDU [13:55:56]CAPDU: 80 13 00 00 [13:55:56]Write to MH i2c: E2 08 00 B3 07 80 13 00 00 00 00 00 00 36 [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:56]Read from MH i2c: E2 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 62 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 62 00 B3 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 06 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [13:55:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 06 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:56]wFMCommunicate OK [13:55:56]SAM_PROTO_GetFieldsCounters done [13:55:56]requested_item shift.num is exist - process it [13:55:56]requested_item shift.opened is exist - process it [13:55:56]req_shift_opened [13:55:56]FM_GetShiftState [13:55:56]SAM_PROTO_GetShiftState [13:55:56]wFMCommunicate request_size=4 [13:55:56]MH_SAM_APDU [13:55:56]CAPDU: 80 13 01 00 [13:55:56]Write to MH i2c: E2 08 00 B4 07 80 13 01 00 00 00 00 00 38 [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:56]Read from MH i2c: E2 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 0E 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 0E 00 B4 07 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 5F [13:55:56]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:55:56]wFMCommunicate OK [13:55:56]SAM_PROTO_GetShiftState done [13:55:56]FM_GetShiftState done [13:55:56]req_shift_opened done [13:55:56]requested_item shift.open_date is exist - process it [13:55:56]req_shift_open_date [13:55:56]req_shift_open_date done [13:55:56]produce_requested_data done [13:55:56]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77062,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [13:55:56]process_action_free close_receipt [13:55:56]json_value_free [13:55:56]json_value_free done [13:55:56]process_json_proto returns [13:55:56]Send response to host [13:55:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77062,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [13:55:56]free response buf [13:55:56]execute_script done [13:55:56]execute_script returns [13:55:56]free content buf [13:55:56]Sock 8.Close socket [13:55:56]Sock 8.Thread stoped [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:10]accept exits with 10 [13:57:10]New connection [13:57:10]New thread 3067338084 created [13:57:10]Thread 3067481444 joined [13:57:10]Waiting for new connection... [13:57:10] Sock 10.Parse request [13:57:10]Sock 10.Check first char [13:57:10]Sock 10.First char is OK [13:57:10]request: POST /json_proto HTTP/1.0 [13:57:10]Method: POST [13:57:10]URL: /json_proto [13:57:10]Method is POST - this is cgi request [13:57:10]url: /json_proto [13:57:10]query_string will be loaded in cgi processing [13:57:10]execute_cgi json_proto POST (null) [13:57:10]execute_cgi path=json_proto method=POST [13:57:10]POST find Content-Length [13:57:10]Host: 172.17.62.5:8080 [13:57:10]Content-Length: 671 [13:57:10]Content-Type: application/json [13:57:10] [13:57:10]POST finish read [13:57:10]Found Content-Length = 671 [13:57:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 10.100, "sum" : 660.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:10]execute_script... [13:57: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)191649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.40, "quantity" : 10.100, "sum" : 660.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:10]POST & json_proto [13:57:10]process_json_proto [13:57:10]json parsed OK: [13:57:10]protocol is kg_v1.0 [13:57:10]action value=close_receipt [13:57:10]process_action close_receipt [13:57:10]cmd_close_receipt [13:57:10]MH_GetDate [13:57:10]Write to MH i2c: F0 00 00 B5 07 AB [13:57:10]Write i2c OK [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: F0 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: F0 09 00 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: F0 09 00 B5 07 00 B7 6C 26 66 F4 E9 65 64 09 [13:57:10]GetLastDocTimeStamp 1713794152 [13:57:10]current date 1713794231 [13:57:10]FM_GetShiftState [13:57:10]SAM_PROTO_GetShiftState [13:57:10]wFMCommunicate request_size=4 [13:57:10]MH_SAM_APDU [13:57:10]CAPDU: 80 13 01 00 [13:57:10]Write to MH i2c: E2 08 00 B6 07 80 13 01 00 00 00 00 00 3A [13:57:10]Write i2c OK [13:57:10]MH_I2C_Read... [13:57:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:10]Read from MH i2c: E2 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: E2 0E 00 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: E2 0E 00 B6 07 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 61 [13:57:10]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:57:10]wFMCommunicate OK [13:57:10]SAM_PROTO_GetShiftState done [13:57:10]FM_GetShiftState done [13:57:10]opened in 1713745124 [13:57:10]opened+sec_in_day 1713831524 [13:57:10]quantity*price = 66054 [13:57:10]sum+1 = 66055 [13:57:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.84 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 82 22.04.2024 13:57 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77063 ФПД: 141087922287952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T135711&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77063&fm=141087922287952&tin=02508201610067®Number=0000000000091573&sum=66000 [13:57:11]StoreToDocumentArchive [13:57:11]shift 373 fd 77063 [13:57:11]save to /storage/0373/doc_00077063 [13:57:11]save last doc name /storage/0373/doc_00077063 to /storage/kkm_last_doc_name [13:57:11]save OK [13:57:11]Clear old archive folders... [13:57:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:57:11]tlvbuf is 00BCC5C0 [13:57:11]SAM_PROTO_ClearQueue [13:57:11]wFMCommunicate request_size=4 [13:57:11]MH_SAM_APDU [13:57:11]CAPDU: 80 09 00 00 [13:57:11]Write to MH i2c: E2 08 00 C3 07 80 09 00 00 00 00 00 00 3C [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:11]Read from MH i2c: E2 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 03 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 03 00 C3 07 00 90 00 3E [13:57:11]RAPDU: 90 00 [13:57:11]wFMCommunicate OK [13:57:11]SAM_PROTO_ClearQueue done [13:57:11]KKMCreateOFDPacket [13:57:11]OFDProtocolAddRootSTLVToBuf [13:57:11]FM_MakeSignedData [13:57:11]FM_MakeSignedData [13:57:11]SAM_PROTO_SignData [13:57:11]wFMCommunicate request_size=4 [13:57:11]MH_SAM_APDU [13:57:11]CAPDU: 80 0D 01 02 [13:57:11]Write to MH i2c: E2 08 00 C4 07 80 0D 01 02 00 00 00 00 44 [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:12]Read from MH i2c: E2 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: E2 03 00 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: E2 03 00 C4 07 00 90 00 3F [13:57:12]RAPDU: 90 00 [13:57:12]wFMCommunicate OK [13:57:12]wFMCommunicate request_size=255 [13:57:12]MH_SAM_APDU [13:57:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 06 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B7 6C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 07 2D 01 00 35 04 06 00 [13:57:12]Write to MH i2c: E2 02 01 C5 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 06 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B7 6C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 07 2D 01 00 35 04 06 00 00 00 50 [13:57:12]Write i2c OK [13:57:12]MH_I2C_Read... [13:57:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:12]Read from MH i2c: E2 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: E2 03 00 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: E2 03 00 C5 07 00 90 00 40 [13:57:12]RAPDU: 90 00 [13:57:12]wFMCommunicate OK [13:57:12]wFMCommunicate request_size=11 [13:57:12]MH_SAM_APDU [13:57:12]CAPDU: 80 0D 02 02 06 80 51 97 7D 75 50 [13:57:12]Write to MH i2c: E2 0E 00 C6 07 80 0D 02 02 06 00 80 51 97 7D 75 50 00 00 FD [13:57:12]Write i2c OK [13:57:12]MH_I2C_Read... [13:57:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:12]Read from MH i2c: E2 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: E2 03 00 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: E2 03 00 C6 07 00 90 00 41 [13:57:12]RAPDU: 90 00 [13:57:12]wFMCommunicate OK [13:57:12]wFMCommunicate request_size=4 [13:57:12]MH_SAM_APDU [13:57:12]CAPDU: 80 0D 03 02 [13:57:12]Write to MH i2c: E2 08 00 C7 07 80 0D 03 02 00 00 00 00 49 [13:57:12]Write i2c OK [13:57:12]MH_I2C_Read... [13:57:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:12]Read from MH i2c: E2 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: E2 0B 00 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: E2 0B 00 C7 07 00 4C 3B 3D 30 45 2A 6C 7D 90 00 96 [13:57:12]RAPDU: 4C 3B 3D 30 45 2A 6C 7D 90 00 [13:57:12]wFMCommunicate OK [13:57:12]SAM_PROTO_SignData done [13:57:12]FM_MakeSignedData done [13:57:12]CreateOFDProtocolMessage [13:57:12]wFMCommunicate request_size=4 [13:57:12]MH_SAM_APDU [13:57:12]CAPDU: 80 11 00 00 [13:57:12]Write to MH i2c: E2 08 00 C8 07 80 11 00 00 00 00 00 00 49 [13:57:12]Write i2c OK [13:57:12]MH_I2C_Read... [13:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:12]Read from MH i2c: E2 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: E2 17 00 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: E2 17 00 C8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 9C [13:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:57:12]wFMCommunicate OK [13:57:12]CreateOFDProtocolMessage done [13:57:12]OFDSenderStorePacket 77063 [13:57:12]StoreOFDPacket docnum=77063 [13:57:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 A6 4C 08 01 A6 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 06 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B7 6C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 07 2D 01 00 35 04 06 00 80 51 97 7D 75 50 4C 3B 3D 30 45 2A 6C 7D [13:57:12]CheckFolder [13:57:12]dirname=/storage/ofd_packets [13:57:12]CheckFolder done [13:57:12]ProducePacketName [13:57:12]name=ofd_packets/00077063 [13:57:12]NVStorageSaveData ofd_packets/00077063 [13:57:12]File name is /storage/ofd_packets/00077063 [13:57:12]Write 302 bytes [13:57:12]NVStorageSaveData done [13:57:12]OFDSenderStorePacket done [13:57:12]KKMCreateOFDPacket done [13:57:12]NVStorageSaveData kkm_last_timestamp [13:57:12]File name is /storage/kkm_last_timestamp [13:57:12]Write 4 bytes [13:57:12]NVStorageSaveData done [13:57:12]ExternCall_PrintAddStr [13:57:12]wPrintStart [13:57:12]Write to MH i2c: 01 00 00 C9 07 D0 [13:57:12]Write i2c OK [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: 01 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: 01 07 00 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: 01 07 00 C9 07 00 00 00 00 00 FF 0F E5 [13:57:12]RasterBufferAndPrint [13:57:12]line Счет N : (1)191649 [13:57:12]line ИНН: 02508201610067 [13:57:12]line Контрольно-Кассовый Чек [13:57:12]line ПРОДАЖА [13:57:12]line ТРК (МРК, ГНК) : 31 [13:57:12]line Товар: 2710124130 [13:57:12]line SUPER 92-К-5 [13:57:12]line 10.100 * 65.40 [13:57:12]line = 660.54 [13:57:12]line НДС 12% НСП 1% [13:57:12]line > о реализуемом товаре [13:57:12]line ОКРУГЛЕНИЕ: -0.54 [13:57:12]line ИТОГО: 660.00 [13:57:12]line Внесено: 660.00 [13:57:12]line СДАЧА: 0.00 [13:57:12]line НСП 1% : 5.84 [13:57:12]line НДС 12% : 70.15 [13:57:12]line Наличными: 660.00 [13:57:12]line Безнал.: 0.00 [13:57:12]line Место: АЗС № 106 "Партнер Нефть" [13:57:12]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [13:57:12]line СНО: Общий режим [13:57:12]line Чек 82 22.04.2024 13:57 [13:57:12]line Смена: 373 ФФД: 1.0 [13:57:12]line ЗНМ: 0300000141 [13:57:12]line РНМ: 0000000000091573 [13:57:12]line Версия ККМ: 001 [13:57:12]line ФМ: 0000000000874652 [13:57:12]line ФД: 77063 [13:57:12]line ФПД: 141087922287952 [13:57:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T135711&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77063&fm=141087922287952&tin=02508201610067®Number=0000000000091573&sum=66000 [13:57:12]OFD Sender: Processing packet 77063 [packets to send 129, broken 128] [13:57:12]ProducePacketName [13:57:12]name=ofd_packets/00077063 [13:57:12]OFD Sender: To server: pG, [13:57:12]CommunicateWithHost lk.salyk.kg:30040 [13:57:12]ConnectInit lk.salyk.kg [13:57:12]written 0, free lines is 4095 [13:57:12]Connected sock=9 [13:57:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 01 00 00 A6 4C 08 01 A6 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 8C 19 00 00 00 00 13 04 06 00 06 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 B7 6C 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 07 2D 01 00 35 04 06 00 80 51 97 7D 75 50 4C 3B 3D 30 45 2A 6C 7D [13:57:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 4E F9 47 00 12 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 07 2D 01 00 F4 03 04 00 39 14 26 66 B6 04 01 00 00 66 F0 5E 91 7D 82 29 20 [13:57:13]CommunicateWithHost err = 0 [13:57:13]CheckOFDResponse [13:57:13]1017 (14) - 77093643461234 [13:57:13]1041 (16) - 0000000000874652 [13:57:13]1040 (4) - 77063 [13:57:13]1012 (4) - 22.04.2024 07:39 [13:57:13]1206 (1) - 0 [13:57:13]OFD Sender: Remove packet 77063 [13:57:13]ProducePacketName [13:57:13]name=ofd_packets/00077063 [13:57:13]NVStorageDeleteData [13:57:13]Write to MH i2c: 01 00 00 F3 07 FA [13:57:13]Write i2c OK [13:57:13]MH_I2C_Read... [13:57:13]Read from MH i2c: 01 [13:57:13]MH_I2C_Read... [13:57:13]Read from MH i2c: 01 07 00 [13:57:13]MH_I2C_Read... [13:57:13]Read from MH i2c: 01 07 00 F3 07 00 00 00 00 00 EE 0C FB [13:57:13]RasterBufferAndPrint [13:57:13]line [13:57:13]line [13:57:13]line [13:57:13]line [13:57:13]line [13:57:13]written 0, free lines is 3318 [13:57:13]MH_Cut [13:57:13]Write to MH i2c: D1 01 00 FA 07 01 D3 [13:57:13]Write i2c OK [13:57:13]MH_I2C_Read... [13:57:13]Read from MH i2c: D1 [13:57:13]MH_I2C_Read... [13:57:13]Read from MH i2c: D1 01 00 [13:57:13]MH_I2C_Read... [13:57:13]Read from MH i2c: D1 01 00 FA 07 00 D2 [13:57:13]Write to MH i2c: 01 00 00 FB 07 02 [13:57:13]Write i2c OK [13:57:13]MH_I2C_Read... [13:57:13]OFD Sender: No OFD packet to send [13:57:13]*** Cut start [13:57:13]*** Partial cut [13:57:13]*** CUTSNS_PIN = 1 [13:57:14]*** CUTSNS_PIN = 0 [13:57:14]*** Brake cut motor [13:57:14]Read from MH i2c: 01 [13:57:14]MH_I2C_Read... [13:57:14]*** Stop cut motor [13:57:14]*** Cut end [13:57:14]Read from MH i2c: 01 07 00 [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: 01 07 00 FB 07 00 00 00 00 00 FF 0F 17 [13:57:14]process_action close_receipt done [13:57:14]requested_data is exist [13:57:14]produce_requested_data [13:57:14]requested_item fm.sn is exist - process it [13:57:14]wFMCommunicate request_size=4 [13:57:14]MH_SAM_APDU [13:57:14]CAPDU: 80 11 00 00 [13:57:14]Write to MH i2c: E2 08 00 FC 07 80 11 00 00 00 00 00 00 7D [13:57:14]Write i2c OK [13:57:14]MH_I2C_Read... [13:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:14]Read from MH i2c: E2 [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: E2 17 00 [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: E2 17 00 FC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 D0 [13:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [13:57:14]wFMCommunicate OK [13:57:14]requested_item fd.num is exist - process it [13:57:14]SAM_PROTO_GetFieldsCounters [13:57:14]wFMCommunicate request_size=4 [13:57:14]MH_SAM_APDU [13:57:14]CAPDU: 80 13 00 00 [13:57:14]Write to MH i2c: E2 08 00 FD 07 80 13 00 00 00 00 00 00 80 [13:57:14]Write i2c OK [13:57:14]MH_I2C_Read... [13:57:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:14]Read from MH i2c: E2 [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: E2 62 00 [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: E2 62 00 FD 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 07 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [13:57:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 07 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:14]wFMCommunicate OK [13:57:14]SAM_PROTO_GetFieldsCounters done [13:57:14]requested_item shift.num is exist - process it [13:57:14]requested_item shift.opened is exist - process it [13:57:14]req_shift_opened [13:57:14]FM_GetShiftState [13:57:14]SAM_PROTO_GetShiftState [13:57:14]wFMCommunicate request_size=4 [13:57:14]MH_SAM_APDU [13:57:14]CAPDU: 80 13 01 00 [13:57:14]Write to MH i2c: E2 08 00 FE 07 80 13 01 00 00 00 00 00 82 [13:57:14]Write i2c OK [13:57:14]MH_I2C_Read... [13:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:14]Read from MH i2c: E2 [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: E2 0E 00 [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: E2 0E 00 FE 07 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 A9 [13:57:14]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [13:57:14]wFMCommunicate OK [13:57:14]SAM_PROTO_GetShiftState done [13:57:14]FM_GetShiftState done [13:57:14]req_shift_opened done [13:57:14]requested_item shift.open_date is exist - process it [13:57:14]req_shift_open_date [13:57:14]req_shift_open_date done [13:57:14]produce_requested_data done [13:57:14]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77063,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [13:57:14]process_action_free close_receipt [13:57:14]json_value_free [13:57:14]json_value_free done [13:57:14]process_json_proto returns [13:57:14]Send response to host [13:57:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77063,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [13:57:14]free response buf [13:57:14]execute_script done [13:57:14]execute_script returns [13:57:14]free content buf [13:57:14]Sock 10.Close socket [13:57:14]Sock 10.Thread stoped [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:12]accept exits with 8 [14:00:12]New connection [14:00:12]New thread 3067481444 created [14:00:12]Thread 3067338084 joined [14:00:12]Waiting for new connection... [14:00:12] Sock 8.Parse request [14:00:12]Sock 8.Check first char [14:00:12]Sock 8.First char is OK [14:00:12]request: POST /json_proto HTTP/1.0 [14:00:12]Method: POST [14:00:12]URL: /json_proto [14:00:12]Method is POST - this is cgi request [14:00:12]url: /json_proto [14:00:12]query_string will be loaded in cgi processing [14:00:12]execute_cgi json_proto POST (null) [14:00:12]execute_cgi path=json_proto method=POST [14:00:12]POST find Content-Length [14:00:12]Host: 172.17.62.5:8080 [14:00:12]Content-Length: 1175 [14:00:12]Content-Type: application/json [14:00:12] [14:00:12]POST finish read [14:00:12]Found Content-Length = 1175 [14:00:12]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191651\u000A22.04.2024 13:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.530 x 64.40\u000A\u0418\u0422\u041E\u0413: 1000.13\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30035457\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:12]execute_script... [14:00:12]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 106\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)191651\u000A22.04.2024 13:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.530 x 64.40\u000A\u0418\u0422\u041E\u0413: 1000.13\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30035457\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:12]POST & json_proto [14:00:12]process_json_proto [14:00:12]json parsed OK: [14:00:12]protocol is kg_v1.0 [14:00:12]action value=print_text [14:00:12]process_action print_text [14:00:12]cmd_print_text [14:00:12]ExternCall_PrintAddStr [14:00:12]wPrintStart [14:00:12]Write to MH i2c: 01 00 00 FF 07 06 [14:00:12]Write i2c OK [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: 01 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: 01 07 00 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: 01 07 00 FF 07 00 00 00 00 00 FF 0F 1B [14:00:12]RasterBufferAndPrint [14:00:12]line *****ТОВАРНЫЙ ЧЕК***** [14:00:12]line АЗС 106 [14:00:12]line Партнер нефть [14:00:12]line 02508201610067 [14:00:12]line Кассир : Токторбаева Н. [14:00:12]line Счет N : (1)191651 [14:00:12]line 22.04.2024 13:41 [14:00:12]line ПРОДАЖА [14:00:12]line ТРК (МРК, ГНК): 33 [14:00:12]line Вид ГСМ : 2710124130 [14:00:12]line Аи-92-К-5 [14:00:12]line 15.530 x 64.40 [14:00:12]line ИТОГ: 1000.13 [14:00:12]line Тип оплаты: Талоны: ТК ГПНА Online [14:00:12]line 30035457 [14:00:12]line ______________________ [14:00:12]line (подпись) [14:00:12]written 0, free lines is 4095 [14:00:12]Write to MH i2c: 01 00 00 14 08 1C [14:00:12]Write i2c OK [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: 01 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: 01 07 00 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: 01 07 00 14 08 00 00 00 00 00 F4 0D 24 [14:00:12]RasterBufferAndPrint [14:00:12]line [14:00:12]line [14:00:12]line [14:00:12]line [14:00:12]line [14:00:12]written 0, free lines is 3574 [14:00:12]MH_Cut [14:00:12]Write to MH i2c: D1 01 00 1B 08 01 F5 [14:00:12]Write i2c OK [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: D1 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: D1 01 00 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: D1 01 00 1B 08 00 F4 [14:00:12]Write to MH i2c: 01 00 00 1C 08 24 [14:00:12]Write i2c OK [14:00:12]MH_I2C_Read... [14:00:12]*** Cut start [14:00:12]*** Partial cut [14:00:12]*** CUTSNS_PIN = 1 [14:00:13]*** CUTSNS_PIN = 0 [14:00:13]*** Brake cut motor [14:00:13]Read from MH i2c: 01 [14:00:13]MH_I2C_Read... [14:00:13]*** Stop cut motor [14:00:13]*** Cut end [14:00:13]Read from MH i2c: 01 07 00 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: 01 07 00 1C 08 00 00 00 00 00 FF 0F 39 [14:00:13]process_action print_text done [14:00:13]requested_data is exist [14:00:13]produce_requested_data [14:00:13]requested_item fm.sn is exist - process it [14:00:13]wFMCommunicate request_size=4 [14:00:13]MH_SAM_APDU [14:00:13]CAPDU: 80 11 00 00 [14:00:13]Write to MH i2c: E2 08 00 1D 08 80 11 00 00 00 00 00 00 9F [14:00:13]Write i2c OK [14:00:13]MH_I2C_Read... [14:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:13]Read from MH i2c: E2 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: E2 17 00 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: E2 17 00 1D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 F2 [14:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:00:13]wFMCommunicate OK [14:00:13]requested_item fd.num is exist - process it [14:00:13]SAM_PROTO_GetFieldsCounters [14:00:13]wFMCommunicate request_size=4 [14:00:13]MH_SAM_APDU [14:00:13]CAPDU: 80 13 00 00 [14:00:13]Write to MH i2c: E2 08 00 1E 08 80 13 00 00 00 00 00 00 A2 [14:00:13]Write i2c OK [14:00:13]MH_I2C_Read... [14:00:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:13]Read from MH i2c: E2 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: E2 62 00 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: E2 62 00 1E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 07 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [14:00:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 07 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:00:13]wFMCommunicate OK [14:00:13]SAM_PROTO_GetFieldsCounters done [14:00:13]requested_item shift.num is exist - process it [14:00:13]requested_item shift.opened is exist - process it [14:00:13]req_shift_opened [14:00:13]FM_GetShiftState [14:00:13]SAM_PROTO_GetShiftState [14:00:13]wFMCommunicate request_size=4 [14:00:13]MH_SAM_APDU [14:00:13]CAPDU: 80 13 01 00 [14:00:13]Write to MH i2c: E2 08 00 1F 08 80 13 01 00 00 00 00 00 A4 [14:00:13]Write i2c OK [14:00:13]MH_I2C_Read... [14:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:13]Read from MH i2c: E2 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: E2 0E 00 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: E2 0E 00 1F 08 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 CB [14:00:13]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:00:13]wFMCommunicate OK [14:00:13]SAM_PROTO_GetShiftState done [14:00:13]FM_GetShiftState done [14:00:13]req_shift_opened done [14:00:13]requested_item shift.open_date is exist - process it [14:00:13]req_shift_open_date [14:00:13]req_shift_open_date done [14:00:13]produce_requested_data done [14:00:13]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77063,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [14:00:13]process_action_free print_text [14:00:13]json_value_free [14:00:13]json_value_free done [14:00:13]process_json_proto returns [14:00:13]Send response to host [14:00:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77063,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [14:00:13]free response buf [14:00:13]execute_script done [14:00:13]execute_script returns [14:00:13]free content buf [14:00:13]Sock 8.Close socket [14:00:13]Sock 8.Thread stoped [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:14]OFD Sender: No OFD packet to send [14:02:19]OFD Sender: No OFD packet to send [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:46]accept exits with 10 [14:03:46]New connection [14:03:46]New thread 3067338084 created [14:03:46]Thread 3067481444 joined [14:03:46]Waiting for new connection... [14:03:46] Sock 10.Parse request [14:03:46]Sock 10.Check first char [14:03:46]Sock 10.First char is OK [14:03:46]request: POST /json_proto HTTP/1.0 [14:03:46]Method: POST [14:03:46]URL: /json_proto [14:03:46]Method is POST - this is cgi request [14:03:46]url: /json_proto [14:03:46]query_string will be loaded in cgi processing [14:03:46]execute_cgi json_proto POST (null) [14:03:46]execute_cgi path=json_proto method=POST [14:03:46]POST find Content-Length [14:03:46]Host: 172.17.62.5:8080 [14:03:46]Content-Length: 990 [14:03:46]Content-Type: application/json [14:03:46] [14:03:46]POST finish read [14:03:46]Found Content-Length = 990 [14:03:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 34.730, "sum" : 1100.94, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 34.73 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:46]execute_script... [14:03: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)191650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 34.730, "sum" : 1100.94, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 34.73 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:46]POST & json_proto [14:03:46]process_json_proto [14:03:46]json parsed OK: [14:03:46]protocol is kg_v1.0 [14:03:46]action value=close_receipt [14:03:46]process_action close_receipt [14:03:46]cmd_close_receipt [14:03:46]MH_GetDate [14:03:46]Write to MH i2c: F0 00 00 20 08 17 [14:03:46]Write i2c OK [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: F0 [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: F0 09 00 [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: F0 09 00 20 08 00 43 6E 26 66 F4 E9 65 64 03 [14:03:46]GetLastDocTimeStamp 1713794231 [14:03:46]current date 1713794627 [14:03:46]FM_GetShiftState [14:03:46]SAM_PROTO_GetShiftState [14:03:46]wFMCommunicate request_size=4 [14:03:46]MH_SAM_APDU [14:03:46]CAPDU: 80 13 01 00 [14:03:46]Write to MH i2c: E2 08 00 21 08 80 13 01 00 00 00 00 00 A6 [14:03:46]Write i2c OK [14:03:46]MH_I2C_Read... [14:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:46]Read from MH i2c: E2 [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: E2 0E 00 [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: E2 0E 00 21 08 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 CD [14:03:46]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:03:46]wFMCommunicate OK [14:03:46]SAM_PROTO_GetShiftState done [14:03:46]FM_GetShiftState done [14:03:46]opened in 1713745124 [14:03:46]opened+sec_in_day 1713831524 [14:03:46]quantity*price = 110094 [14:03:46]sum+1 = 110095 [14:03:46]Check (price>sum+1) || (price+1 о реализуемом товаре [14:09:59]line ОКРУГЛЕНИЕ: -0.94 [14:09:59]line ИТОГО: 1100.00 [14:09:59]line Внесено: 1500.00 [14:09:59]line СДАЧА: 400.00 [14:09:59]line НСП 1% : 9.74 [14:09:59]line НДС 12% : 116.91 [14:09:59]line Наличными: 1100.00 [14:09:59]line Безнал.: 0.00 [14:09:59]line Место: АЗС № 106 "Партнер Нефть" [14:09:59]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:09:59]line СНО: Общий режим [14:09:59]line Чек 83 22.04.2024 14:03 [14:09:59]line Смена: 373 ФФД: 1.0 [14:09:59]line ЗНМ: 0300000141 [14:09:59]line РНМ: 0000000000091573 [14:09:59]line Версия ККМ: 001 [14:09:59]line [14:09:59]line Дисконтная программа [14:09:59]line СУГ [14:09:59]line номер 106 [14:09:59]line сэкономлено 34.73 сом [14:09:59]line ФМ: 0000000000874652 [14:09:59]line ФД: 77064 [14:09:59]line ФПД: 53613645814464 [14:09:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T140347&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77064&fm=53613645814464&tin=02508201610067®Number=0000000000091573&sum=110000 [14:09:59]written 0, free lines is 4095 [14:09:59]ConnectInit Can't connect to host [14:10:00]Write to MH i2c: 01 00 00 4C 00 4C [14:10:00]Write i2c OK [14:10:00]MH_I2C_Read... [14:10:00]Read from MH i2c: 01 [14:10:00]MH_I2C_Read... [14:10:00]Read from MH i2c: 01 07 00 [14:10:00]MH_I2C_Read... [14:10:00]Read from MH i2c: 01 07 00 4C 00 00 00 00 00 00 97 0C F6 [14:10:00]RasterBufferAndPrint [14:10:00]line [14:10:00]line [14:10:00]line [14:10:00]line [14:10:00]line [14:10:00]written 0, free lines is 3238 [14:10:00]MH_Cut [14:10:00]Write to MH i2c: D1 01 00 53 00 01 25 [14:10:00]Write i2c OK [14:10:00]MH_I2C_Read... [14:10:00]Read from MH i2c: D1 [14:10:00]MH_I2C_Read... [14:10:00]Read from MH i2c: D1 01 00 [14:10:00]MH_I2C_Read... [14:10:00]Read from MH i2c: D1 01 00 53 00 00 24 [14:10:00]Write to MH i2c: 01 00 00 54 00 54 [14:10:00]Write i2c OK [14:10:00]MH_I2C_Read... [14:10:00]ConnectInit Can't take IP for lk.salyk.kg [14:10:00]CommunicateWithHost connect error [14:10:00]CommunicateWithHost err = -1 [14:10:00]OFD Sender: Server communicate error [14:10:00]*** Cut start [14:10:00]*** Partial cut [14:10:00]*** CUTSNS_PIN = 1 [14:10:00]*** CUTSNS_PIN = 0 [14:10:01]*** Brake cut motor [14:10:01]Read from MH i2c: 01 [14:10:01]MH_I2C_Read... [14:10:01]*** Stop cut motor [14:10:01]*** Cut end [14:10:01]Read from MH i2c: 01 07 00 [14:10:01]MH_I2C_Read... [14:10:01]Read from MH i2c: 01 07 00 54 00 00 00 00 00 00 FF 0F 69 [14:10:01]process_action print_doc done [14:10:01]requested_data is exist [14:10:01]produce_requested_data [14:10:01]produce_requested_data return (null) [14:10:01]process_action_free print_doc [14:10:01]json_value_free [14:10:01]json_value_free done [14:10:01]process_json_proto returns [14:10:01]Send response to host [14:10:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [14:10:01]free response buf [14:10:01]execute_script done [14:10:01]execute_script returns [14:10:01]free content buf [14:10:01]Sock 7.Close socket [14:10:01]Sock 7.Thread stoped [14:10:04]ConnectInit Can't connect to host [14:10:05]OFD Sender: Processing packet 77064 [packets to send 129, broken 128] [14:10:05]ProducePacketName [14:10:05]name=ofd_packets/00077064 [14:10:05]OFD Sender: To server: pG, [14:10:05]CommunicateWithHost lk.salyk.kg:30040 [14:10:05]ConnectInit lk.salyk.kg [14:10:10]ConnectInit Can't take IP for lk.salyk.kg [14:10:10]CommunicateWithHost connect error [14:10:10]CommunicateWithHost err = -1 [14:10:10]OFD Sender: Server communicate error [14:10:15]OFD Sender: Processing packet 77064 [packets to send 129, broken 128] [14:10:15]ProducePacketName [14:10:15]name=ofd_packets/00077064 [14:10:15]OFD Sender: To server: pG, [14:10:15]CommunicateWithHost lk.salyk.kg:30040 [14:10:15]ConnectInit lk.salyk.kg [14:10:16]Connected sock=9 [14:10:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 E0 5C 06 01 A9 2D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AA 87 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 0E AE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 43 6E 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 08 2D 01 00 35 04 06 00 30 C2 E6 50 5A C0 34 5D 06 77 50 27 B4 4E [14:10:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 03 CC 47 00 C2 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 08 2D 01 00 F4 03 04 00 48 17 26 66 B6 04 01 00 00 45 9D 36 E7 E8 AC B6 6F [14:10:16]CommunicateWithHost err = 0 [14:10:16]CheckOFDResponse [14:10:16]1017 (14) - 77093643461234 [14:10:16]1041 (16) - 0000000000874652 [14:10:16]1040 (4) - 77064 [14:10:16]1012 (4) - 22.04.2024 07:52 [14:10:16]1206 (1) - 0 [14:10:16]OFD Sender: Remove packet 77064 [14:10:16]ProducePacketName [14:10:16]name=ofd_packets/00077064 [14:10:16]NVStorageDeleteData [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:09]ConnectInit Can't connect to host [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:02]OFD Sender: No OFD packet to send [14:14:07]OFD Sender: No OFD packet to send [14:14:12]OFD Sender: No OFD packet to send [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:27]OFD Sender: No OFD packet to send [14:14:31]accept exits with 11 [14:14:31]New connection [14:14:31]New thread 3067207012 created [14:14:31]Thread 3067350372 joined [14:14:31]Waiting for new connection... [14:14:31] Sock 11.Parse request [14:14:31]Sock 11.Check first char [14:14:31]Sock 11.First char is OK [14:14:31]request: POST /json_proto HTTP/1.0 [14:14:31]Method: POST [14:14:31]URL: /json_proto [14:14:31]Method is POST - this is cgi request [14:14:31]url: /json_proto [14:14:31]query_string will be loaded in cgi processing [14:14:31]execute_cgi json_proto POST (null) [14:14:31]execute_cgi path=json_proto method=POST [14:14:31]POST find Content-Length [14:14:31]Host: 172.17.62.5:8080 [14:14:31]Content-Length: 811 [14:14:31]Content-Type: application/json [14:14:31] [14:14:31]POST finish read [14:14:31]Found Content-Length = 811 [14:14:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:31]execute_script... [14:14: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)191652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:31]POST & json_proto [14:14:31]process_json_proto [14:14:31]json parsed OK: [14:14:31]protocol is kg_v1.0 [14:14:31]action value=close_receipt [14:14:31]process_action close_receipt [14:14:31]cmd_close_receipt [14:14:31]MH_GetDate [14:14:31]Write to MH i2c: F0 00 00 55 00 44 [14:14:31]Write i2c OK [14:14:31]MH_I2C_Read... [14:14:31]Read from MH i2c: F0 [14:14:31]MH_I2C_Read... [14:14:31]Read from MH i2c: F0 09 00 [14:14:31]MH_I2C_Read... [14:14:31]Read from MH i2c: F0 09 00 55 00 00 C7 70 26 66 F4 E9 65 64 B6 [14:14:31]GetLastDocTimeStamp 1713794627 [14:14:31]current date 1713795271 [14:14:31]FM_GetShiftState [14:14:31]SAM_PROTO_GetShiftState [14:14:31]wFMCommunicate request_size=4 [14:14:31]MH_SAM_APDU [14:14:31]CAPDU: 80 13 01 00 [14:14:31]Write to MH i2c: E2 08 00 56 00 80 13 01 00 00 00 00 00 D3 [14:14:31]Write i2c OK [14:14:31]MH_I2C_Read... [14:14:31]Read from MH i2c: E2 [14:14:31]MH_I2C_Read... [14:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:31]Read from MH i2c: E2 0E 00 [14:14:31]MH_I2C_Read... [14:14:31]Read from MH i2c: E2 0E 00 56 00 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 FA [14:14:31]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:14:31]wFMCommunicate OK [14:14:31]SAM_PROTO_GetShiftState done [14:14:31]FM_GetShiftState done [14:14:31]opened in 1713745124 [14:14:31]opened+sec_in_day 1713831524 [14:14:31]quantity*price = 100029 [14:14:31]sum+1 = 100030 [14:14:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.29 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.29 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 84 22.04.2024 14:14 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874652 ФД: 77065 ФПД: 29915261936417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T141431&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77065&fm=29915261936417&tin=02508201610067®Number=0000000000091573&sum=100029 [14:14:32]StoreToDocumentArchive [14:14:32]shift 373 fd 77065 [14:14:32]save to /storage/0373/doc_00077065 [14:14:32]save last doc name /storage/0373/doc_00077065 to /storage/kkm_last_doc_name [14:14:32]save OK [14:14:32]Clear old archive folders... [14:14:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:14:32]tlvbuf is 0199D610 [14:14:32]SAM_PROTO_ClearQueue [14:14:32]wFMCommunicate request_size=4 [14:14:32]MH_SAM_APDU [14:14:32]CAPDU: 80 09 00 00 [14:14:32]Write to MH i2c: E2 08 00 63 00 80 09 00 00 00 00 00 00 D5 [14:14:32]Write i2c OK [14:14:32]MH_I2C_Read... [14:14:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:32]Read from MH i2c: E2 [14:14:32]MH_I2C_Read... [14:14:32]Read from MH i2c: E2 03 00 [14:14:32]MH_I2C_Read... [14:14:32]Read from MH i2c: E2 03 00 63 00 00 90 00 D7 [14:14:32]RAPDU: 90 00 [14:14:32]wFMCommunicate OK [14:14:32]SAM_PROTO_ClearQueue done [14:14:32]KKMCreateOFDPacket [14:14:32]OFDProtocolAddRootSTLVToBuf [14:14:32]FM_MakeSignedData [14:14:32]FM_MakeSignedData [14:14:32]SAM_PROTO_SignData [14:14:32]wFMCommunicate request_size=4 [14:14:32]MH_SAM_APDU [14:14:32]CAPDU: 80 0D 01 02 [14:14:32]Write to MH i2c: E2 08 00 64 00 80 0D 01 02 00 00 00 00 DD [14:14:32]Write i2c OK [14:14:32]MH_I2C_Read... [14:14:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:32]Read from MH i2c: E2 [14:14:32]MH_I2C_Read... [14:14:32]Read from MH i2c: E2 03 00 [14:14:32]MH_I2C_Read... [14:14:32]Read from MH i2c: E2 03 00 64 00 00 90 00 D8 [14:14:32]RAPDU: 90 00 [14:14:32]wFMCommunicate OK [14:14:32]wFMCommunicate request_size=255 [14:14:32]MH_SAM_APDU [14:14:32]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 C7 70 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 09 2D 01 00 35 04 06 00 1B 35 [14:14:32]Write to MH i2c: E2 02 01 65 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 C7 70 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 09 2D 01 00 35 04 06 00 1B 35 00 00 54 [14:14:32]Write i2c OK [14:14:32]MH_I2C_Read... [14:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:33]Read from MH i2c: E2 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: E2 03 00 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: E2 03 00 65 00 00 90 00 D9 [14:14:33]RAPDU: 90 00 [14:14:33]wFMCommunicate OK [14:14:33]wFMCommunicate request_size=9 [14:14:33]MH_SAM_APDU [14:14:33]CAPDU: 80 0D 02 02 04 30 8F A3 21 [14:14:33]Write to MH i2c: E2 0C 00 66 00 80 0D 02 02 04 00 30 8F A3 21 00 00 6B [14:14:33]Write i2c OK [14:14:33]MH_I2C_Read... [14:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:33]Read from MH i2c: E2 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: E2 03 00 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: E2 03 00 66 00 00 90 00 DA [14:14:33]RAPDU: 90 00 [14:14:33]wFMCommunicate OK [14:14:33]wFMCommunicate request_size=4 [14:14:33]MH_SAM_APDU [14:14:33]CAPDU: 80 0D 03 02 [14:14:33]Write to MH i2c: E2 08 00 67 00 80 0D 03 02 00 00 00 00 E2 [14:14:33]Write i2c OK [14:14:33]MH_I2C_Read... [14:14:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:33]Read from MH i2c: E2 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: E2 0B 00 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: E2 0B 00 67 00 00 7E EC 04 53 46 71 74 F7 90 00 C6 [14:14:33]RAPDU: 7E EC 04 53 46 71 74 F7 90 00 [14:14:33]wFMCommunicate OK [14:14:33]SAM_PROTO_SignData done [14:14:33]FM_MakeSignedData done [14:14:33]CreateOFDProtocolMessage [14:14:33]wFMCommunicate request_size=4 [14:14:33]MH_SAM_APDU [14:14:33]CAPDU: 80 11 00 00 [14:14:33]Write to MH i2c: E2 08 00 68 00 80 11 00 00 00 00 00 00 E2 [14:14:33]Write i2c OK [14:14:33]MH_I2C_Read... [14:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:33]Read from MH i2c: E2 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: E2 17 00 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: E2 17 00 68 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 35 [14:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:14:33]wFMCommunicate OK [14:14:33]CreateOFDProtocolMessage done [14:14:33]OFDSenderStorePacket 77065 [14:14:33]StoreOFDPacket docnum=77065 [14:14:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 A2 99 06 01 BD 83 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 C7 70 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 09 2D 01 00 35 04 06 00 1B 35 30 8F A3 21 7E EC 04 53 46 71 74 F7 [14:14:33]CheckFolder [14:14:33]dirname=/storage/ofd_packets [14:14:33]CheckFolder done [14:14:33]ProducePacketName [14:14:33]name=ofd_packets/00077065 [14:14:33]NVStorageSaveData ofd_packets/00077065 [14:14:33]File name is /storage/ofd_packets/00077065 [14:14:33]Write 300 bytes [14:14:33]NVStorageSaveData done [14:14:33]OFDSenderStorePacket done [14:14:33]KKMCreateOFDPacket done [14:14:33]NVStorageSaveData kkm_last_timestamp [14:14:33]File name is /storage/kkm_last_timestamp [14:14:33]Write 4 bytes [14:14:33]NVStorageSaveData done [14:14:33]ExternCall_PrintAddStr [14:14:33]wPrintStart [14:14:33]Write to MH i2c: 01 00 00 69 00 69 [14:14:33]Write i2c OK [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: 01 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: 01 07 00 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: 01 07 00 69 00 00 00 00 00 00 FF 0F 7E [14:14:33]RasterBufferAndPrint [14:14:33]line Счет N : (1)191652 [14:14:33]line ИНН: 02508201610067 [14:14:33]line Контрольно-Кассовый Чек [14:14:33]line ПРОДАЖА [14:14:33]line ТРК (МРК, ГНК) : 71 [14:14:33]line Товар: 2711190000 [14:14:33]line ГАЗ-К-5 [14:14:33]line 30.590 * 32.70 [14:14:33]line = 1000.29 [14:14:33]line НДС 12% НСП 1% [14:14:33]line > о реализуемом товаре [14:14:33]line ИТОГО: 1000.29 [14:14:33]line НСП 1% : 8.85 [14:14:33]line НДС 12% : 106.22 [14:14:33]line Наличными: 0.00 [14:14:33]line Безнал.: 1000.29 [14:14:33]line Место: АЗС № 106 "Партнер Нефть" [14:14:33]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:14:33]line СНО: Общий режим [14:14:33]line Чек 84 22.04.2024 14:14 [14:14:33]line Смена: 373 ФФД: 1.0 [14:14:33]line ЗНМ: 0300000141 [14:14:33]line РНМ: 0000000000091573 [14:14:33]line Версия ККМ: 001 [14:14:33]line Платежная система: О! деньги [14:14:33]line ФМ: 0000000000874652 [14:14:33]line ФД: 77065 [14:14:33]line ФПД: 29915261936417 [14:14:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T141431&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77065&fm=29915261936417&tin=02508201610067®Number=0000000000091573&sum=100029 [14:14:33]written 0, free lines is 4095 [14:14:33]OFD Sender: Processing packet 77065 [packets to send 129, broken 128] [14:14:33]ProducePacketName [14:14:33]name=ofd_packets/00077065 [14:14:33]OFD Sender: To server: pG, [14:14:33]CommunicateWithHost lk.salyk.kg:30040 [14:14:33]ConnectInit lk.salyk.kg [14:14:33]Write to MH i2c: 01 00 00 92 00 92 [14:14:33]Write i2c OK [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: 01 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: 01 07 00 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: 01 07 00 92 00 00 00 00 00 00 F7 0C 9C [14:14:33]RasterBufferAndPrint [14:14:33]line [14:14:33]line [14:14:33]line [14:14:33]line [14:14:33]line [14:14:33]written 0, free lines is 3323 [14:14:33]MH_Cut [14:14:33]Write to MH i2c: D1 01 00 99 00 01 6B [14:14:33]Write i2c OK [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: D1 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: D1 01 00 [14:14:33]MH_I2C_Read... [14:14:33]Read from MH i2c: D1 01 00 99 00 00 6A [14:14:33]Write to MH i2c: 01 00 00 9A 00 9A [14:14:33]Write i2c OK [14:14:33]MH_I2C_Read... [14:14:33]Connected sock=10 [14:14:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 A2 99 06 01 BD 83 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 C7 70 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 09 2D 01 00 35 04 06 00 1B 35 30 8F A3 21 7E EC 04 53 46 71 74 F7 [14:14:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 80 1C 47 00 DB 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 09 2D 01 00 F4 03 04 00 4A 18 26 66 B6 04 01 00 00 B4 7C BC 05 8F 34 34 17 [14:14:34]CommunicateWithHost err = 0 [14:14:34]CheckOFDResponse [14:14:34]1017 (14) - 77093643461234 [14:14:34]1041 (16) - 0000000000874652 [14:14:34]1040 (4) - 77065 [14:14:34]1012 (4) - 22.04.2024 07:56 [14:14:34]1206 (1) - 0 [14:14:34]OFD Sender: Remove packet 77065 [14:14:34]ProducePacketName [14:14:34]name=ofd_packets/00077065 [14:14:34]NVStorageDeleteData [14:14:34]*** Cut start [14:14:34]*** Partial cut [14:14:34]*** CUTSNS_PIN = 1 [14:14:34]*** CUTSNS_PIN = 0 [14:14:34]OFD Sender: No OFD packet to send [14:14:34]*** Brake cut motor [14:14:35]Read from MH i2c: 01 [14:14:35]MH_I2C_Read... [14:14:35]*** Stop cut motor [14:14:35]*** Cut end [14:14:35]Read from MH i2c: 01 07 00 [14:14:35]MH_I2C_Read... [14:14:35]Read from MH i2c: 01 07 00 9A 00 00 00 00 00 00 FF 0F AF [14:14:35]process_action close_receipt done [14:14:35]requested_data is exist [14:14:35]produce_requested_data [14:14:35]requested_item fm.sn is exist - process it [14:14:35]wFMCommunicate request_size=4 [14:14:35]MH_SAM_APDU [14:14:35]CAPDU: 80 11 00 00 [14:14:35]Write to MH i2c: E2 08 00 9B 00 80 11 00 00 00 00 00 00 15 [14:14:35]Write i2c OK [14:14:35]MH_I2C_Read... [14:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:35]Read from MH i2c: E2 [14:14:35]MH_I2C_Read... [14:14:35]Read from MH i2c: E2 17 00 [14:14:35]MH_I2C_Read... [14:14:35]Read from MH i2c: E2 17 00 9B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 68 [14:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:14:35]wFMCommunicate OK [14:14:35]requested_item fd.num is exist - process it [14:14:35]SAM_PROTO_GetFieldsCounters [14:14:35]wFMCommunicate request_size=4 [14:14:35]MH_SAM_APDU [14:14:35]CAPDU: 80 13 00 00 [14:14:35]Write to MH i2c: E2 08 00 9C 00 80 13 00 00 00 00 00 00 18 [14:14:35]Write i2c OK [14:14:35]MH_I2C_Read... [14:14:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:35]Read from MH i2c: E2 [14:14:35]MH_I2C_Read... [14:14:35]Read from MH i2c: E2 62 00 [14:14:35]MH_I2C_Read... [14:14:35]Read from MH i2c: E2 62 00 9C 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 09 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [14:14:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 09 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:35]wFMCommunicate OK [14:14:35]SAM_PROTO_GetFieldsCounters done [14:14:35]requested_item shift.num is exist - process it [14:14:35]requested_item shift.opened is exist - process it [14:14:35]req_shift_opened [14:14:35]FM_GetShiftState [14:14:35]SAM_PROTO_GetShiftState [14:14:35]wFMCommunicate request_size=4 [14:14:35]MH_SAM_APDU [14:14:35]CAPDU: 80 13 01 00 [14:14:35]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [14:14:35]Write i2c OK [14:14:35]MH_I2C_Read... [14:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:35]Read from MH i2c: E2 [14:14:35]MH_I2C_Read... [14:14:35]Read from MH i2c: E2 0E 00 [14:14:35]MH_I2C_Read... [14:14:35]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 41 [14:14:35]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:14:35]wFMCommunicate OK [14:14:35]SAM_PROTO_GetShiftState done [14:14:35]FM_GetShiftState done [14:14:35]req_shift_opened done [14:14:35]requested_item shift.open_date is exist - process it [14:14:35]req_shift_open_date [14:14:35]req_shift_open_date done [14:14:35]produce_requested_data done [14:14:35]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77065,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [14:14:35]process_action_free close_receipt [14:14:35]json_value_free [14:14:35]json_value_free done [14:14:35]process_json_proto returns [14:14:35]Send response to host [14:14:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77065,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [14:14:35]free response buf [14:14:35]execute_script done [14:14:35]execute_script returns [14:14:35]free content buf [14:14:35]Sock 11.Close socket [14:14:35]Sock 11.Thread stoped [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:48]accept exits with 7 [14:16:48]New connection [14:16:48]New thread 3067350372 created [14:16:48]Thread 3067207012 joined [14:16:48]Waiting for new connection... [14:16:48] Sock 7.Parse request [14:16:48]Sock 7.Check first char [14:16:48]Sock 7.First char is OK [14:16:48]request: POST /json_proto HTTP/1.0 [14:16:48]Method: POST [14:16:48]URL: /json_proto [14:16:48]Method is POST - this is cgi request [14:16:48]url: /json_proto [14:16:48]query_string will be loaded in cgi processing [14:16:48]execute_cgi json_proto POST (null) [14:16:48]execute_cgi path=json_proto method=POST [14:16:48]POST find Content-Length [14:16:48]Host: 172.17.62.5:8080 [14:16:48]Content-Length: 684 [14:16:48]Content-Type: application/json [14:16:48] [14:16:48]POST finish read [14:16:48]Found Content-Length = 684 [14:16:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 274.350, "sum" : 20000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 20000.00, "total" : 20000.00, "payments": [ { "type": 0, "sum" : 20000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:48]execute_script... [14:16:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 274.350, "sum" : 20000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 20000.00, "total" : 20000.00, "payments": [ { "type": 0, "sum" : 20000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:48]POST & json_proto [14:16:48]process_json_proto [14:16:48]json parsed OK: [14:16:48]protocol is kg_v1.0 [14:16:48]action value=close_receipt [14:16:48]process_action close_receipt [14:16:48]cmd_close_receipt [14:16:48]MH_GetDate [14:16:48]Write to MH i2c: F0 00 00 9E 00 8D [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: F0 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: F0 09 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: F0 09 00 9E 00 00 50 71 26 66 F4 E9 65 64 89 [14:16:48]GetLastDocTimeStamp 1713795271 [14:16:48]current date 1713795408 [14:16:48]FM_GetShiftState [14:16:48]SAM_PROTO_GetShiftState [14:16:48]wFMCommunicate request_size=4 [14:16:48]MH_SAM_APDU [14:16:48]CAPDU: 80 13 01 00 [14:16:48]Write to MH i2c: E2 08 00 9F 00 80 13 01 00 00 00 00 00 1C [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:48]Read from MH i2c: E2 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 0E 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 0E 00 9F 00 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 43 [14:16:48]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:16:48]wFMCommunicate OK [14:16:48]SAM_PROTO_GetShiftState done [14:16:48]FM_GetShiftState done [14:16:48]opened in 1713745124 [14:16:48]opened+sec_in_day 1713831524 [14:16:48]quantity*price = 2000011 [14:16:48]sum+1 = 2000013 [14:16:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 20000.00 Внесено: 20000.00 СДАЧА: 0.00 НСП 1% : 176.99 НДС 12% : 2123.91 Наличными: 20000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 85 22.04.2024 14:16 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77066 ФПД: 253062592715326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T141648&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77066&fm=253062592715326&tin=02508201610067®Number=0000000000091573&sum=2000000 [14:16:49]StoreToDocumentArchive [14:16:49]shift 373 fd 77066 [14:16:49]save to /storage/0373/doc_00077066 [14:16:49]save last doc name /storage/0373/doc_00077066 to /storage/kkm_last_doc_name [14:16:49]save OK [14:16:49]Clear old archive folders... [14:16:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:16:49]tlvbuf is 019BF8F0 [14:16:49]SAM_PROTO_ClearQueue [14:16:49]wFMCommunicate request_size=4 [14:16:49]MH_SAM_APDU [14:16:49]CAPDU: 80 09 00 00 [14:16:49]Write to MH i2c: E2 08 00 AC 00 80 09 00 00 00 00 00 00 1E [14:16:49]Write i2c OK [14:16:49]MH_I2C_Read... [14:16:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:49]Read from MH i2c: E2 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 03 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [14:16:49]RAPDU: 90 00 [14:16:49]wFMCommunicate OK [14:16:49]SAM_PROTO_ClearQueue done [14:16:49]KKMCreateOFDPacket [14:16:49]OFDProtocolAddRootSTLVToBuf [14:16:49]FM_MakeSignedData [14:16:49]FM_MakeSignedData [14:16:49]SAM_PROTO_SignData [14:16:49]wFMCommunicate request_size=4 [14:16:49]MH_SAM_APDU [14:16:49]CAPDU: 80 0D 01 02 [14:16:49]Write to MH i2c: E2 08 00 AD 00 80 0D 01 02 00 00 00 00 26 [14:16:49]Write i2c OK [14:16:49]MH_I2C_Read... [14:16:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:49]Read from MH i2c: E2 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 03 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [14:16:49]RAPDU: 90 00 [14:16:49]wFMCommunicate OK [14:16:49]wFMCommunicate request_size=255 [14:16:49]MH_SAM_APDU [14:16: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 35 FF 03 08 00 03 AE 2F 04 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8C 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3D 03 00 00 00 07 04 06 00 80 84 1E 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 50 71 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0A 2D 01 00 35 04 06 00 E6 28 B9 F1 [14:16:49]Write to MH i2c: E2 02 01 AE 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 35 FF 03 08 00 03 AE 2F 04 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8C 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3D 03 00 00 00 07 04 06 00 80 84 1E 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 50 71 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0A 2D 01 00 35 04 06 00 E6 28 B9 F1 00 00 C3 [14:16:49]Write i2c OK [14:16:49]MH_I2C_Read... [14:16:49]OFD Sender: No OFD packet to send [14:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:49]Read from MH i2c: E2 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 03 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 03 00 AE 00 00 90 00 22 [14:16:49]RAPDU: 90 00 [14:16:49]wFMCommunicate OK [14:16:49]wFMCommunicate request_size=7 [14:16:49]MH_SAM_APDU [14:16:49]CAPDU: 80 0D 02 02 02 DA 3E [14:16:49]Write to MH i2c: E2 0A 00 AF 00 80 0D 02 02 02 00 DA 3E 00 00 45 [14:16:49]Write i2c OK [14:16:49]MH_I2C_Read... [14:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:49]Read from MH i2c: E2 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 03 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 03 00 AF 00 00 90 00 23 [14:16:49]RAPDU: 90 00 [14:16:49]wFMCommunicate OK [14:16:49]wFMCommunicate request_size=4 [14:16:49]MH_SAM_APDU [14:16:49]CAPDU: 80 0D 03 02 [14:16:49]Write to MH i2c: E2 08 00 B0 00 80 0D 03 02 00 00 00 00 2B [14:16:49]Write i2c OK [14:16:49]MH_I2C_Read... [14:16:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:49]Read from MH i2c: E2 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 0B 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 0B 00 B0 00 00 ED 1F 50 8B 12 84 A8 BD 90 00 0E [14:16:49]RAPDU: ED 1F 50 8B 12 84 A8 BD 90 00 [14:16:49]wFMCommunicate OK [14:16:49]SAM_PROTO_SignData done [14:16:49]FM_MakeSignedData done [14:16:49]CreateOFDProtocolMessage [14:16:49]wFMCommunicate request_size=4 [14:16:49]MH_SAM_APDU [14:16:49]CAPDU: 80 11 00 00 [14:16:49]Write to MH i2c: E2 08 00 B1 00 80 11 00 00 00 00 00 00 2B [14:16:49]Write i2c OK [14:16:49]MH_I2C_Read... [14:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:49]Read from MH i2c: E2 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 17 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: E2 17 00 B1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 7E [14:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:16:49]wFMCommunicate OK [14:16:49]CreateOFDProtocolMessage done [14:16:49]OFDSenderStorePacket 77066 [14:16:49]StoreOFDPacket docnum=77066 [14:16:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 4C 70 04 01 A8 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 2F 04 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8C 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3D 03 00 00 00 07 04 06 00 80 84 1E 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 50 71 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0A 2D 01 00 35 04 06 00 E6 28 B9 F1 DA 3E ED 1F 50 8B 12 84 A8 BD [14:16:49]CheckFolder [14:16:49]dirname=/storage/ofd_packets [14:16:49]CheckFolder done [14:16:49]ProducePacketName [14:16:49]name=ofd_packets/00077066 [14:16:49]NVStorageSaveData ofd_packets/00077066 [14:16:49]File name is /storage/ofd_packets/00077066 [14:16:49]Write 298 bytes [14:16:49]NVStorageSaveData done [14:16:49]OFDSenderStorePacket done [14:16:49]KKMCreateOFDPacket done [14:16:49]NVStorageSaveData kkm_last_timestamp [14:16:49]File name is /storage/kkm_last_timestamp [14:16:49]Write 4 bytes [14:16:49]NVStorageSaveData done [14:16:49]ExternCall_PrintAddStr [14:16:49]wPrintStart [14:16:49]Write to MH i2c: 01 00 00 B2 00 B2 [14:16:49]Write i2c OK [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 07 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 07 00 B2 00 00 00 00 00 00 FF 0F C7 [14:16:49]RasterBufferAndPrint [14:16:49]line Счет N : (1)191653 [14:16:49]line ИНН: 02508201610067 [14:16:49]line Контрольно-Кассовый Чек [14:16:49]line ПРОДАЖА [14:16:49]line ТРК (МРК, ГНК) : 51 [14:16:49]line Товар: 2710194210 [14:16:49]line ДТ-К-5 [14:16:49]line 274.350 * 72.90 [14:16:49]line = 20000.12 [14:16:49]line НДС 12% НСП 1% [14:16:49]line > о реализуемом товаре [14:16:49]line ОКРУГЛЕНИЕ: -0.12 [14:16:49]line ИТОГО: 20000.00 [14:16:49]line Внесено: 20000.00 [14:16:49]line СДАЧА: 0.00 [14:16:49]line НСП 1% : 176.99 [14:16:49]line НДС 12% : 2123.91 [14:16:49]line Наличными: 20000.00 [14:16:49]line Безнал.: 0.00 [14:16:49]line Место: АЗС № 106 "Партнер Нефть" [14:16:49]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:16:49]line СНО: Общий режим [14:16:49]line Чек 85 22.04.2024 14:16 [14:16:49]line Смена: 373 ФФД: 1.0 [14:16:49]line ЗНМ: 0300000141 [14:16:49]line РНМ: 0000000000091573 [14:16:49]line Версия ККМ: 001 [14:16:49]line ФМ: 0000000000874652 [14:16:49]line ФД: 77066 [14:16:49]line ФПД: 253062592715326 [14:16:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T141648&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77066&fm=253062592715326&tin=02508201610067®Number=0000000000091573&sum=2000000 [14:16:50]OFD Sender: Processing packet 77066 [packets to send 129, broken 128] [14:16:50]ProducePacketName [14:16:50]name=ofd_packets/00077066 [14:16:50]OFD Sender: To server: pG, [14:16:50]CommunicateWithHost lk.salyk.kg:30040 [14:16:50]ConnectInit lk.salyk.kg [14:16:50]written 0, free lines is 4095 [14:16:50]Connected sock=10 [14:16:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 4C 70 04 01 A8 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 2F 04 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8C 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3D 03 00 00 00 07 04 06 00 80 84 1E 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 50 71 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0A 2D 01 00 35 04 06 00 E6 28 B9 F1 DA 3E ED 1F 50 8B 12 84 A8 BD [14:16:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 EC 64 47 00 19 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0A 2D 01 00 F4 03 04 00 D2 18 26 66 B6 04 01 00 00 1E 7E 98 D0 6D F5 81 CA [14:16:50]CommunicateWithHost err = 0 [14:16:50]CheckOFDResponse [14:16:50]1017 (14) - 77093643461234 [14:16:50]1041 (16) - 0000000000874652 [14:16:50]1040 (4) - 77066 [14:16:50]1012 (4) - 22.04.2024 07:59 [14:16:50]1206 (1) - 0 [14:16:50]OFD Sender: Remove packet 77066 [14:16:50]ProducePacketName [14:16:50]name=ofd_packets/00077066 [14:16:50]NVStorageDeleteData [14:16:50]Write to MH i2c: 01 00 00 DC 00 DC [14:16:50]Write i2c OK [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: 01 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: 01 07 00 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: 01 07 00 DC 00 00 00 00 00 00 00 0D F0 [14:16:50]RasterBufferAndPrint [14:16:50]line [14:16:50]line [14:16:50]line [14:16:50]line [14:16:50]line [14:16:50]written 0, free lines is 3334 [14:16:50]MH_Cut [14:16:50]Write to MH i2c: D1 01 00 E3 00 01 B5 [14:16:50]Write i2c OK [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: D1 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: D1 01 00 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: D1 01 00 E3 00 00 B4 [14:16:50]Write to MH i2c: 01 00 00 E4 00 E4 [14:16:50]Write i2c OK [14:16:50]MH_I2C_Read... [14:16:51]OFD Sender: No OFD packet to send [14:16:51]*** Cut start [14:16:51]*** Partial cut [14:16:51]*** CUTSNS_PIN = 1 [14:16:51]*** CUTSNS_PIN = 0 [14:16:51]*** Brake cut motor [14:16:52]Read from MH i2c: 01 [14:16:52]MH_I2C_Read... [14:16:52]*** Stop cut motor [14:16:52]*** Cut end [14:16:52]Read from MH i2c: 01 07 00 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: 01 07 00 E4 00 00 00 00 00 00 FF 0F F9 [14:16:52]process_action close_receipt done [14:16:52]requested_data is exist [14:16:52]produce_requested_data [14:16:52]requested_item fm.sn is exist - process it [14:16:52]wFMCommunicate request_size=4 [14:16:52]MH_SAM_APDU [14:16:52]CAPDU: 80 11 00 00 [14:16:52]Write to MH i2c: E2 08 00 E5 00 80 11 00 00 00 00 00 00 5F [14:16:52]Write i2c OK [14:16:52]MH_I2C_Read... [14:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:52]Read from MH i2c: E2 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 17 00 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 17 00 E5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 B2 [14:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:16:52]wFMCommunicate OK [14:16:52]requested_item fd.num is exist - process it [14:16:52]SAM_PROTO_GetFieldsCounters [14:16:52]wFMCommunicate request_size=4 [14:16:52]MH_SAM_APDU [14:16:52]CAPDU: 80 13 00 00 [14:16:52]Write to MH i2c: E2 08 00 E6 00 80 13 00 00 00 00 00 00 62 [14:16:52]Write i2c OK [14:16:52]MH_I2C_Read... [14:16:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:52]Read from MH i2c: E2 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 62 00 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 62 00 E6 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0A 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [14:16:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0A 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:52]wFMCommunicate OK [14:16:52]SAM_PROTO_GetFieldsCounters done [14:16:52]requested_item shift.num is exist - process it [14:16:52]requested_item shift.opened is exist - process it [14:16:52]req_shift_opened [14:16:52]FM_GetShiftState [14:16:52]SAM_PROTO_GetShiftState [14:16:52]wFMCommunicate request_size=4 [14:16:52]MH_SAM_APDU [14:16:52]CAPDU: 80 13 01 00 [14:16:52]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [14:16:52]Write i2c OK [14:16:52]MH_I2C_Read... [14:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:52]Read from MH i2c: E2 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 0E 00 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 8B [14:16:52]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:16:52]wFMCommunicate OK [14:16:52]SAM_PROTO_GetShiftState done [14:16:52]FM_GetShiftState done [14:16:52]req_shift_opened done [14:16:52]requested_item shift.open_date is exist - process it [14:16:52]req_shift_open_date [14:16:52]req_shift_open_date done [14:16:52]produce_requested_data done [14:16:52]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77066,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [14:16:52]process_action_free close_receipt [14:16:52]json_value_free [14:16:52]json_value_free done [14:16:52]process_json_proto returns [14:16:52]Send response to host [14:16:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77066,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [14:16:52]free response buf [14:16:52]execute_script done [14:16:52]execute_script returns [14:16:52]free content buf [14:16:52]Sock 7.Close socket [14:16:52]Sock 7.Thread stoped [14:16:53]accept exits with 9 [14:16:53]New connection [14:16:53]New thread 3067207012 created [14:16:53]Thread 3067350372 joined [14:16:53]Waiting for new connection... [14:16:53] Sock 9.Parse request [14:16:53]Sock 9.Check first char [14:16:53]Sock 9.First char is OK [14:16:53]request: POST /json_proto HTTP/1.0 [14:16:53]Method: POST [14:16:53]URL: /json_proto [14:16:53]Method is POST - this is cgi request [14:16:53]url: /json_proto [14:16:53]query_string will be loaded in cgi processing [14:16:53]execute_cgi json_proto POST (null) [14:16:53]execute_cgi path=json_proto method=POST [14:16:53]POST find Content-Length [14:16:53]Host: 172.17.62.5:8080 [14:16:53]Content-Length: 740 [14:16:53]Content-Type: application/json [14:16:53] [14:16:53]POST finish read [14:16:53]Found Content-Length = 740 [14:16:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 77066, "base_FM": "0000000000874652", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 274.350, "sum" : 20000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 20000.00, "total" : 20000.00, "payments": [ { "type": 0, "sum" : 20000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:53]execute_script... [14:16:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 77066, "base_FM": "0000000000874652", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 274.350, "sum" : 20000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 20000.00, "total" : 20000.00, "payments": [ { "type": 0, "sum" : 20000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:53]POST & json_proto [14:16:53]process_json_proto [14:16:53]json parsed OK: [14:16:53]protocol is kg_v1.0 [14:16:53]action value=close_receipt [14:16:53]process_action close_receipt [14:16:53]cmd_close_receipt [14:16:53]MH_GetDate [14:16:53]Write to MH i2c: F0 00 00 E8 00 D7 [14:16:53]Write i2c OK [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: F0 [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: F0 09 00 [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: F0 09 00 E8 00 00 55 71 26 66 F4 E9 65 64 D8 [14:16:53]GetLastDocTimeStamp 1713795408 [14:16:53]current date 1713795413 [14:16:53]FM_GetShiftState [14:16:53]SAM_PROTO_GetShiftState [14:16:53]wFMCommunicate request_size=4 [14:16:53]MH_SAM_APDU [14:16:53]CAPDU: 80 13 01 00 [14:16:53]Write to MH i2c: E2 08 00 E9 00 80 13 01 00 00 00 00 00 66 [14:16:53]Write i2c OK [14:16:53]MH_I2C_Read... [14:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:53]Read from MH i2c: E2 [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: E2 0E 00 [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: E2 0E 00 E9 00 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 8D [14:16:53]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:16:53]wFMCommunicate OK [14:16:53]SAM_PROTO_GetShiftState done [14:16:53]FM_GetShiftState done [14:16:53]opened in 1713745124 [14:16:53]opened+sec_in_day 1713831524 [14:16:53]quantity*price = 2000011 [14:16:53]sum+1 = 2000013 [14:16:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 20000.00 НСП 1% : 176.99 НДС 12% : 2123.91 Наличными: 20000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 86 22.04.2024 14:16 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФД осн.: 77066 ФМ осн.: 0000000000874652 ФМ: 0000000000874652 ФД: 77067 ФПД: 189401259055739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T141654&type=2&operation_type=1&fn_number=0000000000874652&fd_number=77067&fm=189401259055739&tin=02508201610067®Number=0000000000091573&sum=2000000 [14:16:55]StoreToDocumentArchive [14:16:55]shift 373 fd 77067 [14:16:55]save to /storage/0373/doc_00077067 [14:16:55]save last doc name /storage/0373/doc_00077067 to /storage/kkm_last_doc_name [14:16:55]save OK [14:16:55]Clear old archive folders... [14:16:55]ProcessDocumentItem done err = 0, tmpTLVsize=276 [14:16:55]tlvbuf is 019BF7B0 [14:16:55]SAM_PROTO_ClearQueue [14:16:55]wFMCommunicate request_size=4 [14:16:55]MH_SAM_APDU [14:16:55]CAPDU: 80 09 00 00 [14:16:55]Write to MH i2c: E2 08 00 F8 00 80 09 00 00 00 00 00 00 6A [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:55]Read from MH i2c: E2 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [14:16:55]RAPDU: 90 00 [14:16:55]wFMCommunicate OK [14:16:55]SAM_PROTO_ClearQueue done [14:16:55]KKMCreateOFDPacket [14:16:55]OFDProtocolAddRootSTLVToBuf [14:16:55]FM_MakeSignedData [14:16:55]FM_MakeSignedData [14:16:55]SAM_PROTO_SignData [14:16:55]wFMCommunicate request_size=4 [14:16:55]MH_SAM_APDU [14:16:55]CAPDU: 80 0D 01 02 [14:16:55]Write to MH i2c: E2 08 00 F9 00 80 0D 01 02 00 00 00 00 72 [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:55]Read from MH i2c: E2 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 F9 00 00 90 00 6D [14:16:55]RAPDU: 90 00 [14:16:55]wFMCommunicate OK [14:16:55]wFMCommunicate request_size=255 [14:16:55]MH_SAM_APDU [14:16:55]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 2F 04 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8C 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3D 03 00 00 00 07 04 06 00 80 84 1E 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 56 71 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 27 04 04 00 0A 2D 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 11 04 10 00 30 30 30 30 [14:16:55]Write to MH i2c: E2 02 01 FA 00 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 2F 04 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8C 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3D 03 00 00 00 07 04 06 00 80 84 1E 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 56 71 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 27 04 04 00 0A 2D 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 11 04 10 00 30 30 30 30 00 00 50 [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:55]Read from MH i2c: E2 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 FA 00 00 90 00 6E [14:16:55]RAPDU: 90 00 [14:16:55]wFMCommunicate OK [14:16:55]wFMCommunicate request_size=35 [14:16:55]MH_SAM_APDU [14:16:55]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0B 2D 01 00 35 04 06 00 AC 42 6A C4 1A 7B [14:16:55]Write to MH i2c: E2 26 00 FB 00 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0B 2D 01 00 35 04 06 00 AC 42 6A C4 1A 7B 00 00 52 [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:55]Read from MH i2c: E2 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 FB 00 00 90 00 6F [14:16:55]RAPDU: 90 00 [14:16:55]wFMCommunicate OK [14:16:55]wFMCommunicate request_size=4 [14:16:55]MH_SAM_APDU [14:16:55]CAPDU: 80 0D 03 02 [14:16:55]Write to MH i2c: E2 08 00 FC 00 80 0D 03 02 00 00 00 00 77 [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:55]Read from MH i2c: E2 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 0B 00 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 0B 00 FC 00 00 D3 76 65 7E 34 AE 7C AF 90 00 B1 [14:16:55]RAPDU: D3 76 65 7E 34 AE 7C AF 90 00 [14:16:55]wFMCommunicate OK [14:16:55]SAM_PROTO_SignData done [14:16:55]FM_MakeSignedData done [14:16:55]CreateOFDProtocolMessage [14:16:55]wFMCommunicate request_size=4 [14:16:55]MH_SAM_APDU [14:16:55]CAPDU: 80 11 00 00 [14:16:55]Write to MH i2c: E2 08 00 FD 00 80 11 00 00 00 00 00 00 77 [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:55]Read from MH i2c: E2 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 17 00 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 17 00 FD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CA [14:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:16:55]wFMCommunicate OK [14:16:55]CreateOFDProtocolMessage done [14:16:55]OFDSenderStorePacket 77067 [14:16:55]StoreOFDPacket docnum=77067 [14:16:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 28 01 00 00 C9 E7 20 01 7B 4C 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 2F 04 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8C 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3D 03 00 00 00 07 04 06 00 80 84 1E 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 56 71 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 27 04 04 00 0A 2D 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0B 2D 01 00 35 04 06 00 AC 42 6A C4 1A 7B D3 76 65 7E 34 AE 7C AF [14:16:55]CheckFolder [14:16:55]dirname=/storage/ofd_packets [14:16:55]CheckFolder done [14:16:55]ProducePacketName [14:16:55]name=ofd_packets/00077067 [14:16:55]NVStorageSaveData ofd_packets/00077067 [14:16:55]File name is /storage/ofd_packets/00077067 [14:16:55]Write 326 bytes [14:16:55]NVStorageSaveData done [14:16:55]OFDSenderStorePacket done [14:16:55]KKMCreateOFDPacket done [14:16:55]NVStorageSaveData kkm_last_timestamp [14:16:55]File name is /storage/kkm_last_timestamp [14:16:55]Write 4 bytes [14:16:55]NVStorageSaveData done [14:16:55]ExternCall_PrintAddStr [14:16:55]wPrintStart [14:16:55]Write to MH i2c: 01 00 00 FE 00 FE [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: 01 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: 01 07 00 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: 01 07 00 FE 00 00 00 00 00 00 FF 0F 13 [14:16:55]RasterBufferAndPrint [14:16:55]line Счет N : (1)191653 [14:16:55]line ИНН: 02508201610067 [14:16:55]line Контрольно-Кассовый Чек [14:16:55]line ВОЗВРАТ ПРОДАЖИ [14:16:55]line ТРК (МРК, ГНК) : 51 [14:16:55]line Товар: 2710194210 [14:16:55]line ДТ-К-5 [14:16:55]line 274.350 * 72.90 [14:16:55]line = 20000.12 [14:16:55]line НДС 12% НСП 1% [14:16:55]line > о реализуемом товаре [14:16:55]line ОКРУГЛЕНИЕ: -0.12 [14:16:55]line ИТОГО: 20000.00 [14:16:55]line НСП 1% : 176.99 [14:16:55]line НДС 12% : 2123.91 [14:16:55]line Наличными: 20000.00 [14:16:55]line Безнал.: 0.00 [14:16:55]line Место: АЗС № 106 "Партнер Нефть" [14:16:55]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:16:55]line СНО: Общий режим [14:16:55]line Чек 86 22.04.2024 14:16 [14:16:55]line Смена: 373 ФФД: 1.0 [14:16:55]line ЗНМ: 0300000141 [14:16:55]line РНМ: 0000000000091573 [14:16:55]line Версия ККМ: 001 [14:16:55]line ФД осн.: 77066 [14:16:55]line ФМ осн.: 0000000000874652 [14:16:55]line ФМ: 0000000000874652 [14:16:55]line ФД: 77067 [14:16:55]line ФПД: 189401259055739 [14:16:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T141654&type=2&operation_type=1&fn_number=0000000000874652&fd_number=77067&fm=189401259055739&tin=02508201610067®Number=0000000000091573&sum=2000000 [14:16:55]written 0, free lines is 4095 [14:16:55]OFD Sender: Processing packet 77067 [packets to send 129, broken 128] [14:16:55]ProducePacketName [14:16:55]name=ofd_packets/00077067 [14:16:55]OFD Sender: To server: pG, [14:16:55]CommunicateWithHost lk.salyk.kg:30040 [14:16:55]ConnectInit lk.salyk.kg [14:16:55]Connected sock=10 [14:16:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 28 01 00 00 C9 E7 20 01 7B 4C 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 2F 04 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 8C 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3D 03 00 00 00 07 04 06 00 80 84 1E 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 56 71 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 27 04 04 00 0A 2D 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0B 2D 01 00 35 04 06 00 AC 42 6A C4 1A 7B D3 76 65 7E 34 AE 7C AF [14:16:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 B3 7A 47 00 74 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0B 2D 01 00 F4 03 04 00 D8 18 26 66 B6 04 01 00 00 5C BD 70 7D 22 D3 E7 DB [14:16:56]CommunicateWithHost err = 0 [14:16:56]CheckOFDResponse [14:16:56]1017 (14) - 77093643461234 [14:16:56]1041 (16) - 0000000000874652 [14:16:56]1040 (4) - 77067 [14:16:56]1012 (4) - 22.04.2024 07:59 [14:16:56]1206 (1) - 0 [14:16:56]OFD Sender: Remove packet 77067 [14:16:56]ProducePacketName [14:16:56]name=ofd_packets/00077067 [14:16:56]NVStorageDeleteData [14:16:56]Write to MH i2c: 01 00 00 28 01 29 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 07 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 07 00 28 01 00 00 00 00 00 09 0D 46 [14:16:56]RasterBufferAndPrint [14:16:56]line [14:16:56]line [14:16:56]line [14:16:56]line [14:16:56]line [14:16:56]written 0, free lines is 3352 [14:16:56]MH_Cut [14:16:56]Write to MH i2c: D1 01 00 2F 01 01 02 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: D1 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: D1 01 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: D1 01 00 2F 01 00 01 [14:16:56]Write to MH i2c: 01 00 00 30 01 31 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]OFD Sender: No OFD packet to send [14:16:56]*** Cut start [14:16:56]*** Partial cut [14:16:56]*** CUTSNS_PIN = 1 [14:16:56]*** CUTSNS_PIN = 0 [14:16:57]*** Brake cut motor [14:16:57]Read from MH i2c: 01 [14:16:57]MH_I2C_Read... [14:16:57]*** Stop cut motor [14:16:57]*** Cut end [14:16:57]Read from MH i2c: 01 07 00 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: 01 07 00 30 01 00 00 00 00 00 FF 0F 46 [14:16:57]process_action close_receipt done [14:16:57]requested_data is exist [14:16:57]produce_requested_data [14:16:57]requested_item fm.sn is exist - process it [14:16:57]wFMCommunicate request_size=4 [14:16:57]MH_SAM_APDU [14:16:57]CAPDU: 80 11 00 00 [14:16:57]Write to MH i2c: E2 08 00 31 01 80 11 00 00 00 00 00 00 AC [14:16:57]Write i2c OK [14:16:57]MH_I2C_Read... [14:16:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:57]Read from MH i2c: E2 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: E2 17 00 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: E2 17 00 31 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FF [14:16:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:16:57]wFMCommunicate OK [14:16:57]requested_item fd.num is exist - process it [14:16:57]SAM_PROTO_GetFieldsCounters [14:16:57]wFMCommunicate request_size=4 [14:16:57]MH_SAM_APDU [14:16:57]CAPDU: 80 13 00 00 [14:16:57]Write to MH i2c: E2 08 00 32 01 80 13 00 00 00 00 00 00 AF [14:16:57]Write i2c OK [14:16:57]MH_I2C_Read... [14:16:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:57]Read from MH i2c: E2 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: E2 62 00 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: E2 62 00 32 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0B 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [14:16:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0B 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:57]wFMCommunicate OK [14:16:57]SAM_PROTO_GetFieldsCounters done [14:16:57]requested_item shift.num is exist - process it [14:16:57]requested_item shift.opened is exist - process it [14:16:57]req_shift_opened [14:16:57]FM_GetShiftState [14:16:57]SAM_PROTO_GetShiftState [14:16:57]wFMCommunicate request_size=4 [14:16:57]MH_SAM_APDU [14:16:57]CAPDU: 80 13 01 00 [14:16:57]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [14:16:57]Write i2c OK [14:16:57]MH_I2C_Read... [14:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:57]Read from MH i2c: E2 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: E2 0E 00 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 D8 [14:16:57]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:16:57]wFMCommunicate OK [14:16:57]SAM_PROTO_GetShiftState done [14:16:57]FM_GetShiftState done [14:16:57]req_shift_opened done [14:16:57]requested_item shift.open_date is exist - process it [14:16:57]req_shift_open_date [14:16:57]req_shift_open_date done [14:16:57]produce_requested_data done [14:16:57]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77067,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [14:16:57]process_action_free close_receipt [14:16:57]json_value_free [14:16:57]json_value_free done [14:16:57]process_json_proto returns [14:16:57]Send response to host [14:16:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77067,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [14:16:57]free response buf [14:16:57]execute_script done [14:16:57]execute_script returns [14:16:57]free content buf [14:16:57]Sock 9.Close socket [14:16:57]Sock 9.Thread stoped [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20: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]accept exits with 7 [14:22:01]New connection [14:22:01]New thread 3067350372 created [14:22:01]Thread 3067207012 joined [14:22:01]Waiting for new connection... [14:22:01] Sock 7.Parse request [14:22:01]Sock 7.Check first char [14:22:01]Sock 7.First char is OK [14:22:01]request: POST /json_proto HTTP/1.0 [14:22:01]Method: POST [14:22:01]URL: /json_proto [14:22:01]Method is POST - this is cgi request [14:22:01]url: /json_proto [14:22:01]query_string will be loaded in cgi processing [14:22:01]execute_cgi json_proto POST (null) [14:22:01]execute_cgi path=json_proto method=POST [14:22:01]POST find Content-Length [14:22:01]Host: 172.17.62.5:8080 [14:22:01]Content-Length: 677 [14:22:01]Content-Type: application/json [14:22:01] [14:22:01]POST finish read [14:22:01]Found Content-Length = 677 [14:22:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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:22:01]execute_script... [14:22: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)191654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 4.660, "sum" : 300.10, "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:22:01]POST & json_proto [14:22:01]process_json_proto [14:22:01]json parsed OK: [14:22:01]protocol is kg_v1.0 [14:22:01]action value=close_receipt [14:22:01]process_action close_receipt [14:22:01]cmd_close_receipt [14:22:01]MH_GetDate [14:22:01]Write to MH i2c: F0 00 00 34 01 24 [14:22:01]Write i2c OK [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: F0 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: F0 09 00 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: F0 09 00 34 01 00 89 72 26 66 F4 E9 65 64 5A [14:22:01]GetLastDocTimeStamp 1713795414 [14:22:01]current date 1713795721 [14:22:01]FM_GetShiftState [14:22:01]SAM_PROTO_GetShiftState [14:22:01]wFMCommunicate request_size=4 [14:22:01]MH_SAM_APDU [14:22:01]CAPDU: 80 13 01 00 [14:22:01]Write to MH i2c: E2 08 00 35 01 80 13 01 00 00 00 00 00 B3 [14:22:01]Write i2c OK [14:22:01]MH_I2C_Read... [14:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:01]Read from MH i2c: E2 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 0E 00 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: E2 0E 00 35 01 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 DA [14:22:01]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:22:01]wFMCommunicate OK [14:22:01]SAM_PROTO_GetShiftState done [14:22:01]FM_GetShiftState done [14:22:01]opened in 1713745124 [14:22:01]opened+sec_in_day 1713831524 [14:22:01]quantity*price = 30010 [14:22:01]sum+1 = 30011 [14:22:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 87 22.04.2024 14:22 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77068 ФПД: 73496619894163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T142201&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77068&fm=73496619894163&tin=02508201610067®Number=0000000000091573&sum=30000 [14:22:02]StoreToDocumentArchive [14:22:02]shift 373 fd 77068 [14:22:02]save to /storage/0373/doc_00077068 [14:22:02]save last doc name /storage/0373/doc_00077068 to /storage/kkm_last_doc_name [14:22:02]save OK [14:22:02]Clear old archive folders... [14:22:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:22:02]tlvbuf is 019AA1B0 [14:22:02]SAM_PROTO_ClearQueue [14:22:02]wFMCommunicate request_size=4 [14:22:02]MH_SAM_APDU [14:22:02]CAPDU: 80 09 00 00 [14:22:02]Write to MH i2c: E2 08 00 42 01 80 09 00 00 00 00 00 00 B5 [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:02]Read from MH i2c: E2 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 03 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [14:22:02]RAPDU: 90 00 [14:22:02]wFMCommunicate OK [14:22:02]SAM_PROTO_ClearQueue done [14:22:02]KKMCreateOFDPacket [14:22:02]OFDProtocolAddRootSTLVToBuf [14:22:02]FM_MakeSignedData [14:22:02]FM_MakeSignedData [14:22:02]SAM_PROTO_SignData [14:22:02]wFMCommunicate request_size=4 [14:22:02]MH_SAM_APDU [14:22:02]CAPDU: 80 0D 01 02 [14:22:02]Write to MH i2c: E2 08 00 43 01 80 0D 01 02 00 00 00 00 BD [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:02]Read from MH i2c: E2 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 03 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [14:22:02]RAPDU: 90 00 [14:22:02]wFMCommunicate OK [14:22:02]wFMCommunicate request_size=255 [14:22:02]MH_SAM_APDU [14:22:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 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 73 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 57 00 00 00 F4 03 04 00 89 72 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0C 2D 01 00 35 04 06 00 42 [14:22:02]Write to MH i2c: E2 02 01 44 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 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 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 73 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 57 00 00 00 F4 03 04 00 89 72 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0C 2D 01 00 35 04 06 00 42 00 00 A1 [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:02]Read from MH i2c: E2 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 03 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 03 00 44 01 00 90 00 B9 [14:22:02]RAPDU: 90 00 [14:22:02]wFMCommunicate OK [14:22:02]wFMCommunicate request_size=10 [14:22:02]MH_SAM_APDU [14:22:02]CAPDU: 80 0D 02 02 05 D8 43 EB C5 93 [14:22:02]Write to MH i2c: E2 0D 00 45 01 80 0D 02 02 05 00 D8 43 EB C5 93 00 00 28 [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:02]Read from MH i2c: E2 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 03 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [14:22:02]RAPDU: 90 00 [14:22:02]wFMCommunicate OK [14:22:02]wFMCommunicate request_size=4 [14:22:02]MH_SAM_APDU [14:22:02]CAPDU: 80 0D 03 02 [14:22:02]Write to MH i2c: E2 08 00 46 01 80 0D 03 02 00 00 00 00 C2 [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:03]Read from MH i2c: E2 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: E2 0B 00 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: E2 0B 00 46 01 00 B7 A1 8F 63 FF 8F 4A 52 90 00 37 [14:22:03]RAPDU: B7 A1 8F 63 FF 8F 4A 52 90 00 [14:22:03]wFMCommunicate OK [14:22:03]SAM_PROTO_SignData done [14:22:03]FM_MakeSignedData done [14:22:03]CreateOFDProtocolMessage [14:22:03]wFMCommunicate request_size=4 [14:22:03]MH_SAM_APDU [14:22:03]CAPDU: 80 11 00 00 [14:22:03]Write to MH i2c: E2 08 00 47 01 80 11 00 00 00 00 00 00 C2 [14:22:03]Write i2c OK [14:22:03]MH_I2C_Read... [14:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:03]Read from MH i2c: E2 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: E2 17 00 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: E2 17 00 47 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 15 [14:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:22:03]wFMCommunicate OK [14:22:03]CreateOFDProtocolMessage done [14:22:03]OFDSenderStorePacket 77068 [14:22:03]StoreOFDPacket docnum=77068 [14:22:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 31 FD 07 01 38 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 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 73 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 57 00 00 00 F4 03 04 00 89 72 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0C 2D 01 00 35 04 06 00 42 D8 43 EB C5 93 B7 A1 8F 63 FF 8F 4A 52 [14:22:03]CheckFolder [14:22:03]dirname=/storage/ofd_packets [14:22:03]CheckFolder done [14:22:03]ProducePacketName [14:22:03]name=ofd_packets/00077068 [14:22:03]NVStorageSaveData ofd_packets/00077068 [14:22:03]File name is /storage/ofd_packets/00077068 [14:22:03]Write 301 bytes [14:22:03]NVStorageSaveData done [14:22:03]OFDSenderStorePacket done [14:22:03]KKMCreateOFDPacket done [14:22:03]NVStorageSaveData kkm_last_timestamp [14:22:03]File name is /storage/kkm_last_timestamp [14:22:03]Write 4 bytes [14:22:03]NVStorageSaveData done [14:22:03]ExternCall_PrintAddStr [14:22:03]wPrintStart [14:22:03]Write to MH i2c: 01 00 00 48 01 49 [14:22:03]Write i2c OK [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: 01 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: 01 07 00 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: 01 07 00 48 01 00 00 00 00 00 FF 0F 5E [14:22:03]RasterBufferAndPrint [14:22:03]line Счет N : (1)191654 [14:22:03]line ИНН: 02508201610067 [14:22:03]line Контрольно-Кассовый Чек [14:22:03]line ПРОДАЖА [14:22:03]line ТРК (МРК, ГНК) : 33 [14:22:03]line Товар: 2710124130 [14:22:03]line Аи-92-К-5 [14:22:03]line 4.660 * 64.40 [14:22:03]line = 300.10 [14:22:03]line НДС 12% НСП 1% [14:22:03]line > о реализуемом товаре [14:22:03]line ОКРУГЛЕНИЕ: -0.10 [14:22:03]line ИТОГО: 300.00 [14:22:03]line Внесено: 300.00 [14:22:03]line СДАЧА: 0.00 [14:22:03]line НСП 1% : 2.66 [14:22:03]line НДС 12% : 31.87 [14:22:03]line Наличными: 300.00 [14:22:03]line Безнал.: 0.00 [14:22:03]line Место: АЗС № 106 "Партнер Нефть" [14:22:03]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:22:03]line СНО: Общий режим [14:22:03]line Чек 87 22.04.2024 14:22 [14:22:03]line Смена: 373 ФФД: 1.0 [14:22:03]line ЗНМ: 0300000141 [14:22:03]line РНМ: 0000000000091573 [14:22:03]line Версия ККМ: 001 [14:22:03]line ФМ: 0000000000874652 [14:22:03]line ФД: 77068 [14:22:03]line ФПД: 73496619894163 [14:22:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T142201&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77068&fm=73496619894163&tin=02508201610067®Number=0000000000091573&sum=30000 [14:22:03]written 0, free lines is 4095 [14:22:03]OFD Sender: Processing packet 77068 [packets to send 129, broken 128] [14:22:03]ProducePacketName [14:22:03]name=ofd_packets/00077068 [14:22:03]OFD Sender: To server: pG, [14:22:03]CommunicateWithHost lk.salyk.kg:30040 [14:22:03]ConnectInit lk.salyk.kg [14:22:03]Connected sock=10 [14:22:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 31 FD 07 01 38 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 3A 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 73 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 57 00 00 00 F4 03 04 00 89 72 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0C 2D 01 00 35 04 06 00 42 D8 43 EB C5 93 B7 A1 8F 63 FF 8F 4A 52 [14:22:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 ED E4 47 00 1C 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0C 2D 01 00 F4 03 04 00 0B 1A 26 66 B6 04 01 00 00 71 B0 01 0B 62 35 7D AF [14:22:03]CommunicateWithHost err = 0 [14:22:03]CheckOFDResponse [14:22:03]1017 (14) - 77093643461234 [14:22:03]1041 (16) - 0000000000874652 [14:22:03]1040 (4) - 77068 [14:22:03]1012 (4) - 22.04.2024 08:04 [14:22:03]1206 (1) - 0 [14:22:03]OFD Sender: Remove packet 77068 [14:22:03]ProducePacketName [14:22:03]name=ofd_packets/00077068 [14:22:03]NVStorageDeleteData [14:22:03]Write to MH i2c: 01 00 00 72 01 73 [14:22:03]Write i2c OK [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: 01 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: 01 07 00 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: 01 07 00 72 01 00 00 00 00 00 FF 0C 85 [14:22:03]RasterBufferAndPrint [14:22:03]line [14:22:03]line [14:22:03]line [14:22:03]line [14:22:03]line [14:22:03]written 0, free lines is 3333 [14:22:03]MH_Cut [14:22:03]Write to MH i2c: D1 01 00 79 01 01 4C [14:22:03]Write i2c OK [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: D1 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: D1 01 00 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: D1 01 00 79 01 00 4B [14:22:03]Write to MH i2c: 01 00 00 7A 01 7B [14:22:03]Write i2c OK [14:22:03]MH_I2C_Read... [14:22:04]OFD Sender: No OFD packet to send [14:22:04]*** Cut start [14:22:04]*** Partial cut [14:22:04]*** CUTSNS_PIN = 1 [14:22:04]*** CUTSNS_PIN = 0 [14:22:04]*** Brake cut motor [14:22:05]Read from MH i2c: 01 [14:22:05]MH_I2C_Read... [14:22:05]*** Stop cut motor [14:22:05]*** Cut end [14:22:05]Read from MH i2c: 01 07 00 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: 01 07 00 7A 01 00 00 00 00 00 FF 0F 90 [14:22:05]process_action close_receipt done [14:22:05]requested_data is exist [14:22:05]produce_requested_data [14:22:05]requested_item fm.sn is exist - process it [14:22:05]wFMCommunicate request_size=4 [14:22:05]MH_SAM_APDU [14:22:05]CAPDU: 80 11 00 00 [14:22:05]Write to MH i2c: E2 08 00 7B 01 80 11 00 00 00 00 00 00 F6 [14:22:05]Write i2c OK [14:22:05]MH_I2C_Read... [14:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:05]Read from MH i2c: E2 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: E2 17 00 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: E2 17 00 7B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 49 [14:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:22:05]wFMCommunicate OK [14:22:05]requested_item fd.num is exist - process it [14:22:05]SAM_PROTO_GetFieldsCounters [14:22:05]wFMCommunicate request_size=4 [14:22:05]MH_SAM_APDU [14:22:05]CAPDU: 80 13 00 00 [14:22:05]Write to MH i2c: E2 08 00 7C 01 80 13 00 00 00 00 00 00 F9 [14:22:05]Write i2c OK [14:22:05]MH_I2C_Read... [14:22:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:05]Read from MH i2c: E2 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: E2 62 00 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: E2 62 00 7C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0C 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [14:22:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0C 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:05]wFMCommunicate OK [14:22:05]SAM_PROTO_GetFieldsCounters done [14:22:05]requested_item shift.num is exist - process it [14:22:05]requested_item shift.opened is exist - process it [14:22:05]req_shift_opened [14:22:05]FM_GetShiftState [14:22:05]SAM_PROTO_GetShiftState [14:22:05]wFMCommunicate request_size=4 [14:22:05]MH_SAM_APDU [14:22:05]CAPDU: 80 13 01 00 [14:22:05]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [14:22:05]Write i2c OK [14:22:05]MH_I2C_Read... [14:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:05]Read from MH i2c: E2 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: E2 0E 00 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 22 [14:22:05]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:22:05]wFMCommunicate OK [14:22:05]SAM_PROTO_GetShiftState done [14:22:05]FM_GetShiftState done [14:22:05]req_shift_opened done [14:22:05]requested_item shift.open_date is exist - process it [14:22:05]req_shift_open_date [14:22:05]req_shift_open_date done [14:22:05]produce_requested_data done [14:22:05]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77068,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [14:22:05]process_action_free close_receipt [14:22:05]json_value_free [14:22:05]json_value_free done [14:22:05]process_json_proto returns [14:22:05]Send response to host [14:22:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77068,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [14:22:05]free response buf [14:22:05]execute_script done [14:22:05]execute_script returns [14:22:05]free content buf [14:22:05]Sock 7.Close socket [14:22:05]Sock 7.Thread stoped [14:22:09]OFD Sender: No OFD packet to send [14:22:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:12]accept exits with 9 [14:23:12]New connection [14:23:12]New thread 3067207012 created [14:23:12]Thread 3067350372 joined [14:23:12]Waiting for new connection... [14:23:12] Sock 9.Parse request [14:23:12]Sock 9.Check first char [14:23:12]Sock 9.First char is OK [14:23:12]request: POST /json_proto HTTP/1.0 [14:23:12]Method: POST [14:23:12]URL: /json_proto [14:23:12]Method is POST - this is cgi request [14:23:12]url: /json_proto [14:23:12]query_string will be loaded in cgi processing [14:23:12]execute_cgi json_proto POST (null) [14:23:12]execute_cgi path=json_proto method=POST [14:23:12]POST find Content-Length [14:23:12]Host: 172.17.62.5:8080 [14:23:12]Content-Length: 978 [14:23:12]Content-Type: application/json [14:23:12] [14:23:12]POST finish read [14:23:12]Found Content-Length = 978 [14:23:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 29.210, "sum" : 2100.20, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 29.21 \u0441\u043E\u043C", "deposit" : 2100.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:12]execute_script... [14:23: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)191655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 29.210, "sum" : 2100.20, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 29.21 \u0441\u043E\u043C", "deposit" : 2100.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:12]POST & json_proto [14:23:12]process_json_proto [14:23:12]json parsed OK: [14:23:12]protocol is kg_v1.0 [14:23:12]action value=close_receipt [14:23:12]process_action close_receipt [14:23:12]cmd_close_receipt [14:23:12]MH_GetDate [14:23:12]Write to MH i2c: F0 00 00 7E 01 6E [14:23:12]Write i2c OK [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: F0 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: F0 09 00 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: F0 09 00 7E 01 00 D1 72 26 66 F4 E9 65 64 EC [14:23:12]GetLastDocTimeStamp 1713795721 [14:23:12]current date 1713795793 [14:23:12]FM_GetShiftState [14:23:12]SAM_PROTO_GetShiftState [14:23:12]wFMCommunicate request_size=4 [14:23:12]MH_SAM_APDU [14:23:12]CAPDU: 80 13 01 00 [14:23:12]Write to MH i2c: E2 08 00 7F 01 80 13 01 00 00 00 00 00 FD [14:23:12]Write i2c OK [14:23:12]MH_I2C_Read... [14:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:13]Read from MH i2c: E2 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: E2 0E 00 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: E2 0E 00 7F 01 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 24 [14:23:13]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:23:13]wFMCommunicate OK [14:23:13]SAM_PROTO_GetShiftState done [14:23:13]FM_GetShiftState done [14:23:13]opened in 1713745124 [14:23:13]opened+sec_in_day 1713831524 [14:23:13]quantity*price = 210019 [14:23:13]sum+1 = 210021 [14:23:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 2100.00 Внесено: 2100.00 СДАЧА: 0.00 НСП 1% : 18.59 НДС 12% : 223.03 Наличными: 2100.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 88 22.04.2024 14:23 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 29.21 сом ФМ: 0000000000874652 ФД: 77069 ФПД: 241800300593982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T142313&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77069&fm=241800300593982&tin=02508201610067®Number=0000000000091573&sum=210000 [14:23:14]StoreToDocumentArchive [14:23:14]shift 373 fd 77069 [14:23:14]save to /storage/0373/doc_00077069 [14:23:14]save last doc name /storage/0373/doc_00077069 to /storage/kkm_last_doc_name [14:23:14]save OK [14:23:14]Clear old archive folders... [14:23:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:23:14]tlvbuf is 01939890 [14:23:14]SAM_PROTO_ClearQueue [14:23:14]wFMCommunicate request_size=4 [14:23:14]MH_SAM_APDU [14:23:14]CAPDU: 80 09 00 00 [14:23:14]Write to MH i2c: E2 08 00 8C 01 80 09 00 00 00 00 00 00 FF [14:23:14]Write i2c OK [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 [14:23:14]MH_I2C_Read... [14:23:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:14]Read from MH i2c: E2 03 00 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [14:23:14]RAPDU: 90 00 [14:23:14]wFMCommunicate OK [14:23:14]SAM_PROTO_ClearQueue done [14:23:14]KKMCreateOFDPacket [14:23:14]OFDProtocolAddRootSTLVToBuf [14:23:14]FM_MakeSignedData [14:23:14]FM_MakeSignedData [14:23:14]SAM_PROTO_SignData [14:23:14]wFMCommunicate request_size=4 [14:23:14]MH_SAM_APDU [14:23:14]CAPDU: 80 0D 01 02 [14:23:14]Write to MH i2c: E2 08 00 8D 01 80 0D 01 02 00 00 00 00 07 [14:23:14]Write i2c OK [14:23:14]MH_I2C_Read... [14:23:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:14]Read from MH i2c: E2 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 03 00 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [14:23:14]RAPDU: 90 00 [14:23:14]wFMCommunicate OK [14:23:14]wFMCommunicate request_size=255 [14:23:14]MH_SAM_APDU [14:23:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 72 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 64 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 57 00 00 00 00 07 04 06 00 50 34 03 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 D1 72 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0D 2D 01 00 35 04 06 00 DB EA 85 06 [14:23:14]Write to MH i2c: E2 02 01 8E 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 72 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 64 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 57 00 00 00 00 07 04 06 00 50 34 03 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 D1 72 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0D 2D 01 00 35 04 06 00 DB EA 85 06 00 00 B3 [14:23:14]Write i2c OK [14:23:14]MH_I2C_Read... [14:23:14]OFD Sender: No OFD packet to send [14:23:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:14]Read from MH i2c: E2 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 03 00 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [14:23:14]RAPDU: 90 00 [14:23:14]wFMCommunicate OK [14:23:14]wFMCommunicate request_size=7 [14:23:14]MH_SAM_APDU [14:23:14]CAPDU: 80 0D 02 02 02 03 3E [14:23:14]Write to MH i2c: E2 0A 00 8F 01 80 0D 02 02 02 00 03 3E 00 00 4F [14:23:14]Write i2c OK [14:23:14]MH_I2C_Read... [14:23:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:14]Read from MH i2c: E2 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 03 00 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 03 00 8F 01 00 90 00 04 [14:23:14]RAPDU: 90 00 [14:23:14]wFMCommunicate OK [14:23:14]wFMCommunicate request_size=4 [14:23:14]MH_SAM_APDU [14:23:14]CAPDU: 80 0D 03 02 [14:23:14]Write to MH i2c: E2 08 00 90 01 80 0D 03 02 00 00 00 00 0C [14:23:14]Write i2c OK [14:23:14]MH_I2C_Read... [14:23:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:14]Read from MH i2c: E2 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 0B 00 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 0B 00 90 01 00 FC EB 7C AA 75 B6 A7 19 90 00 05 [14:23:14]RAPDU: FC EB 7C AA 75 B6 A7 19 90 00 [14:23:14]wFMCommunicate OK [14:23:14]SAM_PROTO_SignData done [14:23:14]FM_MakeSignedData done [14:23:14]CreateOFDProtocolMessage [14:23:14]wFMCommunicate request_size=4 [14:23:14]MH_SAM_APDU [14:23:14]CAPDU: 80 11 00 00 [14:23:14]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [14:23:14]Write i2c OK [14:23:14]MH_I2C_Read... [14:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:14]Read from MH i2c: E2 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 17 00 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 5F [14:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:23:14]wFMCommunicate OK [14:23:14]CreateOFDProtocolMessage done [14:23:14]OFDSenderStorePacket 77069 [14:23:14]StoreOFDPacket docnum=77069 [14:23:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 C5 FF 04 01 1F 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 35 FF 03 08 00 03 1A 72 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 64 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 57 00 00 00 00 07 04 06 00 50 34 03 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 D1 72 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0D 2D 01 00 35 04 06 00 DB EA 85 06 03 3E FC EB 7C AA 75 B6 A7 19 [14:23:14]CheckFolder [14:23:14]dirname=/storage/ofd_packets [14:23:14]CheckFolder done [14:23:14]ProducePacketName [14:23:14]name=ofd_packets/00077069 [14:23:14]NVStorageSaveData ofd_packets/00077069 [14:23:14]File name is /storage/ofd_packets/00077069 [14:23:14]Write 298 bytes [14:23:14]NVStorageSaveData done [14:23:14]OFDSenderStorePacket done [14:23:14]KKMCreateOFDPacket done [14:23:14]NVStorageSaveData kkm_last_timestamp [14:23:14]File name is /storage/kkm_last_timestamp [14:23:14]Write 4 bytes [14:23:14]NVStorageSaveData done [14:23:14]ExternCall_PrintAddStr [14:23:14]wPrintStart [14:23:14]Write to MH i2c: 01 00 00 92 01 93 [14:23:14]Write i2c OK [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: 01 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: 01 07 00 [14:23:14]MH_I2C_Read... [14:23:14]Read from MH i2c: 01 07 00 92 01 00 00 00 00 00 FF 0F A8 [14:23:14]RasterBufferAndPrint [14:23:14]line Счет N : (1)191655 [14:23:14]line ИНН: 02508201610067 [14:23:14]line Контрольно-Кассовый Чек [14:23:14]line ПРОДАЖА [14:23:14]line ТРК (МРК, ГНК) : 51 [14:23:14]line Товар: 2710194210 [14:23:14]line ДТ-К-5 [14:23:14]line 29.210 * 71.90 [14:23:14]line = 2100.20 [14:23:14]line НДС 12% НСП 1% [14:23:14]line > о реализуемом товаре [14:23:14]line ОКРУГЛЕНИЕ: -0.20 [14:23:14]line ИТОГО: 2100.00 [14:23:14]line Внесено: 2100.00 [14:23:14]line СДАЧА: 0.00 [14:23:14]line НСП 1% : 18.59 [14:23:14]line НДС 12% : 223.03 [14:23:14]line Наличными: 2100.00 [14:23:14]line Безнал.: 0.00 [14:23:14]line Место: АЗС № 106 "Партнер Нефть" [14:23:14]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:23:14]line СНО: Общий режим [14:23:14]line Чек 88 22.04.2024 14:23 [14:23:14]line Смена: 373 ФФД: 1.0 [14:23:14]line ЗНМ: 0300000141 [14:23:14]line РНМ: 0000000000091573 [14:23:14]line Версия ККМ: 001 [14:23:14]line [14:23:14]line Дисконтная программа [14:23:14]line ДТ [14:23:14]line номер 106 [14:23:14]line сэкономлено 29.21 сом [14:23:14]line ФМ: 0000000000874652 [14:23:14]line ФД: 77069 [14:23:14]line ФПД: 241800300593982 [14:23:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T142313&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77069&fm=241800300593982&tin=02508201610067®Number=0000000000091573&sum=210000 [14:23:15]OFD Sender: Processing packet 77069 [packets to send 129, broken 128] [14:23:15]ProducePacketName [14:23:15]name=ofd_packets/00077069 [14:23:15]OFD Sender: To server: pG, [14:23:15]CommunicateWithHost lk.salyk.kg:30040 [14:23:15]ConnectInit lk.salyk.kg [14:23:15]written 0, free lines is 4095 [14:23:15]Connected sock=10 [14:23:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 C5 FF 04 01 1F 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 35 FF 03 08 00 03 1A 72 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 64 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 57 00 00 00 00 07 04 06 00 50 34 03 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 D1 72 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0D 2D 01 00 35 04 06 00 DB EA 85 06 03 3E FC EB 7C AA 75 B6 A7 19 [14:23:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 DD B1 47 00 AC 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0D 2D 01 00 F4 03 04 00 53 1A 26 66 B6 04 01 00 00 BE 32 34 02 1C EC E4 9C [14:23:15]CommunicateWithHost err = 0 [14:23:15]CheckOFDResponse [14:23:15]1017 (14) - 77093643461234 [14:23:15]1041 (16) - 0000000000874652 [14:23:15]1040 (4) - 77069 [14:23:15]1012 (4) - 22.04.2024 08:05 [14:23:15]1206 (1) - 0 [14:23:15]OFD Sender: Remove packet 77069 [14:23:15]ProducePacketName [14:23:15]name=ofd_packets/00077069 [14:23:15]NVStorageDeleteData [14:23:15]Write to MH i2c: 01 00 00 C1 01 C2 [14:23:15]Write i2c OK [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: 01 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: 01 07 00 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: 01 07 00 C1 01 00 00 00 00 00 92 0C 67 [14:23:15]RasterBufferAndPrint [14:23:15]line [14:23:15]line [14:23:15]line [14:23:15]line [14:23:15]line [14:23:15]written 0, free lines is 3225 [14:23:15]MH_Cut [14:23:15]Write to MH i2c: D1 01 00 C8 01 01 9B [14:23:15]Write i2c OK [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: D1 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: D1 01 00 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: D1 01 00 C8 01 00 9A [14:23:15]Write to MH i2c: 01 00 00 C9 01 CA [14:23:15]Write i2c OK [14:23:15]MH_I2C_Read... [14:23:15]OFD Sender: No OFD packet to send [14:23:16]*** Cut start [14:23:16]*** Partial cut [14:23:16]*** CUTSNS_PIN = 1 [14:23:16]*** CUTSNS_PIN = 0 [14:23:16]*** Brake cut motor [14:23:16]Read from MH i2c: 01 [14:23:16]MH_I2C_Read... [14:23:16]*** Stop cut motor [14:23:16]*** Cut end [14:23:16]Read from MH i2c: 01 07 00 [14:23:16]MH_I2C_Read... [14:23:16]Read from MH i2c: 01 07 00 C9 01 00 00 00 00 00 FF 0F DF [14:23:16]process_action close_receipt done [14:23:16]requested_data is exist [14:23:16]produce_requested_data [14:23:16]requested_item fm.sn is exist - process it [14:23:16]wFMCommunicate request_size=4 [14:23:16]MH_SAM_APDU [14:23:16]CAPDU: 80 11 00 00 [14:23:16]Write to MH i2c: E2 08 00 CA 01 80 11 00 00 00 00 00 00 45 [14:23:16]Write i2c OK [14:23:16]MH_I2C_Read... [14:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:16]Read from MH i2c: E2 [14:23:16]MH_I2C_Read... [14:23:16]Read from MH i2c: E2 17 00 [14:23:16]MH_I2C_Read... [14:23:16]Read from MH i2c: E2 17 00 CA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 98 [14:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:23:16]wFMCommunicate OK [14:23:16]requested_item fd.num is exist - process it [14:23:16]SAM_PROTO_GetFieldsCounters [14:23:16]wFMCommunicate request_size=4 [14:23:16]MH_SAM_APDU [14:23:16]CAPDU: 80 13 00 00 [14:23:16]Write to MH i2c: E2 08 00 CB 01 80 13 00 00 00 00 00 00 48 [14:23:16]Write i2c OK [14:23:16]MH_I2C_Read... [14:23:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:17]Read from MH i2c: E2 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 62 00 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 62 00 CB 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0D 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [14:23:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0D 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:17]wFMCommunicate OK [14:23:17]SAM_PROTO_GetFieldsCounters done [14:23:17]requested_item shift.num is exist - process it [14:23:17]requested_item shift.opened is exist - process it [14:23:17]req_shift_opened [14:23:17]FM_GetShiftState [14:23:17]SAM_PROTO_GetShiftState [14:23:17]wFMCommunicate request_size=4 [14:23:17]MH_SAM_APDU [14:23:17]CAPDU: 80 13 01 00 [14:23:17]Write to MH i2c: E2 08 00 CC 01 80 13 01 00 00 00 00 00 4A [14:23:17]Write i2c OK [14:23:17]MH_I2C_Read... [14:23:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:17]Read from MH i2c: E2 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 0E 00 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 0E 00 CC 01 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 71 [14:23:17]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:23:17]wFMCommunicate OK [14:23:17]SAM_PROTO_GetShiftState done [14:23:17]FM_GetShiftState done [14:23:17]req_shift_opened done [14:23:17]requested_item shift.open_date is exist - process it [14:23:17]req_shift_open_date [14:23:17]req_shift_open_date done [14:23:17]produce_requested_data done [14:23:17]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77069,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [14:23:17]process_action_free close_receipt [14:23:17]json_value_free [14:23:17]json_value_free done [14:23:17]process_json_proto returns [14:23:17]Send response to host [14:23:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77069,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [14:23:17]free response buf [14:23:17]execute_script done [14:23:17]execute_script returns [14:23:17]free content buf [14:23:17]Sock 9.Close socket [14:23:17]Sock 9.Thread stoped [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:55]accept exits with 7 [14:32:55]New connection [14:32:55]New thread 3067350372 created [14:32:55]Thread 3067207012 joined [14:32:55]Waiting for new connection... [14:32:55] Sock 7.Parse request [14:32:55]Sock 7.Check first char [14:32:55]Sock 7.First char is OK [14:32:55]request: POST /json_proto HTTP/1.0 [14:32:55]Method: POST [14:32:55]URL: /json_proto [14:32:55]Method is POST - this is cgi request [14:32:55]url: /json_proto [14:32:55]query_string will be loaded in cgi processing [14:32:55]execute_cgi json_proto POST (null) [14:32:55]execute_cgi path=json_proto method=POST [14:32:55]POST find Content-Length [14:32:55]Host: 172.17.62.5:8080 [14:32:55]Content-Length: 990 [14:32:55]Content-Type: application/json [14:32:55] [14:32:55]POST finish read [14:32:55]Found Content-Length = 990 [14:32:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 36.280, "sum" : 1150.08, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 36.28 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1150.00, "payments": [ { "type": 0, "sum" : 1150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:55]execute_script... [14:32:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 31.70, "quantity" : 36.280, "sum" : 1150.08, "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\u0421\u0423\u0413\u000A\u043D\u043E\u043C\u0435\u0440 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 36.28 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1150.00, "payments": [ { "type": 0, "sum" : 1150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:55]POST & json_proto [14:32:55]process_json_proto [14:32:55]json parsed OK: [14:32:55]protocol is kg_v1.0 [14:32:55]action value=close_receipt [14:32:55]process_action close_receipt [14:32:55]cmd_close_receipt [14:32:55]MH_GetDate [14:32:55]Write to MH i2c: F0 00 00 CD 01 BD [14:32:55]Write i2c OK [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: F0 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: F0 09 00 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: F0 09 00 CD 01 00 17 75 26 66 F4 E9 65 64 84 [14:32:55]GetLastDocTimeStamp 1713795793 [14:32:55]current date 1713796375 [14:32:55]FM_GetShiftState [14:32:55]SAM_PROTO_GetShiftState [14:32:55]wFMCommunicate request_size=4 [14:32:55]MH_SAM_APDU [14:32:55]CAPDU: 80 13 01 00 [14:32:55]Write to MH i2c: E2 08 00 CE 01 80 13 01 00 00 00 00 00 4C [14:32:55]Write i2c OK [14:32:55]MH_I2C_Read... [14:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:55]Read from MH i2c: E2 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 0E 00 [14:32:55]MH_I2C_Read... [14:32:55]Read from MH i2c: E2 0E 00 CE 01 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 73 [14:32:55]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:32:55]wFMCommunicate OK [14:32:55]SAM_PROTO_GetShiftState done [14:32:55]FM_GetShiftState done [14:32:55]opened in 1713745124 [14:32:55]opened+sec_in_day 1713831524 [14:32:55]quantity*price = 115007 [14:32:55]sum+1 = 115009 [14:32:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1150.00 Внесено: 2000.00 СДАЧА: 850.00 НСП 1% : 10.18 НДС 12% : 122.13 Наличными: 1150.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 89 22.04.2024 14:32 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа СУГ номер 106 сэкономлено 36.28 сом ФМ: 0000000000874652 ФД: 77070 ФПД: 219434555634897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T143255&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77070&fm=219434555634897&tin=02508201610067®Number=0000000000091573&sum=115000 [14:32:56]StoreToDocumentArchive [14:32:56]shift 373 fd 77070 [14:32:56]save to /storage/0373/doc_00077070 [14:32:56]save last doc name /storage/0373/doc_00077070 to /storage/kkm_last_doc_name [14:32:56]save OK [14:32:56]Clear old archive folders... [14:32:56]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:32:56]tlvbuf is 019BF660 [14:32:56]SAM_PROTO_ClearQueue [14:32:56]wFMCommunicate request_size=4 [14:32:56]MH_SAM_APDU [14:32:56]CAPDU: 80 09 00 00 [14:32:56]Write to MH i2c: E2 08 00 DB 01 80 09 00 00 00 00 00 00 4E [14:32:56]Write i2c OK [14:32:56]MH_I2C_Read... [14:32:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:56]Read from MH i2c: E2 [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: E2 03 00 [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: E2 03 00 DB 01 00 90 00 50 [14:32:56]RAPDU: 90 00 [14:32:56]wFMCommunicate OK [14:32:56]SAM_PROTO_ClearQueue done [14:32:56]KKMCreateOFDPacket [14:32:56]OFDProtocolAddRootSTLVToBuf [14:32:56]FM_MakeSignedData [14:32:56]FM_MakeSignedData [14:32:56]SAM_PROTO_SignData [14:32:56]wFMCommunicate request_size=4 [14:32:56]MH_SAM_APDU [14:32:56]CAPDU: 80 0D 01 02 [14:32:56]Write to MH i2c: E2 08 00 DC 01 80 0D 01 02 00 00 00 00 56 [14:32:56]Write i2c OK [14:32:56]MH_I2C_Read... [14:32:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:56]Read from MH i2c: E2 [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: E2 03 00 [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: E2 03 00 DC 01 00 90 00 51 [14:32:56]RAPDU: 90 00 [14:32:56]wFMCommunicate OK [14:32:56]wFMCommunicate request_size=255 [14:32:56]MH_SAM_APDU [14:32:56]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B8 8D 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 40 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 17 75 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0E 2D 01 00 35 04 06 00 C7 93 [14:32:56]Write to MH i2c: E2 02 01 DD 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B8 8D 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 40 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 17 75 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0E 2D 01 00 35 04 06 00 C7 93 00 00 0E [14:32:56]Write i2c OK [14:32:56]MH_I2C_Read... [14:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:57]Read from MH i2c: E2 [14:32:57]MH_I2C_Read... [14:32:57]Read from MH i2c: E2 03 00 [14:32:57]MH_I2C_Read... [14:32:57]Read from MH i2c: E2 03 00 DD 01 00 90 00 52 [14:32:57]RAPDU: 90 00 [14:32:57]wFMCommunicate OK [14:32:57]wFMCommunicate request_size=9 [14:32:57]MH_SAM_APDU [14:32:57]CAPDU: 80 0D 02 02 04 16 BD 74 D1 [14:32:57]Write to MH i2c: E2 0C 00 DE 01 80 0D 02 02 04 00 16 BD 74 D1 00 00 79 [14:32:57]Write i2c OK [14:32:57]MH_I2C_Read... [14:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:57]Read from MH i2c: E2 [14:32:57]MH_I2C_Read... [14:32:57]Read from MH i2c: E2 03 00 [14:32:57]MH_I2C_Read... [14:32:57]Read from MH i2c: E2 03 00 DE 01 00 90 00 53 [14:32:57]RAPDU: 90 00 [14:32:57]wFMCommunicate OK [14:32:57]wFMCommunicate request_size=4 [14:32:57]MH_SAM_APDU [14:32:57]CAPDU: 80 0D 03 02 [14:32:57]Write to MH i2c: E2 08 00 DF 01 80 0D 03 02 00 00 00 00 5B [14:32:57]Write i2c OK [14:32:57]MH_I2C_Read... [14:32:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:57]Read from MH i2c: E2 [14:32:57]MH_I2C_Read... [14:32:57]Read from MH i2c: E2 0B 00 [14:32:57]MH_I2C_Read... [14:32:57]Read from MH i2c: E2 0B 00 DF 01 00 7B F0 50 EF 90 C3 7F B7 90 00 8F [14:32:57]RAPDU: 7B F0 50 EF 90 C3 7F B7 90 00 [14:32:57]wFMCommunicate OK [14:32:57]SAM_PROTO_SignData done [14:32:57]FM_MakeSignedData done [14:32:57]CreateOFDProtocolMessage [14:32:57]wFMCommunicate request_size=4 [14:32:57]MH_SAM_APDU [14:32:57]CAPDU: 80 11 00 00 [14:32:57]Write to MH i2c: E2 08 00 E0 01 80 11 00 00 00 00 00 00 5B [14:32:57]Write i2c OK [14:32:57]MH_I2C_Read... [14:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:57]Read from MH i2c: E2 [14:32:57]MH_I2C_Read... [14:32:57]Read from MH i2c: E2 17 00 [14:32:57]MH_I2C_Read... [14:32:57]Read from MH i2c: E2 17 00 E0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 AE [14:32:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:32:57]wFMCommunicate OK [14:32:57]CreateOFDProtocolMessage done [14:32:57]OFDSenderStorePacket 77070 [14:32:57]StoreOFDPacket docnum=77070 [14:32:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 9E B8 06 01 80 3A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B8 8D 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 40 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 17 75 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0E 2D 01 00 35 04 06 00 C7 93 16 BD 74 D1 7B F0 50 EF 90 C3 7F B7 [14:32:57]CheckFolder [14:32:57]dirname=/storage/ofd_packets [14:32:57]CheckFolder done [14:32:57]ProducePacketName [14:32:57]name=ofd_packets/00077070 [14:32:57]NVStorageSaveData ofd_packets/00077070 [14:32:57]File name is /storage/ofd_packets/00077070 [14:32:57]Write 300 bytes [14:32:57]NVStorageSaveData done [14:32:57]OFDSenderStorePacket done [14:32:57]KKMCreateOFDPacket done [14:32:57]NVStorageSaveData kkm_last_timestamp [14:32:57]File name is /storage/kkm_last_timestamp [14:32:57]Write 4 bytes [14:32:57]NVStorageSaveData done [14:32:57]ExternCall_PrintAddStr [14:32:57]wPrintStart [14:32:57]Write to MH i2c: 01 00 00 E1 01 E2 [14:32:57]Write i2c OK [14:32:57]MH_I2C_Read... [14:32:57]Read from MH i2c: 01 [14:32:57]MH_I2C_Read... [14:32:57]Read from MH i2c: 01 07 00 [14:32:57]MH_I2C_Read... [14:32:57]Read from MH i2c: 01 07 00 E1 01 00 00 00 00 00 FF 0F F7 [14:32:57]RasterBufferAndPrint [14:32:57]line Счет N : (1)191656 [14:32:57]line ИНН: 02508201610067 [14:32:57]line Контрольно-Кассовый Чек [14:32:57]line ПРОДАЖА [14:32:57]line ТРК (МРК, ГНК) : 71 [14:32:57]line Товар: 2711190000 [14:32:57]line ГАЗ-К-5 [14:32:57]line 36.280 * 31.70 [14:32:57]line = 1150.08 [14:32:57]line НДС 12% НСП 1% [14:32:57]line > о реализуемом товаре [14:32:57]line ОКРУГЛЕНИЕ: -0.08 [14:32:57]line ИТОГО: 1150.00 [14:32:57]line Внесено: 2000.00 [14:32:57]line СДАЧА: 850.00 [14:32:57]line НСП 1% : 10.18 [14:32:57]line НДС 12% : 122.13 [14:32:57]line Наличными: 1150.00 [14:32:57]line Безнал.: 0.00 [14:32:57]line Место: АЗС № 106 "Партнер Нефть" [14:32:57]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:32:57]line СНО: Общий режим [14:32:57]line Чек 89 22.04.2024 14:32 [14:32:57]line Смена: 373 ФФД: 1.0 [14:32:57]line ЗНМ: 0300000141 [14:32:57]line РНМ: 0000000000091573 [14:32:57]line Версия ККМ: 001 [14:32:57]line [14:32:57]line Дисконтная программа [14:32:57]line СУГ [14:32:57]line номер 106 [14:32:57]line сэкономлено 36.28 сом [14:32:57]line ФМ: 0000000000874652 [14:32:57]line ФД: 77070 [14:32:57]line ФПД: 219434555634897 [14:32:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T143255&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77070&fm=219434555634897&tin=02508201610067®Number=0000000000091573&sum=115000 [14:32:57]OFD Sender: Processing packet 77070 [packets to send 129, broken 128] [14:32:57]ProducePacketName [14:32:57]name=ofd_packets/00077070 [14:32:57]OFD Sender: To server: pG, [14:32:57]CommunicateWithHost lk.salyk.kg:30040 [14:32:57]ConnectInit lk.salyk.kg [14:32:57]written 0, free lines is 4095 [14:32:57]Connected sock=11 [14:32:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0E 01 00 00 9E B8 06 01 80 3A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B8 8D 00 00 00 00 00 37 04 06 00 62 0C 00 00 00 00 13 04 06 00 40 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 17 75 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0E 2D 01 00 35 04 06 00 C7 93 16 BD 74 D1 7B F0 50 EF 90 C3 7F B7 [14:32:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 13 3B 47 00 37 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0E 2D 01 00 F4 03 04 00 9A 1C 26 66 B6 04 01 00 00 17 5A F6 1F 37 F4 9B 40 [14:32:57]CommunicateWithHost err = 0 [14:32:57]CheckOFDResponse [14:32:57]1017 (14) - 77093643461234 [14:32:57]1041 (16) - 0000000000874652 [14:32:57]1040 (4) - 77070 [14:32:57]1012 (4) - 22.04.2024 08:15 [14:32:57]1206 (1) - 0 [14:32:57]OFD Sender: Remove packet 77070 [14:32:57]ProducePacketName [14:32:57]name=ofd_packets/00077070 [14:32:57]NVStorageDeleteData [14:32:58]Write to MH i2c: 01 00 00 10 02 12 [14:32:58]Write i2c OK [14:32:58]MH_I2C_Read... [14:32:58]Read from MH i2c: 01 [14:32:58]MH_I2C_Read... [14:32:58]Read from MH i2c: 01 07 00 [14:32:58]MH_I2C_Read... [14:32:58]Read from MH i2c: 01 07 00 10 02 00 00 00 00 00 A6 0C CB [14:32:58]RasterBufferAndPrint [14:32:58]line [14:32:58]line [14:32:58]line [14:32:58]line [14:32:58]line [14:32:58]written 0, free lines is 3242 [14:32:58]MH_Cut [14:32:58]Write to MH i2c: D1 01 00 17 02 01 EB [14:32:58]Write i2c OK [14:32:58]MH_I2C_Read... [14:32:58]Read from MH i2c: D1 [14:32:58]MH_I2C_Read... [14:32:58]Read from MH i2c: D1 01 00 [14:32:58]MH_I2C_Read... [14:32:58]Read from MH i2c: D1 01 00 17 02 00 EA [14:32:58]Write to MH i2c: 01 00 00 18 02 1A [14:32:58]Write i2c OK [14:32:58]MH_I2C_Read... [14:32:58]OFD Sender: No OFD packet to send [14:32:58]*** Cut start [14:32:58]*** Partial cut [14:32:58]*** CUTSNS_PIN = 1 [14:32:58]*** CUTSNS_PIN = 0 [14:32:59]*** Brake cut motor [14:32:59]Read from MH i2c: 01 [14:32:59]MH_I2C_Read... [14:32:59]*** Stop cut motor [14:32:59]*** Cut end [14:32:59]Read from MH i2c: 01 07 00 [14:32:59]MH_I2C_Read... [14:32:59]Read from MH i2c: 01 07 00 18 02 00 00 00 00 00 FF 0F 2F [14:32:59]process_action close_receipt done [14:32:59]requested_data is exist [14:32:59]produce_requested_data [14:32:59]requested_item fm.sn is exist - process it [14:32:59]wFMCommunicate request_size=4 [14:32:59]MH_SAM_APDU [14:32:59]CAPDU: 80 11 00 00 [14:32:59]Write to MH i2c: E2 08 00 19 02 80 11 00 00 00 00 00 00 95 [14:32:59]Write i2c OK [14:32:59]MH_I2C_Read... [14:32:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:59]Read from MH i2c: E2 [14:32:59]MH_I2C_Read... [14:32:59]Read from MH i2c: E2 17 00 [14:32:59]MH_I2C_Read... [14:32:59]Read from MH i2c: E2 17 00 19 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E8 [14:32:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:32:59]wFMCommunicate OK [14:32:59]requested_item fd.num is exist - process it [14:32:59]SAM_PROTO_GetFieldsCounters [14:32:59]wFMCommunicate request_size=4 [14:32:59]MH_SAM_APDU [14:32:59]CAPDU: 80 13 00 00 [14:32:59]Write to MH i2c: E2 08 00 1A 02 80 13 00 00 00 00 00 00 98 [14:32:59]Write i2c OK [14:32:59]MH_I2C_Read... [14:32:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:59]Read from MH i2c: E2 [14:32:59]MH_I2C_Read... [14:32:59]Read from MH i2c: E2 62 00 [14:32:59]MH_I2C_Read... [14:32:59]Read from MH i2c: E2 62 00 1A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0E 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [14:32:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0E 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:59]wFMCommunicate OK [14:32:59]SAM_PROTO_GetFieldsCounters done [14:32:59]requested_item shift.num is exist - process it [14:32:59]requested_item shift.opened is exist - process it [14:32:59]req_shift_opened [14:32:59]FM_GetShiftState [14:32:59]SAM_PROTO_GetShiftState [14:32:59]wFMCommunicate request_size=4 [14:32:59]MH_SAM_APDU [14:32:59]CAPDU: 80 13 01 00 [14:32:59]Write to MH i2c: E2 08 00 1B 02 80 13 01 00 00 00 00 00 9A [14:32:59]Write i2c OK [14:32:59]MH_I2C_Read... [14:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:59]Read from MH i2c: E2 [14:32:59]MH_I2C_Read... [14:32:59]Read from MH i2c: E2 0E 00 [14:32:59]MH_I2C_Read... [14:32:59]Read from MH i2c: E2 0E 00 1B 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 C1 [14:32:59]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:32:59]wFMCommunicate OK [14:32:59]SAM_PROTO_GetShiftState done [14:32:59]FM_GetShiftState done [14:32:59]req_shift_opened done [14:32:59]requested_item shift.open_date is exist - process it [14:32:59]req_shift_open_date [14:32:59]req_shift_open_date done [14:32:59]produce_requested_data done [14:32:59]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77070,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [14:32:59]process_action_free close_receipt [14:32:59]json_value_free [14:32:59]json_value_free done [14:32:59]process_json_proto returns [14:32:59]Send response to host [14:32:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77070,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [14:32:59]free response buf [14:32:59]execute_script done [14:32:59]execute_script returns [14:32:59]free content buf [14:32:59]Sock 7.Close socket [14:32:59]Sock 7.Thread stoped [14:33:03]OFD Sender: No OFD packet to send [14:33:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [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]accept exits with 9 [14:35:43]New connection [14:35:43]New thread 3067207012 created [14:35:43]Thread 3067350372 joined [14:35:43]Waiting for new connection... [14:35:43] Sock 9.Parse request [14:35:43]Sock 9.Check first char [14:35:43]Sock 9.First char is OK [14:35:43]request: POST /json_proto HTTP/1.0 [14:35:43]Method: POST [14:35:43]URL: /json_proto [14:35:43]Method is POST - this is cgi request [14:35:43]url: /json_proto [14:35:43]query_string will be loaded in cgi processing [14:35:43]execute_cgi json_proto POST (null) [14:35:43]execute_cgi path=json_proto method=POST [14:35:43]POST find Content-Length [14:35:43]Host: 172.17.62.5:8080 [14:35:43]Content-Length: 682 [14:35:43]Content-Type: application/json [14:35:43] [14:35:43]POST finish read [14:35:43]Found Content-Length = 682 [14:35:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "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:35:43]execute_script... [14: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)191657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.40, "quantity" : 15.530, "sum" : 1000.13, "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:35:43]POST & json_proto [14:35:43]process_json_proto [14:35:43]json parsed OK: [14:35:43]protocol is kg_v1.0 [14:35:43]action value=close_receipt [14:35:43]process_action close_receipt [14:35:43]cmd_close_receipt [14:35:43]MH_GetDate [14:35:43]Write to MH i2c: F0 00 00 1C 02 0D [14:35:43]Write i2c OK [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: F0 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: F0 09 00 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: F0 09 00 1C 02 00 BF 75 26 66 F4 E9 65 64 7C [14:35:43]GetLastDocTimeStamp 1713796375 [14:35:43]current date 1713796543 [14:35:43]FM_GetShiftState [14:35:43]SAM_PROTO_GetShiftState [14:35:43]wFMCommunicate request_size=4 [14:35:43]MH_SAM_APDU [14:35:43]CAPDU: 80 13 01 00 [14:35:43]Write to MH i2c: E2 08 00 1D 02 80 13 01 00 00 00 00 00 9C [14:35:43]Write i2c OK [14:35:43]MH_I2C_Read... [14:35:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:43]Read from MH i2c: E2 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: E2 0E 00 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: E2 0E 00 1D 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 C3 [14:35:43]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:35:43]wFMCommunicate OK [14:35:43]SAM_PROTO_GetShiftState done [14:35:43]FM_GetShiftState done [14:35:43]opened in 1713745124 [14:35:43]opened+sec_in_day 1713831524 [14:35:43]quantity*price = 100013 [14:35:43]sum+1 = 100014 [14:35:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 90 22.04.2024 14:35 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77071 ФПД: 166293023997494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T143543&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77071&fm=166293023997494&tin=02508201610067®Number=0000000000091573&sum=100000 [14:35:44]StoreToDocumentArchive [14:35:44]shift 373 fd 77071 [14:35:44]save to /storage/0373/doc_00077071 [14:35:44]save last doc name /storage/0373/doc_00077071 to /storage/kkm_last_doc_name [14:35:44]save OK [14:35:44]Clear old archive folders... [14:35:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:44]tlvbuf is 0193E480 [14:35:44]SAM_PROTO_ClearQueue [14:35:44]wFMCommunicate request_size=4 [14:35:44]MH_SAM_APDU [14:35:44]CAPDU: 80 09 00 00 [14:35:44]Write to MH i2c: E2 08 00 2A 02 80 09 00 00 00 00 00 00 9E [14:35:44]Write i2c OK [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 [14:35:44]MH_I2C_Read... [14:35:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:44]Read from MH i2c: E2 03 00 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 03 00 2A 02 00 90 00 A0 [14:35:44]RAPDU: 90 00 [14:35:44]wFMCommunicate OK [14:35:44]SAM_PROTO_ClearQueue done [14:35:44]KKMCreateOFDPacket [14:35:44]OFDProtocolAddRootSTLVToBuf [14:35:44]FM_MakeSignedData [14:35:44]FM_MakeSignedData [14:35:44]SAM_PROTO_SignData [14:35:44]wFMCommunicate request_size=4 [14:35:44]MH_SAM_APDU [14:35:44]CAPDU: 80 0D 01 02 [14:35:44]Write to MH i2c: E2 08 00 2B 02 80 0D 01 02 00 00 00 00 A6 [14:35:44]Write i2c OK [14:35:44]MH_I2C_Read... [14:35:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:44]Read from MH i2c: E2 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 03 00 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 03 00 2B 02 00 90 00 A1 [14:35:44]RAPDU: 90 00 [14:35:44]wFMCommunicate OK [14:35:44]wFMCommunicate request_size=255 [14:35:44]MH_SAM_APDU [14: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 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 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 5A 00 00 00 F4 03 04 00 BF 75 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0F 2D 01 00 35 04 06 00 97 [14:35:44]Write to MH i2c: E2 02 01 2C 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 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 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 5A 00 00 00 F4 03 04 00 BF 75 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0F 2D 01 00 35 04 06 00 97 00 00 DB [14:35:44]Write i2c OK [14:35:44]MH_I2C_Read... [14:35:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:44]Read from MH i2c: E2 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 03 00 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 03 00 2C 02 00 90 00 A2 [14:35:44]RAPDU: 90 00 [14:35:44]wFMCommunicate OK [14:35:44]wFMCommunicate request_size=10 [14:35:44]MH_SAM_APDU [14:35:44]CAPDU: 80 0D 02 02 05 3E 1C 9F BE 36 [14:35:44]Write to MH i2c: E2 0D 00 2D 02 80 0D 02 02 05 00 3E 1C 9F BE 36 00 00 A0 [14:35:44]Write i2c OK [14:35:44]MH_I2C_Read... [14:35:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:44]Read from MH i2c: E2 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 03 00 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 03 00 2D 02 00 90 00 A3 [14:35:44]RAPDU: 90 00 [14:35:44]wFMCommunicate OK [14:35:44]wFMCommunicate request_size=4 [14:35:44]MH_SAM_APDU [14:35:44]CAPDU: 80 0D 03 02 [14:35:44]Write to MH i2c: E2 08 00 2E 02 80 0D 03 02 00 00 00 00 AB [14:35:44]Write i2c OK [14:35:44]MH_I2C_Read... [14:35:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:44]Read from MH i2c: E2 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 0B 00 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 0B 00 2E 02 00 98 32 DF C0 4E 1F 87 C4 90 00 CD [14:35:44]RAPDU: 98 32 DF C0 4E 1F 87 C4 90 00 [14:35:44]wFMCommunicate OK [14:35:44]SAM_PROTO_SignData done [14:35:44]FM_MakeSignedData done [14:35:44]CreateOFDProtocolMessage [14:35:44]wFMCommunicate request_size=4 [14:35:44]MH_SAM_APDU [14:35:44]CAPDU: 80 11 00 00 [14:35:44]Write to MH i2c: E2 08 00 2F 02 80 11 00 00 00 00 00 00 AB [14:35:44]Write i2c OK [14:35:44]MH_I2C_Read... [14:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:44]Read from MH i2c: E2 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 17 00 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 17 00 2F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 FE [14:35:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:35:44]wFMCommunicate OK [14:35:44]CreateOFDProtocolMessage done [14:35:44]OFDSenderStorePacket 77071 [14:35:44]StoreOFDPacket docnum=77071 [14:35:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 53 42 07 01 3E E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 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 5A 00 00 00 F4 03 04 00 BF 75 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0F 2D 01 00 35 04 06 00 97 3E 1C 9F BE 36 98 32 DF C0 4E 1F 87 C4 [14:35:44]CheckFolder [14:35:44]dirname=/storage/ofd_packets [14:35:44]CheckFolder done [14:35:44]ProducePacketName [14:35:44]name=ofd_packets/00077071 [14:35:44]NVStorageSaveData ofd_packets/00077071 [14:35:44]File name is /storage/ofd_packets/00077071 [14:35:44]Write 301 bytes [14:35:44]NVStorageSaveData done [14:35:44]OFDSenderStorePacket done [14:35:44]KKMCreateOFDPacket done [14:35:44]NVStorageSaveData kkm_last_timestamp [14:35:44]File name is /storage/kkm_last_timestamp [14:35:44]Write 4 bytes [14:35:44]NVStorageSaveData done [14:35:44]ExternCall_PrintAddStr [14:35:44]wPrintStart [14:35:44]Write to MH i2c: 01 00 00 30 02 32 [14:35:44]Write i2c OK [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: 01 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: 01 07 00 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: 01 07 00 30 02 00 00 00 00 00 FF 0F 47 [14:35:44]RasterBufferAndPrint [14:35:44]line Счет N : (1)191657 [14:35:44]line ИНН: 02508201610067 [14:35:44]line Контрольно-Кассовый Чек [14:35:44]line ПРОДАЖА [14:35:44]line ТРК (МРК, ГНК) : 12 [14:35:44]line Товар: 2710124130 [14:35:44]line Аи-92-К-5 [14:35:44]line 15.530 * 64.40 [14:35:44]line = 1000.13 [14:35:44]line НДС 12% НСП 1% [14:35:44]line > о реализуемом товаре [14:35:44]line ОКРУГЛЕНИЕ: -0.13 [14:35:44]line ИТОГО: 1000.00 [14:35:44]line Внесено: 1000.00 [14:35:44]line СДАЧА: 0.00 [14:35:44]line НСП 1% : 8.85 [14:35:44]line НДС 12% : 106.21 [14:35:44]line Наличными: 1000.00 [14:35:44]line Безнал.: 0.00 [14:35:44]line Место: АЗС № 106 "Партнер Нефть" [14:35:44]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:35:44]line СНО: Общий режим [14:35:44]line Чек 90 22.04.2024 14:35 [14:35:44]line Смена: 373 ФФД: 1.0 [14:35:44]line ЗНМ: 0300000141 [14:35:44]line РНМ: 0000000000091573 [14:35:44]line Версия ККМ: 001 [14:35:44]line ФМ: 0000000000874652 [14:35:44]line ФД: 77071 [14:35:44]line ФПД: 166293023997494 [14:35:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T143543&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77071&fm=166293023997494&tin=02508201610067®Number=0000000000091573&sum=100000 [14:35:45]OFD Sender: Processing packet 77071 [packets to send 129, broken 128] [14:35:45]ProducePacketName [14:35:45]name=ofd_packets/00077071 [14:35:45]OFD Sender: To server: pG, [14:35:45]CommunicateWithHost lk.salyk.kg:30040 [14:35:45]ConnectInit lk.salyk.kg [14:35:45]written 0, free lines is 4095 [14:35:45]Connected sock=10 [14:35:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 53 42 07 01 3E E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 3C 00 00 00 00 00 37 04 06 00 28 19 00 00 00 00 13 04 06 00 AD 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 5A 00 00 00 F4 03 04 00 BF 75 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0F 2D 01 00 35 04 06 00 97 3E 1C 9F BE 36 98 32 DF C0 4E 1F 87 C4 [14:35:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 DE DE 47 00 5A 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 0F 2D 01 00 F4 03 04 00 41 1D 26 66 B6 04 01 00 00 48 46 8B F0 9E 04 54 43 [14:35:45]CommunicateWithHost err = 0 [14:35:45]CheckOFDResponse [14:35:45]1017 (14) - 77093643461234 [14:35:45]1041 (16) - 0000000000874652 [14:35:45]1040 (4) - 77071 [14:35:45]1012 (4) - 22.04.2024 08:18 [14:35:45]1206 (1) - 0 [14:35:45]OFD Sender: Remove packet 77071 [14:35:45]ProducePacketName [14:35:45]name=ofd_packets/00077071 [14:35:45]NVStorageDeleteData [14:35:45]Write to MH i2c: 01 00 00 5A 02 5C [14:35:45]Write i2c OK [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: 01 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: 01 07 00 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: 01 07 00 5A 02 00 00 00 00 00 FC 0C 6B [14:35:45]RasterBufferAndPrint [14:35:45]line [14:35:45]line [14:35:45]line [14:35:45]line [14:35:45]line [14:35:45]written 0, free lines is 3330 [14:35:45]MH_Cut [14:35:45]Write to MH i2c: D1 01 00 61 02 01 35 [14:35:45]Write i2c OK [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: D1 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: D1 01 00 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: D1 01 00 61 02 00 34 [14:35:45]Write to MH i2c: 01 00 00 62 02 64 [14:35:45]Write i2c OK [14:35:45]MH_I2C_Read... [14:35:45]OFD Sender: No OFD packet to send [14:35:46]*** Cut start [14:35:46]*** Partial cut [14:35:46]*** CUTSNS_PIN = 1 [14:35:46]*** CUTSNS_PIN = 0 [14:35:46]*** Brake cut motor [14:35:46]Read from MH i2c: 01 [14:35:46]MH_I2C_Read... [14:35:46]*** Stop cut motor [14:35:46]*** Cut end [14:35:46]Read from MH i2c: 01 07 00 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 FF 0F 79 [14:35:46]process_action close_receipt done [14:35:46]requested_data is exist [14:35:46]produce_requested_data [14:35:46]requested_item fm.sn is exist - process it [14:35:46]wFMCommunicate request_size=4 [14:35:46]MH_SAM_APDU [14:35:46]CAPDU: 80 11 00 00 [14:35:46]Write to MH i2c: E2 08 00 63 02 80 11 00 00 00 00 00 00 DF [14:35:46]Write i2c OK [14:35:46]MH_I2C_Read... [14:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:46]Read from MH i2c: E2 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 17 00 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 17 00 63 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 32 [14:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:35:46]wFMCommunicate OK [14:35:46]requested_item fd.num is exist - process it [14:35:46]SAM_PROTO_GetFieldsCounters [14:35:46]wFMCommunicate request_size=4 [14:35:46]MH_SAM_APDU [14:35:46]CAPDU: 80 13 00 00 [14:35:46]Write to MH i2c: E2 08 00 64 02 80 13 00 00 00 00 00 00 E2 [14:35:46]Write i2c OK [14:35:46]MH_I2C_Read... [14:35:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:47]Read from MH i2c: E2 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: E2 62 00 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: E2 62 00 64 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0F 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [14:35:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 0F 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:47]wFMCommunicate OK [14:35:47]SAM_PROTO_GetFieldsCounters done [14:35:47]requested_item shift.num is exist - process it [14:35:47]requested_item shift.opened is exist - process it [14:35:47]req_shift_opened [14:35:47]FM_GetShiftState [14:35:47]SAM_PROTO_GetShiftState [14:35:47]wFMCommunicate request_size=4 [14:35:47]MH_SAM_APDU [14:35:47]CAPDU: 80 13 01 00 [14:35:47]Write to MH i2c: E2 08 00 65 02 80 13 01 00 00 00 00 00 E4 [14:35:47]Write i2c OK [14:35:47]MH_I2C_Read... [14:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:47]Read from MH i2c: E2 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: E2 0E 00 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: E2 0E 00 65 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 0B [14:35:47]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:35:47]wFMCommunicate OK [14:35:47]SAM_PROTO_GetShiftState done [14:35:47]FM_GetShiftState done [14:35:47]req_shift_opened done [14:35:47]requested_item shift.open_date is exist - process it [14:35:47]req_shift_open_date [14:35:47]req_shift_open_date done [14:35:47]produce_requested_data done [14:35:47]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77071,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [14:35:47]process_action_free close_receipt [14:35:47]json_value_free [14:35:47]json_value_free done [14:35:47]process_json_proto returns [14:35:47]Send response to host [14:35:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77071,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [14:35:47]free response buf [14:35:47]execute_script done [14:35:47]execute_script returns [14:35:47]free content buf [14:35:47]Sock 9.Close socket [14:35:47]Sock 9.Thread stoped [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]accept exits with 7 [14:36:35]New connection [14:36:35]New thread 3067350372 created [14:36:35]Thread 3067207012 joined [14:36:35]Waiting for new connection... [14:36:35] Sock 7.Parse request [14:36:35]Sock 7.Check first char [14:36:35]Sock 7.First char is OK [14:36:35]request: POST /json_proto HTTP/1.0 [14:36:35]Method: POST [14:36:35]URL: /json_proto [14:36:35]Method is POST - this is cgi request [14:36:35]url: /json_proto [14:36:35]query_string will be loaded in cgi processing [14:36:35]execute_cgi json_proto POST (null) [14:36:35]execute_cgi path=json_proto method=POST [14:36:35]POST find Content-Length [14:36:35]Host: 172.17.62.5:8080 [14:36:35]Content-Length: 978 [14:36:35]Content-Type: application/json [14:36:35] [14:36:35]POST finish read [14:36:35]Found Content-Length = 978 [14:36:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "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:36:35]execute_script... [14:36: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)191658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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 106\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.82 \u0441\u043E\u043C", "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:36:35]POST & json_proto [14:36:35]process_json_proto [14:36:35]json parsed OK: [14:36:35]protocol is kg_v1.0 [14:36:35]action value=close_receipt [14:36:35]process_action close_receipt [14:36:35]cmd_close_receipt [14:36:35]MH_GetDate [14:36:35]Write to MH i2c: F0 00 00 66 02 57 [14:36:35]Write i2c OK [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: F0 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: F0 09 00 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: F0 09 00 66 02 00 F3 75 26 66 F4 E9 65 64 FA [14:36:35]GetLastDocTimeStamp 1713796543 [14:36:35]current date 1713796595 [14:36:35]FM_GetShiftState [14:36:35]SAM_PROTO_GetShiftState [14:36:35]wFMCommunicate request_size=4 [14:36:35]MH_SAM_APDU [14:36:35]CAPDU: 80 13 01 00 [14:36:35]Write to MH i2c: E2 08 00 67 02 80 13 01 00 00 00 00 00 E6 [14:36:35]Write i2c OK [14:36:35]MH_I2C_Read... [14:36:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:35]Read from MH i2c: E2 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: E2 0E 00 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: E2 0E 00 67 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 0D [14:36:35]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:36:35]wFMCommunicate OK [14:36:35]SAM_PROTO_GetShiftState done [14:36:35]FM_GetShiftState done [14:36:35]opened in 1713745124 [14:36:35]opened+sec_in_day 1713831524 [14:36:35]quantity*price = 200025 [14:36:35]sum+1 = 200027 [14:36:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 91 22.04.2024 14:36 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 Дисконтная программа ДТ номер 106 сэкономлено 27.82 сом ФМ: 0000000000874652 ФД: 77072 ФПД: 217437789797300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T143635&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77072&fm=217437789797300&tin=02508201610067®Number=0000000000091573&sum=200000 [14:36:36]StoreToDocumentArchive [14:36:36]shift 373 fd 77072 [14:36:36]save to /storage/0373/doc_00077072 [14:36:36]save last doc name /storage/0373/doc_00077072 to /storage/kkm_last_doc_name [14:36:36]save OK [14:36:36]Clear old archive folders... [14:36:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:36:36]tlvbuf is 019B3160 [14:36:36]SAM_PROTO_ClearQueue [14:36:36]wFMCommunicate request_size=4 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 09 00 00 [14:36:36]Write to MH i2c: E2 08 00 74 02 80 09 00 00 00 00 00 00 E8 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 03 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 03 00 74 02 00 90 00 EA [14:36:36]RAPDU: 90 00 [14:36:36]wFMCommunicate OK [14:36:36]SAM_PROTO_ClearQueue done [14:36:36]KKMCreateOFDPacket [14:36:36]OFDProtocolAddRootSTLVToBuf [14:36:36]FM_MakeSignedData [14:36:36]FM_MakeSignedData [14:36:36]SAM_PROTO_SignData [14:36:36]wFMCommunicate request_size=4 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 0D 01 02 [14:36:36]Write to MH i2c: E2 08 00 75 02 80 0D 01 02 00 00 00 00 F0 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 03 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 03 00 75 02 00 90 00 EB [14:36:36]RAPDU: 90 00 [14:36:36]wFMCommunicate OK [14:36:36]wFMCommunicate request_size=255 [14:36:36]MH_SAM_APDU [14:36: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 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 5B 00 00 00 F4 03 04 00 F3 75 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 10 2D 01 00 35 04 06 00 C5 C2 2E 38 [14:36:36]Write to MH i2c: E2 02 01 76 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 5B 00 00 00 F4 03 04 00 F3 75 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 10 2D 01 00 35 04 06 00 C5 C2 2E 38 00 00 CD [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:37]Read from MH i2c: E2 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 03 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 03 00 76 02 00 90 00 EC [14:36:37]RAPDU: 90 00 [14:36:37]wFMCommunicate OK [14:36:37]wFMCommunicate request_size=7 [14:36:37]MH_SAM_APDU [14:36:37]CAPDU: 80 0D 02 02 02 BB B4 [14:36:37]Write to MH i2c: E2 0A 00 77 02 80 0D 02 02 02 00 BB B4 00 00 66 [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:37]Read from MH i2c: E2 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 03 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [14:36:37]RAPDU: 90 00 [14:36:37]wFMCommunicate OK [14:36:37]wFMCommunicate request_size=4 [14:36:37]MH_SAM_APDU [14:36:37]CAPDU: 80 0D 03 02 [14:36:37]Write to MH i2c: E2 08 00 78 02 80 0D 03 02 00 00 00 00 F5 [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:37]Read from MH i2c: E2 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 0B 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 0B 00 78 02 00 E3 18 8A 94 50 AA 0B CB 90 00 DF [14:36:37]RAPDU: E3 18 8A 94 50 AA 0B CB 90 00 [14:36:37]wFMCommunicate OK [14:36:37]SAM_PROTO_SignData done [14:36:37]FM_MakeSignedData done [14:36:37]CreateOFDProtocolMessage [14:36:37]wFMCommunicate request_size=4 [14:36:37]MH_SAM_APDU [14:36:37]CAPDU: 80 11 00 00 [14:36:37]Write to MH i2c: E2 08 00 79 02 80 11 00 00 00 00 00 00 F5 [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:37]Read from MH i2c: E2 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 17 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: E2 17 00 79 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 48 [14:36:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:36:37]wFMCommunicate OK [14:36:37]CreateOFDProtocolMessage done [14:36:37]OFDSenderStorePacket 77072 [14:36:37]StoreOFDPacket docnum=77072 [14:36:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 D4 AC 04 01 F6 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 5B 00 00 00 F4 03 04 00 F3 75 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 10 2D 01 00 35 04 06 00 C5 C2 2E 38 BB B4 E3 18 8A 94 50 AA 0B CB [14:36:37]CheckFolder [14:36:37]dirname=/storage/ofd_packets [14:36:37]CheckFolder done [14:36:37]ProducePacketName [14:36:37]name=ofd_packets/00077072 [14:36:37]NVStorageSaveData ofd_packets/00077072 [14:36:37]File name is /storage/ofd_packets/00077072 [14:36:37]Write 298 bytes [14:36:37]NVStorageSaveData done [14:36:37]OFDSenderStorePacket done [14:36:37]KKMCreateOFDPacket done [14:36:37]NVStorageSaveData kkm_last_timestamp [14:36:37]File name is /storage/kkm_last_timestamp [14:36:37]Write 4 bytes [14:36:37]NVStorageSaveData done [14:36:37]ExternCall_PrintAddStr [14:36:37]wPrintStart [14:36:37]Write to MH i2c: 01 00 00 7A 02 7C [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: 01 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: 01 07 00 [14:36:37]MH_I2C_Read... [14:36:37]Read from MH i2c: 01 07 00 7A 02 00 00 00 00 00 FF 0F 91 [14:36:37]RasterBufferAndPrint [14:36:37]line Счет N : (1)191658 [14:36:37]line ИНН: 02508201610067 [14:36:37]line Контрольно-Кассовый Чек [14:36:37]line ПРОДАЖА [14:36:37]line ТРК (МРК, ГНК) : 51 [14:36:37]line Товар: 2710194210 [14:36:37]line ДТ-К-5 [14:36:37]line 27.820 * 71.90 [14:36:37]line = 2000.26 [14:36:37]line НДС 12% НСП 1% [14:36:37]line > о реализуемом товаре [14:36:37]line ОКРУГЛЕНИЕ: -0.26 [14:36:37]line ИТОГО: 2000.00 [14:36:37]line Внесено: 2000.00 [14:36:37]line СДАЧА: 0.00 [14:36:37]line НСП 1% : 17.70 [14:36:37]line НДС 12% : 212.42 [14:36:37]line Наличными: 2000.00 [14:36:37]line Безнал.: 0.00 [14:36:37]line Место: АЗС № 106 "Партнер Нефть" [14:36:37]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:36:37]line СНО: Общий режим [14:36:37]line Чек 91 22.04.2024 14:36 [14:36:37]line Смена: 373 ФФД: 1.0 [14:36:37]line ЗНМ: 0300000141 [14:36:37]line РНМ: 0000000000091573 [14:36:37]line Версия ККМ: 001 [14:36:37]line [14:36:37]line Дисконтная программа [14:36:37]line ДТ [14:36:37]line номер 106 [14:36:37]line сэкономлено 27.82 сом [14:36:37]line ФМ: 0000000000874652 [14:36:37]line ФД: 77072 [14:36:37]line ФПД: 217437789797300 [14:36:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T143635&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77072&fm=217437789797300&tin=02508201610067®Number=0000000000091573&sum=200000 [14:36:37]OFD Sender: Processing packet 77072 [packets to send 129, broken 128] [14:36:37]ProducePacketName [14:36:37]name=ofd_packets/00077072 [14:36:37]OFD Sender: To server: pG, [14:36:37]CommunicateWithHost lk.salyk.kg:30040 [14:36:37]ConnectInit lk.salyk.kg [14:36:37]written 0, free lines is 4095 [14:36:37]Connected sock=10 [14:36:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0C 01 00 00 D4 AC 04 01 F6 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 5B 00 00 00 F4 03 04 00 F3 75 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 10 2D 01 00 35 04 06 00 C5 C2 2E 38 BB B4 E3 18 8A 94 50 AA 0B CB [14:36:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 AB 79 47 00 2F E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 10 2D 01 00 F4 03 04 00 76 1D 26 66 B6 04 01 00 00 81 E8 DF 67 49 7E B9 E7 [14:36:37]CommunicateWithHost err = 0 [14:36:37]CheckOFDResponse [14:36:37]1017 (14) - 77093643461234 [14:36:37]1041 (16) - 0000000000874652 [14:36:37]1040 (4) - 77072 [14:36:37]1012 (4) - 22.04.2024 08:19 [14:36:37]1206 (1) - 0 [14:36:37]OFD Sender: Remove packet 77072 [14:36:37]ProducePacketName [14:36:37]name=ofd_packets/00077072 [14:36:37]NVStorageDeleteData [14:36:38]Write to MH i2c: 01 00 00 A9 02 AB [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: 01 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: 01 07 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: 01 07 00 A9 02 00 00 00 00 00 93 0C 51 [14:36:38]RasterBufferAndPrint [14:36:38]line [14:36:38]line [14:36:38]line [14:36:38]line [14:36:38]line [14:36:38]written 0, free lines is 3225 [14:36:38]MH_Cut [14:36:38]Write to MH i2c: D1 01 00 B0 02 01 84 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: D1 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: D1 01 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: D1 01 00 B0 02 00 83 [14:36:38]Write to MH i2c: 01 00 00 B1 02 B3 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]OFD Sender: No OFD packet to send [14:36:38]*** Cut start [14:36:38]*** Partial cut [14:36:38]*** CUTSNS_PIN = 1 [14:36:38]*** CUTSNS_PIN = 0 [14:36:39]*** Brake cut motor [14:36:39]Read from MH i2c: 01 [14:36:39]MH_I2C_Read... [14:36:39]*** Stop cut motor [14:36:39]*** Cut end [14:36:39]Read from MH i2c: 01 07 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 07 00 B1 02 00 00 00 00 00 FF 0F C8 [14:36:39]process_action close_receipt done [14:36:39]requested_data is exist [14:36:39]produce_requested_data [14:36:39]requested_item fm.sn is exist - process it [14:36:39]wFMCommunicate request_size=4 [14:36:39]MH_SAM_APDU [14:36:39]CAPDU: 80 11 00 00 [14:36:39]Write to MH i2c: E2 08 00 B2 02 80 11 00 00 00 00 00 00 2E [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:39]Read from MH i2c: E2 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 17 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 17 00 B2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 81 [14:36:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:36:39]wFMCommunicate OK [14:36:39]requested_item fd.num is exist - process it [14:36:39]SAM_PROTO_GetFieldsCounters [14:36:39]wFMCommunicate request_size=4 [14:36:39]MH_SAM_APDU [14:36:39]CAPDU: 80 13 00 00 [14:36:39]Write to MH i2c: E2 08 00 B3 02 80 13 00 00 00 00 00 00 31 [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:39]Read from MH i2c: E2 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 62 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 62 00 B3 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 10 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [14:36:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 10 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:39]wFMCommunicate OK [14:36:39]SAM_PROTO_GetFieldsCounters done [14:36:39]requested_item shift.num is exist - process it [14:36:39]requested_item shift.opened is exist - process it [14:36:39]req_shift_opened [14:36:39]FM_GetShiftState [14:36:39]SAM_PROTO_GetShiftState [14:36:39]wFMCommunicate request_size=4 [14:36:39]MH_SAM_APDU [14:36:39]CAPDU: 80 13 01 00 [14:36:39]Write to MH i2c: E2 08 00 B4 02 80 13 01 00 00 00 00 00 33 [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:39]Read from MH i2c: E2 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 0E 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: E2 0E 00 B4 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 5A [14:36:39]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:36:39]wFMCommunicate OK [14:36:39]SAM_PROTO_GetShiftState done [14:36:39]FM_GetShiftState done [14:36:39]req_shift_opened done [14:36:39]requested_item shift.open_date is exist - process it [14:36:39]req_shift_open_date [14:36:39]req_shift_open_date done [14:36:39]produce_requested_data done [14:36:39]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77072,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [14:36:39]process_action_free close_receipt [14:36:39]json_value_free [14:36:39]json_value_free done [14:36:39]process_json_proto returns [14:36:39]Send response to host [14:36:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77072,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [14:36:39]free response buf [14:36:39]execute_script done [14:36:39]execute_script returns [14:36:39]free content buf [14:36:39]Sock 7.Close socket [14:36:39]Sock 7.Thread stoped [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:28]OFD Sender: No OFD packet to send [14:38:33]OFD Sender: No OFD packet to send [14:38:38]OFD Sender: No OFD packet to send [14:38:43]OFD Sender: No OFD packet to send [14:38:48]OFD Sender: No OFD packet to send [14:38:53]OFD Sender: No OFD packet to send [14:38:58]OFD Sender: No OFD packet to send [14:39:03]OFD Sender: No OFD packet to send [14:39:08]OFD Sender: No OFD packet to send [14:39:13]OFD Sender: No OFD packet to send [14:39:18]OFD Sender: No OFD packet to send [14:39:23]OFD Sender: No OFD packet to send [14:39:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:48]OFD Sender: No OFD packet to send [14:39:53]OFD Sender: No OFD packet to send [14:39:58]OFD Sender: No OFD packet to send [14:40:03]OFD Sender: No OFD packet to send [14:40:08]OFD Sender: No OFD packet to send [14:40:10]accept exits with 9 [14:40:10]New connection [14:40:10]New thread 3067207012 created [14:40:10]Thread 3067350372 joined [14:40:10]Waiting for new connection... [14:40:10] Sock 9.Parse request [14:40:10]Sock 9.Check first char [14:40:10]Sock 9.First char is OK [14:40:10]request: POST /json_proto HTTP/1.0 [14:40:10]Method: POST [14:40:10]URL: /json_proto [14:40:10]Method is POST - this is cgi request [14:40:10]url: /json_proto [14:40:10]query_string will be loaded in cgi processing [14:40:10]execute_cgi json_proto POST (null) [14:40:10]execute_cgi path=json_proto method=POST [14:40:10]POST find Content-Length [14:40:10]Host: 172.17.62.5:8080 [14:40:10]Content-Length: 678 [14:40:10]Content-Type: application/json [14:40:10] [14:40:10]POST finish read [14:40:10]Found Content-Length = 678 [14:40:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 10.980, "sum" : 800.44, "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" ] } } [14:40:10]execute_script... [14:40:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)191660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 10.980, "sum" : 800.44, "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" ] } } [14:40:10]POST & json_proto [14:40:10]process_json_proto [14:40:10]json parsed OK: [14:40:10]protocol is kg_v1.0 [14:40:10]action value=close_receipt [14:40:10]process_action close_receipt [14:40:10]cmd_close_receipt [14:40:10]MH_GetDate [14:40:10]Write to MH i2c: F0 00 00 B5 02 A6 [14:40:10]Write i2c OK [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: F0 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: F0 09 00 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: F0 09 00 B5 02 00 CA 76 26 66 F4 E9 65 64 21 [14:40:10]GetLastDocTimeStamp 1713796595 [14:40:10]current date 1713796810 [14:40:10]FM_GetShiftState [14:40:10]SAM_PROTO_GetShiftState [14:40:10]wFMCommunicate request_size=4 [14:40:10]MH_SAM_APDU [14:40:10]CAPDU: 80 13 01 00 [14:40:10]Write to MH i2c: E2 08 00 B6 02 80 13 01 00 00 00 00 00 35 [14:40:10]Write i2c OK [14:40:10]MH_I2C_Read... [14:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:10]Read from MH i2c: E2 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: E2 0E 00 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: E2 0E 00 B6 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 5C [14:40:10]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:40:10]wFMCommunicate OK [14:40:10]SAM_PROTO_GetShiftState done [14:40:10]FM_GetShiftState done [14:40:10]opened in 1713745124 [14:40:10]opened+sec_in_day 1713831524 [14:40:10]quantity*price = 80044 [14:40:10]sum+1 = 80045 [14:40:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.00 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 106 "Партнер Нефть" Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 СНО: Общий режим Чек 92 22.04.2024 14:40 Смена: 373 ФФД: 1.0 ЗНМ: 0300000141 РНМ: 0000000000091573 Версия ККМ: 001 ФМ: 0000000000874652 ФД: 77073 ФПД: 174835271397737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T144010&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77073&fm=174835271397737&tin=02508201610067®Number=0000000000091573&sum=80000 [14:40:11]StoreToDocumentArchive [14:40:11]shift 373 fd 77073 [14:40:11]save to /storage/0373/doc_00077073 [14:40:11]save last doc name /storage/0373/doc_00077073 to /storage/kkm_last_doc_name [14:40:11]save OK [14:40:11]Clear old archive folders... [14:40:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:11]tlvbuf is 019B6800 [14:40:11]SAM_PROTO_ClearQueue [14:40:11]wFMCommunicate request_size=4 [14:40:11]MH_SAM_APDU [14:40:11]CAPDU: 80 09 00 00 [14:40:11]Write to MH i2c: E2 08 00 C3 02 80 09 00 00 00 00 00 00 37 [14:40:11]Write i2c OK [14:40:11]MH_I2C_Read... [14:40:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:11]Read from MH i2c: E2 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 03 00 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [14:40:11]RAPDU: 90 00 [14:40:11]wFMCommunicate OK [14:40:11]SAM_PROTO_ClearQueue done [14:40:11]KKMCreateOFDPacket [14:40:11]OFDProtocolAddRootSTLVToBuf [14:40:11]FM_MakeSignedData [14:40:11]FM_MakeSignedData [14:40:11]SAM_PROTO_SignData [14:40:11]wFMCommunicate request_size=4 [14:40:11]MH_SAM_APDU [14:40:11]CAPDU: 80 0D 01 02 [14:40:11]Write to MH i2c: E2 08 00 C4 02 80 0D 01 02 00 00 00 00 3F [14:40:11]Write i2c OK [14:40:11]MH_I2C_Read... [14:40:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:11]Read from MH i2c: E2 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 03 00 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [14:40:11]RAPDU: 90 00 [14:40:11]wFMCommunicate OK [14:40:11]wFMCommunicate request_size=255 [14:40:11]MH_SAM_APDU [14:40:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 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 34 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 5C 00 00 00 F4 03 04 00 CA 76 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 11 2D 01 00 35 04 06 00 9F [14:40:11]Write to MH i2c: E2 02 01 C5 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 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 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 34 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 5C 00 00 00 F4 03 04 00 CA 76 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 11 2D 01 00 35 04 06 00 9F 00 00 DF [14:40:11]Write i2c OK [14:40:11]MH_I2C_Read... [14:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:12]Read from MH i2c: E2 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 03 00 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [14:40:12]RAPDU: 90 00 [14:40:12]wFMCommunicate OK [14:40:12]wFMCommunicate request_size=10 [14:40:12]MH_SAM_APDU [14:40:12]CAPDU: 80 0D 02 02 05 03 02 3E F1 69 [14:40:12]Write to MH i2c: E2 0D 00 C6 02 80 0D 02 02 05 00 03 02 3E F1 69 00 00 E9 [14:40:12]Write i2c OK [14:40:12]MH_I2C_Read... [14:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:12]Read from MH i2c: E2 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 03 00 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [14:40:12]RAPDU: 90 00 [14:40:12]wFMCommunicate OK [14:40:12]wFMCommunicate request_size=4 [14:40:12]MH_SAM_APDU [14:40:12]CAPDU: 80 0D 03 02 [14:40:12]Write to MH i2c: E2 08 00 C7 02 80 0D 03 02 00 00 00 00 44 [14:40:12]Write i2c OK [14:40:12]MH_I2C_Read... [14:40:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:12]Read from MH i2c: E2 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 0B 00 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 0B 00 C7 02 00 EC 53 FF ED CD 05 3B 0A 90 00 87 [14:40:12]RAPDU: EC 53 FF ED CD 05 3B 0A 90 00 [14:40:12]wFMCommunicate OK [14:40:12]SAM_PROTO_SignData done [14:40:12]FM_MakeSignedData done [14:40:12]CreateOFDProtocolMessage [14:40:12]wFMCommunicate request_size=4 [14:40:12]MH_SAM_APDU [14:40:12]CAPDU: 80 11 00 00 [14:40:12]Write to MH i2c: E2 08 00 C8 02 80 11 00 00 00 00 00 00 44 [14:40:12]Write i2c OK [14:40:12]MH_I2C_Read... [14:40:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:12]Read from MH i2c: E2 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 17 00 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 17 00 C8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 97 [14:40:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:40:12]wFMCommunicate OK [14:40:12]CreateOFDProtocolMessage done [14:40:12]OFDSenderStorePacket 77073 [14:40:12]StoreOFDPacket docnum=77073 [14:40:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 CD CD 07 01 20 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 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 34 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 5C 00 00 00 F4 03 04 00 CA 76 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 11 2D 01 00 35 04 06 00 9F 03 02 3E F1 69 EC 53 FF ED CD 05 3B 0A [14:40:12]CheckFolder [14:40:12]dirname=/storage/ofd_packets [14:40:12]CheckFolder done [14:40:12]ProducePacketName [14:40:12]name=ofd_packets/00077073 [14:40:12]NVStorageSaveData ofd_packets/00077073 [14:40:12]File name is /storage/ofd_packets/00077073 [14:40:12]Write 301 bytes [14:40:12]NVStorageSaveData done [14:40:12]OFDSenderStorePacket done [14:40:12]KKMCreateOFDPacket done [14:40:12]NVStorageSaveData kkm_last_timestamp [14:40:12]File name is /storage/kkm_last_timestamp [14:40:12]Write 4 bytes [14:40:12]NVStorageSaveData done [14:40:12]ExternCall_PrintAddStr [14:40:12]wPrintStart [14:40:12]Write to MH i2c: 01 00 00 C9 02 CB [14:40:12]Write i2c OK [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: 01 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: 01 07 00 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: 01 07 00 C9 02 00 00 00 00 00 FF 0F E0 [14:40:12]RasterBufferAndPrint [14:40:12]line Счет N : (1)191660 [14:40:12]line ИНН: 02508201610067 [14:40:12]line Контрольно-Кассовый Чек [14:40:12]line ПРОДАЖА [14:40:12]line ТРК (МРК, ГНК) : 32 [14:40:12]line Товар: 2710124500 [14:40:12]line Аи-95-К-5 [14:40:12]line 10.980 * 72.90 [14:40:12]line = 800.44 [14:40:12]line НДС 12% НСП 1% [14:40:12]line > о реализуемом товаре [14:40:12]line ОКРУГЛЕНИЕ: -0.44 [14:40:12]line ИТОГО: 800.00 [14:40:12]line Внесено: 800.00 [14:40:12]line СДАЧА: 0.00 [14:40:12]line НСП 1% : 7.08 [14:40:12]line НДС 12% : 85.00 [14:40:12]line Наличными: 800.00 [14:40:12]line Безнал.: 0.00 [14:40:12]line Место: АЗС № 106 "Партнер Нефть" [14:40:12]line Адрес: 720001, г. Кемин, а/д А 365, 42.787999, 75.704382 [14:40:12]line СНО: Общий режим [14:40:12]line Чек 92 22.04.2024 14:40 [14:40:12]line Смена: 373 ФФД: 1.0 [14:40:12]line ЗНМ: 0300000141 [14:40:12]line РНМ: 0000000000091573 [14:40:12]line Версия ККМ: 001 [14:40:12]line ФМ: 0000000000874652 [14:40:12]line ФД: 77073 [14:40:12]line ФПД: 174835271397737 [14:40:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240422T144010&type=1&operation_type=1&fn_number=0000000000874652&fd_number=77073&fm=174835271397737&tin=02508201610067®Number=0000000000091573&sum=80000 [14:40:12]written 0, free lines is 4095 [14:40:12]OFD Sender: Processing packet 77073 [packets to send 129, broken 128] [14:40:12]ProducePacketName [14:40:12]name=ofd_packets/00077073 [14:40:12]OFD Sender: To server: pG, [14:40:12]CommunicateWithHost lk.salyk.kg:30040 [14:40:12]ConnectInit lk.salyk.kg [14:40:12]Connected sock=10 [14:40:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0F 01 00 00 CD CD 07 01 20 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 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 34 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 5C 00 00 00 F4 03 04 00 CA 76 26 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 11 2D 01 00 35 04 06 00 9F 03 02 3E F1 69 EC 53 FF ED CD 05 3B 0A [14:40:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 07 E0 47 00 58 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 11 2D 01 00 F4 03 04 00 4D 1E 26 66 B6 04 01 00 00 D3 CF 9F 1B 5C C7 D2 8B [14:40:13]CommunicateWithHost err = 0 [14:40:13]CheckOFDResponse [14:40:13]1017 (14) - 77093643461234 [14:40:13]1041 (16) - 0000000000874652 [14:40:13]1040 (4) - 77073 [14:40:13]1012 (4) - 22.04.2024 08:22 [14:40:13]1206 (1) - 0 [14:40:13]OFD Sender: Remove packet 77073 [14:40:13]ProducePacketName [14:40:13]name=ofd_packets/00077073 [14:40:13]NVStorageDeleteData [14:40:13]Write to MH i2c: 01 00 00 F3 02 F5 [14:40:13]Write i2c OK [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: 01 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: 01 07 00 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: 01 07 00 F3 02 00 00 00 00 00 F4 0C FC [14:40:13]RasterBufferAndPrint [14:40:13]line [14:40:13]line [14:40:13]line [14:40:13]line [14:40:13]line [14:40:13]written 0, free lines is 3319 [14:40:13]MH_Cut [14:40:13]Write to MH i2c: D1 01 00 FA 02 01 CE [14:40:13]Write i2c OK [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: D1 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: D1 01 00 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: D1 01 00 FA 02 00 CD [14:40:13]Write to MH i2c: 01 00 00 FB 02 FD [14:40:13]Write i2c OK [14:40:13]MH_I2C_Read... [14:40:13]OFD Sender: No OFD packet to send [14:40:13]*** Cut start [14:40:13]*** Partial cut [14:40:13]*** CUTSNS_PIN = 1 [14:40:13]*** CUTSNS_PIN = 0 [14:40:14]*** Brake cut motor [14:40:14]Read from MH i2c: 01 [14:40:14]MH_I2C_Read... [14:40:14]*** Stop cut motor [14:40:14]*** Cut end [14:40:14]Read from MH i2c: 01 07 00 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: 01 07 00 FB 02 00 00 00 00 00 FF 0F 12 [14:40:14]process_action close_receipt done [14:40:14]requested_data is exist [14:40:14]produce_requested_data [14:40:14]requested_item fm.sn is exist - process it [14:40:14]wFMCommunicate request_size=4 [14:40:14]MH_SAM_APDU [14:40:14]CAPDU: 80 11 00 00 [14:40:14]Write to MH i2c: E2 08 00 FC 02 80 11 00 00 00 00 00 00 78 [14:40:14]Write i2c OK [14:40:14]MH_I2C_Read... [14:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:14]Read from MH i2c: E2 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: E2 17 00 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: E2 17 00 FC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CB [14:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:40:14]wFMCommunicate OK [14:40:14]requested_item fd.num is exist - process it [14:40:14]SAM_PROTO_GetFieldsCounters [14:40:14]wFMCommunicate request_size=4 [14:40:14]MH_SAM_APDU [14:40:14]CAPDU: 80 13 00 00 [14:40:14]Write to MH i2c: E2 08 00 FD 02 80 13 00 00 00 00 00 00 7B [14:40:14]Write i2c OK [14:40:14]MH_I2C_Read... [14:40:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:14]Read from MH i2c: E2 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: E2 62 00 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: E2 62 00 FD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 11 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [14:40:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 11 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:14]wFMCommunicate OK [14:40:14]SAM_PROTO_GetFieldsCounters done [14:40:14]requested_item shift.num is exist - process it [14:40:14]requested_item shift.opened is exist - process it [14:40:14]req_shift_opened [14:40:14]FM_GetShiftState [14:40:14]SAM_PROTO_GetShiftState [14:40:14]wFMCommunicate request_size=4 [14:40:14]MH_SAM_APDU [14:40:14]CAPDU: 80 13 01 00 [14:40:14]Write to MH i2c: E2 08 00 FE 02 80 13 01 00 00 00 00 00 7D [14:40:14]Write i2c OK [14:40:14]MH_I2C_Read... [14:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:14]Read from MH i2c: E2 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: E2 0E 00 [14:40:14]MH_I2C_Read... [14:40:14]Read from MH i2c: E2 0E 00 FE 02 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 A4 [14:40:14]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:40:14]wFMCommunicate OK [14:40:14]SAM_PROTO_GetShiftState done [14:40:14]FM_GetShiftState done [14:40:14]req_shift_opened done [14:40:14]requested_item shift.open_date is exist - process it [14:40:14]req_shift_open_date [14:40:14]req_shift_open_date done [14:40:14]produce_requested_data done [14:40:14]produce_requested_data return {"fm.sn":"0000000000874652","fd.num":77073,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [14:40:14]process_action_free close_receipt [14:40:14]json_value_free [14:40:14]json_value_free done [14:40:14]process_json_proto returns [14:40:14]Send response to host [14:40:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874652","fd.num":77073,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [14:40:14]free response buf [14:40:14]execute_script done [14:40:14]execute_script returns [14:40:14]free content buf [14:40:14]Sock 9.Close socket [14:40:14]Sock 9.Thread stoped [14:40:18]OFD Sender: No OFD packet to send [14:40:23]OFD Sender: No OFD packet to send [14:40:28]OFD Sender: No OFD packet to send [14:40:33]OFD Sender: No OFD packet to send [14:40:38]OFD Sender: No OFD packet to send [14:40:43]OFD Sender: No OFD packet to send [14:40:48]OFD Sender: No OFD packet to send [14:40:53]OFD Sender: No OFD packet to send [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:38]OFD Sender: No OFD packet to send [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [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:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:48:59]accept exits with 7 [14:48:59]New connection [14:48:59]New thread 3067350372 created [14:48:59]Thread 3067207012 joined [14:48:59]Waiting for new connection... [14:48:59] Sock 7.Parse request [14:48:59]Sock 7.Check first char [14:48:59]Sock 7.First char is OK [14:48:59]request: POST /json_proto HTTP/1.0 [14:48:59]Method: POST [14:48:59]URL: /json_proto [14:48:59]Method is POST - this is cgi request [14:48:59]url: /json_proto [14:48:59]query_string will be loaded in cgi processing [14:48:59]execute_cgi json_proto POST (null) [14:48:59]execute_cgi path=json_proto method=POST [14:48:59]POST find Content-Length [14:48:59]Host: 172.17.62.5:8080 [14:48:59]Content-Length: 215 [14:48:59]Content-Type: application/json [14:48:59] [14:48:59]POST finish read [14:48:59]Found Content-Length = 215 [14:48:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:59]execute_script... [14:48:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:59]POST & json_proto [14:48:59]process_json_proto [14:48:59]json parsed OK: [14:48:59]protocol is kg_v1.0 [14:48:59]action value=get_value [14:48:59]process_action get_value [14:48:59]cmd_get_value [14:48:59]process_action get_value done [14:48:59]requested_data is exist [14:48:59]produce_requested_data [14:48:59]requested_item kkm.sn is exist - process it [14:48:59]requested_item kkm.ver is exist - process it [14:48:59]requested_item fm.sn is exist - process it [14:48:59]wFMCommunicate request_size=4 [14:48:59]MH_SAM_APDU [14:48:59]CAPDU: 80 11 00 00 [14:48:59]Write to MH i2c: E2 08 00 FF 02 80 11 00 00 00 00 00 00 7B [14:48:59]Write i2c OK [14:48:59]MH_I2C_Read... [14:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:59]Read from MH i2c: E2 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 17 00 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 17 00 FF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 CE [14:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:48:59]wFMCommunicate OK [14:48:59]requested_item fd.num is exist - process it [14:48:59]SAM_PROTO_GetFieldsCounters [14:48:59]wFMCommunicate request_size=4 [14:48:59]MH_SAM_APDU [14:48:59]CAPDU: 80 13 00 00 [14:48:59]Write to MH i2c: E2 08 00 00 03 80 13 00 00 00 00 00 00 7F [14:48:59]Write i2c OK [14:48:59]MH_I2C_Read... [14:48:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:59]Read from MH i2c: E2 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 62 00 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 62 00 00 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 11 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [14:48:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 11 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:59]wFMCommunicate OK [14:48:59]SAM_PROTO_GetFieldsCounters done [14:48:59]requested_item shift.num is exist - process it [14:48:59]requested_item shift.opened is exist - process it [14:48:59]req_shift_opened [14:48:59]FM_GetShiftState [14:48:59]SAM_PROTO_GetShiftState [14:48:59]wFMCommunicate request_size=4 [14:48:59]MH_SAM_APDU [14:48:59]CAPDU: 80 13 01 00 [14:48:59]Write to MH i2c: E2 08 00 01 03 80 13 01 00 00 00 00 00 81 [14:48:59]Write i2c OK [14:48:59]MH_I2C_Read... [14:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:59]Read from MH i2c: E2 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 0E 00 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 0E 00 01 03 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 A8 [14:48:59]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:48:59]wFMCommunicate OK [14:48:59]SAM_PROTO_GetShiftState done [14:48:59]FM_GetShiftState done [14:48:59]req_shift_opened done [14:48:59]requested_item shift.open_date is exist - process it [14:48:59]req_shift_open_date [14:48:59]req_shift_open_date done [14:48:59]produce_requested_data done [14:48:59]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":77073,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [14:48:59]process_action_free get_value [14:48:59]json_value_free [14:48:59]json_value_free done [14:48:59]process_json_proto returns [14:48:59]Send response to host [14:48:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":77073,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [14:48:59]free response buf [14:48:59]execute_script done [14:48:59]execute_script returns [14:48:59]free content buf [14:48:59]Sock 7.Close socket [14:48:59]Sock 7.Thread stoped [14:48:59]accept exits with 9 [14:48:59]New connection [14:48:59]New thread 3067207012 created [14:48:59]Thread 3067350372 joined [14:48:59]Waiting for new connection... [14:48:59] Sock 9.Parse request [14:48:59]Sock 9.Check first char [14:48:59]Sock 9.First char is OK [14:48:59]request: POST /json_proto HTTP/1.0 [14:48:59]Method: POST [14:48:59]URL: /json_proto [14:48:59]Method is POST - this is cgi request [14:48:59]url: /json_proto [14:48:59]query_string will be loaded in cgi processing [14:48:59]execute_cgi json_proto POST (null) [14:48:59]execute_cgi path=json_proto method=POST [14:48:59]POST find Content-Length [14:48:59]Host: 172.17.62.5:8080 [14:48:59]Content-Length: 331 [14:48:59]Content-Type: application/json [14:48:59] [14:48:59]POST finish read [14:48:59]Found Content-Length = 331 [14:48:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:48:59]execute_script... [14:49: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" ] } } [14:49:00]POST & json_proto [14:49:00]process_json_proto [14:49:00]json parsed OK: [14:49:00]protocol is kg_v1.0 [14:49:00]action value=get_value [14:49:00]process_action get_value [14:49:00]cmd_get_value [14:49:00]process_action get_value done [14:49:00]requested_data is exist [14:49:00]produce_requested_data [14:49:00]requested_item fm.sale.total is exist - process it [14:49:00]SAM_PROTO_GetFMData [14:49:00]wFMCommunicate request_size=4 [14:49:00]MH_SAM_APDU [14:49:00]CAPDU: 80 13 03 00 [14:49:00]Write to MH i2c: E2 08 00 02 03 80 13 03 00 00 00 00 00 84 [14:49:00]Write i2c OK [14:49:00]MH_I2C_Read... [14:49:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:49:00]Read from MH i2c: E2 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: E2 FD 00 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: E2 FD 00 02 03 00 C8 04 85 04 C4 04 6E 04 04 00 27 2A 01 00 69 04 A3 00 6F 04 04 00 33 28 01 00 B1 04 05 00 EF C7 7F BC 02 70 04 05 00 EC 92 42 78 02 72 04 04 00 03 35 3D 44 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 40 57 66 4A 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 0C 21 33 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F4 01 00 00 B1 04 05 00 74 B9 FC 15 01 70 04 05 00 74 B9 FC 15 01 72 04 00 00 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 14 56 85 1D EF 90 00 68 [14:49:00]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 27 2A 01 00 69 04 A3 00 6F 04 04 00 33 28 01 00 B1 04 05 00 EF C7 7F BC 02 70 04 05 00 EC 92 42 78 02 72 04 04 00 03 35 3D 44 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 40 57 66 4A 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 0C 21 33 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F4 01 00 00 B1 04 05 00 74 B9 FC 15 01 70 04 05 00 74 B9 FC 15 01 72 04 00 00 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 14 56 85 1D EF 90 00 [14:49:00]wFMCommunicate OK [14:49:00]wFMCommunicate request_size=4 [14:49:00]MH_SAM_APDU [14:49:00]CAPDU: 80 17 00 00 [14:49:00]Write to MH i2c: E2 08 00 03 03 80 17 00 00 00 00 00 00 86 [14:49:00]Write i2c OK [14:49:00]MH_I2C_Read... [14:49:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:00]Read from MH i2c: E2 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: E2 FD 00 [14:49:00]MH_I2C_Read... [14:49:00]Read from MH i2c: E2 FD 00 03 03 00 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 10 C7 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 E3 [14:49:00]RAPDU: 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 10 C7 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [14:49:00]wFMCommunicate OK [14:49:00]wFMCommunicate request_size=4 [14:49:00]MH_SAM_APDU [14:49:00]CAPDU: 80 17 00 00 [14:49:00]Write to MH i2c: E2 08 00 04 03 80 17 00 00 00 00 00 00 87 [14:49:00]Write i2c OK [14:49:00]MH_I2C_Read... [14:49:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:01]Read from MH i2c: E2 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 FD 00 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 FD 00 04 03 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 5F [14:49:01]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [14:49:01]wFMCommunicate OK [14:49:01]wFMCommunicate request_size=4 [14:49:01]MH_SAM_APDU [14:49:01]CAPDU: 80 17 00 00 [14:49:01]Write to MH i2c: E2 08 00 05 03 80 17 00 00 00 00 00 00 88 [14:49:01]Write i2c OK [14:49:01]MH_I2C_Read... [14:49:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:01]Read from MH i2c: E2 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 FD 00 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 FD 00 05 03 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 00 [14:49:01]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [14:49:01]wFMCommunicate OK [14:49:01]wFMCommunicate request_size=4 [14:49:01]MH_SAM_APDU [14:49:01]CAPDU: 80 17 00 00 [14:49:01]Write to MH i2c: E2 08 00 06 03 80 17 00 00 00 00 00 00 89 [14:49:01]Write i2c OK [14:49:01]MH_I2C_Read... [14:49:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [14:49:01]Read from MH i2c: E2 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 E5 00 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 E5 00 06 03 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [14:49:01]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:49:01]wFMCommunicate OK [14:49:01]SAM_PROTO_GetFMData done [14:49:01]requested_item fm.sale_refund.total is exist - process it [14:49:01]requested_item fm.buy.total is exist - process it [14:49:01]requested_item shift.sale.total is exist - process it [14:49:01]SAM_PROTO_GetShiftData [14:49:01]wFMCommunicate request_size=4 [14:49:01]MH_SAM_APDU [14:49:01]CAPDU: 80 13 02 00 [14:49:01]Write to MH i2c: E2 08 00 07 03 80 13 02 00 00 00 00 00 88 [14:49:01]Write i2c OK [14:49:01]MH_I2C_Read... [14:49:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:49:01]Read from MH i2c: E2 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 FD 00 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 FD 00 07 03 00 BA 04 AA 04 B6 04 6E 04 04 00 5C 00 00 00 69 04 9C 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 E8 72 AF 70 04 03 00 8C C9 8B 72 04 03 00 5C A9 23 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 97 A2 12 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 85 8D 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 01 00 00 00 B1 04 03 00 80 84 1E 70 04 03 00 80 84 1E 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 A7 3D 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 E6 [14:49:02]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 5C 00 00 00 69 04 9C 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 E8 72 AF 70 04 03 00 8C C9 8B 72 04 03 00 5C A9 23 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 97 A2 12 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 85 8D 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 01 00 00 00 B1 04 03 00 80 84 1E 70 04 03 00 80 84 1E 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 A7 3D 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [14:49:02]wFMCommunicate OK [14:49:02]wFMCommunicate request_size=4 [14:49:02]MH_SAM_APDU [14:49:02]CAPDU: 80 17 00 00 [14:49:02]Write to MH i2c: E2 08 00 08 03 80 17 00 00 00 00 00 00 8B [14:49:02]Write i2c OK [14:49:02]MH_I2C_Read... [14:49:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:02]Read from MH i2c: E2 [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: E2 FD 00 [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: E2 FD 00 08 03 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 23 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 9D [14:49:02]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 23 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [14:49:02]wFMCommunicate OK [14:49:02]wFMCommunicate request_size=4 [14:49:02]MH_SAM_APDU [14:49:02]CAPDU: 80 17 00 00 [14:49:02]Write to MH i2c: E2 08 00 09 03 80 17 00 00 00 00 00 00 8C [14:49:02]Write i2c OK [14:49:02]MH_I2C_Read... [14:49:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:02]Read from MH i2c: E2 [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: E2 FD 00 [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: E2 FD 00 09 03 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 B8 [14:49:02]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [14:49:02]wFMCommunicate OK [14:49:02]wFMCommunicate request_size=4 [14:49:02]MH_SAM_APDU [14:49:02]CAPDU: 80 17 00 00 [14:49:02]Write to MH i2c: E2 08 00 0A 03 80 17 00 00 00 00 00 00 8D [14:49:02]Write i2c OK [14:49:02]MH_I2C_Read... [14:49:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:02]Read from MH i2c: E2 [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: E2 FD 00 [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: E2 FD 00 0A 03 00 00 EF 03 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 90 00 05 [14:49:02]RAPDU: 00 EF 03 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 90 00 [14:49:02]wFMCommunicate OK [14:49:02]wFMCommunicate request_size=4 [14:49:02]MH_SAM_APDU [14:49:02]CAPDU: 80 17 00 00 [14:49:02]Write to MH i2c: E2 08 00 0B 03 80 17 00 00 00 00 00 00 8E [14:49:02]Write i2c OK [14:49:02]MH_I2C_Read... [14:49:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [14:49:03]Read from MH i2c: E2 [14:49:03]MH_I2C_Read... [14:49:03]Read from MH i2c: E2 D7 00 [14:49:03]MH_I2C_Read... [14:49:03]Read from MH i2c: E2 D7 00 0B 03 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 71 [14:49:03]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:49:03]wFMCommunicate OK [14:49:03]SAM_PROTO_GetShiftData done [14:49:03]requested_item shift.sale.total_cash is exist - process it [14:49:03]requested_item shift.sale_refund.total is exist - process it [14:49:03]requested_item shift.sale_refund.total_cash is exist - process it [14:49:03]requested_item shift.buy.total is exist - process it [14:49:03]requested_item shift.buy.total_cash is exist - process it [14:49:03]produce_requested_data done [14:49:03]produce_requested_data return {"fm.sale.total":117524254.55,"fm.sale_refund.total":46638513.80,"fm.buy.total":0.00,"shift.sale.total":114982.16,"shift.sale.total_cash":91611.00,"shift.sale_refund.total":20000.00,"shift.sale_refund.total_cash":20000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:49:03]process_action_free get_value [14:49:03]json_value_free [14:49:03]json_value_free done [14:49:03]process_json_proto returns [14:49:03]Send response to host [14:49:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117524254.55,"fm.sale_refund.total":46638513.80,"fm.buy.total":0.00,"shift.sale.total":114982.16,"shift.sale.total_cash":91611.00,"shift.sale_refund.total":20000.00,"shift.sale_refund.total_cash":20000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:49:03]free response buf [14:49:03]execute_script done [14:49:03]execute_script returns [14:49:03]free content buf [14:49:03]Sock 9.Close socket [14:49:03]Sock 9.Thread stoped [14:49:03]accept exits with 7 [14:49:03]New connection [14:49:03]New thread 3067350372 created [14:49:03]Thread 3067207012 joined [14:49:03]Waiting for new connection... [14:49:03] Sock 7.Parse request [14:49:03]Sock 7.Check first char [14:49:03]Sock 7.First char is OK [14:49:03]request: POST /json_proto HTTP/1.0 [14:49:03]Method: POST [14:49:03]URL: /json_proto [14:49:03]Method is POST - this is cgi request [14:49:03]url: /json_proto [14:49:03]query_string will be loaded in cgi processing [14:49:03]execute_cgi json_proto POST (null) [14:49:03]execute_cgi path=json_proto method=POST [14:49:03]POST find Content-Length [14:49:03]Host: 172.17.62.5:8080 [14:49:03]Content-Length: 331 [14:49:03]Content-Type: application/json [14:49:03] [14:49:03]POST finish read [14:49:03]Found Content-Length = 331 [14:49:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:49:03]execute_script... [14:49:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:49:03]POST & json_proto [14:49:03]process_json_proto [14:49:03]json parsed OK: [14:49:03]protocol is kg_v1.0 [14:49:03]action value=get_value [14:49:03]process_action get_value [14:49:03]cmd_get_value [14:49:03]process_action get_value done [14:49:03]requested_data is exist [14:49:03]produce_requested_data [14:49:03]requested_item fm.sale.total is exist - process it [14:49:03]SAM_PROTO_GetFMData [14:49:03]wFMCommunicate request_size=4 [14:49:03]MH_SAM_APDU [14:49:03]CAPDU: 80 13 03 00 [14:49:03]Write to MH i2c: E2 08 00 0C 03 80 13 03 00 00 00 00 00 8E [14:49:03]Write i2c OK [14:49:03]MH_I2C_Read... [14:49:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:49:03]Read from MH i2c: E2 [14:49:03]MH_I2C_Read... [14:49:03]Read from MH i2c: E2 FD 00 [14:49:03]MH_I2C_Read... [14:49:03]Read from MH i2c: E2 FD 00 0C 03 00 C8 04 85 04 C4 04 6E 04 04 00 27 2A 01 00 69 04 A3 00 6F 04 04 00 33 28 01 00 B1 04 05 00 EF C7 7F BC 02 70 04 05 00 EC 92 42 78 02 72 04 04 00 03 35 3D 44 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 40 57 66 4A 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 0C 21 33 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F4 01 00 00 B1 04 05 00 74 B9 FC 15 01 70 04 05 00 74 B9 FC 15 01 72 04 00 00 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 14 56 85 1D EF 90 00 72 [14:49:03]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 27 2A 01 00 69 04 A3 00 6F 04 04 00 33 28 01 00 B1 04 05 00 EF C7 7F BC 02 70 04 05 00 EC 92 42 78 02 72 04 04 00 03 35 3D 44 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 40 57 66 4A 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 0C 21 33 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F4 01 00 00 B1 04 05 00 74 B9 FC 15 01 70 04 05 00 74 B9 FC 15 01 72 04 00 00 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 14 56 85 1D EF 90 00 [14:49:03]wFMCommunicate OK [14:49:03]wFMCommunicate request_size=4 [14:49:03]MH_SAM_APDU [14:49:03]CAPDU: 80 17 00 00 [14:49:03]Write to MH i2c: E2 08 00 0D 03 80 17 00 00 00 00 00 00 90 [14:49:03]Write i2c OK [14:49:03]MH_I2C_Read... [14:49:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:04]Read from MH i2c: E2 [14:49:04]MH_I2C_Read... [14:49:04]Read from MH i2c: E2 FD 00 [14:49:04]MH_I2C_Read... [14:49:04]Read from MH i2c: E2 FD 00 0D 03 00 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 10 C7 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 ED [14:49:04]RAPDU: 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 10 C7 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [14:49:04]wFMCommunicate OK [14:49:04]wFMCommunicate request_size=4 [14:49:04]MH_SAM_APDU [14:49:04]CAPDU: 80 17 00 00 [14:49:04]Write to MH i2c: E2 08 00 0E 03 80 17 00 00 00 00 00 00 91 [14:49:04]Write i2c OK [14:49:04]MH_I2C_Read... [14:49:04]OFD Sender: No OFD packet to send [14:49:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:04]Read from MH i2c: E2 [14:49:04]MH_I2C_Read... [14:49:04]Read from MH i2c: E2 FD 00 [14:49:04]MH_I2C_Read... [14:49:04]Read from MH i2c: E2 FD 00 0E 03 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 69 [14:49:04]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [14:49:04]wFMCommunicate OK [14:49:04]wFMCommunicate request_size=4 [14:49:04]MH_SAM_APDU [14:49:04]CAPDU: 80 17 00 00 [14:49:04]Write to MH i2c: E2 08 00 0F 03 80 17 00 00 00 00 00 00 92 [14:49:04]Write i2c OK [14:49:04]MH_I2C_Read... [14:49:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:04]Read from MH i2c: E2 [14:49:04]MH_I2C_Read... [14:49:04]Read from MH i2c: E2 FD 00 [14:49:04]MH_I2C_Read... [14:49:04]Read from MH i2c: E2 FD 00 0F 03 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 0A [14:49:04]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [14:49:04]wFMCommunicate OK [14:49:04]wFMCommunicate request_size=4 [14:49:04]MH_SAM_APDU [14:49:04]CAPDU: 80 17 00 00 [14:49:04]Write to MH i2c: E2 08 00 10 03 80 17 00 00 00 00 00 00 93 [14:49:04]Write i2c OK [14:49:04]MH_I2C_Read... [14:49:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [14:49:05]Read from MH i2c: E2 [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: E2 E5 00 [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: E2 E5 00 10 03 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [14:49:05]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:49:05]wFMCommunicate OK [14:49:05]SAM_PROTO_GetFMData done [14:49:05]requested_item fm.sale_refund.total is exist - process it [14:49:05]requested_item fm.buy.total is exist - process it [14:49:05]requested_item shift.sale.total is exist - process it [14:49:05]SAM_PROTO_GetShiftData [14:49:05]wFMCommunicate request_size=4 [14:49:05]MH_SAM_APDU [14:49:05]CAPDU: 80 13 02 00 [14:49:05]Write to MH i2c: E2 08 00 11 03 80 13 02 00 00 00 00 00 92 [14:49:05]Write i2c OK [14:49:05]MH_I2C_Read... [14:49:05]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:49:05]Read from MH i2c: E2 [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: E2 FD 00 [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: E2 FD 00 11 03 00 BA 04 AA 04 B6 04 6E 04 04 00 5C 00 00 00 69 04 9C 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 E8 72 AF 70 04 03 00 8C C9 8B 72 04 03 00 5C A9 23 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 97 A2 12 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 85 8D 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 01 00 00 00 B1 04 03 00 80 84 1E 70 04 03 00 80 84 1E 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 A7 3D 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 F0 [14:49:05]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 5C 00 00 00 69 04 9C 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 E8 72 AF 70 04 03 00 8C C9 8B 72 04 03 00 5C A9 23 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 97 A2 12 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 85 8D 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 01 00 00 00 B1 04 03 00 80 84 1E 70 04 03 00 80 84 1E 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 A7 3D 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [14:49:06]wFMCommunicate OK [14:49:06]wFMCommunicate request_size=4 [14:49:06]MH_SAM_APDU [14:49:06]CAPDU: 80 17 00 00 [14:49:06]Write to MH i2c: E2 08 00 12 03 80 17 00 00 00 00 00 00 95 [14:49:06]Write i2c OK [14:49:06]MH_I2C_Read... [14:49:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:06]Read from MH i2c: E2 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 FD 00 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 FD 00 12 03 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 23 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 A7 [14:49:06]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 23 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [14:49:06]wFMCommunicate OK [14:49:06]wFMCommunicate request_size=4 [14:49:06]MH_SAM_APDU [14:49:06]CAPDU: 80 17 00 00 [14:49:06]Write to MH i2c: E2 08 00 13 03 80 17 00 00 00 00 00 00 96 [14:49:06]Write i2c OK [14:49:06]MH_I2C_Read... [14:49:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:06]Read from MH i2c: E2 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 FD 00 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 FD 00 13 03 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 C2 [14:49:06]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [14:49:06]wFMCommunicate OK [14:49:06]wFMCommunicate request_size=4 [14:49:06]MH_SAM_APDU [14:49:06]CAPDU: 80 17 00 00 [14:49:06]Write to MH i2c: E2 08 00 14 03 80 17 00 00 00 00 00 00 97 [14:49:06]Write i2c OK [14:49:06]MH_I2C_Read... [14:49:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:06]Read from MH i2c: E2 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 FD 00 [14:49:06]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 FD 00 14 03 00 00 EF 03 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 90 00 0F [14:49:07]RAPDU: 00 EF 03 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 90 00 [14:49:07]wFMCommunicate OK [14:49:07]wFMCommunicate request_size=4 [14:49:07]MH_SAM_APDU [14:49:07]CAPDU: 80 17 00 00 [14:49:07]Write to MH i2c: E2 08 00 15 03 80 17 00 00 00 00 00 00 98 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [14:49:07]Read from MH i2c: E2 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 D7 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 D7 00 15 03 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [14:49:07]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:49:07]wFMCommunicate OK [14:49:07]SAM_PROTO_GetShiftData done [14:49:07]requested_item shift.sale.total_cash is exist - process it [14:49:07]requested_item shift.sale_refund.total is exist - process it [14:49:07]requested_item shift.sale_refund.total_cash is exist - process it [14:49:07]requested_item shift.buy.total is exist - process it [14:49:07]requested_item shift.buy.total_cash is exist - process it [14:49:07]produce_requested_data done [14:49:07]produce_requested_data return {"fm.sale.total":117524254.55,"fm.sale_refund.total":46638513.80,"fm.buy.total":0.00,"shift.sale.total":114982.16,"shift.sale.total_cash":91611.00,"shift.sale_refund.total":20000.00,"shift.sale_refund.total_cash":20000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:49:07]process_action_free get_value [14:49:07]json_value_free [14:49:07]json_value_free done [14:49:07]process_json_proto returns [14:49:07]Send response to host [14:49:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117524254.55,"fm.sale_refund.total":46638513.80,"fm.buy.total":0.00,"shift.sale.total":114982.16,"shift.sale.total_cash":91611.00,"shift.sale_refund.total":20000.00,"shift.sale_refund.total_cash":20000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:49:07]free response buf [14:49:07]execute_script done [14:49:07]execute_script returns [14:49:07]free content buf [14:49:07]Sock 7.Close socket [14:49:07]Sock 7.Thread stoped [14:49:07]accept exits with 9 [14:49:07]New connection [14:49:07]New thread 3067207012 created [14:49:07]Thread 3067350372 joined [14:49:07]Waiting for new connection... [14:49:07] Sock 9.Parse request [14:49:07]Sock 9.Check first char [14:49:07]Sock 9.First char is OK [14:49:07]request: POST /json_proto HTTP/1.0 [14:49:07]Method: POST [14:49:07]URL: /json_proto [14:49:07]Method is POST - this is cgi request [14:49:07]url: /json_proto [14:49:07]query_string will be loaded in cgi processing [14:49:07]execute_cgi json_proto POST (null) [14:49:07]execute_cgi path=json_proto method=POST [14:49:07]POST find Content-Length [14:49:07]Host: 172.17.62.5:8080 [14:49:07]Content-Length: 275 [14:49:07]Content-Type: application/json [14:49:07] [14:49:07]POST finish read [14:49:07]Found Content-Length = 275 [14:49:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:07]execute_script... [14:49:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:07]POST & json_proto [14:49:07]process_json_proto [14:49:07]json parsed OK: [14:49:07]protocol is kg_v1.0 [14:49:07]action value=x_report [14:49:07]process_action x_report [14:49:07]cmd_x_report [14:49:07]MH_GetDate [14:49:07]Write to MH i2c: F0 00 00 16 03 08 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: F0 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: F0 09 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: F0 09 00 16 03 00 E3 78 26 66 F4 E9 65 64 9E [14:49:07]GetLastDocTimeStamp 1713796810 [14:49:07]current date 1713797347 [14:49:07]FM_GetShiftState [14:49:07]SAM_PROTO_GetShiftState [14:49:07]wFMCommunicate request_size=4 [14:49:07]MH_SAM_APDU [14:49:07]CAPDU: 80 13 01 00 [14:49:07]Write to MH i2c: E2 08 00 17 03 80 13 01 00 00 00 00 00 97 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:07]Read from MH i2c: E2 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 0E 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 0E 00 17 03 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 BE [14:49:07]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:49:07]wFMCommunicate OK [14:49:07]SAM_PROTO_GetShiftState done [14:49:07]FM_GetShiftState done [14:49:07]KKMCreateXReportDocument [14:49:07]Load OK [14:49:07]Malloc new data [14:49:07]MH_GetDate [14:49:07]Write to MH i2c: F0 00 00 18 03 0A [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: F0 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: F0 09 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: F0 09 00 18 03 00 E3 78 26 66 F4 E9 65 64 A0 [14:49:07]Malloc new data [14:49:07]Malloc new data [14:49:07]wFMCommunicate request_size=4 [14:49:07]MH_SAM_APDU [14:49:07]CAPDU: 80 11 00 00 [14:49:07]Write to MH i2c: E2 08 00 19 03 80 11 00 00 00 00 00 00 96 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:07]Read from MH i2c: E2 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 17 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 17 00 19 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 E9 [14:49:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:49:07]wFMCommunicate OK [14:49:07]SAM_PROTO_GetFieldsCounters [14:49:07]wFMCommunicate request_size=4 [14:49:07]MH_SAM_APDU [14:49:07]CAPDU: 80 13 00 00 [14:49:07]Write to MH i2c: E2 08 00 1A 03 80 13 00 00 00 00 00 00 99 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:07]Read from MH i2c: E2 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 62 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 62 00 1A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 11 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [14:49:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 11 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:07]wFMCommunicate OK [14:49:07]SAM_PROTO_GetFieldsCounters done [14:49:07]Malloc new data [14:49:07]Malloc new data [14:49:07]Malloc new data [14:49:07]KKMCreateXReportDocument OK [14:49:07]KKMSetXReportData OK [14:49:07]KKMPrepareXReportFMData [14:49:07]SAM_PROTO_GetShiftData [14:49:07]wFMCommunicate request_size=4 [14:49:07]MH_SAM_APDU [14:49:07]CAPDU: 80 13 02 00 [14:49:07]Write to MH i2c: E2 08 00 1B 03 80 13 02 00 00 00 00 00 9C [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:49:08]Read from MH i2c: E2 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 FD 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 FD 00 1B 03 00 BA 04 AA 04 B6 04 6E 04 04 00 5C 00 00 00 69 04 9C 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 E8 72 AF 70 04 03 00 8C C9 8B 72 04 03 00 5C A9 23 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 97 A2 12 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 85 8D 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 01 00 00 00 B1 04 03 00 80 84 1E 70 04 03 00 80 84 1E 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 A7 3D 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 FA [14:49:08]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 5C 00 00 00 69 04 9C 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 E8 72 AF 70 04 03 00 8C C9 8B 72 04 03 00 5C A9 23 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 97 A2 12 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 85 8D 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 01 00 00 00 B1 04 03 00 80 84 1E 70 04 03 00 80 84 1E 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 A7 3D 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [14:49:08]wFMCommunicate OK [14:49:08]wFMCommunicate request_size=4 [14:49:08]MH_SAM_APDU [14:49:08]CAPDU: 80 17 00 00 [14:49:08]Write to MH i2c: E2 08 00 1C 03 80 17 00 00 00 00 00 00 9F [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:08]Read from MH i2c: E2 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 FD 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 FD 00 1C 03 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 23 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 B1 [14:49:08]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 23 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [14:49:08]wFMCommunicate OK [14:49:08]wFMCommunicate request_size=4 [14:49:08]MH_SAM_APDU [14:49:08]CAPDU: 80 17 00 00 [14:49:08]Write to MH i2c: E2 08 00 1D 03 80 17 00 00 00 00 00 00 A0 [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:09]Read from MH i2c: E2 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 FD 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 FD 00 1D 03 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 CC [14:49:09]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [14:49:09]wFMCommunicate OK [14:49:09]wFMCommunicate request_size=4 [14:49:09]MH_SAM_APDU [14:49:09]CAPDU: 80 17 00 00 [14:49:09]Write to MH i2c: E2 08 00 1E 03 80 17 00 00 00 00 00 00 A1 [14:49:09]OFD Sender: No OFD packet to send [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:09]Read from MH i2c: E2 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 FD 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 FD 00 1E 03 00 00 EF 03 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 90 00 19 [14:49:09]RAPDU: 00 EF 03 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 90 00 [14:49:09]wFMCommunicate OK [14:49:09]wFMCommunicate request_size=4 [14:49:09]MH_SAM_APDU [14:49:09]CAPDU: 80 17 00 00 [14:49:09]Write to MH i2c: E2 08 00 1F 03 80 17 00 00 00 00 00 00 A2 [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [14:49:10]Read from MH i2c: E2 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 D7 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: E2 D7 00 1F 03 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [14:49:10]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:49:10]wFMCommunicate OK [14:49:10]SAM_PROTO_GetShiftData done [14:49:10]1194 (1206) - счетчики итогов смены [14:49:10] 1134 (4) - 92 - количество чеков со всеми признаками расчетов [14:49:10] 1129 (156) - счетчики операций «приход» [14:49:10] 1135 (4) - 91 - количество чеков по признаку расчетов [14:49:10] 1201 (3) - 114982.16 - общая итоговая сумма в чеках [14:49:10] 1136 (3) - 91611.00 - итоговая сумма в чеках наличными [14:49:10] 1138 (3) - 23371.16 - итоговая сумма в чеках безналичными [14:49:10] 1024 (123) - суммы налогов [14:49:10] 1006 (9) - суммы НДС [14:49:10] 1010 (1) - 0% - код ставки НДС [14:49:10] 1011 (0) - 0.00 - сумма НДС по ставке [14:49:10] 1006 (12) - суммы НДС [14:49:10] 1010 (1) - 12% - код ставки НДС [14:49:10] 1011 (3) - 12212.71 - сумма НДС по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 0% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (12) - суммы НСП [14:49:10] 1014 (1) - 1% - код ставки НСП [14:49:10] 1015 (3) - 1017.65 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 2% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 3% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 5% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 0,50% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 1,50% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1130 (152) - счетчики операций «возврат прихода» [14:49:10] 1135 (4) - 1 - количество чеков по признаку расчетов [14:49:10] 1201 (3) - 20000.00 - общая итоговая сумма в чеках [14:49:10] 1136 (3) - 20000.00 - итоговая сумма в чеках наличными [14:49:10] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [14:49:10] 1024 (122) - суммы налогов [14:49:10] 1006 (9) - суммы НДС [14:49:10] 1010 (1) - 0% - код ставки НДС [14:49:10] 1011 (0) - 0.00 - сумма НДС по ставке [14:49:10] 1006 (12) - суммы НДС [14:49:10] 1010 (1) - 12% - код ставки НДС [14:49:10] 1011 (3) - 2123.91 - сумма НДС по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 0% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (11) - суммы НСП [14:49:10] 1014 (1) - 1% - код ставки НСП [14:49:10] 1015 (2) - 176.99 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 2% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 3% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 5% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 0,50% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 1,50% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1131 (141) - счетчики операций «расход» [14:49:10] 1135 (4) - 0 - количество чеков по признаку расчетов [14:49:10] 1201 (0) - 0.00 - общая итоговая сумма в чеках [14:49:10] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [14:49:10] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [14:49:10] 1024 (117) - суммы налогов [14:49:10] 1006 (9) - суммы НДС [14:49:10] 1010 (1) - 0% - код ставки НДС [14:49:10] 1011 (0) - 0.00 - сумма НДС по ставке [14:49:10] 1006 (9) - суммы НДС [14:49:10] 1010 (1) - 12% - код ставки НДС [14:49:10] 1011 (0) - 0.00 - сумма НДС по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 0% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 1% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 2% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 3% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 5% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 0,50% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 1,50% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1132 (141) - счетчики операций «возврат расхода» [14:49:10] 1135 (4) - 0 - количество чеков по признаку расчетов [14:49:10] 1201 (0) - 0.00 - общая итоговая сумма в чеках [14:49:10] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [14:49:10] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [14:49:10] 1024 (117) - суммы налогов [14:49:10] 1006 (9) - суммы НДС [14:49:10] 1010 (1) - 0% - код ставки НДС [14:49:10] 1011 (0) - 0.00 - сумма НДС по ставке [14:49:10] 1006 (9) - суммы НДС [14:49:10] 1010 (1) - 12% - код ставки НДС [14:49:10] 1011 (0) - 0.00 - сумма НДС по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 0% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 1% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 2% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 3% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 5% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 0,50% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1007 (9) - суммы НСП [14:49:10] 1014 (1) - 1,50% - код ставки НСП [14:49:10] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:10] 1133 (588) - - счетчики коррекции - не используются [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1194 (04AA) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1134 (046E) [14:49:10]Malloc new data [14:49:10]Processing tag 1129 (0469) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1135 (046F) [14:49:10]Malloc new data [14:49:10]Processing tag 1201 (04B1) [14:49:10]Malloc new data [14:49:10]Processing tag 1136 (0470) [14:49:10]Malloc new data [14:49:10]Processing tag 1138 (0472) [14:49:10]Malloc new data [14:49:10]Processing tag 1024 (0400) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1006 (03EE) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1010 (03F2) [14:49:10]Malloc new data [14:49:10]Processing tag 1011 (03F3) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1006 (03EE) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1010 (03F2) [14:49:10]Malloc new data [14:49:10]Processing tag 1011 (03F3) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1007 (03EF) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1014 (03F6) [14:49:10]Malloc new data [14:49:10]Processing tag 1015 (03F7) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1007 (03EF) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1014 (03F6) [14:49:10]Malloc new data [14:49:10]Processing tag 1015 (03F7) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1007 (03EF) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1014 (03F6) [14:49:10]Malloc new data [14:49:10]Processing tag 1015 (03F7) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1007 (03EF) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1014 (03F6) [14:49:10]Malloc new data [14:49:10]Processing tag 1015 (03F7) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1007 (03EF) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1014 (03F6) [14:49:10]Malloc new data [14:49:10]Processing tag 1015 (03F7) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1007 (03EF) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1014 (03F6) [14:49:10]Malloc new data [14:49:10]Processing tag 1015 (03F7) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1007 (03EF) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1014 (03F6) [14:49:10]Malloc new data [14:49:10]Processing tag 1015 (03F7) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]SetTLVBufToDocument err=0 [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1130 (046A) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1135 (046F) [14:49:10]Malloc new data [14:49:10]Processing tag 1201 (04B1) [14:49:10]Malloc new data [14:49:10]Processing tag 1136 (0470) [14:49:10]Malloc new data [14:49:10]Processing tag 1138 (0472) [14:49:10]Malloc new data [14:49:10]Processing tag 1024 (0400) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1006 (03EE) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1010 (03F2) [14:49:10]Malloc new data [14:49:10]Processing tag 1011 (03F3) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1006 (03EE) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1010 (03F2) [14:49:10]Malloc new data [14:49:10]Processing tag 1011 (03F3) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1007 (03EF) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1014 (03F6) [14:49:10]Malloc new data [14:49:10]Processing tag 1015 (03F7) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1007 (03EF) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1014 (03F6) [14:49:10]Malloc new data [14:49:10]Processing tag 1015 (03F7) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1007 (03EF) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1014 (03F6) [14:49:10]Malloc new data [14:49:10]Processing tag 1015 (03F7) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1007 (03EF) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1014 (03F6) [14:49:10]Malloc new data [14:49:10]Processing tag 1015 (03F7) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1007 (03EF) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1014 (03F6) [14:49:10]Malloc new data [14:49:10]Processing tag 1015 (03F7) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1007 (03EF) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1014 (03F6) [14:49:10]Malloc new data [14:49:10]Processing tag 1015 (03F7) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1007 (03EF) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1014 (03F6) [14:49:10]Malloc new data [14:49:10]Processing tag 1015 (03F7) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]SetTLVBufToDocument err=0 [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1131 (046B) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1135 (046F) [14:49:10]Malloc new data [14:49:10]Processing tag 1201 (04B1) [14:49:10]Malloc new data [14:49:10]Processing tag 1136 (0470) [14:49:10]Malloc new data [14:49:10]Processing tag 1138 (0472) [14:49:10]Malloc new data [14:49:10]Processing tag 1024 (0400) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1006 (03EE) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1010 (03F2) [14:49:10]Malloc new data [14:49:10]Processing tag 1011 (03F3) [14:49:10]Malloc new data [14:49:10]SetTLVBufToDocument err=0 [14:49:10]Processing tag 1006 (03EE) [14:49:10]Load OK [14:49:10]SetTLVBufToDocument [14:49:10]Processing tag 1010 (03F2) [14:49:10]Malloc new data [14:49:11]Processing tag 1011 (03F3) [14:49:11]Malloc new data [14:49:11]SetTLVBufToDocument err=0 [14:49:11]Processing tag 1007 (03EF) [14:49:11]Load OK [14:49:11]SetTLVBufToDocument [14:49:11]Processing tag 1014 (03F6) [14:49:11]Malloc new data [14:49:11]Processing tag 1015 (03F7) [14:49:11]Malloc new data [14:49:11]SetTLVBufToDocument err=0 [14:49:11]Processing tag 1007 (03EF) [14:49:11]Load OK [14:49:11]SetTLVBufToDocument [14:49:11]Processing tag 1014 (03F6) [14:49:11]Malloc new data [14:49:11]Processing tag 1015 (03F7) [14:49:11]Malloc new data [14:49:11]SetTLVBufToDocument err=0 [14:49:11]Processing tag 1007 (03EF) [14:49:11]Load OK [14:49:11]SetTLVBufToDocument [14:49:11]Processing tag 1014 (03F6) [14:49:11]Malloc new data [14:49:11]Processing tag 1015 (03F7) [14:49:11]Malloc new data [14:49:11]SetTLVBufToDocument err=0 [14:49:11]Processing tag 1007 (03EF) [14:49:11]Load OK [14:49:11]SetTLVBufToDocument [14:49:11]Processing tag 1014 (03F6) [14:49:11]Malloc new data [14:49:11]Processing tag 1015 (03F7) [14:49:11]Malloc new data [14:49:11]SetTLVBufToDocument err=0 [14:49:11]Processing tag 1007 (03EF) [14:49:11]Load OK [14:49:11]SetTLVBufToDocument [14:49:11]Processing tag 1014 (03F6) [14:49:11]Malloc new data [14:49:11]Processing tag 1015 (03F7) [14:49:11]Malloc new data [14:49:11]SetTLVBufToDocument err=0 [14:49:11]Processing tag 1007 (03EF) [14:49:11]Load OK [14:49:11]SetTLVBufToDocument [14:49:11]Processing tag 1014 (03F6) [14:49:11]Malloc new data [14:49:11]Processing tag 1015 (03F7) [14:49:11]Malloc new data [14:49:11]SetTLVBufToDocument err=0 [14:49:11]Processing tag 1007 (03EF) [14:49:11]Load OK [14:49:11]SetTLVBufToDocument [14:49:11]Processing tag 1014 (03F6) [14:49:11]Malloc new data [14:49:11]Processing tag 1015 (03F7) [14:49:11]Malloc new data [14:49:11]SetTLVBufToDocument err=0 [14:49:11]SetTLVBufToDocument err=0 [14:49:11]SetTLVBufToDocument err=0 [14:49:11]Processing tag 1132 (046C) [14:49:11]Load OK [14:49:11]SetTLVBufToDocument [14:49:11]Processing tag 1135 (046F) [14:49:11]Malloc new data [14:49:11]Processing tag 1201 (04B1) [14:49:11]Malloc new data [14:49:11]Processing tag 1136 (0470) [14:49:11]Malloc new data [14:49:11]Processing tag 1138 (0472) [14:49:11]Malloc new data [14:49:11]Processing tag 1024 (0400) [14:49:11]Load OK [14:49:11]SetTLVBufToDocument [14:49:11]Processing tag 1006 (03EE) [14:49:11]Load OK [14:49:11]SetTLVBufToDocument [14:49:11]Processing tag 1010 (03F2) [14:49:11]Malloc new data [14:49:11]Processing tag 1011 (03F3) [14:49:11]Malloc new data [14:49:11]SetTLVBufToDocument err=0 [14:49:11]Processing tag 1006 (03EE) [14:49:11]Load OK [14:49:11]SetTLVBufToDocument [14:49:11]Processing tag 1010 (03F2) [14:49:11]Malloc new data [14:49:11]Processing tag 1011 (03F3) [14:49:11]Malloc new data [14:49:11]SetTLVBufToDocument err=0 [14:49:11]Processing tag 1007 (03EF) [14:49:11]Load OK [14:49:11]SetTLVBufToDocument [14:49:11]Processing tag 1014 (03F6) [14:49:11]Malloc new data [14:49:11]Processing tag 1015 (03F7) [14:49:11]Malloc new data [14:49:11]SetTLVBufToDocument err=0 [14:49:11]Processing tag 1007 (03EF) [14:49:11]Load OK [14:49:11]SetTLVBufToDocument [14:49:11]Processing tag 1014 (03F6) [14:49:11]Malloc new data [14:49:11]Processing tag 1015 (03F7) [14:49:11]Malloc new data [14:49:11]SetTLVBufToDocument err=0 [14:49:11]Processing tag 1007 (03EF) [14:49:11]Load OK [14:49:11]SetTLVBufToDocument [14:49:11]Processing tag 1014 (03F6) [14:49:11]Malloc new data [14:49:11]Processing tag 1015 (03F7) [14:49:11]Malloc new data [14:49:11]SetTLVBufToDocument err=0 [14:49:11]Processing tag 1007 (03EF) [14:49:11]Load OK [14:49:11]SetTLVBufToDocument [14:49:11]Processing tag 1014 (03F6) [14:49:11]Malloc new data [14:49:11]Processing tag 1015 (03F7) [14:49:11]Malloc new data [14:49:11]SetTLVBufToDocument err=0 [14:49:11]Processing tag 1007 (03EF) [14:49:11]Load OK [14:49:11]SetTLVBufToDocument [14:49:11]Processing tag 1014 (03F6) [14:49:11]Malloc new data [14:49:11]Processing tag 1015 (03F7) [14:49:11]Malloc new data [14:49:11]SetTLVBufToDocument err=0 [14:49:11]Processing tag 1007 (03EF) [14:49:11]Load OK [14:49:11]SetTLVBufToDocument [14:49:11]Processing tag 1014 (03F6) [14:49:11]Malloc new data [14:49:11]Processing tag 1015 (03F7) [14:49:11]Malloc new data [14:49:11]SetTLVBufToDocument err=0 [14:49:11]Processing tag 1007 (03EF) [14:49:11]Load OK [14:49:11]SetTLVBufToDocument [14:49:11]Processing tag 1014 (03F6) [14:49:11]Malloc new data [14:49:11]Processing tag 1015 (03F7) [14:49:11]Malloc new data [14:49:11]SetTLVBufToDocument err=0 [14:49:11]SetTLVBufToDocument err=0 [14:49:11]SetTLVBufToDocument err=0 [14:49:11]Processing tag 1133 (046D) [14:49:11]Malloc new data [14:49:11]SetTLVBufToDocument err=0 [14:49:11]SetTLVBufToDocument err=0 [14:49:11]Malloc new data [14:49:11]SAM_PROTO_GetFMData [14:49:11]wFMCommunicate request_size=4 [14:49:11]MH_SAM_APDU [14:49:11]CAPDU: 80 13 03 00 [14:49:11]Write to MH i2c: E2 08 00 20 03 80 13 03 00 00 00 00 00 A2 [14:49:11]Write i2c OK [14:49:11]MH_I2C_Read... [14:49:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:49:11]Read from MH i2c: E2 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: E2 FD 00 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: E2 FD 00 20 03 00 C8 04 85 04 C4 04 6E 04 04 00 27 2A 01 00 69 04 A3 00 6F 04 04 00 33 28 01 00 B1 04 05 00 EF C7 7F BC 02 70 04 05 00 EC 92 42 78 02 72 04 04 00 03 35 3D 44 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 40 57 66 4A 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 0C 21 33 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F4 01 00 00 B1 04 05 00 74 B9 FC 15 01 70 04 05 00 74 B9 FC 15 01 72 04 00 00 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 14 56 85 1D EF 90 00 86 [14:49:11]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 27 2A 01 00 69 04 A3 00 6F 04 04 00 33 28 01 00 B1 04 05 00 EF C7 7F BC 02 70 04 05 00 EC 92 42 78 02 72 04 04 00 03 35 3D 44 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 40 57 66 4A 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 0C 21 33 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F4 01 00 00 B1 04 05 00 74 B9 FC 15 01 70 04 05 00 74 B9 FC 15 01 72 04 00 00 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 14 56 85 1D EF 90 00 [14:49:12]wFMCommunicate OK [14:49:12]wFMCommunicate request_size=4 [14:49:12]MH_SAM_APDU [14:49:12]CAPDU: 80 17 00 00 [14:49:12]Write to MH i2c: E2 08 00 21 03 80 17 00 00 00 00 00 00 A4 [14:49:12]Write i2c OK [14:49:12]MH_I2C_Read... [14:49:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:12]Read from MH i2c: E2 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: E2 FD 00 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: E2 FD 00 21 03 00 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 10 C7 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 01 [14:49:12]RAPDU: 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 10 C7 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [14:49:12]wFMCommunicate OK [14:49:12]wFMCommunicate request_size=4 [14:49:12]MH_SAM_APDU [14:49:12]CAPDU: 80 17 00 00 [14:49:12]Write to MH i2c: E2 08 00 22 03 80 17 00 00 00 00 00 00 A5 [14:49:12]Write i2c OK [14:49:12]MH_I2C_Read... [14:49:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:12]Read from MH i2c: E2 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: E2 FD 00 [14:49:12]MH_I2C_Read... [14:49:12]Read from MH i2c: E2 FD 00 22 03 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 7D [14:49:12]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [14:49:13]wFMCommunicate OK [14:49:13]wFMCommunicate request_size=4 [14:49:13]MH_SAM_APDU [14:49:13]CAPDU: 80 17 00 00 [14:49:13]Write to MH i2c: E2 08 00 23 03 80 17 00 00 00 00 00 00 A6 [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:13]Read from MH i2c: E2 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 FD 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 FD 00 23 03 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 1E [14:49:13]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [14:49:13]wFMCommunicate OK [14:49:13]wFMCommunicate request_size=4 [14:49:13]MH_SAM_APDU [14:49:13]CAPDU: 80 17 00 00 [14:49:13]Write to MH i2c: E2 08 00 24 03 80 17 00 00 00 00 00 00 A7 [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [14:49:13]Read from MH i2c: E2 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 E5 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 E5 00 24 03 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8B [14:49:13]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:49:14]wFMCommunicate OK [14:49:14]SAM_PROTO_GetFMData done [14:49:14]FM_GetFMData:85 04 C4 04 6E 04 04 00 27 2A 01 00 69 04 A3 00 6F 04 04 00 33 28 01 00 B1 04 05 00 EF C7 7F BC 02 70 04 05 00 EC 92 42 78 02 72 04 04 00 03 35 3D 44 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 40 57 66 4A 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 0C 21 33 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F4 01 00 00 B1 04 05 00 74 B9 FC 15 01 70 04 05 00 74 B9 FC 15 01 72 04 00 00 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 14 56 85 1D 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 10 C7 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [14:49:14]00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [14:49:14]oper:6F 04 04 00 33 28 01 00 B1 04 05 00 EF C7 7F BC 02 70 04 05 00 EC 92 42 78 02 72 04 04 00 03 35 3D 44 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 40 57 66 4A 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 0C 21 33 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [14:49:14]total:EF C7 7F BC 02 [14:49:14]Malloc new data [14:49:14]oper:6F 04 04 00 F4 01 00 00 B1 04 05 00 74 B9 FC 15 01 70 04 05 00 74 B9 FC 15 01 72 04 00 00 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 14 56 85 1D 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 10 C7 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [14:49:14]total:74 B9 FC 15 01 [14:49:14]Malloc new data [14:49:14]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 [14:49:14]total: [14:49:14]Malloc new data [14:49:14]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 [14:49:15]total: [14:49:15]Malloc new data [14:49:15]KKMPrepareXReportFMData err=0 [14:49:15]Х отчет ИНН: 02508201610067 Кассир: Токторбаева Н. 22.04.2024 14:49 Смена: 266 РНМ: 0000000000091573 ЗНМ: 0300000141 СНО: Общий режим Всего чеков: 92 ИТОГИ ПРИХОД Чеков: 91 Общий итог: 114982.16 Итого наличными: 91611.00 Итого безнал.: 23371.16 НДС 0% : 0.00 НДС 12% : 12212.71 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1017.65 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 20000.00 Итого наличными: 20000.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 2123.91 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 176.99 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 71611.00 НС Приход: 117524254.55 НС Возвр.Прихода: 46638513.80 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874652 [14:49:15]StoreToDocumentArchive [14:49:15]MH_GetDate [14:49:15]Write to MH i2c: F0 00 00 25 03 17 [14:49:15]Write i2c OK [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: F0 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: F0 09 00 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: F0 09 00 25 03 00 EB 78 26 66 F4 E9 65 64 B5 [14:49:15]shift 266 fd 1713797355 [14:49:15]Create dir for shift 0266 [14:49:15]save to /storage/0266/doc_1713797355 [14:49:15]save last doc name /storage/0266/doc_1713797355 to /storage/kkm_last_doc_name [14:49:15]save OK [14:49:15]Clear old archive folders... [14:49:15]NVStorageSaveData kkm_last_timestamp [14:49:15]File name is /storage/kkm_last_timestamp [14:49:15]Write 4 bytes [14:49:15]NVStorageSaveData done [14:49:15]ExternCall_PrintAddStr [14:49:15]wPrintStart [14:49:15]Write to MH i2c: 01 00 00 26 03 29 [14:49:15]Write i2c OK [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: 01 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: 01 07 00 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: 01 07 00 26 03 00 00 00 00 00 FF 0F 3E [14:49:15]RasterBufferAndPrint [14:49:15]line Х отчет [14:49:15]line ИНН: 02508201610067 [14:49:15]line Кассир: Токторбаева Н. [14:49:15]line 22.04.2024 14:49 [14:49:15]line Смена: 266 [14:49:15]line РНМ: 0000000000091573 [14:49:15]line ЗНМ: 0300000141 [14:49:15]line СНО: Общий режим [14:49:15]line Всего чеков: 92 [14:49:15]line ИТОГИ ПРИХОД [14:49:15]line Чеков: 91 [14:49:15]line Общий итог: 114982.16 [14:49:15]line Итого наличными: 91611.00 [14:49:15]line Итого безнал.: 23371.16 [14:49:15]line НДС 0% : 0.00 [14:49:15]line НДС 12% : 12212.71 [14:49:15]line НСП 0% : 0.00 [14:49:15]line НСП 1,50% : 0.00 [14:49:15]line НСП 0,50% : 0.00 [14:49:15]line НСП 5% : 0.00 [14:49:15]line НСП 3% : 0.00 [14:49:15]line НСП 2% : 0.00 [14:49:15]line НСП 1% : 1017.65 [14:49:15]line ИТОГИ ВОЗВРАТ ПРИХОДА [14:49:15]line Чеков: 1 [14:49:15]line Общий итог: 20000.00 [14:49:15]line Итого наличными: 20000.00 [14:49:15]line Итого безнал.: 0.00 [14:49:15]line НДС 0% : 0.00 [14:49:15]line НДС 12% : 2123.91 [14:49:15]line НСП 0% : 0.00 [14:49:15]line НСП 1,50% : 0.00 [14:49:15]line НСП 0,50% : 0.00 [14:49:15]line НСП 5% : 0.00 [14:49:15]line НСП 3% : 0.00 [14:49:15]line НСП 2% : 0.00 [14:49:15]line НСП 1% : 176.99 [14:49:15]line ИТОГИ РАСХОД [14:49:15]line Чеков: 0 [14:49:15]line Общий итог: 0.00 [14:49:15]line Итого наличными: 0.00 [14:49:15]line Итого безнал.: 0.00 [14:49:15]line НДС 0% : 0.00 [14:49:15]line НДС 12% : 0.00 [14:49:15]line НСП 0% : 0.00 [14:49:15]line НСП 1,50% : 0.00 [14:49:15]line НСП 0,50% : 0.00 [14:49:15]line НСП 5% : 0.00 [14:49:15]line НСП 3% : 0.00 [14:49:15]line НСП 2% : 0.00 [14:49:15]line НСП 1% : 0.00 [14:49:15]line ИТОГИ ВОЗВРАТ РАСХОДА [14:49:15]line Чеков: 0 [14:49:15]line Общий итог: 0.00 [14:49:15]line Итого наличными: 0.00 [14:49:15]line Итого безнал.: 0.00 [14:49:15]line НДС 0% : 0.00 [14:49:15]line НДС 12% : 0.00 [14:49:15]line НСП 0% : 0.00 [14:49:15]line НСП 1,50% : 0.00 [14:49:15]line НСП 0,50% : 0.00 [14:49:15]line НСП 5% : 0.00 [14:49:15]line НСП 3% : 0.00 [14:49:15]line НСП 2% : 0.00 [14:49:15]line НСП 1% : 0.00 [14:49:15]line Сумма внесений: 0.00 [14:49:15]line Сумма выплат: 0.00 [14:49:15]line Нал. в кассе: 71611.00 [14:49:15]line НС Приход: 117524254.55 [14:49:15]line НС Возвр.Прихода: 46638513.80 [14:49:15]line НС Расход: 0.00 [14:49:15]line НС Возвр.Расхода: 0.00 [14:49:15]line ФМ: 0000000000874652 [14:49:15]written 0, free lines is 4095 [14:49:15]Write to MH i2c: 01 00 00 72 03 75 [14:49:15]Write i2c OK [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: 01 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: 01 07 00 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: 01 07 00 72 03 00 00 00 00 00 AD 0A 33 [14:49:15]RasterBufferAndPrint [14:49:15]line [14:49:15]line [14:49:15]line [14:49:15]line [14:49:15]line [14:49:15]written 0, free lines is 2767 [14:49:15]MH_Cut [14:49:15]Write to MH i2c: D1 01 00 79 03 01 4E [14:49:15]Write i2c OK [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: D1 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: D1 01 00 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: D1 01 00 79 03 00 4D [14:49:15]Write to MH i2c: 01 00 00 7A 03 7D [14:49:15]Write i2c OK [14:49:15]MH_I2C_Read... [14:49:16]*** Cut start [14:49:16]*** Partial cut [14:49:16]*** CUTSNS_PIN = 1 [14:49:17]*** CUTSNS_PIN = 0 [14:49:17]*** Brake cut motor [14:49:17]Read from MH i2c: 01 [14:49:17]MH_I2C_Read... [14:49:17]*** Stop cut motor [14:49:17]*** Cut end [14:49:17]Read from MH i2c: 01 07 00 [14:49:17]MH_I2C_Read... [14:49:17]Read from MH i2c: 01 07 00 7A 03 00 00 00 00 00 FF 0F 92 [14:49:17]process_action x_report done [14:49:17]requested_data is exist [14:49:17]produce_requested_data [14:49:17]requested_item fd.num is exist - process it [14:49:17]SAM_PROTO_GetFieldsCounters [14:49:17]wFMCommunicate request_size=4 [14:49:17]MH_SAM_APDU [14:49:17]CAPDU: 80 13 00 00 [14:49:17]Write to MH i2c: E2 08 00 7B 03 80 13 00 00 00 00 00 00 FA [14:49:17]Write i2c OK [14:49:17]MH_I2C_Read... [14:49:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:17]Read from MH i2c: E2 [14:49:17]MH_I2C_Read... [14:49:17]Read from MH i2c: E2 62 00 [14:49:17]MH_I2C_Read... [14:49:17]Read from MH i2c: E2 62 00 7B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 11 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [14:49:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 11 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:17]wFMCommunicate OK [14:49:17]SAM_PROTO_GetFieldsCounters done [14:49:17]requested_item shift.num is exist - process it [14:49:17]requested_item shift.opened is exist - process it [14:49:17]req_shift_opened [14:49:17]FM_GetShiftState [14:49:17]SAM_PROTO_GetShiftState [14:49:17]wFMCommunicate request_size=4 [14:49:17]MH_SAM_APDU [14:49:17]CAPDU: 80 13 01 00 [14:49:17]Write to MH i2c: E2 08 00 7C 03 80 13 01 00 00 00 00 00 FC [14:49:17]Write i2c OK [14:49:17]MH_I2C_Read... [14:49:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:17]Read from MH i2c: E2 [14:49:17]MH_I2C_Read... [14:49:17]Read from MH i2c: E2 0E 00 [14:49:17]MH_I2C_Read... [14:49:17]Read from MH i2c: E2 0E 00 7C 03 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 23 [14:49:17]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:49:17]wFMCommunicate OK [14:49:17]SAM_PROTO_GetShiftState done [14:49:17]FM_GetShiftState done [14:49:17]req_shift_opened done [14:49:17]requested_item shift.open_date is exist - process it [14:49:17]req_shift_open_date [14:49:17]req_shift_open_date done [14:49:17]produce_requested_data done [14:49:17]produce_requested_data return {"fd.num":77073,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [14:49:17]process_action_free x_report [14:49:17]json_value_free [14:49:17]json_value_free done [14:49:17]process_json_proto returns [14:49:17]Send response to host [14:49:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":77073,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [14:49:17]free response buf [14:49:17]execute_script done [14:49:17]execute_script returns [14:49:17]free content buf [14:49:17]Sock 9.Close socket [14:49:17]Sock 9.Thread stoped [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:39]accept exits with 7 [14:49:39]New connection [14:49:39]New thread 3067350372 created [14:49:39]Thread 3067207012 joined [14:49:39]Waiting for new connection... [14:49:39] Sock 7.Parse request [14:49:39]Sock 7.Check first char [14:49:39]Sock 7.First char is OK [14:49:39]request: POST /json_proto HTTP/1.0 [14:49:39]Method: POST [14:49:39]URL: /json_proto [14:49:39]Method is POST - this is cgi request [14:49:39]url: /json_proto [14:49:39]query_string will be loaded in cgi processing [14:49:39]execute_cgi json_proto POST (null) [14:49:39]execute_cgi path=json_proto method=POST [14:49:39]POST find Content-Length [14:49:39]Host: 172.17.62.5:8080 [14:49:39]Content-Length: 215 [14:49:39]Content-Type: application/json [14:49:39] [14:49:39]POST finish read [14:49:39]Found Content-Length = 215 [14:49:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:39]execute_script... [14:49:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:39]POST & json_proto [14:49:39]process_json_proto [14:49:39]json parsed OK: [14:49:39]protocol is kg_v1.0 [14:49:39]action value=get_value [14:49:39]process_action get_value [14:49:39]cmd_get_value [14:49:39]process_action get_value done [14:49:39]requested_data is exist [14:49:39]produce_requested_data [14:49:39]requested_item kkm.sn is exist - process it [14:49:39]requested_item kkm.ver is exist - process it [14:49:39]requested_item fm.sn is exist - process it [14:49:39]wFMCommunicate request_size=4 [14:49:39]MH_SAM_APDU [14:49:39]CAPDU: 80 11 00 00 [14:49:39]Write to MH i2c: E2 08 00 7D 03 80 11 00 00 00 00 00 00 FA [14:49:39]Write i2c OK [14:49:39]MH_I2C_Read... [14:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:39]Read from MH i2c: E2 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: E2 17 00 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: E2 17 00 7D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 4D [14:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:49:39]wFMCommunicate OK [14:49:39]requested_item fd.num is exist - process it [14:49:39]SAM_PROTO_GetFieldsCounters [14:49:39]wFMCommunicate request_size=4 [14:49:39]MH_SAM_APDU [14:49:39]CAPDU: 80 13 00 00 [14:49:39]Write to MH i2c: E2 08 00 7E 03 80 13 00 00 00 00 00 00 FD [14:49:39]Write i2c OK [14:49:39]MH_I2C_Read... [14:49:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:39]Read from MH i2c: E2 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: E2 62 00 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: E2 62 00 7E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 11 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [14:49:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 11 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:39]wFMCommunicate OK [14:49:39]SAM_PROTO_GetFieldsCounters done [14:49:39]requested_item shift.num is exist - process it [14:49:39]requested_item shift.opened is exist - process it [14:49:39]req_shift_opened [14:49:39]FM_GetShiftState [14:49:39]SAM_PROTO_GetShiftState [14:49:39]wFMCommunicate request_size=4 [14:49:39]MH_SAM_APDU [14:49:39]CAPDU: 80 13 01 00 [14:49:39]Write to MH i2c: E2 08 00 7F 03 80 13 01 00 00 00 00 00 FF [14:49:39]Write i2c OK [14:49:39]MH_I2C_Read... [14:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:39]Read from MH i2c: E2 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: E2 0E 00 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: E2 0E 00 7F 03 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 26 [14:49:39]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:49:39]wFMCommunicate OK [14:49:39]SAM_PROTO_GetShiftState done [14:49:39]FM_GetShiftState done [14:49:39]req_shift_opened done [14:49:39]requested_item shift.open_date is exist - process it [14:49:39]req_shift_open_date [14:49:39]req_shift_open_date done [14:49:39]produce_requested_data done [14:49:39]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":77073,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124} [14:49:40]process_action_free get_value [14:49:40]json_value_free [14:49:40]json_value_free done [14:49:40]process_json_proto returns [14:49:40]Send response to host [14:49:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":77073,"shift.num":373,"shift.opened":1,"shift.open_date":1713745124}}} [14:49:40]free response buf [14:49:40]execute_script done [14:49:40]execute_script returns [14:49:40]free content buf [14:49:40]Sock 7.Close socket [14:49:40]Sock 7.Thread stoped [14:49:40]accept exits with 10 [14:49:40]New connection [14:49:40]New thread 3067207012 created [14:49:40]Thread 3067350372 joined [14:49:40]Waiting for new connection... [14:49:40] Sock 10.Parse request [14:49:40]Sock 10.Check first char [14:49:40]Sock 10.First char is OK [14:49:40]request: POST /json_proto HTTP/1.0 [14:49:40]Method: POST [14:49:40]URL: /json_proto [14:49:40]Method is POST - this is cgi request [14:49:40]url: /json_proto [14:49:40]query_string will be loaded in cgi processing [14:49:40]execute_cgi json_proto POST (null) [14:49:40]execute_cgi path=json_proto method=POST [14:49:40]POST find Content-Length [14:49:40]Host: 172.17.62.5:8080 [14:49:40]Content-Length: 331 [14:49:40]Content-Type: application/json [14:49:40] [14:49:40]POST finish read [14:49:40]Found Content-Length = 331 [14:49:40]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" ] } } [14:49:40]execute_script... [14:49:40]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" ] } } [14:49:40]POST & json_proto [14:49:40]process_json_proto [14:49:40]json parsed OK: [14:49:40]protocol is kg_v1.0 [14:49:40]action value=get_value [14:49:40]process_action get_value [14:49:40]cmd_get_value [14:49:40]process_action get_value done [14:49:40]requested_data is exist [14:49:40]produce_requested_data [14:49:40]requested_item fm.sale.total is exist - process it [14:49:40]SAM_PROTO_GetFMData [14:49:40]wFMCommunicate request_size=4 [14:49:40]MH_SAM_APDU [14:49:40]CAPDU: 80 13 03 00 [14:49:40]Write to MH i2c: E2 08 00 80 03 80 13 03 00 00 00 00 00 02 [14:49:40]Write i2c OK [14:49:40]MH_I2C_Read... [14:49:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:49:40]Read from MH i2c: E2 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 FD 00 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 FD 00 80 03 00 C8 04 85 04 C4 04 6E 04 04 00 27 2A 01 00 69 04 A3 00 6F 04 04 00 33 28 01 00 B1 04 05 00 EF C7 7F BC 02 70 04 05 00 EC 92 42 78 02 72 04 04 00 03 35 3D 44 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 40 57 66 4A 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 0C 21 33 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F4 01 00 00 B1 04 05 00 74 B9 FC 15 01 70 04 05 00 74 B9 FC 15 01 72 04 00 00 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 14 56 85 1D EF 90 00 E6 [14:49:40]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 27 2A 01 00 69 04 A3 00 6F 04 04 00 33 28 01 00 B1 04 05 00 EF C7 7F BC 02 70 04 05 00 EC 92 42 78 02 72 04 04 00 03 35 3D 44 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 40 57 66 4A 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 0C 21 33 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F4 01 00 00 B1 04 05 00 74 B9 FC 15 01 70 04 05 00 74 B9 FC 15 01 72 04 00 00 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 14 56 85 1D EF 90 00 [14:49:40]wFMCommunicate OK [14:49:40]wFMCommunicate request_size=4 [14:49:40]MH_SAM_APDU [14:49:40]CAPDU: 80 17 00 00 [14:49:40]Write to MH i2c: E2 08 00 81 03 80 17 00 00 00 00 00 00 04 [14:49:40]Write i2c OK [14:49:40]MH_I2C_Read... [14:49:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:40]Read from MH i2c: E2 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 FD 00 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 FD 00 81 03 00 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 10 C7 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 61 [14:49:40]RAPDU: 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 10 C7 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [14:49:40]wFMCommunicate OK [14:49:40]wFMCommunicate request_size=4 [14:49:40]MH_SAM_APDU [14:49:40]CAPDU: 80 17 00 00 [14:49:40]Write to MH i2c: E2 08 00 82 03 80 17 00 00 00 00 00 00 05 [14:49:40]Write i2c OK [14:49:40]MH_I2C_Read... [14:49:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:41]Read from MH i2c: E2 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 FD 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 FD 00 82 03 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 DD [14:49:41]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [14:49:41]wFMCommunicate OK [14:49:41]wFMCommunicate request_size=4 [14:49:41]MH_SAM_APDU [14:49:41]CAPDU: 80 17 00 00 [14:49:41]Write to MH i2c: E2 08 00 83 03 80 17 00 00 00 00 00 00 06 [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:41]Read from MH i2c: E2 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 FD 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: E2 FD 00 83 03 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 7E [14:49:41]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [14:49:41]wFMCommunicate OK [14:49:41]wFMCommunicate request_size=4 [14:49:41]MH_SAM_APDU [14:49:41]CAPDU: 80 17 00 00 [14:49:41]Write to MH i2c: E2 08 00 84 03 80 17 00 00 00 00 00 00 07 [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [14:49:42]Read from MH i2c: E2 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 E5 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 E5 00 84 03 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EB [14:49:42]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:49:42]wFMCommunicate OK [14:49:42]SAM_PROTO_GetFMData done [14:49:42]requested_item fm.sale_refund.total is exist - process it [14:49:42]requested_item fm.buy.total is exist - process it [14:49:42]requested_item shift.sale.total is exist - process it [14:49:42]SAM_PROTO_GetShiftData [14:49:42]wFMCommunicate request_size=4 [14:49:42]MH_SAM_APDU [14:49:42]CAPDU: 80 13 02 00 [14:49:42]Write to MH i2c: E2 08 00 85 03 80 13 02 00 00 00 00 00 06 [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:49:42]Read from MH i2c: E2 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 FD 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 FD 00 85 03 00 BA 04 AA 04 B6 04 6E 04 04 00 5C 00 00 00 69 04 9C 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 E8 72 AF 70 04 03 00 8C C9 8B 72 04 03 00 5C A9 23 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 97 A2 12 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 85 8D 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 01 00 00 00 B1 04 03 00 80 84 1E 70 04 03 00 80 84 1E 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 A7 3D 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 64 [14:49:42]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 5C 00 00 00 69 04 9C 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 E8 72 AF 70 04 03 00 8C C9 8B 72 04 03 00 5C A9 23 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 97 A2 12 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 85 8D 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 01 00 00 00 B1 04 03 00 80 84 1E 70 04 03 00 80 84 1E 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 A7 3D 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [14:49:42]wFMCommunicate OK [14:49:42]wFMCommunicate request_size=4 [14:49:42]MH_SAM_APDU [14:49:42]CAPDU: 80 17 00 00 [14:49:42]Write to MH i2c: E2 08 00 86 03 80 17 00 00 00 00 00 00 09 [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:43]Read from MH i2c: E2 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: E2 FD 00 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: E2 FD 00 86 03 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 23 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 1B [14:49:43]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 23 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [14:49:43]wFMCommunicate OK [14:49:43]wFMCommunicate request_size=4 [14:49:43]MH_SAM_APDU [14:49:43]CAPDU: 80 17 00 00 [14:49:43]Write to MH i2c: E2 08 00 87 03 80 17 00 00 00 00 00 00 0A [14:49:43]Write i2c OK [14:49:43]MH_I2C_Read... [14:49:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:43]Read from MH i2c: E2 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: E2 FD 00 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: E2 FD 00 87 03 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 36 [14:49:43]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [14:49:43]wFMCommunicate OK [14:49:43]wFMCommunicate request_size=4 [14:49:43]MH_SAM_APDU [14:49:43]CAPDU: 80 17 00 00 [14:49:43]Write to MH i2c: E2 08 00 88 03 80 17 00 00 00 00 00 00 0B [14:49:43]Write i2c OK [14:49:43]MH_I2C_Read... [14:49:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:44]Read from MH i2c: E2 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 FD 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 FD 00 88 03 00 00 EF 03 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 90 00 83 [14:49:44]RAPDU: 00 EF 03 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 90 00 [14:49:44]wFMCommunicate OK [14:49:44]wFMCommunicate request_size=4 [14:49:44]MH_SAM_APDU [14:49:44]CAPDU: 80 17 00 00 [14:49:44]Write to MH i2c: E2 08 00 89 03 80 17 00 00 00 00 00 00 0C [14:49:44]Write i2c OK [14:49:44]MH_I2C_Read... [14:49:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [14:49:44]Read from MH i2c: E2 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 D7 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 D7 00 89 03 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EF [14:49:44]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 OFD Sender: No OFD packet to send [14:49:44]01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:49:44]wFMCommunicate OK [14:49:44]SAM_PROTO_GetShiftData done [14:49:44]requested_item shift.sale.total_cash is exist - process it [14:49:44]requested_item shift.sale_refund.total is exist - process it [14:49:44]requested_item shift.sale_refund.total_cash is exist - process it [14:49:44]requested_item shift.buy.total is exist - process it [14:49:44]requested_item shift.buy.total_cash is exist - process it [14:49:44]produce_requested_data done [14:49:44]produce_requested_data return {"fm.sale.total":117524254.55,"fm.sale_refund.total":46638513.80,"fm.buy.total":0.00,"shift.sale.total":114982.16,"shift.sale.total_cash":91611.00,"shift.sale_refund.total":20000.00,"shift.sale_refund.total_cash":20000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:49:44]process_action_free get_value [14:49:44]json_value_free [14:49:44]json_value_free done [14:49:44]process_json_proto returns [14:49:44]Send response to host [14:49:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117524254.55,"fm.sale_refund.total":46638513.80,"fm.buy.total":0.00,"shift.sale.total":114982.16,"shift.sale.total_cash":91611.00,"shift.sale_refund.total":20000.00,"shift.sale_refund.total_cash":20000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:49:44]free response buf [14:49:44]execute_script done [14:49:44]execute_script returns [14:49:44]free content buf [14:49:44]Sock 10.Close socket [14:49:44]Sock 10.Thread stoped [14:49:44]accept exits with 7 [14:49:44]New connection [14:49:44]New thread 3067350372 created [14:49:44]Thread 3067207012 joined [14:49:44]Waiting for new connection... [14:49:44] Sock 7.Parse request [14:49:44]Sock 7.Check first char [14:49:44]Sock 7.First char is OK [14:49:44]request: POST /json_proto HTTP/1.0 [14:49:44]Method: POST [14:49:44]URL: /json_proto [14:49:44]Method is POST - this is cgi request [14:49:44]url: /json_proto [14:49:44]query_string will be loaded in cgi processing [14:49:44]execute_cgi json_proto POST (null) [14:49:44]execute_cgi path=json_proto method=POST [14:49:44]POST find Content-Length [14:49:44]Host: 172.17.62.5:8080 [14:49:44]Content-Length: 331 [14:49:44]Content-Type: application/json [14:49:44] [14:49:44]POST finish read [14:49:44]Found Content-Length = 331 [14:49:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:49:44]execute_script... [14:49:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:49:44]POST & json_proto [14:49:44]process_json_proto [14:49:44]json parsed OK: [14:49:44]protocol is kg_v1.0 [14:49:44]action value=get_value [14:49:44]process_action get_value [14:49:44]cmd_get_value [14:49:44]process_action get_value done [14:49:44]requested_data is exist [14:49:44]produce_requested_data [14:49:44]requested_item fm.sale.total is exist - process it [14:49:44]SAM_PROTO_GetFMData [14:49:44]wFMCommunicate request_size=4 [14:49:44]MH_SAM_APDU [14:49:44]CAPDU: 80 13 03 00 [14:49:44]Write to MH i2c: E2 08 00 8A 03 80 13 03 00 00 00 00 00 0C [14:49:44]Write i2c OK [14:49:44]MH_I2C_Read... [14:49:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:49:45]Read from MH i2c: E2 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 FD 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 FD 00 8A 03 00 C8 04 85 04 C4 04 6E 04 04 00 27 2A 01 00 69 04 A3 00 6F 04 04 00 33 28 01 00 B1 04 05 00 EF C7 7F BC 02 70 04 05 00 EC 92 42 78 02 72 04 04 00 03 35 3D 44 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 40 57 66 4A 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 0C 21 33 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F4 01 00 00 B1 04 05 00 74 B9 FC 15 01 70 04 05 00 74 B9 FC 15 01 72 04 00 00 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 14 56 85 1D EF 90 00 F0 [14:49:45]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 27 2A 01 00 69 04 A3 00 6F 04 04 00 33 28 01 00 B1 04 05 00 EF C7 7F BC 02 70 04 05 00 EC 92 42 78 02 72 04 04 00 03 35 3D 44 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 40 57 66 4A 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 0C 21 33 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F4 01 00 00 B1 04 05 00 74 B9 FC 15 01 70 04 05 00 74 B9 FC 15 01 72 04 00 00 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 14 56 85 1D EF 90 00 [14:49:45]wFMCommunicate OK [14:49:45]wFMCommunicate request_size=4 [14:49:45]MH_SAM_APDU [14:49:45]CAPDU: 80 17 00 00 [14:49:45]Write to MH i2c: E2 08 00 8B 03 80 17 00 00 00 00 00 00 0E [14:49:45]Write i2c OK [14:49:45]MH_I2C_Read... [14:49:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:45]Read from MH i2c: E2 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 FD 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 FD 00 8B 03 00 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 10 C7 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 6B [14:49:46]RAPDU: 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 10 C7 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [14:49:46]wFMCommunicate OK [14:49:46]wFMCommunicate request_size=4 [14:49:46]MH_SAM_APDU [14:49:46]CAPDU: 80 17 00 00 [14:49:46]Write to MH i2c: E2 08 00 8C 03 80 17 00 00 00 00 00 00 0F [14:49:46]Write i2c OK [14:49:46]MH_I2C_Read... [14:49:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:46]Read from MH i2c: E2 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: E2 FD 00 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: E2 FD 00 8C 03 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 E7 [14:49:46]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [14:49:46]wFMCommunicate OK [14:49:46]wFMCommunicate request_size=4 [14:49:46]MH_SAM_APDU [14:49:46]CAPDU: 80 17 00 00 [14:49:46]Write to MH i2c: E2 08 00 8D 03 80 17 00 00 00 00 00 00 10 [14:49:46]Write i2c OK [14:49:46]MH_I2C_Read... [14:49:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:46]Read from MH i2c: E2 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: E2 FD 00 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: E2 FD 00 8D 03 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 88 [14:49:47]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [14:49:47]wFMCommunicate OK [14:49:47]wFMCommunicate request_size=4 [14:49:47]MH_SAM_APDU [14:49:47]CAPDU: 80 17 00 00 [14:49:47]Write to MH i2c: E2 08 00 8E 03 80 17 00 00 00 00 00 00 11 [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [14:49:47]Read from MH i2c: E2 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 E5 00 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: E2 E5 00 8E 03 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F5 [14:49:47]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:49:47]wFMCommunicate OK [14:49:47]SAM_PROTO_GetFMData done [14:49:47]requested_item fm.sale_refund.total is exist - process it [14:49:47]requested_item fm.buy.total is exist - process it [14:49:47]requested_item shift.sale.total is exist - process it [14:49:47]SAM_PROTO_GetShiftData [14:49:47]wFMCommunicate request_size=4 [14:49:47]MH_SAM_APDU [14:49:47]CAPDU: 80 13 02 00 [14:49:47]Write to MH i2c: E2 08 00 8F 03 80 13 02 00 00 00 00 00 10 [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:49:48]Read from MH i2c: E2 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 FD 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 FD 00 8F 03 00 BA 04 AA 04 B6 04 6E 04 04 00 5C 00 00 00 69 04 9C 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 E8 72 AF 70 04 03 00 8C C9 8B 72 04 03 00 5C A9 23 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 97 A2 12 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 85 8D 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 01 00 00 00 B1 04 03 00 80 84 1E 70 04 03 00 80 84 1E 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 A7 3D 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 6E [14:49:48]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 5C 00 00 00 69 04 9C 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 E8 72 AF 70 04 03 00 8C C9 8B 72 04 03 00 5C A9 23 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 97 A2 12 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 85 8D 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 01 00 00 00 B1 04 03 00 80 84 1E 70 04 03 00 80 84 1E 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 A7 3D 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [14:49:48]wFMCommunicate OK [14:49:48]wFMCommunicate request_size=4 [14:49:48]MH_SAM_APDU [14:49:48]CAPDU: 80 17 00 00 [14:49:48]Write to MH i2c: E2 08 00 90 03 80 17 00 00 00 00 00 00 13 [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:48]Read from MH i2c: E2 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 FD 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 FD 00 90 03 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 23 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 25 [14:49:48]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 23 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [14:49:49]wFMCommunicate OK [14:49:49]wFMCommunicate request_size=4 [14:49:49]MH_SAM_APDU [14:49:49]CAPDU: 80 17 00 00 [14:49:49]Write to MH i2c: E2 08 00 91 03 80 17 00 00 00 00 00 00 14 [14:49:49]Write i2c OK [14:49:49]MH_I2C_Read... [14:49:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:49]Read from MH i2c: E2 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: E2 FD 00 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: E2 FD 00 91 03 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 40 [14:49:49]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [14:49:49]wFMCommunicate OK [14:49:49]wFMCommunicate request_size=4 [14:49:49]MH_SAM_APDU [14:49:49]CAPDU: 80 17 00 00 [14:49:49]Write to MH i2c: E2 08 00 92 03 80 17 00 00 00 00 00 00 15 [14:49:49]Write i2c OK [14:49:49]MH_I2C_Read... [14:49:49]OFD Sender: No OFD packet to send [14:49:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:49]Read from MH i2c: E2 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: E2 FD 00 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: E2 FD 00 92 03 00 00 EF 03 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 90 00 8D [14:49:50]RAPDU: 00 EF 03 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 90 00 [14:49:50]wFMCommunicate OK [14:49:50]wFMCommunicate request_size=4 [14:49:50]MH_SAM_APDU [14:49:50]CAPDU: 80 17 00 00 [14:49:50]Write to MH i2c: E2 08 00 93 03 80 17 00 00 00 00 00 00 16 [14:49:50]Write i2c OK [14:49:50]MH_I2C_Read... [14:49:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [14:49:50]Read from MH i2c: E2 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: E2 D7 00 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: E2 D7 00 93 03 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F9 [14:49:50]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:49:50]wFMCommunicate OK [14:49:50]SAM_PROTO_GetShiftData done [14:49:50]requested_item shift.sale.total_cash is exist - process it [14:49:50]requested_item shift.sale_refund.total is exist - process it [14:49:50]requested_item shift.sale_refund.total_cash is exist - process it [14:49:50]requested_item shift.buy.total is exist - process it [14:49:50]requested_item shift.buy.total_cash is exist - process it [14:49:50]produce_requested_data done [14:49:50]produce_requested_data return {"fm.sale.total":117524254.55,"fm.sale_refund.total":46638513.80,"fm.buy.total":0.00,"shift.sale.total":114982.16,"shift.sale.total_cash":91611.00,"shift.sale_refund.total":20000.00,"shift.sale_refund.total_cash":20000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:49:50]process_action_free get_value [14:49:50]json_value_free [14:49:50]json_value_free done [14:49:50]process_json_proto returns [14:49:50]Send response to host [14:49:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117524254.55,"fm.sale_refund.total":46638513.80,"fm.buy.total":0.00,"shift.sale.total":114982.16,"shift.sale.total_cash":91611.00,"shift.sale_refund.total":20000.00,"shift.sale_refund.total_cash":20000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:49:50]free response buf [14:49:50]execute_script done [14:49:50]execute_script returns [14:49:50]free content buf [14:49:50]Sock 7.Close socket [14:49:50]Sock 7.Thread stoped [14:49:50]accept exits with 9 [14:49:50]New connection [14:49:50]New thread 3067207012 created [14:49:50]Thread 3067350372 joined [14:49:50]Waiting for new connection... [14:49:50] Sock 9.Parse request [14:49:50]Sock 9.Check first char [14:49:50]Sock 9.First char is OK [14:49:50]request: POST /json_proto HTTP/1.0 [14:49:50]Method: POST [14:49:50]URL: /json_proto [14:49:50]Method is POST - this is cgi request [14:49:50]url: /json_proto [14:49:50]query_string will be loaded in cgi processing [14:49:50]execute_cgi json_proto POST (null) [14:49:50]execute_cgi path=json_proto method=POST [14:49:50]POST find Content-Length [14:49:50]Host: 172.17.62.5:8080 [14:49:50]Content-Length: 278 [14:49:50]Content-Type: application/json [14:49:50] [14:49:50]POST finish read [14:49:50]Found Content-Length = 278 [14:49:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:50]execute_script... [14:49:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0430\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:50]POST & json_proto [14:49:50]process_json_proto [14:49:50]json parsed OK: [14:49:50]protocol is kg_v1.0 [14:49:50]action value=close_shift [14:49:50]process_action close_shift [14:49:50]cmd_close_shift [14:49:50]MH_GetDate [14:49:50]Write to MH i2c: F0 00 00 94 03 86 [14:49:50]Write i2c OK [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: F0 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: F0 09 00 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: F0 09 00 94 03 00 0F 79 26 66 F4 E9 65 64 49 [14:49:50]GetLastDocTimeStamp 1713797347 [14:49:50]current date 1713797391 [14:49:50]FM_GetShiftState [14:49:50]SAM_PROTO_GetShiftState [14:49:50]wFMCommunicate request_size=4 [14:49:50]MH_SAM_APDU [14:49:50]CAPDU: 80 13 01 00 [14:49:50]Write to MH i2c: E2 08 00 95 03 80 13 01 00 00 00 00 00 15 [14:49:50]Write i2c OK [14:49:50]MH_I2C_Read... [14:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:50]Read from MH i2c: E2 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: E2 0E 00 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: E2 0E 00 95 03 00 09 00 01 E4 AC 25 66 00 00 00 00 90 00 3C [14:49:50]RAPDU: 09 00 01 E4 AC 25 66 00 00 00 00 90 00 [14:49:50]wFMCommunicate OK [14:49:50]SAM_PROTO_GetShiftState done [14:49:50]FM_GetShiftState done [14:49:50]KKMCreateCloseShiftDocument [14:49:50]Load OK [14:49:50]Malloc new data [14:49:50]MH_GetDate [14:49:50]Write to MH i2c: F0 00 00 96 03 88 [14:49:50]Write i2c OK [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: F0 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: F0 09 00 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: F0 09 00 96 03 00 0F 79 26 66 F4 E9 65 64 4B [14:49:50]Malloc new data [14:49:50]Malloc new data [14:49:50]Malloc new data [14:49:50]Malloc new data [14:49:50]KKMCreateCloseShiftDocument OK [14:49:50]KKMSetCloseShiftData OK [14:49:50]ProcessDocumentItem done err = 0, tmpTLVsize=77 [14:49:50]tlvbuf is 01993750 [14:49:50]KKMLoadAndSignCloseShiftData [14:49:50]SAM_PROTO_ProcessDocument [14:49:50]wFMCommunicate request_size=9 [14:49:50]MH_SAM_APDU [14:49:50]CAPDU: 80 15 01 00 04 05 00 4D 00 [14:49:50]Write to MH i2c: E2 0C 00 97 03 80 15 01 00 04 00 05 00 4D 00 00 00 73 [14:49:51]Write i2c OK [14:49:51]MH_I2C_Read... [14:49:51]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [14:49:51]Read from MH i2c: E2 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 03 00 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 03 00 97 03 00 90 00 0E [14:49:51]RAPDU: 90 00 [14:49:51]wFMCommunicate OK [14:49:51]wFMCommunicate request_size=23 [14:49:51]MH_SAM_APDU [14:49:51]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [14:49:51]Write to MH i2c: E2 1A 00 98 03 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 10 [14:49:51]Write i2c OK [14:49:51]MH_I2C_Read... [14:49:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:49:51]Read from MH i2c: E2 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 03 00 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 03 00 98 03 00 90 00 0F [14:49:51]RAPDU: 90 00 [14:49:51]wFMCommunicate OK [14:49:51]wFMCommunicate request_size=36 [14:49:51]MH_SAM_APDU [14:49:51]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 [14:49:51]Write to MH i2c: E2 27 00 99 03 80 15 02 00 1F 00 FD 03 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 00 00 94 [14:49:51]Write i2c OK [14:49:51]MH_I2C_Read... [14:49:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:49:51]Read from MH i2c: E2 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 03 00 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 03 00 99 03 00 90 00 10 [14:49:51]RAPDU: 90 00 [14:49:51]wFMCommunicate OK [14:49:51]wFMCommunicate request_size=13 [14:49:51]MH_SAM_APDU [14:49:51]CAPDU: 80 15 02 00 08 F4 03 04 00 0F 79 26 66 [14:49:51]Write to MH i2c: E2 10 00 9A 03 80 15 02 00 08 00 F4 03 04 00 0F 79 26 66 00 00 3C [14:49:51]Write i2c OK [14:49:51]MH_I2C_Read... [14:49:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:49:51]Read from MH i2c: E2 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 03 00 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 03 00 9A 03 00 90 00 11 [14:49:51]RAPDU: 90 00 [14:49:51]wFMCommunicate OK [14:49:51]wFMCommunicate request_size=25 [14:49:51]MH_SAM_APDU [14:49:51]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 [14:49:51]Write to MH i2c: E2 1C 00 9B 03 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 00 00 80 [14:49:51]Write i2c OK [14:49:51]MH_I2C_Read... [14:49:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:49:51]Read from MH i2c: E2 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 03 00 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 03 00 9B 03 00 90 00 12 [14:49:51]RAPDU: 90 00 [14:49:51]wFMCommunicate OK [14:49:51]wFMCommunicate request_size=4 [14:49:51]MH_SAM_APDU [14:49:51]CAPDU: 80 15 03 00 [14:49:51]Write to MH i2c: E2 08 00 9C 03 80 15 03 00 00 00 00 00 20 [14:49:51]Write i2c OK [14:49:51]MH_I2C_Read... [14:49:52]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [14:49:52]Read from MH i2c: E2 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: E2 FD 00 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: E2 FD 00 9C 03 00 FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 12 2D 01 00 0E 04 04 00 75 01 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5E 00 00 00 AA 04 B6 04 6E 04 04 00 5C 00 00 00 69 04 9C 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 E8 72 AF 70 04 03 00 8C C9 8B 72 04 03 00 5C A9 23 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 97 A2 12 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 85 8D 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 01 00 00 00 B1 04 03 00 80 84 1E 90 00 EF [14:49:52]RAPDU: FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 12 2D 01 00 0E 04 04 00 75 01 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5E 00 00 00 AA 04 B6 04 6E 04 04 00 5C 00 00 00 69 04 9C 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 E8 72 AF 70 04 03 00 8C C9 8B 72 04 03 00 5C A9 23 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 97 A2 12 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 85 8D 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 01 00 00 00 B1 04 03 00 80 84 1E 90 00 [14:49:52]wFMCommunicate OK [14:49:52]SAM_PROTO_ProcessDocument answer len = 1277 [14:49:52]SAM_PROTO_ProcessDocument remain to read = 1029 [14:49:52]wFMCommunicate request_size=4 [14:49:52]MH_SAM_APDU [14:49:52]CAPDU: 80 17 00 00 [14:49:52]Write to MH i2c: E2 08 00 9D 03 80 17 00 00 00 00 00 00 20 [14:49:52]Write i2c OK [14:49:52]MH_I2C_Read... [14:49:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:52]Read from MH i2c: E2 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: E2 FD 00 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: E2 FD 00 9D 03 00 70 04 03 00 80 84 1E 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 A7 3D 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 23 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 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 6E [14:49:52]RAPDU: 70 04 03 00 80 84 1E 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 A7 3D 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 23 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 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 [14:49:52]wFMCommunicate OK [14:49:52]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [14:49:52]SAM_PROTO_ProcessDocument remain to read = 779 [14:49:52]wFMCommunicate request_size=4 [14:49:52]MH_SAM_APDU [14:49:52]CAPDU: 80 17 00 00 [14:49:52]Write to MH i2c: E2 08 00 9E 03 80 17 00 00 00 00 00 00 21 [14:49:52]Write i2c OK [14:49:52]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:53]Read from MH i2c: E2 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 FD 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 FD 00 9E 03 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 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 90 00 87 [14:49: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 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 90 00 [14:49:53]wFMCommunicate OK [14:49:53]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [14:49:53]SAM_PROTO_ProcessDocument remain to read = 529 [14:49:53]wFMCommunicate request_size=4 [14:49:53]MH_SAM_APDU [14:49:53]CAPDU: 80 17 00 00 [14:49:53]Write to MH i2c: E2 08 00 9F 03 80 17 00 00 00 00 00 00 22 [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:53]Read from MH i2c: E2 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 FD 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 FD 00 9F 03 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 90 00 31 [14:49:53]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:49:54]wFMCommunicate OK [14:49:54]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [14:49:54]SAM_PROTO_ProcessDocument remain to read = 279 [14:49:54]wFMCommunicate request_size=4 [14:49:54]MH_SAM_APDU [14:49:54]CAPDU: 80 17 00 00 [14:49:54]Write to MH i2c: E2 08 00 A0 03 80 17 00 00 00 00 00 00 23 [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:54]Read from MH i2c: E2 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 FD 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 FD 00 A0 03 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 61 [14:49:54]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [14:49:54]wFMCommunicate OK [14:49:54]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [14:49:54]SAM_PROTO_ProcessDocument remain to read = 29 [14:49:54]wFMCommunicate request_size=4 [14:49:54]MH_SAM_APDU [14:49:54]CAPDU: 80 17 00 00 [14:49:54]Write to MH i2c: E2 08 00 A1 03 80 17 00 00 00 00 00 00 24 [14:49:54]Write i2c OK [14:49:54]MH_I2C_Read... [14:49:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 29! [14:49:54]OFD Sender: No OFD packet to send [14:49:54]Read from MH i2c: E2 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 20 00 [14:49:54]MH_I2C_Read... [14:49:54]Read from MH i2c: E2 20 00 A1 03 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 B3 B2 A1 86 51 0A 90 00 4F [14:49:54]RAPDU: 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 B3 B2 A1 86 51 0A 90 00 [14:49:54]wFMCommunicate OK [14:49:54]SAM_PROTO_ProcessDocument received (without SW) 29 bytes [14:49:54]SAM_PROTO_ProcessDocument done [14:49:54]1209 (1) - 1.0 - номер версии ФФД [14:49:54]1041 (16) - 0000000000874652 - номер ФМ [14:49:54]1040 (4) - 77074 - номер ФД [14:49:54]1038 (4) - 373 - номер смены [14:49:54]1118 (4) - 92 - количество кассовых чеков за смену [14:49:54]1111 (4) - 94 - общее количество ФД за смену [14:49:54]1194 (1206) - счетчики итогов смены [14:49:54] 1134 (4) - 92 - количество чеков со всеми признаками расчетов [14:49:54] 1129 (156) - счетчики операций «приход» [14:49:54] 1135 (4) - 91 - количество чеков по признаку расчетов [14:49:54] 1201 (3) - 114982.16 - общая итоговая сумма в чеках [14:49:54] 1136 (3) - 91611.00 - итоговая сумма в чеках наличными [14:49:54] 1138 (3) - 23371.16 - итоговая сумма в чеках безналичными [14:49:54] 1024 (123) - суммы налогов [14:49:54] 1006 (9) - суммы НДС [14:49:54] 1010 (1) - 0% - код ставки НДС [14:49:54] 1011 (0) - 0.00 - сумма НДС по ставке [14:49:54] 1006 (12) - суммы НДС [14:49:54] 1010 (1) - 12% - код ставки НДС [14:49:54] 1011 (3) - 12212.71 - сумма НДС по ставке [14:49:54] 1007 (9) - суммы НСП [14:49:54] 1014 (1) - 0% - код ставки НСП [14:49:54] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:54] 1007 (12) - суммы НСП [14:49:54] 1014 (1) - 1% - код ставки НСП [14:49:54] 1015 (3) - 1017.65 - сумма НСП по ставке [14:49:54] 1007 (9) - суммы НСП [14:49:54] 1014 (1) - 2% - код ставки НСП [14:49:54] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:54] 1007 (9) - суммы НСП [14:49:54] 1014 (1) - 3% - код ставки НСП [14:49:54] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:54] 1007 (9) - суммы НСП [14:49:54] 1014 (1) - 5% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 0,50% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 1,50% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1130 (152) - счетчики операций «возврат прихода» [14:49:55] 1135 (4) - 1 - количество чеков по признаку расчетов [14:49:55] 1201 (3) - 20000.00 - общая итоговая сумма в чеках [14:49:55] 1136 (3) - 20000.00 - итоговая сумма в чеках наличными [14:49:55] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [14:49:55] 1024 (122) - суммы налогов [14:49:55] 1006 (9) - суммы НДС [14:49:55] 1010 (1) - 0% - код ставки НДС [14:49:55] 1011 (0) - 0.00 - сумма НДС по ставке [14:49:55] 1006 (12) - суммы НДС [14:49:55] 1010 (1) - 12% - код ставки НДС [14:49:55] 1011 (3) - 2123.91 - сумма НДС по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 0% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (11) - суммы НСП [14:49:55] 1014 (1) - 1% - код ставки НСП [14:49:55] 1015 (2) - 176.99 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 2% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 3% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 5% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 0,50% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 1,50% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1131 (141) - счетчики операций «расход» [14:49:55] 1135 (4) - 0 - количество чеков по признаку расчетов [14:49:55] 1201 (0) - 0.00 - общая итоговая сумма в чеках [14:49:55] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [14:49:55] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [14:49:55] 1024 (117) - суммы налогов [14:49:55] 1006 (9) - суммы НДС [14:49:55] 1010 (1) - 0% - код ставки НДС [14:49:55] 1011 (0) - 0.00 - сумма НДС по ставке [14:49:55] 1006 (9) - суммы НДС [14:49:55] 1010 (1) - 12% - код ставки НДС [14:49:55] 1011 (0) - 0.00 - сумма НДС по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 0% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 1% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 2% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 3% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 5% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 0,50% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 1,50% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1132 (141) - счетчики операций «возврат расхода» [14:49:55] 1135 (4) - 0 - количество чеков по признаку расчетов [14:49:55] 1201 (0) - 0.00 - общая итоговая сумма в чеках [14:49:55] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [14:49:55] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [14:49:55] 1024 (117) - суммы налогов [14:49:55] 1006 (9) - суммы НДС [14:49:55] 1010 (1) - 0% - код ставки НДС [14:49:55] 1011 (0) - 0.00 - сумма НДС по ставке [14:49:55] 1006 (9) - суммы НДС [14:49:55] 1010 (1) - 12% - код ставки НДС [14:49:55] 1011 (0) - 0.00 - сумма НДС по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 0% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 1% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 2% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 3% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 5% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 0,50% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1007 (9) - суммы НСП [14:49:55] 1014 (1) - 1,50% - код ставки НСП [14:49:55] 1015 (0) - 0.00 - сумма НСП по ставке [14:49:55] 1133 (588) - - счетчики коррекции - не используются [14:49:55]1077 (6) - 197579795484938 - ФПД [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1209 (04B9) [14:49:55]Malloc new data [14:49:55]Processing tag 1041 (0411) [14:49:55]Processing tag 1040 (0410) [14:49:55]Malloc new data [14:49:55]Processing tag 1038 (040E) [14:49:55]Malloc new data [14:49:55]Processing tag 1118 (045E) [14:49:55]Malloc new data [14:49:55]Processing tag 1111 (0457) [14:49:55]Malloc new data [14:49:55]Processing tag 1194 (04AA) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1134 (046E) [14:49:55]Malloc new data [14:49:55]Processing tag 1129 (0469) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1135 (046F) [14:49:55]Malloc new data [14:49:55]Processing tag 1201 (04B1) [14:49:55]Malloc new data [14:49:55]Processing tag 1136 (0470) [14:49:55]Malloc new data [14:49:55]Processing tag 1138 (0472) [14:49:55]Malloc new data [14:49:55]Processing tag 1024 (0400) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1006 (03EE) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1010 (03F2) [14:49:55]Malloc new data [14:49:55]Processing tag 1011 (03F3) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1006 (03EE) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1010 (03F2) [14:49:55]Malloc new data [14:49:55]Processing tag 1011 (03F3) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]SetTLVBufToDocument err=0 [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1130 (046A) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1135 (046F) [14:49:55]Malloc new data [14:49:55]Processing tag 1201 (04B1) [14:49:55]Malloc new data [14:49:55]Processing tag 1136 (0470) [14:49:55]Malloc new data [14:49:55]Processing tag 1138 (0472) [14:49:55]Malloc new data [14:49:55]Processing tag 1024 (0400) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1006 (03EE) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1010 (03F2) [14:49:55]Malloc new data [14:49:55]Processing tag 1011 (03F3) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1006 (03EE) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1010 (03F2) [14:49:55]Malloc new data [14:49:55]Processing tag 1011 (03F3) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]SetTLVBufToDocument err=0 [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1131 (046B) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1135 (046F) [14:49:55]Malloc new data [14:49:55]Processing tag 1201 (04B1) [14:49:55]Malloc new data [14:49:55]Processing tag 1136 (0470) [14:49:55]Malloc new data [14:49:55]Processing tag 1138 (0472) [14:49:55]Malloc new data [14:49:55]Processing tag 1024 (0400) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1006 (03EE) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1010 (03F2) [14:49:55]Malloc new data [14:49:55]Processing tag 1011 (03F3) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1006 (03EE) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1010 (03F2) [14:49:55]Malloc new data [14:49:55]Processing tag 1011 (03F3) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]SetTLVBufToDocument err=0 [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1132 (046C) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1135 (046F) [14:49:55]Malloc new data [14:49:55]Processing tag 1201 (04B1) [14:49:55]Malloc new data [14:49:55]Processing tag 1136 (0470) [14:49:55]Malloc new data [14:49:55]Processing tag 1138 (0472) [14:49:55]Malloc new data [14:49:55]Processing tag 1024 (0400) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1006 (03EE) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1010 (03F2) [14:49:55]Malloc new data [14:49:55]Processing tag 1011 (03F3) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1006 (03EE) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1010 (03F2) [14:49:55]Malloc new data [14:49:55]Processing tag 1011 (03F3) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:55]SetTLVBufToDocument err=0 [14:49:55]Processing tag 1007 (03EF) [14:49:55]Load OK [14:49:55]SetTLVBufToDocument [14:49:55]Processing tag 1014 (03F6) [14:49:55]Malloc new data [14:49:55]Processing tag 1015 (03F7) [14:49:55]Malloc new data [14:49:56]SetTLVBufToDocument err=0 [14:49:56]Processing tag 1007 (03EF) [14:49:56]Load OK [14:49:56]SetTLVBufToDocument [14:49:56]Processing tag 1014 (03F6) [14:49:56]Malloc new data [14:49:56]Processing tag 1015 (03F7) [14:49:56]Malloc new data [14:49:56]SetTLVBufToDocument err=0 [14:49:56]Processing tag 1007 (03EF) [14:49:56]Load OK [14:49:56]SetTLVBufToDocument [14:49:56]Processing tag 1014 (03F6) [14:49:56]Malloc new data [14:49:56]Processing tag 1015 (03F7) [14:49:56]Malloc new data [14:49:56]SetTLVBufToDocument err=0 [14:49:56]Processing tag 1007 (03EF) [14:49:56]Load OK [14:49:56]SetTLVBufToDocument [14:49:56]Processing tag 1014 (03F6) [14:49:56]Malloc new data [14:49:56]Processing tag 1015 (03F7) [14:49:56]Malloc new data [14:49:56]SetTLVBufToDocument err=0 [14:49:56]Processing tag 1007 (03EF) [14:49:56]Load OK [14:49:56]SetTLVBufToDocument [14:49:56]Processing tag 1014 (03F6) [14:49:56]Malloc new data [14:49:56]Processing tag 1015 (03F7) [14:49:56]Malloc new data [14:49:56]SetTLVBufToDocument err=0 [14:49:56]Processing tag 1007 (03EF) [14:49:56]Load OK [14:49:56]SetTLVBufToDocument [14:49:56]Processing tag 1014 (03F6) [14:49:56]Malloc new data [14:49:56]Processing tag 1015 (03F7) [14:49:56]Malloc new data [14:49:56]SetTLVBufToDocument err=0 [14:49:56]SetTLVBufToDocument err=0 [14:49:56]SetTLVBufToDocument err=0 [14:49:56]Processing tag 1133 (046D) [14:49:56]Malloc new data [14:49:56]SetTLVBufToDocument err=0 [14:49:56]Processing tag 1077 (0435) [14:49:56]Malloc new data [14:49:56]SetTLVBufToDocument err=0 [14:49:56]Malloc new data [14:49:56]SAM_PROTO_GetFMData [14:49:56]wFMCommunicate request_size=4 [14:49:56]MH_SAM_APDU [14:49:56]CAPDU: 80 13 03 00 [14:49:56]Write to MH i2c: E2 08 00 A2 03 80 13 03 00 00 00 00 00 24 [14:49:56]Write i2c OK [14:49:56]MH_I2C_Read... [14:49:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:49:56]Read from MH i2c: E2 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 FD 00 [14:49:56]MH_I2C_Read... [14:49:56]Read from MH i2c: E2 FD 00 A2 03 00 C8 04 85 04 C4 04 6E 04 04 00 27 2A 01 00 69 04 A3 00 6F 04 04 00 33 28 01 00 B1 04 05 00 EF C7 7F BC 02 70 04 05 00 EC 92 42 78 02 72 04 04 00 03 35 3D 44 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 40 57 66 4A 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 0C 21 33 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F4 01 00 00 B1 04 05 00 74 B9 FC 15 01 70 04 05 00 74 B9 FC 15 01 72 04 00 00 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 14 56 85 1D EF 90 00 08 [14:49:56]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 27 2A 01 00 69 04 A3 00 6F 04 04 00 33 28 01 00 B1 04 05 00 EF C7 7F BC 02 70 04 05 00 EC 92 42 78 02 72 04 04 00 03 35 3D 44 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 40 57 66 4A 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 0C 21 33 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F4 01 00 00 B1 04 05 00 74 B9 FC 15 01 70 04 05 00 74 B9 FC 15 01 72 04 00 00 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 14 56 85 1D EF 90 00 [14:49:56]wFMCommunicate OK [14:49:56]wFMCommunicate request_size=4 [14:49:56]MH_SAM_APDU [14:49:56]CAPDU: 80 17 00 00 [14:49:56]Write to MH i2c: E2 08 00 A3 03 80 17 00 00 00 00 00 00 26 [14:49:56]Write i2c OK [14:49:56]MH_I2C_Read... [14:49:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:57]Read from MH i2c: E2 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: E2 FD 00 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: E2 FD 00 A3 03 00 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 10 C7 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 83 [14:49:57]RAPDU: 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 10 C7 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [14:49:57]wFMCommunicate OK [14:49:57]wFMCommunicate request_size=4 [14:49:57]MH_SAM_APDU [14:49:57]CAPDU: 80 17 00 00 [14:49:57]Write to MH i2c: E2 08 00 A4 03 80 17 00 00 00 00 00 00 27 [14:49:57]Write i2c OK [14:49:57]MH_I2C_Read... [14:49:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:57]Read from MH i2c: E2 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: E2 FD 00 [14:49:57]MH_I2C_Read... [14:49:57]Read from MH i2c: E2 FD 00 A4 03 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 FF [14:49:58]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [14:49:58]wFMCommunicate OK [14:49:58]wFMCommunicate request_size=4 [14:49:58]MH_SAM_APDU [14:49:58]CAPDU: 80 17 00 00 [14:49:58]Write to MH i2c: E2 08 00 A5 03 80 17 00 00 00 00 00 00 28 [14:49:58]Write i2c OK [14:49:58]MH_I2C_Read... [14:49:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:49:58]Read from MH i2c: E2 [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: E2 FD 00 [14:49:58]MH_I2C_Read... [14:49:58]Read from MH i2c: E2 FD 00 A5 03 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 A0 [14:49:58]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [14:49:58]wFMCommunicate OK [14:49:58]wFMCommunicate request_size=4 [14:49:58]MH_SAM_APDU [14:49:58]CAPDU: 80 17 00 00 [14:49:58]Write to MH i2c: E2 08 00 A6 03 80 17 00 00 00 00 00 00 29 [14:49:58]Write i2c OK [14:49:58]MH_I2C_Read... [14:49:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [14:49:59]Read from MH i2c: E2 [14:49:59]MH_I2C_Read... [14:49:59]Read from MH i2c: E2 E5 00 [14:49:59]MH_I2C_Read... [14:49:59]Read from MH i2c: E2 E5 00 A6 03 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0D [14:49:59]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:49:59]wFMCommunicate OK [14:49:59]SAM_PROTO_GetFMData done [14:49:59]Malloc new data [14:49:59]Malloc new data [14:49:59]Malloc new data [14:49:59]Malloc new data [14:49:59]KKMLoadAndSignCloseShiftData err=0 [14:49:59]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Токторбаева Н. 22.04.2024 14:49 Смена: 373 РНМ: 0000000000091573 ЗНМ: 0300000141 СНО: Общий режим Чеков за смену: 92 ФД за смену: 94 Всего чеков: 92 ИТОГИ ПРИХОД Чеков: 91 Общий итог: 114982.16 Итого наличными: 91611.00 Итого безнал.: 23371.16 НДС 0% : 0.00 НДС 12% : 12212.71 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1017.65 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 20000.00 Итого наличными: 20000.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 2123.91 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 176.99 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 71611.00 НС Приход: 117524254.55 НС Возвр.Прихода: 46638513.80 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 77074 ФМ: 0000000000874652 ФПД: 197579795484938 [14:49:59]StoreToDocumentArchive [14:49:59]shift 373 fd 77074 [14:49:59]save to /storage/0373/doc_00077074 [14:49:59]save last doc name /storage/0373/doc_00077074 to /storage/kkm_last_doc_name [14:49:59]save OK [14:49:59]Clear old archive folders... [14:49:59]Remove dir /storage/0266 [14:49:59]opendir ok [14:49:59]file . [14:49:59]file .. [14:49:59]file doc_1713797355 [14:49:59]remove file /storage/0266/doc_1713797355 [14:49:59]remove dir /storage/0266 [14:49:59]NVStorageSaveData kkm_registers [14:49:59]File name is /storage/kkm_registers [14:49:59]Write 24 bytes [14:49:59]NVStorageSaveData done [14:49:59]NVStorageSaveData kkm_registers [14:49:59]File name is /storage/kkm_registers [14:49:59]Write 24 bytes [14:49:59]NVStorageSaveData done [14:49:59]ProcessDocumentItem done err = 0, tmpTLVsize=1393 [14:49:59]tlvbuf is 019530C0 [14:49:59]SAM_PROTO_ClearQueue [14:49:59]wFMCommunicate request_size=4 [14:49:59]MH_SAM_APDU [14:49:59]CAPDU: 80 09 00 00 [14:49:59]Write to MH i2c: E2 08 00 A7 03 80 09 00 00 00 00 00 00 1C [14:49:59]Write i2c OK [14:49:59]MH_I2C_Read... [14:49:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:59]Read from MH i2c: E2 [14:49:59]MH_I2C_Read... [14:49:59]Read from MH i2c: E2 03 00 [14:49:59]MH_I2C_Read... [14:49:59]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [14:49:59]RAPDU: 90 00 [14:49:59]wFMCommunicate OK [14:49:59]SAM_PROTO_ClearQueue done [14:49:59]KKMCreateOFDPacket [14:49:59]OFDProtocolAddRootSTLVToBuf [14:49:59]FM_MakeSignedData [14:49:59]FM_MakeSignedData [14:49:59]SAM_PROTO_SignData [14:49:59]wFMCommunicate request_size=4 [14:49:59]MH_SAM_APDU [14:49:59]CAPDU: 80 0D 01 02 [14:49:59]Write to MH i2c: E2 08 00 A8 03 80 0D 01 02 00 00 00 00 24 [14:49:59]Write i2c OK [14:49:59]MH_I2C_Read... [14:49:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:59]Read from MH i2c: E2 [14:49:59]MH_I2C_Read... [14:49:59]Read from MH i2c: E2 03 00 [14:49:59]MH_I2C_Read... [14:49:59]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [14:49:59]RAPDU: 90 00 [14:49:59]wFMCommunicate OK [14:49:59]wFMCommunicate request_size=255 [14:49:59]MH_SAM_APDU [14:49:59]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 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 0F 79 26 66 0E 04 04 00 75 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 5E 04 04 00 5C 00 00 00 57 04 04 00 5E 00 00 00 AA 04 DD 04 6E 04 04 00 5C 00 00 00 69 04 A3 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 E8 72 AF 70 04 03 00 8C C9 8B 72 04 03 00 5C A9 23 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 97 A2 12 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 [14:50:00]Write to MH i2c: E2 02 01 A9 03 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 1B 00 D0 A2 D0 BE OFD Sender: No OFD packet to send [14:50:00]D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 0F 79 26 66 0E 04 04 00 75 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 5E 04 04 00 5C 00 00 00 57 04 04 00 5E 00 00 00 AA 04 DD 04 6E 04 04 00 5C 00 00 00 69 04 A3 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 E8 72 AF 70 04 03 00 8C C9 8B 72 04 03 00 5C A9 23 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 97 A2 12 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 00 00 1B [14:50:00]Write i2c OK [14:50:00]MH_I2C_Read... [14:50:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:00]Read from MH i2c: E2 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 03 00 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 03 00 A9 03 00 90 00 20 [14:50:00]RAPDU: 90 00 [14:50:00]wFMCommunicate OK [14:50:00]wFMCommunicate request_size=255 [14:50:00]MH_SAM_APDU [14:50:00]CAPDU: 80 0D 02 02 FA 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 85 8D 01 6A 04 A0 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 84 1E 70 04 03 00 80 84 1E 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A7 3D 03 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 23 45 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 [14:50:00]Write to MH i2c: E2 02 01 AA 03 80 0D 02 02 FA 00 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 85 8D 01 6A 04 A0 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 84 1E 70 04 03 00 80 84 1E 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A7 3D 03 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 23 45 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 5D [14:50:00]Write i2c OK [14:50:00]MH_I2C_Read... [14:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:01]Read from MH i2c: E2 [14:50:01]MH_I2C_Read... [14:50:01]Read from MH i2c: E2 03 00 [14:50:01]MH_I2C_Read... [14:50:01]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [14:50:01]RAPDU: 90 00 [14:50:01]wFMCommunicate OK [14:50:01]wFMCommunicate request_size=255 [14:50:01]MH_SAM_APDU [14:50:01]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 [14:50:01]Write to MH i2c: E2 02 01 AB 03 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 EF [14:50:01]Write i2c OK [14:50:01]MH_I2C_Read... [14:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:01]Read from MH i2c: E2 [14:50:01]MH_I2C_Read... [14:50:01]Read from MH i2c: E2 03 00 [14:50:01]MH_I2C_Read... [14:50:01]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [14:50:01]RAPDU: 90 00 [14:50:01]wFMCommunicate OK [14:50:01]wFMCommunicate request_size=255 [14:50:01]MH_SAM_APDU [14:50:01]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 [14:50:02]Write to MH i2c: E2 02 01 AC 03 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 F6 [14:50:02]Write i2c OK [14:50:02]MH_I2C_Read... [14:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:02]Read from MH i2c: E2 [14:50:02]MH_I2C_Read... [14:50:02]Read from MH i2c: E2 03 00 [14:50:02]MH_I2C_Read... [14:50:02]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [14:50:02]RAPDU: 90 00 [14:50:02]wFMCommunicate OK [14:50:02]wFMCommunicate request_size=255 [14:50:02]MH_SAM_APDU [14:50:02]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 [14:50:03]Write to MH i2c: E2 02 01 AD 03 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 BE [14:50:03]Write i2c OK [14:50:03]MH_I2C_Read... [14:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:03]Read from MH i2c: E2 [14:50:03]MH_I2C_Read... [14:50:03]Read from MH i2c: E2 03 00 [14:50:03]MH_I2C_Read... [14:50:03]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [14:50:03]RAPDU: 90 00 [14:50:03]wFMCommunicate OK [14:50:03]wFMCommunicate request_size=152 [14:50:03]MH_SAM_APDU [14:50:03]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 12 2D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 B3 B2 A1 86 51 0A [14:50:03]Write to MH i2c: E2 9B 00 AE 03 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 12 2D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 B3 B2 A1 86 51 0A 00 00 8F [14:50:03]Write i2c OK [14:50:03]MH_I2C_Read... [14:50:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:04]Read from MH i2c: E2 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: E2 03 00 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [14:50:04]RAPDU: 90 00 [14:50:04]wFMCommunicate OK [14:50:04]wFMCommunicate request_size=4 [14:50:04]MH_SAM_APDU [14:50:04]CAPDU: 80 0D 03 02 [14:50:04]Write to MH i2c: E2 08 00 AF 03 80 0D 03 02 00 00 00 00 2D [14:50:04]Write i2c OK [14:50:04]MH_I2C_Read... [14:50:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:04]Read from MH i2c: E2 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: E2 0B 00 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: E2 0B 00 AF 03 00 C0 AE B2 D5 13 EB 2A D2 90 00 1D [14:50:04]RAPDU: C0 AE B2 D5 13 EB 2A D2 90 00 [14:50:04]wFMCommunicate OK [14:50:04]SAM_PROTO_SignData done [14:50:04]FM_MakeSignedData done [14:50:04]CreateOFDProtocolMessage [14:50:04]wFMCommunicate request_size=4 [14:50:04]MH_SAM_APDU [14:50:04]CAPDU: 80 11 00 00 [14:50:04]Write to MH i2c: E2 08 00 B0 03 80 11 00 00 00 00 00 00 2D [14:50:04]Write i2c OK [14:50:04]MH_I2C_Read... [14:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:04]Read from MH i2c: E2 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: E2 17 00 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: E2 17 00 B0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 80 [14:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [14:50:04]wFMCommunicate OK [14:50:04]CreateOFDProtocolMessage done [14:50:04]OFDSenderStorePacket 77074 [14:50:04]StoreOFDPacket docnum=77074 [14:50:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 85 05 00 00 8C D5 7D 05 3C 9A 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 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 0F 79 26 66 0E 04 04 00 75 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 5E 04 04 00 5C 00 00 00 57 04 04 00 5E 00 00 00 AA 04 DD 04 6E 04 04 00 5C 00 00 00 69 04 A3 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 E8 72 AF 70 04 03 00 8C C9 8B 72 04 03 00 5C A9 23 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 97 A2 12 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 85 8D 01 6A 04 A0 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 84 1E 70 04 03 00 80 84 1E 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A7 3D 03 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 23 45 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 12 2D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 B3 B2 A1 86 51 0A C0 AE B2 D5 13 EB 2A D2 [14:50:04]CheckFolder [14:50:04]dirname=/storage/ofd_packets [14:50:04]CheckFolder done [14:50:04]ProducePacketName [14:50:04]name=ofd_packets/00077074 [14:50:04]NVStorageSaveData ofd_packets/00077074 [14:50:04]File name is /storage/ofd_packets/00077074 [14:50:04]Write 1443 bytes [14:50:04]NVStorageSaveData done [14:50:04]OFDSenderStorePacket done [14:50:04]KKMCreateOFDPacket done [14:50:04]NVStorageSaveData kkm_last_timestamp [14:50:04]File name is /storage/kkm_last_timestamp [14:50:04]Write 4 bytes [14:50:04]NVStorageSaveData done [14:50:04]ExternCall_PrintAddStr [14:50:04]wPrintStart [14:50:04]Write to MH i2c: 01 00 00 B1 03 B4 [14:50:04]Write i2c OK [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: 01 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: 01 07 00 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: 01 07 00 B1 03 00 00 00 00 00 FF 0F C9 [14:50:04]RasterBufferAndPrint [14:50:04]line Отчет о закрытии смены [14:50:04]line ФФД: 1.0 [14:50:04]line ИНН: 02508201610067 [14:50:04]line Кассир: Токторбаева Н. [14:50:04]line 22.04.2024 14:49 [14:50:04]line Смена: 373 [14:50:04]line РНМ: 0000000000091573 [14:50:04]line ЗНМ: 0300000141 [14:50:04]line СНО: Общий режим [14:50:04]line Чеков за смену: 92 [14:50:04]line ФД за смену: 94 [14:50:04]line Всего чеков: 92 [14:50:04]line ИТОГИ ПРИХОД [14:50:04]line Чеков: 91 [14:50:04]line Общий итог: 114982.16 [14:50:04]line Итого наличными: 91611.00 [14:50:04]line Итого безнал.: 23371.16 [14:50:04]line НДС 0% : 0.00 [14:50:04]line НДС 12% : 12212.71 [14:50:04]line НСП 0% : 0.00 [14:50:04]line НСП 1,50% : 0.00 [14:50:04]line НСП 0,50% : 0.00 [14:50:04]line НСП 5% : 0.00 [14:50:04]line НСП 3% : 0.00 [14:50:04]line НСП 2% : 0.00 [14:50:04]line НСП 1% : 1017.65 [14:50:04]line ИТОГИ ВОЗВРАТ ПРИХОДА [14:50:04]line Чеков: 1 [14:50:04]line Общий итог: 20000.00 [14:50:04]line Итого наличными: 20000.00 [14:50:04]line Итого безнал.: 0.00 [14:50:04]line НДС 0% : 0.00 [14:50:04]line НДС 12% : 2123.91 [14:50:04]line НСП 0% : 0.00 [14:50:04]line НСП 1,50% : 0.00 [14:50:04]line НСП 0,50% : 0.00 [14:50:04]line НСП 5% : 0.00 [14:50:04]line НСП 3% : 0.00 [14:50:04]line НСП 2% : 0.00 [14:50:04]line НСП 1% : 176.99 [14:50:04]line ИТОГИ РАСХОД [14:50:04]line Чеков: 0 [14:50:04]line Общий итог: 0.00 [14:50:04]line Итого наличными: 0.00 [14:50:04]line Итого безнал.: 0.00 [14:50:04]line НДС 0% : 0.00 [14:50:04]line НДС 12% : 0.00 [14:50:04]line НСП 0% : 0.00 [14:50:04]line НСП 1,50% : 0.00 [14:50:04]line НСП 0,50% : 0.00 [14:50:04]line НСП 5% : 0.00 [14:50:04]line НСП 3% : 0.00 [14:50:04]line НСП 2% : 0.00 [14:50:04]line НСП 1% : 0.00 [14:50:04]line ИТОГИ ВОЗВРАТ РАСХОДА [14:50:04]line Чеков: 0 [14:50:04]line Общий итог: 0.00 [14:50:04]line Итого наличными: 0.00 [14:50:04]line Итого безнал.: 0.00 [14:50:04]line НДС 0% : 0.00 [14:50:04]line НДС 12% : 0.00 [14:50:04]line НСП 0% : 0.00 [14:50:04]line НСП 1,50% : 0.00 [14:50:04]line НСП 0,50% : 0.00 [14:50:04]line НСП 5% : 0.00 [14:50:04]line НСП 3% : 0.00 [14:50:04]line НСП 2% : 0.00 [14:50:04]line НСП 1% : 0.00 [14:50:04]line Сумма внесений: 0.00 [14:50:04]line Сумма выплат: 0.00 [14:50:04]line Нал. в кассе: 71611.00 [14:50:04]line НС Приход: 117524254.55 [14:50:04]line НС Возвр.Прихода: 46638513.80 [14:50:04]line НС Расход: 0.00 [14:50:04]line НС Возвр.Расхода: 0.00 [14:50:04]line ФД: 77074 [14:50:04]line ФМ: 0000000000874652 [14:50:04]line ФПД: 197579795484938 [14:50:04]OFD Sender: Processing packet 77074 [packets to send 129, broken 128] [14:50:04]ProducePacketName [14:50:04]name=ofd_packets/00077074 [14:50:04]OFD Sender: To server: pG, [14:50:04]CommunicateWithHost lk.salyk.kg:30040 [14:50:04]ConnectInit lk.salyk.kg [14:50:04]written 0, free lines is 4095 [14:50:04]Connected sock=10 [14:50:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 85 05 00 00 8C D5 7D 05 3C 9A 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 1B 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 0F 79 26 66 0E 04 04 00 75 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 5E 04 04 00 5C 00 00 00 57 04 04 00 5E 00 00 00 AA 04 DD 04 6E 04 04 00 5C 00 00 00 69 04 A3 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 E8 72 AF 70 04 03 00 8C C9 8B 72 04 03 00 5C A9 23 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 97 A2 12 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 85 8D 01 6A 04 A0 00 6F 04 04 00 01 00 00 00 B1 04 03 00 80 84 1E 70 04 03 00 80 84 1E 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 A7 3D 03 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 23 45 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 Write to MH i2c: 01 01 00 00 00 00 EF 02 03 04 0A 00 F6 03 01 00 00 F7 03 01 00 00 06 EF [14:50:05]03 0A 00 F6 03 01 00 06 Write i2c OK [14:50:05]F7 MH_I2C_Read... [14:50:05]03 Read from MH i2c: 01 01 00 [14:50:05]00 MH_I2C_Read... [14:50:05]EF 03 0A 00 F6 03 01 00 05 F7 Read from MH i2c: 03 01 01 07 00 00 00 [14:50:05]EF 03 0A 00 F6 03 01 00 04 F7 03 01 MH_I2C_Read... [14:50:05]00 Read from MH i2c: 00 01 EF 07 03 00 0A 02 00 04 F6 00 03 00 01 00 00 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 00 9A B1 0A 04 B1 00 [14:50:05]00 RasterBufferAndPrint [14:50:05]70 line [14:50:05]04 line [14:50:05]00 line [14:50:05]00 line [14:50:05]72 line [14:50:05]04 00 00 00 04 75 00 EE 03 09 00 F2 written 0, free lines is 3045 [14:50:05]03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 MH_Cut [14:50:05]01 Write to MH i2c: 00 D1 01 01 F3 00 03 09 00 04 00 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 DF 00 [14:50:05]EF 03 09 00 F6 03 01 00 Write i2c OK [14:50:05]01 MH_I2C_Read... [14:50:05]F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 Read from MH i2c: EF D1 03 [14:50:05]09 MH_I2C_Read... [14:50:05]00 Read from MH i2c: F6 D1 03 01 01 00 00 [14:50:05]03 MH_I2C_Read... [14:50:05]F7 03 00 00 EF 03 09 00 F6 03 01 00 04 Read from MH i2c: F7 D1 03 01 00 00 00 09 EF 03 09 00 F6 03 01 00 05 F7 03 00 04 00 00 EF DE 03 [14:50:05]09 Write to MH i2c: 00 01 F6 00 03 00 01 0A 00 04 06 0E F7 [14:50:06]03 Write i2c OK [14:50:06]00 MH_I2C_Read... [14:50:06]00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 12 2D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 35 04 06 00 B3 B2 A1 86 51 0A C0 AE B2 D5 13 EB 2A D2 [14:50:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 4F 00 00 00 9E EF *** Cut start [14:50:06]47 00 71 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 10 04 04 00 12 *** Partial cut [14:50:06]2D *** CUTSNS_PIN = 1 [14:50:06]01 *** CUTSNS_PIN = 0 [14:50:06]00 F4 03 04 00 9E 20 26 66 B6 04 01 00 00 9F 79 8E D0 EE 2C FD C5 [14:50:06]CommunicateWithHost err = 0 [14:50:06]CheckOFDResponse [14:50:06]1017 (14) - 77093643461234 [14:50:06]1041 (16) - 0000000000874652 [14:50:06]1040 (4) - 77074 [14:50:06]1012 (4) - 22.04.2024 08:32 [14:50:06]1206 (1) - 0 [14:50:06]OFD Sender: Remove packet 77074 [14:50:06]ProducePacketName [14:50:06]name=ofd_packets/00077074 [14:50:06]NVStorageDeleteData [14:50:07]*** Brake cut motor [14:50:07]Read from MH i2c: 01 [14:50:07]MH_I2C_Read... [14:50:07]*** Stop cut motor [14:50:07]*** Cut end [14:50:07]Read from MH i2c: 01 07 00 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: 01 07 00 0A 04 00 00 00 00 00 FF 0F 23 [14:50:07]process_action close_shift done [14:50:07]requested_data is exist [14:50:07]produce_requested_data [14:50:07]requested_item fd.num is exist - process it [14:50:07]SAM_PROTO_GetFieldsCounters [14:50:07]wFMCommunicate request_size=4 [14:50:07]MH_SAM_APDU [14:50:07]CAPDU: 80 13 00 00 [14:50:07]Write to MH i2c: E2 08 00 0B 04 80 13 00 00 00 00 00 00 8B [14:50:07]Write i2c OK [14:50:07]MH_I2C_Read... [14:50:07]OFD Sender: No OFD packet to send [14:50:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:07]Read from MH i2c: E2 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: E2 62 00 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: E2 62 00 0B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 12 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [14:50:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 12 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:07]wFMCommunicate OK [14:50:07]SAM_PROTO_GetFieldsCounters done [14:50:07]requested_item shift.num is exist - process it [14:50:07]requested_item shift.opened is exist - process it [14:50:07]req_shift_opened [14:50:07]FM_GetShiftState [14:50:07]SAM_PROTO_GetShiftState [14:50:07]wFMCommunicate request_size=4 [14:50:07]MH_SAM_APDU [14:50:07]CAPDU: 80 13 01 00 [14:50:07]Write to MH i2c: E2 08 00 0C 04 80 13 01 00 00 00 00 00 8D [14:50:07]Write i2c OK [14:50:07]MH_I2C_Read... [14:50:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:07]Read from MH i2c: E2 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: E2 0E 00 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: E2 0E 00 0C 04 00 09 00 00 00 00 00 00 00 00 00 00 90 00 98 [14:50:07]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [14:50:07]wFMCommunicate OK [14:50:07]SAM_PROTO_GetShiftState done [14:50:07]FM_GetShiftState done [14:50:07]req_shift_opened done [14:50:07]requested_item shift.open_date is exist - process it [14:50:07]req_shift_open_date [14:50:07]FM_GetShiftState [14:50:07]SAM_PROTO_GetShiftState [14:50:07]wFMCommunicate request_size=4 [14:50:07]MH_SAM_APDU [14:50:07]CAPDU: 80 13 01 00 [14:50:07]Write to MH i2c: E2 08 00 0D 04 80 13 01 00 00 00 00 00 8E [14:50:07]Write i2c OK [14:50:07]MH_I2C_Read... [14:50:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:07]Read from MH i2c: E2 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: E2 0E 00 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: E2 0E 00 0D 04 00 09 00 00 00 00 00 00 00 00 00 00 90 00 99 [14:50:08]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [14:50:08]wFMCommunicate OK [14:50:08]SAM_PROTO_GetShiftState done [14:50:08]FM_GetShiftState done [14:50:08]req_shift_open_date done [14:50:08]produce_requested_data done [14:50:08]produce_requested_data return {"fd.num":77074,"shift.num":373,"shift.opened":0,"shift.open_date":0} [14:50:08]process_action_free close_shift [14:50:08]json_value_free [14:50:08]json_value_free done [14:50:08]process_json_proto returns [14:50:08]Send response to host [14:50:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":77074,"shift.num":373,"shift.opened":0,"shift.open_date":0}}} [14:50:08]free response buf [14:50:08]execute_script done [14:50:08]execute_script returns [14:50:08]free content buf [14:50:08]Sock 9.Close socket [14:50:08]Sock 9.Thread stoped [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:17]OFD Sender: No OFD packet to send [14:51:22]OFD Sender: No OFD packet to send [14:51:27]OFD Sender: No OFD packet to send [14:51:32]OFD Sender: No OFD packet to send [14:51:37]OFD Sender: No OFD packet to send [14:51:42]OFD Sender: No OFD packet to send [14:51:47]OFD Sender: No OFD packet to send [14:51:52]OFD Sender: No OFD packet to send [14:51:57]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14: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:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:13]OFD Sender: No OFD packet to send [14:57:18]OFD Sender: No OFD packet to send [14:57:23]OFD Sender: No OFD packet to send [14:57:28]OFD Sender: No OFD packet to send [14:57:33]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]accept exits with 7 [15:06:18]New connection [15:06:18]New thread 3067350372 created [15:06:18]Thread 3067207012 joined [15:06:18]Waiting for new connection... [15:06:18] Sock 7.Parse request [15:06:18]Sock 7.Check first char [15:06:18]Sock 7.First char is OK [15:06:18]request: POST /json_proto HTTP/1.0 [15:06:18]Method: POST [15:06:18]URL: /json_proto [15:06:18]Method is POST - this is cgi request [15:06:18]url: /json_proto [15:06:18]query_string will be loaded in cgi processing [15:06:18]execute_cgi json_proto POST (null) [15:06:18]execute_cgi path=json_proto method=POST [15:06:18]POST find Content-Length [15:06:18]Host: 172.17.62.5:8080 [15:06:18]Content-Length: 215 [15:06:18]Content-Type: application/json [15:06:18] [15:06:18]POST finish read [15:06:18]Found Content-Length = 215 [15:06:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:18]execute_script... [15:06:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:18]POST & json_proto [15:06:18]process_json_proto [15:06:18]json parsed OK: [15:06:18]protocol is kg_v1.0 [15:06:18]action value=get_value [15:06:18]process_action get_value [15:06:18]cmd_get_value [15:06:18]process_action get_value done [15:06:18]requested_data is exist [15:06:18]produce_requested_data [15:06:18]requested_item kkm.sn is exist - process it [15:06:18]requested_item kkm.ver is exist - process it [15:06:18]requested_item fm.sn is exist - process it [15:06:18]wFMCommunicate request_size=4 [15:06:18]MH_SAM_APDU [15:06:18]CAPDU: 80 11 00 00 [15:06:18]Write to MH i2c: E2 08 00 0E 04 80 11 00 00 00 00 00 00 8C [15:06:18]Write i2c OK [15:06:18]MH_I2C_Read... [15:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:18]Read from MH i2c: E2 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 17 00 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 17 00 0E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 DF [15:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 90 00 [15:06:18]wFMCommunicate OK [15:06:18]requested_item fd.num is exist - process it [15:06:18]SAM_PROTO_GetFieldsCounters [15:06:18]wFMCommunicate request_size=4 [15:06:18]MH_SAM_APDU [15:06:18]CAPDU: 80 13 00 00 [15:06:18]Write to MH i2c: E2 08 00 0F 04 80 13 00 00 00 00 00 00 8F [15:06:18]Write i2c OK [15:06:18]MH_I2C_Read... [15:06:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:18]Read from MH i2c: E2 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 62 00 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 62 00 0F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 12 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [15:06:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 35 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 35 37 33 10 04 04 00 12 2D 01 00 0E 04 04 00 75 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:18]wFMCommunicate OK [15:06:18]SAM_PROTO_GetFieldsCounters done [15:06:18]requested_item shift.num is exist - process it [15:06:18]requested_item shift.opened is exist - process it [15:06:18]req_shift_opened [15:06:18]FM_GetShiftState [15:06:18]SAM_PROTO_GetShiftState [15:06:18]wFMCommunicate request_size=4 [15:06:18]MH_SAM_APDU [15:06:18]CAPDU: 80 13 01 00 [15:06:18]Write to MH i2c: E2 08 00 10 04 80 13 01 00 00 00 00 00 91 [15:06:18]Write i2c OK [15:06:18]MH_I2C_Read... [15:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:18]Read from MH i2c: E2 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 0E 00 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 0E 00 10 04 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9C [15:06:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [15:06:18]wFMCommunicate OK [15:06:18]SAM_PROTO_GetShiftState done [15:06:18]FM_GetShiftState done [15:06:18]req_shift_opened done [15:06:18]requested_item shift.open_date is exist - process it [15:06:18]req_shift_open_date [15:06:18]FM_GetShiftState [15:06:18]SAM_PROTO_GetShiftState [15:06:18]wFMCommunicate request_size=4 [15:06:18]MH_SAM_APDU [15:06:18]CAPDU: 80 13 01 00 [15:06:18]Write to MH i2c: E2 08 00 11 04 80 13 01 00 00 00 00 00 92 [15:06:18]Write i2c OK [15:06:18]MH_I2C_Read... [15:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:18]Read from MH i2c: E2 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 0E 00 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 0E 00 11 04 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9D [15:06:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [15:06:18]wFMCommunicate OK [15:06:18]SAM_PROTO_GetShiftState done [15:06:18]FM_GetShiftState done [15:06:18]req_shift_open_date done [15:06:18]produce_requested_data done [15:06:18]produce_requested_data return {"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":77074,"shift.num":373,"shift.opened":0,"shift.open_date":0} [15:06:18]process_action_free get_value [15:06:18]json_value_free [15:06:18]json_value_free done [15:06:18]process_json_proto returns [15:06:18]Send response to host [15:06:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000141","kkm.ver":"001","fm.sn":"0000000000874652","fd.num":77074,"shift.num":373,"shift.opened":0,"shift.open_date":0}}} [15:06:18]free response buf [15:06:18]execute_script done [15:06:18]execute_script returns [15:06:18]free content buf [15:06:18]Sock 7.Close socket [15:06:18]Sock 7.Thread stoped [15:06:18]OFD Sender: No OFD packet to send [15:06:18]accept exits with 10 [15:06:18]New connection [15:06:18]New thread 3067207012 created [15:06:18]Thread 3067350372 joined [15:06:18]Waiting for new connection... [15:06:18] Sock 10.Parse request [15:06:18]Sock 10.Check first char [15:06:18]Sock 10.First char is OK [15:06:18]request: POST /json_proto HTTP/1.0 [15:06:18]Method: POST [15:06:18]URL: /json_proto [15:06:18]Method is POST - this is cgi request [15:06:18]url: /json_proto [15:06:18]query_string will be loaded in cgi processing [15:06:18]execute_cgi json_proto POST (null) [15:06:18]execute_cgi path=json_proto method=POST [15:06:18]POST find Content-Length [15:06:18]Host: 172.17.62.5:8080 [15:06:18]Content-Length: 331 [15:06:18]Content-Type: application/json [15:06:18] [15:06:18]POST finish read [15:06:18]Found Content-Length = 331 [15:06:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:06:18]execute_script... [15:06:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:06:18]POST & json_proto [15:06:18]process_json_proto [15:06:18]json parsed OK: [15:06:18]protocol is kg_v1.0 [15:06:18]action value=get_value [15:06:18]process_action get_value [15:06:18]cmd_get_value [15:06:18]process_action get_value done [15:06:18]requested_data is exist [15:06:18]produce_requested_data [15:06:18]requested_item fm.sale.total is exist - process it [15:06:18]SAM_PROTO_GetFMData [15:06:18]wFMCommunicate request_size=4 [15:06:18]MH_SAM_APDU [15:06:18]CAPDU: 80 13 03 00 [15:06:18]Write to MH i2c: E2 08 00 12 04 80 13 03 00 00 00 00 00 95 [15:06:18]Write i2c OK [15:06:18]MH_I2C_Read... [15:06:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:06:19]Read from MH i2c: E2 [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: E2 FD 00 [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: E2 FD 00 12 04 00 C8 04 85 04 C4 04 6E 04 04 00 27 2A 01 00 69 04 A3 00 6F 04 04 00 33 28 01 00 B1 04 05 00 EF C7 7F BC 02 70 04 05 00 EC 92 42 78 02 72 04 04 00 03 35 3D 44 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 40 57 66 4A 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 0C 21 33 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F4 01 00 00 B1 04 05 00 74 B9 FC 15 01 70 04 05 00 74 B9 FC 15 01 72 04 00 00 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 14 56 85 1D EF 90 00 79 [15:06:19]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 27 2A 01 00 69 04 A3 00 6F 04 04 00 33 28 01 00 B1 04 05 00 EF C7 7F BC 02 70 04 05 00 EC 92 42 78 02 72 04 04 00 03 35 3D 44 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 40 57 66 4A 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 0C 21 33 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 F4 01 00 00 B1 04 05 00 74 B9 FC 15 01 70 04 05 00 74 B9 FC 15 01 72 04 00 00 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 14 56 85 1D EF 90 00 [15:06:19]wFMCommunicate OK [15:06:19]wFMCommunicate request_size=4 [15:06:19]MH_SAM_APDU [15:06:19]CAPDU: 80 17 00 00 [15:06:19]Write to MH i2c: E2 08 00 13 04 80 17 00 00 00 00 00 00 97 [15:06:19]Write i2c OK [15:06:19]MH_I2C_Read... [15:06:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:06:19]Read from MH i2c: E2 [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: E2 FD 00 [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: E2 FD 00 13 04 00 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 10 C7 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 F4 [15:06:19]RAPDU: 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 10 C7 75 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [15:06:19]wFMCommunicate OK [15:06:19]wFMCommunicate request_size=4 [15:06:19]MH_SAM_APDU [15:06:19]CAPDU: 80 17 00 00 [15:06:19]Write to MH i2c: E2 08 00 14 04 80 17 00 00 00 00 00 00 98 [15:06:19]Write i2c OK [15:06:19]MH_I2C_Read... [15:06:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:06:19]Read from MH i2c: E2 [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: E2 FD 00 [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: E2 FD 00 14 04 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 70 [15:06:19]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [15:06:19]wFMCommunicate OK [15:06:19]wFMCommunicate request_size=4 [15:06:19]MH_SAM_APDU [15:06:19]CAPDU: 80 17 00 00 [15:06:19]Write to MH i2c: E2 08 00 15 04 80 17 00 00 00 00 00 00 99 [15:06:19]Write i2c OK [15:06:19]MH_I2C_Read... [15:06:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:06:20]Read from MH i2c: E2 [15:06:20]MH_I2C_Read... [15:06:20]Read from MH i2c: E2 FD 00 [15:06:20]MH_I2C_Read... [15:06:20]Read from MH i2c: E2 FD 00 15 04 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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 11 [15:06:20]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [15:06:20]wFMCommunicate OK [15:06:20]wFMCommunicate request_size=4 [15:06:20]MH_SAM_APDU [15:06:20]CAPDU: 80 17 00 00 [15:06:20]Write to MH i2c: E2 08 00 16 04 80 17 00 00 00 00 00 00 9A [15:06:20]Write i2c OK [15:06:20]MH_I2C_Read... [15:06:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [15:06:20]Read from MH i2c: E2 [15:06:20]MH_I2C_Read... [15:06:20]Read from MH i2c: E2 E5 00 [15:06:20]MH_I2C_Read... [15:06:20]Read from MH i2c: E2 E5 00 16 04 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [15:06:20]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:06:20]wFMCommunicate OK [15:06:20]SAM_PROTO_GetFMData done [15:06:20]requested_item fm.sale_refund.total is exist - process it [15:06:20]requested_item fm.buy.total is exist - process it [15:06:20]requested_item shift.sale.total is exist - process it [15:06:20]SAM_PROTO_GetShiftData [15:06:20]wFMCommunicate request_size=4 [15:06:20]MH_SAM_APDU [15:06:20]CAPDU: 80 13 02 00 [15:06:20]Write to MH i2c: E2 08 00 17 04 80 13 02 00 00 00 00 00 99 [15:06:20]Write i2c OK [15:06:20]MH_I2C_Read... [15:06:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:06:20]Read from MH i2c: E2 [15:06:20]MH_I2C_Read... [15:06:20]Read from MH i2c: E2 FD 00 [15:06:20]MH_I2C_Read... [15:06:20]Read from MH i2c: E2 FD 00 17 04 00 BA 04 AA 04 B6 04 6E 04 04 00 5C 00 00 00 69 04 9C 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 E8 72 AF 70 04 03 00 8C C9 8B 72 04 03 00 5C A9 23 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 97 A2 12 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 85 8D 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 01 00 00 00 B1 04 03 00 80 84 1E 70 04 03 00 80 84 1E 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 A7 3D 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 F7 [15:06:20]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 5C 00 00 00 69 04 9C 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 E8 72 AF 70 04 03 00 8C C9 8B 72 04 03 00 5C A9 23 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 97 A2 12 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 85 8D 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 01 00 00 00 B1 04 03 00 80 84 1E 70 04 03 00 80 84 1E 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 A7 3D 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [15:06:20]wFMCommunicate OK [15:06:20]wFMCommunicate request_size=4 [15:06:20]MH_SAM_APDU [15:06:20]CAPDU: 80 17 00 00 [15:06:20]Write to MH i2c: E2 08 00 18 04 80 17 00 00 00 00 00 00 9C [15:06:20]Write i2c OK [15:06:20]MH_I2C_Read... [15:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:06:21]Read from MH i2c: E2 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 FD 00 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 FD 00 18 04 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 23 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 AE [15:06:21]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 23 45 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [15:06:21]wFMCommunicate OK [15:06:21]wFMCommunicate request_size=4 [15:06:21]MH_SAM_APDU [15:06:21]CAPDU: 80 17 00 00 [15:06:21]Write to MH i2c: E2 08 00 19 04 80 17 00 00 00 00 00 00 9D [15:06:21]Write i2c OK [15:06:21]MH_I2C_Read... [15:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:06:21]Read from MH i2c: E2 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 FD 00 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 FD 00 19 04 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 C9 [15:06:21]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [15:06:21]wFMCommunicate OK [15:06:21]wFMCommunicate request_size=4 [15:06:21]MH_SAM_APDU [15:06:21]CAPDU: 80 17 00 00 [15:06:21]Write to MH i2c: E2 08 00 1A 04 80 17 00 00 00 00 00 00 9E [15:06:21]Write i2c OK [15:06:21]MH_I2C_Read... [15:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:06:21]Read from MH i2c: E2 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 FD 00 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 FD 00 1A 04 00 00 EF 03 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 90 00 16 [15:06:21]RAPDU: 00 EF 03 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 90 00 [15:06:21]wFMCommunicate OK [15:06:21]wFMCommunicate request_size=4 [15:06:21]MH_SAM_APDU [15:06:21]CAPDU: 80 17 00 00 [15:06:21]Write to MH i2c: E2 08 00 1B 04 80 17 00 00 00 00 00 00 9F [15:06:21]Write i2c OK [15:06:21]MH_I2C_Read... [15:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [15:06:21]Read from MH i2c: E2 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 D7 00 [15:06:21]MH_I2C_Read... [15:06:21]Read from MH i2c: E2 D7 00 1B 04 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 82 [15:06:21]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:06:22]wFMCommunicate OK [15:06:22]SAM_PROTO_GetShiftData done [15:06:22]requested_item shift.sale.total_cash is exist - process it [15:06:22]requested_item shift.sale_refund.total is exist - process it [15:06:22]requested_item shift.sale_refund.total_cash is exist - process it [15:06:22]requested_item shift.buy.total is exist - process it [15:06:22]requested_item shift.buy.total_cash is exist - process it [15:06:22]produce_requested_data done [15:06:22]produce_requested_data return {"fm.sale.total":117524254.55,"fm.sale_refund.total":46638513.80,"fm.buy.total":0.00,"shift.sale.total":114982.16,"shift.sale.total_cash":91611.00,"shift.sale_refund.total":20000.00,"shift.sale_refund.total_cash":20000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:06:22]process_action_free get_value [15:06:22]json_value_free [15:06:22]json_value_free done [15:06:22]process_json_proto returns [15:06:22]Send response to host [15:06:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":117524254.55,"fm.sale_refund.total":46638513.80,"fm.buy.total":0.00,"shift.sale.total":114982.16,"shift.sale.total_cash":91611.00,"shift.sale_refund.total":20000.00,"shift.sale_refund.total_cash":20000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:06:22]free response buf [15:06:22]execute_script done [15:06:22]execute_script returns [15:06:22]free content buf [15:06:22]Sock 10.Close socket [15:06:22]Sock 10.Thread stoped [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send