[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:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send [03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]OFD Sender: No OFD packet to send [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:47]OFD Sender: No OFD packet to send [03:26:52]OFD Sender: No OFD packet to send [03:26:57]OFD Sender: No OFD packet to send [03:27:02]OFD Sender: No OFD packet to send [03:27:07]OFD Sender: No OFD packet to send [03:27:12]OFD Sender: No OFD packet to send [03:27:17]OFD Sender: No OFD packet to send [03:27:22]OFD Sender: No OFD packet to send [03:27:27]OFD Sender: No OFD packet to send [03:27:32]OFD Sender: No OFD packet to send [03:27:37]OFD Sender: No OFD packet to send [03:27:42]OFD Sender: No OFD packet to send [03:27:47]OFD Sender: No OFD packet to send [03:27:52]OFD Sender: No OFD packet to send [03:27:57]OFD Sender: No OFD packet to send [03:28:02]OFD Sender: No OFD packet to send [03:28:07]OFD Sender: No OFD packet to send [03:28:12]OFD Sender: No OFD packet to send [03:28:17]OFD Sender: No OFD packet to send [03:28:22]OFD Sender: No OFD packet to send [03:28:27]OFD Sender: No OFD packet to send [03:28:32]OFD Sender: No OFD packet to send [03:28:37]OFD Sender: No OFD packet to send [03:28:42]OFD Sender: No OFD packet to send [03:28:47]OFD Sender: No OFD packet to send [03:28:52]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36: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:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]OFD Sender: No OFD packet to send [03:39:38]OFD Sender: No OFD packet to send [03:39:43]OFD Sender: No OFD packet to send [03:39:48]OFD Sender: No OFD packet to send [03:39:53]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]OFD Sender: No OFD packet to send [03:41:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:13]OFD Sender: No OFD packet to send [03:43:18]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:28]OFD Sender: No OFD packet to send [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:58]OFD Sender: No OFD packet to send [03:46:03]OFD Sender: No OFD packet to send [03:46:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30: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:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47: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:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04: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:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:39]accept exits with 9 [05:32:39]New connection [05:32:39]New thread 3067358564 created [05:32:39]Thread 3067215204 joined [05:32:39]Waiting for new connection... [05:32:39] Sock 9.Parse request [05:32:39]Sock 9.Check first char [05:32:39]Sock 9.First char is OK [05:32:39]request: POST /json_proto HTTP/1.0 [05:32:39]Method: POST [05:32:39]URL: /json_proto [05:32:39]Method is POST - this is cgi request [05:32:39]url: /json_proto [05:32:39]query_string will be loaded in cgi processing [05:32:39]execute_cgi json_proto POST (null) [05:32:39]execute_cgi path=json_proto method=POST [05:32:39]POST find Content-Length [05:32:39]Host: 172.17.58.67:8080 [05:32:39]Content-Length: 1197 [05:32:39]Content-Type: application/json [05:32:39] [05:32:39]POST finish read [05:32:39]Found Content-Length = 1197 [05:32:39]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141097\u000A13.08.2024 04:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.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\u000A4148606\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:39]execute_script... [05:32:39]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141097\u000A13.08.2024 04:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.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\u000A4148606\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:39]POST & json_proto [05:32:39]process_json_proto [05:32:39]json parsed OK: [05:32:39]protocol is kg_v1.0 [05:32:39]action value=print_text [05:32:39]process_action print_text [05:32:39]cmd_print_text [05:32:39]ExternCall_PrintAddStr [05:32:39]wPrintStart [05:32:39]Write to MH i2c: 01 00 00 2A 00 2A [05:32:39]Write i2c OK [05:32:39]MH_I2C_Read... [05:32:39]Read from MH i2c: 01 [05:32:39]MH_I2C_Read... [05:32:39]Read from MH i2c: 01 07 00 [05:32:39]MH_I2C_Read... [05:32:39]Read from MH i2c: 01 07 00 2A 00 00 00 00 00 00 FF 0F 3F [05:32:39]RasterBufferAndPrint [05:32:39]line *****ТОВÐРÐЫЙ ЧЕК***** [05:32:39]line ÐЗС 39 [05:32:39]line Партнер нефть [05:32:39]line 02508201610067 [05:32:39]line КаÑÑир : ОваÑбекова Л. [05:32:39]line Счет N : (1)141097 [05:32:39]line 13.08.2024 04:51 [05:32:39]line ПРОДÐЖР[05:32:39]line ТРК (МРК, ГÐК): 41 [05:32:39]line Вид ГСМ : 2710124130 [05:32:39]line Ðи-92-К-5 [05:32:39]line 20.000 x 65.90 [05:32:39]line ИТОГ: 1318.00 [05:32:39]line Тип оплаты: Талоны: Партнер нефть [05:32:39]line 4148606 [05:32:39]line ______________________ [05:32:39]line (подпиÑÑŒ) [05:32:39]written 0, free lines is 4095 [05:32:40]Write to MH i2c: 01 00 00 3E 00 3E [05:32:40]Write i2c OK [05:32:40]MH_I2C_Read... [05:32:40]Read from MH i2c: 01 [05:32:40]MH_I2C_Read... [05:32:40]Read from MH i2c: 01 07 00 [05:32:40]MH_I2C_Read... [05:32:40]Read from MH i2c: 01 07 00 3E 00 00 00 00 00 00 13 0E 66 [05:32:40]RasterBufferAndPrint [05:32:40]line [05:32:40]line [05:32:40]line [05:32:40]line [05:32:40]line [05:32:40]written 0, free lines is 3605 [05:32:40]MH_Cut [05:32:40]Write to MH i2c: D1 01 00 45 00 01 17 [05:32:40]Write i2c OK [05:32:40]MH_I2C_Read... [05:32:40]Read from MH i2c: D1 [05:32:40]MH_I2C_Read... [05:32:40]Read from MH i2c: D1 01 00 [05:32:40]MH_I2C_Read... [05:32:40]Read from MH i2c: D1 01 00 45 00 00 16 [05:32:40]Write to MH i2c: 01 00 00 46 00 46 [05:32:40]Write i2c OK [05:32:40]MH_I2C_Read... [05:32:40]*** Cut start [05:32:40]*** Purtial cut [05:32:40]*** Stage 1: CUTSNS_PIN = 1 [05:32:40]Read from MH i2c: 01 [05:32:40]MH_I2C_Read... [05:32:40]Read from MH i2c: 01 07 00 [05:32:40]MH_I2C_Read... [05:32:40]*** Stop cut motor [05:32:40]*** Cut end [05:32:40]Read from MH i2c: 01 07 00 46 00 00 00 00 00 00 FF 0F 5B [05:32:40]process_action print_text done [05:32:40]requested_data is exist [05:32:40]produce_requested_data [05:32:40]requested_item fm.sn is exist - process it [05:32:40]wFMCommunicate request_size=4 [05:32:40]MH_SAM_APDU [05:32:40]CAPDU: 80 11 00 00 [05:32:40]Write to MH i2c: E2 08 00 47 00 80 11 00 00 00 00 00 00 C1 [05:32:40]Write i2c OK [05:32:40]MH_I2C_Read... [05:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:41]Read from MH i2c: E2 [05:32:41]MH_I2C_Read... [05:32:41]Read from MH i2c: E2 17 00 [05:32:41]MH_I2C_Read... [05:32:41]Read from MH i2c: E2 17 00 47 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 16 [05:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [05:32:41]wFMCommunicate OK [05:32:41]requested_item fd.num is exist - process it [05:32:41]SAM_PROTO_GetFieldsCounters [05:32:41]wFMCommunicate request_size=4 [05:32:41]MH_SAM_APDU [05:32:41]CAPDU: 80 13 00 00 [05:32:41]Write to MH i2c: E2 08 00 48 00 80 13 00 00 00 00 00 00 C4 [05:32:41]Write i2c OK [05:32:41]MH_I2C_Read... [05:32:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:32:41]Read from MH i2c: E2 [05:32:41]MH_I2C_Read... [05:32:41]Read from MH i2c: E2 62 00 [05:32:41]MH_I2C_Read... [05:32:41]Read from MH i2c: E2 62 00 48 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F6 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [05:32: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F6 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:32:41]wFMCommunicate OK [05:32:41]SAM_PROTO_GetFieldsCounters done [05:32:41]requested_item shift.num is exist - process it [05:32:41]requested_item shift.opened is exist - process it [05:32:41]req_shift_opened [05:32:41]FM_GetShiftState [05:32:41]SAM_PROTO_GetShiftState [05:32:41]wFMCommunicate request_size=4 [05:32:41]MH_SAM_APDU [05:32:41]CAPDU: 80 13 01 00 [05:32:41]Write to MH i2c: E2 08 00 49 00 80 13 01 00 00 00 00 00 C6 [05:32:41]Write i2c OK [05:32:41]MH_I2C_Read... [05:32:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:41]Read from MH i2c: E2 [05:32:41]MH_I2C_Read... [05:32:41]Read from MH i2c: E2 0E 00 [05:32:41]MH_I2C_Read... [05:32:41]Read from MH i2c: E2 0E 00 49 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 35 [05:32:41]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [05:32:41]wFMCommunicate OK [05:32:41]SAM_PROTO_GetShiftState done [05:32:41]FM_GetShiftState done [05:32:41]req_shift_opened done [05:32:41]requested_item shift.open_date is exist - process it [05:32:41]req_shift_open_date [05:32:41]req_shift_open_date done [05:32:41]produce_requested_data done [05:32:41]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70646,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [05:32:41]process_action_free print_text [05:32:41]json_value_free [05:32:41]json_value_free done [05:32:41]process_json_proto returns [05:32:41]Send response to host [05:32:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70646,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [05:32:41]free response buf [05:32:41]execute_script done [05:32:41]execute_script returns [05:32:41]free content buf [05:32:41]Sock 9.Close socket [05:32:41]Sock 9.Thread stoped [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:46]OFD Sender: No OFD packet to send [06:00:51]OFD Sender: No OFD packet to send [06:00:56]OFD Sender: No OFD packet to send [06:01:01]OFD Sender: No OFD packet to send [06:01:06]OFD Sender: No OFD packet to send [06:01:11]OFD Sender: No OFD packet to send [06:01:16]OFD Sender: No OFD packet to send [06:01:21]OFD Sender: No OFD packet to send [06:01:26]OFD Sender: No OFD packet to send [06:01:31]OFD Sender: No OFD packet to send [06:01:36]OFD Sender: No OFD packet to send [06:01:41]OFD Sender: No OFD packet to send [06:01:46]OFD Sender: No OFD packet to send [06:01:51]OFD Sender: No OFD packet to send [06:01:56]OFD Sender: No OFD packet to send [06:02:01]OFD Sender: No OFD packet to send [06:02:06]OFD Sender: No OFD packet to send [06:02:11]OFD Sender: No OFD packet to send [06:02:16]OFD Sender: No OFD packet to send [06:02:21]OFD Sender: No OFD packet to send [06:02:26]OFD Sender: No OFD packet to send [06:02:31]OFD Sender: No OFD packet to send [06:02:36]OFD Sender: No OFD packet to send [06:02:41]OFD Sender: No OFD packet to send [06:02:46]OFD Sender: No OFD packet to send [06:02:51]OFD Sender: No OFD packet to send [06:02:56]OFD Sender: No OFD packet to send [06:03:01]OFD Sender: No OFD packet to send [06:03:06]OFD Sender: No OFD packet to send [06:03:11]OFD Sender: No OFD packet to send [06:03:16]OFD Sender: No OFD packet to send [06:03:21]OFD Sender: No OFD packet to send [06:03:26]OFD Sender: No OFD packet to send [06:03:31]OFD Sender: No OFD packet to send [06:03:36]OFD Sender: No OFD packet to send [06:03:41]OFD Sender: No OFD packet to send [06:03:46]OFD Sender: No OFD packet to send [06:03:51]OFD Sender: No OFD packet to send [06:03:56]OFD Sender: No OFD packet to send [06:04:01]OFD Sender: No OFD packet to send [06:04:06]OFD Sender: No OFD packet to send [06:04:11]OFD Sender: No OFD packet to send [06:04:16]OFD Sender: No OFD packet to send [06:04:21]OFD Sender: No OFD packet to send [06:04:26]OFD Sender: No OFD packet to send [06:04:31]OFD Sender: No OFD packet to send [06:04:36]OFD Sender: No OFD packet to send [06:04:41]OFD Sender: No OFD packet to send [06:04:46]OFD Sender: No OFD packet to send [06:04:51]OFD Sender: No OFD packet to send [06:04:56]OFD Sender: No OFD packet to send [06:05:01]OFD Sender: No OFD packet to send [06:05:06]OFD Sender: No OFD packet to send [06:05:11]OFD Sender: No OFD packet to send [06:05:16]OFD Sender: No OFD packet to send [06:05:21]OFD Sender: No OFD packet to send [06:05:26]OFD Sender: No OFD packet to send [06:05:31]OFD Sender: No OFD packet to send [06:05:36]OFD Sender: No OFD packet to send [06:05:41]OFD Sender: No OFD packet to send [06:05:46]OFD Sender: No OFD packet to send [06:05:51]OFD Sender: No OFD packet to send [06:05:56]OFD Sender: No OFD packet to send [06:06:01]OFD Sender: No OFD packet to send [06:06:06]OFD Sender: No OFD packet to send [06:06:11]OFD Sender: No OFD packet to send [06:06:16]OFD Sender: No OFD packet to send [06:06:21]OFD Sender: No OFD packet to send [06:06:26]OFD Sender: No OFD packet to send [06:06:31]OFD Sender: No OFD packet to send [06:06:36]OFD Sender: No OFD packet to send [06:06:41]OFD Sender: No OFD packet to send [06:06:46]OFD Sender: No OFD packet to send [06:06:51]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [06:07:01]OFD Sender: No OFD packet to send [06:07:06]OFD Sender: No OFD packet to send [06:07:11]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:51]OFD Sender: No OFD packet to send [06:07:56]OFD Sender: No OFD packet to send [06:08:01]OFD Sender: No OFD packet to send [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13: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:27]OFD Sender: No OFD packet to send [06:17:32]OFD Sender: No OFD packet to send [06:17:37]OFD Sender: No OFD packet to send [06:17:42]OFD Sender: No OFD packet to send [06:17:47]OFD Sender: No OFD packet to send [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:02]OFD Sender: No OFD packet to send [06:18:07]OFD Sender: No OFD packet to send [06:18:12]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:32]OFD Sender: No OFD packet to send [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:19:57]OFD Sender: No OFD packet to send [06:20:02]OFD Sender: No OFD packet to send [06:20:07]OFD Sender: No OFD packet to send [06:20:12]OFD Sender: No OFD packet to send [06:20:17]OFD Sender: No OFD packet to send [06:20:22]OFD Sender: No OFD packet to send [06:20:27]OFD Sender: No OFD packet to send [06:20:32]OFD Sender: No OFD packet to send [06:20:37]OFD Sender: No OFD packet to send [06:20:42]OFD Sender: No OFD packet to send [06:20:47]OFD Sender: No OFD packet to send [06:20:52]OFD Sender: No OFD packet to send [06:20:57]OFD Sender: No OFD packet to send [06:21:02]OFD Sender: No OFD packet to send [06:21:07]OFD Sender: No OFD packet to send [06:21:12]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:32]OFD Sender: No OFD packet to send [06:21:37]OFD Sender: No OFD packet to send [06:21:42]OFD Sender: No OFD packet to send [06:21:47]OFD Sender: No OFD packet to send [06:21:52]OFD Sender: No OFD packet to send [06:21:57]OFD Sender: No OFD packet to send [06:22:02]OFD Sender: No OFD packet to send [06:22:07]OFD Sender: No OFD packet to send [06:22:12]OFD Sender: No OFD packet to send [06:22:17]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22:27]OFD Sender: No OFD packet to send [06:22:32]OFD Sender: No OFD packet to send [06:22:37]OFD Sender: No OFD packet to send [06:22:42]OFD Sender: No OFD packet to send [06:22:47]OFD Sender: No OFD packet to send [06:22:52]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:23:02]OFD Sender: No OFD packet to send [06:23:07]OFD Sender: No OFD packet to send [06:23:12]OFD Sender: No OFD packet to send [06:23:17]OFD Sender: No OFD packet to send [06:23:22]OFD Sender: No OFD packet to send [06:23:27]OFD Sender: No OFD packet to send [06:23:32]OFD Sender: No OFD packet to send [06:23:37]OFD Sender: No OFD packet to send [06:23:42]OFD Sender: No OFD packet to send [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:02]OFD Sender: No OFD packet to send [06:24:07]OFD Sender: No OFD packet to send [06:24:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:22]OFD Sender: No OFD packet to send [06:24:27]OFD Sender: No OFD packet to send [06:24:32]OFD Sender: No OFD packet to send [06:24:37]OFD Sender: No OFD packet to send [06:24:42]OFD Sender: No OFD packet to send [06:24:47]OFD Sender: No OFD packet to send [06:24:52]OFD Sender: No OFD packet to send [06:24:57]OFD Sender: No OFD packet to send [06:25:02]OFD Sender: No OFD packet to send [06:25:07]OFD Sender: No OFD packet to send [06:25:12]OFD Sender: No OFD packet to send [06:25:17]OFD Sender: No OFD packet to send [06:25:22]OFD Sender: No OFD packet to send [06:25:27]OFD Sender: No OFD packet to send [06:25:32]OFD Sender: No OFD packet to send [06:25:37]OFD Sender: No OFD packet to send [06:25:42]OFD Sender: No OFD packet to send [06:25:47]OFD Sender: No OFD packet to send [06:25:52]OFD Sender: No OFD packet to send [06:25:57]OFD Sender: No OFD packet to send [06:26:02]OFD Sender: No OFD packet to send [06:26:07]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]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:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]OFD Sender: No OFD packet to send [06:41:58]OFD Sender: No OFD packet to send [06:42:03]OFD Sender: No OFD packet to send [06:42:08]OFD Sender: No OFD packet to send [06:42:13]OFD Sender: No OFD packet to send [06:42:18]OFD Sender: No OFD packet to send [06:42:23]OFD Sender: No OFD packet to send [06:42:28]OFD Sender: No OFD packet to send [06:42:33]OFD Sender: No OFD packet to send [06:42:38]OFD Sender: No OFD packet to send [06:42:43]OFD Sender: No OFD packet to send [06:42:48]OFD Sender: No OFD packet to send [06:42:53]OFD Sender: No OFD packet to send [06:42:58]OFD Sender: No OFD packet to send [06:43:03]OFD Sender: No OFD packet to send [06:43:08]OFD Sender: No OFD packet to send [06:43:13]OFD Sender: No OFD packet to send [06:43:18]OFD Sender: No OFD packet to send [06:43:20]int [06:43:20]Write to MH i2c: 01 00 00 4A 00 4A [06:43:20]*** FLAG_PRN_KEY set [06:43:20]Write i2c OK [06:43:20]MH_I2C_Read... [06:43:20]Read from MH i2c: 01 [06:43:20]MH_I2C_Read... [06:43:20]Read from MH i2c: 01 07 00 [06:43:20]MH_I2C_Read... [06:43:20]Read from MH i2c: 01 07 00 4A 00 00 08 00 00 00 FF 0F 67 [06:43:20]state=0 [06:43:20]Key pressed [06:43:20]Feed [06:43:20]Write to MH i2c: D8 00 00 4B 00 22 [06:43:20]Write i2c OK [06:43:20]MH_I2C_Read... [06:43:20]Read from MH i2c: D8 [06:43:20]MH_I2C_Read... [06:43:20]Read from MH i2c: D8 01 00 [06:43:20]MH_I2C_Read... [06:43:20]Read from MH i2c: D8 01 00 4B 00 00 23 [06:43:20]int [06:43:20]Write to MH i2c: 01 00 00 4C 00 4C [06:43:20]Write i2c OK [06:43:20]MH_I2C_Read... [06:43:20]Read from MH i2c: 01 [06:43:20]MH_I2C_Read... [06:43:20]Read from MH i2c: 01 07 00 [06:43:20]MH_I2C_Read... [06:43:20]Read from MH i2c: 01 07 00 4C 00 00 48 00 00 00 3C 00 D7 [06:43:20]state=2 [06:43:20]Key pressed [06:43:20]int [06:43:20]Write to MH i2c: 01 00 00 4D 00 4D [06:43:20]*** FLAG_PRN_KEY reset [06:43:20]Write i2c OK [06:43:20]MH_I2C_Read... [06:43:20]Read from MH i2c: 01 [06:43:20]MH_I2C_Read... [06:43:20]Read from MH i2c: 01 07 00 [06:43:20]MH_I2C_Read... [06:43:20]Read from MH i2c: 01 07 00 4D 00 00 00 00 00 00 F6 0F 59 [06:43:20]state=2 [06:43:20]Stop feed [06:43:23]OFD Sender: No OFD packet to send [06:43:28]OFD Sender: No OFD packet to send [06:43:33]OFD Sender: No OFD packet to send [06:43:38]OFD Sender: No OFD packet to send [06:43:43]OFD Sender: No OFD packet to send [06:43:48]OFD Sender: No OFD packet to send [06:43:53]OFD Sender: No OFD packet to send [06:43:58]OFD Sender: No OFD packet to send [06:44:03]OFD Sender: No OFD packet to send [06:44:08]OFD Sender: No OFD packet to send [06:44:13]OFD Sender: No OFD packet to send [06:44:18]OFD Sender: No OFD packet to send [06:44:23]OFD Sender: No OFD packet to send [06:44:27]accept exits with 7 [06:44:27]New connection [06:44:27]New thread 3067215204 created [06:44:27]Thread 3067358564 joined [06:44:27]Waiting for new connection... [06:44:27] Sock 7.Parse request [06:44:27]Sock 7.Check first char [06:44:27]Sock 7.First char is OK [06:44:27]request: POST /json_proto HTTP/1.0 [06:44:27]Method: POST [06:44:27]URL: /json_proto [06:44:27]Method is POST - this is cgi request [06:44:27]url: /json_proto [06:44:27]query_string will be loaded in cgi processing [06:44:27]execute_cgi json_proto POST (null) [06:44:27]execute_cgi path=json_proto method=POST [06:44:27]POST find Content-Length [06:44:27]Host: 172.17.58.67:8080 [06:44:27]Content-Length: 805 [06:44:27]Content-Type: application/json [06:44:27] [06:44:27]POST finish read [06:44:27]Found Content-Length = 805 [06:44:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.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" : 2000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:27]execute_script... [06:44: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)141098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.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" : 2000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:27]POST & json_proto [06:44:27]process_json_proto [06:44:27]json parsed OK: [06:44:27]protocol is kg_v1.0 [06:44:27]action value=close_receipt [06:44:27]process_action close_receipt [06:44:27]cmd_close_receipt [06:44:27]MH_GetDate [06:44:27]Write to MH i2c: F0 00 00 4E 00 3D [06:44:27]Write i2c OK [06:44:27]MH_I2C_Read... [06:44:27]Read from MH i2c: F0 [06:44:27]MH_I2C_Read... [06:44:27]Read from MH i2c: F0 09 00 [06:44:27]MH_I2C_Read... [06:44:27]Read from MH i2c: F0 09 00 4E 00 00 CD 00 BB 66 94 51 63 64 E0 [06:44:27]GetLastDocTimeStamp 1723508493 [06:44:27]current date 1723531469 [06:44:27]FM_GetShiftState [06:44:27]SAM_PROTO_GetShiftState [06:44:27]wFMCommunicate request_size=4 [06:44:27]MH_SAM_APDU [06:44:27]CAPDU: 80 13 01 00 [06:44:27]Write to MH i2c: E2 08 00 4F 00 80 13 01 00 00 00 00 00 CC [06:44:27]Write i2c OK [06:44:27]MH_I2C_Read... [06:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:27]Read from MH i2c: E2 [06:44:27]MH_I2C_Read... [06:44:27]Read from MH i2c: E2 0E 00 [06:44:27]MH_I2C_Read... [06:44:27]Read from MH i2c: E2 0E 00 4F 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 3B [06:44:27]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [06:44:27]wFMCommunicate OK [06:44:27]SAM_PROTO_GetShiftState done [06:44:27]FM_GetShiftState done [06:44:27]opened in 1723509656 [06:44:27]opened+sec_in_day 1723596056 [06:44:27]quantity*price = 200061 [06:44:27]sum+1 = 200063 [06:44:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.62 ÐСП 1% : 17.70 ÐДС 12% : 212.45 Ðаличными: 0.00 Безнал.: 2000.62 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 1 13.08.2024 06:44 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70647 ФПД: 27664985530194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T064429&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70647&fm=27664985530194&tin=02508201610067®Number=0000000000090913&sum=200062 [06:44:28]StoreToDocumentArchive [06:44:28]shift 466 fd 70647 [06:44:28]save to /storage/0466/doc_00070647 [06:44:28]save last doc name /storage/0466/doc_00070647 to /storage/kkm_last_doc_name [06:44:28]save OK [06:44:28]Clear old archive folders... [06:44:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:44:28]tlvbuf is 017A7B30 [06:44:28]SAM_PROTO_ClearQueue [06:44:28]wFMCommunicate request_size=4 [06:44:28]MH_SAM_APDU [06:44:28]CAPDU: 80 09 00 00 [06:44:28]Write to MH i2c: E2 08 00 5C 00 80 09 00 00 00 00 00 00 CE [06:44:28]Write i2c OK [06:44:28]MH_I2C_Read... [06:44:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:44:28]Read from MH i2c: E2 [06:44:28]MH_I2C_Read... [06:44:28]Read from MH i2c: E2 03 00 [06:44:28]MH_I2C_Read... [06:44:28]Read from MH i2c: E2 03 00 5C 00 00 90 00 D0 [06:44:28]RAPDU: 90 00 [06:44:28]wFMCommunicate OK [06:44:28]SAM_PROTO_ClearQueue done [06:44:28]KKMCreateOFDPacket [06:44:28]OFDProtocolAddRootSTLVToBuf [06:44:28]FM_MakeSignedData [06:44:28]FM_MakeSignedData [06:44:28]SAM_PROTO_SignData [06:44:28]wFMCommunicate request_size=4 [06:44:28]MH_SAM_APDU [06:44:28]CAPDU: 80 0D 01 02 [06:44:28]Write to MH i2c: E2 08 00 5D 00 80 0D 01 02 00 00 00 00 D6 [06:44:28]Write i2c OK [06:44:28]MH_I2C_Read... [06:44:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:44:28]Read from MH i2c: E2 [06:44:28]MH_I2C_Read... [06:44:28]Read from MH i2c: E2 03 00 [06:44:28]MH_I2C_Read... [06:44:28]Read from MH i2c: E2 03 00 5D 00 00 90 00 D1 [06:44:28]RAPDU: 90 00 [06:44:28]wFMCommunicate OK [06:44:28]wFMCommunicate request_size=255 [06:44:28]MH_SAM_APDU [06:44:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 CD 00 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F7 13 01 00 35 04 06 00 19 29 41 A2 [06:44:28]Write to MH i2c: E2 02 01 5E 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 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 CD 00 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F7 13 01 00 35 04 06 00 19 29 41 A2 00 00 AD [06:44:28]Write i2c OK [06:44:28]MH_I2C_Read... [06:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:29]Read from MH i2c: E2 [06:44:29]MH_I2C_Read... [06:44:29]Read from MH i2c: E2 03 00 [06:44:29]MH_I2C_Read... [06:44:29]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [06:44:29]RAPDU: 90 00 [06:44:29]wFMCommunicate OK [06:44:29]wFMCommunicate request_size=7 [06:44:29]MH_SAM_APDU [06:44:29]CAPDU: 80 0D 02 02 02 9F 52 [06:44:29]Write to MH i2c: E2 0A 00 5F 00 80 0D 02 02 02 00 9F 52 00 00 CE [06:44:29]Write i2c OK [06:44:29]MH_I2C_Read... [06:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:29]Read from MH i2c: E2 [06:44:29]MH_I2C_Read... [06:44:29]Read from MH i2c: E2 03 00 [06:44:29]MH_I2C_Read... [06:44:29]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [06:44:29]RAPDU: 90 00 [06:44:29]wFMCommunicate OK [06:44:29]wFMCommunicate request_size=4 [06:44:29]MH_SAM_APDU [06:44:29]CAPDU: 80 0D 03 02 [06:44:29]Write to MH i2c: E2 08 00 60 00 80 0D 03 02 00 00 00 00 DB [06:44:29]Write i2c OK [06:44:29]MH_I2C_Read... [06:44:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:44:29]Read from MH i2c: E2 [06:44:29]MH_I2C_Read... [06:44:29]Read from MH i2c: E2 0B 00 [06:44:29]MH_I2C_Read... [06:44:29]Read from MH i2c: E2 0B 00 60 00 00 F6 0B 67 2C F9 75 9A E7 90 00 5F [06:44:29]RAPDU: F6 0B 67 2C F9 75 9A E7 90 00 [06:44:29]wFMCommunicate OK [06:44:29]SAM_PROTO_SignData done [06:44:29]FM_MakeSignedData done [06:44:29]CreateOFDProtocolMessage [06:44:29]wFMCommunicate request_size=4 [06:44:29]MH_SAM_APDU [06:44:29]CAPDU: 80 11 00 00 [06:44:29]Write to MH i2c: E2 08 00 61 00 80 11 00 00 00 00 00 00 DB [06:44:29]Write i2c OK [06:44:29]MH_I2C_Read... [06:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:29]Read from MH i2c: E2 [06:44:29]MH_I2C_Read... [06:44:29]Read from MH i2c: E2 17 00 [06:44:29]MH_I2C_Read... [06:44:29]Read from MH i2c: E2 17 00 61 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 30 [06:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [06:44:29]wFMCommunicate OK [06:44:29]CreateOFDProtocolMessage done [06:44:29]OFDSenderStorePacket 70647 [06:44:29]StoreOFDPacket docnum=70647 [06:44:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 96 53 04 01 E6 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 CD 00 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F7 13 01 00 35 04 06 00 19 29 41 A2 9F 52 F6 0B 67 2C F9 75 9A E7 [06:44:29]CheckFolder [06:44:29]dirname=/storage/ofd_packets [06:44:29]CheckFolder done [06:44:29]ProducePacketName [06:44:29]name=ofd_packets/00070647 [06:44:29]NVStorageSaveData ofd_packets/00070647 [06:44:29]File name is /storage/ofd_packets/00070647 [06:44:29]Write 298 bytes [06:44:29]NVStorageSaveData done [06:44:29]OFDSenderStorePacket done [06:44:29]KKMCreateOFDPacket done [06:44:29]NVStorageSaveData kkm_last_timestamp [06:44:29]File name is /storage/kkm_last_timestamp [06:44:29]Write 4 bytes [06:44:29]NVStorageSaveData done [06:44:29]ExternCall_PrintAddStr [06:44:29]wPrintStart [06:44:29]Write to MH i2c: 01 00 00 62 00 62 [06:44:29]Write i2c OK [06:44:29]MH_I2C_Read... [06:44:29]Read from MH i2c: 01 [06:44:29]MH_I2C_Read... [06:44:29]Read from MH i2c: 01 07 00 [06:44:29]MH_I2C_Read... [06:44:29]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [06:44:29]RasterBufferAndPrint [06:44:29]line Счет N : (1)141098 [06:44:29]line ИÐÐ: 02508201610067 [06:44:29]line Контрольно-КаÑÑовый Чек [06:44:29]line ПРОДÐЖР[06:44:29]line ТРК (МРК, ГÐК) : 34 [06:44:29]line Товар: 2710194210 [06:44:29]line ДТ-К-5 [06:44:29]line 26.890 * 74.40 [06:44:29]line = 2000.62 [06:44:29]line ÐДС 12% ÐСП 1% [06:44:29]line > о реализуемом товаре [06:44:29]line ИТОГО: 2000.62 [06:44:29]line ÐСП 1% : 17.70 [06:44:29]line ÐДС 12% : 212.45 [06:44:29]line Ðаличными: 0.00 [06:44:29]line Безнал.: 2000.62 [06:44:29]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [06:44:29]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [06:44:29]line СÐО: Общий режим [06:44:29]line Чек 1 13.08.2024 06:44 [06:44:29]line Смена: 466 ФФД: 1.0 [06:44:29]line ЗÐМ: 0300000140 [06:44:29]line РÐМ: 0000000000090913 [06:44:29]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [06:44:29]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [06:44:29]line ФМ: 0000000000874915 [06:44:29]line ФД: 70647 [06:44:29]line ФПД: 27664985530194 [06:44:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T064429&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70647&fm=27664985530194&tin=02508201610067®Number=0000000000090913&sum=200062 [06:44:29]OFD Sender: Processing packet 70647 [packets to send 67, broken 66] [06:44:29]ProducePacketName [06:44:29]name=ofd_packets/00070647 [06:44:29]OFD Sender: To server: ‡•öpG, [06:44:29]CommunicateWithHost lk.salyk.kg:30040 [06:44:29]ConnectInit lk.salyk.kg [06:44:29]written 0, free lines is 4095 [06:44:29]Connected sock=11 [06:44: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 39 31 35 0C 01 00 00 96 53 04 01 E6 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 CD 00 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F7 13 01 00 35 04 06 00 19 29 41 A2 9F 52 F6 0B 67 2C F9 75 9A E7 [06:44:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 CB CE 47 00 03 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F7 13 01 00 F4 03 04 00 B8 A7 BA 66 B6 04 01 00 00 4C 71 2C 75 93 2D 04 81 [06:44:30]CommunicateWithHost err = 0 [06:44:30]CheckOFDResponse [06:44:30]1017 (14) - 77093643461234 [06:44:30]1041 (16) - 0000000000874915 [06:44:30]1040 (4) - 70647 [06:44:30]1012 (4) - 13.08.2024 00:24 [06:44:30]1206 (1) - 0 [06:44:30]OFD Sender: Remove packet 70647 [06:44:30]ProducePacketName [06:44:30]name=ofd_packets/00070647 [06:44:30]NVStorageDeleteData [06:44:30]Write to MH i2c: 01 00 00 8C 00 8C [06:44:30]Write i2c OK [06:44:30]MH_I2C_Read... [06:44:30]Read from MH i2c: 01 [06:44:30]MH_I2C_Read... [06:44:30]Read from MH i2c: 01 07 00 [06:44:30]MH_I2C_Read... [06:44:30]Read from MH i2c: 01 07 00 8C 00 00 00 00 00 00 07 0D A7 [06:44:30]RasterBufferAndPrint [06:44:30]line [06:44:30]line [06:44:30]line [06:44:30]line [06:44:30]line [06:44:30]written 0, free lines is 3341 [06:44:30]MH_Cut [06:44:30]Write to MH i2c: D1 01 00 93 00 01 65 [06:44:30]Write i2c OK [06:44:30]MH_I2C_Read... [06:44:30]Read from MH i2c: D1 [06:44:30]MH_I2C_Read... [06:44:30]Read from MH i2c: D1 01 00 [06:44:30]MH_I2C_Read... [06:44:30]Read from MH i2c: D1 01 00 93 00 00 64 [06:44:30]Write to MH i2c: 01 00 00 94 00 94 [06:44:30]Write i2c OK [06:44:30]MH_I2C_Read... [06:44:30]OFD Sender: No OFD packet to send [06:44:30]*** Cut start [06:44:30]*** Purtial cut [06:44:30]*** CUTSNS_PIN = 0 [06:44:31]*** Stage 1: CUTSNS_PIN = 1 [06:44:32]Read from MH i2c: 01 [06:44:32]MH_I2C_Read... [06:44:32]*** Stop cut motor [06:44:32]*** Cut end [06:44:32]Read from MH i2c: 01 07 00 [06:44:32]MH_I2C_Read... [06:44:32]Read from MH i2c: 01 07 00 94 00 00 00 00 00 00 FF 0F A9 [06:44:32]process_action close_receipt done [06:44:32]requested_data is exist [06:44:32]produce_requested_data [06:44:32]requested_item fm.sn is exist - process it [06:44:32]wFMCommunicate request_size=4 [06:44:32]MH_SAM_APDU [06:44:32]CAPDU: 80 11 00 00 [06:44:32]Write to MH i2c: E2 08 00 95 00 80 11 00 00 00 00 00 00 0F [06:44:32]Write i2c OK [06:44:32]MH_I2C_Read... [06:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:32]Read from MH i2c: E2 [06:44:32]MH_I2C_Read... [06:44:32]Read from MH i2c: E2 17 00 [06:44:32]MH_I2C_Read... [06:44:32]Read from MH i2c: E2 17 00 95 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 64 [06:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [06:44:32]wFMCommunicate OK [06:44:32]requested_item fd.num is exist - process it [06:44:32]SAM_PROTO_GetFieldsCounters [06:44:32]wFMCommunicate request_size=4 [06:44:32]MH_SAM_APDU [06:44:32]CAPDU: 80 13 00 00 [06:44:32]Write to MH i2c: E2 08 00 96 00 80 13 00 00 00 00 00 00 12 [06:44:32]Write i2c OK [06:44:32]MH_I2C_Read... [06:44:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:44:33]Read from MH i2c: E2 [06:44:33]MH_I2C_Read... [06:44:33]Read from MH i2c: E2 62 00 [06:44:33]MH_I2C_Read... [06:44:33]Read from MH i2c: E2 62 00 96 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F7 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [06:44: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F7 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:44:33]wFMCommunicate OK [06:44:33]SAM_PROTO_GetFieldsCounters done [06:44:33]requested_item shift.num is exist - process it [06:44:33]requested_item shift.opened is exist - process it [06:44:33]req_shift_opened [06:44:33]FM_GetShiftState [06:44:33]SAM_PROTO_GetShiftState [06:44:33]wFMCommunicate request_size=4 [06:44:33]MH_SAM_APDU [06:44:33]CAPDU: 80 13 01 00 [06:44:33]Write to MH i2c: E2 08 00 97 00 80 13 01 00 00 00 00 00 14 [06:44:33]Write i2c OK [06:44:33]MH_I2C_Read... [06:44:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:33]Read from MH i2c: E2 [06:44:33]MH_I2C_Read... [06:44:33]Read from MH i2c: E2 0E 00 [06:44:33]MH_I2C_Read... [06:44:33]Read from MH i2c: E2 0E 00 97 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 83 [06:44:33]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [06:44:33]wFMCommunicate OK [06:44:33]SAM_PROTO_GetShiftState done [06:44:33]FM_GetShiftState done [06:44:33]req_shift_opened done [06:44:33]requested_item shift.open_date is exist - process it [06:44:33]req_shift_open_date [06:44:33]req_shift_open_date done [06:44:33]produce_requested_data done [06:44:33]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70647,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [06:44:33]process_action_free close_receipt [06:44:33]json_value_free [06:44:33]json_value_free done [06:44:33]process_json_proto returns [06:44:33]Send response to host [06:44:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70647,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [06:44:33]free response buf [06:44:33]execute_script done [06:44:33]execute_script returns [06:44:33]free content buf [06:44:33]Sock 7.Close socket [06:44:33]Sock 7.Thread stoped [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:18]int [06:53:18]Write to MH i2c: 01 00 00 98 00 98 [06:53:18]*** FLAG_PRN_KEY set [06:53:18]Write i2c OK [06:53:18]MH_I2C_Read... [06:53:18]Read from MH i2c: 01 [06:53:18]MH_I2C_Read... [06:53:18]Read from MH i2c: 01 07 00 [06:53:18]MH_I2C_Read... [06:53:18]Read from MH i2c: 01 07 00 98 00 00 08 00 00 00 FF 0F B5 [06:53:18]state=0 [06:53:18]Key pressed [06:53:18]Feed [06:53:18]Write to MH i2c: D8 00 00 99 00 70 [06:53:18]Write i2c OK [06:53:18]MH_I2C_Read... [06:53:18]Read from MH i2c: D8 [06:53:18]MH_I2C_Read... [06:53:18]Read from MH i2c: D8 01 00 [06:53:18]MH_I2C_Read... [06:53:18]Read from MH i2c: D8 01 00 99 00 00 71 [06:53:18]int [06:53:18]Write to MH i2c: 01 00 00 9A 00 9A [06:53:18]Write i2c OK [06:53:18]MH_I2C_Read... [06:53:18]Read from MH i2c: 01 [06:53:18]MH_I2C_Read... [06:53:18]Read from MH i2c: 01 07 00 [06:53:18]MH_I2C_Read... [06:53:18]Read from MH i2c: 01 07 00 9A 00 00 48 00 00 00 3C 00 25 [06:53:18]state=2 [06:53:18]Key pressed [06:53:18]int [06:53:18]Write to MH i2c: 01 00 00 9B 00 9B [06:53:18]*** FLAG_PRN_KEY reset [06:53:18]Write i2c OK [06:53:18]MH_I2C_Read... [06:53:18]Read from MH i2c: 01 [06:53:18]MH_I2C_Read... [06:53:18]Read from MH i2c: 01 07 00 [06:53:18]MH_I2C_Read... [06:53:18]Read from MH i2c: 01 07 00 9B 00 00 00 00 00 00 F5 0F A6 [06:53:18]state=2 [06:53:18]Stop feed [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:54:58]accept exits with 9 [06:54:58]New connection [06:54:58]New thread 3067358564 created [06:54:58]Thread 3067215204 joined [06:54:58]Waiting for new connection... [06:54:58] Sock 9.Parse request [06:54:58]Sock 9.Check first char [06:54:58]Sock 9.First char is OK [06:54:58]request: POST /json_proto HTTP/1.0 [06:54:58]Method: POST [06:54:58]URL: /json_proto [06:54:58]Method is POST - this is cgi request [06:54:58]url: /json_proto [06:54:58]query_string will be loaded in cgi processing [06:54:58]execute_cgi json_proto POST (null) [06:54:58]execute_cgi path=json_proto method=POST [06:54:58]POST find Content-Length [06:54:58]Host: 172.17.58.67:8080 [06:54:58]Content-Length: 805 [06:54:58]Content-Type: application/json [06:54:58] [06:54:58]POST finish read [06:54:58]Found Content-Length = 805 [06:54:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:54:58]execute_script... [06:54: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)141099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:54:58]POST & json_proto [06:54:58]process_json_proto [06:54:58]json parsed OK: [06:54:58]protocol is kg_v1.0 [06:54:58]action value=close_receipt [06:54:58]process_action close_receipt [06:54:58]cmd_close_receipt [06:54:58]MH_GetDate [06:54:58]Write to MH i2c: F0 00 00 9C 00 8B [06:54:58]Write i2c OK [06:54:58]MH_I2C_Read... [06:54:58]Read from MH i2c: F0 [06:54:58]MH_I2C_Read... [06:54:58]Read from MH i2c: F0 09 00 [06:54:58]MH_I2C_Read... [06:54:58]Read from MH i2c: F0 09 00 9C 00 00 44 03 BB 66 94 51 63 64 A8 [06:54:58]GetLastDocTimeStamp 1723531469 [06:54:58]current date 1723532100 [06:54:58]FM_GetShiftState [06:54:58]SAM_PROTO_GetShiftState [06:54:58]wFMCommunicate request_size=4 [06:54:58]MH_SAM_APDU [06:54:58]CAPDU: 80 13 01 00 [06:54:58]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [06:54:58]Write i2c OK [06:54:58]MH_I2C_Read... [06:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:54:58]Read from MH i2c: E2 [06:54:58]MH_I2C_Read... [06:54:58]Read from MH i2c: E2 0E 00 [06:54:58]MH_I2C_Read... [06:54:58]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 89 [06:54:58]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [06:54:58]wFMCommunicate OK [06:54:58]SAM_PROTO_GetShiftState done [06:54:58]FM_GetShiftState done [06:54:58]opened in 1723509656 [06:54:58]opened+sec_in_day 1723596056 [06:54:58]quantity*price = 50018 [06:54:58]sum+1 = 50019 [06:54:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 0.00 Безнал.: 500.18 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 2 13.08.2024 06:55 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70648 ФПД: 207567862541838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T065500&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70648&fm=207567862541838&tin=02508201610067®Number=0000000000090913&sum=50018 [06:54:59]StoreToDocumentArchive [06:54:59]shift 466 fd 70648 [06:54:59]save to /storage/0466/doc_00070648 [06:54:59]save last doc name /storage/0466/doc_00070648 to /storage/kkm_last_doc_name [06:54:59]save OK [06:54:59]Clear old archive folders... [06:54:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:54:59]tlvbuf is 01796B10 [06:54:59]SAM_PROTO_ClearQueue [06:54:59]wFMCommunicate request_size=4 [06:54:59]MH_SAM_APDU [06:54:59]CAPDU: 80 09 00 00 [06:54:59]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [06:54:59]Write i2c OK [06:54:59]MH_I2C_Read... [06:54:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:54:59]Read from MH i2c: E2 [06:54:59]MH_I2C_Read... [06:54:59]Read from MH i2c: E2 03 00 [06:54:59]MH_I2C_Read... [06:54:59]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [06:54:59]RAPDU: 90 00 [06:54:59]wFMCommunicate OK [06:54:59]SAM_PROTO_ClearQueue done [06:54:59]KKMCreateOFDPacket [06:54:59]OFDProtocolAddRootSTLVToBuf [06:54:59]FM_MakeSignedData [06:54:59]FM_MakeSignedData [06:54:59]SAM_PROTO_SignData [06:54:59]wFMCommunicate request_size=4 [06:54:59]MH_SAM_APDU [06:54:59]CAPDU: 80 0D 01 02 [06:54:59]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [06:54:59]Write i2c OK [06:54:59]MH_I2C_Read... [06:54:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:54:59]Read from MH i2c: E2 [06:54:59]MH_I2C_Read... [06:54:59]Read from MH i2c: E2 03 00 [06:54:59]MH_I2C_Read... [06:54:59]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [06:54:59]RAPDU: 90 00 [06:54:59]wFMCommunicate OK [06:54:59]wFMCommunicate request_size=255 [06:54:59]MH_SAM_APDU [06:54:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 44 03 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F8 13 01 00 35 04 06 00 BC [06:54:59]Write to MH i2c: E2 02 01 AC 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 44 03 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F8 13 01 00 35 04 06 00 BC 00 00 CB [06:54:59]Write i2c OK [06:54:59]MH_I2C_Read... [06:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:00]Read from MH i2c: E2 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: E2 03 00 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [06:55:00]RAPDU: 90 00 [06:55:00]wFMCommunicate OK [06:55:00]wFMCommunicate request_size=10 [06:55:00]MH_SAM_APDU [06:55:00]CAPDU: 80 0D 02 02 05 C8 28 B6 AE 0E [06:55:00]Write to MH i2c: E2 0D 00 AD 00 80 0D 02 02 05 00 C8 28 B6 AE 0E 00 00 93 [06:55:00]Write i2c OK [06:55:00]MH_I2C_Read... [06:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:00]Read from MH i2c: E2 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: E2 03 00 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [06:55:00]RAPDU: 90 00 [06:55:00]wFMCommunicate OK [06:55:00]wFMCommunicate request_size=4 [06:55:00]MH_SAM_APDU [06:55:00]CAPDU: 80 0D 03 02 [06:55:00]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [06:55:00]Write i2c OK [06:55:00]MH_I2C_Read... [06:55:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:55:00]Read from MH i2c: E2 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: E2 0B 00 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: E2 0B 00 AE 00 00 DE CF 5A E2 5E 40 58 5A 90 00 63 [06:55:00]RAPDU: DE CF 5A E2 5E 40 58 5A 90 00 [06:55:00]wFMCommunicate OK [06:55:00]SAM_PROTO_SignData done [06:55:00]FM_MakeSignedData done [06:55:00]CreateOFDProtocolMessage [06:55:00]wFMCommunicate request_size=4 [06:55:00]MH_SAM_APDU [06:55:00]CAPDU: 80 11 00 00 [06:55:00]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [06:55:00]Write i2c OK [06:55:00]MH_I2C_Read... [06:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:55:00]Read from MH i2c: E2 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: E2 17 00 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 7E [06:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [06:55:00]wFMCommunicate OK [06:55:00]CreateOFDProtocolMessage done [06:55:00]OFDSenderStorePacket 70648 [06:55:00]StoreOFDPacket docnum=70648 [06:55:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 27 4D 07 01 AD 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 44 03 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F8 13 01 00 35 04 06 00 BC C8 28 B6 AE 0E DE CF 5A E2 5E 40 58 5A [06:55:00]CheckFolder [06:55:00]dirname=/storage/ofd_packets [06:55:00]CheckFolder done [06:55:00]ProducePacketName [06:55:00]name=ofd_packets/00070648 [06:55:00]NVStorageSaveData ofd_packets/00070648 [06:55:00]File name is /storage/ofd_packets/00070648 [06:55:00]Write 301 bytes [06:55:00]NVStorageSaveData done [06:55:00]OFDSenderStorePacket done [06:55:00]KKMCreateOFDPacket done [06:55:00]NVStorageSaveData kkm_last_timestamp [06:55:00]File name is /storage/kkm_last_timestamp [06:55:00]Write 4 bytes [06:55:00]NVStorageSaveData done [06:55:00]ExternCall_PrintAddStr [06:55:00]wPrintStart [06:55:00]Write to MH i2c: 01 00 00 B0 00 B0 [06:55:00]Write i2c OK [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: 01 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: 01 07 00 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [06:55:00]RasterBufferAndPrint [06:55:00]line Счет N : (1)141099 [06:55:00]line ИÐÐ: 02508201610067 [06:55:00]line Контрольно-КаÑÑовый Чек [06:55:00]line ПРОДÐЖР[06:55:00]line ТРК (МРК, ГÐК) : 41 [06:55:00]line Товар: 2710124130 [06:55:00]line Ðи-92-К-5 [06:55:00]line 7.590 * 65.90 [06:55:00]line = 500.18 [06:55:00]line ÐДС 12% ÐСП 1% [06:55:00]line > о реализуемом товаре [06:55:00]line ИТОГО: 500.18 [06:55:00]line ÐСП 1% : 4.43 [06:55:00]line ÐДС 12% : 53.12 [06:55:00]line Ðаличными: 0.00 [06:55:00]line Безнал.: 500.18 [06:55:00]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [06:55:00]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [06:55:00]line СÐО: Общий режим [06:55:00]line Чек 2 13.08.2024 06:55 [06:55:00]line Смена: 466 ФФД: 1.0 [06:55:00]line ЗÐМ: 0300000140 [06:55:00]line РÐМ: 0000000000090913 [06:55:00]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [06:55:00]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [06:55:00]line ФМ: 0000000000874915 [06:55:00]line ФД: 70648 [06:55:00]line ФПД: 207567862541838 [06:55:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T065500&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70648&fm=207567862541838&tin=02508201610067®Number=0000000000090913&sum=50018 [06:55:00]written 0, free lines is 4095 [06:55:00]OFD Sender: Processing packet 70648 [packets to send 67, broken 66] [06:55:00]ProducePacketName [06:55:00]name=ofd_packets/00070648 [06:55:00]OFD Sender: To server: ‡•öpG, [06:55:00]CommunicateWithHost lk.salyk.kg:30040 [06:55:00]ConnectInit lk.salyk.kg [06:55:00]Connected sock=10 [06:55: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 39 31 35 0F 01 00 00 27 4D 07 01 AD 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 44 03 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F8 13 01 00 35 04 06 00 BC C8 28 B6 AE 0E DE CF 5A E2 5E 40 58 5A [06:55:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 70 8C 47 00 DA F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F8 13 01 00 F4 03 04 00 2F AA BA 66 B6 04 01 00 00 13 0D 88 64 9B 1D 24 63 [06:55:00]CommunicateWithHost err = 0 [06:55:00]CheckOFDResponse [06:55:00]1017 (14) - 77093643461234 [06:55:00]1041 (16) - 0000000000874915 [06:55:00]1040 (4) - 70648 [06:55:00]1012 (4) - 13.08.2024 00:34 [06:55:00]1206 (1) - 0 [06:55:00]OFD Sender: Remove packet 70648 [06:55:00]ProducePacketName [06:55:00]name=ofd_packets/00070648 [06:55:00]NVStorageDeleteData [06:55:00]Write to MH i2c: 01 00 00 DA 00 DA [06:55:00]Write i2c OK [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: 01 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: 01 07 00 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 FC 0C E9 [06:55:00]RasterBufferAndPrint [06:55:00]line [06:55:00]line [06:55:00]line [06:55:00]line [06:55:00]line [06:55:00]written 0, free lines is 3330 [06:55:00]MH_Cut [06:55:00]Write to MH i2c: D1 01 00 E1 00 01 B3 [06:55:00]Write i2c OK [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: D1 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: D1 01 00 [06:55:00]MH_I2C_Read... [06:55:00]Read from MH i2c: D1 01 00 E1 00 00 B2 [06:55:00]Write to MH i2c: 01 00 00 E2 00 E2 [06:55:00]Write i2c OK [06:55:00]MH_I2C_Read... [06:55:01]OFD Sender: No OFD packet to send [06:55:01]*** Cut start [06:55:01]*** Purtial cut [06:55:01]*** Stage 1: CUTSNS_PIN = 1 [06:55:01]Read from MH i2c: 01 [06:55:01]MH_I2C_Read... [06:55:01]*** Stop cut motor [06:55:01]*** Cut end [06:55:01]Read from MH i2c: 01 07 00 [06:55:01]MH_I2C_Read... [06:55:01]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 FF 0F F7 [06:55:01]process_action close_receipt done [06:55:01]requested_data is exist [06:55:01]produce_requested_data [06:55:01]requested_item fm.sn is exist - process it [06:55:01]wFMCommunicate request_size=4 [06:55:01]MH_SAM_APDU [06:55:01]CAPDU: 80 11 00 00 [06:55:01]Write to MH i2c: E2 08 00 E3 00 80 11 00 00 00 00 00 00 5D [06:55:01]Write i2c OK [06:55:01]MH_I2C_Read... [06:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:55:01]Read from MH i2c: E2 [06:55:01]MH_I2C_Read... [06:55:01]Read from MH i2c: E2 17 00 [06:55:01]MH_I2C_Read... [06:55:01]Read from MH i2c: E2 17 00 E3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 B2 [06:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [06:55:01]wFMCommunicate OK [06:55:01]requested_item fd.num is exist - process it [06:55:01]SAM_PROTO_GetFieldsCounters [06:55:01]wFMCommunicate request_size=4 [06:55:01]MH_SAM_APDU [06:55:01]CAPDU: 80 13 00 00 [06:55:01]Write to MH i2c: E2 08 00 E4 00 80 13 00 00 00 00 00 00 60 [06:55:01]Write i2c OK [06:55:01]MH_I2C_Read... [06:55:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:55:02]Read from MH i2c: E2 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: E2 62 00 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: E2 62 00 E4 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F8 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [06:55: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F8 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:55:02]wFMCommunicate OK [06:55:02]SAM_PROTO_GetFieldsCounters done [06:55:02]requested_item shift.num is exist - process it [06:55:02]requested_item shift.opened is exist - process it [06:55:02]req_shift_opened [06:55:02]FM_GetShiftState [06:55:02]SAM_PROTO_GetShiftState [06:55:02]wFMCommunicate request_size=4 [06:55:02]MH_SAM_APDU [06:55:02]CAPDU: 80 13 01 00 [06:55:02]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [06:55:02]Write i2c OK [06:55:02]MH_I2C_Read... [06:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:55:02]Read from MH i2c: E2 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: E2 0E 00 [06:55:02]MH_I2C_Read... [06:55:02]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 D1 [06:55:02]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [06:55:02]wFMCommunicate OK [06:55:02]SAM_PROTO_GetShiftState done [06:55:02]FM_GetShiftState done [06:55:02]req_shift_opened done [06:55:02]requested_item shift.open_date is exist - process it [06:55:02]req_shift_open_date [06:55:02]req_shift_open_date done [06:55:02]produce_requested_data done [06:55:02]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70648,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [06:55:02]process_action_free close_receipt [06:55:02]json_value_free [06:55:02]json_value_free done [06:55:02]process_json_proto returns [06:55:02]Send response to host [06:55:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70648,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [06:55:02]free response buf [06:55:02]execute_script done [06:55:02]execute_script returns [06:55:02]free content buf [06:55:02]Sock 9.Close socket [06:55:02]Sock 9.Thread stoped [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:41]OFD Sender: No OFD packet to send [07:03:46]OFD Sender: No OFD packet to send [07:03:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25: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:27]accept exits with 7 [07:31:27]New connection [07:31:27]New thread 3067215204 created [07:31:27]Thread 3067358564 joined [07:31:27]Waiting for new connection... [07:31:27] Sock 7.Parse request [07:31:27]Sock 7.Check first char [07:31:28]OFD Sender: No OFD packet to send [07:31:28]Sock 7.First char is OK [07:31:28]request: POST /json_proto HTTP/1.0 [07:31:28]Method: POST [07:31:28]URL: /json_proto [07:31:28]Method is POST - this is cgi request [07:31:28]url: /json_proto [07:31:28]query_string will be loaded in cgi processing [07:31:28]execute_cgi json_proto POST (null) [07:31:28]execute_cgi path=json_proto method=POST [07:31:28]POST find Content-Length [07:31:28]Host: 172.17.58.67:8080 [07:31:28]Content-Length: 816 [07:31:28]Content-Type: application/json [07:31:28] [07:31:28]POST finish read [07:31:28]Found Content-Length = 816 [07:31:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.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" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:28]execute_script... [07:31:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.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" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:28]POST & json_proto [07:31:28]process_json_proto [07:31:28]json parsed OK: [07:31:28]protocol is kg_v1.0 [07:31:28]action value=close_receipt [07:31:28]process_action close_receipt [07:31:28]cmd_close_receipt [07:31:28]MH_GetDate [07:31:28]Write to MH i2c: F0 00 00 E6 00 D5 [07:31:28]Write i2c OK [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: F0 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: F0 09 00 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: F0 09 00 E6 00 00 D2 0B BB 66 94 51 63 64 88 [07:31:28]GetLastDocTimeStamp 1723532100 [07:31:28]current date 1723534290 [07:31:28]FM_GetShiftState [07:31:28]SAM_PROTO_GetShiftState [07:31:28]wFMCommunicate request_size=4 [07:31:28]MH_SAM_APDU [07:31:28]CAPDU: 80 13 01 00 [07:31:28]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [07:31:28]Write i2c OK [07:31:28]MH_I2C_Read... [07:31:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:28]Read from MH i2c: E2 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: E2 0E 00 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 D3 [07:31:28]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [07:31:28]wFMCommunicate OK [07:31:28]SAM_PROTO_GetShiftState done [07:31:28]FM_GetShiftState done [07:31:28]opened in 1723509656 [07:31:28]opened+sec_in_day 1723596056 [07:31:28]quantity*price = 50018 [07:31:28]sum+1 = 50019 [07:31:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 0.00 Безнал.: 500.18 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 3 13.08.2024 07:31 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000000874915 ФД: 70649 ФПД: 196309943483070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T073130&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70649&fm=196309943483070&tin=02508201610067®Number=0000000000090913&sum=50018 [07:31:29]StoreToDocumentArchive [07:31:29]shift 466 fd 70649 [07:31:29]save to /storage/0466/doc_00070649 [07:31:29]save last doc name /storage/0466/doc_00070649 to /storage/kkm_last_doc_name [07:31:29]save OK [07:31:29]Clear old archive folders... [07:31:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:31:29]tlvbuf is 017969E0 [07:31:29]SAM_PROTO_ClearQueue [07:31:29]wFMCommunicate request_size=4 [07:31:29]MH_SAM_APDU [07:31:29]CAPDU: 80 09 00 00 [07:31:29]Write to MH i2c: E2 08 00 F4 00 80 09 00 00 00 00 00 00 66 [07:31:29]Write i2c OK [07:31:29]MH_I2C_Read... [07:31:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:31:29]Read from MH i2c: E2 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 03 00 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [07:31:29]RAPDU: 90 00 [07:31:29]wFMCommunicate OK [07:31:29]SAM_PROTO_ClearQueue done [07:31:29]KKMCreateOFDPacket [07:31:29]OFDProtocolAddRootSTLVToBuf [07:31:29]FM_MakeSignedData [07:31:29]FM_MakeSignedData [07:31:29]SAM_PROTO_SignData [07:31:29]wFMCommunicate request_size=4 [07:31:29]MH_SAM_APDU [07:31:29]CAPDU: 80 0D 01 02 [07:31:29]Write to MH i2c: E2 08 00 F5 00 80 0D 01 02 00 00 00 00 6E [07:31:29]Write i2c OK [07:31:29]MH_I2C_Read... [07:31:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:31:29]Read from MH i2c: E2 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 03 00 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [07:31:29]RAPDU: 90 00 [07:31:29]wFMCommunicate OK [07:31:29]wFMCommunicate request_size=255 [07:31:29]MH_SAM_APDU [07:31: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 D2 0B BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F9 13 01 00 35 04 06 00 B2 [07:31:29]Write to MH i2c: E2 02 01 F6 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 D2 0B BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F9 13 01 00 35 04 06 00 B2 00 00 A3 [07:31:29]Write i2c OK [07:31:29]MH_I2C_Read... [07:31:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:29]Read from MH i2c: E2 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 03 00 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [07:31:29]RAPDU: 90 00 [07:31:29]wFMCommunicate OK [07:31:29]wFMCommunicate request_size=10 [07:31:29]MH_SAM_APDU [07:31:29]CAPDU: 80 0D 02 02 05 8A F8 72 7A BE [07:31:29]Write to MH i2c: E2 0D 00 F7 00 80 0D 02 02 05 00 8A F8 72 7A BE 00 00 A7 [07:31:29]Write i2c OK [07:31:29]MH_I2C_Read... [07:31:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:30]Read from MH i2c: E2 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: E2 03 00 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [07:31:30]RAPDU: 90 00 [07:31:30]wFMCommunicate OK [07:31:30]wFMCommunicate request_size=4 [07:31:30]MH_SAM_APDU [07:31:30]CAPDU: 80 0D 03 02 [07:31:30]Write to MH i2c: E2 08 00 F8 00 80 0D 03 02 00 00 00 00 73 [07:31:30]Write i2c OK [07:31:30]MH_I2C_Read... [07:31:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:31:30]Read from MH i2c: E2 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: E2 0B 00 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: E2 0B 00 F8 00 00 D0 15 70 DB 32 19 83 03 90 00 75 [07:31:30]RAPDU: D0 15 70 DB 32 19 83 03 90 00 [07:31:30]wFMCommunicate OK [07:31:30]SAM_PROTO_SignData done [07:31:30]FM_MakeSignedData done [07:31:30]CreateOFDProtocolMessage [07:31:30]wFMCommunicate request_size=4 [07:31:30]MH_SAM_APDU [07:31:30]CAPDU: 80 11 00 00 [07:31:30]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [07:31:30]Write i2c OK [07:31:30]MH_I2C_Read... [07:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:30]Read from MH i2c: E2 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: E2 17 00 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C8 [07:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [07:31:30]wFMCommunicate OK [07:31:30]CreateOFDProtocolMessage done [07:31:30]OFDSenderStorePacket 70649 [07:31:30]StoreOFDPacket docnum=70649 [07:31:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 B7 03 07 01 3E 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 D2 0B BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F9 13 01 00 35 04 06 00 B2 8A F8 72 7A BE D0 15 70 DB 32 19 83 03 [07:31:30]CheckFolder [07:31:30]dirname=/storage/ofd_packets [07:31:30]CheckFolder done [07:31:30]ProducePacketName [07:31:30]name=ofd_packets/00070649 [07:31:30]NVStorageSaveData ofd_packets/00070649 [07:31:30]File name is /storage/ofd_packets/00070649 [07:31:30]Write 301 bytes [07:31:30]NVStorageSaveData done [07:31:30]OFDSenderStorePacket done [07:31:30]KKMCreateOFDPacket done [07:31:30]NVStorageSaveData kkm_last_timestamp [07:31:30]File name is /storage/kkm_last_timestamp [07:31:30]Write 4 bytes [07:31:30]NVStorageSaveData done [07:31:30]OFD Sender: Processing packet 70649 [packets to send 67, broken 66] [07:31:30]ProducePacketName [07:31:30]name=ofd_packets/00070649 [07:31:30]OFD Sender: To server: ‡•öpG, [07:31:30]CommunicateWithHost lk.salyk.kg:30040 [07:31:30]ConnectInit lk.salyk.kg [07:31:30]ExternCall_PrintAddStr [07:31:30]wPrintStart [07:31:30]Write to MH i2c: 01 00 00 FA 00 FA [07:31:30]Write i2c OK [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: 01 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: 01 07 00 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [07:31:30]RasterBufferAndPrint [07:31:30]line Счет N : (1)141102 [07:31:30]line ИÐÐ: 02508201610067 [07:31:30]line Контрольно-КаÑÑовый Чек [07:31:30]line ПРОДÐЖР[07:31:30]line ТРК (МРК, ГÐК) : 41 [07:31:30]line Товар: 2710124130 [07:31:30]line Ðи-92-К-5 [07:31:30]line 7.590 * 65.90 [07:31:30]line = 500.18 [07:31:30]line ÐДС 12% ÐСП 1% [07:31:30]line > о реализуемом товаре [07:31:30]line ИТОГО: 500.18 [07:31:30]line ÐСП 1% : 4.43 [07:31:30]line ÐДС 12% : 53.12 [07:31:30]line Ðаличными: 0.00 [07:31:30]line Безнал.: 500.18 [07:31:30]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [07:31:30]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [07:31:30]line СÐО: Общий режим [07:31:30]line Чек 3 13.08.2024 07:31 [07:31:30]line Смена: 466 ФФД: 1.0 [07:31:30]line ЗÐМ: 0300000140 [07:31:30]line РÐМ: 0000000000090913 [07:31:30]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [07:31:30]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [07:31:30]line ФМ: 0000000000874915 [07:31:30]line ФД: 70649 [07:31:30]line ФПД: 196309943483070 [07:31:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T073130&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70649&fm=196309943483070&tin=02508201610067®Number=0000000000090913&sum=50018 [07:31:30]Connected sock=11 [07:31:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 B7 03 07 01 3E 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 D2 0B BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F9 13 01 00 35 04 06 00 B2 8A F8 72 7A BE D0 15 70 DB 32 19 83 03 [07:31:30]written 0, free lines is 4095 [07:31:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 FA C9 47 00 C3 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F9 13 01 00 F4 03 04 00 BD B2 BA 66 B6 04 01 00 00 08 6A C1 B0 4E BD 61 D7 [07:31:30]CommunicateWithHost err = 0 [07:31:30]CheckOFDResponse [07:31:30]1017 (14) - 77093643461234 [07:31:30]1041 (16) - 0000000000874915 [07:31:30]1040 (4) - 70649 [07:31:30]1012 (4) - 13.08.2024 01:11 [07:31:30]1206 (1) - 0 [07:31:30]OFD Sender: Remove packet 70649 [07:31:30]ProducePacketName [07:31:30]name=ofd_packets/00070649 [07:31:30]NVStorageDeleteData [07:31:30]Write to MH i2c: 01 00 00 24 01 25 [07:31:30]Write i2c OK [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: 01 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: 01 07 00 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: 01 07 00 24 01 00 00 00 00 00 F2 0C 2A [07:31:30]RasterBufferAndPrint [07:31:30]line [07:31:30]line [07:31:30]line [07:31:30]line [07:31:30]line [07:31:30]written 0, free lines is 3319 [07:31:30]MH_Cut [07:31:30]Write to MH i2c: D1 01 00 2B 01 01 FE [07:31:30]Write i2c OK [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: D1 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: D1 01 00 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: D1 01 00 2B 01 00 FD [07:31:30]Write to MH i2c: 01 00 00 2C 01 2D [07:31:30]Write i2c OK [07:31:30]MH_I2C_Read... [07:31:31]OFD Sender: No OFD packet to send [07:31:31]*** Cut start [07:31:31]*** Purtial cut [07:31:31]*** CUTSNS_PIN = 0 [07:31:31]*** Stage 1: CUTSNS_PIN = 1 [07:31:33]Read from MH i2c: 01 [07:31:33]MH_I2C_Read... [07:31:33]*** Stop cut motor [07:31:33]*** Cut end [07:31:33]Read from MH i2c: 01 07 00 [07:31:33]MH_I2C_Read... [07:31:33]Read from MH i2c: 01 07 00 2C 01 00 00 00 00 00 FF 0F 42 [07:31:33]process_action close_receipt done [07:31:33]requested_data is exist [07:31:33]produce_requested_data [07:31:33]requested_item fm.sn is exist - process it [07:31:33]wFMCommunicate request_size=4 [07:31:33]MH_SAM_APDU [07:31:33]CAPDU: 80 11 00 00 [07:31:33]Write to MH i2c: E2 08 00 2D 01 80 11 00 00 00 00 00 00 A8 [07:31:33]Write i2c OK [07:31:33]MH_I2C_Read... [07:31:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:33]Read from MH i2c: E2 [07:31:33]MH_I2C_Read... [07:31:33]Read from MH i2c: E2 17 00 [07:31:33]MH_I2C_Read... [07:31:33]Read from MH i2c: E2 17 00 2D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 FD [07:31:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [07:31:33]wFMCommunicate OK [07:31:33]requested_item fd.num is exist - process it [07:31:33]SAM_PROTO_GetFieldsCounters [07:31:33]wFMCommunicate request_size=4 [07:31:33]MH_SAM_APDU [07:31:33]CAPDU: 80 13 00 00 [07:31:33]Write to MH i2c: E2 08 00 2E 01 80 13 00 00 00 00 00 00 AB [07:31:33]Write i2c OK [07:31:33]MH_I2C_Read... [07:31:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:31:33]Read from MH i2c: E2 [07:31:33]MH_I2C_Read... [07:31:33]Read from MH i2c: E2 62 00 [07:31:33]MH_I2C_Read... [07:31:33]Read from MH i2c: E2 62 00 2E 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F9 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [07:31: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F9 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:31:33]wFMCommunicate OK [07:31:33]SAM_PROTO_GetFieldsCounters done [07:31:33]requested_item shift.num is exist - process it [07:31:33]requested_item shift.opened is exist - process it [07:31:33]req_shift_opened [07:31:33]FM_GetShiftState [07:31:33]SAM_PROTO_GetShiftState [07:31:33]wFMCommunicate request_size=4 [07:31:33]MH_SAM_APDU [07:31:33]CAPDU: 80 13 01 00 [07:31:33]Write to MH i2c: E2 08 00 2F 01 80 13 01 00 00 00 00 00 AD [07:31:33]Write i2c OK [07:31:33]MH_I2C_Read... [07:31:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:33]Read from MH i2c: E2 [07:31:33]MH_I2C_Read... [07:31:33]Read from MH i2c: E2 0E 00 [07:31:33]MH_I2C_Read... [07:31:33]Read from MH i2c: E2 0E 00 2F 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 1C [07:31:33]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [07:31:33]wFMCommunicate OK [07:31:33]SAM_PROTO_GetShiftState done [07:31:33]FM_GetShiftState done [07:31:33]req_shift_opened done [07:31:33]requested_item shift.open_date is exist - process it [07:31:33]req_shift_open_date [07:31:33]req_shift_open_date done [07:31:33]produce_requested_data done [07:31:33]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70649,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [07:31:33]process_action_free close_receipt [07:31:33]json_value_free [07:31:33]json_value_free done [07:31:33]process_json_proto returns [07:31:33]Send response to host [07:31:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70649,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [07:31:33]free response buf [07:31:33]execute_script done [07:31:33]execute_script returns [07:31:33]free content buf [07:31:33]Sock 7.Close socket [07:31:33]Sock 7.Thread stoped [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:10]int [07:37:10]Write to MH i2c: 01 00 00 30 01 31 [07:37:10]*** FLAG_PRN_KEY set [07:37:10]Write i2c OK [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: 01 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: 01 07 00 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: 01 07 00 30 01 00 08 00 00 00 FF 0F 4E [07:37:10]state=0 [07:37:10]Key pressed [07:37:10]Feed [07:37:10]Write to MH i2c: D8 00 00 31 01 09 [07:37:10]Write i2c OK [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: D8 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: D8 01 00 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: D8 01 00 31 01 00 0A [07:37:10]int [07:37:10]Write to MH i2c: 01 00 00 32 01 33 [07:37:10]Write i2c OK [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: 01 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: 01 07 00 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: 01 07 00 32 01 00 48 00 00 00 3C 00 BE [07:37:10]state=2 [07:37:10]Key pressed [07:37:10]int [07:37:10]Write to MH i2c: 01 00 00 33 01 34 [07:37:10]*** FLAG_PRN_KEY reset [07:37:10]Write i2c OK [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: 01 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: 01 07 00 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: 01 07 00 33 01 00 00 00 00 00 F6 0F 40 [07:37:10]state=2 [07:37:10]Stop feed [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:22]accept exits with 9 [07:37:22]New connection [07:37:22]New thread 3067358564 created [07:37:22]Thread 3067215204 joined [07:37:22]Waiting for new connection... [07:37:22] Sock 9.Parse request [07:37:22]Sock 9.Check first char [07:37:22]Sock 9.First char is OK [07:37:22]request: POST /json_proto HTTP/1.0 [07:37:22]Method: POST [07:37:22]URL: /json_proto [07:37:22]Method is POST - this is cgi request [07:37:22]url: /json_proto [07:37:22]query_string will be loaded in cgi processing [07:37:22]execute_cgi json_proto POST (null) [07:37:22]execute_cgi path=json_proto method=POST [07:37:22]POST find Content-Length [07:37:22]Host: 172.17.58.67:8080 [07:37:22]Content-Length: 679 [07:37:22]Content-Type: application/json [07:37:22] [07:37:22]POST finish read [07:37:22]Found Content-Length = 679 [07:37:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "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:37:22]execute_script... [07:37: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)141103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "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:37:22]POST & json_proto [07:37:22]process_json_proto [07:37:22]json parsed OK: [07:37:22]protocol is kg_v1.0 [07:37:22]action value=close_receipt [07:37:22]process_action close_receipt [07:37:22]cmd_close_receipt [07:37:22]MH_GetDate [07:37:22]Write to MH i2c: F0 00 00 34 01 24 [07:37:22]Write i2c OK [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: F0 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: F0 09 00 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: F0 09 00 34 01 00 34 0D BB 66 94 51 63 64 3B [07:37:22]GetLastDocTimeStamp 1723534290 [07:37:22]current date 1723534644 [07:37:22]FM_GetShiftState [07:37:22]SAM_PROTO_GetShiftState [07:37:22]wFMCommunicate request_size=4 [07:37:22]MH_SAM_APDU [07:37:22]CAPDU: 80 13 01 00 [07:37:22]Write to MH i2c: E2 08 00 35 01 80 13 01 00 00 00 00 00 B3 [07:37:22]Write i2c OK [07:37:22]MH_I2C_Read... [07:37:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:22]Read from MH i2c: E2 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: E2 0E 00 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: E2 0E 00 35 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 22 [07:37:22]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [07:37:22]wFMCommunicate OK [07:37:22]SAM_PROTO_GetShiftState done [07:37:22]FM_GetShiftState done [07:37:22]opened in 1723509656 [07:37:22]opened+sec_in_day 1723596056 [07:37:22]quantity*price = 100068 [07:37:22]sum+1 = 100069 [07:37:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.68 ИТОГО: 1000.00 ВнеÑено: 1000.00 СДÐЧÐ: 0.00 ÐСП 1% : 8.86 ÐДС 12% : 106.27 Ðаличными: 1000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 4 13.08.2024 07:37 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70650 ФПД: 185563262176361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T073724&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70650&fm=185563262176361&tin=02508201610067®Number=0000000000090913&sum=100000 [07:37:23]StoreToDocumentArchive [07:37:23]shift 466 fd 70650 [07:37:23]save to /storage/0466/doc_00070650 [07:37:23]save last doc name /storage/0466/doc_00070650 to /storage/kkm_last_doc_name [07:37:23]save OK [07:37:23]Clear old archive folders... [07:37:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:37:23]tlvbuf is 01795730 [07:37:23]SAM_PROTO_ClearQueue [07:37:23]wFMCommunicate request_size=4 [07:37:23]MH_SAM_APDU [07:37:23]CAPDU: 80 09 00 00 [07:37:23]Write to MH i2c: E2 08 00 42 01 80 09 00 00 00 00 00 00 B5 [07:37:23]Write i2c OK [07:37:23]MH_I2C_Read... [07:37:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:37:23]Read from MH i2c: E2 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: E2 03 00 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [07:37:23]RAPDU: 90 00 [07:37:23]wFMCommunicate OK [07:37:23]SAM_PROTO_ClearQueue done [07:37:23]KKMCreateOFDPacket [07:37:23]OFDProtocolAddRootSTLVToBuf [07:37:23]FM_MakeSignedData [07:37:23]FM_MakeSignedData [07:37:23]SAM_PROTO_SignData [07:37:23]wFMCommunicate request_size=4 [07:37:23]MH_SAM_APDU [07:37:23]CAPDU: 80 0D 01 02 [07:37:23]Write to MH i2c: E2 08 00 43 01 80 0D 01 02 00 00 00 00 BD [07:37:23]Write i2c OK [07:37:23]MH_I2C_Read... [07:37:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:37:23]Read from MH i2c: E2 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: E2 03 00 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [07:37:23]RAPDU: 90 00 [07:37:23]wFMCommunicate OK [07:37:23]wFMCommunicate request_size=255 [07:37:23]MH_SAM_APDU [07:37: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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 34 0D BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FA 13 01 00 35 04 06 00 A8 C4 D0 53 [07:37:23]Write to MH i2c: E2 02 01 44 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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 34 0D BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FA 13 01 00 35 04 06 00 A8 C4 D0 53 00 00 B8 [07:37:23]Write i2c OK [07:37:23]MH_I2C_Read... [07:37:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:24]Read from MH i2c: E2 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: E2 03 00 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: E2 03 00 44 01 00 90 00 B9 [07:37:24]RAPDU: 90 00 [07:37:24]wFMCommunicate OK [07:37:24]wFMCommunicate request_size=7 [07:37:24]MH_SAM_APDU [07:37:24]CAPDU: 80 0D 02 02 02 4C 69 [07:37:24]Write to MH i2c: E2 0A 00 45 01 80 0D 02 02 02 00 4C 69 00 00 79 [07:37:24]Write i2c OK [07:37:24]MH_I2C_Read... [07:37:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:24]Read from MH i2c: E2 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: E2 03 00 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [07:37:24]RAPDU: 90 00 [07:37:24]wFMCommunicate OK [07:37:24]wFMCommunicate request_size=4 [07:37:24]MH_SAM_APDU [07:37:24]CAPDU: 80 0D 03 02 [07:37:24]Write to MH i2c: E2 08 00 46 01 80 0D 03 02 00 00 00 00 C2 [07:37:24]Write i2c OK [07:37:24]MH_I2C_Read... [07:37:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:37:24]Read from MH i2c: E2 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: E2 0B 00 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: E2 0B 00 46 01 00 FD 01 86 7C 66 F1 71 24 90 00 AF [07:37:24]RAPDU: FD 01 86 7C 66 F1 71 24 90 00 [07:37:24]wFMCommunicate OK [07:37:24]SAM_PROTO_SignData done [07:37:24]FM_MakeSignedData done [07:37:24]CreateOFDProtocolMessage [07:37:24]wFMCommunicate request_size=4 [07:37:24]MH_SAM_APDU [07:37:24]CAPDU: 80 11 00 00 [07:37:24]Write to MH i2c: E2 08 00 47 01 80 11 00 00 00 00 00 00 C2 [07:37:24]Write i2c OK [07:37:24]MH_I2C_Read... [07:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:24]Read from MH i2c: E2 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: E2 17 00 [07:37:24]MH_I2C_Read... [07:37:24]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 39 31 35 90 00 17 [07:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [07:37:24]wFMCommunicate OK [07:37:24]CreateOFDProtocolMessage done [07:37:24]OFDSenderStorePacket 70650 [07:37:24]StoreOFDPacket docnum=70650 [07:37:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 F3 6A 04 01 3F 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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 34 0D BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FA 13 01 00 35 04 06 00 A8 C4 D0 53 4C 69 FD 01 86 7C 66 F1 71 24 [07:37:24]CheckFolder [07:37:24]dirname=/storage/ofd_packets [07:37:24]CheckFolder done [07:37:24]ProducePacketName [07:37:24]name=ofd_packets/00070650 [07:37:24]NVStorageSaveData ofd_packets/00070650 [07:37:24]File name is /storage/ofd_packets/00070650 [07:37:24]Write 298 bytes [07:37:24]NVStorageSaveData done [07:37:24]OFDSenderStorePacket done [07:37:24]KKMCreateOFDPacket done [07:37:24]NVStorageSaveData kkm_last_timestamp [07:37:24]File name is /storage/kkm_last_timestamp [07:37:24]Write 4 bytes [07:37:24]NVStorageSaveData done [07:37:24]ExternCall_PrintAddStr [07:37:24]wPrintStart [07:37:24]Write to MH i2c: 01 00 00 48 01 49 [07:37:24]Write i2c OK [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: 01 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: 01 07 00 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: 01 07 00 48 01 00 00 00 00 00 FF 0F 5E [07:37:24]RasterBufferAndPrint [07:37:24]line Счет N : (1)141103 [07:37:24]line ИÐÐ: 02508201610067 [07:37:24]line Контрольно-КаÑÑовый Чек [07:37:24]line ПРОДÐЖР[07:37:24]line ТРК (МРК, ГÐК) : 24 [07:37:24]line Товар: 2710194210 [07:37:24]line ДТ-К-5 [07:37:24]line 13.450 * 74.40 [07:37:24]line = 1000.68 [07:37:24]line ÐДС 12% ÐСП 1% [07:37:24]line > о реализуемом товаре [07:37:24]line ОКРУГЛЕÐИЕ: -0.68 [07:37:24]line ИТОГО: 1000.00 [07:37:24]line ВнеÑено: 1000.00 [07:37:24]line СДÐЧÐ: 0.00 [07:37:24]line ÐСП 1% : 8.86 [07:37:24]line ÐДС 12% : 106.27 [07:37:24]line Ðаличными: 1000.00 [07:37:24]line Безнал.: 0.00 [07:37:24]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [07:37:24]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [07:37:24]line СÐО: Общий режим [07:37:24]line Чек 4 13.08.2024 07:37 [07:37:24]line Смена: 466 ФФД: 1.0 [07:37:24]line ЗÐМ: 0300000140 [07:37:24]line РÐМ: 0000000000090913 [07:37:24]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [07:37:24]line ФМ: 0000000000874915 [07:37:24]line ФД: 70650 [07:37:24]line ФПД: 185563262176361 [07:37:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T073724&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70650&fm=185563262176361&tin=02508201610067®Number=0000000000090913&sum=100000 [07:37:24]OFD Sender: Processing packet 70650 [packets to send 67, broken 66] [07:37:24]ProducePacketName [07:37:24]name=ofd_packets/00070650 [07:37:24]OFD Sender: To server: ‡•öpG, [07:37:24]CommunicateWithHost lk.salyk.kg:30040 [07:37:24]ConnectInit lk.salyk.kg [07:37:24]written 0, free lines is 4095 [07:37:24]Connected sock=10 [07:37: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 39 31 35 0C 01 00 00 F3 6A 04 01 3F 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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 34 0D BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FA 13 01 00 35 04 06 00 A8 C4 D0 53 4C 69 FD 01 86 7C 66 F1 71 24 [07:37:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 6B C7 47 00 A7 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 39 31 35 10 04 04 00 FA 13 01 00 F4 03 04 00 1F B4 BA 66 B6 04 01 00 00 EB 5C 8E AF 72 F1 26 A5 [07:37:24]CommunicateWithHost err = 0 [07:37:24]CheckOFDResponse [07:37:24]1017 (14) - 77093643461234 [07:37:24]1041 (16) - 0000000000874915 [07:37:24]1040 (4) - 70650 [07:37:24]1012 (4) - 13.08.2024 01:17 [07:37:24]1206 (1) - 0 [07:37:24]OFD Sender: Remove packet 70650 [07:37:24]ProducePacketName [07:37:24]name=ofd_packets/00070650 [07:37:24]NVStorageDeleteData [07:37:25]Write to MH i2c: 01 00 00 73 01 74 [07:37:25]Write i2c OK [07:37:25]MH_I2C_Read... [07:37:25]Read from MH i2c: 01 [07:37:25]MH_I2C_Read... [07:37:25]Read from MH i2c: 01 07 00 [07:37:25]MH_I2C_Read... [07:37:25]Read from MH i2c: 01 07 00 73 01 00 00 00 00 00 E4 0C 6B [07:37:25]RasterBufferAndPrint [07:37:25]line [07:37:25]line [07:37:25]line [07:37:25]line [07:37:25]line [07:37:25]written 0, free lines is 3306 [07:37:25]MH_Cut [07:37:25]Write to MH i2c: D1 01 00 7A 01 01 4D [07:37:25]Write i2c OK [07:37:25]MH_I2C_Read... [07:37:25]Read from MH i2c: D1 [07:37:25]MH_I2C_Read... [07:37:25]Read from MH i2c: D1 01 00 [07:37:25]MH_I2C_Read... [07:37:25]Read from MH i2c: D1 01 00 7A 01 00 4C [07:37:25]Write to MH i2c: 01 00 00 7B 01 7C [07:37:25]Write i2c OK [07:37:25]MH_I2C_Read... [07:37:25]OFD Sender: No OFD packet to send [07:37:25]*** Cut start [07:37:25]*** Purtial cut [07:37:25]*** Stage 1: CUTSNS_PIN = 1 [07:37:26]Read from MH i2c: 01 [07:37:26]MH_I2C_Read... [07:37:26]*** Stop cut motor [07:37:26]*** Cut end [07:37:26]Read from MH i2c: 01 07 00 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: 01 07 00 7B 01 00 00 00 00 00 FF 0F 91 [07:37:26]process_action close_receipt done [07:37:26]requested_data is exist [07:37:26]produce_requested_data [07:37:26]requested_item fm.sn is exist - process it [07:37:26]wFMCommunicate request_size=4 [07:37:26]MH_SAM_APDU [07:37:26]CAPDU: 80 11 00 00 [07:37:26]Write to MH i2c: E2 08 00 7C 01 80 11 00 00 00 00 00 00 F7 [07:37:26]Write i2c OK [07:37:26]MH_I2C_Read... [07:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:26]Read from MH i2c: E2 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 17 00 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 17 00 7C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 4C [07:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [07:37:26]wFMCommunicate OK [07:37:26]requested_item fd.num is exist - process it [07:37:26]SAM_PROTO_GetFieldsCounters [07:37:26]wFMCommunicate request_size=4 [07:37:26]MH_SAM_APDU [07:37:26]CAPDU: 80 13 00 00 [07:37:26]Write to MH i2c: E2 08 00 7D 01 80 13 00 00 00 00 00 00 FA [07:37:26]Write i2c OK [07:37:26]MH_I2C_Read... [07:37:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:37:26]Read from MH i2c: E2 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 62 00 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 62 00 7D 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 FA 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [07:37: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 FA 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:37:26]wFMCommunicate OK [07:37:26]SAM_PROTO_GetFieldsCounters done [07:37:26]requested_item shift.num is exist - process it [07:37:26]requested_item shift.opened is exist - process it [07:37:26]req_shift_opened [07:37:26]FM_GetShiftState [07:37:26]SAM_PROTO_GetShiftState [07:37:26]wFMCommunicate request_size=4 [07:37:26]MH_SAM_APDU [07:37:26]CAPDU: 80 13 01 00 [07:37:26]Write to MH i2c: E2 08 00 7E 01 80 13 01 00 00 00 00 00 FC [07:37:26]Write i2c OK [07:37:26]MH_I2C_Read... [07:37:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:26]Read from MH i2c: E2 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 0E 00 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 0E 00 7E 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 6B [07:37:26]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [07:37:26]wFMCommunicate OK [07:37:26]SAM_PROTO_GetShiftState done [07:37:26]FM_GetShiftState done [07:37:26]req_shift_opened done [07:37:26]requested_item shift.open_date is exist - process it [07:37:26]req_shift_open_date [07:37:26]req_shift_open_date done [07:37:26]produce_requested_data done [07:37:26]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70650,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [07:37:26]process_action_free close_receipt [07:37:26]json_value_free [07:37:26]json_value_free done [07:37:26]process_json_proto returns [07:37:26]Send response to host [07:37:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70650,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [07:37:26]free response buf [07:37:26]execute_script done [07:37:26]execute_script returns [07:37:26]free content buf [07:37:26]Sock 9.Close socket [07:37:26]Sock 9.Thread stoped [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:03]accept exits with 7 [07:41:03]New connection [07:41:03]New thread 3067215204 created [07:41:03]Thread 3067358564 joined [07:41:03]Waiting for new connection... [07:41:03] Sock 7.Parse request [07:41:03]Sock 7.Check first char [07:41:03]Sock 7.First char is OK [07:41:03]request: POST /json_proto HTTP/1.0 [07:41:03]Method: POST [07:41:03]URL: /json_proto [07:41:03]Method is POST - this is cgi request [07:41:03]url: /json_proto [07:41:03]query_string will be loaded in cgi processing [07:41:03]execute_cgi json_proto POST (null) [07:41:03]execute_cgi path=json_proto method=POST [07:41:03]POST find Content-Length [07:41:03]Host: 172.17.58.67:8080 [07:41:03]Content-Length: 1196 [07:41:03]Content-Type: application/json [07:41:03] [07:41:03]POST finish read [07:41:03]Found Content-Length = 1196 [07:41: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141104\u000A13.08.2024 07:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A4211971\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:03]execute_script... [07:41: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141104\u000A13.08.2024 07:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A4211971\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:03]POST & json_proto [07:41:03]process_json_proto [07:41:03]json parsed OK: [07:41:03]protocol is kg_v1.0 [07:41:03]action value=print_text [07:41:03]process_action print_text [07:41:03]cmd_print_text [07:41:03]ExternCall_PrintAddStr [07:41:03]wPrintStart [07:41:03]Write to MH i2c: 01 00 00 7F 01 80 [07:41:03]Write i2c OK [07:41:03]MH_I2C_Read... [07:41:03]Read from MH i2c: 01 [07:41:03]MH_I2C_Read... [07:41:03]Read from MH i2c: 01 07 00 [07:41:03]MH_I2C_Read... [07:41:03]Read from MH i2c: 01 07 00 7F 01 00 00 00 00 00 FF 0F 95 [07:41:03]RasterBufferAndPrint [07:41:03]line *****ТОВÐРÐЫЙ ЧЕК***** [07:41:03]line ÐЗС 39 [07:41:03]line Партнер нефть [07:41:03]line 02508201610067 [07:41:03]line КаÑÑир : ОваÑбекова Л. [07:41:03]line Счет N : (1)141104 [07:41:03]line 13.08.2024 07:00 [07:41:03]line ПРОДÐЖР[07:41:03]line ТРК (МРК, ГÐК): 41 [07:41:03]line Вид ГСМ : 2710124130 [07:41:03]line Ðи-92-К-5 [07:41:03]line 10.000 x 65.90 [07:41:03]line ИТОГ: 659.00 [07:41:03]line Тип оплаты: Талоны: Партнер нефть [07:41:03]line 4211971 [07:41:03]line ______________________ [07:41:03]line (подпиÑÑŒ) [07:41:03]written 0, free lines is 4095 [07:41:03]Write to MH i2c: 01 00 00 93 01 94 [07:41:03]Write i2c OK [07:41:03]MH_I2C_Read... [07:41:03]Read from MH i2c: 01 [07:41:03]MH_I2C_Read... [07:41:03]Read from MH i2c: 01 07 00 [07:41:03]MH_I2C_Read... [07:41:03]Read from MH i2c: 01 07 00 93 01 00 00 00 00 00 0F 0E B8 [07:41:03]RasterBufferAndPrint [07:41:03]line [07:41:03]line [07:41:03]line [07:41:03]line [07:41:03]line [07:41:03]written 0, free lines is 3601 [07:41:03]MH_Cut [07:41:03]Write to MH i2c: D1 01 00 9A 01 01 6D [07:41:03]Write i2c OK [07:41:03]MH_I2C_Read... [07:41:03]Read from MH i2c: D1 [07:41:03]MH_I2C_Read... [07:41:03]Read from MH i2c: D1 01 00 [07:41:03]MH_I2C_Read... [07:41:03]Read from MH i2c: D1 01 00 9A 01 00 6C [07:41:03]Write to MH i2c: 01 00 00 9B 01 9C [07:41:03]Write i2c OK [07:41:03]MH_I2C_Read... [07:41:03]*** Cut start [07:41:03]*** Purtial cut [07:41:03]*** CUTSNS_PIN = 0 [07:41:04]*** Stage 1: CUTSNS_PIN = 1 [07:41:05]OFD Sender: No OFD packet to send [07:41:06]Read from MH i2c: 01 [07:41:06]MH_I2C_Read... [07:41:06]*** Stop cut motor [07:41:06]*** Cut end [07:41:06]Read from MH i2c: 01 07 00 [07:41:06]MH_I2C_Read... [07:41:06]Read from MH i2c: 01 07 00 9B 01 00 00 00 00 00 FF 0F B1 [07:41:06]process_action print_text done [07:41:06]requested_data is exist [07:41:06]produce_requested_data [07:41:06]requested_item fm.sn is exist - process it [07:41:06]wFMCommunicate request_size=4 [07:41:06]MH_SAM_APDU [07:41:06]CAPDU: 80 11 00 00 [07:41:06]Write to MH i2c: E2 08 00 9C 01 80 11 00 00 00 00 00 00 17 [07:41:06]Write i2c OK [07:41:06]MH_I2C_Read... [07:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:06]Read from MH i2c: E2 [07:41:06]MH_I2C_Read... [07:41:06]Read from MH i2c: E2 17 00 [07:41:06]MH_I2C_Read... [07:41:06]Read from MH i2c: E2 17 00 9C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 6C [07:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [07:41:06]wFMCommunicate OK [07:41:06]requested_item fd.num is exist - process it [07:41:06]SAM_PROTO_GetFieldsCounters [07:41:06]wFMCommunicate request_size=4 [07:41:06]MH_SAM_APDU [07:41:06]CAPDU: 80 13 00 00 [07:41:06]Write to MH i2c: E2 08 00 9D 01 80 13 00 00 00 00 00 00 1A [07:41:06]Write i2c OK [07:41:06]MH_I2C_Read... [07:41:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:06]Read from MH i2c: E2 [07:41:06]MH_I2C_Read... [07:41:06]Read from MH i2c: E2 62 00 [07:41:06]MH_I2C_Read... [07:41:06]Read from MH i2c: E2 62 00 9D 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 FA 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [07:41: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 FA 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:41:06]wFMCommunicate OK [07:41:06]SAM_PROTO_GetFieldsCounters done [07:41:06]requested_item shift.num is exist - process it [07:41:06]requested_item shift.opened is exist - process it [07:41:06]req_shift_opened [07:41:06]FM_GetShiftState [07:41:06]SAM_PROTO_GetShiftState [07:41:06]wFMCommunicate request_size=4 [07:41:06]MH_SAM_APDU [07:41:06]CAPDU: 80 13 01 00 [07:41:06]Write to MH i2c: E2 08 00 9E 01 80 13 01 00 00 00 00 00 1C [07:41:06]Write i2c OK [07:41:06]MH_I2C_Read... [07:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:06]Read from MH i2c: E2 [07:41:06]MH_I2C_Read... [07:41:06]Read from MH i2c: E2 0E 00 [07:41:06]MH_I2C_Read... [07:41:06]Read from MH i2c: E2 0E 00 9E 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 8B [07:41:06]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [07:41:06]wFMCommunicate OK [07:41:06]SAM_PROTO_GetShiftState done [07:41:06]FM_GetShiftState done [07:41:06]req_shift_opened done [07:41:06]requested_item shift.open_date is exist - process it [07:41:06]req_shift_open_date [07:41:06]req_shift_open_date done [07:41:06]produce_requested_data done [07:41:06]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70650,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [07:41:06]process_action_free print_text [07:41:06]json_value_free [07:41:06]json_value_free done [07:41:06]process_json_proto returns [07:41:06]Send response to host [07:41:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70650,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [07:41:06]free response buf [07:41:06]execute_script done [07:41:06]execute_script returns [07:41:06]free content buf [07:41:06]Sock 7.Close socket [07:41:06]Sock 7.Thread stoped [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01: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:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:56]accept exits with 10 [08:12:56]New connection [08:12:56]New thread 3067358564 created [08:12:56]Thread 3067215204 joined [08:12:56]Waiting for new connection... [08:12:56] Sock 10.Parse request [08:12:56]Sock 10.Check first char [08:12:56]Sock 10.First char is OK [08:12:56]request: POST /json_proto HTTP/1.0 [08:12:56]Method: POST [08:12:56]URL: /json_proto [08:12:56]Method is POST - this is cgi request [08:12:56]url: /json_proto [08:12:56]query_string will be loaded in cgi processing [08:12:56]execute_cgi json_proto POST (null) [08:12:56]execute_cgi path=json_proto method=POST [08:12:56]POST find Content-Length [08:12:56]Host: 172.17.58.67:8080 [08:12:56]Content-Length: 682 [08:12:56]Content-Type: application/json [08:12:56] [08:12:56]POST finish read [08:12:56]Found Content-Length = 682 [08:12:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:56]execute_script... [08:12: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)141105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:56]POST & json_proto [08:12:56]process_json_proto [08:12:56]json parsed OK: [08:12:56]protocol is kg_v1.0 [08:12:56]action value=close_receipt [08:12:56]process_action close_receipt [08:12:56]cmd_close_receipt [08:12:56]MH_GetDate [08:12:56]Write to MH i2c: F0 00 00 9F 01 8F [08:12:56]Write i2c OK [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: F0 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: F0 09 00 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: F0 09 00 9F 01 00 8A 15 BB 66 94 51 63 64 04 [08:12:56]GetLastDocTimeStamp 1723534644 [08:12:56]current date 1723536778 [08:12:56]FM_GetShiftState [08:12:56]SAM_PROTO_GetShiftState [08:12:56]wFMCommunicate request_size=4 [08:12:56]MH_SAM_APDU [08:12:56]CAPDU: 80 13 01 00 [08:12:56]Write to MH i2c: E2 08 00 A0 01 80 13 01 00 00 00 00 00 1E [08:12:56]Write i2c OK [08:12:56]MH_I2C_Read... [08:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:56]Read from MH i2c: E2 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: E2 0E 00 [08:12:56]MH_I2C_Read... [08:12:56]Read from MH i2c: E2 0E 00 A0 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 8D [08:12:56]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:12:56]wFMCommunicate OK [08:12:56]SAM_PROTO_GetShiftState done [08:12:56]FM_GetShiftState done [08:12:56]opened in 1723509656 [08:12:56]opened+sec_in_day 1723596056 [08:12:56]quantity*price = 100036 [08:12:56]sum+1 = 100037 [08:12:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.36 ИТОГО: 1000.00 ВнеÑено: 1000.00 СДÐЧÐ: 0.00 ÐСП 1% : 8.85 ÐДС 12% : 106.23 Ðаличными: 1000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 5 13.08.2024 08:12 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70651 ФПД: 131838686007468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T081258&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70651&fm=131838686007468&tin=02508201610067®Number=0000000000090913&sum=100000 [08:12:57]StoreToDocumentArchive [08:12:57]shift 466 fd 70651 [08:12:57]save to /storage/0466/doc_00070651 [08:12:57]save last doc name /storage/0466/doc_00070651 to /storage/kkm_last_doc_name [08:12:57]save OK [08:12:57]Clear old archive folders... [08:12:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:12:57]tlvbuf is 017E42F0 [08:12:57]SAM_PROTO_ClearQueue [08:12:57]wFMCommunicate request_size=4 [08:12:57]MH_SAM_APDU [08:12:57]CAPDU: 80 09 00 00 [08:12:57]Write to MH i2c: E2 08 00 AD 01 80 09 00 00 00 00 00 00 20 [08:12:57]Write i2c OK [08:12:57]MH_I2C_Read... [08:12:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:57]Read from MH i2c: E2 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 03 00 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 03 00 AD 01 00 90 00 22 [08:12:57]RAPDU: 90 00 [08:12:57]wFMCommunicate OK [08:12:57]SAM_PROTO_ClearQueue done [08:12:57]KKMCreateOFDPacket [08:12:57]OFDProtocolAddRootSTLVToBuf [08:12:57]FM_MakeSignedData [08:12:57]FM_MakeSignedData [08:12:57]SAM_PROTO_SignData [08:12:57]wFMCommunicate request_size=4 [08:12:57]MH_SAM_APDU [08:12:57]CAPDU: 80 0D 01 02 [08:12:57]Write to MH i2c: E2 08 00 AE 01 80 0D 01 02 00 00 00 00 28 [08:12:57]Write i2c OK [08:12:57]MH_I2C_Read... [08:12:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:57]Read from MH i2c: E2 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 03 00 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 03 00 AE 01 00 90 00 23 [08:12:57]RAPDU: 90 00 [08:12:57]wFMCommunicate OK [08:12:57]wFMCommunicate request_size=255 [08:12:57]MH_SAM_APDU [08:12:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 8A 15 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FB 13 01 00 35 04 06 00 77 [08:12:57]Write to MH i2c: E2 02 01 AF 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 8A 15 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FB 13 01 00 35 04 06 00 77 00 00 66 [08:12:57]OFD Sender: No OFD packet to send [08:12:57]Write i2c OK [08:12:57]MH_I2C_Read... [08:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:57]Read from MH i2c: E2 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 03 00 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 03 00 AF 01 00 90 00 24 [08:12:57]RAPDU: 90 00 [08:12:57]wFMCommunicate OK [08:12:57]wFMCommunicate request_size=10 [08:12:57]MH_SAM_APDU [08:12:57]CAPDU: 80 0D 02 02 05 E8 16 0C 10 AC [08:12:57]Write to MH i2c: E2 0D 00 B0 01 80 0D 02 02 05 00 E8 16 0C 10 AC 00 00 FB [08:12:57]Write i2c OK [08:12:57]MH_I2C_Read... [08:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:57]Read from MH i2c: E2 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 03 00 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 03 00 B0 01 00 90 00 25 [08:12:57]RAPDU: 90 00 [08:12:57]wFMCommunicate OK [08:12:57]wFMCommunicate request_size=4 [08:12:57]MH_SAM_APDU [08:12:57]CAPDU: 80 0D 03 02 [08:12:57]Write to MH i2c: E2 08 00 B1 01 80 0D 03 02 00 00 00 00 2D [08:12:57]Write i2c OK [08:12:57]MH_I2C_Read... [08:12:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:57]Read from MH i2c: E2 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 0B 00 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 0B 00 B1 01 00 F1 40 B1 05 B3 8C CB C3 90 00 E2 [08:12:57]RAPDU: F1 40 B1 05 B3 8C CB C3 90 00 [08:12:57]wFMCommunicate OK [08:12:57]SAM_PROTO_SignData done [08:12:57]FM_MakeSignedData done [08:12:57]CreateOFDProtocolMessage [08:12:57]wFMCommunicate request_size=4 [08:12:57]MH_SAM_APDU [08:12:57]CAPDU: 80 11 00 00 [08:12:57]Write to MH i2c: E2 08 00 B2 01 80 11 00 00 00 00 00 00 2D [08:12:57]Write i2c OK [08:12:57]MH_I2C_Read... [08:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:57]Read from MH i2c: E2 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 17 00 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 17 00 B2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 82 [08:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:12:57]wFMCommunicate OK [08:12:57]CreateOFDProtocolMessage done [08:12:57]OFDSenderStorePacket 70651 [08:12:57]StoreOFDPacket docnum=70651 [08:12:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 49 08 07 01 FD 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 8A 15 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FB 13 01 00 35 04 06 00 77 E8 16 0C 10 AC F1 40 B1 05 B3 8C CB C3 [08:12:57]CheckFolder [08:12:57]dirname=/storage/ofd_packets [08:12:57]CheckFolder done [08:12:57]ProducePacketName [08:12:57]name=ofd_packets/00070651 [08:12:57]NVStorageSaveData ofd_packets/00070651 [08:12:57]File name is /storage/ofd_packets/00070651 [08:12:57]Write 301 bytes [08:12:57]NVStorageSaveData done [08:12:57]OFDSenderStorePacket done [08:12:57]KKMCreateOFDPacket done [08:12:57]NVStorageSaveData kkm_last_timestamp [08:12:57]File name is /storage/kkm_last_timestamp [08:12:57]Write 4 bytes [08:12:57]NVStorageSaveData done [08:12:57]ExternCall_PrintAddStr [08:12:57]wPrintStart [08:12:57]Write to MH i2c: 01 00 00 B3 01 B4 [08:12:57]Write i2c OK [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: 01 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: 01 07 00 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: 01 07 00 B3 01 00 00 00 00 00 FF 0F C9 [08:12:57]RasterBufferAndPrint [08:12:57]line Счет N : (1)141105 [08:12:57]line ИÐÐ: 02508201610067 [08:12:57]line Контрольно-КаÑÑовый Чек [08:12:57]line ПРОДÐЖР[08:12:57]line ТРК (МРК, ГÐК) : 41 [08:12:57]line Товар: 2710124130 [08:12:57]line Ðи-92-К-5 [08:12:57]line 15.180 * 65.90 [08:12:57]line = 1000.36 [08:12:57]line ÐДС 12% ÐСП 1% [08:12:57]line > о реализуемом товаре [08:12:57]line ОКРУГЛЕÐИЕ: -0.36 [08:12:57]line ИТОГО: 1000.00 [08:12:57]line ВнеÑено: 1000.00 [08:12:57]line СДÐЧÐ: 0.00 [08:12:57]line ÐСП 1% : 8.85 [08:12:57]line ÐДС 12% : 106.23 [08:12:57]line Ðаличными: 1000.00 [08:12:57]line Безнал.: 0.00 [08:12:57]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [08:12:57]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [08:12:57]line СÐО: Общий режим [08:12:57]line Чек 5 13.08.2024 08:12 [08:12:57]line Смена: 466 ФФД: 1.0 [08:12:57]line ЗÐМ: 0300000140 [08:12:57]line РÐМ: 0000000000090913 [08:12:57]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:12:57]line ФМ: 0000000000874915 [08:12:57]line ФД: 70651 [08:12:57]line ФПД: 131838686007468 [08:12:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T081258&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70651&fm=131838686007468&tin=02508201610067®Number=0000000000090913&sum=100000 [08:12:57]written 0, free lines is 4095 [08:12:57]OFD Sender: Processing packet 70651 [packets to send 67, broken 66] [08:12:57]ProducePacketName [08:12:57]name=ofd_packets/00070651 [08:12:57]OFD Sender: To server: ‡•öpG, [08:12:57]CommunicateWithHost lk.salyk.kg:30040 [08:12:57]ConnectInit lk.salyk.kg [08:12:58]Connected sock=9 [08:12: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 39 31 35 0F 01 00 00 49 08 07 01 FD 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 8A 15 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FB 13 01 00 35 04 06 00 77 E8 16 0C 10 AC F1 40 B1 05 B3 8C CB C3 [08:12:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 6B 0E 47 00 33 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 39 31 35 10 04 04 00 FB 13 01 00 F4 03 04 00 75 BC BA 66 B6 04 01 00 00 82 4B 5A 3E EC 86 34 BF [08:12:58]CommunicateWithHost err = 0 [08:12:58]CheckOFDResponse [08:12:58]1017 (14) - 77093643461234 [08:12:58]1041 (16) - 0000000000874915 [08:12:58]1040 (4) - 70651 [08:12:58]1012 (4) - 13.08.2024 01:52 [08:12:58]1206 (1) - 0 [08:12:58]OFD Sender: Remove packet 70651 [08:12:58]ProducePacketName [08:12:58]name=ofd_packets/00070651 [08:12:58]NVStorageDeleteData [08:12:58]Write to MH i2c: 01 00 00 DE 01 DF [08:12:58]Write i2c OK [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: 01 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: 01 07 00 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: 01 07 00 DE 01 00 00 00 00 00 EE 0C E0 [08:12:58]RasterBufferAndPrint [08:12:58]line [08:12:58]line [08:12:58]line [08:12:58]line [08:12:58]line [08:12:58]written 0, free lines is 3316 [08:12:58]MH_Cut [08:12:58]Write to MH i2c: D1 01 00 E5 01 01 B8 [08:12:58]Write i2c OK [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: D1 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: D1 01 00 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: D1 01 00 E5 01 00 B7 [08:12:58]Write to MH i2c: 01 00 00 E6 01 E7 [08:12:58]Write i2c OK [08:12:58]MH_I2C_Read... [08:12:58]OFD Sender: No OFD packet to send [08:12:59]*** Cut start [08:12:59]*** Purtial cut [08:12:59]*** Stage 1: CUTSNS_PIN = 1 [08:12:59]Read from MH i2c: 01 [08:12:59]MH_I2C_Read... [08:12:59]*** Stop cut motor [08:12:59]*** Cut end [08:12:59]Read from MH i2c: 01 07 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: 01 07 00 E6 01 00 00 00 00 00 FF 0F FC [08:12:59]process_action close_receipt done [08:12:59]requested_data is exist [08:12:59]produce_requested_data [08:12:59]requested_item fm.sn is exist - process it [08:12:59]wFMCommunicate request_size=4 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 11 00 00 [08:12:59]Write to MH i2c: E2 08 00 E7 01 80 11 00 00 00 00 00 00 62 [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 17 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 17 00 E7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 B7 [08:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:12:59]wFMCommunicate OK [08:12:59]requested_item fd.num is exist - process it [08:12:59]SAM_PROTO_GetFieldsCounters [08:12:59]wFMCommunicate request_size=4 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 13 00 00 [08:12:59]Write to MH i2c: E2 08 00 E8 01 80 13 00 00 00 00 00 00 65 [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 62 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 62 00 E8 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 FB 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [08:12: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 FB 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:12:59]wFMCommunicate OK [08:12:59]SAM_PROTO_GetFieldsCounters done [08:12:59]requested_item shift.num is exist - process it [08:12:59]requested_item shift.opened is exist - process it [08:12:59]req_shift_opened [08:12:59]FM_GetShiftState [08:12:59]SAM_PROTO_GetShiftState [08:12:59]wFMCommunicate request_size=4 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 13 01 00 [08:12:59]Write to MH i2c: E2 08 00 E9 01 80 13 01 00 00 00 00 00 67 [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 0E 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 0E 00 E9 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 D6 [08:12:59]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:12:59]wFMCommunicate OK [08:12:59]SAM_PROTO_GetShiftState done [08:12:59]FM_GetShiftState done [08:12:59]req_shift_opened done [08:12:59]requested_item shift.open_date is exist - process it [08:12:59]req_shift_open_date [08:12:59]req_shift_open_date done [08:12:59]produce_requested_data done [08:12:59]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70651,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [08:12:59]process_action_free close_receipt [08:12:59]json_value_free [08:12:59]json_value_free done [08:12:59]process_json_proto returns [08:12:59]Send response to host [08:12:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70651,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [08:12:59]free response buf [08:12:59]execute_script done [08:12:59]execute_script returns [08:12:59]free content buf [08:12:59]Sock 10.Close socket [08:12:59]Sock 10.Thread stoped [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:59]OFD Sender: No OFD packet to send [08:17:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:49]OFD Sender: No OFD packet to send [08:17:54]OFD Sender: No OFD packet to send [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:03]accept exits with 7 [08:22:03]New connection [08:22:03]New thread 3067215204 created [08:22:03]Thread 3067358564 joined [08:22:03]Waiting for new connection... [08:22:03] Sock 7.Parse request [08:22:03]Sock 7.Check first char [08:22:04]Sock 7.First char is OK [08:22:04]request: POST /json_proto HTTP/1.0 [08:22:04]Method: POST [08:22:04]URL: /json_proto [08:22:04]Method is POST - this is cgi request [08:22:04]url: /json_proto [08:22:04]query_string will be loaded in cgi processing [08:22:04]execute_cgi json_proto POST (null) [08:22:04]execute_cgi path=json_proto method=POST [08:22:04]POST find Content-Length [08:22:04]Host: 172.17.58.67:8080 [08:22:04]Content-Length: 677 [08:22:04]Content-Type: application/json [08:22:04] [08:22:04]POST finish read [08:22:04]Found Content-Length = 677 [08:22:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:04]execute_script... [08:22:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:04]POST & json_proto [08:22:04]process_json_proto [08:22:04]json parsed OK: [08:22:04]protocol is kg_v1.0 [08:22:04]action value=close_receipt [08:22:04]process_action close_receipt [08:22:04]cmd_close_receipt [08:22:04]MH_GetDate [08:22:04]Write to MH i2c: F0 00 00 EA 01 DA [08:22:04]Write i2c OK [08:22:04]MH_I2C_Read... [08:22:04]Read from MH i2c: F0 [08:22:04]MH_I2C_Read... [08:22:04]Read from MH i2c: F0 09 00 [08:22:04]MH_I2C_Read... [08:22:04]Read from MH i2c: F0 09 00 EA 01 00 AE 17 BB 66 94 51 63 64 75 [08:22:04]GetLastDocTimeStamp 1723536778 [08:22:04]current date 1723537326 [08:22:04]FM_GetShiftState [08:22:04]SAM_PROTO_GetShiftState [08:22:04]wFMCommunicate request_size=4 [08:22:04]MH_SAM_APDU [08:22:04]CAPDU: 80 13 01 00 [08:22:04]Write to MH i2c: E2 08 00 EB 01 80 13 01 00 00 00 00 00 69 [08:22:04]Write i2c OK [08:22:04]MH_I2C_Read... [08:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:04]Read from MH i2c: E2 [08:22:04]MH_I2C_Read... [08:22:04]Read from MH i2c: E2 0E 00 [08:22:04]MH_I2C_Read... [08:22:04]Read from MH i2c: E2 0E 00 EB 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 D8 [08:22:04]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:22:04]wFMCommunicate OK [08:22:04]SAM_PROTO_GetShiftState done [08:22:04]FM_GetShiftState done [08:22:04]opened in 1723509656 [08:22:04]opened+sec_in_day 1723596056 [08:22:04]quantity*price = 30050 [08:22:04]sum+1 = 30051 [08:22:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.50 ИТОГО: 300.00 ВнеÑено: 300.00 СДÐЧÐ: 0.00 ÐСП 1% : 2.66 ÐДС 12% : 31.91 Ðаличными: 300.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 6 13.08.2024 08:22 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70652 ФПД: 193213272146389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T082206&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70652&fm=193213272146389&tin=02508201610067®Number=0000000000090913&sum=30000 [08:22:05]StoreToDocumentArchive [08:22:05]shift 466 fd 70652 [08:22:05]save to /storage/0466/doc_00070652 [08:22:05]save last doc name /storage/0466/doc_00070652 to /storage/kkm_last_doc_name [08:22:05]save OK [08:22:05]Clear old archive folders... [08:22:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:05]tlvbuf is 017BFA10 [08:22:05]SAM_PROTO_ClearQueue [08:22:05]wFMCommunicate request_size=4 [08:22:05]MH_SAM_APDU [08:22:05]CAPDU: 80 09 00 00 [08:22:05]Write to MH i2c: E2 08 00 F8 01 80 09 00 00 00 00 00 00 6B [08:22:05]Write i2c OK [08:22:05]MH_I2C_Read... [08:22:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:05]Read from MH i2c: E2 [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: E2 03 00 [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: E2 03 00 F8 01 00 90 00 6D [08:22:05]RAPDU: 90 00 [08:22:05]wFMCommunicate OK [08:22:05]SAM_PROTO_ClearQueue done [08:22:05]KKMCreateOFDPacket [08:22:05]OFDProtocolAddRootSTLVToBuf [08:22:05]FM_MakeSignedData [08:22:05]FM_MakeSignedData [08:22:05]SAM_PROTO_SignData [08:22:05]wFMCommunicate request_size=4 [08:22:05]MH_SAM_APDU [08:22:05]CAPDU: 80 0D 01 02 [08:22:05]Write to MH i2c: E2 08 00 F9 01 80 0D 01 02 00 00 00 00 73 [08:22:05]Write i2c OK [08:22:05]MH_I2C_Read... [08:22:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:05]Read from MH i2c: E2 [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: E2 03 00 [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: E2 03 00 F9 01 00 90 00 6E [08:22:05]RAPDU: 90 00 [08:22:05]wFMCommunicate OK [08:22:05]wFMCommunicate request_size=255 [08:22:05]MH_SAM_APDU [08:22:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 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 77 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 06 00 00 00 F4 03 04 00 AE 17 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FC 13 01 00 35 04 06 00 AF [08:22:05]Write to MH i2c: E2 02 01 FA 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 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 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 77 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 06 00 00 00 F4 03 04 00 AE 17 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FC 13 01 00 35 04 06 00 AF 00 00 61 [08:22:05]Write i2c OK [08:22:05]MH_I2C_Read... [08:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:05]Read from MH i2c: E2 [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: E2 03 00 [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: E2 03 00 FA 01 00 90 00 6F [08:22:05]RAPDU: 90 00 [08:22:05]wFMCommunicate OK [08:22:05]wFMCommunicate request_size=10 [08:22:05]MH_SAM_APDU [08:22:05]CAPDU: 80 0D 02 02 05 B9 F8 73 C1 D5 [08:22:05]Write to MH i2c: E2 0D 00 FB 01 80 0D 02 02 05 00 B9 F8 73 C1 D5 00 00 3A [08:22:05]Write i2c OK [08:22:05]MH_I2C_Read... [08:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:05]Read from MH i2c: E2 [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: E2 03 00 [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: E2 03 00 FB 01 00 90 00 70 [08:22:05]RAPDU: 90 00 [08:22:05]wFMCommunicate OK [08:22:05]wFMCommunicate request_size=4 [08:22:05]MH_SAM_APDU [08:22:05]CAPDU: 80 0D 03 02 [08:22:05]Write to MH i2c: E2 08 00 FC 01 80 0D 03 02 00 00 00 00 78 [08:22:05]Write i2c OK [08:22:05]MH_I2C_Read... [08:22:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:05]Read from MH i2c: E2 [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: E2 0B 00 [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: E2 0B 00 FC 01 00 A1 8C 03 50 27 43 23 5D 90 00 E3 [08:22:05]RAPDU: A1 8C 03 50 27 43 23 5D 90 00 [08:22:05]wFMCommunicate OK [08:22:05]SAM_PROTO_SignData done [08:22:05]FM_MakeSignedData done [08:22:05]CreateOFDProtocolMessage [08:22:05]wFMCommunicate request_size=4 [08:22:05]MH_SAM_APDU [08:22:05]CAPDU: 80 11 00 00 [08:22:05]Write to MH i2c: E2 08 00 FD 01 80 11 00 00 00 00 00 00 78 [08:22:05]Write i2c OK [08:22:05]MH_I2C_Read... [08:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:05]Read from MH i2c: E2 [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: E2 17 00 [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: E2 17 00 FD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 CD [08:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:22:05]wFMCommunicate OK [08:22:05]CreateOFDProtocolMessage done [08:22:05]OFDSenderStorePacket 70652 [08:22:05]StoreOFDPacket docnum=70652 [08:22:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 EA 32 07 01 E0 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 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 77 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 06 00 00 00 F4 03 04 00 AE 17 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FC 13 01 00 35 04 06 00 AF B9 F8 73 C1 D5 A1 8C 03 50 27 43 23 5D [08:22:05]CheckFolder [08:22:05]dirname=/storage/ofd_packets [08:22:05]CheckFolder done [08:22:05]ProducePacketName [08:22:05]name=ofd_packets/00070652 [08:22:05]NVStorageSaveData ofd_packets/00070652 [08:22:05]File name is /storage/ofd_packets/00070652 [08:22:05]Write 301 bytes [08:22:05]NVStorageSaveData done [08:22:05]OFDSenderStorePacket done [08:22:05]KKMCreateOFDPacket done [08:22:05]NVStorageSaveData kkm_last_timestamp [08:22:05]File name is /storage/kkm_last_timestamp [08:22:05]Write 4 bytes [08:22:05]NVStorageSaveData done [08:22:05]ExternCall_PrintAddStr [08:22:05]wPrintStart [08:22:05]Write to MH i2c: 01 00 00 FE 01 FF [08:22:05]Write i2c OK [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: 01 [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: 01 07 00 [08:22:05]MH_I2C_Read... [08:22:05]Read from MH i2c: 01 07 00 FE 01 00 00 00 00 00 FF 0F 14 [08:22:05]RasterBufferAndPrint [08:22:05]line Счет N : (1)141106 [08:22:05]line ИÐÐ: 02508201610067 [08:22:05]line Контрольно-КаÑÑовый Чек [08:22:05]line ПРОДÐЖР[08:22:05]line ТРК (МРК, ГÐК) : 41 [08:22:05]line Товар: 2710124130 [08:22:05]line Ðи-92-К-5 [08:22:05]line 4.560 * 65.90 [08:22:05]line = 300.50 [08:22:05]line ÐДС 12% ÐСП 1% [08:22:05]line > о реализуемом товаре [08:22:05]line ОКРУГЛЕÐИЕ: -0.50 [08:22:05]line ИТОГО: 300.00 [08:22:05]line ВнеÑено: 300.00 [08:22:05]line СДÐЧÐ: 0.00 [08:22:05]line ÐСП 1% : 2.66 [08:22:05]line ÐДС 12% : 31.91 [08:22:05]line Ðаличными: 300.00 [08:22:05]line Безнал.: 0.00 [08:22:05]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [08:22:05]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [08:22:05]line СÐО: Общий режим [08:22:05]line Чек 6 13.08.2024 08:22 [08:22:05]line Смена: 466 ФФД: 1.0 [08:22:05]line ЗÐМ: 0300000140 [08:22:05]line РÐМ: 0000000000090913 [08:22:05]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:22:05]line ФМ: 0000000000874915 [08:22:05]line ФД: 70652 [08:22:05]line ФПД: 193213272146389 [08:22:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T082206&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70652&fm=193213272146389&tin=02508201610067®Number=0000000000090913&sum=30000 [08:22:06]OFD Sender: Processing packet 70652 [packets to send 67, broken 66] [08:22:06]ProducePacketName [08:22:06]name=ofd_packets/00070652 [08:22:06]OFD Sender: To server: ‡•öpG, [08:22:06]CommunicateWithHost lk.salyk.kg:30040 [08:22:06]ConnectInit lk.salyk.kg [08:22:06]written 0, free lines is 4095 [08:22:06]Connected sock=10 [08:22: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 39 31 35 0F 01 00 00 EA 32 07 01 E0 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 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 77 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 06 00 00 00 F4 03 04 00 AE 17 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FC 13 01 00 35 04 06 00 AF B9 F8 73 C1 D5 A1 8C 03 50 27 43 23 5D [08:22:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 A6 6A 47 00 0E 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 39 31 35 10 04 04 00 FC 13 01 00 F4 03 04 00 99 BE BA 66 B6 04 01 00 00 8B 4E CF 97 0E 85 5C B2 [08:22:06]CommunicateWithHost err = 0 [08:22:06]CheckOFDResponse [08:22:06]1017 (14) - 77093643461234 [08:22:06]1041 (16) - 0000000000874915 [08:22:06]1040 (4) - 70652 [08:22:06]1012 (4) - 13.08.2024 02:02 [08:22:06]1206 (1) - 0 [08:22:06]OFD Sender: Remove packet 70652 [08:22:06]ProducePacketName [08:22:06]name=ofd_packets/00070652 [08:22:06]NVStorageDeleteData [08:22:06]Write to MH i2c: 01 00 00 29 02 2B [08:22:06]Write i2c OK [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: 01 [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: 01 07 00 [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: 01 07 00 29 02 00 00 00 00 00 D7 0C 15 [08:22:06]RasterBufferAndPrint [08:22:06]line [08:22:06]line [08:22:06]line [08:22:06]line [08:22:06]line [08:22:06]written 0, free lines is 3293 [08:22:06]MH_Cut [08:22:06]Write to MH i2c: D1 01 00 30 02 01 04 [08:22:06]Write i2c OK [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: D1 [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: D1 01 00 [08:22:06]MH_I2C_Read... [08:22:06]Read from MH i2c: D1 01 00 30 02 00 03 [08:22:06]Write to MH i2c: 01 00 00 31 02 33 [08:22:06]Write i2c OK [08:22:06]MH_I2C_Read... [08:22:06]OFD Sender: No OFD packet to send [08:22:07]*** Cut start [08:22:07]*** Purtial cut [08:22:07]*** CUTSNS_PIN = 0 [08:22:07]*** Stage 1: CUTSNS_PIN = 1 [08:22:09]Read from MH i2c: 01 [08:22:09]MH_I2C_Read... [08:22:09]*** Stop cut motor [08:22:09]*** Cut end [08:22:09]Read from MH i2c: 01 07 00 [08:22:09]MH_I2C_Read... [08:22:09]Read from MH i2c: 01 07 00 31 02 00 00 00 00 00 FF 0F 48 [08:22:09]process_action close_receipt done [08:22:09]requested_data is exist [08:22:09]produce_requested_data [08:22:09]requested_item fm.sn is exist - process it [08:22:09]wFMCommunicate request_size=4 [08:22:09]MH_SAM_APDU [08:22:09]CAPDU: 80 11 00 00 [08:22:09]Write to MH i2c: E2 08 00 32 02 80 11 00 00 00 00 00 00 AE [08:22:09]Write i2c OK [08:22:09]MH_I2C_Read... [08:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:09]Read from MH i2c: E2 [08:22:09]MH_I2C_Read... [08:22:09]Read from MH i2c: E2 17 00 [08:22:09]MH_I2C_Read... [08:22:09]Read from MH i2c: E2 17 00 32 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 03 [08:22:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:22:09]wFMCommunicate OK [08:22:09]requested_item fd.num is exist - process it [08:22:09]SAM_PROTO_GetFieldsCounters [08:22:09]wFMCommunicate request_size=4 [08:22:09]MH_SAM_APDU [08:22:09]CAPDU: 80 13 00 00 [08:22:09]Write to MH i2c: E2 08 00 33 02 80 13 00 00 00 00 00 00 B1 [08:22:09]Write i2c OK [08:22:09]MH_I2C_Read... [08:22:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:09]Read from MH i2c: E2 [08:22:09]MH_I2C_Read... [08:22:09]Read from MH i2c: E2 62 00 [08:22:09]MH_I2C_Read... [08:22:09]Read from MH i2c: E2 62 00 33 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 FC 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [08:22: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 FC 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:22:09]wFMCommunicate OK [08:22:09]SAM_PROTO_GetFieldsCounters done [08:22:09]requested_item shift.num is exist - process it [08:22:09]requested_item shift.opened is exist - process it [08:22:09]req_shift_opened [08:22:09]FM_GetShiftState [08:22:09]SAM_PROTO_GetShiftState [08:22:09]wFMCommunicate request_size=4 [08:22:09]MH_SAM_APDU [08:22:09]CAPDU: 80 13 01 00 [08:22:09]Write to MH i2c: E2 08 00 34 02 80 13 01 00 00 00 00 00 B3 [08:22:09]Write i2c OK [08:22:09]MH_I2C_Read... [08:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:09]Read from MH i2c: E2 [08:22:09]MH_I2C_Read... [08:22:09]Read from MH i2c: E2 0E 00 [08:22:09]MH_I2C_Read... [08:22:09]Read from MH i2c: E2 0E 00 34 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 22 [08:22:09]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:22:09]wFMCommunicate OK [08:22:09]SAM_PROTO_GetShiftState done [08:22:09]FM_GetShiftState done [08:22:09]req_shift_opened done [08:22:09]requested_item shift.open_date is exist - process it [08:22:09]req_shift_open_date [08:22:09]req_shift_open_date done [08:22:09]produce_requested_data done [08:22:09]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70652,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [08:22:09]process_action_free close_receipt [08:22:09]json_value_free [08:22:09]json_value_free done [08:22:09]process_json_proto returns [08:22:09]Send response to host [08:22:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70652,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [08:22:09]free response buf [08:22:09]execute_script done [08:22:09]execute_script returns [08:22:09]free content buf [08:22:09]Sock 7.Close socket [08:22:09]Sock 7.Thread stoped [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:02]accept exits with 9 [08:24:02]New connection [08:24:02]New thread 3067358564 created [08:24:02]Thread 3067215204 joined [08:24:02]Waiting for new connection... [08:24:02] Sock 9.Parse request [08:24:02]Sock 9.Check first char [08:24:02]Sock 9.First char is OK [08:24:02]request: POST /json_proto HTTP/1.0 [08:24:02]Method: POST [08:24:02]URL: /json_proto [08:24:02]Method is POST - this is cgi request [08:24:02]url: /json_proto [08:24:02]query_string will be loaded in cgi processing [08:24:02]execute_cgi json_proto POST (null) [08:24:02]execute_cgi path=json_proto method=POST [08:24:02]POST find Content-Length [08:24:02]Host: 172.17.58.67:8080 [08:24:02]Content-Length: 682 [08:24:02]Content-Type: application/json [08:24:02] [08:24:02]POST finish read [08:24:02]Found Content-Length = 682 [08:24:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 53.120, "sum" : 3500.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:02]execute_script... [08:24: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)141107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 53.120, "sum" : 3500.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:02]POST & json_proto [08:24:02]process_json_proto [08:24:02]json parsed OK: [08:24:02]protocol is kg_v1.0 [08:24:02]action value=close_receipt [08:24:02]process_action close_receipt [08:24:02]cmd_close_receipt [08:24:02]MH_GetDate [08:24:02]Write to MH i2c: F0 00 00 35 02 26 [08:24:02]Write i2c OK [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: F0 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: F0 09 00 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: F0 09 00 35 02 00 24 18 BB 66 94 51 63 64 38 [08:24:02]GetLastDocTimeStamp 1723537326 [08:24:02]current date 1723537444 [08:24:02]FM_GetShiftState [08:24:02]SAM_PROTO_GetShiftState [08:24:02]wFMCommunicate request_size=4 [08:24:02]MH_SAM_APDU [08:24:02]CAPDU: 80 13 01 00 [08:24:02]Write to MH i2c: E2 08 00 36 02 80 13 01 00 00 00 00 00 B5 [08:24:02]Write i2c OK [08:24:02]MH_I2C_Read... [08:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:02]Read from MH i2c: E2 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: E2 0E 00 [08:24:02]MH_I2C_Read... [08:24:02]Read from MH i2c: E2 0E 00 36 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 24 [08:24:02]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:24:02]wFMCommunicate OK [08:24:02]SAM_PROTO_GetShiftState done [08:24:02]FM_GetShiftState done [08:24:02]opened in 1723509656 [08:24:02]opened+sec_in_day 1723596056 [08:24:02]quantity*price = 350060 [08:24:02]sum+1 = 350062 [08:24:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.61 ИТОГО: 3500.00 ВнеÑено: 3500.00 СДÐЧÐ: 0.00 ÐСП 1% : 30.98 ÐДС 12% : 371.75 Ðаличными: 3500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 7 13.08.2024 08:24 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70653 ФПД: 79908497946977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T082404&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70653&fm=79908497946977&tin=02508201610067®Number=0000000000090913&sum=350000 [08:24:03]StoreToDocumentArchive [08:24:03]shift 466 fd 70653 [08:24:03]save to /storage/0466/doc_00070653 [08:24:03]save last doc name /storage/0466/doc_00070653 to /storage/kkm_last_doc_name [08:24:03]save OK [08:24:03]Clear old archive folders... [08:24:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:24:03]tlvbuf is B6F0B8D0 [08:24:03]SAM_PROTO_ClearQueue [08:24:03]wFMCommunicate request_size=4 [08:24:03]MH_SAM_APDU [08:24:03]CAPDU: 80 09 00 00 [08:24:03]Write to MH i2c: E2 08 00 43 02 80 09 00 00 00 00 00 00 B7 [08:24:03]Write i2c OK [08:24:03]MH_I2C_Read... [08:24:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:03]Read from MH i2c: E2 [08:24:03]MH_I2C_Read... [08:24:03]Read from MH i2c: E2 03 00 [08:24:03]MH_I2C_Read... [08:24:03]Read from MH i2c: E2 03 00 43 02 00 90 00 B9 [08:24:03]RAPDU: 90 00 [08:24:03]wFMCommunicate OK [08:24:03]SAM_PROTO_ClearQueue done [08:24:03]KKMCreateOFDPacket [08:24:03]OFDProtocolAddRootSTLVToBuf [08:24:03]FM_MakeSignedData [08:24:03]FM_MakeSignedData [08:24:03]SAM_PROTO_SignData [08:24:03]wFMCommunicate request_size=4 [08:24:03]MH_SAM_APDU [08:24:03]CAPDU: 80 0D 01 02 [08:24:03]Write to MH i2c: E2 08 00 44 02 80 0D 01 02 00 00 00 00 BF [08:24:03]Write i2c OK [08:24:03]MH_I2C_Read... [08:24:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:03]Read from MH i2c: E2 [08:24:03]MH_I2C_Read... [08:24:03]Read from MH i2c: E2 03 00 [08:24:03]MH_I2C_Read... [08:24:03]Read from MH i2c: E2 03 00 44 02 00 90 00 BA [08:24:03]RAPDU: 90 00 [08:24:03]wFMCommunicate OK [08:24:03]wFMCommunicate request_size=255 [08:24:03]MH_SAM_APDU [08:24:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 CF 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6D 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 24 18 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FD 13 01 00 35 04 06 00 48 [08:24:03]Write to MH i2c: E2 02 01 45 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 80 CF 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6D 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 24 18 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FD 13 01 00 35 04 06 00 48 00 00 4D [08:24:03]Write i2c OK [08:24:03]MH_I2C_Read... [08:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:04]Read from MH i2c: E2 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 03 00 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 03 00 45 02 00 90 00 BB [08:24:04]RAPDU: 90 00 [08:24:04]wFMCommunicate OK [08:24:04]wFMCommunicate request_size=10 [08:24:04]MH_SAM_APDU [08:24:04]CAPDU: 80 0D 02 02 05 AD 25 A2 79 61 [08:24:04]Write to MH i2c: E2 0D 00 46 02 80 0D 02 02 05 00 AD 25 A2 79 61 00 00 1A [08:24:04]Write i2c OK [08:24:04]MH_I2C_Read... [08:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:04]Read from MH i2c: E2 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 03 00 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 03 00 46 02 00 90 00 BC [08:24:04]RAPDU: 90 00 [08:24:04]wFMCommunicate OK [08:24:04]wFMCommunicate request_size=4 [08:24:04]MH_SAM_APDU [08:24:04]CAPDU: 80 0D 03 02 [08:24:04]Write to MH i2c: E2 08 00 47 02 80 0D 03 02 00 00 00 00 C4 [08:24:04]Write i2c OK [08:24:04]MH_I2C_Read... [08:24:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:04]Read from MH i2c: E2 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 0B 00 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 0B 00 47 02 00 22 72 8F A0 99 16 B8 9E 90 00 8D [08:24:04]RAPDU: 22 72 8F A0 99 16 B8 9E 90 00 [08:24:04]wFMCommunicate OK [08:24:04]SAM_PROTO_SignData done [08:24:04]FM_MakeSignedData done [08:24:04]CreateOFDProtocolMessage [08:24:04]wFMCommunicate request_size=4 [08:24:04]MH_SAM_APDU [08:24:04]CAPDU: 80 11 00 00 [08:24:04]Write to MH i2c: E2 08 00 48 02 80 11 00 00 00 00 00 00 C4 [08:24:04]Write i2c OK [08:24:04]MH_I2C_Read... [08:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:04]Read from MH i2c: E2 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 17 00 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 17 00 48 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 19 [08:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:24:04]wFMCommunicate OK [08:24:04]CreateOFDProtocolMessage done [08:24:04]OFDSenderStorePacket 70653 [08:24:04]StoreOFDPacket docnum=70653 [08:24:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 CD C1 07 01 0F 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 80 CF 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6D 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 24 18 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FD 13 01 00 35 04 06 00 48 AD 25 A2 79 61 22 72 8F A0 99 16 B8 9E [08:24:04]CheckFolder [08:24:04]dirname=/storage/ofd_packets [08:24:04]CheckFolder done [08:24:04]ProducePacketName [08:24:04]name=ofd_packets/00070653 [08:24:04]NVStorageSaveData ofd_packets/00070653 [08:24:04]File name is /storage/ofd_packets/00070653 [08:24:04]Write 301 bytes [08:24:04]NVStorageSaveData done [08:24:04]OFDSenderStorePacket done [08:24:04]KKMCreateOFDPacket done [08:24:04]NVStorageSaveData kkm_last_timestamp [08:24:04]File name is /storage/kkm_last_timestamp [08:24:04]Write 4 bytes [08:24:04]NVStorageSaveData done [08:24:04]ExternCall_PrintAddStr [08:24:04]wPrintStart [08:24:04]Write to MH i2c: 01 00 00 49 02 4B [08:24:04]Write i2c OK [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: 01 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: 01 07 00 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: 01 07 00 49 02 00 00 00 00 00 FF 0F 60 [08:24:04]RasterBufferAndPrint [08:24:04]line Счет N : (1)141107 [08:24:04]line ИÐÐ: 02508201610067 [08:24:04]line Контрольно-КаÑÑовый Чек [08:24:04]line ПРОДÐЖР[08:24:04]line ТРК (МРК, ГÐК) : 41 [08:24:04]line Товар: 2710124130 [08:24:04]line Ðи-92-К-5 [08:24:04]line 53.120 * 65.90 [08:24:04]line = 3500.61 [08:24:04]line ÐДС 12% ÐСП 1% [08:24:04]line > о реализуемом товаре [08:24:04]line ОКРУГЛЕÐИЕ: -0.61 [08:24:04]line ИТОГО: 3500.00 [08:24:04]line ВнеÑено: 3500.00 [08:24:04]line СДÐЧÐ: 0.00 [08:24:04]line ÐСП 1% : 30.98 [08:24:04]line ÐДС 12% : 371.75 [08:24:04]line Ðаличными: 3500.00 [08:24:04]line Безнал.: 0.00 [08:24:04]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [08:24:04]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [08:24:04]line СÐО: Общий режим [08:24:04]line Чек 7 13.08.2024 08:24 [08:24:04]line Смена: 466 ФФД: 1.0 [08:24:04]line ЗÐМ: 0300000140 [08:24:04]line РÐМ: 0000000000090913 [08:24:04]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:24:04]line ФМ: 0000000000874915 [08:24:04]line ФД: 70653 [08:24:04]line ФПД: 79908497946977 [08:24:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T082404&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70653&fm=79908497946977&tin=02508201610067®Number=0000000000090913&sum=350000 [08:24:04]OFD Sender: Processing packet 70653 [packets to send 67, broken 66] [08:24:04]ProducePacketName [08:24:04]name=ofd_packets/00070653 [08:24:04]OFD Sender: To server: ‡•öpG, [08:24:04]CommunicateWithHost lk.salyk.kg:30040 [08:24:04]ConnectInit lk.salyk.kg [08:24:04]written 0, free lines is 4095 [08:24:04]Connected sock=10 [08:24: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 39 31 35 0F 01 00 00 CD C1 07 01 0F 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 80 CF 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6D 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 24 18 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FD 13 01 00 35 04 06 00 48 AD 25 A2 79 61 22 72 8F A0 99 16 B8 9E [08:24:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 B2 4B 47 00 4E AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FD 13 01 00 F4 03 04 00 0F BF BA 66 B6 04 01 00 00 05 A3 C5 F5 8D 43 90 EC [08:24:04]CommunicateWithHost err = 0 [08:24:04]CheckOFDResponse [08:24:04]1017 (14) - 77093643461234 [08:24:04]1041 (16) - 0000000000874915 [08:24:04]1040 (4) - 70653 [08:24:04]1012 (4) - 13.08.2024 02:03 [08:24:04]1206 (1) - 0 [08:24:04]OFD Sender: Remove packet 70653 [08:24:04]ProducePacketName [08:24:04]name=ofd_packets/00070653 [08:24:04]NVStorageDeleteData [08:24:05]Write to MH i2c: 01 00 00 74 02 76 [08:24:05]Write i2c OK [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: 01 [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: 01 07 00 [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: 01 07 00 74 02 00 00 00 00 00 E3 0C 6C [08:24:05]RasterBufferAndPrint [08:24:05]line [08:24:05]line [08:24:05]line [08:24:05]line [08:24:05]line [08:24:05]written 0, free lines is 3305 [08:24:05]MH_Cut [08:24:05]Write to MH i2c: D1 01 00 7B 02 01 4F [08:24:05]Write i2c OK [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: D1 [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: D1 01 00 [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: D1 01 00 7B 02 00 4E [08:24:05]Write to MH i2c: 01 00 00 7C 02 7E [08:24:05]Write i2c OK [08:24:05]MH_I2C_Read... [08:24:05]OFD Sender: No OFD packet to send [08:24:05]*** Cut start [08:24:05]*** Purtial cut [08:24:05]*** Stage 1: CUTSNS_PIN = 1 [08:24:06]Read from MH i2c: 01 [08:24:06]MH_I2C_Read... [08:24:06]*** Stop cut motor [08:24:06]*** Cut end [08:24:06]Read from MH i2c: 01 07 00 [08:24:06]MH_I2C_Read... [08:24:06]Read from MH i2c: 01 07 00 7C 02 00 00 00 00 00 FF 0F 93 [08:24:06]process_action close_receipt done [08:24:06]requested_data is exist [08:24:06]produce_requested_data [08:24:06]requested_item fm.sn is exist - process it [08:24:06]wFMCommunicate request_size=4 [08:24:06]MH_SAM_APDU [08:24:06]CAPDU: 80 11 00 00 [08:24:06]Write to MH i2c: E2 08 00 7D 02 80 11 00 00 00 00 00 00 F9 [08:24:06]Write i2c OK [08:24:06]MH_I2C_Read... [08:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:06]Read from MH i2c: E2 [08:24:06]MH_I2C_Read... [08:24:06]Read from MH i2c: E2 17 00 [08:24:06]MH_I2C_Read... [08:24:06]Read from MH i2c: E2 17 00 7D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 4E [08:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:24:06]wFMCommunicate OK [08:24:06]requested_item fd.num is exist - process it [08:24:06]SAM_PROTO_GetFieldsCounters [08:24:06]wFMCommunicate request_size=4 [08:24:06]MH_SAM_APDU [08:24:06]CAPDU: 80 13 00 00 [08:24:06]Write to MH i2c: E2 08 00 7E 02 80 13 00 00 00 00 00 00 FC [08:24:06]Write i2c OK [08:24:06]MH_I2C_Read... [08:24:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:06]Read from MH i2c: E2 [08:24:06]MH_I2C_Read... [08:24:06]Read from MH i2c: E2 62 00 [08:24:06]MH_I2C_Read... [08:24:06]Read from MH i2c: E2 62 00 7E 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 FD 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [08:24: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 FD 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:24:06]wFMCommunicate OK [08:24:06]SAM_PROTO_GetFieldsCounters done [08:24:06]requested_item shift.num is exist - process it [08:24:06]requested_item shift.opened is exist - process it [08:24:06]req_shift_opened [08:24:06]FM_GetShiftState [08:24:06]SAM_PROTO_GetShiftState [08:24:06]wFMCommunicate request_size=4 [08:24:06]MH_SAM_APDU [08:24:06]CAPDU: 80 13 01 00 [08:24:06]Write to MH i2c: E2 08 00 7F 02 80 13 01 00 00 00 00 00 FE [08:24:06]Write i2c OK [08:24:06]MH_I2C_Read... [08:24:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:06]Read from MH i2c: E2 [08:24:06]MH_I2C_Read... [08:24:06]Read from MH i2c: E2 0E 00 [08:24:06]MH_I2C_Read... [08:24:06]Read from MH i2c: E2 0E 00 7F 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 6D [08:24:06]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:24:06]wFMCommunicate OK [08:24:06]SAM_PROTO_GetShiftState done [08:24:06]FM_GetShiftState done [08:24:06]req_shift_opened done [08:24:06]requested_item shift.open_date is exist - process it [08:24:06]req_shift_open_date [08:24:06]req_shift_open_date done [08:24:06]produce_requested_data done [08:24:06]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70653,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [08:24:06]process_action_free close_receipt [08:24:06]json_value_free [08:24:06]json_value_free done [08:24:06]process_json_proto returns [08:24:06]Send response to host [08:24:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70653,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [08:24:06]free response buf [08:24:06]execute_script done [08:24:06]execute_script returns [08:24:06]free content buf [08:24:06]Sock 9.Close socket [08:24:06]Sock 9.Thread stoped [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:37]accept exits with 7 [08:27:37]New connection [08:27:37]New thread 3067215204 created [08:27:37]Thread 3067358564 joined [08:27:37]Waiting for new connection... [08:27:37] Sock 7.Parse request [08:27:37]Sock 7.Check first char [08:27:37]Sock 7.First char is OK [08:27:37]request: POST /json_proto HTTP/1.0 [08:27:37]Method: POST [08:27:37]URL: /json_proto [08:27:37]Method is POST - this is cgi request [08:27:37]url: /json_proto [08:27:37]query_string will be loaded in cgi processing [08:27:37]execute_cgi json_proto POST (null) [08:27:37]execute_cgi path=json_proto method=POST [08:27:37]POST find Content-Length [08:27:37]Host: 172.17.58.67:8080 [08:27:37]Content-Length: 738 [08:27:37]Content-Type: application/json [08:27:37] [08:27:37]POST finish read [08:27:37]Found Content-Length = 738 [08:27:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70653, "base_FM": "0000000000874915", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 53.120, "sum" : 3500.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:37]execute_script... [08:27:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70653, "base_FM": "0000000000874915", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 53.120, "sum" : 3500.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:37]POST & json_proto [08:27:37]process_json_proto [08:27:37]json parsed OK: [08:27:37]protocol is kg_v1.0 [08:27:37]action value=close_receipt [08:27:37]process_action close_receipt [08:27:37]cmd_close_receipt [08:27:37]MH_GetDate [08:27:37]Write to MH i2c: F0 00 00 80 02 71 [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: F0 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: F0 09 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: F0 09 00 80 02 00 FB 18 BB 66 94 51 63 64 5A [08:27:37]GetLastDocTimeStamp 1723537444 [08:27:37]current date 1723537659 [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 81 02 80 13 01 00 00 00 00 00 00 [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 81 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 6F [08:27:37]RAPDU: 09 00 01 98 AB BA 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]opened in 1723509656 [08:27:37]opened+sec_in_day 1723596056 [08:27:37]quantity*price = 350060 [08:27:37]sum+1 = 350062 [08:27:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.61 ИТОГО: 3500.00 ÐСП 1% : 30.98 ÐДС 12% : 371.75 Ðаличными: 3500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 8 13.08.2024 08:27 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФД оÑн.: 70653 ФМ оÑн.: 0000000000874915 ФМ: 0000000000874915 ФД: 70654 ФПД: 83214703053856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T082739&type=2&operation_type=1&fn_number=0000000000874915&fd_number=70654&fm=83214703053856&tin=02508201610067®Number=0000000000090913&sum=350000 [08:27:38]StoreToDocumentArchive [08:27:38]shift 466 fd 70654 [08:27:38]save to /storage/0466/doc_00070654 [08:27:38]save last doc name /storage/0466/doc_00070654 to /storage/kkm_last_doc_name [08:27:38]save OK [08:27:38]Clear old archive folders... [08:27:38]ProcessDocumentItem done err = 0, tmpTLVsize=279 [08:27:38]tlvbuf is 017C0E90 [08:27:38]SAM_PROTO_ClearQueue [08:27:38]wFMCommunicate request_size=4 [08:27:38]MH_SAM_APDU [08:27:38]CAPDU: 80 09 00 00 [08:27:38]Write to MH i2c: E2 08 00 90 02 80 09 00 00 00 00 00 00 04 [08:27:38]Write i2c OK [08:27:38]MH_I2C_Read... [08:27:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:38]Read from MH i2c: E2 [08:27:38]MH_I2C_Read... [08:27:38]Read from MH i2c: E2 03 00 [08:27:38]MH_I2C_Read... [08:27:38]Read from MH i2c: E2 03 00 90 02 00 90 00 06 [08:27:38]RAPDU: 90 00 [08:27:38]wFMCommunicate OK [08:27:38]SAM_PROTO_ClearQueue done [08:27:38]KKMCreateOFDPacket [08:27:38]OFDProtocolAddRootSTLVToBuf [08:27:38]FM_MakeSignedData [08:27:38]FM_MakeSignedData [08:27:38]SAM_PROTO_SignData [08:27:38]wFMCommunicate request_size=4 [08:27:38]MH_SAM_APDU [08:27:38]CAPDU: 80 0D 01 02 [08:27:38]Write to MH i2c: E2 08 00 91 02 80 0D 01 02 00 00 00 00 0C [08:27:38]Write i2c OK [08:27:38]MH_I2C_Read... [08:27:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:38]Read from MH i2c: E2 [08:27:38]MH_I2C_Read... [08:27:38]Read from MH i2c: E2 03 00 [08:27:38]MH_I2C_Read... [08:27:38]Read from MH i2c: E2 03 00 91 02 00 90 00 07 [08:27:38]RAPDU: 90 00 [08:27:38]wFMCommunicate OK [08:27:38]wFMCommunicate request_size=255 [08:27:38]MH_SAM_APDU [08:27:38]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 CF 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6D 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 FB 18 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 FD 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 [08:27:38]Write to MH i2c: E2 02 01 92 02 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 CF 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6D 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 FB 18 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 FD 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 00 00 8C [08:27:38]Write i2c OK [08:27:38]MH_I2C_Read... [08:27:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:38]Read from MH i2c: E2 [08:27:38]MH_I2C_Read... [08:27:38]Read from MH i2c: E2 03 00 [08:27:38]MH_I2C_Read... [08:27:38]Read from MH i2c: E2 03 00 92 02 00 90 00 08 [08:27:38]RAPDU: 90 00 [08:27:38]wFMCommunicate OK [08:27:38]wFMCommunicate request_size=38 [08:27:38]MH_SAM_APDU [08:27:38]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FE 13 01 00 35 04 06 00 4B AE EE D0 CC 20 [08:27:38]Write to MH i2c: E2 29 00 93 02 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FE 13 01 00 35 04 06 00 4B AE EE D0 CC 20 00 00 4F [08:27:38]Write i2c OK [08:27:38]MH_I2C_Read... [08:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:39]Read from MH i2c: E2 [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: E2 03 00 [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: E2 03 00 93 02 00 90 00 09 [08:27:39]RAPDU: 90 00 [08:27:39]wFMCommunicate OK [08:27:39]wFMCommunicate request_size=4 [08:27:39]MH_SAM_APDU [08:27:39]CAPDU: 80 0D 03 02 [08:27:39]Write to MH i2c: E2 08 00 94 02 80 0D 03 02 00 00 00 00 11 [08:27:39]Write i2c OK [08:27:39]MH_I2C_Read... [08:27:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:39]Read from MH i2c: E2 [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: E2 0B 00 [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: E2 0B 00 94 02 00 8A DD 09 BB 13 28 23 08 90 00 A3 [08:27:39]RAPDU: 8A DD 09 BB 13 28 23 08 90 00 [08:27:39]wFMCommunicate OK [08:27:39]SAM_PROTO_SignData done [08:27:39]FM_MakeSignedData done [08:27:39]CreateOFDProtocolMessage [08:27:39]wFMCommunicate request_size=4 [08:27:39]MH_SAM_APDU [08:27:39]CAPDU: 80 11 00 00 [08:27:39]Write to MH i2c: E2 08 00 95 02 80 11 00 00 00 00 00 00 11 [08:27:39]Write i2c OK [08:27:39]MH_I2C_Read... [08:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:39]Read from MH i2c: E2 [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: E2 17 00 [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: E2 17 00 95 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 66 [08:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:27:39]wFMCommunicate OK [08:27:39]CreateOFDProtocolMessage done [08:27:39]OFDSenderStorePacket 70654 [08:27:39]StoreOFDPacket docnum=70654 [08:27:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 2B 01 00 00 4B 27 23 01 32 C7 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 CF 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6D 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 FB 18 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 FD 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FE 13 01 00 35 04 06 00 4B AE EE D0 CC 20 8A DD 09 BB 13 28 23 08 [08:27:39]CheckFolder [08:27:39]dirname=/storage/ofd_packets [08:27:39]CheckFolder done [08:27:39]ProducePacketName [08:27:39]name=ofd_packets/00070654 [08:27:39]NVStorageSaveData ofd_packets/00070654 [08:27:39]File name is /storage/ofd_packets/00070654 [08:27:39]Write 329 bytes [08:27:39]NVStorageSaveData done [08:27:39]OFDSenderStorePacket done [08:27:39]KKMCreateOFDPacket done [08:27:39]NVStorageSaveData kkm_last_timestamp [08:27:39]File name is /storage/kkm_last_timestamp [08:27:39]Write 4 bytes [08:27:39]NVStorageSaveData done [08:27:39]ExternCall_PrintAddStr [08:27:39]wPrintStart [08:27:39]Write to MH i2c: 01 00 00 96 02 98 [08:27:39]Write i2c OK [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: 01 [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: 01 07 00 [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: 01 07 00 96 02 00 00 00 00 00 FF 0F AD [08:27:39]RasterBufferAndPrint [08:27:39]line Счет N : (1)141107 [08:27:39]line ИÐÐ: 02508201610067 [08:27:39]line Контрольно-КаÑÑовый Чек [08:27:39]line ВОЗВРÐТ ПРОДÐЖИ [08:27:39]line ТРК (МРК, ГÐК) : 41 [08:27:39]line Товар: 2710124130 [08:27:39]line Ðи-92-К-5 [08:27:39]line 53.120 * 65.90 [08:27:39]line = 3500.61 [08:27:39]line ÐДС 12% ÐСП 1% [08:27:39]line > о реализуемом товаре [08:27:39]line ОКРУГЛЕÐИЕ: -0.61 [08:27:39]line ИТОГО: 3500.00 [08:27:39]line ÐСП 1% : 30.98 [08:27:39]line ÐДС 12% : 371.75 [08:27:39]line Ðаличными: 3500.00 [08:27:39]line Безнал.: 0.00 [08:27:39]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [08:27:39]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [08:27:39]line СÐО: Общий режим [08:27:39]line Чек 8 13.08.2024 08:27 [08:27:39]line Смена: 466 ФФД: 1.0 [08:27:39]line ЗÐМ: 0300000140 [08:27:39]line РÐМ: 0000000000090913 [08:27:39]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:27:39]line ФД оÑн.: 70653 [08:27:39]line ФМ оÑн.: 0000000000874915 [08:27:39]line ФМ: 0000000000874915 [08:27:39]line ФД: 70654 [08:27:39]line ФПД: 83214703053856 [08:27:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T082739&type=2&operation_type=1&fn_number=0000000000874915&fd_number=70654&fm=83214703053856&tin=02508201610067®Number=0000000000090913&sum=350000 [08:27:39]OFD Sender: Processing packet 70654 [packets to send 67, broken 66] [08:27:39]ProducePacketName [08:27:39]name=ofd_packets/00070654 [08:27:39]OFD Sender: To server: ‡•öpG, [08:27:39]CommunicateWithHost lk.salyk.kg:30040 [08:27:39]ConnectInit lk.salyk.kg [08:27:39]written 0, free lines is 4095 [08:27:39]Connected sock=10 [08:27:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 2B 01 00 00 4B 27 23 01 32 C7 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 CF 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6D 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 FB 18 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 FD 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FE 13 01 00 35 04 06 00 4B AE EE D0 CC 20 8A DD 09 BB 13 28 23 08 [08:27:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 B5 5B 47 00 62 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 39 31 35 10 04 04 00 FE 13 01 00 F4 03 04 00 E6 BF BA 66 B6 04 01 00 00 1A 7D E3 21 A2 0B 5C 60 [08:27:39]CommunicateWithHost err = 0 [08:27:39]CheckOFDResponse [08:27:39]1017 (14) - 77093643461234 [08:27:39]1041 (16) - 0000000000874915 [08:27:39]1040 (4) - 70654 [08:27:39]1012 (4) - 13.08.2024 02:07 [08:27:39]1206 (1) - 0 [08:27:39]OFD Sender: Remove packet 70654 [08:27:39]ProducePacketName [08:27:39]name=ofd_packets/00070654 [08:27:39]NVStorageDeleteData [08:27:39]Write to MH i2c: 01 00 00 C1 02 C3 [08:27:39]Write i2c OK [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: 01 [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: 01 07 00 [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: 01 07 00 C1 02 00 00 00 00 00 F5 0C CB [08:27:39]RasterBufferAndPrint [08:27:39]line [08:27:39]line [08:27:39]line [08:27:39]line [08:27:39]line [08:27:39]written 0, free lines is 3323 [08:27:39]MH_Cut [08:27:39]Write to MH i2c: D1 01 00 C8 02 01 9C [08:27:39]Write i2c OK [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: D1 [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: D1 01 00 [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: D1 01 00 C8 02 00 9B [08:27:39]Write to MH i2c: 01 00 00 C9 02 CB [08:27:39]Write i2c OK [08:27:39]MH_I2C_Read... [08:27:40]OFD Sender: No OFD packet to send [08:27:40]*** Cut start [08:27:40]*** Purtial cut [08:27:40]*** CUTSNS_PIN = 0 [08:27:40]*** Stage 1: CUTSNS_PIN = 1 [08:27:42]Read from MH i2c: 01 [08:27:42]MH_I2C_Read... [08:27:42]*** Stop cut motor [08:27:42]*** Cut end [08:27:42]Read from MH i2c: 01 07 00 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: 01 07 00 C9 02 00 00 00 00 00 FF 0F E0 [08:27:42]process_action close_receipt done [08:27:42]requested_data is exist [08:27:42]produce_requested_data [08:27:42]requested_item fm.sn is exist - process it [08:27:42]wFMCommunicate request_size=4 [08:27:42]MH_SAM_APDU [08:27:42]CAPDU: 80 11 00 00 [08:27:42]Write to MH i2c: E2 08 00 CA 02 80 11 00 00 00 00 00 00 46 [08:27:42]Write i2c OK [08:27:42]MH_I2C_Read... [08:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:42]Read from MH i2c: E2 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 17 00 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 17 00 CA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 9B [08:27:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:27:42]wFMCommunicate OK [08:27:42]requested_item fd.num is exist - process it [08:27:42]SAM_PROTO_GetFieldsCounters [08:27:42]wFMCommunicate request_size=4 [08:27:42]MH_SAM_APDU [08:27:42]CAPDU: 80 13 00 00 [08:27:42]Write to MH i2c: E2 08 00 CB 02 80 13 00 00 00 00 00 00 49 [08:27:42]Write i2c OK [08:27:42]MH_I2C_Read... [08:27:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:42]Read from MH i2c: E2 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 62 00 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 62 00 CB 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 FE 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [08:27: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 FE 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:42]wFMCommunicate OK [08:27:42]SAM_PROTO_GetFieldsCounters done [08:27:42]requested_item shift.num is exist - process it [08:27:42]requested_item shift.opened is exist - process it [08:27:42]req_shift_opened [08:27:42]FM_GetShiftState [08:27:42]SAM_PROTO_GetShiftState [08:27:42]wFMCommunicate request_size=4 [08:27:42]MH_SAM_APDU [08:27:42]CAPDU: 80 13 01 00 [08:27:42]Write to MH i2c: E2 08 00 CC 02 80 13 01 00 00 00 00 00 4B [08:27:42]Write i2c OK [08:27:42]MH_I2C_Read... [08:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:42]Read from MH i2c: E2 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 0E 00 [08:27:42]MH_I2C_Read... [08:27:42]Read from MH i2c: E2 0E 00 CC 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 BA [08:27:42]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:27:42]wFMCommunicate OK [08:27:42]SAM_PROTO_GetShiftState done [08:27:42]FM_GetShiftState done [08:27:42]req_shift_opened done [08:27:42]requested_item shift.open_date is exist - process it [08:27:42]req_shift_open_date [08:27:42]req_shift_open_date done [08:27:42]produce_requested_data done [08:27:42]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70654,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [08:27:42]process_action_free close_receipt [08:27:42]json_value_free [08:27:42]json_value_free done [08:27:42]process_json_proto returns [08:27:42]Send response to host [08:27:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70654,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [08:27:42]free response buf [08:27:42]execute_script done [08:27:42]execute_script returns [08:27:42]free content buf [08:27:42]Sock 7.Close socket [08:27:42]Sock 7.Thread stoped [08:27:43]accept exits with 9 [08:27:43]New connection [08:27:43]New thread 3067358564 created [08:27:43]Thread 3067215204 joined [08:27:43]Waiting for new connection... [08:27:43] Sock 9.Parse request [08:27:43]Sock 9.Check first char [08:27:43]Sock 9.First char is OK [08:27:43]request: POST /json_proto HTTP/1.0 [08:27:43]Method: POST [08:27:43]URL: /json_proto [08:27:43]Method is POST - this is cgi request [08:27:43]url: /json_proto [08:27:43]query_string will be loaded in cgi processing [08:27:43]execute_cgi json_proto POST (null) [08:27:43]execute_cgi path=json_proto method=POST [08:27:43]POST find Content-Length [08:27:43]Host: 172.17.58.67:8080 [08:27:43]Content-Length: 682 [08:27:43]Content-Type: application/json [08:27:43] [08:27:43]POST finish read [08:27:43]Found Content-Length = 682 [08:27:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 42.480, "sum" : 2799.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 2799.00, "payments": [ { "type": 0, "sum" : 2799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:43]execute_script... [08:27: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)141107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 42.480, "sum" : 2799.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 2799.00, "payments": [ { "type": 0, "sum" : 2799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:43]POST & json_proto [08:27:43]process_json_proto [08:27:43]json parsed OK: [08:27:43]protocol is kg_v1.0 [08:27:43]action value=close_receipt [08:27:43]process_action close_receipt [08:27:43]cmd_close_receipt [08:27:43]MH_GetDate [08:27:43]Write to MH i2c: F0 00 00 CD 02 BE [08:27:43]Write i2c OK [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: F0 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: F0 09 00 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: F0 09 00 CD 02 00 01 19 BB 66 94 51 63 64 AE [08:27:43]GetLastDocTimeStamp 1723537659 [08:27:43]current date 1723537665 [08:27:43]FM_GetShiftState [08:27:43]SAM_PROTO_GetShiftState [08:27:43]wFMCommunicate request_size=4 [08:27:43]MH_SAM_APDU [08:27:43]CAPDU: 80 13 01 00 [08:27:43]Write to MH i2c: E2 08 00 CE 02 80 13 01 00 00 00 00 00 4D [08:27:43]Write i2c OK [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: E2 [08:27:43]MH_I2C_Read... [08:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:43]Read from MH i2c: E2 0E 00 [08:27:43]MH_I2C_Read... [08:27:43]Read from MH i2c: E2 0E 00 CE 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 BC [08:27:43]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:27:43]wFMCommunicate OK [08:27:43]SAM_PROTO_GetShiftState done [08:27:43]FM_GetShiftState done [08:27:43]opened in 1723509656 [08:27:43]opened+sec_in_day 1723596056 [08:27:43]quantity*price = 279943 [08:27:43]sum+1 = 279944 [08:27:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.43 ИТОГО: 2799.00 ВнеÑено: 3500.00 СДÐЧÐ: 701.00 ÐСП 1% : 24.77 ÐДС 12% : 297.28 Ðаличными: 2799.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 9 13.08.2024 08:27 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70655 ФПД: 119402777742464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T082745&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70655&fm=119402777742464&tin=02508201610067®Number=0000000000090913&sum=279900 [08:27:44]StoreToDocumentArchive [08:27:44]shift 466 fd 70655 [08:27:44]save to /storage/0466/doc_00070655 [08:27:44]save last doc name /storage/0466/doc_00070655 to /storage/kkm_last_doc_name [08:27:44]save OK [08:27:44]Clear old archive folders... [08:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:27:44]tlvbuf is 017A6B90 [08:27:44]SAM_PROTO_ClearQueue [08:27:44]wFMCommunicate request_size=4 [08:27:44]MH_SAM_APDU [08:27:44]CAPDU: 80 09 00 00 [08:27:44]Write to MH i2c: E2 08 00 DB 02 80 09 00 00 00 00 00 00 4F [08:27:44]Write i2c OK [08:27:44]MH_I2C_Read... [08:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:44]Read from MH i2c: E2 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: E2 03 00 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: E2 03 00 DB 02 00 90 00 51 [08:27:44]RAPDU: 90 00 [08:27:44]wFMCommunicate OK [08:27:44]SAM_PROTO_ClearQueue done [08:27:44]KKMCreateOFDPacket [08:27:44]OFDProtocolAddRootSTLVToBuf [08:27:44]FM_MakeSignedData [08:27:44]FM_MakeSignedData [08:27:44]SAM_PROTO_SignData [08:27:44]wFMCommunicate request_size=4 [08:27:44]MH_SAM_APDU [08:27:44]CAPDU: 80 0D 01 02 [08:27:44]Write to MH i2c: E2 08 00 DC 02 80 0D 01 02 00 00 00 00 57 [08:27:44]Write i2c OK [08:27:44]MH_I2C_Read... [08:27:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:44]Read from MH i2c: E2 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: E2 03 00 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: E2 03 00 DC 02 00 90 00 52 [08:27:44]RAPDU: 90 00 [08:27:44]wFMCommunicate OK [08:27:44]wFMCommunicate request_size=255 [08:27:44]MH_SAM_APDU [08:27: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 F0 A5 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 87 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 74 00 00 00 00 07 04 06 00 5C 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 01 19 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FF 13 01 00 35 04 06 00 6C [08:27:44]Write to MH i2c: E2 02 01 DD 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 F0 A5 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 87 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 74 00 00 00 00 07 04 06 00 5C 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 01 19 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FF 13 01 00 35 04 06 00 6C 00 00 C6 [08:27:44]Write i2c OK [08:27:44]MH_I2C_Read... [08:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:45]Read from MH i2c: E2 [08:27:45]MH_I2C_Read... [08:27:45]Read from MH i2c: E2 03 00 [08:27:45]MH_I2C_Read... [08:27:45]Read from MH i2c: E2 03 00 DD 02 00 90 00 53 [08:27:45]RAPDU: 90 00 [08:27:45]wFMCommunicate OK [08:27:45]wFMCommunicate request_size=10 [08:27:45]MH_SAM_APDU [08:27:45]CAPDU: 80 0D 02 02 05 98 A0 27 0C 80 [08:27:45]Write to MH i2c: E2 0D 00 DE 02 80 0D 02 02 05 00 98 A0 27 0C 80 00 00 4F [08:27:45]Write i2c OK [08:27:45]MH_I2C_Read... [08:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:45]OFD Sender: No OFD packet to send [08:27:45]Read from MH i2c: E2 [08:27:45]MH_I2C_Read... [08:27:45]Read from MH i2c: E2 03 00 [08:27:45]MH_I2C_Read... [08:27:45]Read from MH i2c: E2 03 00 DE 02 00 90 00 54 [08:27:45]RAPDU: 90 00 [08:27:45]wFMCommunicate OK [08:27:45]wFMCommunicate request_size=4 [08:27:45]MH_SAM_APDU [08:27:45]CAPDU: 80 0D 03 02 [08:27:45]Write to MH i2c: E2 08 00 DF 02 80 0D 03 02 00 00 00 00 5C [08:27:45]Write i2c OK [08:27:45]MH_I2C_Read... [08:27:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:45]Read from MH i2c: E2 [08:27:45]MH_I2C_Read... [08:27:45]Read from MH i2c: E2 0B 00 [08:27:45]MH_I2C_Read... [08:27:45]Read from MH i2c: E2 0B 00 DF 02 00 2B B1 14 32 D7 CE 6C 68 90 00 F8 [08:27:45]RAPDU: 2B B1 14 32 D7 CE 6C 68 90 00 [08:27:45]wFMCommunicate OK [08:27:45]SAM_PROTO_SignData done [08:27:45]FM_MakeSignedData done [08:27:45]CreateOFDProtocolMessage [08:27:45]wFMCommunicate request_size=4 [08:27:45]MH_SAM_APDU [08:27:45]CAPDU: 80 11 00 00 [08:27:45]Write to MH i2c: E2 08 00 E0 02 80 11 00 00 00 00 00 00 5C [08:27:45]Write i2c OK [08:27:45]MH_I2C_Read... [08:27:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:45]Read from MH i2c: E2 [08:27:45]MH_I2C_Read... [08:27:45]Read from MH i2c: E2 17 00 [08:27:45]MH_I2C_Read... [08:27:45]Read from MH i2c: E2 17 00 E0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 B1 [08:27:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:27:45]wFMCommunicate OK [08:27:45]CreateOFDProtocolMessage done [08:27:45]OFDSenderStorePacket 70655 [08:27:45]StoreOFDPacket docnum=70655 [08:27:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 F4 46 07 01 DE 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 A5 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 87 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 74 00 00 00 00 07 04 06 00 5C 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 01 19 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FF 13 01 00 35 04 06 00 6C 98 A0 27 0C 80 2B B1 14 32 D7 CE 6C 68 [08:27:45]CheckFolder [08:27:45]dirname=/storage/ofd_packets [08:27:45]CheckFolder done [08:27:45]ProducePacketName [08:27:45]name=ofd_packets/00070655 [08:27:45]NVStorageSaveData ofd_packets/00070655 [08:27:45]File name is /storage/ofd_packets/00070655 [08:27:45]Write 301 bytes [08:27:45]NVStorageSaveData done [08:27:45]OFDSenderStorePacket done [08:27:45]KKMCreateOFDPacket done [08:27:45]NVStorageSaveData kkm_last_timestamp [08:27:45]File name is /storage/kkm_last_timestamp [08:27:45]Write 4 bytes [08:27:45]NVStorageSaveData done [08:27:45]ExternCall_PrintAddStr [08:27:45]wPrintStart [08:27:45]Write to MH i2c: 01 00 00 E1 02 E3 [08:27:45]Write i2c OK [08:27:45]MH_I2C_Read... [08:27:45]Read from MH i2c: 01 [08:27:45]MH_I2C_Read... [08:27:45]Read from MH i2c: 01 07 00 [08:27:45]MH_I2C_Read... [08:27:45]Read from MH i2c: 01 07 00 E1 02 00 00 00 00 00 FF 0F F8 [08:27:45]RasterBufferAndPrint [08:27:45]line Счет N : (1)141107 [08:27:45]line ИÐÐ: 02508201610067 [08:27:45]line Контрольно-КаÑÑовый Чек [08:27:45]line ПРОДÐЖР[08:27:45]line ТРК (МРК, ГÐК) : 41 [08:27:45]line Товар: 2710124130 [08:27:45]line Ðи-92-К-5 [08:27:45]line 42.480 * 65.90 [08:27:45]line = 2799.43 [08:27:45]line ÐДС 12% ÐСП 1% [08:27:45]line > о реализуемом товаре [08:27:45]line ОКРУГЛЕÐИЕ: -0.43 [08:27:45]line ИТОГО: 2799.00 [08:27:45]line ВнеÑено: 3500.00 [08:27:45]line СДÐЧÐ: 701.00 [08:27:45]line ÐСП 1% : 24.77 [08:27:45]line ÐДС 12% : 297.28 [08:27:45]line Ðаличными: 2799.00 [08:27:45]line Безнал.: 0.00 [08:27:45]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [08:27:45]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [08:27:45]line СÐО: Общий режим [08:27:45]line Чек 9 13.08.2024 08:27 [08:27:45]line Смена: 466 ФФД: 1.0 [08:27:45]line ЗÐМ: 0300000140 [08:27:45]line РÐМ: 0000000000090913 [08:27:45]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:27:45]line ФМ: 0000000000874915 [08:27:45]line ФД: 70655 [08:27:45]line ФПД: 119402777742464 [08:27:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T082745&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70655&fm=119402777742464&tin=02508201610067®Number=0000000000090913&sum=279900 [08:27:45]written 0, free lines is 4095 [08:27:45]OFD Sender: Processing packet 70655 [packets to send 67, broken 66] [08:27:45]ProducePacketName [08:27:45]name=ofd_packets/00070655 [08:27:45]OFD Sender: To server: ‡•öpG, [08:27:45]CommunicateWithHost lk.salyk.kg:30040 [08:27:45]ConnectInit lk.salyk.kg [08:27:45]Connected sock=10 [08:27: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 39 31 35 0F 01 00 00 F4 46 07 01 DE 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 A5 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 87 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 74 00 00 00 00 07 04 06 00 5C 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 01 19 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FF 13 01 00 35 04 06 00 6C 98 A0 27 0C 80 2B B1 14 32 D7 CE 6C 68 [08:27:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 CB 6B 47 00 54 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 FF 13 01 00 F4 03 04 00 ED BF BA 66 B6 04 01 00 00 4D 45 28 DB AE A9 74 05 [08:27:46]CommunicateWithHost err = 0 [08:27:46]CheckOFDResponse [08:27:46]1017 (14) - 77093643461234 [08:27:46]1041 (16) - 0000000000874915 [08:27:46]1040 (4) - 70655 [08:27:46]1012 (4) - 13.08.2024 02:07 [08:27:46]1206 (1) - 0 [08:27:46]OFD Sender: Remove packet 70655 [08:27:46]ProducePacketName [08:27:46]name=ofd_packets/00070655 [08:27:46]NVStorageDeleteData [08:27:46]Write to MH i2c: 01 00 00 0C 03 0F [08:27:46]Write i2c OK [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: 01 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: 01 07 00 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: 01 07 00 0C 03 00 00 00 00 00 EC 0C 0E [08:27:46]RasterBufferAndPrint [08:27:46]line [08:27:46]line [08:27:46]line [08:27:46]line [08:27:46]line [08:27:46]written 0, free lines is 3317 [08:27:46]MH_Cut [08:27:46]Write to MH i2c: D1 01 00 13 03 01 E8 [08:27:46]Write i2c OK [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: D1 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: D1 01 00 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: D1 01 00 13 03 00 E7 [08:27:46]Write to MH i2c: 01 00 00 14 03 17 [08:27:46]Write i2c OK [08:27:46]MH_I2C_Read... [08:27:46]OFD Sender: No OFD packet to send [08:27:46]*** Cut start [08:27:46]*** Purtial cut [08:27:46]*** Stage 1: CUTSNS_PIN = 1 [08:27:47]Read from MH i2c: 01 [08:27:47]MH_I2C_Read... [08:27:47]*** Stop cut motor [08:27:47]*** Cut end [08:27:47]Read from MH i2c: 01 07 00 [08:27:47]MH_I2C_Read... [08:27:47]Read from MH i2c: 01 07 00 14 03 00 00 00 00 00 FF 0F 2C [08:27:47]process_action close_receipt done [08:27:47]requested_data is exist [08:27:47]produce_requested_data [08:27:47]requested_item fm.sn is exist - process it [08:27:47]wFMCommunicate request_size=4 [08:27:47]MH_SAM_APDU [08:27:47]CAPDU: 80 11 00 00 [08:27:47]Write to MH i2c: E2 08 00 15 03 80 11 00 00 00 00 00 00 92 [08:27:47]Write i2c OK [08:27:47]MH_I2C_Read... [08:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:47]Read from MH i2c: E2 [08:27:47]MH_I2C_Read... [08:27:47]Read from MH i2c: E2 17 00 [08:27:47]MH_I2C_Read... [08:27:47]Read from MH i2c: E2 17 00 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 E7 [08:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:27:47]wFMCommunicate OK [08:27:47]requested_item fd.num is exist - process it [08:27:47]SAM_PROTO_GetFieldsCounters [08:27:47]wFMCommunicate request_size=4 [08:27:47]MH_SAM_APDU [08:27:47]CAPDU: 80 13 00 00 [08:27:47]Write to MH i2c: E2 08 00 16 03 80 13 00 00 00 00 00 00 95 [08:27:47]Write i2c OK [08:27:47]MH_I2C_Read... [08:27:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:47]Read from MH i2c: E2 [08:27:47]MH_I2C_Read... [08:27:47]Read from MH i2c: E2 62 00 [08:27:47]MH_I2C_Read... [08:27:47]Read from MH i2c: E2 62 00 16 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 FF 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [08:27: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 FF 13 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:47]wFMCommunicate OK [08:27:47]SAM_PROTO_GetFieldsCounters done [08:27:47]requested_item shift.num is exist - process it [08:27:47]requested_item shift.opened is exist - process it [08:27:47]req_shift_opened [08:27:47]FM_GetShiftState [08:27:47]SAM_PROTO_GetShiftState [08:27:47]wFMCommunicate request_size=4 [08:27:47]MH_SAM_APDU [08:27:47]CAPDU: 80 13 01 00 [08:27:47]Write to MH i2c: E2 08 00 17 03 80 13 01 00 00 00 00 00 97 [08:27:47]Write i2c OK [08:27:47]MH_I2C_Read... [08:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:47]Read from MH i2c: E2 [08:27:47]MH_I2C_Read... [08:27:47]Read from MH i2c: E2 0E 00 [08:27:47]MH_I2C_Read... [08:27:47]Read from MH i2c: E2 0E 00 17 03 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 06 [08:27:47]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:27:47]wFMCommunicate OK [08:27:47]SAM_PROTO_GetShiftState done [08:27:47]FM_GetShiftState done [08:27:47]req_shift_opened done [08:27:47]requested_item shift.open_date is exist - process it [08:27:47]req_shift_open_date [08:27:47]req_shift_open_date done [08:27:47]produce_requested_data done [08:27:47]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70655,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [08:27:47]process_action_free close_receipt [08:27:47]json_value_free [08:27:47]json_value_free done [08:27:47]process_json_proto returns [08:27:47]Send response to host [08:27:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70655,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [08:27:47]free response buf [08:27:47]execute_script done [08:27:47]execute_script returns [08:27:47]free content buf [08:27:47]Sock 9.Close socket [08:27:47]Sock 9.Thread stoped [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]accept exits with 7 [08:30:11]New connection [08:30:11]New thread 3067215204 created [08:30:11]Thread 3067358564 joined [08:30:11]Waiting for new connection... [08:30:11] Sock 7.Parse request [08:30:11]Sock 7.Check first char [08:30:11]Sock 7.First char is OK [08:30:11]request: POST /json_proto HTTP/1.0 [08:30:11]Method: POST [08:30:11]URL: /json_proto [08:30:11]Method is POST - this is cgi request [08:30:11]url: /json_proto [08:30:11]query_string will be loaded in cgi processing [08:30:11]execute_cgi json_proto POST (null) [08:30:11]execute_cgi path=json_proto method=POST [08:30:11]POST find Content-Length [08:30:11]Host: 172.17.58.67:8080 [08:30:11]Content-Length: 819 [08:30:11]Content-Type: application/json [08:30:11] [08:30:11]POST finish read [08:30:11]Found Content-Length = 819 [08:30:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "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" : 1500.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:11]execute_script... [08:30: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)141109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "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" : 1500.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:11]POST & json_proto [08:30:11]process_json_proto [08:30:11]json parsed OK: [08:30:11]protocol is kg_v1.0 [08:30:11]action value=close_receipt [08:30:11]process_action close_receipt [08:30:11]cmd_close_receipt [08:30:11]MH_GetDate [08:30:11]Write to MH i2c: F0 00 00 18 03 0A [08:30:11]Write i2c OK [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: F0 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: F0 09 00 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: F0 09 00 18 03 00 95 19 BB 66 94 51 63 64 8E [08:30:11]GetLastDocTimeStamp 1723537665 [08:30:11]current date 1723537813 [08:30:11]FM_GetShiftState [08:30:11]SAM_PROTO_GetShiftState [08:30:11]wFMCommunicate request_size=4 [08:30:11]MH_SAM_APDU [08:30:11]CAPDU: 80 13 01 00 [08:30:11]Write to MH i2c: E2 08 00 19 03 80 13 01 00 00 00 00 00 99 [08:30:11]Write i2c OK [08:30:11]MH_I2C_Read... [08:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:11]Read from MH i2c: E2 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 0E 00 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 0E 00 19 03 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 08 [08:30:11]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:30:11]wFMCommunicate OK [08:30:11]SAM_PROTO_GetShiftState done [08:30:11]FM_GetShiftState done [08:30:11]opened in 1723509656 [08:30:11]opened+sec_in_day 1723596056 [08:30:11]quantity*price = 150054 [08:30:11]sum+1 = 150055 [08:30:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.54 ÐСП 1% : 13.28 ÐДС 12% : 159.35 Ðаличными: 0.00 Безнал.: 1500.54 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 10 13.08.2024 08:30 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000000874915 ФД: 70656 ФПД: 232786739654521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T083013&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70656&fm=232786739654521&tin=02508201610067®Number=0000000000090913&sum=150054 [08:30:12]StoreToDocumentArchive [08:30:12]shift 466 fd 70656 [08:30:12]save to /storage/0466/doc_00070656 [08:30:12]save last doc name /storage/0466/doc_00070656 to /storage/kkm_last_doc_name [08:30:12]save OK [08:30:12]Clear old archive folders... [08:30:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:12]tlvbuf is 017EA190 [08:30:12]SAM_PROTO_ClearQueue [08:30:12]wFMCommunicate request_size=4 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 09 00 00 [08:30:12]Write to MH i2c: E2 08 00 26 03 80 09 00 00 00 00 00 00 9B [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 26 03 00 90 00 9D [08:30:12]RAPDU: 90 00 [08:30:12]wFMCommunicate OK [08:30:12]SAM_PROTO_ClearQueue done [08:30:12]KKMCreateOFDPacket [08:30:12]OFDProtocolAddRootSTLVToBuf [08:30:12]FM_MakeSignedData [08:30:12]FM_MakeSignedData [08:30:12]SAM_PROTO_SignData [08:30:12]wFMCommunicate request_size=4 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 0D 01 02 [08:30:12]Write to MH i2c: E2 08 00 27 03 80 0D 01 02 00 00 00 00 A3 [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 27 03 00 90 00 9E [08:30:12]RAPDU: 90 00 [08:30:12]wFMCommunicate OK [08:30:12]wFMCommunicate request_size=255 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 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 26 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 95 19 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 00 14 01 00 35 04 06 00 D3 [08:30:12]Write to MH i2c: E2 02 01 28 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 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 26 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 95 19 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 00 14 01 00 35 04 06 00 D3 00 00 69 [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 28 03 00 90 00 9F [08:30:12]RAPDU: 90 00 [08:30:12]wFMCommunicate OK [08:30:12]wFMCommunicate request_size=10 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 0D 02 02 05 B7 E2 EC EF 79 [08:30:12]Write to MH i2c: E2 0D 00 29 03 80 0D 02 02 05 00 B7 E2 EC EF 79 00 00 9D [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 29 03 00 90 00 A0 [08:30:12]RAPDU: 90 00 [08:30:12]wFMCommunicate OK [08:30:12]wFMCommunicate request_size=4 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 0D 03 02 [08:30:12]Write to MH i2c: E2 08 00 2A 03 80 0D 03 02 00 00 00 00 A8 [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:13]Read from MH i2c: E2 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: E2 0B 00 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: E2 0B 00 2A 03 00 8B C3 59 7A 47 F3 24 50 90 00 78 [08:30:13]RAPDU: 8B C3 59 7A 47 F3 24 50 90 00 [08:30:13]wFMCommunicate OK [08:30:13]SAM_PROTO_SignData done [08:30:13]FM_MakeSignedData done [08:30:13]CreateOFDProtocolMessage [08:30:13]wFMCommunicate request_size=4 [08:30:13]MH_SAM_APDU [08:30:13]CAPDU: 80 11 00 00 [08:30:13]Write to MH i2c: E2 08 00 2B 03 80 11 00 00 00 00 00 00 A8 [08:30:13]Write i2c OK [08:30:13]MH_I2C_Read... [08:30:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:13]Read from MH i2c: E2 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: E2 17 00 [08:30:13]MH_I2C_Read... [08:30:13]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 39 31 35 90 00 FD [08:30:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:30:13]wFMCommunicate OK [08:30:13]CreateOFDProtocolMessage done [08:30:13]OFDSenderStorePacket 70656 [08:30:13]StoreOFDPacket docnum=70656 [08:30:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 DE E7 07 01 51 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 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 26 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 95 19 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 00 14 01 00 35 04 06 00 D3 B7 E2 EC EF 79 8B C3 59 7A 47 F3 24 50 [08:30:13]CheckFolder [08:30:13]dirname=/storage/ofd_packets [08:30:13]CheckFolder done [08:30:13]ProducePacketName [08:30:13]name=ofd_packets/00070656 [08:30:13]NVStorageSaveData ofd_packets/00070656 [08:30:13]File name is /storage/ofd_packets/00070656 [08:30:13]Write 301 bytes [08:30:13]NVStorageSaveData done [08:30:13]OFDSenderStorePacket done [08:30:13]KKMCreateOFDPacket done [08:30:13]NVStorageSaveData kkm_last_timestamp [08:30:13]File name is /storage/kkm_last_timestamp [08:30:13]Write 4 bytes [08:30:13]NVStorageSaveData done [08:30:13]ExternCall_PrintAddStr [08:30:13]wPrintStart [08:30:13]Write to MH i2c: 01 00 00 2C 03 2F [08:30:13]Write i2c OK [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: 01 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: 01 07 00 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: 01 07 00 2C 03 00 00 00 00 00 FF 0F 44 [08:30:13]RasterBufferAndPrint [08:30:13]line Счет N : (1)141109 [08:30:13]line ИÐÐ: 02508201610067 [08:30:13]line Контрольно-КаÑÑовый Чек [08:30:13]line ПРОДÐЖР[08:30:13]line ТРК (МРК, ГÐК) : 41 [08:30:13]line Товар: 2710124130 [08:30:13]line Ðи-92-К-5 [08:30:13]line 22.770 * 65.90 [08:30:13]line = 1500.54 [08:30:13]line ÐДС 12% ÐСП 1% [08:30:13]line > о реализуемом товаре [08:30:13]line ИТОГО: 1500.54 [08:30:13]line ÐСП 1% : 13.28 [08:30:13]line ÐДС 12% : 159.35 [08:30:13]line Ðаличными: 0.00 [08:30:13]line Безнал.: 1500.54 [08:30:13]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [08:30:13]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [08:30:13]line СÐО: Общий режим [08:30:13]line Чек 10 13.08.2024 08:30 [08:30:13]line Смена: 466 ФФД: 1.0 [08:30:13]line ЗÐМ: 0300000140 [08:30:13]line РÐМ: 0000000000090913 [08:30:13]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:30:13]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [08:30:13]line ФМ: 0000000000874915 [08:30:13]line ФД: 70656 [08:30:13]line ФПД: 232786739654521 [08:30:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T083013&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70656&fm=232786739654521&tin=02508201610067®Number=0000000000090913&sum=150054 [08:30:13]written 0, free lines is 4095 [08:30:13]OFD Sender: Processing packet 70656 [packets to send 67, broken 66] [08:30:13]ProducePacketName [08:30:13]name=ofd_packets/00070656 [08:30:13]OFD Sender: To server: ‡•öpG, [08:30:13]CommunicateWithHost lk.salyk.kg:30040 [08:30:13]ConnectInit lk.salyk.kg [08:30:13]Connected sock=10 [08:30: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 39 31 35 0F 01 00 00 DE E7 07 01 51 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 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 26 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 95 19 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 00 14 01 00 35 04 06 00 D3 B7 E2 EC EF 79 8B C3 59 7A 47 F3 24 50 [08:30:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 1B A3 47 00 3C 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 00 14 01 00 F4 03 04 00 80 C0 BA 66 B6 04 01 00 00 10 37 03 D5 FE 4B 5D DE [08:30:13]CommunicateWithHost err = 0 [08:30:13]CheckOFDResponse [08:30:13]1017 (14) - 77093643461234 [08:30:13]1041 (16) - 0000000000874915 [08:30:13]1040 (4) - 70656 [08:30:13]1012 (4) - 13.08.2024 02:10 [08:30:13]1206 (1) - 0 [08:30:13]OFD Sender: Remove packet 70656 [08:30:13]ProducePacketName [08:30:13]name=ofd_packets/00070656 [08:30:13]NVStorageDeleteData [08:30:13]Write to MH i2c: 01 00 00 56 03 59 [08:30:13]Write i2c OK [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: 01 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: 01 07 00 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: 01 07 00 56 03 00 00 00 00 00 F6 0C 62 [08:30:13]RasterBufferAndPrint [08:30:13]line [08:30:13]line [08:30:13]line [08:30:13]line [08:30:13]line [08:30:13]written 0, free lines is 3324 [08:30:13]MH_Cut [08:30:13]Write to MH i2c: D1 01 00 5D 03 01 32 [08:30:13]Write i2c OK [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: D1 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: D1 01 00 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: D1 01 00 5D 03 00 31 [08:30:13]Write to MH i2c: 01 00 00 5E 03 61 [08:30:13]Write i2c OK [08:30:13]MH_I2C_Read... [08:30:14]OFD Sender: No OFD packet to send [08:30:14]*** Cut start [08:30:14]*** Purtial cut [08:30:14]*** CUTSNS_PIN = 0 [08:30:14]*** Stage 1: CUTSNS_PIN = 1 [08:30:16]Read from MH i2c: 01 [08:30:16]MH_I2C_Read... [08:30:16]*** Stop cut motor [08:30:16]*** Cut end [08:30:16]Read from MH i2c: 01 07 00 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: 01 07 00 5E 03 00 00 00 00 00 FF 0F 76 [08:30:16]process_action close_receipt done [08:30:16]requested_data is exist [08:30:16]produce_requested_data [08:30:16]requested_item fm.sn is exist - process it [08:30:16]wFMCommunicate request_size=4 [08:30:16]MH_SAM_APDU [08:30:16]CAPDU: 80 11 00 00 [08:30:16]Write to MH i2c: E2 08 00 5F 03 80 11 00 00 00 00 00 00 DC [08:30:16]Write i2c OK [08:30:16]MH_I2C_Read... [08:30:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:16]Read from MH i2c: E2 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 17 00 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 17 00 5F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 31 [08:30:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:30:16]wFMCommunicate OK [08:30:16]requested_item fd.num is exist - process it [08:30:16]SAM_PROTO_GetFieldsCounters [08:30:16]wFMCommunicate request_size=4 [08:30:16]MH_SAM_APDU [08:30:16]CAPDU: 80 13 00 00 [08:30:16]Write to MH i2c: E2 08 00 60 03 80 13 00 00 00 00 00 00 DF [08:30:16]Write i2c OK [08:30:16]MH_I2C_Read... [08:30:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:16]Read from MH i2c: E2 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 62 00 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 62 00 60 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 00 14 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [08:30: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 00 14 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:16]wFMCommunicate OK [08:30:16]SAM_PROTO_GetFieldsCounters done [08:30:16]requested_item shift.num is exist - process it [08:30:16]requested_item shift.opened is exist - process it [08:30:16]req_shift_opened [08:30:16]FM_GetShiftState [08:30:16]SAM_PROTO_GetShiftState [08:30:16]wFMCommunicate request_size=4 [08:30:16]MH_SAM_APDU [08:30:16]CAPDU: 80 13 01 00 [08:30:16]Write to MH i2c: E2 08 00 61 03 80 13 01 00 00 00 00 00 E1 [08:30:16]Write i2c OK [08:30:16]MH_I2C_Read... [08:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:16]Read from MH i2c: E2 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 0E 00 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 0E 00 61 03 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 50 [08:30:16]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:30:16]wFMCommunicate OK [08:30:16]SAM_PROTO_GetShiftState done [08:30:16]FM_GetShiftState done [08:30:16]req_shift_opened done [08:30:16]requested_item shift.open_date is exist - process it [08:30:16]req_shift_open_date [08:30:16]req_shift_open_date done [08:30:16]produce_requested_data done [08:30:16]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70656,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [08:30:16]process_action_free close_receipt [08:30:16]json_value_free [08:30:16]json_value_free done [08:30:16]process_json_proto returns [08:30:16]Send response to host [08:30:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70656,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [08:30:16]free response buf [08:30:16]execute_script done [08:30:16]execute_script returns [08:30:16]free content buf [08:30:16]Sock 7.Close socket [08:30:16]Sock 7.Thread stoped [08:30:19]OFD Sender: No OFD packet to send [08:30:24]OFD Sender: No OFD packet to send [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:44]OFD Sender: No OFD packet to send [08:30:49]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:32]int [08:31:32]Write to MH i2c: 01 00 00 62 03 65 [08:31:32]*** FLAG_PRN_KEY set [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 62 03 00 08 00 00 00 FF 0F 82 [08:31:32]state=0 [08:31:32]Key pressed [08:31:32]Feed [08:31:32]Write to MH i2c: D8 00 00 63 03 3D [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: D8 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: D8 01 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: D8 01 00 63 03 00 3E [08:31:32]int [08:31:32]Write to MH i2c: 01 00 00 64 03 67 [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 64 03 00 48 00 00 00 3C 00 F2 [08:31:32]state=2 [08:31:32]Key pressed [08:31:32]int [08:31:32]Write to MH i2c: 01 00 00 65 03 68 [08:31:32]*** FLAG_PRN_KEY reset [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 65 03 00 00 00 00 00 F5 0F 73 [08:31:32]state=2 [08:31:32]Stop feed [08:31:32]int [08:31:32]Write to MH i2c: 01 00 00 66 03 69 [08:31:32]*** FLAG_PRN_KEY set [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 66 03 00 08 00 00 00 FF 0F 86 [08:31:32]state=0 [08:31:32]Key pressed [08:31:32]Feed [08:31:32]Write to MH i2c: D8 00 00 67 03 41 [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: D8 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: D8 01 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: D8 01 00 67 03 00 42 [08:31:32]int [08:31:32]Write to MH i2c: 01 00 00 68 03 6B [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 68 03 00 48 00 00 00 3C 00 F6 [08:31:32]state=2 [08:31:32]Key pressed [08:31:32]int [08:31:32]Write to MH i2c: 01 00 00 69 03 6C [08:31:32]*** FLAG_PRN_KEY reset [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 69 03 00 00 00 00 00 F5 0F 77 [08:31:32]state=2 [08:31:32]Stop feed [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:49]OFD Sender: No OFD packet to send [08:32:54]OFD Sender: No OFD packet to send [08:32:59]OFD Sender: No OFD packet to send [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:23]accept exits with 9 [08:54:23]New connection [08:54:23]New thread 3067358564 created [08:54:23]Thread 3067215204 joined [08:54:23]Waiting for new connection... [08:54:23] Sock 9.Parse request [08:54:23]Sock 9.Check first char [08:54:23]Sock 9.First char is OK [08:54:23]request: POST /json_proto HTTP/1.0 [08:54:23]Method: POST [08:54:23]URL: /json_proto [08:54:23]Method is POST - this is cgi request [08:54:23]url: /json_proto [08:54:23]query_string will be loaded in cgi processing [08:54:23]execute_cgi json_proto POST (null) [08:54:23]execute_cgi path=json_proto method=POST [08:54:23]POST find Content-Length [08:54:23]Host: 172.17.58.67:8080 [08:54:23]Content-Length: 682 [08:54:23]Content-Type: application/json [08:54:23] [08:54:23]POST finish read [08:54:23]Found Content-Length = 682 [08:54:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:23]execute_script... [08:54: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)141110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:23]POST & json_proto [08:54:23]process_json_proto [08:54:23]json parsed OK: [08:54:23]protocol is kg_v1.0 [08:54:23]action value=close_receipt [08:54:23]process_action close_receipt [08:54:23]cmd_close_receipt [08:54:23]MH_GetDate [08:54:23]Write to MH i2c: F0 00 00 6A 03 5C [08:54:23]Write i2c OK [08:54:23]MH_I2C_Read... [08:54:23]Read from MH i2c: F0 [08:54:23]MH_I2C_Read... [08:54:23]Read from MH i2c: F0 09 00 [08:54:23]MH_I2C_Read... [08:54:23]Read from MH i2c: F0 09 00 6A 03 00 41 1F BB 66 94 51 63 64 92 [08:54:23]GetLastDocTimeStamp 1723537813 [08:54:23]current date 1723539265 [08:54:23]FM_GetShiftState [08:54:23]SAM_PROTO_GetShiftState [08:54:23]wFMCommunicate request_size=4 [08:54:23]MH_SAM_APDU [08:54:23]CAPDU: 80 13 01 00 [08:54:23]Write to MH i2c: E2 08 00 6B 03 80 13 01 00 00 00 00 00 EB [08:54:23]Write i2c OK [08:54:23]MH_I2C_Read... [08:54:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:23]Read from MH i2c: E2 [08:54:23]MH_I2C_Read... [08:54:23]Read from MH i2c: E2 0E 00 [08:54:23]MH_I2C_Read... [08:54:23]Read from MH i2c: E2 0E 00 6B 03 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 5A [08:54:23]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:54:23]wFMCommunicate OK [08:54:23]SAM_PROTO_GetShiftState done [08:54:23]FM_GetShiftState done [08:54:23]opened in 1723509656 [08:54:23]opened+sec_in_day 1723596056 [08:54:23]quantity*price = 100036 [08:54:23]sum+1 = 100037 [08:54:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.36 ИТОГО: 1000.00 ВнеÑено: 1000.00 СДÐЧÐ: 0.00 ÐСП 1% : 8.85 ÐДС 12% : 106.23 Ðаличными: 1000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 11 13.08.2024 08:54 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70657 ФПД: 132337580712634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T085425&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70657&fm=132337580712634&tin=02508201610067®Number=0000000000090913&sum=100000 [08:54:24]StoreToDocumentArchive [08:54:24]shift 466 fd 70657 [08:54:24]save to /storage/0466/doc_00070657 [08:54:24]save last doc name /storage/0466/doc_00070657 to /storage/kkm_last_doc_name [08:54:24]save OK [08:54:24]Clear old archive folders... [08:54:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:24]tlvbuf is 017ED860 [08:54:24]SAM_PROTO_ClearQueue [08:54:24]wFMCommunicate request_size=4 [08:54:24]MH_SAM_APDU [08:54:24]CAPDU: 80 09 00 00 [08:54:24]Write to MH i2c: E2 08 00 78 03 80 09 00 00 00 00 00 00 ED [08:54:24]Write i2c OK [08:54:24]MH_I2C_Read... [08:54:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:24]Read from MH i2c: E2 [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: E2 03 00 [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: E2 03 00 78 03 00 90 00 EF [08:54:24]RAPDU: 90 00 [08:54:24]wFMCommunicate OK [08:54:24]SAM_PROTO_ClearQueue done [08:54:24]KKMCreateOFDPacket [08:54:24]OFDProtocolAddRootSTLVToBuf [08:54:24]FM_MakeSignedData [08:54:24]FM_MakeSignedData [08:54:24]SAM_PROTO_SignData [08:54:24]wFMCommunicate request_size=4 [08:54:24]MH_SAM_APDU [08:54:24]CAPDU: 80 0D 01 02 [08:54:24]Write to MH i2c: E2 08 00 79 03 80 0D 01 02 00 00 00 00 F5 [08:54:24]Write i2c OK [08:54:24]MH_I2C_Read... [08:54:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:24]Read from MH i2c: E2 [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: E2 03 00 [08:54:24]MH_I2C_Read... [08:54:24]Read from MH i2c: E2 03 00 79 03 00 90 00 F0 [08:54:24]RAPDU: 90 00 [08:54:24]wFMCommunicate OK [08:54:24]wFMCommunicate request_size=255 [08:54:24]MH_SAM_APDU [08:54:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 41 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 01 14 01 00 35 04 06 00 78 [08:54:24]Write to MH i2c: E2 02 01 7A 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 41 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 01 14 01 00 35 04 06 00 78 00 00 02 [08:54:24]Write i2c OK [08:54:24]MH_I2C_Read... [08:54:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:25]Read from MH i2c: E2 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 03 00 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 03 00 7A 03 00 90 00 F1 [08:54:25]RAPDU: 90 00 [08:54:25]wFMCommunicate OK [08:54:25]wFMCommunicate request_size=10 [08:54:25]MH_SAM_APDU [08:54:25]CAPDU: 80 0D 02 02 05 5C 3E 7D 22 BA [08:54:25]Write to MH i2c: E2 0D 00 7B 03 80 0D 02 02 05 00 5C 3E 7D 22 BA 00 00 F5 [08:54:25]Write i2c OK [08:54:25]MH_I2C_Read... [08:54:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:25]Read from MH i2c: E2 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 03 00 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 03 00 7B 03 00 90 00 F2 [08:54:25]RAPDU: 90 00 [08:54:25]wFMCommunicate OK [08:54:25]wFMCommunicate request_size=4 [08:54:25]MH_SAM_APDU [08:54:25]CAPDU: 80 0D 03 02 [08:54:25]Write to MH i2c: E2 08 00 7C 03 80 0D 03 02 00 00 00 00 FA [08:54:25]Write i2c OK [08:54:25]MH_I2C_Read... [08:54:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:25]Read from MH i2c: E2 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 0B 00 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 0B 00 7C 03 00 B0 E0 A6 3B 4A E4 19 83 90 00 36 [08:54:25]RAPDU: B0 E0 A6 3B 4A E4 19 83 90 00 [08:54:25]wFMCommunicate OK [08:54:25]SAM_PROTO_SignData done [08:54:25]FM_MakeSignedData done [08:54:25]CreateOFDProtocolMessage [08:54:25]wFMCommunicate request_size=4 [08:54:25]MH_SAM_APDU [08:54:25]CAPDU: 80 11 00 00 [08:54:25]Write to MH i2c: E2 08 00 7D 03 80 11 00 00 00 00 00 00 FA [08:54:25]Write i2c OK [08:54:25]MH_I2C_Read... [08:54:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:25]Read from MH i2c: E2 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: E2 17 00 [08:54:25]MH_I2C_Read... [08:54:25]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 39 31 35 90 00 4F [08:54:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:54:25]wFMCommunicate OK [08:54:25]CreateOFDProtocolMessage done [08:54:25]OFDSenderStorePacket 70657 [08:54:25]StoreOFDPacket docnum=70657 [08:54:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 83 19 07 01 F0 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 41 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 01 14 01 00 35 04 06 00 78 5C 3E 7D 22 BA B0 E0 A6 3B 4A E4 19 83 [08:54:25]CheckFolder [08:54:25]dirname=/storage/ofd_packets [08:54:25]CheckFolder done [08:54:25]ProducePacketName [08:54:25]name=ofd_packets/00070657 [08:54:25]NVStorageSaveData ofd_packets/00070657 [08:54:25]File name is /storage/ofd_packets/00070657 [08:54:25]Write 301 bytes [08:54:25]NVStorageSaveData done [08:54:25]OFDSenderStorePacket done [08:54:25]KKMCreateOFDPacket done [08:54:25]NVStorageSaveData kkm_last_timestamp [08:54:25]File name is /storage/kkm_last_timestamp [08:54:25]Write 4 bytes [08:54:25]NVStorageSaveData done [08:54:25]ExternCall_PrintAddStr [08:54:25]wPrintStart [08:54:25]Write to MH i2c: 01 00 00 7E 03 81 [08:54:25]Write i2c OK [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: 01 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: 01 07 00 [08:54:25]MH_I2C_Read... [08:54:25]Read from MH i2c: 01 07 00 7E 03 00 00 00 00 00 FF 0F 96 [08:54:25]RasterBufferAndPrint [08:54:25]line Счет N : (1)141110 [08:54:25]line ИÐÐ: 02508201610067 [08:54:25]line Контрольно-КаÑÑовый Чек [08:54:25]line ПРОДÐЖР[08:54:25]line ТРК (МРК, ГÐК) : 41 [08:54:25]line Товар: 2710124130 [08:54:25]line Ðи-92-К-5 [08:54:25]line 15.180 * 65.90 [08:54:25]line = 1000.36 [08:54:25]line ÐДС 12% ÐСП 1% [08:54:25]line > о реализуемом товаре [08:54:25]line ОКРУГЛЕÐИЕ: -0.36 [08:54:25]line ИТОГО: 1000.00 [08:54:25]line ВнеÑено: 1000.00 [08:54:25]line СДÐЧÐ: 0.00 [08:54:25]line ÐСП 1% : 8.85 [08:54:25]line ÐДС 12% : 106.23 [08:54:25]line Ðаличными: 1000.00 [08:54:25]line Безнал.: 0.00 [08:54:25]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [08:54:25]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [08:54:25]line СÐО: Общий режим [08:54:25]line Чек 11 13.08.2024 08:54 [08:54:25]line Смена: 466 ФФД: 1.0 [08:54:25]line ЗÐМ: 0300000140 [08:54:25]line РÐМ: 0000000000090913 [08:54:25]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:54:25]line ФМ: 0000000000874915 [08:54:25]line ФД: 70657 [08:54:25]line ФПД: 132337580712634 [08:54:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T085425&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70657&fm=132337580712634&tin=02508201610067®Number=0000000000090913&sum=100000 [08:54:25]OFD Sender: Processing packet 70657 [packets to send 67, broken 66] [08:54:25]ProducePacketName [08:54:25]name=ofd_packets/00070657 [08:54:25]OFD Sender: To server: ‡•öpG, [08:54:25]CommunicateWithHost lk.salyk.kg:30040 [08:54:25]ConnectInit lk.salyk.kg [08:54:25]written 0, free lines is 4095 [08:54:25]Connected sock=10 [08:54: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 39 31 35 0F 01 00 00 83 19 07 01 F0 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 41 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 01 14 01 00 35 04 06 00 78 5C 3E 7D 22 BA B0 E0 A6 3B 4A E4 19 83 [08:54:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 AF 9F 47 00 F5 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 01 14 01 00 F4 03 04 00 2C C6 BA 66 B6 04 01 00 00 F6 7E 03 27 FF E1 18 33 [08:54:25]CommunicateWithHost err = 0 [08:54:25]CheckOFDResponse [08:54:25]1017 (14) - 77093643461234 [08:54:25]1041 (16) - 0000000000874915 [08:54:25]1040 (4) - 70657 [08:54:25]1012 (4) - 13.08.2024 02:34 [08:54:25]1206 (1) - 0 [08:54:25]OFD Sender: Remove packet 70657 [08:54:25]ProducePacketName [08:54:25]name=ofd_packets/00070657 [08:54:25]NVStorageDeleteData [08:54:26]Write to MH i2c: 01 00 00 A9 03 AC [08:54:26]Write i2c OK [08:54:26]MH_I2C_Read... [08:54:26]Read from MH i2c: 01 [08:54:26]MH_I2C_Read... [08:54:26]Read from MH i2c: 01 07 00 [08:54:26]MH_I2C_Read... [08:54:26]Read from MH i2c: 01 07 00 A9 03 00 00 00 00 00 E1 0C A0 [08:54:26]RasterBufferAndPrint [08:54:26]line [08:54:26]line [08:54:26]line [08:54:26]line [08:54:26]line [08:54:26]written 0, free lines is 3303 [08:54:26]MH_Cut [08:54:26]Write to MH i2c: D1 01 00 B0 03 01 85 [08:54:26]Write i2c OK [08:54:26]MH_I2C_Read... [08:54:26]Read from MH i2c: D1 [08:54:26]MH_I2C_Read... [08:54:26]Read from MH i2c: D1 01 00 [08:54:26]MH_I2C_Read... [08:54:26]Read from MH i2c: D1 01 00 B0 03 00 84 [08:54:26]Write to MH i2c: 01 00 00 B1 03 B4 [08:54:26]Write i2c OK [08:54:26]MH_I2C_Read... [08:54:26]OFD Sender: No OFD packet to send [08:54:26]*** Cut start [08:54:26]*** Purtial cut [08:54:26]*** Stage 1: CUTSNS_PIN = 1 [08:54:27]Read from MH i2c: 01 [08:54:27]MH_I2C_Read... [08:54:27]*** Stop cut motor [08:54:27]*** Cut end [08:54:27]Read from MH i2c: 01 07 00 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: 01 07 00 B1 03 00 00 00 00 00 FF 0F C9 [08:54:27]process_action close_receipt done [08:54:27]requested_data is exist [08:54:27]produce_requested_data [08:54:27]requested_item fm.sn is exist - process it [08:54:27]wFMCommunicate request_size=4 [08:54:27]MH_SAM_APDU [08:54:27]CAPDU: 80 11 00 00 [08:54:27]Write to MH i2c: E2 08 00 B2 03 80 11 00 00 00 00 00 00 2F [08:54:27]Write i2c OK [08:54:27]MH_I2C_Read... [08:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:27]Read from MH i2c: E2 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 17 00 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 17 00 B2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 84 [08:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:54:27]wFMCommunicate OK [08:54:27]requested_item fd.num is exist - process it [08:54:27]SAM_PROTO_GetFieldsCounters [08:54:27]wFMCommunicate request_size=4 [08:54:27]MH_SAM_APDU [08:54:27]CAPDU: 80 13 00 00 [08:54:27]Write to MH i2c: E2 08 00 B3 03 80 13 00 00 00 00 00 00 32 [08:54:27]Write i2c OK [08:54:27]MH_I2C_Read... [08:54:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:27]Read from MH i2c: E2 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 62 00 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 62 00 B3 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 01 14 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [08:54: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 01 14 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:27]wFMCommunicate OK [08:54:27]SAM_PROTO_GetFieldsCounters done [08:54:27]requested_item shift.num is exist - process it [08:54:27]requested_item shift.opened is exist - process it [08:54:27]req_shift_opened [08:54:27]FM_GetShiftState [08:54:27]SAM_PROTO_GetShiftState [08:54:27]wFMCommunicate request_size=4 [08:54:27]MH_SAM_APDU [08:54:27]CAPDU: 80 13 01 00 [08:54:27]Write to MH i2c: E2 08 00 B4 03 80 13 01 00 00 00 00 00 34 [08:54:27]Write i2c OK [08:54:27]MH_I2C_Read... [08:54:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:27]Read from MH i2c: E2 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 0E 00 [08:54:27]MH_I2C_Read... [08:54:27]Read from MH i2c: E2 0E 00 B4 03 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 A3 [08:54:27]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:54:27]wFMCommunicate OK [08:54:27]SAM_PROTO_GetShiftState done [08:54:27]FM_GetShiftState done [08:54:27]req_shift_opened done [08:54:27]requested_item shift.open_date is exist - process it [08:54:27]req_shift_open_date [08:54:27]req_shift_open_date done [08:54:27]produce_requested_data done [08:54:27]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70657,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [08:54:27]process_action_free close_receipt [08:54:27]json_value_free [08:54:27]json_value_free done [08:54:27]process_json_proto returns [08:54:27]Send response to host [08:54:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70657,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [08:54:27]free response buf [08:54:27]execute_script done [08:54:27]execute_script returns [08:54:27]free content buf [08:54:27]Sock 9.Close socket [08:54:27]Sock 9.Thread stoped [08:54:28]int [08:54:28]Write to MH i2c: 01 00 00 B5 03 B8 [08:54:28]*** FLAG_PRN_KEY set [08:54:28]Write i2c OK [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: 01 [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: 01 07 00 [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: 01 07 00 B5 03 00 08 00 00 00 FF 0F D5 [08:54:28]state=0 [08:54:28]Key pressed [08:54:28]Feed [08:54:28]Write to MH i2c: D8 00 00 B6 03 90 [08:54:28]Write i2c OK [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: D8 [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: D8 01 00 [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: D8 01 00 B6 03 00 91 [08:54:28]int [08:54:28]Write to MH i2c: 01 00 00 B7 03 BA [08:54:28]Write i2c OK [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: 01 [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: 01 07 00 [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: 01 07 00 B7 03 00 48 00 00 00 3C 00 45 [08:54:28]state=2 [08:54:28]Key pressed [08:54:28]int [08:54:28]Write to MH i2c: 01 00 00 B8 03 BB [08:54:28]*** FLAG_PRN_KEY reset [08:54:28]Write i2c OK [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: 01 [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: 01 07 00 [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: 01 07 00 B8 03 00 00 00 00 00 FA 0F CB [08:54:28]state=2 [08:54:28]Stop feed [08:54:31]OFD Sender: No OFD packet to send [08:54:35]accept exits with 7 [08:54:35]New connection [08:54:35]New thread 3067215204 created [08:54:35]Thread 3067358564 joined [08:54:35]Waiting for new connection... [08:54:35] Sock 7.Parse request [08:54:35]Sock 7.Check first char [08:54:35]Sock 7.First char is OK [08:54:35]request: POST /json_proto HTTP/1.0 [08:54:35]Method: POST [08:54:35]URL: /json_proto [08:54:35]Method is POST - this is cgi request [08:54:35]url: /json_proto [08:54:35]query_string will be loaded in cgi processing [08:54:35]execute_cgi json_proto POST (null) [08:54:35]execute_cgi path=json_proto method=POST [08:54:35]POST find Content-Length [08:54:35]Host: 172.17.58.67:8080 [08:54:35]Content-Length: 682 [08:54:35]Content-Type: application/json [08:54:35] [08:54:35]POST finish read [08:54:35]Found Content-Length = 682 [08:54:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "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" ] } } [08:54:35]execute_script... [08:54: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)141111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "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" ] } } [08:54:35]POST & json_proto [08:54:35]process_json_proto [08:54:35]json parsed OK: [08:54:35]protocol is kg_v1.0 [08:54:35]action value=close_receipt [08:54:35]process_action close_receipt [08:54:35]cmd_close_receipt [08:54:35]MH_GetDate [08:54:35]Write to MH i2c: F0 00 00 B9 03 AB [08:54:35]Write i2c OK [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: F0 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: F0 09 00 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: F0 09 00 B9 03 00 4D 1F BB 66 94 51 63 64 ED [08:54:35]GetLastDocTimeStamp 1723539265 [08:54:35]current date 1723539277 [08:54:35]FM_GetShiftState [08:54:35]SAM_PROTO_GetShiftState [08:54:35]wFMCommunicate request_size=4 [08:54:35]MH_SAM_APDU [08:54:35]CAPDU: 80 13 01 00 [08:54:35]Write to MH i2c: E2 08 00 BA 03 80 13 01 00 00 00 00 00 3A [08:54:35]Write i2c OK [08:54:35]MH_I2C_Read... [08:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:35]Read from MH i2c: E2 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 0E 00 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 0E 00 BA 03 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 A9 [08:54:35]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:54:35]wFMCommunicate OK [08:54:35]SAM_PROTO_GetShiftState done [08:54:35]FM_GetShiftState done [08:54:35]opened in 1723509656 [08:54:35]opened+sec_in_day 1723596056 [08:54:35]quantity*price = 200006 [08:54:35]sum+1 = 200008 [08:54:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.07 ИТОГО: 2000.00 ВнеÑено: 2000.00 СДÐЧÐ: 0.00 ÐСП 1% : 17.70 ÐДС 12% : 212.40 Ðаличными: 2000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 12 13.08.2024 08:54 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70658 ФПД: 168428732306432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T085437&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70658&fm=168428732306432&tin=02508201610067®Number=0000000000090913&sum=200000 [08:54:36]StoreToDocumentArchive [08:54:36]shift 466 fd 70658 [08:54:36]save to /storage/0466/doc_00070658 [08:54:36]save last doc name /storage/0466/doc_00070658 to /storage/kkm_last_doc_name [08:54:36]save OK [08:54:36]Clear old archive folders... [08:54:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:36]tlvbuf is 017A5E50 [08:54:36]SAM_PROTO_ClearQueue [08:54:36]wFMCommunicate request_size=4 [08:54:36]MH_SAM_APDU [08:54:36]CAPDU: 80 09 00 00 [08:54:36]Write to MH i2c: E2 08 00 C7 03 80 09 00 00 00 00 00 00 3C [08:54:36]Write i2c OK [08:54:36]MH_I2C_Read... [08:54:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:36]Read from MH i2c: E2 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: E2 03 00 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: E2 03 00 C7 03 00 90 00 3E [08:54:36]RAPDU: 90 00 [08:54:36]wFMCommunicate OK [08:54:36]SAM_PROTO_ClearQueue done [08:54:36]KKMCreateOFDPacket [08:54:36]OFDProtocolAddRootSTLVToBuf [08:54:36]FM_MakeSignedData [08:54:36]FM_MakeSignedData [08:54:36]SAM_PROTO_SignData [08:54:36]wFMCommunicate request_size=4 [08:54:36]MH_SAM_APDU [08:54:36]CAPDU: 80 0D 01 02 [08:54:36]Write to MH i2c: E2 08 00 C8 03 80 0D 01 02 00 00 00 00 44 [08:54:36]Write i2c OK [08:54:36]MH_I2C_Read... [08:54:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:36]Read from MH i2c: E2 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: E2 03 00 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: E2 03 00 C8 03 00 90 00 3F [08:54:36]RAPDU: 90 00 [08:54:36]wFMCommunicate OK [08:54:36]wFMCommunicate request_size=255 [08:54:36]MH_SAM_APDU [08:54:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 4D 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 02 14 01 00 35 04 06 00 99 [08:54:36]Write to MH i2c: E2 02 01 C9 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 4D 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 02 14 01 00 35 04 06 00 99 00 00 75 [08:54:36]Write i2c OK [08:54:36]MH_I2C_Read... [08:54:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:36]Read from MH i2c: E2 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: E2 03 00 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: E2 03 00 C9 03 00 90 00 40 [08:54:36]RAPDU: 90 00 [08:54:36]wFMCommunicate OK [08:54:36]wFMCommunicate request_size=10 [08:54:36]MH_SAM_APDU [08:54:36]CAPDU: 80 0D 02 02 05 2F 5E C2 54 00 [08:54:36]Write to MH i2c: E2 0D 00 CA 03 80 0D 02 02 05 00 2F 5E C2 54 00 00 00 F4 [08:54:36]Write i2c OK [08:54:36]MH_I2C_Read... [08:54:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:36]Read from MH i2c: E2 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: E2 03 00 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: E2 03 00 CA 03 00 90 00 41 [08:54:36]RAPDU: 90 00 [08:54:36]wFMCommunicate OK [08:54:36]wFMCommunicate request_size=4 [08:54:36]MH_SAM_APDU [08:54:36]CAPDU: 80 0D 03 02 [08:54:36]Write to MH i2c: E2 08 00 CB 03 80 0D 03 02 00 00 00 00 49 [08:54:36]Write i2c OK [08:54:36]MH_I2C_Read... [08:54:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:37]Read from MH i2c: E2 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 0B 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 0B 00 CB 03 00 D3 12 22 83 08 36 BE C5 90 00 95 [08:54:37]RAPDU: D3 12 22 83 08 36 BE C5 90 00 [08:54:37]wFMCommunicate OK [08:54:37]SAM_PROTO_SignData done [08:54:37]FM_MakeSignedData done [08:54:37]CreateOFDProtocolMessage [08:54:37]wFMCommunicate request_size=4 [08:54:37]MH_SAM_APDU [08:54:37]CAPDU: 80 11 00 00 [08:54:37]Write to MH i2c: E2 08 00 CC 03 80 11 00 00 00 00 00 00 49 [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:37]Read from MH i2c: E2 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 17 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 17 00 CC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 9E [08:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:54:37]wFMCommunicate OK [08:54:37]CreateOFDProtocolMessage done [08:54:37]OFDSenderStorePacket 70658 [08:54:37]StoreOFDPacket docnum=70658 [08:54:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 94 1C 07 01 25 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 4D 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 02 14 01 00 35 04 06 00 99 2F 5E C2 54 00 D3 12 22 83 08 36 BE C5 [08:54:37]CheckFolder [08:54:37]dirname=/storage/ofd_packets [08:54:37]CheckFolder done [08:54:37]ProducePacketName [08:54:37]name=ofd_packets/00070658 [08:54:37]NVStorageSaveData ofd_packets/00070658 [08:54:37]File name is /storage/ofd_packets/00070658 [08:54:37]Write 301 bytes [08:54:37]NVStorageSaveData done [08:54:37]OFDSenderStorePacket done [08:54:37]KKMCreateOFDPacket done [08:54:37]NVStorageSaveData kkm_last_timestamp [08:54:37]File name is /storage/kkm_last_timestamp [08:54:37]Write 4 bytes [08:54:37]NVStorageSaveData done [08:54:37]ExternCall_PrintAddStr [08:54:37]wPrintStart [08:54:37]Write to MH i2c: 01 00 00 CD 03 D0 [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: 01 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: 01 07 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: 01 07 00 CD 03 00 00 00 00 00 FF 0F E5 [08:54:37]RasterBufferAndPrint [08:54:37]line Счет N : (1)141111 [08:54:37]line ИÐÐ: 02508201610067 [08:54:37]line Контрольно-КаÑÑовый Чек [08:54:37]line ПРОДÐЖР[08:54:37]line ТРК (МРК, ГÐК) : 31 [08:54:37]line Товар: 2710124130 [08:54:37]line Ðи-92-К-5 [08:54:37]line 30.350 * 65.90 [08:54:37]line = 2000.07 [08:54:37]line ÐДС 12% ÐСП 1% [08:54:37]line > о реализуемом товаре [08:54:37]line ОКРУГЛЕÐИЕ: -0.07 [08:54:37]line ИТОГО: 2000.00 [08:54:37]line ВнеÑено: 2000.00 [08:54:37]line СДÐЧÐ: 0.00 [08:54:37]line ÐСП 1% : 17.70 [08:54:37]line ÐДС 12% : 212.40 [08:54:37]line Ðаличными: 2000.00 [08:54:37]line Безнал.: 0.00 [08:54:37]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [08:54:37]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [08:54:37]line СÐО: Общий режим [08:54:37]line Чек 12 13.08.2024 08:54 [08:54:37]line Смена: 466 ФФД: 1.0 [08:54:37]line ЗÐМ: 0300000140 [08:54:37]line РÐМ: 0000000000090913 [08:54:37]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:54:37]line ФМ: 0000000000874915 [08:54:37]line ФД: 70658 [08:54:37]line ФПД: 168428732306432 [08:54:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T085437&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70658&fm=168428732306432&tin=02508201610067®Number=0000000000090913&sum=200000 [08:54:37]OFD Sender: Processing packet 70658 [packets to send 67, broken 66] [08:54:37]ProducePacketName [08:54:37]name=ofd_packets/00070658 [08:54:37]OFD Sender: To server: ‡•öpG, [08:54:37]CommunicateWithHost lk.salyk.kg:30040 [08:54:37]ConnectInit lk.salyk.kg [08:54:37]written 0, free lines is 4095 [08:54:37]Connected sock=10 [08:54: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 39 31 35 0F 01 00 00 94 1C 07 01 25 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 4D 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 02 14 01 00 35 04 06 00 99 2F 5E C2 54 00 D3 12 22 83 08 36 BE C5 [08:54:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 F5 C3 47 00 26 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 02 14 01 00 F4 03 04 00 38 C6 BA 66 B6 04 01 00 00 9A C7 A5 CD 56 18 3E E6 [08:54:37]CommunicateWithHost err = 0 [08:54:37]CheckOFDResponse [08:54:37]1017 (14) - 77093643461234 [08:54:37]1041 (16) - 0000000000874915 [08:54:37]1040 (4) - 70658 [08:54:37]1012 (4) - 13.08.2024 02:34 [08:54:37]1206 (1) - 0 [08:54:37]OFD Sender: Remove packet 70658 [08:54:37]ProducePacketName [08:54:37]name=ofd_packets/00070658 [08:54:37]NVStorageDeleteData [08:54:37]Write to MH i2c: 01 00 00 F8 03 FB [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: 01 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: 01 07 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: 01 07 00 F8 03 00 00 00 00 00 F0 0C FE [08:54:37]RasterBufferAndPrint [08:54:37]line [08:54:37]line [08:54:37]line [08:54:37]line [08:54:37]line [08:54:37]written 0, free lines is 3321 [08:54:37]MH_Cut [08:54:37]Write to MH i2c: D1 01 00 FF 03 01 D4 [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: D1 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: D1 01 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: D1 01 00 FF 03 00 D3 [08:54:37]Write to MH i2c: 01 00 00 00 04 04 [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:38]OFD Sender: No OFD packet to send [08:54:38]*** Cut start [08:54:38]*** Purtial cut [08:54:38]*** CUTSNS_PIN = 0 [08:54:38]*** Stage 1: CUTSNS_PIN = 1 [08:54:40]Read from MH i2c: 01 [08:54:40]MH_I2C_Read... [08:54:40]*** Stop cut motor [08:54:40]*** Cut end [08:54:40]Read from MH i2c: 01 07 00 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: 01 07 00 00 04 00 00 00 00 00 FF 0F 19 [08:54:40]process_action close_receipt done [08:54:40]requested_data is exist [08:54:40]produce_requested_data [08:54:40]requested_item fm.sn is exist - process it [08:54:40]wFMCommunicate request_size=4 [08:54:40]MH_SAM_APDU [08:54:40]CAPDU: 80 11 00 00 [08:54:40]Write to MH i2c: E2 08 00 01 04 80 11 00 00 00 00 00 00 7F [08:54:40]Write i2c OK [08:54:40]MH_I2C_Read... [08:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:40]Read from MH i2c: E2 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 17 00 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 17 00 01 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 D4 [08:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:54:40]wFMCommunicate OK [08:54:40]requested_item fd.num is exist - process it [08:54:40]SAM_PROTO_GetFieldsCounters [08:54:40]wFMCommunicate request_size=4 [08:54:40]MH_SAM_APDU [08:54:40]CAPDU: 80 13 00 00 [08:54:40]Write to MH i2c: E2 08 00 02 04 80 13 00 00 00 00 00 00 82 [08:54:40]Write i2c OK [08:54:40]MH_I2C_Read... [08:54:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:40]Read from MH i2c: E2 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 62 00 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 62 00 02 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 02 14 01 00 0E 04 04 00 D2 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 B0 [08:54:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 02 14 01 00 0E 04 04 00 D2 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 [08:54:40]wFMCommunicate OK [08:54:40]SAM_PROTO_GetFieldsCounters done [08:54:40]requested_item shift.num is exist - process it [08:54:40]requested_item shift.opened is exist - process it [08:54:40]req_shift_opened [08:54:40]FM_GetShiftState [08:54:40]SAM_PROTO_GetShiftState [08:54:40]wFMCommunicate request_size=4 [08:54:40]MH_SAM_APDU [08:54:40]CAPDU: 80 13 01 00 [08:54:40]Write to MH i2c: E2 08 00 03 04 80 13 01 00 00 00 00 00 84 [08:54:40]Write i2c OK [08:54:40]MH_I2C_Read... [08:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:40]Read from MH i2c: E2 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 0E 00 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 0E 00 03 04 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 F3 [08:54:40]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:54:40]wFMCommunicate OK [08:54:40]SAM_PROTO_GetShiftState done [08:54:40]FM_GetShiftState done [08:54:40]req_shift_opened done [08:54:40]requested_item shift.open_date is exist - process it [08:54:40]req_shift_open_date [08:54:40]req_shift_open_date done [08:54:40]produce_requested_data done [08:54:40]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70658,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [08:54:40]process_action_free close_receipt [08:54:40]json_value_free [08:54:40]json_value_free done [08:54:40]process_json_proto returns [08:54:40]Send response to host [08:54:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70658,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [08:54:40]free response buf [08:54:40]execute_script done [08:54:40]execute_script returns [08:54:40]free content buf [08:54:40]Sock 7.Close socket [08:54:40]Sock 7.Thread stoped [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:21]accept exits with 9 [08:55:21]New connection [08:55:21]New thread 3067358564 created [08:55:21]Thread 3067215204 joined [08:55:21]Waiting for new connection... [08:55:21] Sock 9.Parse request [08:55:21]Sock 9.Check first char [08:55:21]Sock 9.First char is OK [08:55:21]request: POST /json_proto HTTP/1.0 [08:55:21]Method: POST [08:55:21]URL: /json_proto [08:55:21]Method is POST - this is cgi request [08:55:21]url: /json_proto [08:55:21]query_string will be loaded in cgi processing [08:55:21]execute_cgi json_proto POST (null) [08:55:21]execute_cgi path=json_proto method=POST [08:55:21]POST find Content-Length [08:55:21]Host: 172.17.58.67:8080 [08:55:21]Content-Length: 738 [08:55:21]Content-Type: application/json [08:55:21] [08:55:21]POST finish read [08:55:21]Found Content-Length = 738 [08:55:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70658, "base_FM": "0000000000874915", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "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" ] } } [08:55:21]execute_script... [08:55:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70658, "base_FM": "0000000000874915", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "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" ] } } [08:55:21]POST & json_proto [08:55:21]process_json_proto [08:55:21]json parsed OK: [08:55:21]protocol is kg_v1.0 [08:55:21]action value=close_receipt [08:55:21]process_action close_receipt [08:55:21]cmd_close_receipt [08:55:21]MH_GetDate [08:55:21]Write to MH i2c: F0 00 00 04 04 F7 [08:55:21]Write i2c OK [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: F0 [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: F0 09 00 [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: F0 09 00 04 04 00 7B 1F BB 66 94 51 63 64 67 [08:55:21]GetLastDocTimeStamp 1723539277 [08:55:21]current date 1723539323 [08:55:21]FM_GetShiftState [08:55:21]SAM_PROTO_GetShiftState [08:55:21]wFMCommunicate request_size=4 [08:55:21]MH_SAM_APDU [08:55:21]CAPDU: 80 13 01 00 [08:55:21]Write to MH i2c: E2 08 00 05 04 80 13 01 00 00 00 00 00 86 [08:55:21]Write i2c OK [08:55:21]MH_I2C_Read... [08:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:22]Read from MH i2c: E2 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 0E 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 0E 00 05 04 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 F5 [08:55:22]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:55:22]wFMCommunicate OK [08:55:22]SAM_PROTO_GetShiftState done [08:55:22]FM_GetShiftState done [08:55:22]opened in 1723509656 [08:55:22]opened+sec_in_day 1723596056 [08:55:22]quantity*price = 200006 [08:55:22]sum+1 = 200008 [08:55:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.07 ИТОГО: 2000.00 ÐСП 1% : 17.70 ÐДС 12% : 212.40 Ðаличными: 2000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 13 13.08.2024 08:55 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФД оÑн.: 70658 ФМ оÑн.: 0000000000874915 ФМ: 0000000000874915 ФД: 70659 ФПД: 53891430288205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T085524&type=2&operation_type=1&fn_number=0000000000874915&fd_number=70659&fm=53891430288205&tin=02508201610067®Number=0000000000090913&sum=200000 [08:55:23]StoreToDocumentArchive [08:55:23]shift 466 fd 70659 [08:55:23]save to /storage/0466/doc_00070659 [08:55:23]save last doc name /storage/0466/doc_00070659 to /storage/kkm_last_doc_name [08:55:23]save OK [08:55:23]Clear old archive folders... [08:55:23]ProcessDocumentItem done err = 0, tmpTLVsize=279 [08:55:23]tlvbuf is 017A58D0 [08:55:23]SAM_PROTO_ClearQueue [08:55:23]wFMCommunicate request_size=4 [08:55:23]MH_SAM_APDU [08:55:23]CAPDU: 80 09 00 00 [08:55:23]Write to MH i2c: E2 08 00 14 04 80 09 00 00 00 00 00 00 8A [08:55:23]Write i2c OK [08:55:23]MH_I2C_Read... [08:55:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:23]Read from MH i2c: E2 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: E2 03 00 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: E2 03 00 14 04 00 90 00 8C [08:55:23]RAPDU: 90 00 [08:55:23]wFMCommunicate OK [08:55:23]SAM_PROTO_ClearQueue done [08:55:23]KKMCreateOFDPacket [08:55:23]OFDProtocolAddRootSTLVToBuf [08:55:23]FM_MakeSignedData [08:55:23]FM_MakeSignedData [08:55:23]SAM_PROTO_SignData [08:55:23]wFMCommunicate request_size=4 [08:55:23]MH_SAM_APDU [08:55:23]CAPDU: 80 0D 01 02 [08:55:23]Write to MH i2c: E2 08 00 15 04 80 0D 01 02 00 00 00 00 92 [08:55:23]Write i2c OK [08:55:23]MH_I2C_Read... [08:55:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:23]Read from MH i2c: E2 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: E2 03 00 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: E2 03 00 15 04 00 90 00 8D [08:55:23]RAPDU: 90 00 [08:55:23]wFMCommunicate OK [08:55:23]wFMCommunicate request_size=255 [08:55:23]MH_SAM_APDU [08:55:23]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7C 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 02 14 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 [08:55:23]Write to MH i2c: E2 02 01 16 04 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7C 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 02 14 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 00 00 BC [08:55:23]Write i2c OK [08:55:23]MH_I2C_Read... [08:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:23]Read from MH i2c: E2 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: E2 03 00 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: E2 03 00 16 04 00 90 00 8E [08:55:23]RAPDU: 90 00 [08:55:23]wFMCommunicate OK [08:55:23]wFMCommunicate request_size=38 [08:55:23]MH_SAM_APDU [08:55:23]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 03 14 01 00 35 04 06 00 31 03 93 8F 0B 4D [08:55:23]Write to MH i2c: E2 29 00 17 04 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 03 14 01 00 35 04 06 00 31 03 93 8F 0B 4D 00 00 E6 [08:55:23]Write i2c OK [08:55:23]MH_I2C_Read... [08:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:23]Read from MH i2c: E2 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: E2 03 00 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: E2 03 00 17 04 00 90 00 8F [08:55:23]RAPDU: 90 00 [08:55:23]wFMCommunicate OK [08:55:23]wFMCommunicate request_size=4 [08:55:23]MH_SAM_APDU [08:55:23]CAPDU: 80 0D 03 02 [08:55:23]Write to MH i2c: E2 08 00 18 04 80 0D 03 02 00 00 00 00 97 [08:55:23]Write i2c OK [08:55:23]MH_I2C_Read... [08:55:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:23]Read from MH i2c: E2 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: E2 0B 00 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: E2 0B 00 18 04 00 E6 09 A8 9D 71 E6 B9 2D 90 00 09 [08:55:23]RAPDU: E6 09 A8 9D 71 E6 B9 2D 90 00 [08:55:23]wFMCommunicate OK [08:55:23]SAM_PROTO_SignData done [08:55:23]FM_MakeSignedData done [08:55:23]CreateOFDProtocolMessage [08:55:23]wFMCommunicate request_size=4 [08:55:23]MH_SAM_APDU [08:55:23]CAPDU: 80 11 00 00 [08:55:23]Write to MH i2c: E2 08 00 19 04 80 11 00 00 00 00 00 00 97 [08:55:23]Write i2c OK [08:55:23]MH_I2C_Read... [08:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:23]Read from MH i2c: E2 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: E2 17 00 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: E2 17 00 19 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 EC [08:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:55:23]wFMCommunicate OK [08:55:23]CreateOFDProtocolMessage done [08:55:23]OFDSenderStorePacket 70659 [08:55:23]StoreOFDPacket docnum=70659 [08:55:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 2B 01 00 00 42 66 23 01 BB E7 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7C 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 02 14 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 03 14 01 00 35 04 06 00 31 03 93 8F 0B 4D E6 09 A8 9D 71 E6 B9 2D [08:55:23]CheckFolder [08:55:23]dirname=/storage/ofd_packets [08:55:23]CheckFolder done [08:55:23]ProducePacketName [08:55:23]name=ofd_packets/00070659 [08:55:23]NVStorageSaveData ofd_packets/00070659 [08:55:23]File name is /storage/ofd_packets/00070659 [08:55:23]Write 329 bytes [08:55:23]NVStorageSaveData done [08:55:23]OFDSenderStorePacket done [08:55:23]KKMCreateOFDPacket done [08:55:23]NVStorageSaveData kkm_last_timestamp [08:55:23]File name is /storage/kkm_last_timestamp [08:55:23]Write 4 bytes [08:55:23]NVStorageSaveData done [08:55:23]ExternCall_PrintAddStr [08:55:23]wPrintStart [08:55:23]Write to MH i2c: 01 00 00 1A 04 1E [08:55:23]Write i2c OK [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: 01 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: 01 07 00 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: 01 07 00 1A 04 00 00 00 00 00 FF 0F 33 [08:55:23]RasterBufferAndPrint [08:55:23]line Счет N : (1)141111 [08:55:23]line ИÐÐ: 02508201610067 [08:55:23]line Контрольно-КаÑÑовый Чек [08:55:23]line ВОЗВРÐТ ПРОДÐЖИ [08:55:23]line ТРК (МРК, ГÐК) : 31 [08:55:23]line Товар: 2710124130 [08:55:23]line Ðи-92-К-5 [08:55:23]line 30.350 * 65.90 [08:55:23]line = 2000.07 [08:55:23]line ÐДС 12% ÐСП 1% [08:55:23]line > о реализуемом товаре [08:55:23]line ОКРУГЛЕÐИЕ: -0.07 [08:55:23]line ИТОГО: 2000.00 [08:55:23]line ÐСП 1% : 17.70 [08:55:23]line ÐДС 12% : 212.40 [08:55:23]line Ðаличными: 2000.00 [08:55:23]line Безнал.: 0.00 [08:55:23]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [08:55:23]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [08:55:23]line СÐО: Общий режим [08:55:23]line Чек 13 13.08.2024 08:55 [08:55:23]line Смена: 466 ФФД: 1.0 [08:55:23]line ЗÐМ: 0300000140 [08:55:23]line РÐМ: 0000000000090913 [08:55:23]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:55:23]line ФД оÑн.: 70658 [08:55:23]line ФМ оÑн.: 0000000000874915 [08:55:23]line ФМ: 0000000000874915 [08:55:23]line ФД: 70659 [08:55:23]line ФПД: 53891430288205 [08:55:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T085524&type=2&operation_type=1&fn_number=0000000000874915&fd_number=70659&fm=53891430288205&tin=02508201610067®Number=0000000000090913&sum=200000 [08:55:24]OFD Sender: Processing packet 70659 [packets to send 67, broken 66] [08:55:24]ProducePacketName [08:55:24]name=ofd_packets/00070659 [08:55:24]OFD Sender: To server: ‡•öpG, [08:55:24]CommunicateWithHost lk.salyk.kg:30040 [08:55:24]ConnectInit lk.salyk.kg [08:55:24]written 0, free lines is 4095 [08:55:24]Connected sock=10 [08:55: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 39 31 35 2B 01 00 00 42 66 23 01 BB E7 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 7C 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 02 14 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 03 14 01 00 35 04 06 00 31 03 93 8F 0B 4D E6 09 A8 9D 71 E6 B9 2D [08:55:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 C1 F1 47 00 3C 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 39 31 35 10 04 04 00 03 14 01 00 F4 03 04 00 67 C6 BA 66 B6 04 01 00 00 59 7E ED E1 61 D1 A6 C0 [08:55:24]CommunicateWithHost err = 0 [08:55:24]CheckOFDResponse [08:55:24]1017 (14) - 77093643461234 [08:55:24]1041 (16) - 0000000000874915 [08:55:24]1040 (4) - 70659 [08:55:24]1012 (4) - 13.08.2024 02:35 [08:55:24]1206 (1) - 0 [08:55:24]OFD Sender: Remove packet 70659 [08:55:24]ProducePacketName [08:55:24]name=ofd_packets/00070659 [08:55:24]NVStorageDeleteData [08:55:24]Write to MH i2c: 01 00 00 45 04 49 [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: 01 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: 01 07 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: 01 07 00 45 04 00 00 00 00 00 F2 0C 4E [08:55:24]RasterBufferAndPrint [08:55:24]line [08:55:24]line [08:55:24]line [08:55:24]line [08:55:24]line [08:55:24]written 0, free lines is 3320 [08:55:24]MH_Cut [08:55:24]Write to MH i2c: D1 01 00 4C 04 01 22 [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: D1 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: D1 01 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: D1 01 00 4C 04 00 21 [08:55:24]Write to MH i2c: 01 00 00 4D 04 51 [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:24]OFD Sender: No OFD packet to send [08:55:25]*** Cut start [08:55:25]*** Purtial cut [08:55:25]*** Stage 1: CUTSNS_PIN = 1 [08:55:25]Read from MH i2c: 01 [08:55:25]MH_I2C_Read... [08:55:25]*** Stop cut motor [08:55:25]*** Cut end [08:55:25]Read from MH i2c: 01 07 00 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: 01 07 00 4D 04 00 00 00 00 00 FF 0F 66 [08:55:25]process_action close_receipt done [08:55:25]requested_data is exist [08:55:25]produce_requested_data [08:55:25]requested_item fm.sn is exist - process it [08:55:25]wFMCommunicate request_size=4 [08:55:25]MH_SAM_APDU [08:55:25]CAPDU: 80 11 00 00 [08:55:25]Write to MH i2c: E2 08 00 4E 04 80 11 00 00 00 00 00 00 CC [08:55:25]Write i2c OK [08:55:25]MH_I2C_Read... [08:55:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:25]Read from MH i2c: E2 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: E2 17 00 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: E2 17 00 4E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 21 [08:55:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:55:25]wFMCommunicate OK [08:55:25]requested_item fd.num is exist - process it [08:55:25]SAM_PROTO_GetFieldsCounters [08:55:25]wFMCommunicate request_size=4 [08:55:25]MH_SAM_APDU [08:55:25]CAPDU: 80 13 00 00 [08:55:25]Write to MH i2c: E2 08 00 4F 04 80 13 00 00 00 00 00 00 CF [08:55:25]Write i2c OK [08:55:25]MH_I2C_Read... [08:55:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:25]Read from MH i2c: E2 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: E2 62 00 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: E2 62 00 4F 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 03 14 01 00 0E 04 04 00 D2 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 01 [08:55: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 03 14 01 00 0E 04 04 00 D2 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 [08:55:25]wFMCommunicate OK [08:55:25]SAM_PROTO_GetFieldsCounters done [08:55:25]requested_item shift.num is exist - process it [08:55:25]requested_item shift.opened is exist - process it [08:55:25]req_shift_opened [08:55:25]FM_GetShiftState [08:55:25]SAM_PROTO_GetShiftState [08:55:25]wFMCommunicate request_size=4 [08:55:25]MH_SAM_APDU [08:55:25]CAPDU: 80 13 01 00 [08:55:25]Write to MH i2c: E2 08 00 50 04 80 13 01 00 00 00 00 00 D1 [08:55:25]Write i2c OK [08:55:25]MH_I2C_Read... [08:55:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:25]Read from MH i2c: E2 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: E2 0E 00 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: E2 0E 00 50 04 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 40 [08:55:25]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:55:25]wFMCommunicate OK [08:55:25]SAM_PROTO_GetShiftState done [08:55:25]FM_GetShiftState done [08:55:25]req_shift_opened done [08:55:25]requested_item shift.open_date is exist - process it [08:55:25]req_shift_open_date [08:55:25]req_shift_open_date done [08:55:25]produce_requested_data done [08:55:25]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70659,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [08:55:25]process_action_free close_receipt [08:55:25]json_value_free [08:55:25]json_value_free done [08:55:25]process_json_proto returns [08:55:25]Send response to host [08:55:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70659,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [08:55:25]free response buf [08:55:25]execute_script done [08:55:25]execute_script returns [08:55:25]free content buf [08:55:25]Sock 9.Close socket [08:55:25]Sock 9.Thread stoped [08:55:29]OFD Sender: No OFD packet to send [08:55:34]OFD Sender: No OFD packet to send [08:55:39]OFD Sender: No OFD packet to send [08:55:44]OFD Sender: No OFD packet to send [08:55:49]OFD Sender: No OFD packet to send [08:55:54]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:11]int [08:56:11]Write to MH i2c: 01 00 00 51 04 55 [08:56:11]*** FLAG_PRN_KEY set [08:56:11]Write i2c OK [08:56:11]MH_I2C_Read... [08:56:11]Read from MH i2c: 01 [08:56:11]MH_I2C_Read... [08:56:11]Read from MH i2c: 01 07 00 [08:56:11]MH_I2C_Read... [08:56:11]Read from MH i2c: 01 07 00 51 04 00 08 00 00 00 FF 0F 72 [08:56:11]state=0 [08:56:11]Key pressed [08:56:11]Feed [08:56:11]Write to MH i2c: D8 00 00 52 04 2D [08:56:11]Write i2c OK [08:56:11]MH_I2C_Read... [08:56:11]Read from MH i2c: D8 [08:56:11]MH_I2C_Read... [08:56:11]Read from MH i2c: D8 01 00 [08:56:11]MH_I2C_Read... [08:56:11]Read from MH i2c: D8 01 00 52 04 00 2E [08:56:11]int [08:56:11]Write to MH i2c: 01 00 00 53 04 57 [08:56:11]Write i2c OK [08:56:11]MH_I2C_Read... [08:56:11]Read from MH i2c: 01 [08:56:11]MH_I2C_Read... [08:56:11]Read from MH i2c: 01 07 00 [08:56:11]MH_I2C_Read... [08:56:11]Read from MH i2c: 01 07 00 53 04 00 48 00 00 00 3C 00 E2 [08:56:11]state=2 [08:56:11]Key pressed [08:56:11]int [08:56:11]Write to MH i2c: 01 00 00 54 04 58 [08:56:11]*** FLAG_PRN_KEY reset [08:56:11]Write i2c OK [08:56:11]MH_I2C_Read... [08:56:11]Read from MH i2c: 01 [08:56:11]MH_I2C_Read... [08:56:11]Read from MH i2c: 01 07 00 [08:56:11]MH_I2C_Read... [08:56:11]Read from MH i2c: 01 07 00 54 04 00 00 00 00 00 F5 0F 63 [08:56:11]state=2 [08:56:11]Stop feed [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:56:57]accept exits with 7 [08:56:57]New connection [08:56:57]New thread 3067215204 created [08:56:57]Thread 3067358564 joined [08:56:57]Waiting for new connection... [08:56:57] Sock 7.Parse request [08:56:57]Sock 7.Check first char [08:56:57]Sock 7.First char is OK [08:56:57]request: POST /json_proto HTTP/1.0 [08:56:57]Method: POST [08:56:57]URL: /json_proto [08:56:57]Method is POST - this is cgi request [08:56:57]url: /json_proto [08:56:57]query_string will be loaded in cgi processing [08:56:57]execute_cgi json_proto POST (null) [08:56:57]execute_cgi path=json_proto method=POST [08:56:57]POST find Content-Length [08:56:57]Host: 172.17.58.67:8080 [08:56:57]Content-Length: 805 [08:56:57]Content-Type: application/json [08:56:57] [08:56:57]POST finish read [08:56:57]Found Content-Length = 805 [08:56:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:57]execute_script... [08:56:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:57]POST & json_proto [08:56:57]process_json_proto [08:56:57]json parsed OK: [08:56:57]protocol is kg_v1.0 [08:56:57]action value=close_receipt [08:56:57]process_action close_receipt [08:56:57]cmd_close_receipt [08:56:57]MH_GetDate [08:56:57]Write to MH i2c: F0 00 00 55 04 48 [08:56:57]Write i2c OK [08:56:57]MH_I2C_Read... [08:56:57]Read from MH i2c: F0 [08:56:57]MH_I2C_Read... [08:56:57]Read from MH i2c: F0 09 00 [08:56:57]MH_I2C_Read... [08:56:57]Read from MH i2c: F0 09 00 55 04 00 DB 1F BB 66 94 51 63 64 18 [08:56:57]GetLastDocTimeStamp 1723539324 [08:56:57]current date 1723539419 [08:56:57]FM_GetShiftState [08:56:57]SAM_PROTO_GetShiftState [08:56:57]wFMCommunicate request_size=4 [08:56:57]MH_SAM_APDU [08:56:57]CAPDU: 80 13 01 00 [08:56:57]Write to MH i2c: E2 08 00 56 04 80 13 01 00 00 00 00 00 D7 [08:56:57]Write i2c OK [08:56:57]MH_I2C_Read... [08:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:57]Read from MH i2c: E2 [08:56:57]MH_I2C_Read... [08:56:57]Read from MH i2c: E2 0E 00 [08:56:57]MH_I2C_Read... [08:56:57]Read from MH i2c: E2 0E 00 56 04 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 46 [08:56:57]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:56:57]wFMCommunicate OK [08:56:57]SAM_PROTO_GetShiftState done [08:56:57]FM_GetShiftState done [08:56:57]opened in 1723509656 [08:56:57]opened+sec_in_day 1723596056 [08:56:57]quantity*price = 150064 [08:56:57]sum+1 = 150066 [08:56:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.65 ÐСП 1% : 13.28 ÐДС 12% : 159.36 Ðаличными: 0.00 Безнал.: 1500.65 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 14 13.08.2024 08:56 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70660 ФПД: 17365420213444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T085659&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70660&fm=17365420213444&tin=02508201610067®Number=0000000000090913&sum=150065 [08:56:58]StoreToDocumentArchive [08:56:58]shift 466 fd 70660 [08:56:58]save to /storage/0466/doc_00070660 [08:56:58]save last doc name /storage/0466/doc_00070660 to /storage/kkm_last_doc_name [08:56:58]save OK [08:56:58]Clear old archive folders... [08:56:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:56:58]tlvbuf is 017EA500 [08:56:58]SAM_PROTO_ClearQueue [08:56:58]wFMCommunicate request_size=4 [08:56:58]MH_SAM_APDU [08:56:58]CAPDU: 80 09 00 00 [08:56:58]Write to MH i2c: E2 08 00 63 04 80 09 00 00 00 00 00 00 D9 [08:56:58]Write i2c OK [08:56:58]MH_I2C_Read... [08:56:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:58]Read from MH i2c: E2 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 03 00 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 03 00 63 04 00 90 00 DB [08:56:58]RAPDU: 90 00 [08:56:58]wFMCommunicate OK [08:56:58]SAM_PROTO_ClearQueue done [08:56:58]KKMCreateOFDPacket [08:56:58]OFDProtocolAddRootSTLVToBuf [08:56:58]FM_MakeSignedData [08:56:58]FM_MakeSignedData [08:56:58]SAM_PROTO_SignData [08:56:58]wFMCommunicate request_size=4 [08:56:58]MH_SAM_APDU [08:56:58]CAPDU: 80 0D 01 02 [08:56:58]Write to MH i2c: E2 08 00 64 04 80 0D 01 02 00 00 00 00 E1 [08:56:58]Write i2c OK [08:56:58]MH_I2C_Read... [08:56:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:58]Read from MH i2c: E2 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 03 00 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 03 00 64 04 00 90 00 DC [08:56:58]RAPDU: 90 00 [08:56:58]wFMCommunicate OK [08:56:58]wFMCommunicate request_size=255 [08:56:58]MH_SAM_APDU [08:56:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 DB 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 04 14 01 00 35 04 06 00 0F CB 33 B4 [08:56:58]Write to MH i2c: E2 02 01 65 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 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 DB 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 04 14 01 00 35 04 06 00 0F CB 33 B4 00 00 82 [08:56:58]Write i2c OK [08:56:58]MH_I2C_Read... [08:56:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:58]Read from MH i2c: E2 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 03 00 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 03 00 65 04 00 90 00 DD [08:56:58]RAPDU: 90 00 [08:56:58]wFMCommunicate OK [08:56:58]wFMCommunicate request_size=7 [08:56:58]MH_SAM_APDU [08:56:58]CAPDU: 80 0D 02 02 02 04 C4 [08:56:58]Write to MH i2c: E2 0A 00 66 04 80 0D 02 02 02 00 04 C4 00 00 B0 [08:56:58]Write i2c OK [08:56:58]MH_I2C_Read... [08:56:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:58]Read from MH i2c: E2 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 03 00 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 03 00 66 04 00 90 00 DE [08:56:58]RAPDU: 90 00 [08:56:58]wFMCommunicate OK [08:56:58]wFMCommunicate request_size=4 [08:56:58]MH_SAM_APDU [08:56:58]CAPDU: 80 0D 03 02 [08:56:58]Write to MH i2c: E2 08 00 67 04 80 0D 03 02 00 00 00 00 E6 [08:56:58]Write i2c OK [08:56:58]MH_I2C_Read... [08:56:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:58]Read from MH i2c: E2 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 0B 00 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 0B 00 67 04 00 40 DB 36 99 E4 CB 89 31 90 00 3A [08:56:58]RAPDU: 40 DB 36 99 E4 CB 89 31 90 00 [08:56:58]wFMCommunicate OK [08:56:58]SAM_PROTO_SignData done [08:56:58]FM_MakeSignedData done [08:56:58]CreateOFDProtocolMessage [08:56:58]wFMCommunicate request_size=4 [08:56:58]MH_SAM_APDU [08:56:58]CAPDU: 80 11 00 00 [08:56:58]Write to MH i2c: E2 08 00 68 04 80 11 00 00 00 00 00 00 E6 [08:56:58]Write i2c OK [08:56:58]MH_I2C_Read... [08:56:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:58]Read from MH i2c: E2 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 17 00 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: E2 17 00 68 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 3B [08:56:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:56:58]wFMCommunicate OK [08:56:58]CreateOFDProtocolMessage done [08:56:58]OFDSenderStorePacket 70660 [08:56:58]StoreOFDPacket docnum=70660 [08:56:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 92 DA 04 01 9A 6E 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 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 DB 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 04 14 01 00 35 04 06 00 0F CB 33 B4 04 C4 40 DB 36 99 E4 CB 89 31 [08:56:58]CheckFolder [08:56:58]dirname=/storage/ofd_packets [08:56:58]CheckFolder done [08:56:58]ProducePacketName [08:56:58]name=ofd_packets/00070660 [08:56:58]NVStorageSaveData ofd_packets/00070660 [08:56:58]File name is /storage/ofd_packets/00070660 [08:56:58]Write 298 bytes [08:56:58]NVStorageSaveData done [08:56:58]OFDSenderStorePacket done [08:56:58]KKMCreateOFDPacket done [08:56:58]NVStorageSaveData kkm_last_timestamp [08:56:58]File name is /storage/kkm_last_timestamp [08:56:58]Write 4 bytes [08:56:58]NVStorageSaveData done [08:56:58]ExternCall_PrintAddStr [08:56:58]wPrintStart [08:56:58]Write to MH i2c: 01 00 00 69 04 6D [08:56:58]Write i2c OK [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: 01 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: 01 07 00 [08:56:58]MH_I2C_Read... [08:56:58]Read from MH i2c: 01 07 00 69 04 00 00 00 00 00 FF 0F 82 [08:56:58]RasterBufferAndPrint [08:56:58]line Счет N : (1)141113 [08:56:58]line ИÐÐ: 02508201610067 [08:56:58]line Контрольно-КаÑÑовый Чек [08:56:58]line ПРОДÐЖР[08:56:58]line ТРК (МРК, ГÐК) : 24 [08:56:58]line Товар: 2710194210 [08:56:58]line ДТ-К-5 [08:56:58]line 20.170 * 74.40 [08:56:58]line = 1500.65 [08:56:58]line ÐДС 12% ÐСП 1% [08:56:58]line > о реализуемом товаре [08:56:58]line ИТОГО: 1500.65 [08:56:58]line ÐСП 1% : 13.28 [08:56:58]line ÐДС 12% : 159.36 [08:56:58]line Ðаличными: 0.00 [08:56:58]line Безнал.: 1500.65 [08:56:58]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [08:56:58]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [08:56:58]line СÐО: Общий режим [08:56:58]line Чек 14 13.08.2024 08:56 [08:56:58]line Смена: 466 ФФД: 1.0 [08:56:58]line ЗÐМ: 0300000140 [08:56:58]line РÐМ: 0000000000090913 [08:56:58]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:56:58]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [08:56:58]line ФМ: 0000000000874915 [08:56:58]line ФД: 70660 [08:56:58]line ФПД: 17365420213444 [08:56:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T085659&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70660&fm=17365420213444&tin=02508201610067®Number=0000000000090913&sum=150065 [08:56:59]OFD Sender: Processing packet 70660 [packets to send 67, broken 66] [08:56:59]ProducePacketName [08:56:59]name=ofd_packets/00070660 [08:56:59]OFD Sender: To server: ‡•öpG, [08:56:59]CommunicateWithHost lk.salyk.kg:30040 [08:56:59]ConnectInit lk.salyk.kg [08:56:59]written 0, free lines is 4095 [08:56:59]Connected sock=10 [08:56:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 92 DA 04 01 9A 6E 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 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 DB 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 04 14 01 00 35 04 06 00 0F CB 33 B4 04 C4 40 DB 36 99 E4 CB 89 31 [08:56:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 10 9E 47 00 C7 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 04 14 01 00 F4 03 04 00 C6 C6 BA 66 B6 04 01 00 00 64 F8 A7 7F 2A 30 2B 66 [08:56:59]CommunicateWithHost err = 0 [08:56:59]CheckOFDResponse [08:56:59]1017 (14) - 77093643461234 [08:56:59]1041 (16) - 0000000000874915 [08:56:59]1040 (4) - 70660 [08:56:59]1012 (4) - 13.08.2024 02:36 [08:56:59]1206 (1) - 0 [08:56:59]OFD Sender: Remove packet 70660 [08:56:59]ProducePacketName [08:56:59]name=ofd_packets/00070660 [08:56:59]NVStorageDeleteData [08:56:59]Write to MH i2c: 01 00 00 93 04 97 [08:56:59]Write i2c OK [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: 01 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: 01 07 00 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: 01 07 00 93 04 00 00 00 00 00 FF 0C A9 [08:56:59]RasterBufferAndPrint [08:56:59]line [08:56:59]line [08:56:59]line [08:56:59]line [08:56:59]line [08:56:59]written 0, free lines is 3333 [08:56:59]MH_Cut [08:56:59]Write to MH i2c: D1 01 00 9A 04 01 70 [08:56:59]Write i2c OK [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: D1 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: D1 01 00 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: D1 01 00 9A 04 00 6F [08:56:59]Write to MH i2c: 01 00 00 9B 04 9F [08:56:59]Write i2c OK [08:56:59]MH_I2C_Read... [08:56:59]OFD Sender: No OFD packet to send [08:57:00]*** Cut start [08:57:00]*** Purtial cut [08:57:00]*** CUTSNS_PIN = 0 [08:57:00]*** Stage 1: CUTSNS_PIN = 1 [08:57:02]Read from MH i2c: 01 [08:57:02]MH_I2C_Read... [08:57:02]*** Stop cut motor [08:57:02]*** Cut end [08:57:02]Read from MH i2c: 01 07 00 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: 01 07 00 9B 04 00 00 00 00 00 FF 0F B4 [08:57:02]process_action close_receipt done [08:57:02]requested_data is exist [08:57:02]produce_requested_data [08:57:02]requested_item fm.sn is exist - process it [08:57:02]wFMCommunicate request_size=4 [08:57:02]MH_SAM_APDU [08:57:02]CAPDU: 80 11 00 00 [08:57:02]Write to MH i2c: E2 08 00 9C 04 80 11 00 00 00 00 00 00 1A [08:57:02]Write i2c OK [08:57:02]MH_I2C_Read... [08:57:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:02]Read from MH i2c: E2 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: E2 17 00 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: E2 17 00 9C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 6F [08:57:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:57:02]wFMCommunicate OK [08:57:02]requested_item fd.num is exist - process it [08:57:02]SAM_PROTO_GetFieldsCounters [08:57:02]wFMCommunicate request_size=4 [08:57:02]MH_SAM_APDU [08:57:02]CAPDU: 80 13 00 00 [08:57:02]Write to MH i2c: E2 08 00 9D 04 80 13 00 00 00 00 00 00 1D [08:57:02]Write i2c OK [08:57:02]MH_I2C_Read... [08:57:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:02]Read from MH i2c: E2 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: E2 62 00 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: E2 62 00 9D 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 04 14 01 00 0E 04 04 00 D2 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 53 [08:57: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 04 14 01 00 0E 04 04 00 D2 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 [08:57:02]wFMCommunicate OK [08:57:02]SAM_PROTO_GetFieldsCounters done [08:57:02]requested_item shift.num is exist - process it [08:57:02]requested_item shift.opened is exist - process it [08:57:02]req_shift_opened [08:57:02]FM_GetShiftState [08:57:02]SAM_PROTO_GetShiftState [08:57:02]wFMCommunicate request_size=4 [08:57:02]MH_SAM_APDU [08:57:02]CAPDU: 80 13 01 00 [08:57:02]Write to MH i2c: E2 08 00 9E 04 80 13 01 00 00 00 00 00 1F [08:57:02]Write i2c OK [08:57:02]MH_I2C_Read... [08:57:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:02]Read from MH i2c: E2 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: E2 0E 00 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: E2 0E 00 9E 04 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 8E [08:57:02]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:57:02]wFMCommunicate OK [08:57:02]SAM_PROTO_GetShiftState done [08:57:02]FM_GetShiftState done [08:57:02]req_shift_opened done [08:57:02]requested_item shift.open_date is exist - process it [08:57:02]req_shift_open_date [08:57:02]req_shift_open_date done [08:57:02]produce_requested_data done [08:57:02]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70660,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [08:57:02]process_action_free close_receipt [08:57:02]json_value_free [08:57:02]json_value_free done [08:57:02]process_json_proto returns [08:57:02]Send response to host [08:57:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70660,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [08:57:02]free response buf [08:57:02]execute_script done [08:57:02]execute_script returns [08:57:02]free content buf [08:57:02]Sock 7.Close socket [08:57:02]Sock 7.Thread stoped [08:57:02]accept exits with 9 [08:57:02]New connection [08:57:02]New thread 3067358564 created [08:57:02]Thread 3067215204 joined [08:57:02]Waiting for new connection... [08:57:02] Sock 9.Parse request [08:57:02]Sock 9.Check first char [08:57:02]Sock 9.First char is OK [08:57:02]request: POST /json_proto HTTP/1.0 [08:57:02]Method: POST [08:57:02]URL: /json_proto [08:57:02]Method is POST - this is cgi request [08:57:02]url: /json_proto [08:57:02]query_string will be loaded in cgi processing [08:57:02]execute_cgi json_proto POST (null) [08:57:02]execute_cgi path=json_proto method=POST [08:57:02]POST find Content-Length [08:57:02]Host: 172.17.58.67:8080 [08:57:02]Content-Length: 805 [08:57:02]Content-Type: application/json [08:57:02] [08:57:02]POST finish read [08:57:02]Found Content-Length = 805 [08:57:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "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.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:02]execute_script... [08:57: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)141112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "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.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:02]POST & json_proto [08:57:02]process_json_proto [08:57:02]json parsed OK: [08:57:02]protocol is kg_v1.0 [08:57:02]action value=close_receipt [08:57:02]process_action close_receipt [08:57:02]cmd_close_receipt [08:57:02]MH_GetDate [08:57:02]Write to MH i2c: F0 00 00 9F 04 92 [08:57:02]Write i2c OK [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: F0 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: F0 09 00 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: F0 09 00 9F 04 00 E0 1F BB 66 94 51 63 64 67 [08:57:02]GetLastDocTimeStamp 1723539419 [08:57:02]current date 1723539424 [08:57:02]FM_GetShiftState [08:57:02]SAM_PROTO_GetShiftState [08:57:02]wFMCommunicate request_size=4 [08:57:02]MH_SAM_APDU [08:57:02]CAPDU: 80 13 01 00 [08:57:02]Write to MH i2c: E2 08 00 A0 04 80 13 01 00 00 00 00 00 21 [08:57:02]Write i2c OK [08:57:02]MH_I2C_Read... [08:57:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:02]Read from MH i2c: E2 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: E2 0E 00 [08:57:02]MH_I2C_Read... [08:57:02]Read from MH i2c: E2 0E 00 A0 04 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 90 [08:57:02]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:57:02]wFMCommunicate OK [08:57:02]SAM_PROTO_GetShiftState done [08:57:02]FM_GetShiftState done [08:57:02]opened in 1723509656 [08:57:02]opened+sec_in_day 1723596056 [08:57:02]quantity*price = 100068 [08:57:02]sum+1 = 100069 [08:57:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.68 ÐСП 1% : 8.86 ÐДС 12% : 106.27 Ðаличными: 0.00 Безнал.: 1000.68 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 15 13.08.2024 08:57 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70661 ФПД: 41566242773910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T085704&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70661&fm=41566242773910&tin=02508201610067®Number=0000000000090913&sum=100068 [08:57:03]StoreToDocumentArchive [08:57:03]shift 466 fd 70661 [08:57:03]save to /storage/0466/doc_00070661 [08:57:03]save last doc name /storage/0466/doc_00070661 to /storage/kkm_last_doc_name [08:57:03]save OK [08:57:03]Clear old archive folders... [08:57:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:57:03]tlvbuf is 01792A40 [08:57:03]SAM_PROTO_ClearQueue [08:57:03]wFMCommunicate request_size=4 [08:57:03]MH_SAM_APDU [08:57:03]CAPDU: 80 09 00 00 [08:57:03]Write to MH i2c: E2 08 00 AD 04 80 09 00 00 00 00 00 00 23 [08:57:03]Write i2c OK [08:57:03]MH_I2C_Read... [08:57:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:03]Read from MH i2c: E2 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 03 00 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 03 00 AD 04 00 90 00 25 [08:57:03]RAPDU: 90 00 [08:57:03]wFMCommunicate OK [08:57:03]SAM_PROTO_ClearQueue done [08:57:03]KKMCreateOFDPacket [08:57:03]OFDProtocolAddRootSTLVToBuf [08:57:03]FM_MakeSignedData [08:57:04]FM_MakeSignedData [08:57:04]SAM_PROTO_SignData [08:57:04]wFMCommunicate request_size=4 [08:57:04]MH_SAM_APDU [08:57:04]CAPDU: 80 0D 01 02 [08:57:04]Write to MH i2c: E2 08 00 AE 04 80 0D 01 02 00 00 00 00 2B [08:57:04]Write i2c OK [08:57:04]MH_I2C_Read... [08:57:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:04]Read from MH i2c: E2 [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: E2 03 00 [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: E2 03 00 AE 04 00 90 00 26 [08:57:04]RAPDU: 90 00 [08:57:04]wFMCommunicate OK [08:57:04]wFMCommunicate request_size=255 [08:57:04]MH_SAM_APDU [08:57: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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E0 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 05 14 01 00 35 04 06 00 25 CD E5 22 [08:57:04]Write to MH i2c: E2 02 01 AF 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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E0 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 05 14 01 00 35 04 06 00 25 CD E5 22 00 00 ED [08:57:04]Write i2c OK [08:57:04]MH_I2C_Read... [08:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:04]Read from MH i2c: E2 [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: E2 03 00 [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: E2 03 00 AF 04 00 90 00 27 [08:57:04]RAPDU: 90 00 [08:57:04]wFMCommunicate OK [08:57:04]wFMCommunicate request_size=7 [08:57:04]MH_SAM_APDU [08:57:04]CAPDU: 80 0D 02 02 02 9B 96 [08:57:04]Write to MH i2c: E2 0A 00 B0 04 80 0D 02 02 02 00 9B 96 00 00 63 [08:57:04]Write i2c OK [08:57:04]MH_I2C_Read... [08:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:04]Read from MH i2c: E2 [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: E2 03 00 [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: E2 03 00 B0 04 00 90 00 28 [08:57:04]RAPDU: 90 00 [08:57:04]wFMCommunicate OK [08:57:04]wFMCommunicate request_size=4 [08:57:04]MH_SAM_APDU [08:57:04]CAPDU: 80 0D 03 02 [08:57:04]Write to MH i2c: E2 08 00 B1 04 80 0D 03 02 00 00 00 00 30 [08:57:04]Write i2c OK [08:57:04]MH_I2C_Read... [08:57:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:04]Read from MH i2c: E2 [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: E2 0B 00 [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: E2 0B 00 B1 04 00 D1 40 DE 29 1B D8 52 12 90 00 A0 [08:57:04]RAPDU: D1 40 DE 29 1B D8 52 12 90 00 [08:57:04]wFMCommunicate OK [08:57:04]SAM_PROTO_SignData done [08:57:04]FM_MakeSignedData done [08:57:04]CreateOFDProtocolMessage [08:57:04]wFMCommunicate request_size=4 [08:57:04]MH_SAM_APDU [08:57:04]CAPDU: 80 11 00 00 [08:57:04]Write to MH i2c: E2 08 00 B2 04 80 11 00 00 00 00 00 00 30 [08:57:04]Write i2c OK [08:57:04]MH_I2C_Read... [08:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:04]Read from MH i2c: E2 [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: E2 17 00 [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: E2 17 00 B2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 85 [08:57:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:57:04]wFMCommunicate OK [08:57:04]CreateOFDProtocolMessage done [08:57:04]OFDSenderStorePacket 70661 [08:57:04]StoreOFDPacket docnum=70661 [08:57:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 3E 02 04 01 62 1A 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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E0 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 05 14 01 00 35 04 06 00 25 CD E5 22 9B 96 D1 40 DE 29 1B D8 52 12 [08:57:04]CheckFolder [08:57:04]dirname=/storage/ofd_packets [08:57:04]CheckFolder done [08:57:04]ProducePacketName [08:57:04]name=ofd_packets/00070661 [08:57:04]NVStorageSaveData ofd_packets/00070661 [08:57:04]File name is /storage/ofd_packets/00070661 [08:57:04]Write 298 bytes [08:57:04]NVStorageSaveData done [08:57:04]OFDSenderStorePacket done [08:57:04]KKMCreateOFDPacket done [08:57:04]NVStorageSaveData kkm_last_timestamp [08:57:04]File name is /storage/kkm_last_timestamp [08:57:04]Write 4 bytes [08:57:04]NVStorageSaveData done [08:57:04]ExternCall_PrintAddStr [08:57:04]wPrintStart [08:57:04]Write to MH i2c: 01 00 00 B3 04 B7 [08:57:04]Write i2c OK [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: 01 [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: 01 07 00 [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: 01 07 00 B3 04 00 00 00 00 00 FF 0F CC [08:57:04]RasterBufferAndPrint [08:57:04]line Счет N : (1)141112 [08:57:04]line ИÐÐ: 02508201610067 [08:57:04]line Контрольно-КаÑÑовый Чек [08:57:04]line ПРОДÐЖР[08:57:04]line ТРК (МРК, ГÐК) : 14 [08:57:04]line Товар: 2710194210 [08:57:04]line ДТ-К-5 [08:57:04]line 13.450 * 74.40 [08:57:04]line = 1000.68 [08:57:04]line ÐДС 12% ÐСП 1% [08:57:04]line > о реализуемом товаре [08:57:04]line ИТОГО: 1000.68 [08:57:04]line ÐСП 1% : 8.86 [08:57:04]line ÐДС 12% : 106.27 [08:57:04]line Ðаличными: 0.00 [08:57:04]line Безнал.: 1000.68 [08:57:04]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [08:57:04]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [08:57:04]line СÐО: Общий режим [08:57:04]line Чек 15 13.08.2024 08:57 [08:57:04]line Смена: 466 ФФД: 1.0 [08:57:05]line ЗÐМ: 0300000140 [08:57:05]line РÐМ: 0000000000090913 [08:57:05]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:57:05]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [08:57:05]line ФМ: 0000000000874915 [08:57:05]line ФД: 70661 [08:57:05]line ФПД: 41566242773910 [08:57:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T085704&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70661&fm=41566242773910&tin=02508201610067®Number=0000000000090913&sum=100068 [08:57:05]OFD Sender: Processing packet 70661 [packets to send 67, broken 66] [08:57:05]ProducePacketName [08:57:05]name=ofd_packets/00070661 [08:57:05]OFD Sender: To server: ‡•öpG, [08:57:05]CommunicateWithHost lk.salyk.kg:30040 [08:57:05]ConnectInit lk.salyk.kg [08:57:05]written 0, free lines is 4095 [08:57:05]Connected sock=10 [08:57: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 39 31 35 0C 01 00 00 3E 02 04 01 62 1A 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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E0 1F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 05 14 01 00 35 04 06 00 25 CD E5 22 9B 96 D1 40 DE 29 1B D8 52 12 [08:57:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 33 63 47 00 3B 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 39 31 35 10 04 04 00 05 14 01 00 F4 03 04 00 CC C6 BA 66 B6 04 01 00 00 0E C3 07 E8 41 40 73 D2 [08:57:05]CommunicateWithHost err = 0 [08:57:05]CheckOFDResponse [08:57:05]1017 (14) - 77093643461234 [08:57:05]1041 (16) - 0000000000874915 [08:57:05]1040 (4) - 70661 [08:57:05]1012 (4) - 13.08.2024 02:37 [08:57:05]1206 (1) - 0 [08:57:05]OFD Sender: Remove packet 70661 [08:57:05]ProducePacketName [08:57:05]name=ofd_packets/00070661 [08:57:05]NVStorageDeleteData [08:57:05]Write to MH i2c: 01 00 00 DD 04 E1 [08:57:05]Write i2c OK [08:57:05]MH_I2C_Read... [08:57:05]Read from MH i2c: 01 [08:57:05]MH_I2C_Read... [08:57:05]Read from MH i2c: 01 07 00 [08:57:05]MH_I2C_Read... [08:57:05]Read from MH i2c: 01 07 00 DD 04 00 00 00 00 00 F7 0C EB [08:57:05]RasterBufferAndPrint [08:57:05]line [08:57:05]line [08:57:05]line [08:57:05]line [08:57:05]line [08:57:05]written 0, free lines is 3331 [08:57:05]MH_Cut [08:57:05]Write to MH i2c: D1 01 00 E4 04 01 BA [08:57:05]Write i2c OK [08:57:05]MH_I2C_Read... [08:57:05]Read from MH i2c: D1 [08:57:05]MH_I2C_Read... [08:57:05]Read from MH i2c: D1 01 00 [08:57:05]MH_I2C_Read... [08:57:05]Read from MH i2c: D1 01 00 E4 04 00 B9 [08:57:05]Write to MH i2c: 01 00 00 E5 04 E9 [08:57:05]Write i2c OK [08:57:05]MH_I2C_Read... [08:57:05]OFD Sender: No OFD packet to send [08:57:06]*** Cut start [08:57:06]*** Purtial cut [08:57:06]*** Stage 1: CUTSNS_PIN = 1 [08:57:06]Read from MH i2c: 01 [08:57:06]MH_I2C_Read... [08:57:06]*** Stop cut motor [08:57:06]*** Cut end [08:57:06]Read from MH i2c: 01 07 00 [08:57:06]MH_I2C_Read... [08:57:06]Read from MH i2c: 01 07 00 E5 04 00 00 00 00 00 FF 0F FE [08:57:06]process_action close_receipt done [08:57:06]requested_data is exist [08:57:06]produce_requested_data [08:57:06]requested_item fm.sn is exist - process it [08:57:06]wFMCommunicate request_size=4 [08:57:06]MH_SAM_APDU [08:57:06]CAPDU: 80 11 00 00 [08:57:06]Write to MH i2c: E2 08 00 E6 04 80 11 00 00 00 00 00 00 64 [08:57:06]Write i2c OK [08:57:06]MH_I2C_Read... [08:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:06]Read from MH i2c: E2 [08:57:06]MH_I2C_Read... [08:57:06]Read from MH i2c: E2 17 00 [08:57:06]MH_I2C_Read... [08:57:06]Read from MH i2c: E2 17 00 E6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 B9 [08:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:57:06]wFMCommunicate OK [08:57:06]requested_item fd.num is exist - process it [08:57:06]SAM_PROTO_GetFieldsCounters [08:57:06]wFMCommunicate request_size=4 [08:57:06]MH_SAM_APDU [08:57:06]CAPDU: 80 13 00 00 [08:57:06]Write to MH i2c: E2 08 00 E7 04 80 13 00 00 00 00 00 00 67 [08:57:06]Write i2c OK [08:57:06]MH_I2C_Read... [08:57:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:06]Read from MH i2c: E2 [08:57:06]MH_I2C_Read... [08:57:06]Read from MH i2c: E2 62 00 [08:57:06]MH_I2C_Read... [08:57:06]Read from MH i2c: E2 62 00 E7 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 05 14 01 00 0E 04 04 00 D2 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 A1 [08:57: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 05 14 01 00 0E 04 04 00 D2 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 [08:57:06]wFMCommunicate OK [08:57:06]SAM_PROTO_GetFieldsCounters done [08:57:06]requested_item shift.num is exist - process it [08:57:06]requested_item shift.opened is exist - process it [08:57:06]req_shift_opened [08:57:06]FM_GetShiftState [08:57:06]SAM_PROTO_GetShiftState [08:57:06]wFMCommunicate request_size=4 [08:57:06]MH_SAM_APDU [08:57:06]CAPDU: 80 13 01 00 [08:57:06]Write to MH i2c: E2 08 00 E8 04 80 13 01 00 00 00 00 00 69 [08:57:06]Write i2c OK [08:57:06]MH_I2C_Read... [08:57:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:06]Read from MH i2c: E2 [08:57:06]MH_I2C_Read... [08:57:06]Read from MH i2c: E2 0E 00 [08:57:06]MH_I2C_Read... [08:57:06]Read from MH i2c: E2 0E 00 E8 04 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 D8 [08:57:06]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [08:57:06]wFMCommunicate OK [08:57:06]SAM_PROTO_GetShiftState done [08:57:06]FM_GetShiftState done [08:57:06]req_shift_opened done [08:57:06]requested_item shift.open_date is exist - process it [08:57:06]req_shift_open_date [08:57:06]req_shift_open_date done [08:57:06]produce_requested_data done [08:57:06]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70661,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [08:57:06]process_action_free close_receipt [08:57:06]json_value_free [08:57:06]json_value_free done [08:57:06]process_json_proto returns [08:57:06]Send response to host [08:57:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70661,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [08:57:06]free response buf [08:57:06]execute_script done [08:57:06]execute_script returns [08:57:06]free content buf [08:57:06]Sock 9.Close socket [08:57:06]Sock 9.Thread stoped [08:57:10]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [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: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:42]int [09:10:42]Write to MH i2c: 01 00 00 E9 04 ED [09:10:42]*** FLAG_PRN_KEY set [09:10:42]Write i2c OK [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: 01 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: 01 07 00 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: 01 07 00 E9 04 00 08 00 00 00 FF 0F 0A [09:10:42]state=0 [09:10:42]Key pressed [09:10:42]Feed [09:10:42]Write to MH i2c: D8 00 00 EA 04 C5 [09:10:42]Write i2c OK [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: D8 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: D8 01 00 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: D8 01 00 EA 04 00 C6 [09:10:42]int [09:10:42]Write to MH i2c: 01 00 00 EB 04 EF [09:10:42]Write i2c OK [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: 01 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: 01 07 00 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: 01 07 00 EB 04 00 48 00 00 00 3C 00 7A [09:10:42]state=2 [09:10:42]Key pressed [09:10:42]int [09:10:42]Write to MH i2c: 01 00 00 EC 04 F0 [09:10:42]*** FLAG_PRN_KEY reset [09:10:42]Write i2c OK [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: 01 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: 01 07 00 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: 01 07 00 EC 04 00 00 00 00 00 F6 0F FC [09:10:42]state=2 [09:10:42]Stop feed [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]accept exits with 7 [09:12:01]New connection [09:12:01]New thread 3067215204 created [09:12:01]Thread 3067358564 joined [09:12:01]Waiting for new connection... [09:12:01] Sock 7.Parse request [09:12:01]Sock 7.Check first char [09:12:01]Sock 7.First char is OK [09:12:01]request: POST /json_proto HTTP/1.0 [09:12:01]Method: POST [09:12:01]URL: /json_proto [09:12:01]Method is POST - this is cgi request [09:12:01]url: /json_proto [09:12:01]query_string will be loaded in cgi processing [09:12:01]execute_cgi json_proto POST (null) [09:12:01]execute_cgi path=json_proto method=POST [09:12:01]POST find Content-Length [09:12:01]Host: 172.17.58.67:8080 [09:12:01]Content-Length: 805 [09:12:01]Content-Type: application/json [09:12:01] [09:12:01]POST finish read [09:12:01]Found Content-Length = 805 [09:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:01]execute_script... [09:12: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)141114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:01]POST & json_proto [09:12:01]process_json_proto [09:12:01]json parsed OK: [09:12:01]protocol is kg_v1.0 [09:12:01]action value=close_receipt [09:12:01]process_action close_receipt [09:12:01]cmd_close_receipt [09:12:01]MH_GetDate [09:12:01]Write to MH i2c: F0 00 00 ED 04 E0 [09:12:01]Write i2c OK [09:12:01]MH_I2C_Read... [09:12:01]Read from MH i2c: F0 [09:12:01]MH_I2C_Read... [09:12:01]Read from MH i2c: F0 09 00 [09:12:01]MH_I2C_Read... [09:12:01]Read from MH i2c: F0 09 00 ED 04 00 63 23 BB 66 94 51 63 64 3C [09:12:01]GetLastDocTimeStamp 1723539424 [09:12:01]current date 1723540323 [09:12:01]FM_GetShiftState [09:12:01]SAM_PROTO_GetShiftState [09:12:01]wFMCommunicate request_size=4 [09:12:01]MH_SAM_APDU [09:12:01]CAPDU: 80 13 01 00 [09:12:01]Write to MH i2c: E2 08 00 EE 04 80 13 01 00 00 00 00 00 6F [09:12:01]Write i2c OK [09:12:01]MH_I2C_Read... [09:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:01]Read from MH i2c: E2 [09:12:01]MH_I2C_Read... [09:12:01]Read from MH i2c: E2 0E 00 [09:12:01]MH_I2C_Read... [09:12:01]Read from MH i2c: E2 0E 00 EE 04 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 DE [09:12:01]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [09:12:01]wFMCommunicate OK [09:12:01]SAM_PROTO_GetShiftState done [09:12:01]FM_GetShiftState done [09:12:01]opened in 1723509656 [09:12:01]opened+sec_in_day 1723596056 [09:12:01]quantity*price = 50018 [09:12:01]sum+1 = 50019 [09:12:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 0.00 Безнал.: 500.18 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 16 13.08.2024 09:12 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70662 ФПД: 138174182802539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T091203&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70662&fm=138174182802539&tin=02508201610067®Number=0000000000090913&sum=50018 [09:12:02]StoreToDocumentArchive [09:12:02]shift 466 fd 70662 [09:12:02]save to /storage/0466/doc_00070662 [09:12:02]save last doc name /storage/0466/doc_00070662 to /storage/kkm_last_doc_name [09:12:02]save OK [09:12:02]Clear old archive folders... [09:12:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:02]tlvbuf is 017BD830 [09:12:02]SAM_PROTO_ClearQueue [09:12:02]wFMCommunicate request_size=4 [09:12:02]MH_SAM_APDU [09:12:02]CAPDU: 80 09 00 00 [09:12:02]Write to MH i2c: E2 08 00 FB 04 80 09 00 00 00 00 00 00 71 [09:12:02]Write i2c OK [09:12:02]MH_I2C_Read... [09:12:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:02]Read from MH i2c: E2 [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: E2 03 00 [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: E2 03 00 FB 04 00 90 00 73 [09:12:02]RAPDU: 90 00 [09:12:02]wFMCommunicate OK [09:12:02]SAM_PROTO_ClearQueue done [09:12:02]KKMCreateOFDPacket [09:12:02]OFDProtocolAddRootSTLVToBuf [09:12:02]FM_MakeSignedData [09:12:02]FM_MakeSignedData [09:12:02]SAM_PROTO_SignData [09:12:02]wFMCommunicate request_size=4 [09:12:02]MH_SAM_APDU [09:12:02]CAPDU: 80 0D 01 02 [09:12:02]Write to MH i2c: E2 08 00 FC 04 80 0D 01 02 00 00 00 00 79 [09:12:02]Write i2c OK [09:12:02]MH_I2C_Read... [09:12:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:02]Read from MH i2c: E2 [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: E2 03 00 [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: E2 03 00 FC 04 00 90 00 74 [09:12:02]RAPDU: 90 00 [09:12:02]wFMCommunicate OK [09:12:02]wFMCommunicate request_size=255 [09:12:02]MH_SAM_APDU [09:12: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 63 23 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 06 14 01 00 35 04 06 00 7D [09:12:02]Write to MH i2c: E2 02 01 FD 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 63 23 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 06 14 01 00 35 04 06 00 7D 00 00 3D [09:12:02]Write i2c OK [09:12:02]MH_I2C_Read... [09:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:02]Read from MH i2c: E2 [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: E2 03 00 [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [09:12:02]RAPDU: 90 00 [09:12:02]wFMCommunicate OK [09:12:02]wFMCommunicate request_size=10 [09:12:02]MH_SAM_APDU [09:12:02]CAPDU: 80 0D 02 02 05 AB 2F 15 44 6B [09:12:02]Write to MH i2c: E2 0D 00 FE 04 80 0D 02 02 05 00 AB 2F 15 44 6B 00 00 24 [09:12:02]Write i2c OK [09:12:02]MH_I2C_Read... [09:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:02]Read from MH i2c: E2 [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: E2 03 00 [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [09:12:02]RAPDU: 90 00 [09:12:02]wFMCommunicate OK [09:12:02]wFMCommunicate request_size=4 [09:12:02]MH_SAM_APDU [09:12:02]CAPDU: 80 0D 03 02 [09:12:02]Write to MH i2c: E2 08 00 FF 04 80 0D 03 02 00 00 00 00 7E [09:12:02]Write i2c OK [09:12:02]MH_I2C_Read... [09:12:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:02]Read from MH i2c: E2 [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: E2 0B 00 [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: E2 0B 00 FF 04 00 B8 B5 8A 55 62 34 8F CC 90 00 BC [09:12:02]RAPDU: B8 B5 8A 55 62 34 8F CC 90 00 [09:12:02]wFMCommunicate OK [09:12:02]SAM_PROTO_SignData done [09:12:02]FM_MakeSignedData done [09:12:02]CreateOFDProtocolMessage [09:12:02]wFMCommunicate request_size=4 [09:12:02]MH_SAM_APDU [09:12:02]CAPDU: 80 11 00 00 [09:12:02]Write to MH i2c: E2 08 00 00 05 80 11 00 00 00 00 00 00 7F [09:12:02]Write i2c OK [09:12:02]MH_I2C_Read... [09:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:02]Read from MH i2c: E2 [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: E2 17 00 [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: E2 17 00 00 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 D4 [09:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:12:02]wFMCommunicate OK [09:12:02]CreateOFDProtocolMessage done [09:12:02]OFDSenderStorePacket 70662 [09:12:02]StoreOFDPacket docnum=70662 [09:12:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 63 14 07 01 82 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 63 23 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 06 14 01 00 35 04 06 00 7D AB 2F 15 44 6B B8 B5 8A 55 62 34 8F CC [09:12:02]CheckFolder [09:12:02]dirname=/storage/ofd_packets [09:12:02]CheckFolder done [09:12:02]ProducePacketName [09:12:02]name=ofd_packets/00070662 [09:12:02]NVStorageSaveData ofd_packets/00070662 [09:12:02]File name is /storage/ofd_packets/00070662 [09:12:02]Write 301 bytes [09:12:02]NVStorageSaveData done [09:12:02]OFDSenderStorePacket done [09:12:02]KKMCreateOFDPacket done [09:12:02]NVStorageSaveData kkm_last_timestamp [09:12:02]File name is /storage/kkm_last_timestamp [09:12:02]Write 4 bytes [09:12:02]NVStorageSaveData done [09:12:02]ExternCall_PrintAddStr [09:12:02]wPrintStart [09:12:02]Write to MH i2c: 01 00 00 01 05 06 [09:12:02]Write i2c OK [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: 01 [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: 01 07 00 [09:12:02]MH_I2C_Read... [09:12:02]Read from MH i2c: 01 07 00 01 05 00 00 00 00 00 FF 0F 1B [09:12:02]RasterBufferAndPrint [09:12:02]line Счет N : (1)141114 [09:12:02]line ИÐÐ: 02508201610067 [09:12:02]line Контрольно-КаÑÑовый Чек [09:12:02]line ПРОДÐЖР[09:12:02]line ТРК (МРК, ГÐК) : 41 [09:12:02]line Товар: 2710124130 [09:12:02]line Ðи-92-К-5 [09:12:02]line 7.590 * 65.90 [09:12:02]line = 500.18 [09:12:02]line ÐДС 12% ÐСП 1% [09:12:02]line > о реализуемом товаре [09:12:02]line ИТОГО: 500.18 [09:12:02]line ÐСП 1% : 4.43 [09:12:02]line ÐДС 12% : 53.12 [09:12:02]line Ðаличными: 0.00 [09:12:02]line Безнал.: 500.18 [09:12:02]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [09:12:02]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [09:12:02]line СÐО: Общий режим [09:12:02]line Чек 16 13.08.2024 09:12 [09:12:02]line Смена: 466 ФФД: 1.0 [09:12:02]line ЗÐМ: 0300000140 [09:12:02]line РÐМ: 0000000000090913 [09:12:02]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:12:02]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [09:12:02]line ФМ: 0000000000874915 [09:12:02]line ФД: 70662 [09:12:02]line ФПД: 138174182802539 [09:12:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T091203&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70662&fm=138174182802539&tin=02508201610067®Number=0000000000090913&sum=50018 [09:12:02]written 0, free lines is 4095 [09:12:02]OFD Sender: Processing packet 70662 [packets to send 67, broken 66] [09:12:02]ProducePacketName [09:12:02]name=ofd_packets/00070662 [09:12:02]OFD Sender: To server: ‡•öpG, [09:12:02]CommunicateWithHost lk.salyk.kg:30040 [09:12:02]ConnectInit lk.salyk.kg [09:12:02]Connected sock=10 [09:12: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 39 31 35 0F 01 00 00 63 14 07 01 82 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 63 23 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 06 14 01 00 35 04 06 00 7D AB 2F 15 44 6B B8 B5 8A 55 62 34 8F CC [09:12:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 A4 40 47 00 72 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 06 14 01 00 F4 03 04 00 4E CA BA 66 B6 04 01 00 00 F9 1F 6C F4 05 46 13 2F [09:12:03]CommunicateWithHost err = 0 [09:12:03]CheckOFDResponse [09:12:03]1017 (14) - 77093643461234 [09:12:03]1041 (16) - 0000000000874915 [09:12:03]1040 (4) - 70662 [09:12:03]1012 (4) - 13.08.2024 02:51 [09:12:03]1206 (1) - 0 [09:12:03]OFD Sender: Remove packet 70662 [09:12:03]ProducePacketName [09:12:03]name=ofd_packets/00070662 [09:12:03]NVStorageDeleteData [09:12:03]Write to MH i2c: 01 00 00 2B 05 30 [09:12:03]Write i2c OK [09:12:03]MH_I2C_Read... [09:12:03]Read from MH i2c: 01 [09:12:03]MH_I2C_Read... [09:12:03]Read from MH i2c: 01 07 00 [09:12:03]MH_I2C_Read... [09:12:03]Read from MH i2c: 01 07 00 2B 05 00 00 00 00 00 FA 0C 3D [09:12:03]RasterBufferAndPrint [09:12:03]line [09:12:03]line [09:12:03]line [09:12:03]line [09:12:03]line [09:12:03]written 0, free lines is 3328 [09:12:03]MH_Cut [09:12:03]Write to MH i2c: D1 01 00 32 05 01 09 [09:12:03]Write i2c OK [09:12:03]MH_I2C_Read... [09:12:03]Read from MH i2c: D1 [09:12:03]MH_I2C_Read... [09:12:03]Read from MH i2c: D1 01 00 [09:12:03]MH_I2C_Read... [09:12:03]Read from MH i2c: D1 01 00 32 05 00 08 [09:12:03]Write to MH i2c: 01 00 00 33 05 38 [09:12:03]Write i2c OK [09:12:03]MH_I2C_Read... [09:12:03]OFD Sender: No OFD packet to send [09:12:03]*** Cut start [09:12:03]*** Purtial cut [09:12:03]*** CUTSNS_PIN = 0 [09:12:04]*** Stage 1: CUTSNS_PIN = 1 [09:12:05]Read from MH i2c: 01 [09:12:05]MH_I2C_Read... [09:12:05]*** Stop cut motor [09:12:05]*** Cut end [09:12:05]Read from MH i2c: 01 07 00 [09:12:05]MH_I2C_Read... [09:12:05]Read from MH i2c: 01 07 00 33 05 00 00 00 00 00 FF 0F 4D [09:12:05]process_action close_receipt done [09:12:05]requested_data is exist [09:12:05]produce_requested_data [09:12:05]requested_item fm.sn is exist - process it [09:12:05]wFMCommunicate request_size=4 [09:12:05]MH_SAM_APDU [09:12:05]CAPDU: 80 11 00 00 [09:12:05]Write to MH i2c: E2 08 00 34 05 80 11 00 00 00 00 00 00 B3 [09:12:05]Write i2c OK [09:12:05]MH_I2C_Read... [09:12:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:06]Read from MH i2c: E2 [09:12:06]MH_I2C_Read... [09:12:06]Read from MH i2c: E2 17 00 [09:12:06]MH_I2C_Read... [09:12:06]Read from MH i2c: E2 17 00 34 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 08 [09:12:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:12:06]wFMCommunicate OK [09:12:06]requested_item fd.num is exist - process it [09:12:06]SAM_PROTO_GetFieldsCounters [09:12:06]wFMCommunicate request_size=4 [09:12:06]MH_SAM_APDU [09:12:06]CAPDU: 80 13 00 00 [09:12:06]Write to MH i2c: E2 08 00 35 05 80 13 00 00 00 00 00 00 B6 [09:12:06]Write i2c OK [09:12:06]MH_I2C_Read... [09:12:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:06]Read from MH i2c: E2 [09:12:06]MH_I2C_Read... [09:12:06]Read from MH i2c: E2 62 00 [09:12:06]MH_I2C_Read... [09:12:06]Read from MH i2c: E2 62 00 35 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 06 14 01 00 0E 04 04 00 D2 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 F4 [09:12:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 06 14 01 00 0E 04 04 00 D2 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 [09:12:06]wFMCommunicate OK [09:12:06]SAM_PROTO_GetFieldsCounters done [09:12:06]requested_item shift.num is exist - process it [09:12:06]requested_item shift.opened is exist - process it [09:12:06]req_shift_opened [09:12:06]FM_GetShiftState [09:12:06]SAM_PROTO_GetShiftState [09:12:06]wFMCommunicate request_size=4 [09:12:06]MH_SAM_APDU [09:12:06]CAPDU: 80 13 01 00 [09:12:06]Write to MH i2c: E2 08 00 36 05 80 13 01 00 00 00 00 00 B8 [09:12:06]Write i2c OK [09:12:06]MH_I2C_Read... [09:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:06]Read from MH i2c: E2 [09:12:06]MH_I2C_Read... [09:12:06]Read from MH i2c: E2 0E 00 [09:12:06]MH_I2C_Read... [09:12:06]Read from MH i2c: E2 0E 00 36 05 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 27 [09:12:06]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [09:12:06]wFMCommunicate OK [09:12:06]SAM_PROTO_GetShiftState done [09:12:06]FM_GetShiftState done [09:12:06]req_shift_opened done [09:12:06]requested_item shift.open_date is exist - process it [09:12:06]req_shift_open_date [09:12:06]req_shift_open_date done [09:12:06]produce_requested_data done [09:12:06]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70662,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [09:12:06]process_action_free close_receipt [09:12:06]json_value_free [09:12:06]json_value_free done [09:12:06]process_json_proto returns [09:12:06]Send response to host [09:12:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70662,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [09:12:06]free response buf [09:12:06]execute_script done [09:12:06]execute_script returns [09:12:06]free content buf [09:12:06]Sock 7.Close socket [09:12:06]Sock 7.Thread stoped [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [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:09]int [09:16:09]Write to MH i2c: 01 00 00 37 05 3C [09:16:09]*** FLAG_PRN_KEY set [09:16:09]Write i2c OK [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: 01 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: 01 07 00 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: 01 07 00 37 05 00 08 00 00 00 FF 0F 59 [09:16:09]state=0 [09:16:09]Key pressed [09:16:09]Feed [09:16:09]Write to MH i2c: D8 00 00 38 05 14 [09:16:09]Write i2c OK [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: D8 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: D8 01 00 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: D8 01 00 38 05 00 15 [09:16:09]int [09:16:09]Write to MH i2c: 01 00 00 39 05 3E [09:16:09]Write i2c OK [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: 01 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: 01 07 00 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: 01 07 00 39 05 00 48 00 00 00 3C 00 C9 [09:16:09]state=2 [09:16:09]Key pressed [09:16:09]int [09:16:09]Write to MH i2c: 01 00 00 3A 05 3F [09:16:09]*** FLAG_PRN_KEY reset [09:16:09]Write i2c OK [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: 01 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: 01 07 00 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: 01 07 00 3A 05 00 00 00 00 00 F6 0F 4B [09:16:09]state=2 [09:16:09]Stop feed [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]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:04]accept exits with 9 [09:17:04]New connection [09:17:04]New thread 3067358564 created [09:17:04]Thread 3067215204 joined [09:17:04]Waiting for new connection... [09:17:04] Sock 9.Parse request [09:17:04]Sock 9.Check first char [09:17:04]Sock 9.First char is OK [09:17:04]request: POST /json_proto HTTP/1.0 [09:17:04]Method: POST [09:17:04]URL: /json_proto [09:17:04]Method is POST - this is cgi request [09:17:04]url: /json_proto [09:17:04]query_string will be loaded in cgi processing [09:17:04]execute_cgi json_proto POST (null) [09:17:04]execute_cgi path=json_proto method=POST [09:17:04]POST find Content-Length [09:17:04]Host: 172.17.58.67:8080 [09:17:04]Content-Length: 1196 [09:17:04]Content-Type: application/json [09:17:04] [09:17:04]POST finish read [09:17:04]Found Content-Length = 1196 [09:17:04]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141115\u000A13.08.2024 08:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A4206893\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:04]execute_script... [09:17:04]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141115\u000A13.08.2024 08:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A4206893\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:04]POST & json_proto [09:17:04]process_json_proto [09:17:04]json parsed OK: [09:17:04]protocol is kg_v1.0 [09:17:04]action value=print_text [09:17:04]process_action print_text [09:17:04]cmd_print_text [09:17:04]ExternCall_PrintAddStr [09:17:04]wPrintStart [09:17:04]Write to MH i2c: 01 00 00 3B 05 40 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: 01 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: 01 07 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: 01 07 00 3B 05 00 00 00 00 00 FF 0F 55 [09:17:04]RasterBufferAndPrint [09:17:04]line *****ТОВÐРÐЫЙ ЧЕК***** [09:17:04]line ÐЗС 39 [09:17:04]line Партнер нефть [09:17:04]line 02508201610067 [09:17:04]line КаÑÑир : ОваÑбекова Л. [09:17:04]line Счет N : (1)141115 [09:17:04]line 13.08.2024 08:36 [09:17:04]line ПРОДÐЖР[09:17:04]line ТРК (МРК, ГÐК): 41 [09:17:04]line Вид ГСМ : 2710124130 [09:17:04]line Ðи-92-К-5 [09:17:04]line 10.000 x 65.90 [09:17:04]line ИТОГ: 659.00 [09:17:04]line Тип оплаты: Талоны: Партнер нефть [09:17:04]line 4206893 [09:17:04]line ______________________ [09:17:04]line (подпиÑÑŒ) [09:17:04]written 0, free lines is 4095 [09:17:05]Write to MH i2c: 01 00 00 4F 05 54 [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: 01 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: 01 07 00 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: 01 07 00 4F 05 00 00 00 00 00 13 0E 7C [09:17:05]RasterBufferAndPrint [09:17:05]line [09:17:05]line [09:17:05]line [09:17:05]line [09:17:05]line [09:17:05]written 0, free lines is 3605 [09:17:05]MH_Cut [09:17:05]Write to MH i2c: D1 01 00 56 05 01 2D [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: D1 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: D1 01 00 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: D1 01 00 56 05 00 2C [09:17:05]Write to MH i2c: 01 00 00 57 05 5C [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]*** Cut start [09:17:05]*** Purtial cut [09:17:05]*** Stage 1: CUTSNS_PIN = 1 [09:17:05]Read from MH i2c: 01 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: 01 07 00 [09:17:05]MH_I2C_Read... [09:17:05]*** Stop cut motor [09:17:05]*** Cut end [09:17:05]Read from MH i2c: 01 07 00 57 05 00 00 00 00 00 FF 0F 71 [09:17:05]process_action print_text done [09:17:05]requested_data is exist [09:17:05]produce_requested_data [09:17:05]requested_item fm.sn is exist - process it [09:17:05]wFMCommunicate request_size=4 [09:17:05]MH_SAM_APDU [09:17:05]CAPDU: 80 11 00 00 [09:17:05]Write to MH i2c: E2 08 00 58 05 80 11 00 00 00 00 00 00 D7 [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:05]Read from MH i2c: E2 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: E2 17 00 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: E2 17 00 58 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 2C [09:17:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:17:05]wFMCommunicate OK [09:17:05]requested_item fd.num is exist - process it [09:17:05]SAM_PROTO_GetFieldsCounters [09:17:05]wFMCommunicate request_size=4 [09:17:05]MH_SAM_APDU [09:17:05]CAPDU: 80 13 00 00 [09:17:05]Write to MH i2c: E2 08 00 59 05 80 13 00 00 00 00 00 00 DA [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 62 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 62 00 59 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 06 14 01 00 0E 04 04 00 D2 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 18 [09:17: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 06 14 01 00 0E 04 04 00 D2 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 [09:17:06]wFMCommunicate OK [09:17:06]SAM_PROTO_GetFieldsCounters done [09:17:06]requested_item shift.num is exist - process it [09:17:06]requested_item shift.opened is exist - process it [09:17:06]req_shift_opened [09:17:06]FM_GetShiftState [09:17:06]SAM_PROTO_GetShiftState [09:17:06]wFMCommunicate request_size=4 [09:17:06]MH_SAM_APDU [09:17:06]CAPDU: 80 13 01 00 [09:17:06]Write to MH i2c: E2 08 00 5A 05 80 13 01 00 00 00 00 00 DC [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 0E 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 0E 00 5A 05 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 4B [09:17:06]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [09:17:06]wFMCommunicate OK [09:17:06]SAM_PROTO_GetShiftState done [09:17:06]FM_GetShiftState done [09:17:06]req_shift_opened done [09:17:06]requested_item shift.open_date is exist - process it [09:17:06]req_shift_open_date [09:17:06]req_shift_open_date done [09:17:06]produce_requested_data done [09:17:06]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70662,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [09:17:06]process_action_free print_text [09:17:06]json_value_free [09:17:06]json_value_free done [09:17:06]process_json_proto returns [09:17:06]Send response to host [09:17:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70662,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [09:17:06]free response buf [09:17:06]execute_script done [09:17:06]execute_script returns [09:17:06]free content buf [09:17:06]Sock 9.Close socket [09:17:06]Sock 9.Thread stoped [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]int [09:17:53]Write to MH i2c: 01 00 00 5B 05 60 [09:17:53]*** FLAG_PRN_KEY set [09:17:53]Write i2c OK [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: 01 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: 01 07 00 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: 01 07 00 5B 05 00 08 00 00 00 FF 0F 7D [09:17:53]state=0 [09:17:53]Key pressed [09:17:53]Feed [09:17:53]Write to MH i2c: D8 00 00 5C 05 38 [09:17:53]Write i2c OK [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: D8 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: D8 01 00 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: D8 01 00 5C 05 00 39 [09:17:53]int [09:17:53]Write to MH i2c: 01 00 00 5D 05 62 [09:17:53]Write i2c OK [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: 01 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: 01 07 00 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: 01 07 00 5D 05 00 48 00 00 00 3C 00 ED [09:17:53]state=2 [09:17:53]Key pressed [09:17:53]int [09:17:53]Write to MH i2c: 01 00 00 5E 05 63 [09:17:53]*** FLAG_PRN_KEY reset [09:17:53]Write i2c OK [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: 01 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: 01 07 00 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: 01 07 00 5E 05 00 00 00 00 00 F6 0F 6F [09:17:53]state=2 [09:17:53]Stop feed [09:17:53]OFD Sender: No OFD packet to send [09:17:56]accept exits with 7 [09:17:56]New connection [09:17:56]New thread 3067215204 created [09:17:56]Thread 3067358564 joined [09:17:56]Waiting for new connection... [09:17:56] Sock 7.Parse request [09:17:56]Sock 7.Check first char [09:17:56]Sock 7.First char is OK [09:17:56]request: POST /json_proto HTTP/1.0 [09:17:56]Method: POST [09:17:56]URL: /json_proto [09:17:56]Method is POST - this is cgi request [09:17:56]url: /json_proto [09:17:56]query_string will be loaded in cgi processing [09:17:56]execute_cgi json_proto POST (null) [09:17:56]execute_cgi path=json_proto method=POST [09:17:56]POST find Content-Length [09:17:56]Host: 172.17.58.67:8080 [09:17:56]Content-Length: 816 [09:17:56]Content-Type: application/json [09:17:56] [09:17:56]POST finish read [09:17:56]Found Content-Length = 816 [09:17:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 5.590, "sum" : 368.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 368.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:56]execute_script... [09:17: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)141116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 5.590, "sum" : 368.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 368.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:56]POST & json_proto [09:17:56]process_json_proto [09:17:56]json parsed OK: [09:17:56]protocol is kg_v1.0 [09:17:56]action value=close_receipt [09:17:56]process_action close_receipt [09:17:56]cmd_close_receipt [09:17:56]MH_GetDate [09:17:56]Write to MH i2c: F0 00 00 5F 05 53 [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: F0 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: F0 09 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: F0 09 00 5F 05 00 C6 24 BB 66 94 51 63 64 13 [09:17:56]GetLastDocTimeStamp 1723540323 [09:17:56]current date 1723540678 [09:17:56]FM_GetShiftState [09:17:56]SAM_PROTO_GetShiftState [09:17:56]wFMCommunicate request_size=4 [09:17:56]MH_SAM_APDU [09:17:56]CAPDU: 80 13 01 00 [09:17:56]Write to MH i2c: E2 08 00 60 05 80 13 01 00 00 00 00 00 E2 [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:56]Read from MH i2c: E2 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 0E 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 0E 00 60 05 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 51 [09:17:56]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [09:17:56]wFMCommunicate OK [09:17:56]SAM_PROTO_GetShiftState done [09:17:56]FM_GetShiftState done [09:17:56]opened in 1723509656 [09:17:56]opened+sec_in_day 1723596056 [09:17:56]quantity*price = 36838 [09:17:56]sum+1 = 36839 [09:17:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 368.38 ÐСП 1% : 3.26 ÐДС 12% : 39.12 Ðаличными: 0.00 Безнал.: 368.38 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 17 13.08.2024 09:17 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000000874915 ФД: 70663 ФПД: 40910517786127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T091758&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70663&fm=40910517786127&tin=02508201610067®Number=0000000000090913&sum=36838 [09:17:57]StoreToDocumentArchive [09:17:57]shift 466 fd 70663 [09:17:57]save to /storage/0466/doc_00070663 [09:17:57]save last doc name /storage/0466/doc_00070663 to /storage/kkm_last_doc_name [09:17:57]save OK [09:17:57]Clear old archive folders... [09:17:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:57]tlvbuf is 01792E70 [09:17:57]SAM_PROTO_ClearQueue [09:17:57]wFMCommunicate request_size=4 [09:17:57]MH_SAM_APDU [09:17:57]CAPDU: 80 09 00 00 [09:17:57]Write to MH i2c: E2 08 00 6D 05 80 09 00 00 00 00 00 00 E4 [09:17:57]Write i2c OK [09:17:57]MH_I2C_Read... [09:17:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:58]Read from MH i2c: E2 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: E2 03 00 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [09:17:58]RAPDU: 90 00 [09:17:58]wFMCommunicate OK [09:17:58]SAM_PROTO_ClearQueue done [09:17:58]KKMCreateOFDPacket [09:17:58]OFDProtocolAddRootSTLVToBuf [09:17:58]FM_MakeSignedData [09:17:58]FM_MakeSignedData [09:17:58]SAM_PROTO_SignData [09:17:58]wFMCommunicate request_size=4 [09:17:58]MH_SAM_APDU [09:17:58]CAPDU: 80 0D 01 02 [09:17:58]Write to MH i2c: E2 08 00 6E 05 80 0D 01 02 00 00 00 00 EC [09:17:58]Write i2c OK [09:17:58]MH_I2C_Read... [09:17:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:58]Read from MH i2c: E2 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: E2 03 00 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [09:17:58]RAPDU: 90 00 [09:17:58]wFMCommunicate OK [09:17:58]wFMCommunicate request_size=255 [09:17:58]MH_SAM_APDU [09:17:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 15 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 E6 8F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 8F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 C6 24 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 07 14 01 00 35 04 06 00 25 [09:17:58]Write to MH i2c: E2 02 01 6F 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 D6 15 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 E6 8F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 8F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 C6 24 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 07 14 01 00 35 04 06 00 25 00 00 E4 [09:17:58]Write i2c OK [09:17:58]MH_I2C_Read... [09:17:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:58]Read from MH i2c: E2 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: E2 03 00 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [09:17:58]RAPDU: 90 00 [09:17:58]wFMCommunicate OK [09:17:58]wFMCommunicate request_size=10 [09:17:58]MH_SAM_APDU [09:17:58]CAPDU: 80 0D 02 02 05 35 38 E1 56 0F [09:17:58]Write to MH i2c: E2 0D 00 70 05 80 0D 02 02 05 00 35 38 E1 56 0F 00 00 AC [09:17:58]Write i2c OK [09:17:58]MH_I2C_Read... [09:17:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:58]Read from MH i2c: E2 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: E2 03 00 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [09:17:58]RAPDU: 90 00 [09:17:58]wFMCommunicate OK [09:17:58]wFMCommunicate request_size=4 [09:17:58]MH_SAM_APDU [09:17:58]CAPDU: 80 0D 03 02 [09:17:58]Write to MH i2c: E2 08 00 71 05 80 0D 03 02 00 00 00 00 F1 [09:17:58]Write i2c OK [09:17:58]MH_I2C_Read... [09:17:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:58]Read from MH i2c: E2 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: E2 0B 00 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: E2 0B 00 71 05 00 C4 48 17 B4 DA FC 6D CE 90 00 DA [09:17:58]RAPDU: C4 48 17 B4 DA FC 6D CE 90 00 [09:17:58]wFMCommunicate OK [09:17:58]SAM_PROTO_SignData done [09:17:58]FM_MakeSignedData done [09:17:58]CreateOFDProtocolMessage [09:17:58]wFMCommunicate request_size=4 [09:17:58]MH_SAM_APDU [09:17:58]CAPDU: 80 11 00 00 [09:17:58]Write to MH i2c: E2 08 00 72 05 80 11 00 00 00 00 00 00 F1 [09:17:58]Write i2c OK [09:17:58]MH_I2C_Read... [09:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:58]Read from MH i2c: E2 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: E2 17 00 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: E2 17 00 72 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 46 [09:17:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:17:58]wFMCommunicate OK [09:17:58]CreateOFDProtocolMessage done [09:17:58]OFDSenderStorePacket 70663 [09:17:58]StoreOFDPacket docnum=70663 [09:17:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 F0 63 07 01 69 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 15 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 E6 8F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 8F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 C6 24 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 07 14 01 00 35 04 06 00 25 35 38 E1 56 0F C4 48 17 B4 DA FC 6D CE [09:17:58]CheckFolder [09:17:58]dirname=/storage/ofd_packets [09:17:58]CheckFolder done [09:17:58]ProducePacketName [09:17:58]name=ofd_packets/00070663 [09:17:58]NVStorageSaveData ofd_packets/00070663 [09:17:58]File name is /storage/ofd_packets/00070663 [09:17:58]Write 301 bytes [09:17:58]NVStorageSaveData done [09:17:58]OFDSenderStorePacket done [09:17:58]KKMCreateOFDPacket done [09:17:58]NVStorageSaveData kkm_last_timestamp [09:17:58]File name is /storage/kkm_last_timestamp [09:17:58]Write 4 bytes [09:17:58]NVStorageSaveData done [09:17:58]ExternCall_PrintAddStr [09:17:58]wPrintStart [09:17:58]Write to MH i2c: 01 00 00 73 05 78 [09:17:58]Write i2c OK [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: 01 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: 01 07 00 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: 01 07 00 73 05 00 00 00 00 00 FF 0F 8D [09:17:58]RasterBufferAndPrint [09:17:58]line Счет N : (1)141116 [09:17:58]line ИÐÐ: 02508201610067 [09:17:58]line Контрольно-КаÑÑовый Чек [09:17:58]line ПРОДÐЖР[09:17:58]line ТРК (МРК, ГÐК) : 31 [09:17:58]line Товар: 2710124130 [09:17:58]line Ðи-92-К-5 [09:17:58]line 5.590 * 65.90 [09:17:58]line = 368.38 [09:17:58]line ÐДС 12% ÐСП 1% [09:17:58]line > о реализуемом товаре [09:17:58]line ИТОГО: 368.38 [09:17:58]line ÐСП 1% : 3.26 [09:17:58]line ÐДС 12% : 39.12 [09:17:58]line Ðаличными: 0.00 [09:17:58]line Безнал.: 368.38 [09:17:58]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [09:17:58]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [09:17:58]line СÐО: Общий режим [09:17:58]line Чек 17 13.08.2024 09:17 [09:17:58]line Смена: 466 ФФД: 1.0 [09:17:58]line ЗÐМ: 0300000140 [09:17:58]line РÐМ: 0000000000090913 [09:17:58]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:17:58]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [09:17:58]line ФМ: 0000000000874915 [09:17:58]line ФД: 70663 [09:17:58]line ФПД: 40910517786127 [09:17:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T091758&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70663&fm=40910517786127&tin=02508201610067®Number=0000000000090913&sum=36838 [09:17:58]written 0, free lines is 4095 [09:17:58]OFD Sender: Processing packet 70663 [packets to send 67, broken 66] [09:17:58]ProducePacketName [09:17:58]name=ofd_packets/00070663 [09:17:58]OFD Sender: To server: ‡•öpG, [09:17:58]CommunicateWithHost lk.salyk.kg:30040 [09:17:58]ConnectInit lk.salyk.kg [09:17:58]Connected sock=10 [09:17: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 39 31 35 0F 01 00 00 F0 63 07 01 69 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 15 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 E6 8F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 8F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 C6 24 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 07 14 01 00 35 04 06 00 25 35 38 E1 56 0F C4 48 17 B4 DA FC 6D CE [09:17:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 72 74 47 00 95 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 39 31 35 10 04 04 00 07 14 01 00 F4 03 04 00 B1 CB BA 66 B6 04 01 00 00 6E 3F 26 F9 D7 AD FB 4C [09:17:58]CommunicateWithHost err = 0 [09:17:58]CheckOFDResponse [09:17:58]1017 (14) - 77093643461234 [09:17:58]1041 (16) - 0000000000874915 [09:17:58]1040 (4) - 70663 [09:17:58]1012 (4) - 13.08.2024 02:57 [09:17:58]1206 (1) - 0 [09:17:58]OFD Sender: Remove packet 70663 [09:17:58]ProducePacketName [09:17:58]name=ofd_packets/00070663 [09:17:58]NVStorageDeleteData [09:17:58]Write to MH i2c: 01 00 00 9D 05 A2 [09:17:58]Write i2c OK [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: 01 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: 01 07 00 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: 01 07 00 9D 05 00 00 00 00 00 FE 0C B3 [09:17:58]RasterBufferAndPrint [09:17:58]line [09:17:58]line [09:17:58]line [09:17:58]line [09:17:58]line [09:17:58]written 0, free lines is 3332 [09:17:58]MH_Cut [09:17:58]Write to MH i2c: D1 01 00 A4 05 01 7B [09:17:58]Write i2c OK [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: D1 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: D1 01 00 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: D1 01 00 A4 05 00 7A [09:17:58]Write to MH i2c: 01 00 00 A5 05 AA [09:17:58]Write i2c OK [09:17:58]MH_I2C_Read... [09:17:59]OFD Sender: No OFD packet to send [09:17:59]*** Cut start [09:17:59]*** Purtial cut [09:17:59]*** CUTSNS_PIN = 0 [09:17:59]*** Stage 1: CUTSNS_PIN = 1 [09:18:01]Read from MH i2c: 01 [09:18:01]MH_I2C_Read... [09:18:01]*** Stop cut motor [09:18:01]*** Cut end [09:18:01]Read from MH i2c: 01 07 00 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: 01 07 00 A5 05 00 00 00 00 00 FF 0F BF [09:18:01]process_action close_receipt done [09:18:01]requested_data is exist [09:18:01]produce_requested_data [09:18:01]requested_item fm.sn is exist - process it [09:18:01]wFMCommunicate request_size=4 [09:18:01]MH_SAM_APDU [09:18:01]CAPDU: 80 11 00 00 [09:18:01]Write to MH i2c: E2 08 00 A6 05 80 11 00 00 00 00 00 00 25 [09:18:01]Write i2c OK [09:18:01]MH_I2C_Read... [09:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:01]Read from MH i2c: E2 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: E2 17 00 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: E2 17 00 A6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 7A [09:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:18:01]wFMCommunicate OK [09:18:01]requested_item fd.num is exist - process it [09:18:01]SAM_PROTO_GetFieldsCounters [09:18:01]wFMCommunicate request_size=4 [09:18:01]MH_SAM_APDU [09:18:01]CAPDU: 80 13 00 00 [09:18:01]Write to MH i2c: E2 08 00 A7 05 80 13 00 00 00 00 00 00 28 [09:18:01]Write i2c OK [09:18:01]MH_I2C_Read... [09:18:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:01]Read from MH i2c: E2 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: E2 62 00 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: E2 62 00 A7 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 07 14 01 00 0E 04 04 00 D2 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 6A [09:18: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 07 14 01 00 0E 04 04 00 D2 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 [09:18:01]wFMCommunicate OK [09:18:01]SAM_PROTO_GetFieldsCounters done [09:18:01]requested_item shift.num is exist - process it [09:18:01]requested_item shift.opened is exist - process it [09:18:01]req_shift_opened [09:18:01]FM_GetShiftState [09:18:01]SAM_PROTO_GetShiftState [09:18:01]wFMCommunicate request_size=4 [09:18:01]MH_SAM_APDU [09:18:01]CAPDU: 80 13 01 00 [09:18:01]Write to MH i2c: E2 08 00 A8 05 80 13 01 00 00 00 00 00 2A [09:18:01]Write i2c OK [09:18:01]MH_I2C_Read... [09:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:01]Read from MH i2c: E2 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: E2 0E 00 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: E2 0E 00 A8 05 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 99 [09:18:01]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [09:18:01]wFMCommunicate OK [09:18:01]SAM_PROTO_GetShiftState done [09:18:01]FM_GetShiftState done [09:18:01]req_shift_opened done [09:18:01]requested_item shift.open_date is exist - process it [09:18:01]req_shift_open_date [09:18:01]req_shift_open_date done [09:18:01]produce_requested_data done [09:18:01]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70663,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [09:18:01]process_action_free close_receipt [09:18:01]json_value_free [09:18:01]json_value_free done [09:18:01]process_json_proto returns [09:18:01]Send response to host [09:18:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70663,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [09:18:01]free response buf [09:18:01]execute_script done [09:18:01]execute_script returns [09:18:01]free content buf [09:18:01]Sock 7.Close socket [09:18:01]Sock 7.Thread stoped [09:18:02]int [09:18:02]Write to MH i2c: 01 00 00 A9 05 AE [09:18:02]*** FLAG_PRN_KEY set [09:18:02]Write i2c OK [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: 01 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: 01 07 00 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: 01 07 00 A9 05 00 08 00 00 00 FF 0F CB [09:18:02]state=0 [09:18:02]Key pressed [09:18:02]Feed [09:18:02]Write to MH i2c: D8 00 00 AA 05 86 [09:18:02]Write i2c OK [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: D8 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: D8 01 00 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: D8 01 00 AA 05 00 87 [09:18:02]int [09:18:02]Write to MH i2c: 01 00 00 AB 05 B0 [09:18:02]Write i2c OK [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: 01 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: 01 07 00 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: 01 07 00 AB 05 00 48 00 00 00 3C 00 3B [09:18:02]state=2 [09:18:02]Key pressed [09:18:02]int [09:18:02]Write to MH i2c: 01 00 00 AC 05 B1 [09:18:02]*** FLAG_PRN_KEY reset [09:18:02]Write i2c OK [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: 01 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: 01 07 00 [09:18:02]MH_I2C_Read... [09:18:02]Read from MH i2c: 01 07 00 AC 05 00 00 00 00 00 FF 0F C6 [09:18:02]state=2 [09:18:02]Stop feed [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:10]accept exits with 9 [09:25:10]New connection [09:25:10]New thread 3067358564 created [09:25:10]Thread 3067215204 joined [09:25:10]Waiting for new connection... [09:25:10] Sock 9.Parse request [09:25:10]Sock 9.Check first char [09:25:10]Sock 9.First char is OK [09:25:10]request: POST /json_proto HTTP/1.0 [09:25:10]Method: POST [09:25:10]URL: /json_proto [09:25:10]Method is POST - this is cgi request [09:25:10]url: /json_proto [09:25:10]query_string will be loaded in cgi processing [09:25:10]execute_cgi json_proto POST (null) [09:25:10]execute_cgi path=json_proto method=POST [09:25:10]POST find Content-Length [09:25:10]Host: 172.17.58.67:8080 [09:25:10]Content-Length: 1205 [09:25:10]Content-Type: application/json [09:25:10] [09:25:10]POST finish read [09:25:10]Found Content-Length = 1205 [09:25: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141117\u000A13.08.2024 08:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1977.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\u000A4212647:4148532\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:10]execute_script... [09:25: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141117\u000A13.08.2024 08:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1977.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\u000A4212647:4148532\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:10]POST & json_proto [09:25:10]process_json_proto [09:25:10]json parsed OK: [09:25:10]protocol is kg_v1.0 [09:25:10]action value=print_text [09:25:10]process_action print_text [09:25:10]cmd_print_text [09:25:10]ExternCall_PrintAddStr [09:25:10]wPrintStart [09:25:10]Write to MH i2c: 01 00 00 AD 05 B2 [09:25:10]Write i2c OK [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: 01 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: 01 07 00 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: 01 07 00 AD 05 00 00 00 00 00 FF 0F C7 [09:25:10]RasterBufferAndPrint [09:25:10]line *****ТОВÐРÐЫЙ ЧЕК***** [09:25:10]line ÐЗС 39 [09:25:10]line Партнер нефть [09:25:10]line 02508201610067 [09:25:10]line КаÑÑир : ОваÑбекова Л. [09:25:10]line Счет N : (1)141117 [09:25:10]line 13.08.2024 08:44 [09:25:10]line ПРОДÐЖР[09:25:10]line ТРК (МРК, ГÐК): 31 [09:25:10]line Вид ГСМ : 2710124130 [09:25:10]line Ðи-92-К-5 [09:25:10]line 30.000 x 65.90 [09:25:10]line ИТОГ: 1977.00 [09:25:10]line Тип оплаты: Талоны: Партнер нефть [09:25:10]line 4212647:4148532 [09:25:10]line ______________________ [09:25:10]line (подпиÑÑŒ) [09:25:10]written 0, free lines is 4095 [09:25:10]Write to MH i2c: 01 00 00 C1 05 C6 [09:25:10]Write i2c OK [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: 01 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: 01 07 00 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: 01 07 00 C1 05 00 00 00 00 00 16 0E F1 [09:25:10]RasterBufferAndPrint [09:25:10]line [09:25:10]line [09:25:10]line [09:25:10]line [09:25:10]line [09:25:10]written 0, free lines is 3608 [09:25:10]MH_Cut [09:25:10]Write to MH i2c: D1 01 00 C8 05 01 9F [09:25:10]Write i2c OK [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: D1 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: D1 01 00 [09:25:10]MH_I2C_Read... [09:25:10]Read from MH i2c: D1 01 00 C8 05 00 9E [09:25:10]Write to MH i2c: 01 00 00 C9 05 CE [09:25:10]Write i2c OK [09:25:10]MH_I2C_Read... [09:25:10]*** Cut start [09:25:10]*** Purtial cut [09:25:10]*** Stage 1: CUTSNS_PIN = 1 [09:25:11]Read from MH i2c: 01 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: 01 07 00 [09:25:11]MH_I2C_Read... [09:25:11]*** Stop cut motor [09:25:11]*** Cut end [09:25:11]Read from MH i2c: 01 07 00 C9 05 00 00 00 00 00 FF 0F E3 [09:25:11]process_action print_text done [09:25:11]requested_data is exist [09:25:11]produce_requested_data [09:25:11]requested_item fm.sn is exist - process it [09:25:11]wFMCommunicate request_size=4 [09:25:11]MH_SAM_APDU [09:25:11]CAPDU: 80 11 00 00 [09:25:11]Write to MH i2c: E2 08 00 CA 05 80 11 00 00 00 00 00 00 49 [09:25:11]Write i2c OK [09:25:11]MH_I2C_Read... [09:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:11]Read from MH i2c: E2 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: E2 17 00 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: E2 17 00 CA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 9E [09:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:25:11]wFMCommunicate OK [09:25:11]requested_item fd.num is exist - process it [09:25:11]SAM_PROTO_GetFieldsCounters [09:25:11]wFMCommunicate request_size=4 [09:25:11]MH_SAM_APDU [09:25:11]CAPDU: 80 13 00 00 [09:25:11]Write to MH i2c: E2 08 00 CB 05 80 13 00 00 00 00 00 00 4C [09:25:11]Write i2c OK [09:25:11]MH_I2C_Read... [09:25:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:11]Read from MH i2c: E2 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: E2 62 00 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: E2 62 00 CB 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 07 14 01 00 0E 04 04 00 D2 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 8E [09:25: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 07 14 01 00 0E 04 04 00 D2 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 [09:25:11]wFMCommunicate OK [09:25:11]SAM_PROTO_GetFieldsCounters done [09:25:11]requested_item shift.num is exist - process it [09:25:11]requested_item shift.opened is exist - process it [09:25:11]req_shift_opened [09:25:11]FM_GetShiftState [09:25:11]SAM_PROTO_GetShiftState [09:25:11]wFMCommunicate request_size=4 [09:25:11]MH_SAM_APDU [09:25:11]CAPDU: 80 13 01 00 [09:25:11]Write to MH i2c: E2 08 00 CC 05 80 13 01 00 00 00 00 00 4E [09:25:11]Write i2c OK [09:25:11]MH_I2C_Read... [09:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:11]Read from MH i2c: E2 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: E2 0E 00 [09:25:11]MH_I2C_Read... [09:25:11]Read from MH i2c: E2 0E 00 CC 05 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 BD [09:25:11]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [09:25:11]wFMCommunicate OK [09:25:11]SAM_PROTO_GetShiftState done [09:25:11]FM_GetShiftState done [09:25:11]req_shift_opened done [09:25:11]requested_item shift.open_date is exist - process it [09:25:11]req_shift_open_date [09:25:11]req_shift_open_date done [09:25:11]produce_requested_data done [09:25:11]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70663,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [09:25:11]process_action_free print_text [09:25:11]json_value_free [09:25:11]json_value_free done [09:25:11]process_json_proto returns [09:25:11]Send response to host [09:25:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70663,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [09:25:11]free response buf [09:25:11]execute_script done [09:25:11]execute_script returns [09:25:11]free content buf [09:25:11]Sock 9.Close socket [09:25:11]Sock 9.Thread stoped [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]int [09:28:19]Write to MH i2c: 01 00 00 CD 05 D2 [09:28:19]*** FLAG_PRN_KEY set [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: 01 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: 01 07 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: 01 07 00 CD 05 00 08 00 00 00 FF 0F EF [09:28:19]state=0 [09:28:19]Key pressed [09:28:19]Feed [09:28:19]Write to MH i2c: D8 00 00 CE 05 AA [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: D8 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: D8 01 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: D8 01 00 CE 05 00 AB [09:28:19]int [09:28:19]Write to MH i2c: 01 00 00 CF 05 D4 [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: 01 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: 01 07 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: 01 07 00 CF 05 00 48 00 00 00 3C 00 5F [09:28:19]state=2 [09:28:19]Key pressed [09:28:19]int [09:28:19]Write to MH i2c: 01 00 00 D0 05 D5 [09:28:19]*** FLAG_PRN_KEY reset [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: 01 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: 01 07 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: 01 07 00 D0 05 00 00 00 00 00 F6 0F E1 [09:28:19]state=2 [09:28:19]Stop feed [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:41]accept exits with 7 [09:29:41]New connection [09:29:41]New thread 3067215204 created [09:29:41]Thread 3067358564 joined [09:29:41]Waiting for new connection... [09:29:41] Sock 7.Parse request [09:29:41]Sock 7.Check first char [09:29:41]Sock 7.First char is OK [09:29:41]request: POST /json_proto HTTP/1.0 [09:29:41]Method: POST [09:29:41]URL: /json_proto [09:29:41]Method is POST - this is cgi request [09:29:41]url: /json_proto [09:29:41]query_string will be loaded in cgi processing [09:29:41]execute_cgi json_proto POST (null) [09:29:41]execute_cgi path=json_proto method=POST [09:29:41]POST find Content-Length [09:29:41]Host: 172.17.58.67:8080 [09:29:41]Content-Length: 1206 [09:29:41]Content-Type: application/json [09:29:41] [09:29:41]POST finish read [09:29:41]Found Content-Length = 1206 [09:29:41]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141118\u000A13.08.2024 08:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A53442\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:41]execute_script... [09:29:41]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141118\u000A13.08.2024 08:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A53442\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:41]POST & json_proto [09:29:41]process_json_proto [09:29:41]json parsed OK: [09:29:41]protocol is kg_v1.0 [09:29:41]action value=print_text [09:29:41]process_action print_text [09:29:41]cmd_print_text [09:29:41]ExternCall_PrintAddStr [09:29:41]wPrintStart [09:29:41]Write to MH i2c: 01 00 00 D1 05 D6 [09:29:41]Write i2c OK [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: 01 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: 01 07 00 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: 01 07 00 D1 05 00 00 00 00 00 FF 0F EB [09:29:41]RasterBufferAndPrint [09:29:41]line *****ТОВÐРÐЫЙ ЧЕК***** [09:29:41]line ÐЗС 39 [09:29:41]line Партнер нефть [09:29:41]line 02508201610067 [09:29:41]line КаÑÑир : ОваÑбекова Л. [09:29:41]line Счет N : (1)141118 [09:29:41]line 13.08.2024 08:48 [09:29:41]line ПРОДÐЖР[09:29:41]line ТРК (МРК, ГÐК): 41 [09:29:41]line Вид ГСМ : 2710124130 [09:29:41]line Ðи-92-К-5 [09:29:41]line 10.000 x 65.90 [09:29:41]line ИТОГ: 659.00 [09:29:41]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [09:29:41]line 53442 [09:29:41]line ______________________ [09:29:41]line (подпиÑÑŒ) [09:29:41]written 0, free lines is 4095 [09:29:41]Write to MH i2c: 01 00 00 E5 05 EA [09:29:41]Write i2c OK [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: 01 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: 01 07 00 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: 01 07 00 E5 05 00 00 00 00 00 12 0E 11 [09:29:41]RasterBufferAndPrint [09:29:41]line [09:29:41]line [09:29:41]line [09:29:41]line [09:29:41]line [09:29:41]written 0, free lines is 3603 [09:29:41]MH_Cut [09:29:41]Write to MH i2c: D1 01 00 EC 05 01 C3 [09:29:41]Write i2c OK [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: D1 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: D1 01 00 [09:29:41]MH_I2C_Read... [09:29:41]Read from MH i2c: D1 01 00 EC 05 00 C2 [09:29:41]Write to MH i2c: 01 00 00 ED 05 F2 [09:29:41]Write i2c OK [09:29:41]MH_I2C_Read... [09:29:42]*** Cut start [09:29:42]*** Purtial cut [09:29:42]*** CUTSNS_PIN = 0 [09:29:42]*** Stage 1: CUTSNS_PIN = 1 [09:29:44]Read from MH i2c: 01 [09:29:44]MH_I2C_Read... [09:29:44]*** Stop cut motor [09:29:44]*** Cut end [09:29:44]Read from MH i2c: 01 07 00 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: 01 07 00 ED 05 00 00 00 00 00 FF 0F 07 [09:29:44]process_action print_text done [09:29:44]requested_data is exist [09:29:44]produce_requested_data [09:29:44]requested_item fm.sn is exist - process it [09:29:44]wFMCommunicate request_size=4 [09:29:44]MH_SAM_APDU [09:29:44]CAPDU: 80 11 00 00 [09:29:44]Write to MH i2c: E2 08 00 EE 05 80 11 00 00 00 00 00 00 6D [09:29:44]Write i2c OK [09:29:44]MH_I2C_Read... [09:29:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:44]Read from MH i2c: E2 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: E2 17 00 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: E2 17 00 EE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C2 [09:29:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:29:44]wFMCommunicate OK [09:29:44]requested_item fd.num is exist - process it [09:29:44]SAM_PROTO_GetFieldsCounters [09:29:44]wFMCommunicate request_size=4 [09:29:44]MH_SAM_APDU [09:29:44]CAPDU: 80 13 00 00 [09:29:44]Write to MH i2c: E2 08 00 EF 05 80 13 00 00 00 00 00 00 70 [09:29:44]Write i2c OK [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: E2 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: E2 62 00 [09:29:44]MH_I2C_Read... [09:29:44]int [09:29:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:44]*** FLAG_PRN_KEY set [09:29:44]Read from MH i2c: E2 62 00 EF 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 07 14 01 00 0E 04 04 00 D2 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 B2 [09:29: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 07 14 01 00 0E 04 04 00 D2 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 [09:29:44]wFMCommunicate OK [09:29:44]SAM_PROTO_GetFieldsCounters done [09:29:44]requested_item shift.num is exist - process it [09:29:44]requested_item shift.opened is exist - process it [09:29:44]req_shift_opened [09:29:44]FM_GetShiftState [09:29:44]SAM_PROTO_GetShiftState [09:29:44]wFMCommunicate request_size=4 [09:29:44]MH_SAM_APDU [09:29:44]CAPDU: 80 13 01 00 [09:29:44]Write to MH i2c: E2 08 00 F0 05 80 13 01 00 00 00 00 00 72 [09:29:44]Write i2c OK [09:29:44]MH_I2C_Read... [09:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:44]Read from MH i2c: E2 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: E2 0E 00 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: E2 0E 00 F0 05 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 E1 [09:29:44]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [09:29:44]wFMCommunicate OK [09:29:44]SAM_PROTO_GetShiftState done [09:29:44]FM_GetShiftState done [09:29:44]req_shift_opened done [09:29:44]requested_item shift.open_date is exist - process it [09:29:44]req_shift_open_date [09:29:44]req_shift_open_date done [09:29:44]produce_requested_data done [09:29:44]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70663,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [09:29:44]process_action_free print_text [09:29:44]json_value_free [09:29:44]json_value_free done [09:29:44]process_json_proto returns [09:29:44]Send response to host [09:29:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70663,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [09:29:44]free response buf [09:29:44]execute_script done [09:29:44]execute_script returns [09:29:44]free content buf [09:29:44]Sock 7.Close socket [09:29:44]Sock 7.Thread stoped [09:29:44]Write to MH i2c: 01 00 00 F1 05 F6 [09:29:44]Write i2c OK [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: 01 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: 01 07 00 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: 01 07 00 F1 05 00 08 00 00 00 FF 0F 13 [09:29:44]state=0 [09:29:44]Key pressed [09:29:44]Feed [09:29:44]Write to MH i2c: D8 00 00 F2 05 CE [09:29:44]Write i2c OK [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: D8 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: D8 01 00 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: D8 01 00 F2 05 00 CF [09:29:44]int [09:29:44]Write to MH i2c: 01 00 00 F3 05 F8 [09:29:44]Write i2c OK [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: 01 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: 01 07 00 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: 01 07 00 F3 05 00 48 00 00 00 3C 00 83 [09:29:44]state=2 [09:29:44]Key pressed [09:29:44]int [09:29:44]Write to MH i2c: 01 00 00 F4 05 F9 [09:29:44]*** FLAG_PRN_KEY reset [09:29:44]Write i2c OK [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: 01 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: 01 07 00 [09:29:44]MH_I2C_Read... [09:29:44]Read from MH i2c: 01 07 00 F4 05 00 00 00 00 00 F7 0F 06 [09:29:44]state=2 [09:29:44]Stop feed [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:38]accept exits with 9 [09:33:38]New connection [09:33:38]New thread 3067358564 created [09:33:38]Thread 3067215204 joined [09:33:38]Waiting for new connection... [09:33:38] Sock 9.Parse request [09:33:38]Sock 9.Check first char [09:33:38]Sock 9.First char is OK [09:33:38]request: POST /json_proto HTTP/1.0 [09:33:38]Method: POST [09:33:38]URL: /json_proto [09:33:38]Method is POST - this is cgi request [09:33:38]url: /json_proto [09:33:38]query_string will be loaded in cgi processing [09:33:38]execute_cgi json_proto POST (null) [09:33:38]execute_cgi path=json_proto method=POST [09:33:38]POST find Content-Length [09:33:38]Host: 172.17.58.67:8080 [09:33:38]Content-Length: 1196 [09:33:38]Content-Type: application/json [09:33:38] [09:33:38]POST finish read [09:33:38]Found Content-Length = 1196 [09:33:38]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141119\u000A13.08.2024 08:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A4212659\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:38]execute_script... [09:33:38]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141119\u000A13.08.2024 08:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A4212659\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:38]POST & json_proto [09:33:38]process_json_proto [09:33:38]json parsed OK: [09:33:38]protocol is kg_v1.0 [09:33:38]action value=print_text [09:33:38]process_action print_text [09:33:38]cmd_print_text [09:33:38]ExternCall_PrintAddStr [09:33:38]wPrintStart [09:33:38]Write to MH i2c: 01 00 00 F5 05 FA [09:33:38]Write i2c OK [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: 01 [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: 01 07 00 [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: 01 07 00 F5 05 00 00 00 00 00 FF 0F 0F [09:33:38]RasterBufferAndPrint [09:33:38]line *****ТОВÐРÐЫЙ ЧЕК***** [09:33:38]line ÐЗС 39 [09:33:38]line Партнер нефть [09:33:38]line 02508201610067 [09:33:38]line КаÑÑир : ОваÑбекова Л. [09:33:38]line Счет N : (1)141119 [09:33:38]line 13.08.2024 08:52 [09:33:38]line ПРОДÐЖР[09:33:38]line ТРК (МРК, ГÐК): 41 [09:33:38]line Вид ГСМ : 2710124130 [09:33:38]line Ðи-92-К-5 [09:33:38]line 10.000 x 65.90 [09:33:38]line ИТОГ: 659.00 [09:33:38]line Тип оплаты: Талоны: Партнер нефть [09:33:38]line 4212659 [09:33:38]line ______________________ [09:33:38]line (подпиÑÑŒ) [09:33:38]written 0, free lines is 4095 [09:33:38]Write to MH i2c: 01 00 00 09 06 0F [09:33:38]Write i2c OK [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: 01 [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: 01 07 00 [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: 01 07 00 09 06 00 00 00 00 00 13 0E 37 [09:33:38]RasterBufferAndPrint [09:33:38]line [09:33:38]line [09:33:38]line [09:33:38]line [09:33:38]line [09:33:38]written 0, free lines is 3605 [09:33:38]MH_Cut [09:33:38]Write to MH i2c: D1 01 00 10 06 01 E8 [09:33:38]Write i2c OK [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: D1 [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: D1 01 00 [09:33:38]MH_I2C_Read... [09:33:38]Read from MH i2c: D1 01 00 10 06 00 E7 [09:33:38]Write to MH i2c: 01 00 00 11 06 17 [09:33:38]Write i2c OK [09:33:38]MH_I2C_Read... [09:33:39]*** Cut start [09:33:39]*** Purtial cut [09:33:39]*** Stage 1: CUTSNS_PIN = 1 [09:33:39]Read from MH i2c: 01 [09:33:39]MH_I2C_Read... [09:33:39]*** Stop cut motor [09:33:39]*** Cut end [09:33:39]Read from MH i2c: 01 07 00 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: 01 07 00 11 06 00 00 00 00 00 FF 0F 2C [09:33:39]process_action print_text done [09:33:39]requested_data is exist [09:33:39]produce_requested_data [09:33:39]requested_item fm.sn is exist - process it [09:33:39]wFMCommunicate request_size=4 [09:33:39]MH_SAM_APDU [09:33:39]CAPDU: 80 11 00 00 [09:33:39]Write to MH i2c: E2 08 00 12 06 80 11 00 00 00 00 00 00 92 [09:33:39]Write i2c OK [09:33:39]MH_I2C_Read... [09:33:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:39]Read from MH i2c: E2 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 17 00 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 17 00 12 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 E7 [09:33:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:33:39]wFMCommunicate OK [09:33:39]requested_item fd.num is exist - process it [09:33:39]SAM_PROTO_GetFieldsCounters [09:33:39]wFMCommunicate request_size=4 [09:33:39]MH_SAM_APDU [09:33:39]CAPDU: 80 13 00 00 [09:33:39]Write to MH i2c: E2 08 00 13 06 80 13 00 00 00 00 00 00 95 [09:33:39]Write i2c OK [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 62 00 [09:33:39]MH_I2C_Read... [09:33:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:39]Read from MH i2c: E2 62 00 13 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 07 14 01 00 0E 04 04 00 D2 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 D7 [09:33: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 07 14 01 00 0E 04 04 00 D2 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 [09:33:39]wFMCommunicate OK [09:33:39]SAM_PROTO_GetFieldsCounters done [09:33:39]requested_item shift.num is exist - process it [09:33:39]requested_item shift.opened is exist - process it [09:33:39]req_shift_opened [09:33:39]FM_GetShiftState [09:33:39]SAM_PROTO_GetShiftState [09:33:39]wFMCommunicate request_size=4 [09:33:39]MH_SAM_APDU [09:33:39]CAPDU: 80 13 01 00 [09:33:39]Write to MH i2c: E2 08 00 14 06 80 13 01 00 00 00 00 00 97 [09:33:39]Write i2c OK [09:33:39]MH_I2C_Read... [09:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:39]Read from MH i2c: E2 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 0E 00 [09:33:39]MH_I2C_Read... [09:33:39]Read from MH i2c: E2 0E 00 14 06 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 06 [09:33:39]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [09:33:39]wFMCommunicate OK [09:33:39]SAM_PROTO_GetShiftState done [09:33:39]FM_GetShiftState done [09:33:39]req_shift_opened done [09:33:39]requested_item shift.open_date is exist - process it [09:33:39]req_shift_open_date [09:33:39]req_shift_open_date done [09:33:39]produce_requested_data done [09:33:39]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70663,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [09:33:39]process_action_free print_text [09:33:39]json_value_free [09:33:39]json_value_free done [09:33:39]process_json_proto returns [09:33:39]Send response to host [09:33:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70663,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [09:33:39]free response buf [09:33:39]execute_script done [09:33:39]execute_script returns [09:33:39]free content buf [09:33:39]Sock 9.Close socket [09:33:39]Sock 9.Thread stoped [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41: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:35]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:41]recv_with_timeout no data received [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:41]OFD Sender: No OFD packet to send [09:47:46]OFD Sender: No OFD packet to send [09:47:51]OFD Sender: No OFD packet to send [09:47:56]OFD Sender: No OFD packet to send [09:48:01]OFD Sender: No OFD packet to send [09:48:06]OFD Sender: No OFD packet to send [09:48:11]OFD Sender: No OFD packet to send [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]int [09:50:06]Write to MH i2c: 01 00 00 15 06 1B [09:50:06]*** FLAG_PRN_KEY set [09:50:06]Write i2c OK [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 07 00 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 07 00 15 06 00 08 00 00 00 FF 0F 38 [09:50:06]state=0 [09:50:06]Key pressed [09:50:06]Feed [09:50:06]Write to MH i2c: D8 00 00 16 06 F3 [09:50:06]Write i2c OK [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: D8 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: D8 01 00 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: D8 01 00 16 06 00 F4 [09:50:06]int [09:50:06]Write to MH i2c: 01 00 00 17 06 1D [09:50:06]Write i2c OK [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 07 00 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 07 00 17 06 00 48 00 00 00 3C 00 A8 [09:50:06]state=2 [09:50:06]Key pressed [09:50:06]OFD Sender: No OFD packet to send [09:50:06]int [09:50:06]Write to MH i2c: 01 00 00 18 06 1E [09:50:06]*** FLAG_PRN_KEY reset [09:50:06]Write i2c OK [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 07 00 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 07 00 18 06 00 00 00 00 00 F6 0F 2A [09:50:06]state=2 [09:50:06]Stop feed [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:22]accept exits with 7 [09:50:22]New connection [09:50:22]New thread 3067215204 created [09:50:22]Thread 3067358564 joined [09:50:22]Waiting for new connection... [09:50:22] Sock 7.Parse request [09:50:22]Sock 7.Check first char [09:50:23]Sock 7.First char is OK [09:50:23]request: POST /json_proto HTTP/1.0 [09:50:23]Method: POST [09:50:23]URL: /json_proto [09:50:23]Method is POST - this is cgi request [09:50:23]url: /json_proto [09:50:23]query_string will be loaded in cgi processing [09:50:23]execute_cgi json_proto POST (null) [09:50:23]execute_cgi path=json_proto method=POST [09:50:23]POST find Content-Length [09:50:23]Host: 172.17.58.67:8080 [09:50:23]Content-Length: 1202 [09:50:23]Content-Type: application/json [09:50:23] [09:50:23]POST finish read [09:50:23]Found Content-Length = 1202 [09:50: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141120\u000A13.08.2024 09:09\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 15.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 1108.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:23]execute_script... [09:50: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141120\u000A13.08.2024 09:09\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 15.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 1108.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:23]POST & json_proto [09:50:23]process_json_proto [09:50:23]json parsed OK: [09:50:23]protocol is kg_v1.0 [09:50:23]action value=print_text [09:50:23]process_action print_text [09:50:23]cmd_print_text [09:50:23]ExternCall_PrintAddStr [09:50:23]wPrintStart [09:50:23]Write to MH i2c: 01 00 00 19 06 1F [09:50:23]Write i2c OK [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: 01 [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: 01 07 00 [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: 01 07 00 19 06 00 00 00 00 00 FF 0F 34 [09:50:23]RasterBufferAndPrint [09:50:23]line *****ТОВÐРÐЫЙ ЧЕК***** [09:50:23]line ÐЗС 39 [09:50:23]line Партнер нефть [09:50:23]line 02508201610067 [09:50:23]line КаÑÑир : ОваÑбекова Л. [09:50:23]line Счет N : (1)141120 [09:50:23]line 13.08.2024 09:09 [09:50:23]line ПРОДÐЖР[09:50:23]line ТРК (МРК, ГÐК): 33 [09:50:23]line Вид ГСМ : 2710124500 [09:50:23]line Ðи-95-К-5 [09:50:23]line 15.000 x 73.90 [09:50:23]line ИТОГ: 1108.50 [09:50:23]line Тип оплаты: ТехнологичеÑкий отпуÑк: [09:50:23]line ______________________ [09:50:23]line (подпиÑÑŒ) [09:50:23]written 0, free lines is 4095 [09:50:23]Write to MH i2c: 01 00 00 2C 06 32 [09:50:23]Write i2c OK [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: 01 [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: 01 07 00 [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: 01 07 00 2C 06 00 00 00 00 00 2C 0E 73 [09:50:23]RasterBufferAndPrint [09:50:23]line [09:50:23]line [09:50:23]line [09:50:23]line [09:50:23]line [09:50:23]written 0, free lines is 3630 [09:50:23]MH_Cut [09:50:23]Write to MH i2c: D1 01 00 33 06 01 0B [09:50:23]Write i2c OK [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: D1 [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: D1 01 00 [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: D1 01 00 33 06 00 0A [09:50:23]Write to MH i2c: 01 00 00 34 06 3A [09:50:23]Write i2c OK [09:50:23]MH_I2C_Read... [09:50:24]*** Cut start [09:50:24]*** Purtial cut [09:50:24]*** CUTSNS_PIN = 0 [09:50:24]*** Stage 1: CUTSNS_PIN = 1 [09:50:26]OFD Sender: No OFD packet to send [09:50:26]Read from MH i2c: 01 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: 01 07 00 [09:50:26]MH_I2C_Read... [09:50:26]*** Stop cut motor [09:50:26]*** Cut end [09:50:26]Read from MH i2c: 01 07 00 34 06 00 00 00 00 00 FF 0F 4F [09:50:26]process_action print_text done [09:50:26]requested_data is exist [09:50:26]produce_requested_data [09:50:26]requested_item fm.sn is exist - process it [09:50:26]wFMCommunicate request_size=4 [09:50:26]MH_SAM_APDU [09:50:26]CAPDU: 80 11 00 00 [09:50:26]Write to MH i2c: E2 08 00 35 06 80 11 00 00 00 00 00 00 B5 [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:26]Read from MH i2c: E2 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 17 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 17 00 35 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 0A [09:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:50:26]wFMCommunicate OK [09:50:26]requested_item fd.num is exist - process it [09:50:26]SAM_PROTO_GetFieldsCounters [09:50:26]wFMCommunicate request_size=4 [09:50:26]MH_SAM_APDU [09:50:26]CAPDU: 80 13 00 00 [09:50:26]Write to MH i2c: E2 08 00 36 06 80 13 00 00 00 00 00 00 B8 [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:26]Read from MH i2c: E2 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 62 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 62 00 36 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 07 14 01 00 0E 04 04 00 D2 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 FA [09: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 07 14 01 00 0E 04 04 00 D2 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 [09:50:26]wFMCommunicate OK [09:50:26]SAM_PROTO_GetFieldsCounters done [09:50:26]requested_item shift.num is exist - process it [09:50:26]requested_item shift.opened is exist - process it [09:50:26]req_shift_opened [09:50:26]FM_GetShiftState [09:50:26]SAM_PROTO_GetShiftState [09:50:26]wFMCommunicate request_size=4 [09:50:26]MH_SAM_APDU [09:50:26]CAPDU: 80 13 01 00 [09:50:26]Write to MH i2c: E2 08 00 37 06 80 13 01 00 00 00 00 00 BA [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:26]Read from MH i2c: E2 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 0E 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 0E 00 37 06 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 29 [09:50:26]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [09:50:26]wFMCommunicate OK [09:50:26]SAM_PROTO_GetShiftState done [09:50:26]FM_GetShiftState done [09:50:26]req_shift_opened done [09:50:26]requested_item shift.open_date is exist - process it [09:50:26]req_shift_open_date [09:50:26]req_shift_open_date done [09:50:26]produce_requested_data done [09:50:26]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70663,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [09:50:26]process_action_free print_text [09:50:26]json_value_free [09:50:26]json_value_free done [09:50:26]process_json_proto returns [09:50:26]Send response to host [09:50:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70663,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [09:50:26]free response buf [09:50:26]execute_script done [09:50:26]execute_script returns [09:50:26]free content buf [09:50:26]Sock 7.Close socket [09:50:26]Sock 7.Thread stoped [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:06]int [09:52:06]Write to MH i2c: 01 00 00 38 06 3E [09:52:06]*** FLAG_PRN_KEY set [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: 01 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: 01 07 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: 01 07 00 38 06 00 08 00 00 00 FF 0F 5B [09:52:06]state=0 [09:52:06]Key pressed [09:52:06]Feed [09:52:06]Write to MH i2c: D8 00 00 39 06 16 [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: D8 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: D8 01 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: D8 01 00 39 06 00 17 [09:52:06]int [09:52:06]Write to MH i2c: 01 00 00 3A 06 40 [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: 01 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: 01 07 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: 01 07 00 3A 06 00 48 00 00 00 3C 00 CB [09:52:06]state=2 [09:52:06]Key pressed [09:52:06]int [09:52:06]Write to MH i2c: 01 00 00 3B 06 41 [09:52:06]*** FLAG_PRN_KEY reset [09:52:06]Write i2c OK [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: 01 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: 01 07 00 [09:52:06]MH_I2C_Read... [09:52:06]Read from MH i2c: 01 07 00 3B 06 00 00 00 00 00 F6 0F 4D [09:52:06]state=2 [09:52:06]Stop feed [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:44]accept exits with 9 [09:52:44]New connection [09:52:44]New thread 3067358564 created [09:52:44]Thread 3067215204 joined [09:52:44]Waiting for new connection... [09:52:44] Sock 9.Parse request [09:52:44]Sock 9.Check first char [09:52:44]Sock 9.First char is OK [09:52:44]request: POST /json_proto HTTP/1.0 [09:52:44]Method: POST [09:52:44]URL: /json_proto [09:52:44]Method is POST - this is cgi request [09:52:44]url: /json_proto [09:52:44]query_string will be loaded in cgi processing [09:52:44]execute_cgi json_proto POST (null) [09:52:44]execute_cgi path=json_proto method=POST [09:52:44]POST find Content-Length [09:52:44]Host: 172.17.58.67:8080 [09:52:44]Content-Length: 1202 [09:52:44]Content-Type: application/json [09:52:44] [09:52:44]POST finish read [09:52:44]Found Content-Length = 1202 [09:52: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141122\u000A13.08.2024 09:12\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 15.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 1108.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:44]execute_script... [09:52: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141122\u000A13.08.2024 09:12\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 15.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 1108.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:44]POST & json_proto [09:52:44]process_json_proto [09:52:44]json parsed OK: [09:52:44]protocol is kg_v1.0 [09:52:44]action value=print_text [09:52:44]process_action print_text [09:52:44]cmd_print_text [09:52:44]ExternCall_PrintAddStr [09:52:44]wPrintStart [09:52:44]Write to MH i2c: 01 00 00 3C 06 42 [09:52:44]Write i2c OK [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: 01 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: 01 07 00 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: 01 07 00 3C 06 00 00 00 00 00 FF 0F 57 [09:52:44]RasterBufferAndPrint [09:52:44]line *****ТОВÐРÐЫЙ ЧЕК***** [09:52:44]line ÐЗС 39 [09:52:44]line Партнер нефть [09:52:44]line 02508201610067 [09:52:44]line КаÑÑир : ОваÑбекова Л. [09:52:44]line Счет N : (1)141122 [09:52:44]line 13.08.2024 09:12 [09:52:44]line ПРОДÐЖР[09:52:44]line ТРК (МРК, ГÐК): 43 [09:52:44]line Вид ГСМ : 2710124500 [09:52:44]line Ðи-95-К-5 [09:52:44]line 15.000 x 73.90 [09:52:44]line ИТОГ: 1108.50 [09:52:44]line Тип оплаты: ТехнологичеÑкий отпуÑк: [09:52:44]line ______________________ [09:52:44]line (подпиÑÑŒ) [09:52:44]written 0, free lines is 4095 [09:52:45]Write to MH i2c: 01 00 00 4F 06 55 [09:52:45]Write i2c OK [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: 01 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: 01 07 00 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: 01 07 00 4F 06 00 00 00 00 00 2C 0E 96 [09:52:45]RasterBufferAndPrint [09:52:45]line [09:52:45]line [09:52:45]line [09:52:45]line [09:52:45]line [09:52:45]written 0, free lines is 3629 [09:52:45]MH_Cut [09:52:45]Write to MH i2c: D1 01 00 56 06 01 2E [09:52:45]Write i2c OK [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: D1 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: D1 01 00 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: D1 01 00 56 06 00 2D [09:52:45]Write to MH i2c: 01 00 00 57 06 5D [09:52:45]Write i2c OK [09:52:45]MH_I2C_Read... [09:52:45]*** Cut start [09:52:45]*** Purtial cut [09:52:45]*** Stage 1: CUTSNS_PIN = 1 [09:52:45]Read from MH i2c: 01 [09:52:45]MH_I2C_Read... [09:52:45]*** Stop cut motor [09:52:45]*** Cut end [09:52:45]Read from MH i2c: 01 07 00 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: 01 07 00 57 06 00 00 00 00 00 FF 0F 72 [09:52:45]process_action print_text done [09:52:45]requested_data is exist [09:52:45]produce_requested_data [09:52:45]requested_item fm.sn is exist - process it [09:52:45]wFMCommunicate request_size=4 [09:52:45]MH_SAM_APDU [09:52:45]CAPDU: 80 11 00 00 [09:52:45]Write to MH i2c: E2 08 00 58 06 80 11 00 00 00 00 00 00 D8 [09:52:45]Write i2c OK [09:52:45]MH_I2C_Read... [09:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:45]Read from MH i2c: E2 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 17 00 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 17 00 58 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 2D [09:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:52:45]wFMCommunicate OK [09:52:45]requested_item fd.num is exist - process it [09:52:45]SAM_PROTO_GetFieldsCounters [09:52:45]wFMCommunicate request_size=4 [09:52:45]MH_SAM_APDU [09:52:45]CAPDU: 80 13 00 00 [09:52:45]Write to MH i2c: E2 08 00 59 06 80 13 00 00 00 00 00 00 DB [09:52:45]Write i2c OK [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 [09:52:45]MH_I2C_Read... [09:52:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:45]Read from MH i2c: E2 62 00 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: E2 62 00 59 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 07 14 01 00 0E 04 04 00 D2 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 1D [09:52:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 07 14 01 00 0E 04 04 00 D2 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 [09:52:45]wFMCommunicate OK [09:52:45]SAM_PROTO_GetFieldsCounters done [09:52:45]requested_item shift.num is exist - process it [09:52:45]requested_item shift.opened is exist - process it [09:52:45]req_shift_opened [09:52:45]FM_GetShiftState [09:52:45]SAM_PROTO_GetShiftState [09:52:45]wFMCommunicate request_size=4 [09:52:45]MH_SAM_APDU [09:52:45]CAPDU: 80 13 01 00 [09:52:45]Write to MH i2c: E2 08 00 5A 06 80 13 01 00 00 00 00 00 DD [09:52:45]Write i2c OK [09:52:45]MH_I2C_Read... [09:52:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:46]Read from MH i2c: E2 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: E2 0E 00 [09:52:46]MH_I2C_Read... [09:52:46]Read from MH i2c: E2 0E 00 5A 06 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 4C [09:52:46]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [09:52:46]wFMCommunicate OK [09:52:46]SAM_PROTO_GetShiftState done [09:52:46]FM_GetShiftState done [09:52:46]req_shift_opened done [09:52:46]requested_item shift.open_date is exist - process it [09:52:46]req_shift_open_date [09:52:46]req_shift_open_date done [09:52:46]produce_requested_data done [09:52:46]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70663,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [09:52:46]process_action_free print_text [09:52:46]json_value_free [09:52:46]json_value_free done [09:52:46]process_json_proto returns [09:52:46]Send response to host [09:52:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70663,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [09:52:46]free response buf [09:52:46]execute_script done [09:52:46]execute_script returns [09:52:46]free content buf [09:52:46]Sock 9.Close socket [09:52:46]Sock 9.Thread stoped [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:17]int [09:53:17]Write to MH i2c: 01 00 00 5B 06 61 [09:53:17]*** FLAG_PRN_KEY set [09:53:17]Write i2c OK [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: 01 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: 01 07 00 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: 01 07 00 5B 06 00 08 00 00 00 FF 0F 7E [09:53:17]state=0 [09:53:17]Key pressed [09:53:17]Feed [09:53:17]Write to MH i2c: D8 00 00 5C 06 39 [09:53:17]Write i2c OK [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: D8 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: D8 01 00 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: D8 01 00 5C 06 00 3A [09:53:17]int [09:53:17]Write to MH i2c: 01 00 00 5D 06 63 [09:53:17]Write i2c OK [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: 01 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: 01 07 00 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: 01 07 00 5D 06 00 48 00 00 00 3C 00 EE [09:53:17]state=2 [09:53:17]Key pressed [09:53:18]int [09:53:18]Write to MH i2c: 01 00 00 5E 06 64 [09:53:18]*** FLAG_PRN_KEY reset [09:53:18]Write i2c OK [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: 01 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: 01 07 00 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: 01 07 00 5E 06 00 00 00 00 00 F6 0F 70 [09:53:18]state=2 [09:53:18]Stop feed [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:35]accept exits with 7 [09:55:35]New connection [09:55:35]New thread 3067215204 created [09:55:35]Thread 3067358564 joined [09:55:35]Waiting for new connection... [09:55:35] Sock 7.Parse request [09:55:35]Sock 7.Check first char [09:55:35]Sock 7.First char is OK [09:55:35]request: POST /json_proto HTTP/1.0 [09:55:35]Method: POST [09:55:35]URL: /json_proto [09:55:35]Method is POST - this is cgi request [09:55:35]url: /json_proto [09:55:35]query_string will be loaded in cgi processing [09:55:35]execute_cgi json_proto POST (null) [09:55:35]execute_cgi path=json_proto method=POST [09:55:35]POST find Content-Length [09:55:35]Host: 172.17.58.67:8080 [09:55:35]Content-Length: 1207 [09:55:35]Content-Type: application/json [09:55:35] [09:55:35]POST finish read [09:55:35]Found Content-Length = 1207 [09:55:35]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141121\u000A13.08.2024 09:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 2636.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\u000A53207\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:35]execute_script... [09:55:35]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141121\u000A13.08.2024 09:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 2636.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\u000A53207\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:35]POST & json_proto [09:55:35]process_json_proto [09:55:35]json parsed OK: [09:55:35]protocol is kg_v1.0 [09:55:35]action value=print_text [09:55:35]process_action print_text [09:55:35]cmd_print_text [09:55:35]ExternCall_PrintAddStr [09:55:35]wPrintStart [09:55:35]Write to MH i2c: 01 00 00 5F 06 65 [09:55:35]Write i2c OK [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: 01 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: 01 07 00 [09:55:35]MH_I2C_Read... [09:55:35]Read from MH i2c: 01 07 00 5F 06 00 00 00 00 00 FF 0F 7A [09:55:35]RasterBufferAndPrint [09:55:35]line *****ТОВÐРÐЫЙ ЧЕК***** [09:55:35]line ÐЗС 39 [09:55:35]line Партнер нефть [09:55:35]line 02508201610067 [09:55:35]line КаÑÑир : ОваÑбекова Л. [09:55:35]line Счет N : (1)141121 [09:55:35]line 13.08.2024 09:14 [09:55:35]line ПРОДÐЖР[09:55:35]line ТРК (МРК, ГÐК): 31 [09:55:35]line Вид ГСМ : 2710124130 [09:55:35]line Ðи-92-К-5 [09:55:35]line 40.000 x 65.90 [09:55:35]line ИТОГ: 2636.00 [09:55:35]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [09:55:35]line 53207 [09:55:35]line ______________________ [09:55:35]line (подпиÑÑŒ) [09:55:35]written 0, free lines is 4095 [09:55:36]Write to MH i2c: 01 00 00 73 06 79 [09:55:36]Write i2c OK [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: 01 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: 01 07 00 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: 01 07 00 73 06 00 00 00 00 00 12 0E A0 [09:55:36]RasterBufferAndPrint [09:55:36]line [09:55:36]line [09:55:36]line [09:55:36]line [09:55:36]line [09:55:36]written 0, free lines is 3604 [09:55:36]MH_Cut [09:55:36]Write to MH i2c: D1 01 00 7A 06 01 52 [09:55:36]Write i2c OK [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: D1 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: D1 01 00 [09:55:36]MH_I2C_Read... [09:55:36]Read from MH i2c: D1 01 00 7A 06 00 51 [09:55:36]Write to MH i2c: 01 00 00 7B 06 81 [09:55:36]Write i2c OK [09:55:36]MH_I2C_Read... [09:55:36]OFD Sender: No OFD packet to send [09:55:36]*** Cut start [09:55:36]*** Purtial cut [09:55:36]*** CUTSNS_PIN = 0 [09:55:36]*** Stage 1: CUTSNS_PIN = 1 [09:55:38]Read from MH i2c: 01 [09:55:38]MH_I2C_Read... [09:55:38]*** Stop cut motor [09:55:38]*** Cut end [09:55:38]Read from MH i2c: 01 07 00 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: 01 07 00 7B 06 00 00 00 00 00 FF 0F 96 [09:55:38]process_action print_text done [09:55:38]requested_data is exist [09:55:38]produce_requested_data [09:55:38]requested_item fm.sn is exist - process it [09:55:38]wFMCommunicate request_size=4 [09:55:38]MH_SAM_APDU [09:55:38]CAPDU: 80 11 00 00 [09:55:38]Write to MH i2c: E2 08 00 7C 06 80 11 00 00 00 00 00 00 FC [09:55:38]Write i2c OK [09:55:38]MH_I2C_Read... [09:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:38]Read from MH i2c: E2 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 17 00 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 17 00 7C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 51 [09:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:55:38]wFMCommunicate OK [09:55:38]requested_item fd.num is exist - process it [09:55:38]SAM_PROTO_GetFieldsCounters [09:55:38]wFMCommunicate request_size=4 [09:55:38]MH_SAM_APDU [09:55:38]CAPDU: 80 13 00 00 [09:55:38]Write to MH i2c: E2 08 00 7D 06 80 13 00 00 00 00 00 00 FF [09:55:38]Write i2c OK [09:55:38]MH_I2C_Read... [09:55:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:38]Read from MH i2c: E2 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 62 00 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 62 00 7D 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 07 14 01 00 0E 04 04 00 D2 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 41 [09:55: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 07 14 01 00 0E 04 04 00 D2 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 [09:55:38]wFMCommunicate OK [09:55:38]SAM_PROTO_GetFieldsCounters done [09:55:38]requested_item shift.num is exist - process it [09:55:38]requested_item shift.opened is exist - process it [09:55:38]req_shift_opened [09:55:38]FM_GetShiftState [09:55:38]SAM_PROTO_GetShiftState [09:55:38]wFMCommunicate request_size=4 [09:55:38]MH_SAM_APDU [09:55:38]CAPDU: 80 13 01 00 [09:55:38]Write to MH i2c: E2 08 00 7E 06 80 13 01 00 00 00 00 00 01 [09:55:38]Write i2c OK [09:55:38]MH_I2C_Read... [09:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:38]Read from MH i2c: E2 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 0E 00 [09:55:38]MH_I2C_Read... [09:55:38]Read from MH i2c: E2 0E 00 7E 06 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 70 [09:55:38]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [09:55:38]wFMCommunicate OK [09:55:38]SAM_PROTO_GetShiftState done [09:55:38]FM_GetShiftState done [09:55:38]req_shift_opened done [09:55:38]requested_item shift.open_date is exist - process it [09:55:38]req_shift_open_date [09:55:38]req_shift_open_date done [09:55:38]produce_requested_data done [09:55:38]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70663,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [09:55:38]process_action_free print_text [09:55:38]json_value_free [09:55:38]json_value_free done [09:55:38]process_json_proto returns [09:55:38]Send response to host [09:55:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70663,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [09:55:38]free response buf [09:55:38]execute_script done [09:55:38]execute_script returns [09:55:38]free content buf [09:55:38]Sock 7.Close socket [09:55:38]Sock 7.Thread stoped [09:55:41]int [09:55:41]Write to MH i2c: 01 00 00 7F 06 85 [09:55:41]*** FLAG_PRN_KEY set [09:55:41]Write i2c OK [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: 01 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: 01 07 00 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: 01 07 00 7F 06 00 08 00 00 00 FF 0F A2 [09:55:41]state=0 [09:55:41]Key pressed [09:55:41]Feed [09:55:41]Write to MH i2c: D8 00 00 80 06 5D [09:55:41]Write i2c OK [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: D8 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: D8 01 00 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: D8 01 00 80 06 00 5E [09:55:41]int [09:55:41]Write to MH i2c: 01 00 00 81 06 87 [09:55:41]Write i2c OK [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: 01 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: 01 07 00 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: 01 07 00 81 06 00 48 00 00 00 3C 00 12 [09:55:41]state=2 [09:55:41]Key pressed [09:55:41]int [09:55:41]Write to MH i2c: 01 00 00 82 06 88 [09:55:41]*** FLAG_PRN_KEY reset [09:55:41]Write i2c OK [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: 01 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: 01 07 00 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: 01 07 00 82 06 00 00 00 00 00 F6 0F 94 [09:55:41]state=2 [09:55:41]Stop feed [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]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]OFD Sender: No OFD packet to send [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:01]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:56]accept exits with 9 [10:09:56]New connection [10:09:56]New thread 3067358564 created [10:09:56]Thread 3067215204 joined [10:09:56]Waiting for new connection... [10:09:56] Sock 9.Parse request [10:09:56]Sock 9.Check first char [10:09:56]Sock 9.First char is OK [10:09:56]request: POST /json_proto HTTP/1.0 [10:09:56]Method: POST [10:09:56]URL: /json_proto [10:09:56]Method is POST - this is cgi request [10:09:56]url: /json_proto [10:09:56]query_string will be loaded in cgi processing [10:09:56]execute_cgi json_proto POST (null) [10:09:56]execute_cgi path=json_proto method=POST [10:09:56]POST find Content-Length [10:09:56]Host: 172.17.58.67:8080 [10:09:56]Content-Length: 677 [10:09:56]Content-Type: application/json [10:09:56] [10:09:56]POST finish read [10:09:56]Found Content-Length = 677 [10:09:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "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:09:56]execute_script... [10:09: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)141124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "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:09:56]POST & json_proto [10:09:56]process_json_proto [10:09:56]json parsed OK: [10:09:56]protocol is kg_v1.0 [10:09:56]action value=close_receipt [10:09:56]process_action close_receipt [10:09:56]cmd_close_receipt [10:09:56]MH_GetDate [10:09:56]Write to MH i2c: F0 00 00 83 06 78 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: F0 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: F0 09 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: F0 09 00 83 06 00 F7 30 BB 66 94 51 63 64 75 [10:09:56]GetLastDocTimeStamp 1723540678 [10:09:56]current date 1723543799 [10:09:56]FM_GetShiftState [10:09:56]SAM_PROTO_GetShiftState [10:09:56]wFMCommunicate request_size=4 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 13 01 00 [10:09:56]Write to MH i2c: E2 08 00 84 06 80 13 01 00 00 00 00 00 07 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 0E 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 0E 00 84 06 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 76 [10:09:56]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [10:09:56]wFMCommunicate OK [10:09:56]SAM_PROTO_GetShiftState done [10:09:56]FM_GetShiftState done [10:09:56]opened in 1723509656 [10:09:56]opened+sec_in_day 1723596056 [10:09:56]quantity*price = 50018 [10:09:56]sum+1 = 50019 [10:09:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.18 ИТОГО: 500.00 ВнеÑено: 500.00 СДÐЧÐ: 0.00 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 18 13.08.2024 10:09 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70664 ФПД: 51058503129026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T100959&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70664&fm=51058503129026&tin=02508201610067®Number=0000000000090913&sum=50000 [10:09:58]StoreToDocumentArchive [10:09:58]shift 466 fd 70664 [10:09:58]save to /storage/0466/doc_00070664 [10:09:58]save last doc name /storage/0466/doc_00070664 to /storage/kkm_last_doc_name [10:09:58]save OK [10:09:58]Clear old archive folders... [10:09:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:58]tlvbuf is 017E4DB0 [10:09:58]SAM_PROTO_ClearQueue [10:09:58]wFMCommunicate request_size=4 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 09 00 00 [10:09:58]Write to MH i2c: E2 08 00 91 06 80 09 00 00 00 00 00 00 09 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 03 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 03 00 91 06 00 90 00 0B [10:09:58]RAPDU: 90 00 [10:09:58]wFMCommunicate OK [10:09:58]SAM_PROTO_ClearQueue done [10:09:58]KKMCreateOFDPacket [10:09:58]OFDProtocolAddRootSTLVToBuf [10:09:58]FM_MakeSignedData [10:09:58]FM_MakeSignedData [10:09:58]SAM_PROTO_SignData [10:09:58]wFMCommunicate request_size=4 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 0D 01 02 [10:09:58]Write to MH i2c: E2 08 00 92 06 80 0D 01 02 00 00 00 00 11 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 03 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 03 00 92 06 00 90 00 0C [10:09:58]RAPDU: 90 00 [10:09:58]wFMCommunicate OK [10:09:58]wFMCommunicate request_size=255 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 12 00 00 00 F4 03 04 00 F7 30 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 08 14 01 00 35 04 06 00 2E [10:09:58]Write to MH i2c: E2 02 01 93 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 12 00 00 00 F4 03 04 00 F7 30 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 08 14 01 00 35 04 06 00 2E 00 00 07 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 03 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 03 00 93 06 00 90 00 0D [10:09:58]RAPDU: 90 00 [10:09:58]wFMCommunicate OK [10:09:58]wFMCommunicate request_size=10 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 0D 02 02 05 6F FB F1 17 C2 [10:09:58]Write to MH i2c: E2 0D 00 94 06 80 0D 02 02 05 00 6F FB F1 17 C2 00 00 52 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 03 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 03 00 94 06 00 90 00 0E [10:09:58]RAPDU: 90 00 [10:09:58]wFMCommunicate OK [10:09:58]wFMCommunicate request_size=4 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 0D 03 02 [10:09:58]Write to MH i2c: E2 08 00 95 06 80 0D 03 02 00 00 00 00 16 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 0B 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 0B 00 95 06 00 26 C3 26 A5 2C 6B 36 AE 90 00 46 [10:09:58]RAPDU: 26 C3 26 A5 2C 6B 36 AE 90 00 [10:09:58]wFMCommunicate OK [10:09:58]SAM_PROTO_SignData done [10:09:58]FM_MakeSignedData done [10:09:58]CreateOFDProtocolMessage [10:09:58]wFMCommunicate request_size=4 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 11 00 00 [10:09:58]Write to MH i2c: E2 08 00 96 06 80 11 00 00 00 00 00 00 16 [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 17 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 17 00 96 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 6B [10:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:09:58]wFMCommunicate OK [10:09:58]CreateOFDProtocolMessage done [10:09:58]OFDSenderStorePacket 70664 [10:09:58]StoreOFDPacket docnum=70664 [10:09:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 16 C7 07 01 EF 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 12 00 00 00 F4 03 04 00 F7 30 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 08 14 01 00 35 04 06 00 2E 6F FB F1 17 C2 26 C3 26 A5 2C 6B 36 AE [10:09:58]CheckFolder [10:09:58]dirname=/storage/ofd_packets [10:09:58]CheckFolder done [10:09:58]ProducePacketName [10:09:58]name=ofd_packets/00070664 [10:09:58]NVStorageSaveData ofd_packets/00070664 [10:09:58]File name is /storage/ofd_packets/00070664 [10:09:58]Write 301 bytes [10:09:58]NVStorageSaveData done [10:09:58]OFDSenderStorePacket done [10:09:58]KKMCreateOFDPacket done [10:09:58]NVStorageSaveData kkm_last_timestamp [10:09:58]File name is /storage/kkm_last_timestamp [10:09:58]Write 4 bytes [10:09:58]NVStorageSaveData done [10:09:58]OFD Sender: Processing packet 70664 [packets to send 67, broken 66] [10:09:58]ProducePacketName [10:09:58]name=ofd_packets/00070664 [10:09:58]OFD Sender: To server: ‡•öpG, [10:09:58]CommunicateWithHost lk.salyk.kg:30040 [10:09:58]ConnectInit lk.salyk.kg [10:09:58]ExternCall_PrintAddStr [10:09:58]wPrintStart [10:09:58]Write to MH i2c: 01 00 00 97 06 9D [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: 01 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: 01 07 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: 01 07 00 97 06 00 00 00 00 00 FF 0F B2 [10:09:58]RasterBufferAndPrint [10:09:58]line Счет N : (1)141124 [10:09:58]line ИÐÐ: 02508201610067 [10:09:58]line Контрольно-КаÑÑовый Чек [10:09:58]line ПРОДÐЖР[10:09:58]line ТРК (МРК, ГÐК) : 31 [10:09:58]line Товар: 2710124130 [10:09:58]line Ðи-92-К-5 [10:09:58]line 7.590 * 65.90 [10:09:58]line = 500.18 [10:09:58]line ÐДС 12% ÐСП 1% [10:09:58]line > о реализуемом товаре [10:09:58]line ОКРУГЛЕÐИЕ: -0.18 [10:09:58]line ИТОГО: 500.00 [10:09:58]line ВнеÑено: 500.00 [10:09:58]line СДÐЧÐ: 0.00 [10:09:58]line ÐСП 1% : 4.43 [10:09:58]line ÐДС 12% : 53.12 [10:09:58]line Ðаличными: 500.00 [10:09:58]line Безнал.: 0.00 [10:09:58]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [10:09:58]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [10:09:58]line СÐО: Общий режим [10:09:58]line Чек 18 13.08.2024 10:09 [10:09:58]line Смена: 466 ФФД: 1.0 [10:09:58]line ЗÐМ: 0300000140 [10:09:58]line РÐМ: 0000000000090913 [10:09:58]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:09:58]line ФМ: 0000000000874915 [10:09:58]line ФД: 70664 [10:09:58]line ФПД: 51058503129026 [10:09:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T100959&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70664&fm=51058503129026&tin=02508201610067®Number=0000000000090913&sum=50000 [10:09:58]Connected sock=11 [10:09: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 39 31 35 0F 01 00 00 16 C7 07 01 EF 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 12 00 00 00 F4 03 04 00 F7 30 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 08 14 01 00 35 04 06 00 2E 6F FB F1 17 C2 26 C3 26 A5 2C 6B 36 AE [10:09:58]written 0, free lines is 4095 [10:09:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 26 D6 47 00 15 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 08 14 01 00 F4 03 04 00 E2 D7 BA 66 B6 04 01 00 00 23 BA C5 59 F5 30 7C A4 [10:09:59]CommunicateWithHost err = 0 [10:09:59]CheckOFDResponse [10:09:59]1017 (14) - 77093643461234 [10:09:59]1041 (16) - 0000000000874915 [10:09:59]1040 (4) - 70664 [10:09:59]1012 (4) - 13.08.2024 03:49 [10:09:59]1206 (1) - 0 [10:09:59]OFD Sender: Remove packet 70664 [10:09:59]ProducePacketName [10:09:59]name=ofd_packets/00070664 [10:09:59]NVStorageDeleteData [10:09:59]Write to MH i2c: 01 00 00 C2 06 C8 [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: 01 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: 01 07 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: 01 07 00 C2 06 00 00 00 00 00 DD 0C B8 [10:09:59]RasterBufferAndPrint [10:09:59]line [10:09:59]line [10:09:59]line [10:09:59]line [10:09:59]line [10:09:59]written 0, free lines is 3302 [10:09:59]MH_Cut [10:09:59]Write to MH i2c: D1 01 00 C9 06 01 A1 [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: D1 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: D1 01 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: D1 01 00 C9 06 00 A0 [10:09:59]Write to MH i2c: 01 00 00 CA 06 D0 [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]OFD Sender: No OFD packet to send [10:10:00]*** Cut start [10:10:00]*** Purtial cut [10:10:00]*** Stage 1: CUTSNS_PIN = 1 [10:10:00]Read from MH i2c: 01 [10:10:00]MH_I2C_Read... [10:10:00]*** Stop cut motor [10:10:00]*** Cut end [10:10:00]Read from MH i2c: 01 07 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: 01 07 00 CA 06 00 00 00 00 00 FF 0F E5 [10:10:00]process_action close_receipt done [10:10:00]requested_data is exist [10:10:00]produce_requested_data [10:10:00]requested_item fm.sn is exist - process it [10:10:00]wFMCommunicate request_size=4 [10:10:00]MH_SAM_APDU [10:10:00]CAPDU: 80 11 00 00 [10:10:00]Write to MH i2c: E2 08 00 CB 06 80 11 00 00 00 00 00 00 4B [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:00]Read from MH i2c: E2 17 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 17 00 CB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 A0 [10:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:10:00]wFMCommunicate OK [10:10:00]requested_item fd.num is exist - process it [10:10:00]SAM_PROTO_GetFieldsCounters [10:10:00]wFMCommunicate request_size=4 [10:10:00]MH_SAM_APDU [10:10:00]CAPDU: 80 13 00 00 [10:10:00]Write to MH i2c: E2 08 00 CC 06 80 13 00 00 00 00 00 00 4E [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 62 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 62 00 CC 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 08 14 01 00 0E 04 04 00 D2 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 94 [10:10: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 08 14 01 00 0E 04 04 00 D2 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 [10:10:00]wFMCommunicate OK [10:10:00]SAM_PROTO_GetFieldsCounters done [10:10:00]requested_item shift.num is exist - process it [10:10:00]requested_item shift.opened is exist - process it [10:10:00]req_shift_opened [10:10:00]FM_GetShiftState [10:10:00]SAM_PROTO_GetShiftState [10:10:00]wFMCommunicate request_size=4 [10:10:00]MH_SAM_APDU [10:10:00]CAPDU: 80 13 01 00 [10:10:00]Write to MH i2c: E2 08 00 CD 06 80 13 01 00 00 00 00 00 50 [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 0E 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 0E 00 CD 06 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 BF [10:10:00]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [10:10:00]wFMCommunicate OK [10:10:00]SAM_PROTO_GetShiftState done [10:10:00]FM_GetShiftState done [10:10:00]req_shift_opened done [10:10:00]requested_item shift.open_date is exist - process it [10:10:00]req_shift_open_date [10:10:00]req_shift_open_date done [10:10:00]produce_requested_data done [10:10:00]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70664,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [10:10:00]process_action_free close_receipt [10:10:00]json_value_free [10:10:00]json_value_free done [10:10:00]process_json_proto returns [10:10:00]Send response to host [10:10:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70664,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [10:10:00]free response buf [10:10:00]execute_script done [10:10:00]execute_script returns [10:10:00]free content buf [10:10:00]Sock 9.Close socket [10:10:00]Sock 9.Thread stoped [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:36]int [10:10:36]Write to MH i2c: 01 00 00 CE 06 D4 [10:10:36]*** FLAG_PRN_KEY set [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: 01 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: 01 07 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: 01 07 00 CE 06 00 08 00 00 00 FF 0F F1 [10:10:36]state=0 [10:10:36]Key pressed [10:10:36]Feed [10:10:36]Write to MH i2c: D8 00 00 CF 06 AC [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: D8 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: D8 01 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: D8 01 00 CF 06 00 AD [10:10:36]int [10:10:36]Write to MH i2c: 01 00 00 D0 06 D6 [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: 01 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: 01 07 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: 01 07 00 D0 06 00 48 00 00 00 3C 00 61 [10:10:36]state=2 [10:10:36]Key pressed [10:10:37]int [10:10:37]Write to MH i2c: 01 00 00 D1 06 D7 [10:10:37]*** FLAG_PRN_KEY reset [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 07 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 07 00 D1 06 00 00 00 00 00 F6 0F E3 [10:10:37]state=2 [10:10:37]Stop feed [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:22]accept exits with 7 [10:11:22]New connection [10:11:22]New thread 3067215204 created [10:11:22]Thread 3067358564 joined [10:11:22]Waiting for new connection... [10:11:22] Sock 7.Parse request [10:11:22]Sock 7.Check first char [10:11:22]Sock 7.First char is OK [10:11:22]request: POST /json_proto HTTP/1.0 [10:11:22]Method: POST [10:11:22]URL: /json_proto [10:11:22]Method is POST - this is cgi request [10:11:22]url: /json_proto [10:11:22]query_string will be loaded in cgi processing [10:11:22]execute_cgi json_proto POST (null) [10:11:22]execute_cgi path=json_proto method=POST [10:11:22]POST find Content-Length [10:11:22]Host: 172.17.58.67:8080 [10:11:22]Content-Length: 1207 [10:11:22]Content-Type: application/json [10:11:22] [10:11:22]POST finish read [10:11:22]Found Content-Length = 1207 [10:11:22]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141123\u000A13.08.2024 09:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.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\u000A53443\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:22]execute_script... [10:11:22]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141123\u000A13.08.2024 09:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.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\u000A53443\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:22]POST & json_proto [10:11:22]process_json_proto [10:11:22]json parsed OK: [10:11:22]protocol is kg_v1.0 [10:11:22]action value=print_text [10:11:22]process_action print_text [10:11:22]cmd_print_text [10:11:22]ExternCall_PrintAddStr [10:11:22]wPrintStart [10:11:22]Write to MH i2c: 01 00 00 D2 06 D8 [10:11:22]Write i2c OK [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: 01 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: 01 07 00 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: 01 07 00 D2 06 00 00 00 00 00 FF 0F ED [10:11:22]RasterBufferAndPrint [10:11:22]line *****ТОВÐРÐЫЙ ЧЕК***** [10:11:22]line ÐЗС 39 [10:11:22]line Партнер нефть [10:11:22]line 02508201610067 [10:11:22]line КаÑÑир : ОваÑбекова Л. [10:11:22]line Счет N : (1)141123 [10:11:22]line 13.08.2024 09:30 [10:11:22]line ПРОДÐЖР[10:11:22]line ТРК (МРК, ГÐК): 41 [10:11:22]line Вид ГСМ : 2710124130 [10:11:22]line Ðи-92-К-5 [10:11:22]line 20.000 x 65.90 [10:11:22]line ИТОГ: 1318.00 [10:11:22]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [10:11:22]line 53443 [10:11:22]line ______________________ [10:11:22]line (подпиÑÑŒ) [10:11:22]written 0, free lines is 4095 [10:11:22]Write to MH i2c: 01 00 00 E6 06 EC [10:11:22]Write i2c OK [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: 01 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: 01 07 00 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: 01 07 00 E6 06 00 00 00 00 00 12 0E 13 [10:11:22]RasterBufferAndPrint [10:11:22]line [10:11:22]line [10:11:22]line [10:11:22]line [10:11:22]line [10:11:22]written 0, free lines is 3604 [10:11:22]MH_Cut [10:11:22]Write to MH i2c: D1 01 00 ED 06 01 C5 [10:11:22]Write i2c OK [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: D1 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: D1 01 00 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: D1 01 00 ED 06 00 C4 [10:11:22]Write to MH i2c: 01 00 00 EE 06 F4 [10:11:22]Write i2c OK [10:11:22]MH_I2C_Read... [10:11:22]*** Cut start [10:11:22]*** Purtial cut [10:11:22]*** CUTSNS_PIN = 0 [10:11:23]*** Stage 1: CUTSNS_PIN = 1 [10:11:24]OFD Sender: No OFD packet to send [10:11:24]Read from MH i2c: 01 [10:11:24]MH_I2C_Read... [10:11:24]*** Stop cut motor [10:11:24]*** Cut end [10:11:24]Read from MH i2c: 01 07 00 [10:11:24]MH_I2C_Read... [10:11:24]Read from MH i2c: 01 07 00 EE 06 00 00 00 00 00 FF 0F 09 [10:11:24]process_action print_text done [10:11:24]requested_data is exist [10:11:24]produce_requested_data [10:11:24]requested_item fm.sn is exist - process it [10:11:24]wFMCommunicate request_size=4 [10:11:24]MH_SAM_APDU [10:11:24]CAPDU: 80 11 00 00 [10:11:24]Write to MH i2c: E2 08 00 EF 06 80 11 00 00 00 00 00 00 6F [10:11:24]Write i2c OK [10:11:24]MH_I2C_Read... [10:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:24]Read from MH i2c: E2 [10:11:24]MH_I2C_Read... [10:11:24]Read from MH i2c: E2 17 00 [10:11:24]MH_I2C_Read... [10:11:24]Read from MH i2c: E2 17 00 EF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C4 [10:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:11:24]wFMCommunicate OK [10:11:24]requested_item fd.num is exist - process it [10:11:24]SAM_PROTO_GetFieldsCounters [10:11:24]wFMCommunicate request_size=4 [10:11:24]MH_SAM_APDU [10:11:24]CAPDU: 80 13 00 00 [10:11:24]Write to MH i2c: E2 08 00 F0 06 80 13 00 00 00 00 00 00 72 [10:11:24]Write i2c OK [10:11:24]MH_I2C_Read... [10:11:25]Read from MH i2c: E2 [10:11:25]MH_I2C_Read... [10:11:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:25]Read from MH i2c: E2 62 00 [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: E2 62 00 F0 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 08 14 01 00 0E 04 04 00 D2 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 B8 [10: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 08 14 01 00 0E 04 04 00 D2 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 [10:11:25]wFMCommunicate OK [10:11:25]SAM_PROTO_GetFieldsCounters done [10:11:25]requested_item shift.num is exist - process it [10:11:25]requested_item shift.opened is exist - process it [10:11:25]req_shift_opened [10:11:25]FM_GetShiftState [10:11:25]SAM_PROTO_GetShiftState [10:11:25]wFMCommunicate request_size=4 [10:11:25]MH_SAM_APDU [10:11:25]CAPDU: 80 13 01 00 [10:11:25]Write to MH i2c: E2 08 00 F1 06 80 13 01 00 00 00 00 00 74 [10:11:25]Write i2c OK [10:11:25]MH_I2C_Read... [10:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:25]Read from MH i2c: E2 [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: E2 0E 00 [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: E2 0E 00 F1 06 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 E3 [10:11:25]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [10:11:25]wFMCommunicate OK [10:11:25]SAM_PROTO_GetShiftState done [10:11:25]FM_GetShiftState done [10:11:25]req_shift_opened done [10:11:25]requested_item shift.open_date is exist - process it [10:11:25]req_shift_open_date [10:11:25]req_shift_open_date done [10:11:25]produce_requested_data done [10:11:25]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70664,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [10:11:25]process_action_free print_text [10:11:25]json_value_free [10:11:25]json_value_free done [10:11:25]process_json_proto returns [10:11:25]Send response to host [10:11:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70664,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [10:11:25]free response buf [10:11:25]execute_script done [10:11:25]execute_script returns [10:11:25]free content buf [10:11:25]Sock 7.Close socket [10:11:25]Sock 7.Thread stoped [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:48]int [10:11:48]Write to MH i2c: 01 00 00 F2 06 F8 [10:11:48]*** FLAG_PRN_KEY set [10:11:48]Write i2c OK [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: 01 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: 01 07 00 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: 01 07 00 F2 06 00 08 00 00 00 FF 0F 15 [10:11:48]state=0 [10:11:48]Key pressed [10:11:48]Feed [10:11:48]Write to MH i2c: D8 00 00 F3 06 D0 [10:11:48]Write i2c OK [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: D8 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: D8 01 00 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: D8 01 00 F3 06 00 D1 [10:11:48]int [10:11:48]Write to MH i2c: 01 00 00 F4 06 FA [10:11:48]Write i2c OK [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: 01 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: 01 07 00 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: 01 07 00 F4 06 00 48 00 00 00 3C 00 85 [10:11:48]state=2 [10:11:48]Key pressed [10:11:48]int [10:11:48]Write to MH i2c: 01 00 00 F5 06 FB [10:11:48]*** FLAG_PRN_KEY reset [10:11:48]Write i2c OK [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: 01 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: 01 07 00 [10:11:48]MH_I2C_Read... [10:11:48]Read from MH i2c: 01 07 00 F5 06 00 00 00 00 00 F6 0F 07 [10:11:48]state=2 [10:11:48]Stop feed [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]accept exits with 9 [10:14:59]New connection [10:14:59]New thread 3067358564 created [10:14:59]Thread 3067215204 joined [10:14:59]Waiting for new connection... [10:14:59] Sock 9.Parse request [10:14:59]Sock 9.Check first char [10:14:59]Sock 9.First char is OK [10:14:59]request: POST /json_proto HTTP/1.0 [10:14:59]Method: POST [10:14:59]URL: /json_proto [10:14:59]Method is POST - this is cgi request [10:14:59]url: /json_proto [10:14:59]query_string will be loaded in cgi processing [10:14:59]execute_cgi json_proto POST (null) [10:14:59]execute_cgi path=json_proto method=POST [10:14:59]POST find Content-Length [10:14:59]Host: 172.17.58.67:8080 [10:14:59]Content-Length: 677 [10:14:59]Content-Type: application/json [10:14:59] [10:14:59]POST finish read [10:14:59]Found Content-Length = 677 [10:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "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:14:59]execute_script... [10:14: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)141125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "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:14:59]POST & json_proto [10:14:59]process_json_proto [10:14:59]json parsed OK: [10:14:59]protocol is kg_v1.0 [10:14:59]action value=close_receipt [10:14:59]process_action close_receipt [10:14:59]cmd_close_receipt [10:14:59]MH_GetDate [10:14:59]Write to MH i2c: F0 00 00 F6 06 EB [10:14:59]Write i2c OK [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: F0 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: F0 09 00 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: F0 09 00 F6 06 00 25 32 BB 66 94 51 63 64 18 [10:14:59]GetLastDocTimeStamp 1723543799 [10:14:59]current date 1723544101 [10:14:59]FM_GetShiftState [10:14:59]SAM_PROTO_GetShiftState [10:14:59]wFMCommunicate request_size=4 [10:14:59]MH_SAM_APDU [10:14:59]CAPDU: 80 13 01 00 [10:14:59]Write to MH i2c: E2 08 00 F7 06 80 13 01 00 00 00 00 00 7A [10:14:59]Write i2c OK [10:14:59]MH_I2C_Read... [10:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:59]Read from MH i2c: E2 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: E2 0E 00 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: E2 0E 00 F7 06 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 E9 [10:14:59]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [10:14:59]wFMCommunicate OK [10:14:59]SAM_PROTO_GetShiftState done [10:14:59]FM_GetShiftState done [10:14:59]opened in 1723509656 [10:14:59]opened+sec_in_day 1723596056 [10:14:59]quantity*price = 50018 [10:14:59]sum+1 = 50019 [10:14:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.18 ИТОГО: 500.00 ВнеÑено: 500.00 СДÐЧÐ: 0.00 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 19 13.08.2024 10:15 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70665 ФПД: 207000805591073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T101501&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70665&fm=207000805591073&tin=02508201610067®Number=0000000000090913&sum=50000 [10:15:00]StoreToDocumentArchive [10:15:00]shift 466 fd 70665 [10:15:00]save to /storage/0466/doc_00070665 [10:15:00]save last doc name /storage/0466/doc_00070665 to /storage/kkm_last_doc_name [10:15:00]save OK [10:15:00]Clear old archive folders... [10:15:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:00]tlvbuf is 017ED810 [10:15:00]SAM_PROTO_ClearQueue [10:15:00]wFMCommunicate request_size=4 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 09 00 00 [10:15:00]Write to MH i2c: E2 08 00 04 07 80 09 00 00 00 00 00 00 7D [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 03 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 03 00 04 07 00 90 00 7F [10:15:00]RAPDU: 90 00 [10:15:00]wFMCommunicate OK [10:15:00]SAM_PROTO_ClearQueue done [10:15:00]KKMCreateOFDPacket [10:15:00]OFDProtocolAddRootSTLVToBuf [10:15:00]FM_MakeSignedData [10:15:00]FM_MakeSignedData [10:15:00]SAM_PROTO_SignData [10:15:00]wFMCommunicate request_size=4 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 0D 01 02 [10:15:00]Write to MH i2c: E2 08 00 05 07 80 0D 01 02 00 00 00 00 85 [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 03 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 03 00 05 07 00 90 00 80 [10:15:00]RAPDU: 90 00 [10:15:00]wFMCommunicate OK [10:15:00]wFMCommunicate request_size=255 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 25 32 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 09 14 01 00 35 04 06 00 BC [10:15:00]Write to MH i2c: E2 02 01 06 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 25 32 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 09 14 01 00 35 04 06 00 BC 00 00 3B [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 03 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 03 00 06 07 00 90 00 81 [10:15:00]RAPDU: 90 00 [10:15:00]wFMCommunicate OK [10:15:00]wFMCommunicate request_size=10 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 0D 02 02 05 44 21 7C 48 21 [10:15:00]Write to MH i2c: E2 0D 00 07 07 80 0D 02 02 05 00 44 21 7C 48 21 00 00 DC [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 03 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 03 00 07 07 00 90 00 82 [10:15:00]RAPDU: 90 00 [10:15:00]wFMCommunicate OK [10:15:00]wFMCommunicate request_size=4 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 0D 03 02 [10:15:00]Write to MH i2c: E2 08 00 08 07 80 0D 03 02 00 00 00 00 8A [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 0B 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 0B 00 08 07 00 F2 4C 43 25 3E 08 A1 6B 90 00 83 [10:15:00]RAPDU: F2 4C 43 25 3E 08 A1 6B 90 00 [10:15:00]wFMCommunicate OK [10:15:00]SAM_PROTO_SignData done [10:15:00]FM_MakeSignedData done [10:15:00]CreateOFDProtocolMessage [10:15:00]wFMCommunicate request_size=4 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 11 00 00 [10:15:00]Write to MH i2c: E2 08 00 09 07 80 11 00 00 00 00 00 00 8A [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 17 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 17 00 09 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 DF [10:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:15:00]wFMCommunicate OK [10:15:00]CreateOFDProtocolMessage done [10:15:00]OFDSenderStorePacket 70665 [10:15:00]StoreOFDPacket docnum=70665 [10:15:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 D0 B3 07 01 71 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 25 32 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 09 14 01 00 35 04 06 00 BC 44 21 7C 48 21 F2 4C 43 25 3E 08 A1 6B [10:15:00]CheckFolder [10:15:00]dirname=/storage/ofd_packets [10:15:00]CheckFolder done [10:15:00]ProducePacketName [10:15:00]name=ofd_packets/00070665 [10:15:00]NVStorageSaveData ofd_packets/00070665 [10:15:00]File name is /storage/ofd_packets/00070665 [10:15:00]Write 301 bytes [10:15:00]NVStorageSaveData done [10:15:00]OFDSenderStorePacket done [10:15:00]KKMCreateOFDPacket done [10:15:00]NVStorageSaveData kkm_last_timestamp [10:15:00]File name is /storage/kkm_last_timestamp [10:15:00]Write 4 bytes [10:15:00]NVStorageSaveData done [10:15:00]ExternCall_PrintAddStr [10:15:00]wPrintStart [10:15:00]Write to MH i2c: 01 00 00 0A 07 11 [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: 01 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: 01 07 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: 01 07 00 0A 07 00 00 00 00 00 FF 0F 26 [10:15:00]RasterBufferAndPrint [10:15:00]line Счет N : (1)141125 [10:15:00]line ИÐÐ: 02508201610067 [10:15:00]line Контрольно-КаÑÑовый Чек [10:15:00]line ПРОДÐЖР[10:15:00]line ТРК (МРК, ГÐК) : 41 [10:15:00]line Товар: 2710124130 [10:15:00]line Ðи-92-К-5 [10:15:00]line 7.590 * 65.90 [10:15:00]line = 500.18 [10:15:00]line ÐДС 12% ÐСП 1% [10:15:00]line > о реализуемом товаре [10:15:00]line ОКРУГЛЕÐИЕ: -0.18 [10:15:00]line ИТОГО: 500.00 [10:15:00]line ВнеÑено: 500.00 [10:15:00]line СДÐЧÐ: 0.00 [10:15:00]line ÐСП 1% : 4.43 [10:15:00]line ÐДС 12% : 53.12 [10:15:00]line Ðаличными: 500.00 [10:15:00]line Безнал.: 0.00 [10:15:00]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [10:15:00]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [10:15:00]line СÐО: Общий режим [10:15:00]line Чек 19 13.08.2024 10:15 [10:15:00]line Смена: 466 ФФД: 1.0 [10:15:00]line ЗÐМ: 0300000140 [10:15:00]line РÐМ: 0000000000090913 [10:15:00]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:15:00]line ФМ: 0000000000874915 [10:15:00]line ФД: 70665 [10:15:00]line ФПД: 207000805591073 [10:15:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T101501&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70665&fm=207000805591073&tin=02508201610067®Number=0000000000090913&sum=50000 [10:15:01]OFD Sender: Processing packet 70665 [packets to send 67, broken 66] [10:15:01]ProducePacketName [10:15:01]name=ofd_packets/00070665 [10:15:01]OFD Sender: To server: ‡•öpG, [10:15:01]CommunicateWithHost lk.salyk.kg:30040 [10:15:01]ConnectInit lk.salyk.kg [10:15:01]written 0, free lines is 4095 [10:15:01]Connected sock=10 [10:15: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 39 31 35 0F 01 00 00 D0 B3 07 01 71 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 25 32 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 09 14 01 00 35 04 06 00 BC 44 21 7C 48 21 F2 4C 43 25 3E 08 A1 6B [10:15:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 BC 1F 47 00 86 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 09 14 01 00 F4 03 04 00 10 D9 BA 66 B6 04 01 00 00 55 5E A5 47 56 B5 77 86 [10:15:01]CommunicateWithHost err = 0 [10:15:01]CheckOFDResponse [10:15:01]1017 (14) - 77093643461234 [10:15:01]1041 (16) - 0000000000874915 [10:15:01]1040 (4) - 70665 [10:15:01]1012 (4) - 13.08.2024 03:54 [10:15:01]1206 (1) - 0 [10:15:01]OFD Sender: Remove packet 70665 [10:15:01]ProducePacketName [10:15:01]name=ofd_packets/00070665 [10:15:01]NVStorageDeleteData [10:15:01]Write to MH i2c: 01 00 00 35 07 3C [10:15:01]Write i2c OK [10:15:01]MH_I2C_Read... [10:15:01]Read from MH i2c: 01 [10:15:01]MH_I2C_Read... [10:15:01]Read from MH i2c: 01 07 00 [10:15:01]MH_I2C_Read... [10:15:01]Read from MH i2c: 01 07 00 35 07 00 00 00 00 00 DD 0C 2C [10:15:01]RasterBufferAndPrint [10:15:01]line [10:15:01]line [10:15:01]line [10:15:01]line [10:15:01]line [10:15:01]written 0, free lines is 3299 [10:15:01]MH_Cut [10:15:01]Write to MH i2c: D1 01 00 3C 07 01 15 [10:15:01]Write i2c OK [10:15:01]MH_I2C_Read... [10:15:01]Read from MH i2c: D1 [10:15:01]MH_I2C_Read... [10:15:01]Read from MH i2c: D1 01 00 [10:15:01]MH_I2C_Read... [10:15:01]Read from MH i2c: D1 01 00 3C 07 00 14 [10:15:01]Write to MH i2c: 01 00 00 3D 07 44 [10:15:01]Write i2c OK [10:15:01]MH_I2C_Read... [10:15:02]OFD Sender: No OFD packet to send [10:15:02]*** Cut start [10:15:02]*** Purtial cut [10:15:02]*** Stage 1: CUTSNS_PIN = 1 [10:15:02]Read from MH i2c: 01 [10:15:02]MH_I2C_Read... [10:15:02]*** Stop cut motor [10:15:02]*** Cut end [10:15:02]Read from MH i2c: 01 07 00 [10:15:02]MH_I2C_Read... [10:15:02]Read from MH i2c: 01 07 00 3D 07 00 00 00 00 00 FF 0F 59 [10:15:02]process_action close_receipt done [10:15:02]requested_data is exist [10:15:02]produce_requested_data [10:15:02]requested_item fm.sn is exist - process it [10:15:02]wFMCommunicate request_size=4 [10:15:02]MH_SAM_APDU [10:15:02]CAPDU: 80 11 00 00 [10:15:02]Write to MH i2c: E2 08 00 3E 07 80 11 00 00 00 00 00 00 BF [10:15:02]Write i2c OK [10:15:02]MH_I2C_Read... [10:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:02]Read from MH i2c: E2 [10:15:02]MH_I2C_Read... [10:15:02]Read from MH i2c: E2 17 00 [10:15:02]MH_I2C_Read... [10:15:02]Read from MH i2c: E2 17 00 3E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 14 [10:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:15:02]wFMCommunicate OK [10:15:02]requested_item fd.num is exist - process it [10:15:02]SAM_PROTO_GetFieldsCounters [10:15:02]wFMCommunicate request_size=4 [10:15:02]MH_SAM_APDU [10:15:02]CAPDU: 80 13 00 00 [10:15:02]Write to MH i2c: E2 08 00 3F 07 80 13 00 00 00 00 00 00 C2 [10:15:02]Write i2c OK [10:15:02]MH_I2C_Read... [10:15:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:02]Read from MH i2c: E2 [10:15:02]MH_I2C_Read... [10:15:02]Read from MH i2c: E2 62 00 [10:15:02]MH_I2C_Read... [10:15:02]Read from MH i2c: E2 62 00 3F 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 09 14 01 00 0E 04 04 00 D2 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 0C [10:15: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 09 14 01 00 0E 04 04 00 D2 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 [10:15:02]wFMCommunicate OK [10:15:02]SAM_PROTO_GetFieldsCounters done [10:15:02]requested_item shift.num is exist - process it [10:15:02]requested_item shift.opened is exist - process it [10:15:02]req_shift_opened [10:15:02]FM_GetShiftState [10:15:02]SAM_PROTO_GetShiftState [10:15:02]wFMCommunicate request_size=4 [10:15:02]MH_SAM_APDU [10:15:02]CAPDU: 80 13 01 00 [10:15:02]Write to MH i2c: E2 08 00 40 07 80 13 01 00 00 00 00 00 C4 [10:15:02]Write i2c OK [10:15:02]MH_I2C_Read... [10:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:02]Read from MH i2c: E2 [10:15:02]MH_I2C_Read... [10:15:02]Read from MH i2c: E2 0E 00 [10:15:02]MH_I2C_Read... [10:15:02]Read from MH i2c: E2 0E 00 40 07 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 33 [10:15:02]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [10:15:02]wFMCommunicate OK [10:15:02]SAM_PROTO_GetShiftState done [10:15:02]FM_GetShiftState done [10:15:02]req_shift_opened done [10:15:02]requested_item shift.open_date is exist - process it [10:15:02]req_shift_open_date [10:15:02]req_shift_open_date done [10:15:02]produce_requested_data done [10:15:02]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70665,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [10:15:02]process_action_free close_receipt [10:15:02]json_value_free [10:15:02]json_value_free done [10:15:02]process_json_proto returns [10:15:02]Send response to host [10:15:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70665,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [10:15:02]free response buf [10:15:02]execute_script done [10:15:02]execute_script returns [10:15:02]free content buf [10:15:02]Sock 9.Close socket [10:15:02]Sock 9.Thread stoped [10:15:07]OFD Sender: No OFD packet to send [10:15:12]OFD Sender: No OFD packet to send [10:15:17]OFD Sender: No OFD packet to send [10:15:22]OFD Sender: No OFD packet to send [10:15:27]OFD Sender: No OFD packet to send [10:15:32]OFD Sender: No OFD packet to send [10:15:37]OFD Sender: No OFD packet to send [10:15:42]OFD Sender: No OFD packet to send [10:15:47]OFD Sender: No OFD packet to send [10:15:52]OFD Sender: No OFD packet to send [10:15:57]OFD Sender: No OFD packet to send [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:12]OFD Sender: No OFD packet to send [10:16:17]OFD Sender: No OFD packet to send [10:16:22]OFD Sender: No OFD packet to send [10:16:27]OFD Sender: No OFD packet to send [10:16:32]OFD Sender: No OFD packet to send [10:16:37]OFD Sender: No OFD packet to send [10:16:42]OFD Sender: No OFD packet to send [10:16:47]OFD Sender: No OFD packet to send [10:16:52]OFD Sender: No OFD packet to send [10:16:57]OFD Sender: No OFD packet to send [10:17:02]OFD Sender: No OFD packet to send [10:17:07]OFD Sender: No OFD packet to send [10:17:12]OFD Sender: No OFD packet to send [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:02]OFD Sender: No OFD packet to send [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:22]OFD Sender: No OFD packet to send [10:19:27]OFD Sender: No OFD packet to send [10:19:32]OFD Sender: No OFD packet to send [10:19:37]OFD Sender: No OFD packet to send [10:19:42]OFD Sender: No OFD packet to send [10:19:47]OFD Sender: No OFD packet to send [10:19:52]OFD Sender: No OFD packet to send [10:19:57]OFD Sender: No OFD packet to send [10:20:02]OFD Sender: No OFD packet to send [10:20:07]OFD Sender: No OFD packet to send [10:20:12]OFD Sender: No OFD packet to send [10:20:17]OFD Sender: No OFD packet to send [10:20:22]OFD Sender: No OFD packet to send [10:20:27]OFD Sender: No OFD packet to send [10:20:32]OFD Sender: No OFD packet to send [10:20:37]OFD Sender: No OFD packet to send [10:20:42]OFD Sender: No OFD packet to send [10:20:47]OFD Sender: No OFD packet to send [10:20:52]OFD Sender: No OFD packet to send [10:20:57]OFD Sender: No OFD packet to send [10:21:02]OFD Sender: No OFD packet to send [10:21:07]OFD Sender: No OFD packet to send [10:21:12]OFD Sender: No OFD packet to send [10:21:17]OFD Sender: No OFD packet to send [10:21:22]OFD Sender: No OFD packet to send [10:21:27]OFD Sender: No OFD packet to send [10:21:32]OFD Sender: No OFD packet to send [10:21:37]OFD Sender: No OFD packet to send [10:21:42]OFD Sender: No OFD packet to send [10:21:47]OFD Sender: No OFD packet to send [10:21:52]OFD Sender: No OFD packet to send [10:21:57]OFD Sender: No OFD packet to send [10:22:02]OFD Sender: No OFD packet to send [10:22:07]OFD Sender: No OFD packet to send [10:22:12]OFD Sender: No OFD packet to send [10:22:17]OFD Sender: No OFD packet to send [10:22:22]OFD Sender: No OFD packet to send [10:22:27]OFD Sender: No OFD packet to send [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:23:02]OFD Sender: No OFD packet to send [10:23:07]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:32]OFD Sender: No OFD packet to send [10:23:37]OFD Sender: No OFD packet to send [10:23:42]OFD Sender: No OFD packet to send [10:23:47]OFD Sender: No OFD packet to send [10:23:52]OFD Sender: No OFD packet to send [10:23:57]OFD Sender: No OFD packet to send [10:24:02]OFD Sender: No OFD packet to send [10:24:07]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:17]OFD Sender: No OFD packet to send [10:24:22]OFD Sender: No OFD packet to send [10:24:27]OFD Sender: No OFD packet to send [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:45]accept exits with 7 [10:24:45]New connection [10:24:45]New thread 3067215204 created [10:24:45]Thread 3067358564 joined [10:24:45]Waiting for new connection... [10:24:45] Sock 7.Parse request [10:24:45]Sock 7.Check first char [10:24:45]Sock 7.First char is OK [10:24:45]request: POST /json_proto HTTP/1.0 [10:24:45]Method: POST [10:24:45]URL: /json_proto [10:24:45]Method is POST - this is cgi request [10:24:45]url: /json_proto [10:24:45]query_string will be loaded in cgi processing [10:24:45]execute_cgi json_proto POST (null) [10:24:45]execute_cgi path=json_proto method=POST [10:24:45]POST find Content-Length [10:24:45]Host: 172.17.58.67:8080 [10:24:45]Content-Length: 805 [10:24:45]Content-Type: application/json [10:24:45] [10:24:45]POST finish read [10:24:45]Found Content-Length = 805 [10:24:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.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" : 2000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:45]execute_script... [10:24: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)141126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.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" : 2000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:45]POST & json_proto [10:24:45]process_json_proto [10:24:45]json parsed OK: [10:24:45]protocol is kg_v1.0 [10:24:45]action value=close_receipt [10:24:45]process_action close_receipt [10:24:45]cmd_close_receipt [10:24:45]MH_GetDate [10:24:45]Write to MH i2c: F0 00 00 41 07 37 [10:24:45]Write i2c OK [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: F0 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: F0 09 00 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: F0 09 00 41 07 00 70 34 BB 66 94 51 63 64 B1 [10:24:45]GetLastDocTimeStamp 1723544101 [10:24:45]current date 1723544688 [10:24:45]FM_GetShiftState [10:24:45]SAM_PROTO_GetShiftState [10:24:45]wFMCommunicate request_size=4 [10:24:45]MH_SAM_APDU [10:24:45]CAPDU: 80 13 01 00 [10:24:45]Write to MH i2c: E2 08 00 42 07 80 13 01 00 00 00 00 00 C6 [10:24:45]Write i2c OK [10:24:45]MH_I2C_Read... [10:24:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:45]Read from MH i2c: E2 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 0E 00 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 0E 00 42 07 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 35 [10:24:45]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [10:24:45]wFMCommunicate OK [10:24:45]SAM_PROTO_GetShiftState done [10:24:45]FM_GetShiftState done [10:24:45]opened in 1723509656 [10:24:45]opened+sec_in_day 1723596056 [10:24:45]quantity*price = 200061 [10:24:45]sum+1 = 200063 [10:24:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.62 ÐСП 1% : 17.70 ÐДС 12% : 212.45 Ðаличными: 0.00 Безнал.: 2000.62 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 20 13.08.2024 10:24 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70666 ФПД: 96849121161090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T102448&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70666&fm=96849121161090&tin=02508201610067®Number=0000000000090913&sum=200062 [10:24:47]StoreToDocumentArchive [10:24:47]shift 466 fd 70666 [10:24:47]save to /storage/0466/doc_00070666 [10:24:47]save last doc name /storage/0466/doc_00070666 to /storage/kkm_last_doc_name [10:24:47]save OK [10:24:47]Clear old archive folders... [10:24:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:24:47]tlvbuf is 017A08B0 [10:24:47]SAM_PROTO_ClearQueue [10:24:47]wFMCommunicate request_size=4 [10:24:47]MH_SAM_APDU [10:24:47]CAPDU: 80 09 00 00 [10:24:47]Write to MH i2c: E2 08 00 4F 07 80 09 00 00 00 00 00 00 C8 [10:24:47]Write i2c OK [10:24:47]MH_I2C_Read... [10:24:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:47]Read from MH i2c: E2 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 4F 07 00 90 00 CA [10:24:47]RAPDU: 90 00 [10:24:47]wFMCommunicate OK [10:24:47]SAM_PROTO_ClearQueue done [10:24:47]KKMCreateOFDPacket [10:24:47]OFDProtocolAddRootSTLVToBuf [10:24:47]FM_MakeSignedData [10:24:47]FM_MakeSignedData [10:24:47]SAM_PROTO_SignData [10:24:47]wFMCommunicate request_size=4 [10:24:47]MH_SAM_APDU [10:24:47]CAPDU: 80 0D 01 02 [10:24:47]Write to MH i2c: E2 08 00 50 07 80 0D 01 02 00 00 00 00 D0 [10:24:47]Write i2c OK [10:24:47]MH_I2C_Read... [10:24:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:47]Read from MH i2c: E2 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 50 07 00 90 00 CB [10:24:47]RAPDU: 90 00 [10:24:47]wFMCommunicate OK [10:24:47]wFMCommunicate request_size=255 [10:24:47]MH_SAM_APDU [10:24: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 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 70 34 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0A 14 01 00 35 04 06 00 58 15 71 76 [10:24:47]Write to MH i2c: E2 02 01 51 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 70 34 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0A 14 01 00 35 04 06 00 58 15 71 76 00 00 D4 [10:24:47]Write i2c OK [10:24:47]MH_I2C_Read... [10:24:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:47]Read from MH i2c: E2 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 51 07 00 90 00 CC [10:24:47]RAPDU: 90 00 [10:24:47]wFMCommunicate OK [10:24:47]wFMCommunicate request_size=7 [10:24:47]MH_SAM_APDU [10:24:47]CAPDU: 80 0D 02 02 02 AF 82 [10:24:47]Write to MH i2c: E2 0A 00 52 07 80 0D 02 02 02 00 AF 82 00 00 08 [10:24:47]Write i2c OK [10:24:47]MH_I2C_Read... [10:24:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:47]Read from MH i2c: E2 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 03 00 52 07 00 90 00 CD [10:24:47]RAPDU: 90 00 [10:24:47]wFMCommunicate OK [10:24:47]wFMCommunicate request_size=4 [10:24:47]MH_SAM_APDU [10:24:47]CAPDU: 80 0D 03 02 [10:24:47]Write to MH i2c: E2 08 00 53 07 80 0D 03 02 00 00 00 00 D5 [10:24:47]Write i2c OK [10:24:47]MH_I2C_Read... [10:24:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:47]Read from MH i2c: E2 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 0B 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 0B 00 53 07 00 F5 14 89 14 C6 4E 79 A5 90 00 AE [10:24:47]RAPDU: F5 14 89 14 C6 4E 79 A5 90 00 [10:24:47]wFMCommunicate OK [10:24:47]SAM_PROTO_SignData done [10:24:47]FM_MakeSignedData done [10:24:47]CreateOFDProtocolMessage [10:24:47]wFMCommunicate request_size=4 [10:24:47]MH_SAM_APDU [10:24:47]CAPDU: 80 11 00 00 [10:24:47]Write to MH i2c: E2 08 00 54 07 80 11 00 00 00 00 00 00 D5 [10:24:47]Write i2c OK [10:24:47]MH_I2C_Read... [10:24:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:47]Read from MH i2c: E2 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 17 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: E2 17 00 54 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 2A [10:24:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:24:47]wFMCommunicate OK [10:24:47]CreateOFDProtocolMessage done [10:24:47]OFDSenderStorePacket 70666 [10:24:47]StoreOFDPacket docnum=70666 [10:24:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 34 6D 04 01 31 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 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 70 34 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0A 14 01 00 35 04 06 00 58 15 71 76 AF 82 F5 14 89 14 C6 4E 79 A5 [10:24:47]CheckFolder [10:24:47]dirname=/storage/ofd_packets [10:24:47]CheckFolder done [10:24:47]ProducePacketName [10:24:47]name=ofd_packets/00070666 [10:24:47]NVStorageSaveData ofd_packets/00070666 [10:24:47]File name is /storage/ofd_packets/00070666 [10:24:47]Write 298 bytes [10:24:47]NVStorageSaveData done [10:24:47]OFDSenderStorePacket done [10:24:47]KKMCreateOFDPacket done [10:24:47]NVStorageSaveData kkm_last_timestamp [10:24:47]File name is /storage/kkm_last_timestamp [10:24:47]Write 4 bytes [10:24:47]NVStorageSaveData done [10:24:47]ExternCall_PrintAddStr [10:24:47]wPrintStart [10:24:47]Write to MH i2c: 01 00 00 55 07 5C [10:24:47]Write i2c OK [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: 01 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: 01 07 00 [10:24:47]MH_I2C_Read... [10:24:47]Read from MH i2c: 01 07 00 55 07 00 00 00 00 00 FF 0F 71 [10:24:47]RasterBufferAndPrint [10:24:47]line Счет N : (1)141126 [10:24:47]line ИÐÐ: 02508201610067 [10:24:47]line Контрольно-КаÑÑовый Чек [10:24:47]line ПРОДÐЖР[10:24:47]line ТРК (МРК, ГÐК) : 34 [10:24:47]line Товар: 2710194210 [10:24:47]line ДТ-К-5 [10:24:47]line 26.890 * 74.40 [10:24:47]line = 2000.62 [10:24:47]line ÐДС 12% ÐСП 1% [10:24:47]line > о реализуемом товаре [10:24:47]line ИТОГО: 2000.62 [10:24:47]line ÐСП 1% : 17.70 [10:24:47]line ÐДС 12% : 212.45 [10:24:47]line Ðаличными: 0.00 [10:24:47]line Безнал.: 2000.62 [10:24:47]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [10:24:47]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [10:24:47]line СÐО: Общий режим [10:24:47]line Чек 20 13.08.2024 10:24 [10:24:47]line Смена: 466 ФФД: 1.0 [10:24:47]line ЗÐМ: 0300000140 [10:24:47]line РÐМ: 0000000000090913 [10:24:47]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:24:47]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [10:24:47]line ФМ: 0000000000874915 [10:24:47]line ФД: 70666 [10:24:47]line ФПД: 96849121161090 [10:24:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T102448&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70666&fm=96849121161090&tin=02508201610067®Number=0000000000090913&sum=200062 [10:24:47]OFD Sender: Processing packet 70666 [packets to send 67, broken 66] [10:24:47]ProducePacketName [10:24:47]name=ofd_packets/00070666 [10:24:47]OFD Sender: To server: ‡•öpG, [10:24:47]CommunicateWithHost lk.salyk.kg:30040 [10:24:47]ConnectInit lk.salyk.kg [10:24:47]written 0, free lines is 4095 [10:24:48]Connected sock=10 [10:24: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 39 31 35 0C 01 00 00 34 6D 04 01 31 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 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 70 34 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0A 14 01 00 35 04 06 00 58 15 71 76 AF 82 F5 14 89 14 C6 4E 79 A5 [10:24:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 D5 97 47 00 74 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 39 31 35 10 04 04 00 0A 14 01 00 F4 03 04 00 5B DB BA 66 B6 04 01 00 00 17 6F DE 8C 7B C1 6E 56 [10:24:48]CommunicateWithHost err = 0 [10:24:48]CheckOFDResponse [10:24:48]1017 (14) - 77093643461234 [10:24:48]1041 (16) - 0000000000874915 [10:24:48]1040 (4) - 70666 [10:24:48]1012 (4) - 13.08.2024 04:04 [10:24:48]1206 (1) - 0 [10:24:48]OFD Sender: Remove packet 70666 [10:24:48]ProducePacketName [10:24:48]name=ofd_packets/00070666 [10:24:48]NVStorageDeleteData [10:24:48]Write to MH i2c: 01 00 00 7F 07 86 [10:24:48]Write i2c OK [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: 01 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: 01 07 00 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: 01 07 00 7F 07 00 00 00 00 00 F2 0C 8B [10:24:48]RasterBufferAndPrint [10:24:48]line [10:24:48]line [10:24:48]line [10:24:48]line [10:24:48]line [10:24:48]written 0, free lines is 3319 [10:24:48]MH_Cut [10:24:48]Write to MH i2c: D1 01 00 86 07 01 5F [10:24:48]Write i2c OK [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: D1 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: D1 01 00 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: D1 01 00 86 07 00 5E [10:24:48]Write to MH i2c: 01 00 00 87 07 8E [10:24:48]Write i2c OK [10:24:48]MH_I2C_Read... [10:24:48]OFD Sender: No OFD packet to send [10:24:49]*** Cut start [10:24:49]*** Purtial cut [10:24:49]*** CUTSNS_PIN = 0 [10:24:49]*** Stage 1: CUTSNS_PIN = 1 [10:24:51]Read from MH i2c: 01 [10:24:51]MH_I2C_Read... [10:24:51]*** Stop cut motor [10:24:51]*** Cut end [10:24:51]Read from MH i2c: 01 07 00 [10:24:51]MH_I2C_Read... [10:24:51]Read from MH i2c: 01 07 00 87 07 00 00 00 00 00 FF 0F A3 [10:24:51]process_action close_receipt done [10:24:51]requested_data is exist [10:24:51]produce_requested_data [10:24:51]requested_item fm.sn is exist - process it [10:24:51]wFMCommunicate request_size=4 [10:24:51]MH_SAM_APDU [10:24:51]CAPDU: 80 11 00 00 [10:24:51]Write to MH i2c: E2 08 00 88 07 80 11 00 00 00 00 00 00 09 [10:24:51]Write i2c OK [10:24:51]MH_I2C_Read... [10:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:51]Read from MH i2c: E2 [10:24:51]MH_I2C_Read... [10:24:51]Read from MH i2c: E2 17 00 [10:24:51]MH_I2C_Read... [10:24:51]Read from MH i2c: E2 17 00 88 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 5E [10:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:24:51]wFMCommunicate OK [10:24:51]requested_item fd.num is exist - process it [10:24:51]SAM_PROTO_GetFieldsCounters [10:24:51]wFMCommunicate request_size=4 [10:24:51]MH_SAM_APDU [10:24:51]CAPDU: 80 13 00 00 [10:24:51]Write to MH i2c: E2 08 00 89 07 80 13 00 00 00 00 00 00 0C [10:24:51]Write i2c OK [10:24:51]MH_I2C_Read... [10:24:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:51]Read from MH i2c: E2 [10:24:51]MH_I2C_Read... [10:24:51]Read from MH i2c: E2 62 00 [10:24:51]MH_I2C_Read... [10:24:51]Read from MH i2c: E2 62 00 89 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 0A 14 01 00 0E 04 04 00 D2 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 5A [10:24: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 0A 14 01 00 0E 04 04 00 D2 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 [10:24:51]wFMCommunicate OK [10:24:51]SAM_PROTO_GetFieldsCounters done [10:24:51]requested_item shift.num is exist - process it [10:24:51]requested_item shift.opened is exist - process it [10:24:51]req_shift_opened [10:24:51]FM_GetShiftState [10:24:51]SAM_PROTO_GetShiftState [10:24:51]wFMCommunicate request_size=4 [10:24:51]MH_SAM_APDU [10:24:51]CAPDU: 80 13 01 00 [10:24:51]Write to MH i2c: E2 08 00 8A 07 80 13 01 00 00 00 00 00 0E [10:24:51]Write i2c OK [10:24:51]MH_I2C_Read... [10:24:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:51]Read from MH i2c: E2 [10:24:51]MH_I2C_Read... [10:24:51]Read from MH i2c: E2 0E 00 [10:24:51]MH_I2C_Read... [10:24:51]Read from MH i2c: E2 0E 00 8A 07 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 7D [10:24:51]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [10:24:51]wFMCommunicate OK [10:24:51]SAM_PROTO_GetShiftState done [10:24:51]FM_GetShiftState done [10:24:51]req_shift_opened done [10:24:51]requested_item shift.open_date is exist - process it [10:24:51]req_shift_open_date [10:24:51]req_shift_open_date done [10:24:51]produce_requested_data done [10:24:51]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70666,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [10:24:51]process_action_free close_receipt [10:24:51]json_value_free [10:24:51]json_value_free done [10:24:51]process_json_proto returns [10:24:51]Send response to host [10:24:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70666,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [10:24:51]free response buf [10:24:51]execute_script done [10:24:51]execute_script returns [10:24:51]free content buf [10:24:51]Sock 7.Close socket [10:24:51]Sock 7.Thread stoped [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:50]int [10:25:50]Write to MH i2c: 01 00 00 8B 07 92 [10:25:50]*** FLAG_PRN_KEY set [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: 01 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: 01 07 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: 01 07 00 8B 07 00 08 00 00 00 FF 0F AF [10:25:50]state=0 [10:25:50]Key pressed [10:25:50]Feed [10:25:50]Write to MH i2c: D8 00 00 8C 07 6A [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: D8 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: D8 01 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: D8 01 00 8C 07 00 6B [10:25:50]int [10:25:50]Write to MH i2c: 01 00 00 8D 07 94 [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: 01 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: 01 07 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: 01 07 00 8D 07 00 48 00 00 00 3C 00 1F [10:25:50]state=2 [10:25:50]Key pressed [10:25:50]int [10:25:50]Write to MH i2c: 01 00 00 8E 07 95 [10:25:50]*** FLAG_PRN_KEY reset [10:25:50]Write i2c OK [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: 01 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: 01 07 00 [10:25:50]MH_I2C_Read... [10:25:50]Read from MH i2c: 01 07 00 8E 07 00 00 00 00 00 F5 0F A0 [10:25:50]state=2 [10:25:50]Stop feed [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:48]accept exits with 9 [10:31:48]New connection [10:31:48]New thread 3067358564 created [10:31:48]Thread 3067215204 joined [10:31:48]Waiting for new connection... [10:31:48] Sock 9.Parse request [10:31:48]Sock 9.Check first char [10:31:48]Sock 9.First char is OK [10:31:48]request: POST /json_proto HTTP/1.0 [10:31:48]Method: POST [10:31:48]URL: /json_proto [10:31:48]Method is POST - this is cgi request [10:31:48]url: /json_proto [10:31:48]query_string will be loaded in cgi processing [10:31:48]execute_cgi json_proto POST (null) [10:31:48]execute_cgi path=json_proto method=POST [10:31:48]POST find Content-Length [10:31:48]Host: 172.17.58.67:8080 [10:31:48]Content-Length: 670 [10:31:48]Content-Type: application/json [10:31:48] [10:31:48]POST finish read [10:31:48]Found Content-Length = 670 [10:31:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17471", "tax_sys" : 0, "items" : [ { "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:48]execute_script... [10:31:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17471", "tax_sys" : 0, "items" : [ { "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:48]POST & json_proto [10:31:48]process_json_proto [10:31:48]json parsed OK: [10:31:48]protocol is kg_v1.0 [10:31:48]action value=close_receipt [10:31:48]process_action close_receipt [10:31:48]cmd_close_receipt [10:31:48]MH_GetDate [10:31:48]Write to MH i2c: F0 00 00 8F 07 85 [10:31:48]Write i2c OK [10:31:48]MH_I2C_Read... [10:31:48]Read from MH i2c: F0 [10:31:48]MH_I2C_Read... [10:31:48]Read from MH i2c: F0 09 00 [10:31:48]MH_I2C_Read... [10:31:48]Read from MH i2c: F0 09 00 8F 07 00 16 36 BB 66 94 51 63 64 A7 [10:31:48]GetLastDocTimeStamp 1723544688 [10:31:48]current date 1723545110 [10:31:48]FM_GetShiftState [10:31:48]SAM_PROTO_GetShiftState [10:31:48]wFMCommunicate request_size=4 [10:31:48]MH_SAM_APDU [10:31:48]CAPDU: 80 13 01 00 [10:31:48]Write to MH i2c: E2 08 00 90 07 80 13 01 00 00 00 00 00 14 [10:31:48]Write i2c OK [10:31:48]MH_I2C_Read... [10:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:48]Read from MH i2c: E2 [10:31:48]MH_I2C_Read... [10:31:48]Read from MH i2c: E2 0E 00 [10:31:48]MH_I2C_Read... [10:31:48]Read from MH i2c: E2 0E 00 90 07 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 83 [10:31:48]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [10:31:48]wFMCommunicate OK [10:31:48]SAM_PROTO_GetShiftState done [10:31:48]FM_GetShiftState done [10:31:48]opened in 1723509656 [10:31:48]opened+sec_in_day 1723596056 [10:31:48]quantity*price = 9500 [10:31:48]sum+1 = 9501 [10:31:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 ÐСП 1% : 0.84 ÐДС 12% : 10.09 Ðаличными: 95.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 21 13.08.2024 10:31 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70667 ФПД: 121413195475222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T103150&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70667&fm=121413195475222&tin=02508201610067®Number=0000000000090913&sum=9500 0 [10:31:49]StoreToDocumentArchive [10:31:49]shift 466 fd 70667 [10:31:49]save to /storage/0466/doc_00070667 [10:31:49]save last doc name /storage/0466/doc_00070667 to /storage/kkm_last_doc_name [10:31:49]save OK [10:31:49]Clear old archive folders... [10:31:49]ProcessDocumentItem done err = 0, tmpTLVsize=290 [10:31:49]tlvbuf is 017EDC60 [10:31:49]SAM_PROTO_ClearQueue [10:31:49]wFMCommunicate request_size=4 [10:31:49]MH_SAM_APDU [10:31:49]CAPDU: 80 09 00 00 [10:31:49]Write to MH i2c: E2 08 00 9D 07 80 09 00 00 00 00 00 00 16 [10:31:49]Write i2c OK [10:31:49]MH_I2C_Read... [10:31:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:49]Read from MH i2c: E2 [10:31:49]MH_I2C_Read... [10:31:49]Read from MH i2c: E2 03 00 [10:31:49]MH_I2C_Read... [10:31:49]Read from MH i2c: E2 03 00 9D 07 00 90 00 18 [10:31:49]RAPDU: 90 00 [10:31:49]wFMCommunicate OK [10:31:49]SAM_PROTO_ClearQueue done [10:31:49]KKMCreateOFDPacket [10:31:49]OFDProtocolAddRootSTLVToBuf [10:31:49]FM_MakeSignedData [10:31:49]FM_MakeSignedData [10:31:49]SAM_PROTO_SignData [10:31:49]wFMCommunicate request_size=4 [10:31:49]MH_SAM_APDU [10:31:49]CAPDU: 80 0D 01 02 [10:31:49]Write to MH i2c: E2 08 00 9E 07 80 0D 01 02 00 00 00 00 1E [10:31:49]Write i2c OK [10:31:49]MH_I2C_Read... [10:31:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:49]Read from MH i2c: E2 [10:31:49]MH_I2C_Read... [10:31:49]Read from MH i2c: E2 03 00 [10:31:49]MH_I2C_Read... [10:31:49]Read from MH i2c: E2 03 00 9E 07 00 90 00 19 [10:31:49]RAPDU: 90 00 [10:31:49]wFMCommunicate OK [10:31:49]wFMCommunicate request_size=255 [10:31:49]MH_SAM_APDU [10:31:49]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 16 36 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [10:31:49]Write to MH i2c: E2 02 01 9F 07 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 16 36 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 42 [10:31:49]Write i2c OK [10:31:49]MH_I2C_Read... [10:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:50]Read from MH i2c: E2 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 03 00 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 03 00 9F 07 00 90 00 1A [10:31:50]RAPDU: 90 00 [10:31:50]wFMCommunicate OK [10:31:50]wFMCommunicate request_size=49 [10:31:50]MH_SAM_APDU [10:31:50]CAPDU: 80 0D 02 02 2C 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0B 14 01 00 35 04 06 00 6E 6C B6 63 29 16 [10:31:50]Write to MH i2c: E2 34 00 A0 07 80 0D 02 02 2C 00 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0B 14 01 00 35 04 06 00 6E 6C B6 63 29 16 00 00 9F [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:50]Read from MH i2c: E2 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 03 00 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 03 00 A0 07 00 90 00 1B [10:31:50]RAPDU: 90 00 [10:31:50]wFMCommunicate OK [10:31:50]wFMCommunicate request_size=4 [10:31:50]MH_SAM_APDU [10:31:50]CAPDU: 80 0D 03 02 [10:31:50]Write to MH i2c: E2 08 00 A1 07 80 0D 03 02 00 00 00 00 23 [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:50]Read from MH i2c: E2 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 0B 00 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 0B 00 A1 07 00 74 50 AE 48 C7 C4 40 4E 90 00 F7 [10:31:50]RAPDU: 74 50 AE 48 C7 C4 40 4E 90 00 [10:31:50]wFMCommunicate OK [10:31:50]SAM_PROTO_SignData done [10:31:50]FM_MakeSignedData done [10:31:50]CreateOFDProtocolMessage [10:31:50]wFMCommunicate request_size=4 [10:31:50]MH_SAM_APDU [10:31:50]CAPDU: 80 11 00 00 [10:31:50]Write to MH i2c: E2 08 00 A2 07 80 11 00 00 00 00 00 00 23 [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:50]Read from MH i2c: E2 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 17 00 [10:31:50]MH_I2C_Read... [10:31:50]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 39 31 35 90 00 78 [10:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:31:50]wFMCommunicate OK [10:31:50]CreateOFDProtocolMessage done [10:31:50]OFDSenderStorePacket 70667 [10:31:50]StoreOFDPacket docnum=70667 [10:31:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 36 01 00 00 91 54 2E 01 B2 1D 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 16 36 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0B 14 01 00 35 04 06 00 6E 6C B6 63 29 16 74 50 AE 48 C7 C4 40 4E [10:31:50]CheckFolder [10:31:50]dirname=/storage/ofd_packets [10:31:50]CheckFolder done [10:31:50]ProducePacketName [10:31:50]name=ofd_packets/00070667 [10:31:50]NVStorageSaveData ofd_packets/00070667 [10:31:50]File name is /storage/ofd_packets/00070667 [10:31:50]Write 340 bytes [10:31:50]NVStorageSaveData done [10:31:50]OFDSenderStorePacket done [10:31:50]KKMCreateOFDPacket done [10:31:50]NVStorageSaveData kkm_last_timestamp [10:31:50]File name is /storage/kkm_last_timestamp [10:31:50]Write 4 bytes [10:31:50]NVStorageSaveData done [10:31:50]ExternCall_PrintAddStr [10:31:50]wPrintStart [10:31:50]Write to MH i2c: 01 00 00 A3 07 AA [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: 01 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: 01 07 00 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: 01 07 00 A3 07 00 00 00 00 00 FF 0F BF [10:31:50]RasterBufferAndPrint [10:31:50]line Счет N : (3)17471 [10:31:50]line ИÐÐ: 02508201610067 [10:31:50]line Контрольно-КаÑÑовый Чек [10:31:50]line ПРОДÐЖР[10:31:50]line Товар: 4700000483334 [10:31:50]line Ðапиток Nitro Fresh Дикие Ñгоды [10:31:50]line 1.000 * 95.00 [10:31:50]line = 95.00 [10:31:50]line ÐДС 12% ÐСП 1% [10:31:50]line > о реализуемом товаре [10:31:50]line ИТОГО: 95.00 [10:31:50]line ÐСП 1% : 0.84 [10:31:50]line ÐДС 12% : 10.09 [10:31:50]line Ðаличными: 95.00 [10:31:50]line Безнал.: 0.00 [10:31:50]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [10:31:50]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [10:31:50]line СÐО: Общий режим [10:31:50]line Чек 21 13.08.2024 10:31 [10:31:50]line Смена: 466 ФФД: 1.0 [10:31:50]line ЗÐМ: 0300000140 [10:31:50]line РÐМ: 0000000000090913 [10:31:50]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:31:50]line ФМ: 0000000000874915 [10:31:50]line ФД: 70667 [10:31:50]line ФПД: 121413195475222 [10:31:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T103150&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70667&fm=121413195475222&tin=02508201610067®Number=0000000000090913&sum=9500 [10:31:50]line 0 [10:31:50]OFD Sender: Processing packet 70667 [packets to send 67, broken 66] [10:31:50]ProducePacketName [10:31:50]name=ofd_packets/00070667 [10:31:50]OFD Sender: To server: ‡•öpG, [10:31:50]CommunicateWithHost lk.salyk.kg:30040 [10:31:50]ConnectInit lk.salyk.kg [10:31:50]written 0, free lines is 4095 [10:31:50]Connected sock=10 [10:31: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 39 31 35 36 01 00 00 91 54 2E 01 B2 1D 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 16 36 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0B 14 01 00 35 04 06 00 6E 6C B6 63 29 16 74 50 AE 48 C7 C4 40 4E [10:31:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 14 44 47 00 0C 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0B 14 01 00 F4 03 04 00 02 DD BA 66 B6 04 01 00 00 35 32 77 87 EA 59 B8 07 [10:31:50]CommunicateWithHost err = 0 [10:31:50]CheckOFDResponse [10:31:50]1017 (14) - 77093643461234 [10:31:50]1041 (16) - 0000000000874915 [10:31:50]1040 (4) - 70667 [10:31:50]1012 (4) - 13.08.2024 04:11 [10:31:50]1206 (1) - 0 [10:31:50]OFD Sender: Remove packet 70667 [10:31:50]ProducePacketName [10:31:50]name=ofd_packets/00070667 [10:31:50]NVStorageDeleteData [10:31:51]Write to MH i2c: 01 00 00 CC 07 D3 [10:31:51]Write i2c OK [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: 01 [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: 01 07 00 [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: 01 07 00 CC 07 00 00 00 00 00 EF 0C D5 [10:31:51]RasterBufferAndPrint [10:31:51]line [10:31:51]line [10:31:51]line [10:31:51]line [10:31:51]line [10:31:51]written 0, free lines is 3320 [10:31:51]MH_Cut [10:31:51]Write to MH i2c: D1 01 00 D3 07 01 AC [10:31:51]Write i2c OK [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: D1 [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: D1 01 00 [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: D1 01 00 D3 07 00 AB [10:31:51]Write to MH i2c: 01 00 00 D4 07 DB [10:31:51]Write i2c OK [10:31:51]MH_I2C_Read... [10:31:51]OFD Sender: No OFD packet to send [10:31:51]*** Cut start [10:31:51]*** Purtial cut [10:31:51]*** Stage 1: CUTSNS_PIN = 1 [10:31:52]Read from MH i2c: 01 [10:31:52]MH_I2C_Read... [10:31:52]*** Stop cut motor [10:31:52]*** Cut end [10:31:52]Read from MH i2c: 01 07 00 [10:31:52]MH_I2C_Read... [10:31:52]Read from MH i2c: 01 07 00 D4 07 00 00 00 00 00 FF 0F F0 [10:31:52]process_action close_receipt done [10:31:52]requested_data is exist [10:31:52]produce_requested_data [10:31:52]requested_item fm.sn is exist - process it [10:31:52]wFMCommunicate request_size=4 [10:31:52]MH_SAM_APDU [10:31:52]CAPDU: 80 11 00 00 [10:31:52]Write to MH i2c: E2 08 00 D5 07 80 11 00 00 00 00 00 00 56 [10:31:52]Write i2c OK [10:31:52]MH_I2C_Read... [10:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:52]Read from MH i2c: E2 [10:31:52]MH_I2C_Read... [10:31:52]Read from MH i2c: E2 17 00 [10:31:52]MH_I2C_Read... [10:31:52]Read from MH i2c: E2 17 00 D5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 AB [10:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:31:52]wFMCommunicate OK [10:31:52]requested_item fd.num is exist - process it [10:31:52]SAM_PROTO_GetFieldsCounters [10:31:52]wFMCommunicate request_size=4 [10:31:52]MH_SAM_APDU [10:31:52]CAPDU: 80 13 00 00 [10:31:52]Write to MH i2c: E2 08 00 D6 07 80 13 00 00 00 00 00 00 59 [10:31:52]Write i2c OK [10:31:52]MH_I2C_Read... [10:31:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:52]Read from MH i2c: E2 [10:31:52]MH_I2C_Read... [10:31:52]Read from MH i2c: E2 62 00 [10:31:52]MH_I2C_Read... [10:31:52]Read from MH i2c: E2 62 00 D6 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 0B 14 01 00 0E 04 04 00 D2 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 AB [10:31: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 0B 14 01 00 0E 04 04 00 D2 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 [10:31:52]wFMCommunicate OK [10:31:52]SAM_PROTO_GetFieldsCounters done [10:31:52]requested_item shift.num is exist - process it [10:31:52]requested_item shift.opened is exist - process it [10:31:52]req_shift_opened [10:31:52]FM_GetShiftState [10:31:52]SAM_PROTO_GetShiftState [10:31:52]wFMCommunicate request_size=4 [10:31:52]MH_SAM_APDU [10:31:52]CAPDU: 80 13 01 00 [10:31:52]Write to MH i2c: E2 08 00 D7 07 80 13 01 00 00 00 00 00 5B [10:31:52]Write i2c OK [10:31:52]MH_I2C_Read... [10:31:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:52]Read from MH i2c: E2 [10:31:52]MH_I2C_Read... [10:31:52]Read from MH i2c: E2 0E 00 [10:31:52]MH_I2C_Read... [10:31:52]Read from MH i2c: E2 0E 00 D7 07 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 CA [10:31:52]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [10:31:52]wFMCommunicate OK [10:31:52]SAM_PROTO_GetShiftState done [10:31:52]FM_GetShiftState done [10:31:52]req_shift_opened done [10:31:52]requested_item shift.open_date is exist - process it [10:31:52]req_shift_open_date [10:31:52]req_shift_open_date done [10:31:52]produce_requested_data done [10:31:52]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70667,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [10:31:52]process_action_free close_receipt [10:31:52]json_value_free [10:31:52]json_value_free done [10:31:52]process_json_proto returns [10:31:52]Send response to host [10:31:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70667,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [10:31:52]free response buf [10:31:52]execute_script done [10:31:52]execute_script returns [10:31:52]free content buf [10:31:52]Sock 9.Close socket [10:31:52]Sock 9.Thread stoped [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:33]int [10:32:33]Write to MH i2c: 01 00 00 D8 07 DF [10:32:33]*** FLAG_PRN_KEY set [10:32:33]Write i2c OK [10:32:33]MH_I2C_Read... [10:32:33]Read from MH i2c: 01 [10:32:33]MH_I2C_Read... [10:32:33]Read from MH i2c: 01 07 00 [10:32:33]MH_I2C_Read... [10:32:33]Read from MH i2c: 01 07 00 D8 07 00 08 00 00 00 FF 0F FC [10:32:33]state=0 [10:32:33]Key pressed [10:32:33]Feed [10:32:33]Write to MH i2c: D8 00 00 D9 07 B7 [10:32:33]Write i2c OK [10:32:33]MH_I2C_Read... [10:32:33]Read from MH i2c: D8 [10:32:33]MH_I2C_Read... [10:32:33]Read from MH i2c: D8 01 00 [10:32:33]MH_I2C_Read... [10:32:33]Read from MH i2c: D8 01 00 D9 07 00 B8 [10:32:33]int [10:32:33]Write to MH i2c: 01 00 00 DA 07 E1 [10:32:33]Write i2c OK [10:32:33]MH_I2C_Read... [10:32:33]Read from MH i2c: 01 [10:32:33]MH_I2C_Read... [10:32:33]Read from MH i2c: 01 07 00 [10:32:33]MH_I2C_Read... [10:32:33]Read from MH i2c: 01 07 00 DA 07 00 48 00 00 00 3C 00 6C [10:32:33]state=2 [10:32:33]Key pressed [10:32:33]int [10:32:33]Write to MH i2c: 01 00 00 DB 07 E2 [10:32:33]*** FLAG_PRN_KEY reset [10:32:33]Write i2c OK [10:32:33]MH_I2C_Read... [10:32:33]Read from MH i2c: 01 [10:32:33]MH_I2C_Read... [10:32:33]Read from MH i2c: 01 07 00 [10:32:33]MH_I2C_Read... [10:32:33]Read from MH i2c: 01 07 00 DB 07 00 00 00 00 00 F5 0F ED [10:32:33]state=2 [10:32:33]Stop feed [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:47]accept exits with 7 [10:33:47]New connection [10:33:47]New thread 3067215204 created [10:33:47]Thread 3067358564 joined [10:33:47]Waiting for new connection... [10:33:47] Sock 7.Parse request [10:33:47]Sock 7.Check first char [10:33:47]Sock 7.First char is OK [10:33:47]request: POST /json_proto HTTP/1.0 [10:33:47]Method: POST [10:33:47]URL: /json_proto [10:33:47]Method is POST - this is cgi request [10:33:47]url: /json_proto [10:33:47]query_string will be loaded in cgi processing [10:33:47]execute_cgi json_proto POST (null) [10:33:47]execute_cgi path=json_proto method=POST [10:33:47]POST find Content-Length [10:33:47]Host: 172.17.58.67:8080 [10:33:47]Content-Length: 661 [10:33:47]Content-Type: application/json [10:33:47] [10:33:47]POST finish read [10:33:47]Found Content-Length = 661 [10:33:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.000, "sum" : 659.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 659.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:47]execute_script... [10:33: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)141127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.000, "sum" : 659.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 659.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:47]POST & json_proto [10:33:47]process_json_proto [10:33:47]json parsed OK: [10:33:47]protocol is kg_v1.0 [10:33:47]action value=close_receipt [10:33:47]process_action close_receipt [10:33:47]cmd_close_receipt [10:33:47]MH_GetDate [10:33:47]Write to MH i2c: F0 00 00 DC 07 D2 [10:33:47]Write i2c OK [10:33:47]MH_I2C_Read... [10:33:47]Read from MH i2c: F0 [10:33:47]MH_I2C_Read... [10:33:47]Read from MH i2c: F0 09 00 [10:33:47]MH_I2C_Read... [10:33:47]Read from MH i2c: F0 09 00 DC 07 00 8D 36 BB 66 94 51 63 64 6B [10:33:47]GetLastDocTimeStamp 1723545110 [10:33:47]current date 1723545229 [10:33:47]FM_GetShiftState [10:33:47]SAM_PROTO_GetShiftState [10:33:47]wFMCommunicate request_size=4 [10:33:47]MH_SAM_APDU [10:33:47]CAPDU: 80 13 01 00 [10:33:47]Write to MH i2c: E2 08 00 DD 07 80 13 01 00 00 00 00 00 61 [10:33:47]Write i2c OK [10:33:47]MH_I2C_Read... [10:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:47]Read from MH i2c: E2 [10:33:47]MH_I2C_Read... [10:33:47]Read from MH i2c: E2 0E 00 [10:33:47]MH_I2C_Read... [10:33:47]Read from MH i2c: E2 0E 00 DD 07 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 D0 [10:33:47]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [10:33:47]wFMCommunicate OK [10:33:47]SAM_PROTO_GetShiftState done [10:33:47]FM_GetShiftState done [10:33:47]opened in 1723509656 [10:33:47]opened+sec_in_day 1723596056 [10:33:47]quantity*price = 65900 [10:33:47]sum+1 = 65901 [10:33:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 659.00 ВнеÑено: 1000.00 СДÐЧÐ: 341.00 ÐСП 1% : 5.83 ÐДС 12% : 69.98 Ðаличными: 659.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 22 13.08.2024 10:33 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70668 ФПД: 141853582176300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T103349&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70668&fm=141853582176300&tin=02508201610067®Number=0000000000090913&sum=65900 [10:33:48]StoreToDocumentArchive [10:33:48]shift 466 fd 70668 [10:33:48]save to /storage/0466/doc_00070668 [10:33:48]save last doc name /storage/0466/doc_00070668 to /storage/kkm_last_doc_name [10:33:48]save OK [10:33:48]Clear old archive folders... [10:33:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:33:48]tlvbuf is 017F1D30 [10:33:48]SAM_PROTO_ClearQueue [10:33:48]wFMCommunicate request_size=4 [10:33:48]MH_SAM_APDU [10:33:48]CAPDU: 80 09 00 00 [10:33:48]Write to MH i2c: E2 08 00 EA 07 80 09 00 00 00 00 00 00 63 [10:33:48]Write i2c OK [10:33:48]MH_I2C_Read... [10:33:48]Read from MH i2c: E2 [10:33:48]MH_I2C_Read... [10:33:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:48]Read from MH i2c: E2 03 00 [10:33:48]MH_I2C_Read... [10:33:48]Read from MH i2c: E2 03 00 EA 07 00 90 00 65 [10:33:48]RAPDU: 90 00 [10:33:48]wFMCommunicate OK [10:33:48]SAM_PROTO_ClearQueue done [10:33:48]KKMCreateOFDPacket [10:33:48]OFDProtocolAddRootSTLVToBuf [10:33:48]FM_MakeSignedData [10:33:48]FM_MakeSignedData [10:33:48]SAM_PROTO_SignData [10:33:48]wFMCommunicate request_size=4 [10:33:48]MH_SAM_APDU [10:33:48]CAPDU: 80 0D 01 02 [10:33:48]Write to MH i2c: E2 08 00 EB 07 80 0D 01 02 00 00 00 00 6B [10:33:48]Write i2c OK [10:33:48]MH_I2C_Read... [10:33:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:48]Read from MH i2c: E2 [10:33:48]MH_I2C_Read... [10:33:48]Read from MH i2c: E2 03 00 [10:33:48]MH_I2C_Read... [10:33:48]Read from MH i2c: E2 03 00 EB 07 00 90 00 66 [10:33:48]RAPDU: 90 00 [10:33:48]wFMCommunicate OK [10:33:48]wFMCommunicate request_size=255 [10:33:48]MH_SAM_APDU [10:33:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 6C 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 16 00 00 00 F4 03 04 00 8D 36 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0C 14 01 00 35 04 06 00 81 [10:33:48]Write to MH i2c: E2 02 01 EC 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 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 6C 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 16 00 00 00 F4 03 04 00 8D 36 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0C 14 01 00 35 04 06 00 81 00 00 F5 [10:33:48]Write i2c OK [10:33:48]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 [10:33:49]MH_I2C_Read... [10:33:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:49]Read from MH i2c: E2 03 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 03 00 EC 07 00 90 00 67 [10:33:49]RAPDU: 90 00 [10:33:49]wFMCommunicate OK [10:33:49]wFMCommunicate request_size=10 [10:33:49]MH_SAM_APDU [10:33:49]CAPDU: 80 0D 02 02 05 03 DC 60 30 2C [10:33:49]Write to MH i2c: E2 0D 00 ED 07 80 0D 02 02 05 00 03 DC 60 30 2C 00 00 13 [10:33:49]Write i2c OK [10:33:49]MH_I2C_Read... [10:33:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:49]Read from MH i2c: E2 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 03 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 03 00 ED 07 00 90 00 68 [10:33:49]RAPDU: 90 00 [10:33:49]wFMCommunicate OK [10:33:49]wFMCommunicate request_size=4 [10:33:49]MH_SAM_APDU [10:33:49]CAPDU: 80 0D 03 02 [10:33:49]Write to MH i2c: E2 08 00 EE 07 80 0D 03 02 00 00 00 00 70 [10:33:49]Write i2c OK [10:33:49]MH_I2C_Read... [10:33:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:49]Read from MH i2c: E2 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 0B 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 0B 00 EE 07 00 10 43 70 88 50 3E 62 62 90 00 0E [10:33:49]RAPDU: 10 43 70 88 50 3E 62 62 90 00 [10:33:49]wFMCommunicate OK [10:33:49]SAM_PROTO_SignData done [10:33:49]FM_MakeSignedData done [10:33:49]CreateOFDProtocolMessage [10:33:49]wFMCommunicate request_size=4 [10:33:49]MH_SAM_APDU [10:33:49]CAPDU: 80 11 00 00 [10:33:49]Write to MH i2c: E2 08 00 EF 07 80 11 00 00 00 00 00 00 70 [10:33:49]Write i2c OK [10:33:49]MH_I2C_Read... [10:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:49]Read from MH i2c: E2 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 17 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 17 00 EF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C5 [10:33:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:33:49]wFMCommunicate OK [10:33:49]CreateOFDProtocolMessage done [10:33:49]OFDSenderStorePacket 70668 [10:33:49]StoreOFDPacket docnum=70668 [10:33:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 D0 02 07 01 52 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 6C 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 16 00 00 00 F4 03 04 00 8D 36 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0C 14 01 00 35 04 06 00 81 03 DC 60 30 2C 10 43 70 88 50 3E 62 62 [10:33:49]CheckFolder [10:33:49]dirname=/storage/ofd_packets [10:33:49]CheckFolder done [10:33:49]ProducePacketName [10:33:49]name=ofd_packets/00070668 [10:33:49]NVStorageSaveData ofd_packets/00070668 [10:33:49]File name is /storage/ofd_packets/00070668 [10:33:49]Write 301 bytes [10:33:49]NVStorageSaveData done [10:33:49]OFDSenderStorePacket done [10:33:49]KKMCreateOFDPacket done [10:33:49]NVStorageSaveData kkm_last_timestamp [10:33:49]File name is /storage/kkm_last_timestamp [10:33:49]Write 4 bytes [10:33:49]NVStorageSaveData done [10:33:49]ExternCall_PrintAddStr [10:33:49]wPrintStart [10:33:49]Write to MH i2c: 01 00 00 F0 07 F7 [10:33:49]Write i2c OK [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: 01 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: 01 07 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: 01 07 00 F0 07 00 00 00 00 00 FF 0F 0C [10:33:49]RasterBufferAndPrint [10:33:49]line Счет N : (1)141127 [10:33:49]line ИÐÐ: 02508201610067 [10:33:49]line Контрольно-КаÑÑовый Чек [10:33:49]line ПРОДÐЖР[10:33:49]line ТРК (МРК, ГÐК) : 41 [10:33:49]line Товар: 2710124130 [10:33:49]line Ðи-92-К-5 [10:33:49]line 10.000 * 65.90 [10:33:49]line = 659.00 [10:33:49]line ÐДС 12% ÐСП 1% [10:33:49]line > о реализуемом товаре [10:33:49]line ИТОГО: 659.00 [10:33:49]line ВнеÑено: 1000.00 [10:33:49]line СДÐЧÐ: 341.00 [10:33:49]line ÐСП 1% : 5.83 [10:33:49]line ÐДС 12% : 69.98 [10:33:49]line Ðаличными: 659.00 [10:33:49]line Безнал.: 0.00 [10:33:49]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [10:33:49]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [10:33:49]line СÐО: Общий режим [10:33:49]line Чек 22 13.08.2024 10:33 [10:33:49]line Смена: 466 ФФД: 1.0 [10:33:49]line ЗÐМ: 0300000140 [10:33:49]line РÐМ: 0000000000090913 [10:33:49]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:33:49]line ФМ: 0000000000874915 [10:33:49]line ФД: 70668 [10:33:49]line ФПД: 141853582176300 [10:33:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T103349&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70668&fm=141853582176300&tin=02508201610067®Number=0000000000090913&sum=65900 [10:33:49]OFD Sender: Processing packet 70668 [packets to send 67, broken 66] [10:33:49]ProducePacketName [10:33:49]name=ofd_packets/00070668 [10:33:49]OFD Sender: To server: ‡•öpG, [10:33:49]CommunicateWithHost lk.salyk.kg:30040 [10:33:49]ConnectInit lk.salyk.kg [10:33:49]written 0, free lines is 4095 [10:33:49]Connected sock=10 [10:33: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 39 31 35 0F 01 00 00 D0 02 07 01 52 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 6C 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 16 00 00 00 F4 03 04 00 8D 36 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0C 14 01 00 35 04 06 00 81 03 DC 60 30 2C 10 43 70 88 50 3E 62 62 [10:33:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 2E B7 47 00 A3 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0C 14 01 00 F4 03 04 00 79 DD BA 66 B6 04 01 00 00 09 AB 4C 77 BA AD 57 A6 [10:33:49]CommunicateWithHost err = 0 [10:33:49]CheckOFDResponse [10:33:49]1017 (14) - 77093643461234 [10:33:49]1041 (16) - 0000000000874915 [10:33:49]1040 (4) - 70668 [10:33:49]1012 (4) - 13.08.2024 04:13 [10:33:49]1206 (1) - 0 [10:33:49]OFD Sender: Remove packet 70668 [10:33:49]ProducePacketName [10:33:49]name=ofd_packets/00070668 [10:33:49]NVStorageDeleteData [10:33:50]Write to MH i2c: 01 00 00 1A 08 22 [10:33:50]Write i2c OK [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: 01 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: 01 07 00 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: 01 07 00 1A 08 00 00 00 00 00 F6 0C 2B [10:33:50]RasterBufferAndPrint [10:33:50]line [10:33:50]line [10:33:50]line [10:33:50]line [10:33:50]line [10:33:50]written 0, free lines is 3324 [10:33:50]MH_Cut [10:33:50]Write to MH i2c: D1 01 00 21 08 01 FB [10:33:50]Write i2c OK [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: D1 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: D1 01 00 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: D1 01 00 21 08 00 FA [10:33:50]Write to MH i2c: 01 00 00 22 08 2A [10:33:50]Write i2c OK [10:33:50]MH_I2C_Read... [10:33:50]OFD Sender: No OFD packet to send [10:33:50]*** Cut start [10:33:50]*** Purtial cut [10:33:50]*** CUTSNS_PIN = 0 [10:33:50]*** Stage 1: CUTSNS_PIN = 1 [10:33:52]Read from MH i2c: 01 [10:33:52]MH_I2C_Read... [10:33:52]*** Stop cut motor [10:33:52]*** Cut end [10:33:52]Read from MH i2c: 01 07 00 [10:33:52]MH_I2C_Read... [10:33:52]Read from MH i2c: 01 07 00 22 08 00 00 00 00 00 FF 0F 3F [10:33:52]process_action close_receipt done [10:33:52]requested_data is exist [10:33:52]produce_requested_data [10:33:52]requested_item fm.sn is exist - process it [10:33:52]wFMCommunicate request_size=4 [10:33:52]MH_SAM_APDU [10:33:52]CAPDU: 80 11 00 00 [10:33:52]Write to MH i2c: E2 08 00 23 08 80 11 00 00 00 00 00 00 A5 [10:33:52]Write i2c OK [10:33:52]MH_I2C_Read... [10:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:52]Read from MH i2c: E2 [10:33:52]MH_I2C_Read... [10:33:52]Read from MH i2c: E2 17 00 [10:33:52]MH_I2C_Read... [10:33:52]Read from MH i2c: E2 17 00 23 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 FA [10:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:33:52]wFMCommunicate OK [10:33:52]requested_item fd.num is exist - process it [10:33:52]SAM_PROTO_GetFieldsCounters [10:33:52]wFMCommunicate request_size=4 [10:33:52]MH_SAM_APDU [10:33:52]CAPDU: 80 13 00 00 [10:33:52]Write to MH i2c: E2 08 00 24 08 80 13 00 00 00 00 00 00 A8 [10:33:52]Write i2c OK [10:33:52]MH_I2C_Read... [10:33:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:52]Read from MH i2c: E2 [10:33:52]MH_I2C_Read... [10:33:52]Read from MH i2c: E2 62 00 [10:33:52]MH_I2C_Read... [10:33:52]Read from MH i2c: E2 62 00 24 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 0C 14 01 00 0E 04 04 00 D2 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 FE [10:33: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 0C 14 01 00 0E 04 04 00 D2 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 [10:33:52]wFMCommunicate OK [10:33:52]SAM_PROTO_GetFieldsCounters done [10:33:52]requested_item shift.num is exist - process it [10:33:52]requested_item shift.opened is exist - process it [10:33:52]req_shift_opened [10:33:52]FM_GetShiftState [10:33:52]SAM_PROTO_GetShiftState [10:33:52]wFMCommunicate request_size=4 [10:33:52]MH_SAM_APDU [10:33:52]CAPDU: 80 13 01 00 [10:33:52]Write to MH i2c: E2 08 00 25 08 80 13 01 00 00 00 00 00 AA [10:33:52]Write i2c OK [10:33:52]MH_I2C_Read... [10:33:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:53]Read from MH i2c: E2 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E2 0E 00 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E2 0E 00 25 08 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 19 [10:33:53]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [10:33:53]wFMCommunicate OK [10:33:53]SAM_PROTO_GetShiftState done [10:33:53]FM_GetShiftState done [10:33:53]req_shift_opened done [10:33:53]requested_item shift.open_date is exist - process it [10:33:53]req_shift_open_date [10:33:53]req_shift_open_date done [10:33:53]produce_requested_data done [10:33:53]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70668,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [10:33:53]process_action_free close_receipt [10:33:53]json_value_free [10:33:53]json_value_free done [10:33:53]process_json_proto returns [10:33:53]Send response to host [10:33:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70668,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [10:33:53]free response buf [10:33:53]execute_script done [10:33:53]execute_script returns [10:33:53]free content buf [10:33:53]Sock 7.Close socket [10:33:53]Sock 7.Thread stoped [10:33:53]int [10:33:53]Write to MH i2c: 01 00 00 26 08 2E [10:33:53]*** FLAG_PRN_KEY set [10:33:53]Write i2c OK [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: 01 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: 01 07 00 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: 01 07 00 26 08 00 08 00 00 00 FF 0F 4B [10:33:53]state=0 [10:33:53]Key pressed [10:33:53]Feed [10:33:53]Write to MH i2c: D8 00 00 27 08 06 [10:33:53]Write i2c OK [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: D8 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: D8 01 00 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: D8 01 00 27 08 00 07 [10:33:53]int [10:33:53]Write to MH i2c: 01 00 00 28 08 30 [10:33:53]Write i2c OK [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: 01 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: 01 07 00 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: 01 07 00 28 08 00 48 00 00 00 3C 00 BB [10:33:53]state=2 [10:33:53]Key pressed [10:33:53]int [10:33:53]Write to MH i2c: 01 00 00 29 08 31 [10:33:53]*** FLAG_PRN_KEY reset [10:33:53]Write i2c OK [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: 01 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: 01 07 00 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: 01 07 00 29 08 00 00 00 00 00 FA 0F 41 [10:33:53]state=2 [10:33:53]Stop feed [10:33:55]OFD Sender: No OFD packet to send [10:34:00]OFD Sender: No OFD packet to send [10:34:05]OFD Sender: No OFD packet to send [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:20]OFD Sender: No OFD packet to send [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:40]OFD Sender: No OFD packet to send [10:34:45]OFD Sender: No OFD packet to send [10:34:50]OFD Sender: No OFD packet to send [10:34:55]OFD Sender: No OFD packet to send [10:35:00]OFD Sender: No OFD packet to send [10:35:05]OFD Sender: No OFD packet to send [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:12]accept exits with 9 [10:36:12]New connection [10:36:12]New thread 3067358564 created [10:36:12]Thread 3067215204 joined [10:36:12]Waiting for new connection... [10:36:12] Sock 9.Parse request [10:36:12]Sock 9.Check first char [10:36:12]Sock 9.First char is OK [10:36:12]request: POST /json_proto HTTP/1.0 [10:36:12]Method: POST [10:36:12]URL: /json_proto [10:36:12]Method is POST - this is cgi request [10:36:12]url: /json_proto [10:36:12]query_string will be loaded in cgi processing [10:36:12]execute_cgi json_proto POST (null) [10:36:12]execute_cgi path=json_proto method=POST [10:36:12]POST find Content-Length [10:36:12]Host: 172.17.58.67:8080 [10:36:12]Content-Length: 699 [10:36:12]Content-Type: application/json [10:36:12] [10:36:12]POST finish read [10:36:12]Found Content-Length = 699 [10:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17472", "tax_sys" : 0, "items" : [ { "code": "4700000482757", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043C\u0430\u043D\u0433,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:12]execute_script... [10:36:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17472", "tax_sys" : 0, "items" : [ { "code": "4700000482757", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043C\u0430\u043D\u0433,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:12]POST & json_proto [10:36:12]process_json_proto [10:36:12]json parsed OK: [10:36:12]protocol is kg_v1.0 [10:36:12]action value=close_receipt [10:36:12]process_action close_receipt [10:36:12]cmd_close_receipt [10:36:12]MH_GetDate [10:36:12]Write to MH i2c: F0 00 00 2A 08 21 [10:36:12]Write i2c OK [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: F0 [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: F0 09 00 [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: F0 09 00 2A 08 00 1E 37 BB 66 94 51 63 64 4C [10:36:12]GetLastDocTimeStamp 1723545229 [10:36:12]current date 1723545374 [10:36:12]FM_GetShiftState [10:36:12]SAM_PROTO_GetShiftState [10:36:12]wFMCommunicate request_size=4 [10:36:12]MH_SAM_APDU [10:36:12]CAPDU: 80 13 01 00 [10:36:12]Write to MH i2c: E2 08 00 2B 08 80 13 01 00 00 00 00 00 B0 [10:36:12]Write i2c OK [10:36:12]MH_I2C_Read... [10:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:12]Read from MH i2c: E2 [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: E2 0E 00 [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: E2 0E 00 2B 08 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 1F [10:36:12]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [10:36:12]wFMCommunicate OK [10:36:12]SAM_PROTO_GetShiftState done [10:36:12]FM_GetShiftState done [10:36:12]opened in 1723509656 [10:36:12]opened+sec_in_day 1723596056 [10:36:12]quantity*price = 9500 [10:36:12]sum+1 = 9501 [10:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 ÐСП 1% : 0.84 ÐДС 12% : 10.09 Ðаличными: 95.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 23 13.08.2024 10:36 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70669 ФПД: 246041879820872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T103614&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70669&fm=246041879820872&tin=02508201610067®Number=0000000000090913&sum=9500 0 [10:36:13]StoreToDocumentArchive [10:36:13]shift 466 fd 70669 [10:36:13]save to /storage/0466/doc_00070669 [10:36:13]save last doc name /storage/0466/doc_00070669 to /storage/kkm_last_doc_name [10:36:13]save OK [10:36:13]Clear old archive folders... [10:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=303 [10:36:13]tlvbuf is 017F0B90 [10:36:13]SAM_PROTO_ClearQueue [10:36:13]wFMCommunicate request_size=4 [10:36:13]MH_SAM_APDU [10:36:13]CAPDU: 80 09 00 00 [10:36:13]Write to MH i2c: E2 08 00 38 08 80 09 00 00 00 00 00 00 B2 [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:13]Read from MH i2c: E2 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 03 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 03 00 38 08 00 90 00 B4 [10:36:13]RAPDU: 90 00 [10:36:13]wFMCommunicate OK [10:36:13]SAM_PROTO_ClearQueue done [10:36:13]KKMCreateOFDPacket [10:36:13]OFDProtocolAddRootSTLVToBuf [10:36:13]FM_MakeSignedData [10:36:13]FM_MakeSignedData [10:36:13]SAM_PROTO_SignData [10:36:13]wFMCommunicate request_size=4 [10:36:13]MH_SAM_APDU [10:36:13]CAPDU: 80 0D 01 02 [10:36:13]Write to MH i2c: E2 08 00 39 08 80 0D 01 02 00 00 00 00 BA [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:13]Read from MH i2c: E2 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 03 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 03 00 39 08 00 90 00 B5 [10:36:13]RAPDU: 90 00 [10:36:13]wFMCommunicate OK [10:36:13]wFMCommunicate request_size=255 [10:36:13]MH_SAM_APDU [10:36:13]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 1E 37 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D [10:36:13]Write to MH i2c: E2 02 01 3A 08 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 1E 37 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 00 00 92 [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:14]Read from MH i2c: E2 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 03 00 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 03 00 3A 08 00 90 00 B6 [10:36:14]RAPDU: 90 00 [10:36:14]wFMCommunicate OK [10:36:14]wFMCommunicate request_size=62 [10:36:14]MH_SAM_APDU [10:36:14]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0D 14 01 00 35 04 06 00 DF C6 16 D8 BA 48 [10:36:14]Write to MH i2c: E2 41 00 3B 08 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0D 14 01 00 35 04 06 00 DF C6 16 D8 BA 48 00 00 AE [10:36:14]Write i2c OK [10:36:14]MH_I2C_Read... [10:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:14]Read from MH i2c: E2 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 03 00 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 03 00 3B 08 00 90 00 B7 [10:36:14]RAPDU: 90 00 [10:36:14]wFMCommunicate OK [10:36:14]wFMCommunicate request_size=4 [10:36:14]MH_SAM_APDU [10:36:14]CAPDU: 80 0D 03 02 [10:36:14]Write to MH i2c: E2 08 00 3C 08 80 0D 03 02 00 00 00 00 BF [10:36:14]Write i2c OK [10:36:14]MH_I2C_Read... [10:36:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:14]Read from MH i2c: E2 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 0B 00 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 0B 00 3C 08 00 17 DF 7E 73 27 2A CB 0B 90 00 CE [10:36:14]RAPDU: 17 DF 7E 73 27 2A CB 0B 90 00 [10:36:14]wFMCommunicate OK [10:36:14]SAM_PROTO_SignData done [10:36:14]FM_MakeSignedData done [10:36:14]CreateOFDProtocolMessage [10:36:14]wFMCommunicate request_size=4 [10:36:14]MH_SAM_APDU [10:36:14]CAPDU: 80 11 00 00 [10:36:14]Write to MH i2c: E2 08 00 3D 08 80 11 00 00 00 00 00 00 BF [10:36:14]Write i2c OK [10:36:14]MH_I2C_Read... [10:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:14]Read from MH i2c: E2 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 17 00 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 17 00 3D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 14 [10:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:36:14]wFMCommunicate OK [10:36:14]CreateOFDProtocolMessage done [10:36:14]OFDSenderStorePacket 70669 [10:36:14]StoreOFDPacket docnum=70669 [10:36:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 43 01 00 00 C3 9B 3B 01 0A D4 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 1E 37 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0D 14 01 00 35 04 06 00 DF C6 16 D8 BA 48 17 DF 7E 73 27 2A CB 0B [10:36:14]CheckFolder [10:36:14]dirname=/storage/ofd_packets [10:36:14]CheckFolder done [10:36:14]ProducePacketName [10:36:14]name=ofd_packets/00070669 [10:36:14]NVStorageSaveData ofd_packets/00070669 [10:36:14]File name is /storage/ofd_packets/00070669 [10:36:14]Write 353 bytes [10:36:14]NVStorageSaveData done [10:36:14]OFDSenderStorePacket done [10:36:14]KKMCreateOFDPacket done [10:36:14]NVStorageSaveData kkm_last_timestamp [10:36:14]File name is /storage/kkm_last_timestamp [10:36:14]Write 4 bytes [10:36:14]NVStorageSaveData done [10:36:14]ExternCall_PrintAddStr [10:36:14]wPrintStart [10:36:14]Write to MH i2c: 01 00 00 3E 08 46 [10:36:14]Write i2c OK [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: 01 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: 01 07 00 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: 01 07 00 3E 08 00 00 00 00 00 FF 0F 5B [10:36:14]RasterBufferAndPrint [10:36:14]line Счет N : (3)17472 [10:36:14]line ИÐÐ: 02508201610067 [10:36:14]line Контрольно-КаÑÑовый Чек [10:36:14]line ПРОДÐЖР[10:36:14]line Товар: 4700000482757 [10:36:14]line Ðапиток Nitro Fr газ манг,клуб ж/б 0,45л [10:36:14]line 1.000 * 95.00 [10:36:14]line = 95.00 [10:36:14]line ÐДС 12% ÐСП 1% [10:36:14]line > о реализуемом товаре [10:36:14]line ИТОГО: 95.00 [10:36:14]line ÐСП 1% : 0.84 [10:36:14]line ÐДС 12% : 10.09 [10:36:14]line Ðаличными: 95.00 [10:36:14]line Безнал.: 0.00 [10:36:14]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [10:36:14]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [10:36:14]line СÐО: Общий режим [10:36:14]line Чек 23 13.08.2024 10:36 [10:36:14]line Смена: 466 ФФД: 1.0 [10:36:14]line ЗÐМ: 0300000140 [10:36:14]line РÐМ: 0000000000090913 [10:36:14]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:36:14]line ФМ: 0000000000874915 [10:36:14]line ФД: 70669 [10:36:14]line ФПД: 246041879820872 [10:36:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T103614&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70669&fm=246041879820872&tin=02508201610067®Number=0000000000090913&sum=9500 [10:36:14]line 0 [10:36:14]OFD Sender: Processing packet 70669 [packets to send 67, broken 66] [10:36:14]ProducePacketName [10:36:14]name=ofd_packets/00070669 [10:36:14]OFD Sender: To server: ‡•öpG, [10:36:14]CommunicateWithHost lk.salyk.kg:30040 [10:36:14]ConnectInit lk.salyk.kg [10:36:14]written 0, free lines is 4095 [10:36:14]Connected sock=10 [10:36: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 39 31 35 43 01 00 00 C3 9B 3B 01 0A D4 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 1E 37 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0D 14 01 00 35 04 06 00 DF C6 16 D8 BA 48 17 DF 7E 73 27 2A CB 0B [10:36:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 F5 11 47 00 70 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0D 14 01 00 F4 03 04 00 09 DE BA 66 B6 04 01 00 00 E9 9C DD 2E 93 79 12 0F [10:36:14]CommunicateWithHost err = 0 [10:36:14]CheckOFDResponse [10:36:14]1017 (14) - 77093643461234 [10:36:14]1041 (16) - 0000000000874915 [10:36:14]1040 (4) - 70669 [10:36:14]1012 (4) - 13.08.2024 04:16 [10:36:14]1206 (1) - 0 [10:36:14]OFD Sender: Remove packet 70669 [10:36:14]ProducePacketName [10:36:14]name=ofd_packets/00070669 [10:36:14]NVStorageDeleteData [10:36:14]Write to MH i2c: 01 00 00 67 08 6F [10:36:14]Write i2c OK [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: 01 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: 01 07 00 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: 01 07 00 67 08 00 00 00 00 00 FF 0C 81 [10:36:14]RasterBufferAndPrint [10:36:14]line [10:36:14]line [10:36:14]line [10:36:14]line [10:36:14]line [10:36:14]written 0, free lines is 3333 [10:36:14]MH_Cut [10:36:14]Write to MH i2c: D1 01 00 6E 08 01 48 [10:36:14]Write i2c OK [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: D1 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: D1 01 00 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: D1 01 00 6E 08 00 47 [10:36:14]Write to MH i2c: 01 00 00 6F 08 77 [10:36:14]Write i2c OK [10:36:14]MH_I2C_Read... [10:36:15]OFD Sender: No OFD packet to send [10:36:15]*** Cut start [10:36:15]*** Purtial cut [10:36:15]*** Stage 1: CUTSNS_PIN = 1 [10:36:15]Read from MH i2c: 01 [10:36:15]MH_I2C_Read... [10:36:15]*** Stop cut motor [10:36:15]*** Cut end [10:36:15]Read from MH i2c: 01 07 00 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: 01 07 00 6F 08 00 00 00 00 00 FF 0F 8C [10:36:15]process_action close_receipt done [10:36:15]requested_data is exist [10:36:15]produce_requested_data [10:36:15]requested_item fm.sn is exist - process it [10:36:15]wFMCommunicate request_size=4 [10:36:15]MH_SAM_APDU [10:36:15]CAPDU: 80 11 00 00 [10:36:15]Write to MH i2c: E2 08 00 70 08 80 11 00 00 00 00 00 00 F2 [10:36:15]Write i2c OK [10:36:15]MH_I2C_Read... [10:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:16]Read from MH i2c: E2 [10:36:16]MH_I2C_Read... [10:36:16]Read from MH i2c: E2 17 00 [10:36:16]MH_I2C_Read... [10:36:16]Read from MH i2c: E2 17 00 70 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 47 [10:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:36:16]wFMCommunicate OK [10:36:16]requested_item fd.num is exist - process it [10:36:16]SAM_PROTO_GetFieldsCounters [10:36:16]wFMCommunicate request_size=4 [10:36:16]MH_SAM_APDU [10:36:16]CAPDU: 80 13 00 00 [10:36:16]Write to MH i2c: E2 08 00 71 08 80 13 00 00 00 00 00 00 F5 [10:36:16]Write i2c OK [10:36:16]MH_I2C_Read... [10:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:16]Read from MH i2c: E2 [10:36:16]MH_I2C_Read... [10:36:16]Read from MH i2c: E2 62 00 [10:36:16]MH_I2C_Read... [10:36:16]Read from MH i2c: E2 62 00 71 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 0D 14 01 00 0E 04 04 00 D2 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 4F [10:36: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 0D 14 01 00 0E 04 04 00 D2 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 [10:36:16]wFMCommunicate OK [10:36:16]SAM_PROTO_GetFieldsCounters done [10:36:16]requested_item shift.num is exist - process it [10:36:16]requested_item shift.opened is exist - process it [10:36:16]req_shift_opened [10:36:16]FM_GetShiftState [10:36:16]SAM_PROTO_GetShiftState [10:36:16]wFMCommunicate request_size=4 [10:36:16]MH_SAM_APDU [10:36:16]CAPDU: 80 13 01 00 [10:36:16]Write to MH i2c: E2 08 00 72 08 80 13 01 00 00 00 00 00 F7 [10:36:16]Write i2c OK [10:36:16]MH_I2C_Read... [10:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:16]Read from MH i2c: E2 [10:36:16]MH_I2C_Read... [10:36:16]Read from MH i2c: E2 0E 00 [10:36:16]MH_I2C_Read... [10:36:16]Read from MH i2c: E2 0E 00 72 08 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 66 [10:36:16]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [10:36:16]wFMCommunicate OK [10:36:16]SAM_PROTO_GetShiftState done [10:36:16]FM_GetShiftState done [10:36:16]req_shift_opened done [10:36:16]requested_item shift.open_date is exist - process it [10:36:16]req_shift_open_date [10:36:16]req_shift_open_date done [10:36:16]produce_requested_data done [10:36:16]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70669,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [10:36:16]process_action_free close_receipt [10:36:16]json_value_free [10:36:16]json_value_free done [10:36:16]process_json_proto returns [10:36:16]Send response to host [10:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70669,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [10:36:16]free response buf [10:36:16]execute_script done [10:36:16]execute_script returns [10:36:16]free content buf [10:36:16]Sock 9.Close socket [10:36:16]Sock 9.Thread stoped [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36:50]OFD Sender: No OFD packet to send [10:36:55]OFD Sender: No OFD packet to send [10:37:00]OFD Sender: No OFD packet to send [10:37:05]OFD Sender: No OFD packet to send [10:37:10]OFD Sender: No OFD packet to send [10:37:15]OFD Sender: No OFD packet to send [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:50]OFD Sender: No OFD packet to send [10:37:55]OFD Sender: No OFD packet to send [10:38:00]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:15]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45: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]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:06]OFD Sender: No OFD packet to send [10:52:11]OFD Sender: No OFD packet to send [10:52:16]OFD Sender: No OFD packet to send [10:52:21]OFD Sender: No OFD packet to send [10:52:26]OFD Sender: No OFD packet to send [10:52:31]OFD Sender: No OFD packet to send [10:52:36]OFD Sender: No OFD packet to send [10:52:41]OFD Sender: No OFD packet to send [10:52:46]OFD Sender: No OFD packet to send [10:52:51]OFD Sender: No OFD packet to send [10:52:56]OFD Sender: No OFD packet to send [10:53:01]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:45]accept exits with 7 [10:59:45]New connection [10:59:45]New thread 3067215204 created [10:59:45]Thread 3067358564 joined [10:59:45]Waiting for new connection... [10:59:45] Sock 7.Parse request [10:59:45]Sock 7.Check first char [10:59:45]Sock 7.First char is OK [10:59:45]request: POST /json_proto HTTP/1.0 [10:59:45]Method: POST [10:59:45]URL: /json_proto [10:59:45]Method is POST - this is cgi request [10:59:45]url: /json_proto [10:59:45]query_string will be loaded in cgi processing [10:59:45]execute_cgi json_proto POST (null) [10:59:45]execute_cgi path=json_proto method=POST [10:59:45]POST find Content-Length [10:59:45]Host: 172.17.58.67:8080 [10:59:45]Content-Length: 677 [10:59:45]Content-Type: application/json [10:59:45] [10:59:45]POST finish read [10:59:45]Found Content-Length = 677 [10:59:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "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:59:45]execute_script... [10:59: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)141128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "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:59:45]POST & json_proto [10:59:45]process_json_proto [10:59:45]json parsed OK: [10:59:45]protocol is kg_v1.0 [10:59:45]action value=close_receipt [10:59:45]process_action close_receipt [10:59:45]cmd_close_receipt [10:59:45]MH_GetDate [10:59:45]Write to MH i2c: F0 00 00 73 08 6A [10:59:45]Write i2c OK [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: F0 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: F0 09 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: F0 09 00 73 08 00 A4 3C BB 66 94 51 63 64 20 [10:59:45]GetLastDocTimeStamp 1723545374 [10:59:45]current date 1723546788 [10:59:45]FM_GetShiftState [10:59:45]SAM_PROTO_GetShiftState [10:59:45]wFMCommunicate request_size=4 [10:59:45]MH_SAM_APDU [10:59:45]CAPDU: 80 13 01 00 [10:59:45]Write to MH i2c: E2 08 00 74 08 80 13 01 00 00 00 00 00 F9 [10:59:45]Write i2c OK [10:59:45]MH_I2C_Read... [10:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:45]Read from MH i2c: E2 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 0E 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 0E 00 74 08 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 68 [10:59:45]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [10:59:45]wFMCommunicate OK [10:59:45]SAM_PROTO_GetShiftState done [10:59:45]FM_GetShiftState done [10:59:45]opened in 1723509656 [10:59:45]opened+sec_in_day 1723596056 [10:59:45]quantity*price = 50018 [10:59:45]sum+1 = 50019 [10:59:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.18 ИТОГО: 500.00 ВнеÑено: 500.00 СДÐЧÐ: 0.00 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 24 13.08.2024 10:59 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70670 ФПД: 186416054012020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T105948&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70670&fm=186416054012020&tin=02508201610067®Number=0000000000090913&sum=50000 [10:59:46]StoreToDocumentArchive [10:59:46]shift 466 fd 70670 [10:59:46]save to /storage/0466/doc_00070670 [10:59:46]save last doc name /storage/0466/doc_00070670 to /storage/kkm_last_doc_name [10:59:46]save OK [10:59:46]Clear old archive folders... [10:59:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:46]tlvbuf is 017EE180 [10:59:46]SAM_PROTO_ClearQueue [10:59:46]wFMCommunicate request_size=4 [10:59:46]MH_SAM_APDU [10:59:46]CAPDU: 80 09 00 00 [10:59:46]Write to MH i2c: E2 08 00 81 08 80 09 00 00 00 00 00 00 FB [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:46]Read from MH i2c: E2 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 03 00 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 03 00 81 08 00 90 00 FD [10:59:46]RAPDU: 90 00 [10:59:46]wFMCommunicate OK [10:59:46]SAM_PROTO_ClearQueue done [10:59:46]KKMCreateOFDPacket [10:59:46]OFDProtocolAddRootSTLVToBuf [10:59:46]FM_MakeSignedData [10:59:46]FM_MakeSignedData [10:59:46]SAM_PROTO_SignData [10:59:46]wFMCommunicate request_size=4 [10:59:46]MH_SAM_APDU [10:59:46]CAPDU: 80 0D 01 02 [10:59:46]Write to MH i2c: E2 08 00 82 08 80 0D 01 02 00 00 00 00 03 [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:46]Read from MH i2c: E2 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 03 00 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 03 00 82 08 00 90 00 FE [10:59:46]RAPDU: 90 00 [10:59:46]wFMCommunicate OK [10:59:46]wFMCommunicate request_size=255 [10:59:46]MH_SAM_APDU [10:59: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 18 00 00 00 F4 03 04 00 A4 3C BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0E 14 01 00 35 04 06 00 A9 [10:59:46]Write to MH i2c: E2 02 01 83 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 18 00 00 00 F4 03 04 00 A4 3C BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0E 14 01 00 35 04 06 00 A9 00 00 39 [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:47]Read from MH i2c: E2 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 03 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 03 00 83 08 00 90 00 FF [10:59:47]RAPDU: 90 00 [10:59:47]wFMCommunicate OK [10:59:47]wFMCommunicate request_size=10 [10:59:47]MH_SAM_APDU [10:59:47]CAPDU: 80 0D 02 02 05 8B 5E AE 08 74 [10:59:47]Write to MH i2c: E2 0D 00 84 08 80 0D 02 02 05 00 8B 5E AE 08 74 00 00 23 [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:47]Read from MH i2c: E2 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 03 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 03 00 84 08 00 90 00 00 [10:59:47]RAPDU: 90 00 [10:59:47]wFMCommunicate OK [10:59:47]wFMCommunicate request_size=4 [10:59:47]MH_SAM_APDU [10:59:47]CAPDU: 80 0D 03 02 [10:59:47]Write to MH i2c: E2 08 00 85 08 80 0D 03 02 00 00 00 00 08 [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:47]Read from MH i2c: E2 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 0B 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 0B 00 85 08 00 59 CD EA 4F 36 B8 AA 23 90 00 23 [10:59:47]RAPDU: 59 CD EA 4F 36 B8 AA 23 90 00 [10:59:47]wFMCommunicate OK [10:59:47]SAM_PROTO_SignData done [10:59:47]FM_MakeSignedData done [10:59:47]CreateOFDProtocolMessage [10:59:47]wFMCommunicate request_size=4 [10:59:47]MH_SAM_APDU [10:59:47]CAPDU: 80 11 00 00 [10:59:47]Write to MH i2c: E2 08 00 86 08 80 11 00 00 00 00 00 00 08 [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:47]Read from MH i2c: E2 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 17 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 17 00 86 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 5D [10:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:59:47]wFMCommunicate OK [10:59:47]CreateOFDProtocolMessage done [10:59:47]OFDSenderStorePacket 70670 [10:59:47]StoreOFDPacket docnum=70670 [10:59:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 8A FD 07 01 31 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 18 00 00 00 F4 03 04 00 A4 3C BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0E 14 01 00 35 04 06 00 A9 8B 5E AE 08 74 59 CD EA 4F 36 B8 AA 23 [10:59:47]CheckFolder [10:59:47]dirname=/storage/ofd_packets [10:59:47]CheckFolder done [10:59:47]ProducePacketName [10:59:47]name=ofd_packets/00070670 [10:59:47]NVStorageSaveData ofd_packets/00070670 [10:59:47]File name is /storage/ofd_packets/00070670 [10:59:47]Write 301 bytes [10:59:47]NVStorageSaveData done [10:59:47]OFDSenderStorePacket done [10:59:47]KKMCreateOFDPacket done [10:59:47]NVStorageSaveData kkm_last_timestamp [10:59:47]File name is /storage/kkm_last_timestamp [10:59:47]Write 4 bytes [10:59:47]NVStorageSaveData done [10:59:47]ExternCall_PrintAddStr [10:59:47]wPrintStart [10:59:47]Write to MH i2c: 01 00 00 87 08 8F [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: 01 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: 01 07 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: 01 07 00 87 08 00 00 00 00 00 FF 0F A4 [10:59:47]RasterBufferAndPrint [10:59:47]line Счет N : (1)141128 [10:59:47]line ИÐÐ: 02508201610067 [10:59:47]line Контрольно-КаÑÑовый Чек [10:59:47]line ПРОДÐЖР[10:59:47]line ТРК (МРК, ГÐК) : 41 [10:59:47]line Товар: 2710124130 [10:59:47]line Ðи-92-К-5 [10:59:47]line 7.590 * 65.90 [10:59:47]line = 500.18 [10:59:47]line ÐДС 12% ÐСП 1% [10:59:47]line > о реализуемом товаре [10:59:47]line ОКРУГЛЕÐИЕ: -0.18 [10:59:47]line ИТОГО: 500.00 [10:59:47]line ВнеÑено: 500.00 [10:59:47]line СДÐЧÐ: 0.00 [10:59:47]line ÐСП 1% : 4.43 [10:59:47]line ÐДС 12% : 53.12 [10:59:47]line Ðаличными: 500.00 [10:59:47]line Безнал.: 0.00 [10:59:47]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [10:59:47]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [10:59:47]line СÐО: Общий режим [10:59:47]line Чек 24 13.08.2024 10:59 [10:59:47]line Смена: 466 ФФД: 1.0 [10:59:47]line ЗÐМ: 0300000140 [10:59:47]line РÐМ: 0000000000090913 [10:59:47]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:59:47]line ФМ: 0000000000874915 [10:59:47]line ФД: 70670 [10:59:47]line ФПД: 186416054012020 [10:59:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T105948&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70670&fm=186416054012020&tin=02508201610067®Number=0000000000090913&sum=50000 [10:59:47]written 0, free lines is 4095 [10:59:47]OFD Sender: Processing packet 70670 [packets to send 67, broken 66] [10:59:47]ProducePacketName [10:59:47]name=ofd_packets/00070670 [10:59:47]OFD Sender: To server: ‡•öpG, [10:59:47]CommunicateWithHost lk.salyk.kg:30040 [10:59:47]ConnectInit lk.salyk.kg [10:59:47]Connected sock=10 [10:59: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 39 31 35 0F 01 00 00 8A FD 07 01 31 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 18 00 00 00 F4 03 04 00 A4 3C BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0E 14 01 00 35 04 06 00 A9 8B 5E AE 08 74 59 CD EA 4F 36 B8 AA 23 [10:59:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 E8 6F 47 00 73 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0E 14 01 00 F4 03 04 00 8F E3 BA 66 B6 04 01 00 00 D4 10 5A B6 76 C7 FC 3A [10:59:47]CommunicateWithHost err = 0 [10:59:47]CheckOFDResponse [10:59:47]1017 (14) - 77093643461234 [10:59:47]1041 (16) - 0000000000874915 [10:59:47]1040 (4) - 70670 [10:59:47]1012 (4) - 13.08.2024 04:39 [10:59:47]1206 (1) - 0 [10:59:47]OFD Sender: Remove packet 70670 [10:59:47]ProducePacketName [10:59:47]name=ofd_packets/00070670 [10:59:47]NVStorageDeleteData [10:59:48]Write to MH i2c: 01 00 00 B2 08 BA [10:59:48]Write i2c OK [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: 01 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: 01 07 00 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: 01 07 00 B2 08 00 00 00 00 00 D4 0C A1 [10:59:48]RasterBufferAndPrint [10:59:48]line [10:59:48]line [10:59:48]line [10:59:48]line [10:59:48]line [10:59:48]written 0, free lines is 3289 [10:59:48]MH_Cut [10:59:48]Write to MH i2c: D1 01 00 B9 08 01 93 [10:59:48]Write i2c OK [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: D1 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: D1 01 00 [10:59:48]MH_I2C_Read... [10:59:48]Read from MH i2c: D1 01 00 B9 08 00 92 [10:59:48]Write to MH i2c: 01 00 00 BA 08 C2 [10:59:48]Write i2c OK [10:59:48]MH_I2C_Read... [10:59:48]OFD Sender: No OFD packet to send [10:59:48]*** Cut start [10:59:48]*** Purtial cut [10:59:48]*** CUTSNS_PIN = 0 [10:59:49]*** Stage 1: CUTSNS_PIN = 1 [10:59:50]Read from MH i2c: 01 [10:59:50]MH_I2C_Read... [10:59:50]Read from MH i2c: 01 07 00 [10:59:50]MH_I2C_Read... [10:59:50]Read from MH i2c: 01 07 00 BA 08 00 00 00 00 00 FF 0F D7 [10:59:50]process_action close_receipt done [10:59:50]requested_data is exist [10:59:50]produce_requested_data [10:59:50]requested_item fm.sn is exist - process it [10:59:50]wFMCommunicate request_size=4 [10:59:50]MH_SAM_APDU [10:59:50]CAPDU: 80 11 00 00 [10:59:50]Write to MH i2c: E2 08 00 BB 08 80 11 00 00 00 00 00 00 3D [10:59:50]int [10:59:50]*** Stop cut motor [10:59:50]*** Cut end [10:59:50]*** FLAG_PRN_KEY set [10:59:50]Write i2c OK [10:59:50]MH_I2C_Read... [10:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:50]Read from MH i2c: E2 [10:59:50]MH_I2C_Read... [10:59:50]Read from MH i2c: E2 17 00 [10:59:50]MH_I2C_Read... [10:59:50]Read from MH i2c: E2 17 00 BB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 92 [10:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:59:50]wFMCommunicate OK [10:59:50]requested_item fd.num is exist - process it [10:59:50]SAM_PROTO_GetFieldsCounters [10:59:50]wFMCommunicate request_size=4 [10:59:50]MH_SAM_APDU [10:59:50]CAPDU: 80 13 00 00 [10:59:50]Write to MH i2c: E2 08 00 BC 08 80 13 00 00 00 00 00 00 40 [10:59:50]Write i2c OK [10:59:50]MH_I2C_Read... [10:59:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:51]*** FLAG_PRN_KEY reset [10:59:51]Read from MH i2c: E2 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 62 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 62 00 BC 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 0E 14 01 00 0E 04 04 00 D2 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 9E [10:59: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 0E 14 01 00 0E 04 04 00 D2 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 [10:59:51]wFMCommunicate OK [10:59:51]SAM_PROTO_GetFieldsCounters done [10:59:51]requested_item shift.num is exist - process it [10:59:51]requested_item shift.opened is exist - process it [10:59:51]req_shift_opened [10:59:51]FM_GetShiftState [10:59:51]SAM_PROTO_GetShiftState [10:59:51]wFMCommunicate request_size=4 [10:59:51]MH_SAM_APDU [10:59:51]CAPDU: 80 13 01 00 [10:59:51]Write to MH i2c: 01 00 00 BD 08 C5 [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 07 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 07 00 BD 08 00 00 00 00 00 FF 0F DA [10:59:51]state=0 [10:59:51]Write to MH i2c: E2 08 00 BE 08 80 13 01 00 00 00 00 00 43 [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:51]Read from MH i2c: E2 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 0E 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 0E 00 BE 08 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 B2 [10:59:51]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [10:59:51]wFMCommunicate OK [10:59:51]SAM_PROTO_GetShiftState done [10:59:51]FM_GetShiftState done [10:59:51]req_shift_opened done [10:59:51]requested_item shift.open_date is exist - process it [10:59:51]req_shift_open_date [10:59:51]req_shift_open_date done [10:59:51]produce_requested_data done [10:59:51]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70670,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [10:59:51]process_action_free close_receipt [10:59:51]json_value_free [10:59:51]json_value_free done [10:59:51]process_json_proto returns [10:59:51]Send response to host [10:59:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70670,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [10:59:51]free response buf [10:59:51]execute_script done [10:59:51]execute_script returns [10:59:51]free content buf [10:59:51]Sock 7.Close socket [10:59:51]Sock 7.Thread stoped [10:59:51]int [10:59:51]Write to MH i2c: 01 00 00 BF 08 C7 [10:59:51]*** FLAG_PRN_KEY set [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 07 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 07 00 BF 08 00 08 00 00 00 FF 0F E4 [10:59:51]state=0 [10:59:51]Key pressed [10:59:51]Feed [10:59:51]Write to MH i2c: D8 00 00 C0 08 9F [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: D8 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: D8 01 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: D8 01 00 C0 08 00 A0 [10:59:51]int [10:59:51]Write to MH i2c: 01 00 00 C1 08 C9 [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 07 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 07 00 C1 08 00 48 00 00 00 3C 00 54 [10:59:51]state=2 [10:59:51]Key pressed [10:59:51]int [10:59:51]Write to MH i2c: 01 00 00 C2 08 CA [10:59:51]*** FLAG_PRN_KEY reset [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 07 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 07 00 C2 08 00 00 00 00 00 FF 0F DF [10:59:51]state=2 [10:59:51]Stop feed [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]OFD Sender: No OFD packet to send [11:00:18]OFD Sender: No OFD packet to send [11:00:23]OFD Sender: No OFD packet to send [11:00:28]OFD Sender: No OFD packet to send [11:00:33]OFD Sender: No OFD packet to send [11:00:38]OFD Sender: No OFD packet to send [11:00:43]OFD Sender: No OFD packet to send [11:00:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:44]recv_with_timeout no data received [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]accept exits with 9 [11:05:18]New connection [11:05:18]New thread 3067358564 created [11:05:18]Thread 3067215204 joined [11:05:18]Waiting for new connection... [11:05:18] Sock 9.Parse request [11:05:18]Sock 9.Check first char [11:05:18]Sock 9.First char is OK [11:05:18]request: POST /json_proto HTTP/1.0 [11:05:18]Method: POST [11:05:18]URL: /json_proto [11:05:18]Method is POST - this is cgi request [11:05:18]url: /json_proto [11:05:18]query_string will be loaded in cgi processing [11:05:18]execute_cgi json_proto POST (null) [11:05:18]execute_cgi path=json_proto method=POST [11:05:18]POST find Content-Length [11:05:18]Host: 172.17.58.67:8080 [11:05:18]Content-Length: 615 [11:05:18]Content-Type: application/json [11:05:18] [11:05:18]POST finish read [11:05:18]Found Content-Length = 615 [11:05:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17473", "tax_sys" : 0, "items" : [ { "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:18]execute_script... [11:05:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17473", "tax_sys" : 0, "items" : [ { "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:18]POST & json_proto [11:05:18]process_json_proto [11:05:18]json parsed OK: [11:05:18]protocol is kg_v1.0 [11:05:18]action value=close_receipt [11:05:18]process_action close_receipt [11:05:18]cmd_close_receipt [11:05:18]MH_GetDate [11:05:18]Write to MH i2c: F0 00 00 C3 08 BA [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: F0 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: F0 09 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: F0 09 00 C3 08 00 F0 3D BB 66 94 51 63 64 BD [11:05:18]GetLastDocTimeStamp 1723546788 [11:05:18]current date 1723547120 [11:05:18]FM_GetShiftState [11:05:18]SAM_PROTO_GetShiftState [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 13 01 00 [11:05:18]Write to MH i2c: E2 08 00 C4 08 80 13 01 00 00 00 00 00 49 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 0E 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 0E 00 C4 08 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 B8 [11:05:18]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [11:05:18]wFMCommunicate OK [11:05:18]SAM_PROTO_GetShiftState done [11:05:18]FM_GetShiftState done [11:05:18]opened in 1723509656 [11:05:18]opened+sec_in_day 1723596056 [11:05:18]quantity*price = 15500 [11:05:18]sum+1 = 15501 [11:05:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 ÐСП 1% : 1.37 ÐДС 12% : 16.46 Ðаличными: 155.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 25 13.08.2024 11:05 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70671 ФПД: 118029066540091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T110520&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70671&fm=118029066540091&tin=02508201610067®Number=0000000000090913&sum=15500 0 [11:05:19]StoreToDocumentArchive [11:05:19]shift 466 fd 70671 [11:05:19]save to /storage/0466/doc_00070671 [11:05:19]save last doc name /storage/0466/doc_00070671 to /storage/kkm_last_doc_name [11:05:19]save OK [11:05:19]Clear old archive folders... [11:05:19]ProcessDocumentItem done err = 0, tmpTLVsize=268 [11:05:19]tlvbuf is 017A0180 [11:05:19]SAM_PROTO_ClearQueue [11:05:19]wFMCommunicate request_size=4 [11:05:19]MH_SAM_APDU [11:05:19]CAPDU: 80 09 00 00 [11:05:19]Write to MH i2c: E2 08 00 D1 08 80 09 00 00 00 00 00 00 4B [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:19]Read from MH i2c: E2 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 03 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 03 00 D1 08 00 90 00 4D [11:05:19]RAPDU: 90 00 [11:05:19]wFMCommunicate OK [11:05:19]SAM_PROTO_ClearQueue done [11:05:19]KKMCreateOFDPacket [11:05:19]OFDProtocolAddRootSTLVToBuf [11:05:19]FM_MakeSignedData [11:05:19]FM_MakeSignedData [11:05:19]SAM_PROTO_SignData [11:05:19]wFMCommunicate request_size=4 [11:05:19]MH_SAM_APDU [11:05:19]CAPDU: 80 0D 01 02 [11:05:19]Write to MH i2c: E2 08 00 D2 08 80 0D 01 02 00 00 00 00 53 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:19]Read from MH i2c: E2 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 03 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 03 00 D2 08 00 90 00 4E [11:05:19]RAPDU: 90 00 [11:05:19]wFMCommunicate OK [11:05:19]wFMCommunicate request_size=255 [11:05:19]MH_SAM_APDU [11:05:19]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F0 3D BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [11:05:19]Write to MH i2c: E2 02 01 D3 08 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F0 3D BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 AD [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:19]Read from MH i2c: E2 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 03 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: E2 03 00 D3 08 00 90 00 4F [11:05:19]RAPDU: 90 00 [11:05:19]wFMCommunicate OK [11:05:19]wFMCommunicate request_size=27 [11:05:19]MH_SAM_APDU [11:05:19]CAPDU: 80 0D 02 02 16 34 39 31 35 10 04 04 00 0F 14 01 00 35 04 06 00 6B 58 C8 95 94 3B [11:05:19]Write to MH i2c: E2 1E 00 D4 08 80 0D 02 02 16 00 34 39 31 35 10 04 04 00 0F 14 01 00 35 04 06 00 6B 58 C8 95 94 3B 00 00 BF [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 [11:05:20]MH_I2C_Read... [11:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:20]Read from MH i2c: E2 03 00 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 03 00 D4 08 00 90 00 50 [11:05:20]RAPDU: 90 00 [11:05:20]wFMCommunicate OK [11:05:20]wFMCommunicate request_size=4 [11:05:20]MH_SAM_APDU [11:05:20]CAPDU: 80 0D 03 02 [11:05:20]Write to MH i2c: E2 08 00 D5 08 80 0D 03 02 00 00 00 00 58 [11:05:20]Write i2c OK [11:05:20]MH_I2C_Read... [11:05:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:20]Read from MH i2c: E2 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 0B 00 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 0B 00 D5 08 00 70 B5 D3 2D E3 A9 F1 85 90 00 80 [11:05:20]RAPDU: 70 B5 D3 2D E3 A9 F1 85 90 00 [11:05:20]wFMCommunicate OK [11:05:20]SAM_PROTO_SignData done [11:05:20]FM_MakeSignedData done [11:05:20]CreateOFDProtocolMessage [11:05:20]wFMCommunicate request_size=4 [11:05:20]MH_SAM_APDU [11:05:20]CAPDU: 80 11 00 00 [11:05:20]Write to MH i2c: E2 08 00 D6 08 80 11 00 00 00 00 00 00 58 [11:05:20]Write i2c OK [11:05:20]MH_I2C_Read... [11:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:20]Read from MH i2c: E2 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 17 00 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: E2 17 00 D6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 AD [11:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:05:20]wFMCommunicate OK [11:05:20]CreateOFDProtocolMessage done [11:05:20]OFDSenderStorePacket 70671 [11:05:20]StoreOFDPacket docnum=70671 [11:05:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 20 01 00 00 F1 96 18 01 C3 17 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F0 3D BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0F 14 01 00 35 04 06 00 6B 58 C8 95 94 3B 70 B5 D3 2D E3 A9 F1 85 [11:05:20]CheckFolder [11:05:20]dirname=/storage/ofd_packets [11:05:20]CheckFolder done [11:05:20]ProducePacketName [11:05:20]name=ofd_packets/00070671 [11:05:20]NVStorageSaveData ofd_packets/00070671 [11:05:20]File name is /storage/ofd_packets/00070671 [11:05:20]Write 318 bytes [11:05:20]NVStorageSaveData done [11:05:20]OFDSenderStorePacket done [11:05:20]KKMCreateOFDPacket done [11:05:20]NVStorageSaveData kkm_last_timestamp [11:05:20]File name is /storage/kkm_last_timestamp [11:05:20]Write 4 bytes [11:05:20]NVStorageSaveData done [11:05:20]ExternCall_PrintAddStr [11:05:20]wPrintStart [11:05:20]Write to MH i2c: 01 00 00 D7 08 DF [11:05:20]Write i2c OK [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: 01 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: 01 07 00 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: 01 07 00 D7 08 00 00 00 00 00 FF 0F F4 [11:05:20]RasterBufferAndPrint [11:05:20]line Счет N : (3)17473 [11:05:20]line ИÐÐ: 02508201610067 [11:05:20]line Контрольно-КаÑÑовый Чек [11:05:20]line ПРОДÐЖР[11:05:20]line Товар: 4640030091584 [11:05:20]line Сигареты Esse Gold [11:05:20]line 1.000 * 155.00 [11:05:20]line = 155.00 [11:05:20]line ÐДС 12% ÐСП 1% [11:05:20]line > о реализуемом товаре [11:05:20]line ИТОГО: 155.00 [11:05:20]line ÐСП 1% : 1.37 [11:05:20]line ÐДС 12% : 16.46 [11:05:20]line Ðаличными: 155.00 [11:05:20]line Безнал.: 0.00 [11:05:20]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [11:05:20]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [11:05:20]line СÐО: Общий режим [11:05:20]line Чек 25 13.08.2024 11:05 [11:05:20]line Смена: 466 ФФД: 1.0 [11:05:20]line ЗÐМ: 0300000140 [11:05:20]line РÐМ: 0000000000090913 [11:05:20]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:05:20]line ФМ: 0000000000874915 [11:05:20]line ФД: 70671 [11:05:20]line ФПД: 118029066540091 [11:05:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T110520&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70671&fm=118029066540091&tin=02508201610067®Number=0000000000090913&sum=15500 [11:05:20]line 0 [11:05:20]written 0, free lines is 4095 [11:05:20]OFD Sender: Processing packet 70671 [packets to send 67, broken 66] [11:05:20]ProducePacketName [11:05:20]name=ofd_packets/00070671 [11:05:20]OFD Sender: To server: ‡•öpG, [11:05:20]CommunicateWithHost lk.salyk.kg:30040 [11:05:20]ConnectInit lk.salyk.kg [11:05:20]Connected sock=10 [11:05: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 39 31 35 20 01 00 00 F1 96 18 01 C3 17 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F0 3D BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0F 14 01 00 35 04 06 00 6B 58 C8 95 94 3B 70 B5 D3 2D E3 A9 F1 85 [11:05:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 81 42 47 00 B3 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 0F 14 01 00 F4 03 04 00 DB E4 BA 66 B6 04 01 00 00 C8 CF 2A FE B2 E6 57 AF [11:05:20]CommunicateWithHost err = 0 [11:05:20]CheckOFDResponse [11:05:20]1017 (14) - 77093643461234 [11:05:20]1041 (16) - 0000000000874915 [11:05:20]1040 (4) - 70671 [11:05:20]1012 (4) - 13.08.2024 04:45 [11:05:20]1206 (1) - 0 [11:05:20]OFD Sender: Remove packet 70671 [11:05:20]ProducePacketName [11:05:20]name=ofd_packets/00070671 [11:05:20]NVStorageDeleteData [11:05:20]Write to MH i2c: 01 00 00 FF 08 07 [11:05:20]Write i2c OK [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: 01 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: 01 07 00 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: 01 07 00 FF 08 00 00 00 00 00 20 0D 3B [11:05:20]RasterBufferAndPrint [11:05:20]line [11:05:20]line [11:05:20]line [11:05:20]line [11:05:20]line [11:05:20]written 0, free lines is 3366 [11:05:20]MH_Cut [11:05:20]Write to MH i2c: D1 01 00 06 09 01 E1 [11:05:20]Write i2c OK [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: D1 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: D1 01 00 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: D1 01 00 06 09 00 E0 [11:05:20]Write to MH i2c: 01 00 00 07 09 10 [11:05:20]Write i2c OK [11:05:20]MH_I2C_Read... [11:05:20]OFD Sender: No OFD packet to send [11:05:21]*** Cut start [11:05:21]*** Purtial cut [11:05:21]*** Stage 1: CUTSNS_PIN = 1 [11:05:21]Read from MH i2c: 01 [11:05:21]MH_I2C_Read... [11:05:21]*** Stop cut motor [11:05:21]*** Cut end [11:05:21]Read from MH i2c: 01 07 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: 01 07 00 07 09 00 00 00 00 00 FF 0F 25 [11:05:21]process_action close_receipt done [11:05:21]requested_data is exist [11:05:21]produce_requested_data [11:05:21]requested_item fm.sn is exist - process it [11:05:21]wFMCommunicate request_size=4 [11:05:21]MH_SAM_APDU [11:05:21]CAPDU: 80 11 00 00 [11:05:21]Write to MH i2c: E2 08 00 08 09 80 11 00 00 00 00 00 00 8B [11:05:21]Write i2c OK [11:05:21]MH_I2C_Read... [11:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:21]Read from MH i2c: E2 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 17 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 17 00 08 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 E0 [11:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:05:21]wFMCommunicate OK [11:05:21]requested_item fd.num is exist - process it [11:05:21]SAM_PROTO_GetFieldsCounters [11:05:21]wFMCommunicate request_size=4 [11:05:21]MH_SAM_APDU [11:05:21]CAPDU: 80 13 00 00 [11:05:21]Write to MH i2c: E2 08 00 09 09 80 13 00 00 00 00 00 00 8E [11:05:21]Write i2c OK [11:05:21]MH_I2C_Read... [11:05:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:21]Read from MH i2c: E2 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 62 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 62 00 09 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 0F 14 01 00 0E 04 04 00 D2 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 F0 [11:05: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 0F 14 01 00 0E 04 04 00 D2 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 [11:05:21]wFMCommunicate OK [11:05:21]SAM_PROTO_GetFieldsCounters done [11:05:21]requested_item shift.num is exist - process it [11:05:21]requested_item shift.opened is exist - process it [11:05:21]req_shift_opened [11:05:21]FM_GetShiftState [11:05:21]SAM_PROTO_GetShiftState [11:05:21]wFMCommunicate request_size=4 [11:05:21]MH_SAM_APDU [11:05:21]CAPDU: 80 13 01 00 [11:05:21]Write to MH i2c: E2 08 00 0A 09 80 13 01 00 00 00 00 00 90 [11:05:21]Write i2c OK [11:05:21]MH_I2C_Read... [11:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:21]Read from MH i2c: E2 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 0E 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 0E 00 0A 09 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 FF [11:05:21]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [11:05:21]wFMCommunicate OK [11:05:21]SAM_PROTO_GetShiftState done [11:05:21]FM_GetShiftState done [11:05:21]req_shift_opened done [11:05:21]requested_item shift.open_date is exist - process it [11:05:21]req_shift_open_date [11:05:21]req_shift_open_date done [11:05:21]produce_requested_data done [11:05:21]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70671,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [11:05:21]process_action_free close_receipt [11:05:21]json_value_free [11:05:21]json_value_free done [11:05:21]process_json_proto returns [11:05:21]Send response to host [11:05:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70671,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [11:05:21]free response buf [11:05:21]execute_script done [11:05:21]execute_script returns [11:05:21]free content buf [11:05:21]Sock 9.Close socket [11:05:21]Sock 9.Thread stoped [11:05:25]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:08:56]int [11:08:56]Write to MH i2c: 01 00 00 0B 09 14 [11:08:56]*** FLAG_PRN_KEY set [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: 01 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: 01 07 00 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: 01 07 00 0B 09 00 08 00 00 00 FF 0F 31 [11:08:56]state=0 [11:08:56]Key pressed [11:08:56]Feed [11:08:56]Write to MH i2c: D8 00 00 0C 09 EC [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: D8 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: D8 01 00 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: D8 01 00 0C 09 00 ED [11:08:56]int [11:08:56]Write to MH i2c: 01 00 00 0D 09 16 [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: 01 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: 01 07 00 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: 01 07 00 0D 09 00 48 00 00 00 3C 00 A1 [11:08:56]state=2 [11:08:56]Key pressed [11:08:56]int [11:08:56]Write to MH i2c: 01 00 00 0E 09 17 [11:08:56]*** FLAG_PRN_KEY reset [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: 01 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: 01 07 00 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: 01 07 00 0E 09 00 00 00 00 00 F6 0F 23 [11:08:56]state=2 [11:08:56]Stop feed [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:49]accept exits with 7 [11:15:49]New connection [11:15:49]New thread 3067215204 created [11:15:49]Thread 3067358564 joined [11:15:49]Waiting for new connection... [11:15:49] Sock 7.Parse request [11:15:49]Sock 7.Check first char [11:15:49]Sock 7.First char is OK [11:15:49]request: POST /json_proto HTTP/1.0 [11:15:49]Method: POST [11:15:49]URL: /json_proto [11:15:49]Method is POST - this is cgi request [11:15:49]url: /json_proto [11:15:49]query_string will be loaded in cgi processing [11:15:49]execute_cgi json_proto POST (null) [11:15:49]execute_cgi path=json_proto method=POST [11:15:49]POST find Content-Length [11:15:49]Host: 172.17.58.67:8080 [11:15:49]Content-Length: 661 [11:15:49]Content-Type: application/json [11:15:49] [11:15:49]POST finish read [11:15:49]Found Content-Length = 661 [11:15:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.000, "sum" : 659.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 659.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:49]execute_script... [11:15: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)141129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.000, "sum" : 659.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 659.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:49]POST & json_proto [11:15:49]process_json_proto [11:15:49]json parsed OK: [11:15:49]protocol is kg_v1.0 [11:15:49]action value=close_receipt [11:15:49]process_action close_receipt [11:15:49]cmd_close_receipt [11:15:49]MH_GetDate [11:15:49]Write to MH i2c: F0 00 00 0F 09 07 [11:15:49]Write i2c OK [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: F0 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: F0 09 00 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: F0 09 00 0F 09 00 67 40 BB 66 94 51 63 64 84 [11:15:49]GetLastDocTimeStamp 1723547120 [11:15:49]current date 1723547751 [11:15:49]FM_GetShiftState [11:15:49]SAM_PROTO_GetShiftState [11:15:49]wFMCommunicate request_size=4 [11:15:49]MH_SAM_APDU [11:15:49]CAPDU: 80 13 01 00 [11:15:49]Write to MH i2c: E2 08 00 10 09 80 13 01 00 00 00 00 00 96 [11:15:49]Write i2c OK [11:15:49]MH_I2C_Read... [11:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:49]Read from MH i2c: E2 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: E2 0E 00 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: E2 0E 00 10 09 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 05 [11:15:49]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [11:15:49]wFMCommunicate OK [11:15:49]SAM_PROTO_GetShiftState done [11:15:49]FM_GetShiftState done [11:15:49]opened in 1723509656 [11:15:49]opened+sec_in_day 1723596056 [11:15:49]quantity*price = 65900 [11:15:49]sum+1 = 65901 [11:15:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 659.00 ВнеÑено: 1000.00 СДÐЧÐ: 341.00 ÐСП 1% : 5.83 ÐДС 12% : 69.98 Ðаличными: 659.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 26 13.08.2024 11:15 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70672 ФПД: 251546214381031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T111551&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70672&fm=251546214381031&tin=02508201610067®Number=0000000000090913&sum=65900 [11:15:50]StoreToDocumentArchive [11:15:50]shift 466 fd 70672 [11:15:50]save to /storage/0466/doc_00070672 [11:15:50]save last doc name /storage/0466/doc_00070672 to /storage/kkm_last_doc_name [11:15:50]save OK [11:15:50]Clear old archive folders... [11:15:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:50]tlvbuf is 017F10C0 [11:15:50]SAM_PROTO_ClearQueue [11:15:50]wFMCommunicate request_size=4 [11:15:50]MH_SAM_APDU [11:15:50]CAPDU: 80 09 00 00 [11:15:50]Write to MH i2c: E2 08 00 1D 09 80 09 00 00 00 00 00 00 98 [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:50]Read from MH i2c: E2 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 03 00 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [11:15:50]RAPDU: 90 00 [11:15:50]wFMCommunicate OK [11:15:50]SAM_PROTO_ClearQueue done [11:15:50]KKMCreateOFDPacket [11:15:50]OFDProtocolAddRootSTLVToBuf [11:15:50]FM_MakeSignedData [11:15:50]FM_MakeSignedData [11:15:50]SAM_PROTO_SignData [11:15:50]wFMCommunicate request_size=4 [11:15:50]MH_SAM_APDU [11:15:50]CAPDU: 80 0D 01 02 [11:15:50]Write to MH i2c: E2 08 00 1E 09 80 0D 01 02 00 00 00 00 A0 [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:50]Read from MH i2c: E2 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 03 00 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 03 00 1E 09 00 90 00 9B [11:15:50]RAPDU: 90 00 [11:15:50]wFMCommunicate OK [11:15:50]wFMCommunicate request_size=255 [11:15:50]MH_SAM_APDU [11:15:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 6C 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 1A 00 00 00 F4 03 04 00 67 40 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 10 14 01 00 35 04 06 00 E4 [11:15:50]Write to MH i2c: E2 02 01 1F 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 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 6C 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 1A 00 00 00 F4 03 04 00 67 40 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 10 14 01 00 35 04 06 00 E4 00 00 79 [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:50]Read from MH i2c: E2 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 03 00 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 03 00 1F 09 00 90 00 9C [11:15:50]RAPDU: 90 00 [11:15:50]wFMCommunicate OK [11:15:50]wFMCommunicate request_size=10 [11:15:50]MH_SAM_APDU [11:15:50]CAPDU: 80 0D 02 02 05 C7 AA C0 B5 E7 [11:15:50]Write to MH i2c: E2 0D 00 20 09 80 0D 02 02 05 00 C7 AA C0 B5 E7 00 00 7A [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:50]Read from MH i2c: E2 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 03 00 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 03 00 20 09 00 90 00 9D [11:15:50]RAPDU: 90 00 [11:15:50]wFMCommunicate OK [11:15:50]wFMCommunicate request_size=4 [11:15:50]MH_SAM_APDU [11:15:50]CAPDU: 80 0D 03 02 [11:15:50]Write to MH i2c: E2 08 00 21 09 80 0D 03 02 00 00 00 00 A5 [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:50]Read from MH i2c: E2 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 0B 00 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 0B 00 21 09 00 80 3E 49 30 7B 6A 7E B8 90 00 F8 [11:15:50]RAPDU: 80 3E 49 30 7B 6A 7E B8 90 00 [11:15:50]wFMCommunicate OK [11:15:50]SAM_PROTO_SignData done [11:15:50]FM_MakeSignedData done [11:15:50]CreateOFDProtocolMessage [11:15:50]wFMCommunicate request_size=4 [11:15:50]MH_SAM_APDU [11:15:50]CAPDU: 80 11 00 00 [11:15:50]Write to MH i2c: E2 08 00 22 09 80 11 00 00 00 00 00 00 A5 [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:50]Read from MH i2c: E2 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 17 00 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 17 00 22 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 FA [11:15:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:15:50]wFMCommunicate OK [11:15:50]CreateOFDProtocolMessage done [11:15:50]OFDSenderStorePacket 70672 [11:15:50]StoreOFDPacket docnum=70672 [11:15:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 CF 1E 07 01 6F 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 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 6C 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 1A 00 00 00 F4 03 04 00 67 40 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 10 14 01 00 35 04 06 00 E4 C7 AA C0 B5 E7 80 3E 49 30 7B 6A 7E B8 [11:15:50]CheckFolder [11:15:50]dirname=/storage/ofd_packets [11:15:50]CheckFolder done [11:15:50]ProducePacketName [11:15:50]name=ofd_packets/00070672 [11:15:50]NVStorageSaveData ofd_packets/00070672 [11:15:50]File name is /storage/ofd_packets/00070672 [11:15:50]Write 301 bytes [11:15:50]NVStorageSaveData done [11:15:50]OFDSenderStorePacket done [11:15:50]KKMCreateOFDPacket done [11:15:50]NVStorageSaveData kkm_last_timestamp [11:15:50]File name is /storage/kkm_last_timestamp [11:15:50]Write 4 bytes [11:15:50]NVStorageSaveData done [11:15:50]OFD Sender: Processing packet 70672 [packets to send 67, broken 66] [11:15:50]ProducePacketName [11:15:50]name=ofd_packets/00070672 [11:15:50]OFD Sender: To server: ‡•öpG, [11:15:50]CommunicateWithHost lk.salyk.kg:30040 [11:15:50]ConnectInit lk.salyk.kg [11:15:50]ExternCall_PrintAddStr [11:15:50]wPrintStart [11:15:50]Write to MH i2c: 01 00 00 23 09 2C [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: 01 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: 01 07 00 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: 01 07 00 23 09 00 00 00 00 00 FF 0F 41 [11:15:50]RasterBufferAndPrint [11:15:50]line Счет N : (1)141129 [11:15:50]line ИÐÐ: 02508201610067 [11:15:50]line Контрольно-КаÑÑовый Чек [11:15:50]line ПРОДÐЖР[11:15:50]line ТРК (МРК, ГÐК) : 41 [11:15:50]line Товар: 2710124130 [11:15:50]line Ðи-92-К-5 [11:15:50]line 10.000 * 65.90 [11:15:50]line = 659.00 [11:15:50]line ÐДС 12% ÐСП 1% [11:15:50]line > о реализуемом товаре [11:15:50]line ИТОГО: 659.00 [11:15:50]line ВнеÑено: 1000.00 [11:15:50]line СДÐЧÐ: 341.00 [11:15:50]line ÐСП 1% : 5.83 [11:15:50]line ÐДС 12% : 69.98 [11:15:50]line Ðаличными: 659.00 [11:15:50]line Безнал.: 0.00 [11:15:50]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [11:15:50]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [11:15:50]line СÐО: Общий режим [11:15:50]line Чек 26 13.08.2024 11:15 [11:15:50]line Смена: 466 ФФД: 1.0 [11:15:50]line ЗÐМ: 0300000140 [11:15:50]line РÐМ: 0000000000090913 [11:15:50]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:15:50]line ФМ: 0000000000874915 [11:15:50]line ФД: 70672 [11:15:50]line ФПД: 251546214381031 [11:15:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T111551&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70672&fm=251546214381031&tin=02508201610067®Number=0000000000090913&sum=65900 [11:15:51]Connected sock=11 [11:15: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 39 31 35 0F 01 00 00 CF 1E 07 01 6F 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 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 6C 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 1A 00 00 00 F4 03 04 00 67 40 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 10 14 01 00 35 04 06 00 E4 C7 AA C0 B5 E7 80 3E 49 30 7B 6A 7E B8 [11:15:51]written 0, free lines is 4095 [11:15:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 D3 E6 47 00 93 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 39 31 35 10 04 04 00 10 14 01 00 F4 03 04 00 52 E7 BA 66 B6 04 01 00 00 76 D6 4B FE 5F F8 5B 90 [11:15:51]CommunicateWithHost err = 0 [11:15:51]CheckOFDResponse [11:15:51]1017 (14) - 77093643461234 [11:15:51]1041 (16) - 0000000000874915 [11:15:51]1040 (4) - 70672 [11:15:51]1012 (4) - 13.08.2024 04:55 [11:15:51]1206 (1) - 0 [11:15:51]OFD Sender: Remove packet 70672 [11:15:51]ProducePacketName [11:15:51]name=ofd_packets/00070672 [11:15:51]NVStorageDeleteData [11:15:51]Write to MH i2c: 01 00 00 4D 09 56 [11:15:51]Write i2c OK [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: 01 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: 01 07 00 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: 01 07 00 4D 09 00 00 00 00 00 01 0D 6B [11:15:51]RasterBufferAndPrint [11:15:51]line [11:15:51]line [11:15:51]line [11:15:51]line [11:15:51]line [11:15:51]written 0, free lines is 3335 [11:15:51]MH_Cut [11:15:51]Write to MH i2c: D1 01 00 54 09 01 2F [11:15:51]Write i2c OK [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: D1 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: D1 01 00 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: D1 01 00 54 09 00 2E [11:15:51]Write to MH i2c: 01 00 00 55 09 5E [11:15:51]Write i2c OK [11:15:51]MH_I2C_Read... [11:15:51]OFD Sender: No OFD packet to send [11:15:52]*** Cut start [11:15:52]*** Purtial cut [11:15:52]*** CUTSNS_PIN = 0 [11:15:52]*** Stage 1: CUTSNS_PIN = 1 [11:15:54]Read from MH i2c: 01 [11:15:54]MH_I2C_Read... [11:15:54]*** Stop cut motor [11:15:54]*** Cut end [11:15:54]Read from MH i2c: 01 07 00 [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: 01 07 00 55 09 00 00 00 00 00 FF 0F 73 [11:15:54]process_action close_receipt done [11:15:54]requested_data is exist [11:15:54]produce_requested_data [11:15:54]requested_item fm.sn is exist - process it [11:15:54]wFMCommunicate request_size=4 [11:15:54]MH_SAM_APDU [11:15:54]CAPDU: 80 11 00 00 [11:15:54]Write to MH i2c: E2 08 00 56 09 80 11 00 00 00 00 00 00 D9 [11:15:54]Write i2c OK [11:15:54]MH_I2C_Read... [11:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:54]Read from MH i2c: E2 [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: E2 17 00 [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: E2 17 00 56 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 2E [11:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:15:54]wFMCommunicate OK [11:15:54]requested_item fd.num is exist - process it [11:15:54]SAM_PROTO_GetFieldsCounters [11:15:54]wFMCommunicate request_size=4 [11:15:54]MH_SAM_APDU [11:15:54]CAPDU: 80 13 00 00 [11:15:54]Write to MH i2c: E2 08 00 57 09 80 13 00 00 00 00 00 00 DC [11:15:54]Write i2c OK [11:15:54]MH_I2C_Read... [11:15:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:54]Read from MH i2c: E2 [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: E2 62 00 [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: E2 62 00 57 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 10 14 01 00 0E 04 04 00 D2 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 42 [11:15: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 10 14 01 00 0E 04 04 00 D2 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 [11:15:54]wFMCommunicate OK [11:15:54]SAM_PROTO_GetFieldsCounters done [11:15:54]requested_item shift.num is exist - process it [11:15:54]requested_item shift.opened is exist - process it [11:15:54]req_shift_opened [11:15:54]FM_GetShiftState [11:15:54]SAM_PROTO_GetShiftState [11:15:54]wFMCommunicate request_size=4 [11:15:54]MH_SAM_APDU [11:15:54]CAPDU: 80 13 01 00 [11:15:54]Write to MH i2c: E2 08 00 58 09 80 13 01 00 00 00 00 00 DE [11:15:54]Write i2c OK [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: E2 [11:15:54]MH_I2C_Read... [11:15:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:54]Read from MH i2c: E2 0E 00 [11:15:54]MH_I2C_Read... [11:15:54]Read from MH i2c: E2 0E 00 58 09 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 4D [11:15:54]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [11:15:54]wFMCommunicate OK [11:15:54]SAM_PROTO_GetShiftState done [11:15:54]FM_GetShiftState done [11:15:54]req_shift_opened done [11:15:54]requested_item shift.open_date is exist - process it [11:15:54]req_shift_open_date [11:15:54]req_shift_open_date done [11:15:54]produce_requested_data done [11:15:54]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70672,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [11:15:54]process_action_free close_receipt [11:15:54]json_value_free [11:15:54]json_value_free done [11:15:54]process_json_proto returns [11:15:54]Send response to host [11:15:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70672,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [11:15:54]free response buf [11:15:54]execute_script done [11:15:54]execute_script returns [11:15:54]free content buf [11:15:54]Sock 7.Close socket [11:15:54]Sock 7.Thread stoped [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:13]int [11:16:13]Write to MH i2c: 01 00 00 59 09 62 [11:16:13]*** FLAG_PRN_KEY set [11:16:13]Write i2c OK [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: 01 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: 01 07 00 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: 01 07 00 59 09 00 08 00 00 00 FF 0F 7F [11:16:13]state=0 [11:16:13]Key pressed [11:16:13]Feed [11:16:13]Write to MH i2c: D8 00 00 5A 09 3A [11:16:13]Write i2c OK [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: D8 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: D8 01 00 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: D8 01 00 5A 09 00 3B [11:16:13]int [11:16:13]Write to MH i2c: 01 00 00 5B 09 64 [11:16:13]Write i2c OK [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: 01 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: 01 07 00 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: 01 07 00 5B 09 00 48 00 00 00 3C 00 EF [11:16:13]state=2 [11:16:13]Key pressed [11:16:14]int [11:16:14]Write to MH i2c: 01 00 00 5C 09 65 [11:16:14]*** FLAG_PRN_KEY reset [11:16:14]Write i2c OK [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: 01 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: 01 07 00 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: 01 07 00 5C 09 00 00 00 00 00 F6 0F 71 [11:16:14]state=2 [11:16:14]Stop feed [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:37]OFD Sender: No OFD packet to send [11:16:42]OFD Sender: No OFD packet to send [11:16:47]OFD Sender: No OFD packet to send [11:16:52]OFD Sender: No OFD packet to send [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:17]OFD Sender: No OFD packet to send [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:26:00]ConnectInit Can't connect to host [11:26:01]ConnectInit Can't take IP for lk.salyk.kg [11:26:01]CommunicateWithHost connect error [11:26:01]CommunicateWithHost err = -1 [11:26:01]OFD Sender: Server communicate error [11:26:06]OFD Sender: Processing packet 70673 [packets to send 67, broken 66] [11:26:06]ProducePacketName [11:26:06]name=ofd_packets/00070673 [11:26:06]OFD Sender: To server: ‡•öpG, [11:26:06]CommunicateWithHost lk.salyk.kg:30040 [11:26:06]ConnectInit lk.salyk.kg [11:26:06]Connected sock=9 [11:26: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 39 31 35 0F 01 00 00 BA 25 07 01 6A FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1B 00 00 00 F4 03 04 00 9B 42 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 11 14 01 00 35 04 06 00 6F 64 14 98 A2 6D 2D E1 DC 07 1D BF 84 21 [11:26:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 12 5A 47 00 DC 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 11 14 01 00 F4 03 04 00 B7 E9 BA 66 B6 04 01 00 00 4E EE 0E 1E ED CC 5C 6E [11:26:07]CommunicateWithHost err = 0 [11:26:07]CheckOFDResponse [11:26:07]1017 (14) - 77093643461234 [11:26:07]1041 (16) - 0000000000874915 [11:26:07]1040 (4) - 70673 [11:26:07]1012 (4) - 13.08.2024 05:05 [11:26:07]1206 (1) - 0 [11:26:07]OFD Sender: Remove packet 70673 [11:26:07]ProducePacketName [11:26:07]name=ofd_packets/00070673 [11:26:07]NVStorageDeleteData [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:41]int [11:27:41]Write to MH i2c: 01 00 00 68 00 68 [11:27:41]*** FLAG_PRN_KEY set [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: 01 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: 01 07 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: 01 07 00 68 00 00 08 00 00 00 FF 0F 85 [11:27:41]state=0 [11:27:41]Key pressed [11:27:41]Feed [11:27:41]Write to MH i2c: D8 00 00 69 00 40 [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: D8 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: D8 01 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: D8 01 00 69 00 00 41 [11:27:41]int [11:27:41]Write to MH i2c: 01 00 00 6A 00 6A [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: 01 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: 01 07 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: 01 07 00 6A 00 00 48 00 00 00 3C 00 F5 [11:27:41]state=2 [11:27:41]Key pressed [11:27:41]int [11:27:41]Write to MH i2c: 01 00 00 6B 00 6B [11:27:41]*** FLAG_PRN_KEY reset [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: 01 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: 01 07 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: 01 07 00 6B 00 00 00 00 00 00 F6 0F 77 [11:27:41]state=2 [11:27:41]Stop feed [11:27:42]OFD Sender: No OFD packet to send [11:27:47]accept exits with 7 [11:27:47]New connection [11:27:47]New thread 3066633572 created [11:27:47]Thread 3066776932 joined [11:27:47]Waiting for new connection... [11:27:47] Sock 7.Parse request [11:27:47]Sock 7.Check first char [11:27:47]Sock 7.First char is OK [11:27:47]request: POST /json_proto HTTP/1.0 [11:27:47]Method: POST [11:27:47]URL: /json_proto [11:27:47]Method is POST - this is cgi request [11:27:47]url: /json_proto [11:27:47]query_string will be loaded in cgi processing [11:27:47]execute_cgi json_proto POST (null) [11:27:47]execute_cgi path=json_proto method=POST [11:27:47]POST find Content-Length [11:27:47]Host: 172.17.58.67:8080 [11:27:47]Content-Length: 679 [11:27:47]Content-Type: application/json [11:27:47] [11:27:47]POST finish read [11:27:47]Found Content-Length = 679 [11:27:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.62, "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" ] } } [11:27:47]execute_script... [11:27: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)141131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.62, "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" ] } } [11:27:47]POST & json_proto [11:27:47]process_json_proto [11:27:47]json parsed OK: [11:27:47]protocol is kg_v1.0 [11:27:47]action value=close_receipt [11:27:47]process_action close_receipt [11:27:47]cmd_close_receipt [11:27:47]MH_GetDate [11:27:47]Write to MH i2c: F0 00 00 6C 00 5B [11:27:47]Write i2c OK [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: F0 [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: F0 09 00 [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: F0 09 00 6C 00 00 33 43 BB 66 94 51 63 64 A7 [11:27:47]GetLastDocTimeStamp 1723548315 [11:27:47]current date 1723548467 [11:27:47]FM_GetShiftState [11:27:47]SAM_PROTO_GetShiftState [11:27:47]wFMCommunicate request_size=4 [11:27:47]MH_SAM_APDU [11:27:47]CAPDU: 80 13 01 00 [11:27:47]Write to MH i2c: E2 08 00 6D 00 80 13 01 00 00 00 00 00 EA [11:27:47]Write i2c OK [11:27:47]MH_I2C_Read... [11:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:47]Read from MH i2c: E2 [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: E2 0E 00 [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: E2 0E 00 6D 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 59 [11:27:47]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [11:27:47]wFMCommunicate OK [11:27:47]SAM_PROTO_GetShiftState done [11:27:47]FM_GetShiftState done [11:27:47]opened in 1723509656 [11:27:47]opened+sec_in_day 1723596056 [11:27:47]quantity*price = 200061 [11:27:47]sum+1 = 200063 [11:27:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.62 ИТОГО: 2000.00 ВнеÑено: 2000.00 СДÐЧÐ: 0.00 ÐСП 1% : 17.70 ÐДС 12% : 212.45 Ðаличными: 2000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 28 13.08.2024 11:27 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70674 ФПД: 109617251596889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T112747&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70674&fm=109617251596889&tin=02508201610067®Number=0000000000090913&sum=200000 [11:27:48]StoreToDocumentArchive [11:27:48]shift 466 fd 70674 [11:27:48]save to /storage/0466/doc_00070674 [11:27:48]save last doc name /storage/0466/doc_00070674 to /storage/kkm_last_doc_name [11:27:48]save OK [11:27:48]Clear old archive folders... [11:27:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:27:48]tlvbuf is 0201AA40 [11:27:48]SAM_PROTO_ClearQueue [11:27:48]wFMCommunicate request_size=4 [11:27:48]MH_SAM_APDU [11:27:48]CAPDU: 80 09 00 00 [11:27:48]Write to MH i2c: E2 08 00 7A 00 80 09 00 00 00 00 00 00 EC [11:27:48]Write i2c OK [11:27:48]MH_I2C_Read... [11:27:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:48]Read from MH i2c: E2 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: E2 03 00 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: E2 03 00 7A 00 00 90 00 EE [11:27:48]RAPDU: 90 00 [11:27:48]wFMCommunicate OK [11:27:48]SAM_PROTO_ClearQueue done [11:27:48]KKMCreateOFDPacket [11:27:48]OFDProtocolAddRootSTLVToBuf [11:27:48]FM_MakeSignedData [11:27:48]FM_MakeSignedData [11:27:48]SAM_PROTO_SignData [11:27:48]wFMCommunicate request_size=4 [11:27:48]MH_SAM_APDU [11:27:48]CAPDU: 80 0D 01 02 [11:27:48]Write to MH i2c: E2 08 00 7B 00 80 0D 01 02 00 00 00 00 F4 [11:27:48]Write i2c OK [11:27:48]MH_I2C_Read... [11:27:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:48]Read from MH i2c: E2 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: E2 03 00 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [11:27:48]RAPDU: 90 00 [11:27:48]wFMCommunicate OK [11:27:48]wFMCommunicate request_size=255 [11:27:48]MH_SAM_APDU [11:27:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 33 43 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 12 14 01 00 35 04 06 00 63 B2 41 57 [11:27:48]Write to MH i2c: E2 02 01 7C 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 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 33 43 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 12 14 01 00 35 04 06 00 63 B2 41 57 00 00 B7 [11:27:48]Write i2c OK [11:27:48]MH_I2C_Read... [11:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:48]Read from MH i2c: E2 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: E2 03 00 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: E2 03 00 7C 00 00 90 00 F0 [11:27:48]RAPDU: 90 00 [11:27:48]wFMCommunicate OK [11:27:48]wFMCommunicate request_size=7 [11:27:48]MH_SAM_APDU [11:27:48]CAPDU: 80 0D 02 02 02 BA 59 [11:27:48]Write to MH i2c: E2 0A 00 7D 00 80 0D 02 02 02 00 BA 59 00 00 0E [11:27:48]Write i2c OK [11:27:48]MH_I2C_Read... [11:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:48]Read from MH i2c: E2 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: E2 03 00 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: E2 03 00 7D 00 00 90 00 F1 [11:27:48]RAPDU: 90 00 [11:27:48]wFMCommunicate OK [11:27:48]wFMCommunicate request_size=4 [11:27:48]MH_SAM_APDU [11:27:48]CAPDU: 80 0D 03 02 [11:27:48]Write to MH i2c: E2 08 00 7E 00 80 0D 03 02 00 00 00 00 F9 [11:27:48]Write i2c OK [11:27:48]MH_I2C_Read... [11:27:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:48]Read from MH i2c: E2 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: E2 0B 00 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: E2 0B 00 7E 00 00 91 15 58 CC 6E 4D 41 D2 90 00 92 [11:27:48]RAPDU: 91 15 58 CC 6E 4D 41 D2 90 00 [11:27:48]wFMCommunicate OK [11:27:48]SAM_PROTO_SignData done [11:27:48]FM_MakeSignedData done [11:27:48]CreateOFDProtocolMessage [11:27:48]wFMCommunicate request_size=4 [11:27:48]MH_SAM_APDU [11:27:48]CAPDU: 80 11 00 00 [11:27:48]Write to MH i2c: E2 08 00 7F 00 80 11 00 00 00 00 00 00 F9 [11:27:48]Write i2c OK [11:27:48]MH_I2C_Read... [11:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:48]Read from MH i2c: E2 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: E2 17 00 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: E2 17 00 7F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 4E [11:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:27:48]wFMCommunicate OK [11:27:48]CreateOFDProtocolMessage done [11:27:48]OFDSenderStorePacket 70674 [11:27:48]StoreOFDPacket docnum=70674 [11:27:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 10 BC 04 01 17 96 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 33 43 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 12 14 01 00 35 04 06 00 63 B2 41 57 BA 59 91 15 58 CC 6E 4D 41 D2 [11:27:48]CheckFolder [11:27:48]dirname=/storage/ofd_packets [11:27:48]CheckFolder done [11:27:48]ProducePacketName [11:27:48]name=ofd_packets/00070674 [11:27:48]NVStorageSaveData ofd_packets/00070674 [11:27:48]File name is /storage/ofd_packets/00070674 [11:27:48]Write 298 bytes [11:27:48]NVStorageSaveData done [11:27:48]OFDSenderStorePacket done [11:27:48]KKMCreateOFDPacket done [11:27:48]NVStorageSaveData kkm_last_timestamp [11:27:48]File name is /storage/kkm_last_timestamp [11:27:48]Write 4 bytes [11:27:48]NVStorageSaveData done [11:27:48]ExternCall_PrintAddStr [11:27:48]wPrintStart [11:27:48]Write to MH i2c: 01 00 00 80 00 80 [11:27:48]Write i2c OK [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: 01 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: 01 07 00 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: 01 07 00 80 00 00 00 00 00 00 FF 0F 95 [11:27:48]RasterBufferAndPrint [11:27:48]line Счет N : (1)141131 [11:27:48]line ИÐÐ: 02508201610067 [11:27:48]line Контрольно-КаÑÑовый Чек [11:27:48]line ПРОДÐЖР[11:27:48]line ТРК (МРК, ГÐК) : 34 [11:27:48]line Товар: 2710194210 [11:27:48]line ДТ-К-5 [11:27:48]line 26.890 * 74.40 [11:27:48]line = 2000.62 [11:27:48]line ÐДС 12% ÐСП 1% [11:27:48]line > о реализуемом товаре [11:27:48]line ОКРУГЛЕÐИЕ: -0.62 [11:27:48]line ИТОГО: 2000.00 [11:27:48]line ВнеÑено: 2000.00 [11:27:48]line СДÐЧÐ: 0.00 [11:27:48]line ÐСП 1% : 17.70 [11:27:48]line ÐДС 12% : 212.45 [11:27:48]line Ðаличными: 2000.00 [11:27:48]line Безнал.: 0.00 [11:27:48]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [11:27:48]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [11:27:48]line СÐО: Общий режим [11:27:48]line Чек 28 13.08.2024 11:27 [11:27:48]line Смена: 466 ФФД: 1.0 [11:27:48]line ЗÐМ: 0300000140 [11:27:48]line РÐМ: 0000000000090913 [11:27:48]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:27:48]line ФМ: 0000000000874915 [11:27:48]line ФД: 70674 [11:27:48]line ФПД: 109617251596889 [11:27:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T112747&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70674&fm=109617251596889&tin=02508201610067®Number=0000000000090913&sum=200000 [11:27:49]OFD Sender: Processing packet 70674 [packets to send 67, broken 66] [11:27:49]ProducePacketName [11:27:49]name=ofd_packets/00070674 [11:27:49]OFD Sender: To server: ‡•öpG, [11:27:49]CommunicateWithHost lk.salyk.kg:30040 [11:27:49]ConnectInit lk.salyk.kg [11:27:49]written 0, free lines is 4095 [11:27:49]Connected sock=10 [11:27: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 39 31 35 0C 01 00 00 10 BC 04 01 17 96 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 33 43 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 12 14 01 00 35 04 06 00 63 B2 41 57 BA 59 91 15 58 CC 6E 4D 41 D2 [11:27:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 EF B9 47 00 62 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 31 35 10 04 04 00 12 14 01 00 F4 03 04 00 1E EA BA 66 B6 04 01 00 00 3F 6C 98 0A 22 2C 25 F6 [11:27:49]CommunicateWithHost err = 0 [11:27:49]CheckOFDResponse [11:27:49]1017 (14) - 77093643461234 [11:27:49]1041 (16) - 0000000000874915 [11:27:49]1040 (4) - 70674 [11:27:49]1012 (4) - 13.08.2024 05:07 [11:27:49]1206 (1) - 0 [11:27:49]OFD Sender: Remove packet 70674 [11:27:49]ProducePacketName [11:27:49]name=ofd_packets/00070674 [11:27:49]NVStorageDeleteData [11:27:49]Write to MH i2c: 01 00 00 AB 00 AB [11:27:49]Write i2c OK [11:27:49]MH_I2C_Read... [11:27:49]Read from MH i2c: 01 [11:27:49]MH_I2C_Read... [11:27:49]Read from MH i2c: 01 07 00 [11:27:49]MH_I2C_Read... [11:27:49]Read from MH i2c: 01 07 00 AB 00 00 00 00 00 00 F4 0C B2 [11:27:49]RasterBufferAndPrint [11:27:49]line [11:27:49]line [11:27:49]line [11:27:49]line [11:27:49]line [11:27:49]written 0, free lines is 3322 [11:27:49]MH_Cut [11:27:49]Write to MH i2c: D1 01 00 B2 00 01 84 [11:27:49]Write i2c OK [11:27:49]MH_I2C_Read... [11:27:49]Read from MH i2c: D1 [11:27:49]MH_I2C_Read... [11:27:49]Read from MH i2c: D1 01 00 [11:27:49]MH_I2C_Read... [11:27:49]Read from MH i2c: D1 01 00 B2 00 00 83 [11:27:49]Write to MH i2c: 01 00 00 B3 00 B3 [11:27:49]Write i2c OK [11:27:49]MH_I2C_Read... [11:27:49]OFD Sender: No OFD packet to send [11:27:50]*** Cut start [11:27:50]*** Purtial cut [11:27:50]*** CUTSNS_PIN = 0 [11:27:50]*** Stage 1: CUTSNS_PIN = 1 [11:27:52]Read from MH i2c: 01 [11:27:52]MH_I2C_Read... [11:27:52]*** Stop cut motor [11:27:52]*** Cut end [11:27:52]Read from MH i2c: 01 07 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: 01 07 00 B3 00 00 00 00 00 00 FF 0F C8 [11:27:52]process_action close_receipt done [11:27:52]requested_data is exist [11:27:52]produce_requested_data [11:27:52]requested_item fm.sn is exist - process it [11:27:52]wFMCommunicate request_size=4 [11:27:52]MH_SAM_APDU [11:27:52]CAPDU: 80 11 00 00 [11:27:52]Write to MH i2c: E2 08 00 B4 00 80 11 00 00 00 00 00 00 2E [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:52]Read from MH i2c: E2 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 17 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 17 00 B4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 83 [11:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:27:52]wFMCommunicate OK [11:27:52]requested_item fd.num is exist - process it [11:27:52]SAM_PROTO_GetFieldsCounters [11:27:52]wFMCommunicate request_size=4 [11:27:52]MH_SAM_APDU [11:27:52]CAPDU: 80 13 00 00 [11:27:52]Write to MH i2c: E2 08 00 B5 00 80 13 00 00 00 00 00 00 31 [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:52]Read from MH i2c: E2 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 62 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 62 00 B5 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 12 14 01 00 0E 04 04 00 D2 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 9F [11:27: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 12 14 01 00 0E 04 04 00 D2 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 [11:27:52]wFMCommunicate OK [11:27:52]SAM_PROTO_GetFieldsCounters done [11:27:52]requested_item shift.num is exist - process it [11:27:52]requested_item shift.opened is exist - process it [11:27:52]req_shift_opened [11:27:52]FM_GetShiftState [11:27:52]SAM_PROTO_GetShiftState [11:27:52]wFMCommunicate request_size=4 [11:27:52]MH_SAM_APDU [11:27:52]CAPDU: 80 13 01 00 [11:27:52]Write to MH i2c: E2 08 00 B6 00 80 13 01 00 00 00 00 00 33 [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:52]Read from MH i2c: E2 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 0E 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 0E 00 B6 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 A2 [11:27:52]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [11:27:52]wFMCommunicate OK [11:27:52]SAM_PROTO_GetShiftState done [11:27:52]FM_GetShiftState done [11:27:52]req_shift_opened done [11:27:52]requested_item shift.open_date is exist - process it [11:27:52]req_shift_open_date [11:27:52]req_shift_open_date done [11:27:52]produce_requested_data done [11:27:52]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70674,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [11:27:52]process_action_free close_receipt [11:27:52]json_value_free [11:27:52]json_value_free done [11:27:52]process_json_proto returns [11:27:52]Send response to host [11:27:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70674,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [11:27:52]free response buf [11:27:52]execute_script done [11:27:52]execute_script returns [11:27:52]free content buf [11:27:52]Sock 7.Close socket [11:27:52]Sock 7.Thread stoped [11:27:53]int [11:27:53]Write to MH i2c: 01 00 00 B7 00 B7 [11:27:53]*** FLAG_PRN_KEY set [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 07 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 07 00 B7 00 00 08 00 00 00 FF 0F D4 [11:27:53]state=0 [11:27:53]Key pressed [11:27:53]Feed [11:27:53]Write to MH i2c: D8 00 00 B8 00 8F [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: D8 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: D8 01 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: D8 01 00 B8 00 00 90 [11:27:53]int [11:27:53]Write to MH i2c: 01 00 00 B9 00 B9 [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 07 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 07 00 B9 00 00 48 00 00 00 3C 00 44 [11:27:53]state=2 [11:27:53]Key pressed [11:27:53]int [11:27:53]Write to MH i2c: 01 00 00 BA 00 BA [11:27:53]*** FLAG_PRN_KEY reset [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 07 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 07 00 BA 00 00 00 00 00 00 FC 0F CC [11:27:53]state=2 [11:27:53]Stop feed [11:27:54]OFD Sender: No OFD packet to send [11:27:54]accept exits with 9 [11:27:54]New connection [11:27:54]New thread 3066776932 created [11:27:54]Thread 3066633572 joined [11:27:54]Waiting for new connection... [11:27:54] Sock 9.Parse request [11:27:54]Sock 9.Check first char [11:27:54]Sock 9.First char is OK [11:27:54]request: POST /json_proto HTTP/1.0 [11:27:54]Method: POST [11:27:54]URL: /json_proto [11:27:54]Method is POST - this is cgi request [11:27:54]url: /json_proto [11:27:54]query_string will be loaded in cgi processing [11:27:54]execute_cgi json_proto POST (null) [11:27:54]execute_cgi path=json_proto method=POST [11:27:54]POST find Content-Length [11:27:54]Host: 172.17.58.67:8080 [11:27:54]Content-Length: 735 [11:27:54]Content-Type: application/json [11:27:54] [11:27:54]POST finish read [11:27:54]Found Content-Length = 735 [11:27:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70674, "base_FM": "0000000000874915", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.62, "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" ] } } [11:27:54]execute_script... [11:27:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70674, "base_FM": "0000000000874915", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.62, "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" ] } } [11:27:54]POST & json_proto [11:27:54]process_json_proto [11:27:54]json parsed OK: [11:27:54]protocol is kg_v1.0 [11:27:54]action value=close_receipt [11:27:54]process_action close_receipt [11:27:54]cmd_close_receipt [11:27:54]MH_GetDate [11:27:54]Write to MH i2c: F0 00 00 BB 00 AA [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: F0 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: F0 09 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: F0 09 00 BB 00 00 3B 43 BB 66 94 51 63 64 FE [11:27:54]GetLastDocTimeStamp 1723548467 [11:27:54]current date 1723548475 [11:27:54]FM_GetShiftState [11:27:54]SAM_PROTO_GetShiftState [11:27:54]wFMCommunicate request_size=4 [11:27:54]MH_SAM_APDU [11:27:54]CAPDU: 80 13 01 00 [11:27:54]Write to MH i2c: E2 08 00 BC 00 80 13 01 00 00 00 00 00 39 [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:55]Read from MH i2c: E2 [11:27:55]MH_I2C_Read... [11:27:55]Read from MH i2c: E2 0E 00 [11:27:55]MH_I2C_Read... [11:27:55]Read from MH i2c: E2 0E 00 BC 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 A8 [11:27:55]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [11:27:55]wFMCommunicate OK [11:27:55]SAM_PROTO_GetShiftState done [11:27:55]FM_GetShiftState done [11:27:55]opened in 1723509656 [11:27:55]opened+sec_in_day 1723596056 [11:27:55]quantity*price = 200061 [11:27:55]sum+1 = 200063 [11:27:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.62 ИТОГО: 2000.00 ÐСП 1% : 17.70 ÐДС 12% : 212.45 Ðаличными: 2000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 29 13.08.2024 11:27 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФД оÑн.: 70674 ФМ оÑн.: 0000000000874915 ФМ: 0000000000874915 ФД: 70675 ФПД: 255415038037432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T112755&type=2&operation_type=1&fn_number=0000000000874915&fd_number=70675&fm=255415038037432&tin=02508201610067®Number=0000000000090913&sum=200000 [11:27:56]StoreToDocumentArchive [11:27:56]shift 466 fd 70675 [11:27:56]save to /storage/0466/doc_00070675 [11:27:56]save last doc name /storage/0466/doc_00070675 to /storage/kkm_last_doc_name [11:27:56]save OK [11:27:56]Clear old archive folders... [11:27:56]ProcessDocumentItem done err = 0, tmpTLVsize=276 [11:27:56]tlvbuf is 02019950 [11:27:56]SAM_PROTO_ClearQueue [11:27:56]wFMCommunicate request_size=4 [11:27:56]MH_SAM_APDU [11:27:56]CAPDU: 80 09 00 00 [11:27:56]Write to MH i2c: E2 08 00 CB 00 80 09 00 00 00 00 00 00 3D [11:27:56]Write i2c OK [11:27:56]MH_I2C_Read... [11:27:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:56]Read from MH i2c: E2 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 03 00 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [11:27:56]RAPDU: 90 00 [11:27:56]wFMCommunicate OK [11:27:56]SAM_PROTO_ClearQueue done [11:27:56]KKMCreateOFDPacket [11:27:56]OFDProtocolAddRootSTLVToBuf [11:27:56]FM_MakeSignedData [11:27:56]FM_MakeSignedData [11:27:56]SAM_PROTO_SignData [11:27:56]wFMCommunicate request_size=4 [11:27:56]MH_SAM_APDU [11:27:56]CAPDU: 80 0D 01 02 [11:27:56]Write to MH i2c: E2 08 00 CC 00 80 0D 01 02 00 00 00 00 45 [11:27:56]Write i2c OK [11:27:56]MH_I2C_Read... [11:27:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:56]Read from MH i2c: E2 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 03 00 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 03 00 CC 00 00 90 00 40 [11:27:56]RAPDU: 90 00 [11:27:56]wFMCommunicate OK [11:27:56]wFMCommunicate request_size=255 [11:27:56]MH_SAM_APDU [11:27:56]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 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 3B 43 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 12 14 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 [11:27:56]Write to MH i2c: E2 02 01 CD 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 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 3B 43 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 12 14 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 00 00 56 [11:27:56]Write i2c OK [11:27:56]MH_I2C_Read... [11:27:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:56]Read from MH i2c: E2 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 03 00 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 03 00 CD 00 00 90 00 41 [11:27:56]RAPDU: 90 00 [11:27:56]wFMCommunicate OK [11:27:56]wFMCommunicate request_size=35 [11:27:56]MH_SAM_APDU [11:27:56]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 13 14 01 00 35 04 06 00 E8 4C 72 9C CD B8 [11:27:56]Write to MH i2c: E2 26 00 CE 00 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 13 14 01 00 35 04 06 00 E8 4C 72 9C CD B8 00 00 2C [11:27:56]Write i2c OK [11:27:56]MH_I2C_Read... [11:27:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:56]Read from MH i2c: E2 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 03 00 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 03 00 CE 00 00 90 00 42 [11:27:56]RAPDU: 90 00 [11:27:56]wFMCommunicate OK [11:27:56]wFMCommunicate request_size=4 [11:27:56]MH_SAM_APDU [11:27:56]CAPDU: 80 0D 03 02 [11:27:56]Write to MH i2c: E2 08 00 CF 00 80 0D 03 02 00 00 00 00 4A [11:27:56]Write i2c OK [11:27:56]MH_I2C_Read... [11:27:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:56]Read from MH i2c: E2 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 0B 00 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 0B 00 CF 00 00 D0 96 5C 11 B8 D9 6E B4 90 00 D1 [11:27:56]RAPDU: D0 96 5C 11 B8 D9 6E B4 90 00 [11:27:56]wFMCommunicate OK [11:27:56]SAM_PROTO_SignData done [11:27:56]FM_MakeSignedData done [11:27:56]CreateOFDProtocolMessage [11:27:56]wFMCommunicate request_size=4 [11:27:56]MH_SAM_APDU [11:27:56]CAPDU: 80 11 00 00 [11:27:56]Write to MH i2c: E2 08 00 D0 00 80 11 00 00 00 00 00 00 4A [11:27:56]Write i2c OK [11:27:56]MH_I2C_Read... [11:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:56]Read from MH i2c: E2 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 17 00 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 17 00 D0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 9F [11:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:27:56]wFMCommunicate OK [11:27:56]CreateOFDProtocolMessage done [11:27:56]OFDSenderStorePacket 70675 [11:27:56]StoreOFDPacket docnum=70675 [11:27:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 28 01 00 00 AD C7 20 01 D2 DF 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 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 3B 43 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 12 14 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 13 14 01 00 35 04 06 00 E8 4C 72 9C CD B8 D0 96 5C 11 B8 D9 6E B4 [11:27:56]CheckFolder [11:27:56]dirname=/storage/ofd_packets [11:27:56]CheckFolder done [11:27:56]ProducePacketName [11:27:56]name=ofd_packets/00070675 [11:27:56]NVStorageSaveData ofd_packets/00070675 [11:27:56]File name is /storage/ofd_packets/00070675 [11:27:56]Write 326 bytes [11:27:56]NVStorageSaveData done [11:27:56]OFDSenderStorePacket done [11:27:56]KKMCreateOFDPacket done [11:27:56]NVStorageSaveData kkm_last_timestamp [11:27:56]File name is /storage/kkm_last_timestamp [11:27:56]Write 4 bytes [11:27:56]NVStorageSaveData done [11:27:56]ExternCall_PrintAddStr [11:27:56]wPrintStart [11:27:56]Write to MH i2c: 01 00 00 D1 00 D1 [11:27:56]Write i2c OK [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: 01 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: 01 07 00 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: 01 07 00 D1 00 00 00 00 00 00 FF 0F E6 [11:27:56]RasterBufferAndPrint [11:27:56]line Счет N : (1)141131 [11:27:56]line ИÐÐ: 02508201610067 [11:27:56]line Контрольно-КаÑÑовый Чек [11:27:56]line ВОЗВРÐТ ПРОДÐЖИ [11:27:56]line ТРК (МРК, ГÐК) : 34 [11:27:56]line Товар: 2710194210 [11:27:56]line ДТ-К-5 [11:27:56]line 26.890 * 74.40 [11:27:56]line = 2000.62 [11:27:56]line ÐДС 12% ÐСП 1% [11:27:56]line > о реализуемом товаре [11:27:56]line ОКРУГЛЕÐИЕ: -0.62 [11:27:56]line ИТОГО: 2000.00 [11:27:56]line ÐСП 1% : 17.70 [11:27:56]line ÐДС 12% : 212.45 [11:27:56]line Ðаличными: 2000.00 [11:27:56]line Безнал.: 0.00 [11:27:56]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [11:27:56]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [11:27:56]line СÐО: Общий режим [11:27:56]line Чек 29 13.08.2024 11:27 [11:27:56]line Смена: 466 ФФД: 1.0 [11:27:56]line ЗÐМ: 0300000140 [11:27:56]line РÐМ: 0000000000090913 [11:27:56]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:27:56]line ФД оÑн.: 70674 [11:27:56]line ФМ оÑн.: 0000000000874915 [11:27:56]line ФМ: 0000000000874915 [11:27:56]line ФД: 70675 [11:27:56]line ФПД: 255415038037432 [11:27:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T112755&type=2&operation_type=1&fn_number=0000000000874915&fd_number=70675&fm=255415038037432&tin=02508201610067®Number=0000000000090913&sum=200000 [11:27:56]written 0, free lines is 4095 [11:27:56]OFD Sender: Processing packet 70675 [packets to send 67, broken 66] [11:27:56]ProducePacketName [11:27:56]name=ofd_packets/00070675 [11:27:56]OFD Sender: To server: ‡•öpG, [11:27:56]CommunicateWithHost lk.salyk.kg:30040 [11:27:56]ConnectInit lk.salyk.kg [11:27:57]Connected sock=10 [11:27: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 39 31 35 28 01 00 00 AD C7 20 01 D2 DF 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 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 3B 43 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 12 14 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 13 14 01 00 35 04 06 00 E8 4C 72 9C CD B8 D0 96 5C 11 B8 D9 6E B4 [11:27:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 A0 9A 47 00 B9 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 13 14 01 00 F4 03 04 00 26 EA BA 66 B6 04 01 00 00 4F 7C C4 85 10 D8 FC 22 [11:27:57]CommunicateWithHost err = 0 [11:27:57]CheckOFDResponse [11:27:57]1017 (14) - 77093643461234 [11:27:57]1041 (16) - 0000000000874915 [11:27:57]1040 (4) - 70675 [11:27:57]1012 (4) - 13.08.2024 05:07 [11:27:57]1206 (1) - 0 [11:27:57]OFD Sender: Remove packet 70675 [11:27:57]ProducePacketName [11:27:57]name=ofd_packets/00070675 [11:27:57]NVStorageDeleteData [11:27:57]Write to MH i2c: 01 00 00 FC 00 FC [11:27:57]Write i2c OK [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: 01 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: 01 07 00 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: 01 07 00 FC 00 00 00 00 00 00 14 0D 24 [11:27:57]RasterBufferAndPrint [11:27:57]line [11:27:57]line [11:27:57]line [11:27:57]line [11:27:57]line [11:27:57]written 0, free lines is 3357 [11:27:57]MH_Cut [11:27:57]Write to MH i2c: D1 01 00 03 01 01 D6 [11:27:57]Write i2c OK [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: D1 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: D1 01 00 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: D1 01 00 03 01 00 D5 [11:27:57]Write to MH i2c: 01 00 00 04 01 05 [11:27:57]Write i2c OK [11:27:57]MH_I2C_Read... [11:27:57]OFD Sender: No OFD packet to send [11:27:58]*** Cut start [11:27:58]*** Purtial cut [11:27:58]*** Stage 1: CUTSNS_PIN = 1 [11:27:58]Read from MH i2c: 01 [11:27:58]MH_I2C_Read... [11:27:58]*** Stop cut motor [11:27:58]*** Cut end [11:27:58]Read from MH i2c: 01 07 00 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: 01 07 00 04 01 00 00 00 00 00 FF 0F 1A [11:27:58]process_action close_receipt done [11:27:58]requested_data is exist [11:27:58]produce_requested_data [11:27:58]requested_item fm.sn is exist - process it [11:27:58]wFMCommunicate request_size=4 [11:27:58]MH_SAM_APDU [11:27:58]CAPDU: 80 11 00 00 [11:27:58]Write to MH i2c: E2 08 00 05 01 80 11 00 00 00 00 00 00 80 [11:27:58]Write i2c OK [11:27:58]MH_I2C_Read... [11:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:58]Read from MH i2c: E2 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: E2 17 00 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: E2 17 00 05 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 D5 [11:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:27:58]wFMCommunicate OK [11:27:58]requested_item fd.num is exist - process it [11:27:58]SAM_PROTO_GetFieldsCounters [11:27:58]wFMCommunicate request_size=4 [11:27:58]MH_SAM_APDU [11:27:58]CAPDU: 80 13 00 00 [11:27:58]Write to MH i2c: E2 08 00 06 01 80 13 00 00 00 00 00 00 83 [11:27:58]Write i2c OK [11:27:58]MH_I2C_Read... [11:27:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:58]Read from MH i2c: E2 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: E2 62 00 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: E2 62 00 06 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 13 14 01 00 0E 04 04 00 D2 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 F5 [11:27:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 13 14 01 00 0E 04 04 00 D2 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 [11:27:58]wFMCommunicate OK [11:27:58]SAM_PROTO_GetFieldsCounters done [11:27:58]requested_item shift.num is exist - process it [11:27:58]requested_item shift.opened is exist - process it [11:27:58]req_shift_opened [11:27:58]FM_GetShiftState [11:27:58]SAM_PROTO_GetShiftState [11:27:58]wFMCommunicate request_size=4 [11:27:58]MH_SAM_APDU [11:27:58]CAPDU: 80 13 01 00 [11:27:58]Write to MH i2c: E2 08 00 07 01 80 13 01 00 00 00 00 00 85 [11:27:58]Write i2c OK [11:27:58]MH_I2C_Read... [11:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:58]Read from MH i2c: E2 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: E2 0E 00 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: E2 0E 00 07 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 F4 [11:27:58]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [11:27:58]wFMCommunicate OK [11:27:58]SAM_PROTO_GetShiftState done [11:27:58]FM_GetShiftState done [11:27:58]req_shift_opened done [11:27:58]requested_item shift.open_date is exist - process it [11:27:58]req_shift_open_date [11:27:58]req_shift_open_date done [11:27:58]produce_requested_data done [11:27:58]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70675,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [11:27:58]process_action_free close_receipt [11:27:58]json_value_free [11:27:58]json_value_free done [11:27:58]process_json_proto returns [11:27:58]Send response to host [11:27:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70675,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [11:27:58]free response buf [11:27:58]execute_script done [11:27:58]execute_script returns [11:27:58]free content buf [11:27:58]Sock 9.Close socket [11:27:58]Sock 9.Thread stoped [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:01]accept exits with 7 [11:43:01]New connection [11:43:01]New thread 3066633572 created [11:43:01]Thread 3066776932 joined [11:43:01]Waiting for new connection... [11:43:01] Sock 7.Parse request [11:43:01]Sock 7.Check first char [11:43:01]Sock 7.First char is OK [11:43:01]request: POST /json_proto HTTP/1.0 [11:43:01]Method: POST [11:43:01]URL: /json_proto [11:43:01]Method is POST - this is cgi request [11:43:01]url: /json_proto [11:43:01]query_string will be loaded in cgi processing [11:43:01]execute_cgi json_proto POST (null) [11:43:01]execute_cgi path=json_proto method=POST [11:43:01]POST find Content-Length [11:43:01]Host: 172.17.58.67:8080 [11:43:01]Content-Length: 1199 [11:43:01]Content-Type: application/json [11:43:01] [11:43:01]POST finish read [11:43:01]Found Content-Length = 1199 [11:43:01]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141132\u000A13.08.2024 11:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 14\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.40\u000A\u0418\u0422\u041E\u0413: 1488.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:01]execute_script... [11:43:01]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141132\u000A13.08.2024 11:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 14\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.40\u000A\u0418\u0422\u041E\u0413: 1488.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:01]POST & json_proto [11:43:01]process_json_proto [11:43:01]json parsed OK: [11:43:01]protocol is kg_v1.0 [11:43:01]action value=print_text [11:43:01]process_action print_text [11:43:01]cmd_print_text [11:43:01]ExternCall_PrintAddStr [11:43:01]wPrintStart [11:43:01]Write to MH i2c: 01 00 00 08 01 09 [11:43:01]Write i2c OK [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: 01 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: 01 07 00 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: 01 07 00 08 01 00 00 00 00 00 FF 0F 1E [11:43:01]RasterBufferAndPrint [11:43:01]line *****ТОВÐРÐЫЙ ЧЕК***** [11:43:01]line ÐЗС 39 [11:43:01]line Партнер нефть [11:43:01]line 02508201610067 [11:43:01]line КаÑÑир : ОваÑбекова Л. [11:43:01]line Счет N : (1)141132 [11:43:01]line 13.08.2024 11:02 [11:43:01]line ПРОДÐЖР[11:43:01]line ТРК (МРК, ГÐК): 14 [11:43:01]line Вид ГСМ : 2710194210 [11:43:01]line ДТ-К-5 [11:43:01]line 20.000 x 74.40 [11:43:01]line ИТОГ: 1488.00 [11:43:01]line Тип оплаты: ТехнологичеÑкий отпуÑк: [11:43:01]line ______________________ [11:43:01]line (подпиÑÑŒ) [11:43:01]written 0, free lines is 4095 [11:43:01]Write to MH i2c: 01 00 00 1B 01 1C [11:43:01]Write i2c OK [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: 01 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: 01 07 00 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: 01 07 00 1B 01 00 00 00 00 00 29 0E 5A [11:43:01]RasterBufferAndPrint [11:43:01]line [11:43:01]line [11:43:01]line [11:43:01]line [11:43:01]line [11:43:01]written 0, free lines is 3626 [11:43:01]MH_Cut [11:43:01]Write to MH i2c: D1 01 00 22 01 01 F5 [11:43:01]Write i2c OK [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: D1 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: D1 01 00 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: D1 01 00 22 01 00 F4 [11:43:01]Write to MH i2c: 01 00 00 23 01 24 [11:43:01]Write i2c OK [11:43:01]MH_I2C_Read... [11:43:01]*** Cut start [11:43:01]*** Purtial cut [11:43:01]*** CUTSNS_PIN = 0 [11:43:02]*** Stage 1: CUTSNS_PIN = 1 [11:43:03]OFD Sender: No OFD packet to send [11:43:04]Read from MH i2c: 01 [11:43:04]MH_I2C_Read... [11:43:04]*** Stop cut motor [11:43:04]*** Cut end [11:43:04]Read from MH i2c: 01 07 00 [11:43:04]MH_I2C_Read... [11:43:04]Read from MH i2c: 01 07 00 23 01 00 00 00 00 00 FF 0F 39 [11:43:04]process_action print_text done [11:43:04]requested_data is exist [11:43:04]produce_requested_data [11:43:04]requested_item fm.sn is exist - process it [11:43:04]wFMCommunicate request_size=4 [11:43:04]MH_SAM_APDU [11:43:04]CAPDU: 80 11 00 00 [11:43:04]Write to MH i2c: E2 08 00 24 01 80 11 00 00 00 00 00 00 9F [11:43:04]Write i2c OK [11:43:04]MH_I2C_Read... [11:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:04]Read from MH i2c: E2 [11:43:04]MH_I2C_Read... [11:43:04]Read from MH i2c: E2 17 00 [11:43:04]MH_I2C_Read... [11:43:04]Read from MH i2c: E2 17 00 24 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 F4 [11:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:43:04]wFMCommunicate OK [11:43:04]requested_item fd.num is exist - process it [11:43:04]SAM_PROTO_GetFieldsCounters [11:43:04]wFMCommunicate request_size=4 [11:43:04]MH_SAM_APDU [11:43:04]CAPDU: 80 13 00 00 [11:43:04]Write to MH i2c: E2 08 00 25 01 80 13 00 00 00 00 00 00 A2 [11:43:04]Write i2c OK [11:43:04]MH_I2C_Read... [11:43:04]Read from MH i2c: E2 [11:43:04]MH_I2C_Read... [11:43:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:04]Read from MH i2c: E2 62 00 [11:43:04]MH_I2C_Read... [11:43:04]Read from MH i2c: E2 62 00 25 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 13 14 01 00 0E 04 04 00 D2 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 14 [11:43: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 13 14 01 00 0E 04 04 00 D2 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 [11:43:04]wFMCommunicate OK [11:43:04]SAM_PROTO_GetFieldsCounters done [11:43:04]requested_item shift.num is exist - process it [11:43:04]requested_item shift.opened is exist - process it [11:43:04]req_shift_opened [11:43:04]FM_GetShiftState [11:43:04]SAM_PROTO_GetShiftState [11:43:04]wFMCommunicate request_size=4 [11:43:04]MH_SAM_APDU [11:43:04]CAPDU: 80 13 01 00 [11:43:04]Write to MH i2c: E2 08 00 26 01 80 13 01 00 00 00 00 00 A4 [11:43:04]Write i2c OK [11:43:04]MH_I2C_Read... [11:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:04]Read from MH i2c: E2 [11:43:04]MH_I2C_Read... [11:43:04]Read from MH i2c: E2 0E 00 [11:43:04]MH_I2C_Read... [11:43:04]Read from MH i2c: E2 0E 00 26 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 13 [11:43:04]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [11:43:04]wFMCommunicate OK [11:43:04]SAM_PROTO_GetShiftState done [11:43:04]FM_GetShiftState done [11:43:04]req_shift_opened done [11:43:04]requested_item shift.open_date is exist - process it [11:43:04]req_shift_open_date [11:43:04]req_shift_open_date done [11:43:04]produce_requested_data done [11:43:04]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70675,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [11:43:04]process_action_free print_text [11:43:04]json_value_free [11:43:04]json_value_free done [11:43:04]process_json_proto returns [11:43:04]Send response to host [11:43:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70675,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [11:43:04]free response buf [11:43:04]execute_script done [11:43:04]execute_script returns [11:43:04]free content buf [11:43:04]Sock 7.Close socket [11:43:04]Sock 7.Thread stoped [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]accept exits with 9 [11:48:23]New connection [11:48:23]New thread 3066776932 created [11:48:23]Thread 3066633572 joined [11:48:23]Waiting for new connection... [11:48:23] Sock 9.Parse request [11:48:23]Sock 9.Check first char [11:48:23]Sock 9.First char is OK [11:48:23]request: POST /json_proto HTTP/1.0 [11:48:23]Method: POST [11:48:23]URL: /json_proto [11:48:23]Method is POST - this is cgi request [11:48:23]url: /json_proto [11:48:23]query_string will be loaded in cgi processing [11:48:23]execute_cgi json_proto POST (null) [11:48:23]execute_cgi path=json_proto method=POST [11:48:23]POST find Content-Length [11:48:23]Host: 172.17.58.67:8080 [11:48:23]Content-Length: 677 [11:48:23]Content-Type: application/json [11:48:23] [11:48:23]POST finish read [11:48:23]Found Content-Length = 677 [11:48:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "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:48:23]execute_script... [11:48: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)141133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "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:48:23]POST & json_proto [11:48:23]process_json_proto [11:48:23]json parsed OK: [11:48:23]protocol is kg_v1.0 [11:48:23]action value=close_receipt [11:48:23]process_action close_receipt [11:48:23]cmd_close_receipt [11:48:23]MH_GetDate [11:48:23]Write to MH i2c: F0 00 00 27 01 17 [11:48:23]Write i2c OK [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: F0 [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: F0 09 00 [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: F0 09 00 27 01 00 07 48 BB 66 94 51 63 64 3C [11:48:23]GetLastDocTimeStamp 1723548475 [11:48:23]current date 1723549703 [11:48:23]FM_GetShiftState [11:48:23]SAM_PROTO_GetShiftState [11:48:23]wFMCommunicate request_size=4 [11:48:23]MH_SAM_APDU [11:48:23]CAPDU: 80 13 01 00 [11:48:23]Write to MH i2c: E2 08 00 28 01 80 13 01 00 00 00 00 00 A6 [11:48:23]Write i2c OK [11:48:23]MH_I2C_Read... [11:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:23]Read from MH i2c: E2 [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: E2 0E 00 [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: E2 0E 00 28 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 15 [11:48:23]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [11:48:23]wFMCommunicate OK [11:48:23]SAM_PROTO_GetShiftState done [11:48:23]FM_GetShiftState done [11:48:23]opened in 1723509656 [11:48:23]opened+sec_in_day 1723596056 [11:48:23]quantity*price = 50018 [11:48:23]sum+1 = 50019 [11:48:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.18 ИТОГО: 500.00 ВнеÑено: 500.00 СДÐЧÐ: 0.00 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 30 13.08.2024 11:48 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70676 ФПД: 137783791442843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T114824&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70676&fm=137783791442843&tin=02508201610067®Number=0000000000090913&sum=50000 [11:48:24]StoreToDocumentArchive [11:48:24]shift 466 fd 70676 [11:48:24]save to /storage/0466/doc_00070676 [11:48:24]save last doc name /storage/0466/doc_00070676 to /storage/kkm_last_doc_name [11:48:24]save OK [11:48:24]Clear old archive folders... [11:48:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:24]tlvbuf is 02018880 [11:48:24]SAM_PROTO_ClearQueue [11:48:24]wFMCommunicate request_size=4 [11:48:24]MH_SAM_APDU [11:48:24]CAPDU: 80 09 00 00 [11:48:24]Write to MH i2c: E2 08 00 35 01 80 09 00 00 00 00 00 00 A8 [11:48:24]Write i2c OK [11:48:24]MH_I2C_Read... [11:48:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:24]Read from MH i2c: E2 [11:48:24]MH_I2C_Read... [11:48:24]Read from MH i2c: E2 03 00 [11:48:24]MH_I2C_Read... [11:48:24]Read from MH i2c: E2 03 00 35 01 00 90 00 AA [11:48:24]RAPDU: 90 00 [11:48:24]wFMCommunicate OK [11:48:24]SAM_PROTO_ClearQueue done [11:48:24]KKMCreateOFDPacket [11:48:24]OFDProtocolAddRootSTLVToBuf [11:48:24]FM_MakeSignedData [11:48:24]FM_MakeSignedData [11:48:24]SAM_PROTO_SignData [11:48:24]wFMCommunicate request_size=4 [11:48:24]MH_SAM_APDU [11:48:24]CAPDU: 80 0D 01 02 [11:48:24]Write to MH i2c: E2 08 00 36 01 80 0D 01 02 00 00 00 00 B0 [11:48:24]Write i2c OK [11:48:24]MH_I2C_Read... [11:48:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:25]Read from MH i2c: E2 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 03 00 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 03 00 36 01 00 90 00 AB [11:48:25]RAPDU: 90 00 [11:48:25]wFMCommunicate OK [11:48:25]wFMCommunicate request_size=255 [11:48:25]MH_SAM_APDU [11:48: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 08 48 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 14 14 01 00 35 04 06 00 7D [11:48:25]Write to MH i2c: E2 02 01 37 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 08 48 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 14 14 01 00 35 04 06 00 7D 00 00 36 [11:48:25]Write i2c OK [11:48:25]MH_I2C_Read... [11:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:25]Read from MH i2c: E2 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 03 00 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 03 00 37 01 00 90 00 AC [11:48:25]RAPDU: 90 00 [11:48:25]wFMCommunicate OK [11:48:25]wFMCommunicate request_size=10 [11:48:25]MH_SAM_APDU [11:48:25]CAPDU: 80 0D 02 02 05 50 49 F1 DB 9B [11:48:25]Write to MH i2c: E2 0D 00 38 01 80 0D 02 02 05 00 50 49 F1 DB 9B 00 00 BD [11:48:25]Write i2c OK [11:48:25]MH_I2C_Read... [11:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:25]Read from MH i2c: E2 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 03 00 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 03 00 38 01 00 90 00 AD [11:48:25]RAPDU: 90 00 [11:48:25]wFMCommunicate OK [11:48:25]wFMCommunicate request_size=4 [11:48:25]MH_SAM_APDU [11:48:25]CAPDU: 80 0D 03 02 [11:48:25]Write to MH i2c: E2 08 00 39 01 80 0D 03 02 00 00 00 00 B5 [11:48:25]Write i2c OK [11:48:25]MH_I2C_Read... [11:48:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:25]Read from MH i2c: E2 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 0B 00 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 0B 00 39 01 00 79 24 CB 14 7B A3 44 52 90 00 E6 [11:48:25]RAPDU: 79 24 CB 14 7B A3 44 52 90 00 [11:48:25]wFMCommunicate OK [11:48:25]SAM_PROTO_SignData done [11:48:25]FM_MakeSignedData done [11:48:25]CreateOFDProtocolMessage [11:48:25]wFMCommunicate request_size=4 [11:48:25]MH_SAM_APDU [11:48:25]CAPDU: 80 11 00 00 [11:48:25]Write to MH i2c: E2 08 00 3A 01 80 11 00 00 00 00 00 00 B5 [11:48:25]Write i2c OK [11:48:25]MH_I2C_Read... [11:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:25]Read from MH i2c: E2 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 17 00 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 17 00 3A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 0A [11:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:48:25]wFMCommunicate OK [11:48:25]CreateOFDProtocolMessage done [11:48:25]OFDSenderStorePacket 70676 [11:48:25]StoreOFDPacket docnum=70676 [11:48:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 3C 69 07 01 AD 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 08 48 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 14 14 01 00 35 04 06 00 7D 50 49 F1 DB 9B 79 24 CB 14 7B A3 44 52 [11:48:25]CheckFolder [11:48:25]dirname=/storage/ofd_packets [11:48:25]CheckFolder done [11:48:25]ProducePacketName [11:48:25]name=ofd_packets/00070676 [11:48:25]NVStorageSaveData ofd_packets/00070676 [11:48:25]File name is /storage/ofd_packets/00070676 [11:48:25]Write 301 bytes [11:48:25]NVStorageSaveData done [11:48:25]OFDSenderStorePacket done [11:48:25]KKMCreateOFDPacket done [11:48:25]NVStorageSaveData kkm_last_timestamp [11:48:25]File name is /storage/kkm_last_timestamp [11:48:25]Write 4 bytes [11:48:25]NVStorageSaveData done [11:48:25]ExternCall_PrintAddStr [11:48:25]wPrintStart [11:48:25]Write to MH i2c: 01 00 00 3B 01 3C [11:48:25]Write i2c OK [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: 01 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: 01 07 00 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 FF 0F 51 [11:48:25]RasterBufferAndPrint [11:48:25]line Счет N : (1)141133 [11:48:25]line ИÐÐ: 02508201610067 [11:48:25]line Контрольно-КаÑÑовый Чек [11:48:25]line ПРОДÐЖР[11:48:25]line ТРК (МРК, ГÐК) : 41 [11:48:25]line Товар: 2710124130 [11:48:25]line Ðи-92-К-5 [11:48:25]line 7.590 * 65.90 [11:48:25]line = 500.18 [11:48:25]line ÐДС 12% ÐСП 1% [11:48:25]line > о реализуемом товаре [11:48:25]line ОКРУГЛЕÐИЕ: -0.18 [11:48:25]line ИТОГО: 500.00 [11:48:25]line ВнеÑено: 500.00 [11:48:25]line СДÐЧÐ: 0.00 [11:48:25]line ÐСП 1% : 4.43 [11:48:25]line ÐДС 12% : 53.12 [11:48:25]line Ðаличными: 500.00 [11:48:25]line Безнал.: 0.00 [11:48:25]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [11:48:25]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [11:48:25]line СÐО: Общий режим [11:48:25]line Чек 30 13.08.2024 11:48 [11:48:25]line Смена: 466 ФФД: 1.0 [11:48:25]line ЗÐМ: 0300000140 [11:48:25]line РÐМ: 0000000000090913 [11:48:25]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:48:25]line ФМ: 0000000000874915 [11:48:25]line ФД: 70676 [11:48:25]line ФПД: 137783791442843 [11:48:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T114824&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70676&fm=137783791442843&tin=02508201610067®Number=0000000000090913&sum=50000 [11:48:25]OFD Sender: Processing packet 70676 [packets to send 67, broken 66] [11:48:25]ProducePacketName [11:48:25]name=ofd_packets/00070676 [11:48:25]OFD Sender: To server: ‡•öpG, [11:48:25]CommunicateWithHost lk.salyk.kg:30040 [11:48:25]ConnectInit lk.salyk.kg [11:48:25]written 0, free lines is 4095 [11:48:25]Connected sock=10 [11:48: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 39 31 35 0F 01 00 00 3C 69 07 01 AD 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 08 48 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 14 14 01 00 35 04 06 00 7D 50 49 F1 DB 9B 79 24 CB 14 7B A3 44 52 [11:48:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 9D 51 47 00 26 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 14 14 01 00 F4 03 04 00 F3 EE BA 66 B6 04 01 00 00 11 BC A5 CE 75 E9 E8 7A [11:48:26]CommunicateWithHost err = 0 [11:48:26]CheckOFDResponse [11:48:26]1017 (14) - 77093643461234 [11:48:26]1041 (16) - 0000000000874915 [11:48:26]1040 (4) - 70676 [11:48:26]1012 (4) - 13.08.2024 05:28 [11:48:26]1206 (1) - 0 [11:48:26]OFD Sender: Remove packet 70676 [11:48:26]ProducePacketName [11:48:26]name=ofd_packets/00070676 [11:48:26]NVStorageDeleteData [11:48:26]Write to MH i2c: 01 00 00 66 01 67 [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: 01 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: 01 07 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: 01 07 00 66 01 00 00 00 00 00 E1 0C 5B [11:48:26]RasterBufferAndPrint [11:48:26]line [11:48:26]line [11:48:26]line [11:48:26]line [11:48:26]line [11:48:26]written 0, free lines is 3303 [11:48:26]MH_Cut [11:48:26]Write to MH i2c: D1 01 00 6D 01 01 40 [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: D1 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: D1 01 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: D1 01 00 6D 01 00 3F [11:48:26]Write to MH i2c: 01 00 00 6E 01 6F [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]OFD Sender: No OFD packet to send [11:48:26]*** Cut start [11:48:26]*** Purtial cut [11:48:26]*** Stage 1: CUTSNS_PIN = 1 [11:48:27]Read from MH i2c: 01 [11:48:27]MH_I2C_Read... [11:48:27]*** Stop cut motor [11:48:27]*** Cut end [11:48:27]Read from MH i2c: 01 07 00 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: 01 07 00 6E 01 00 00 00 00 00 FF 0F 84 [11:48:27]process_action close_receipt done [11:48:27]requested_data is exist [11:48:27]produce_requested_data [11:48:27]requested_item fm.sn is exist - process it [11:48:27]wFMCommunicate request_size=4 [11:48:27]MH_SAM_APDU [11:48:27]CAPDU: 80 11 00 00 [11:48:27]Write to MH i2c: E2 08 00 6F 01 80 11 00 00 00 00 00 00 EA [11:48:27]Write i2c OK [11:48:27]MH_I2C_Read... [11:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:27]Read from MH i2c: E2 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: E2 17 00 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: E2 17 00 6F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 3F [11:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:48:27]wFMCommunicate OK [11:48:27]requested_item fd.num is exist - process it [11:48:27]SAM_PROTO_GetFieldsCounters [11:48:27]wFMCommunicate request_size=4 [11:48:27]MH_SAM_APDU [11:48:27]CAPDU: 80 13 00 00 [11:48:27]Write to MH i2c: E2 08 00 70 01 80 13 00 00 00 00 00 00 ED [11:48:27]Write i2c OK [11:48:27]MH_I2C_Read... [11:48:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:27]Read from MH i2c: E2 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: E2 62 00 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: E2 62 00 70 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 14 14 01 00 0E 04 04 00 D2 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 63 [11:48: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 14 14 01 00 0E 04 04 00 D2 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 [11:48:27]wFMCommunicate OK [11:48:27]SAM_PROTO_GetFieldsCounters done [11:48:27]requested_item shift.num is exist - process it [11:48:27]requested_item shift.opened is exist - process it [11:48:27]req_shift_opened [11:48:27]FM_GetShiftState [11:48:27]SAM_PROTO_GetShiftState [11:48:27]wFMCommunicate request_size=4 [11:48:27]MH_SAM_APDU [11:48:27]CAPDU: 80 13 01 00 [11:48:27]Write to MH i2c: E2 08 00 71 01 80 13 01 00 00 00 00 00 EF [11:48:27]Write i2c OK [11:48:27]MH_I2C_Read... [11:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:27]Read from MH i2c: E2 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: E2 0E 00 [11:48:27]MH_I2C_Read... [11:48:27]Read from MH i2c: E2 0E 00 71 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 5E [11:48:27]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [11:48:27]wFMCommunicate OK [11:48:27]SAM_PROTO_GetShiftState done [11:48:27]FM_GetShiftState done [11:48:27]req_shift_opened done [11:48:27]requested_item shift.open_date is exist - process it [11:48:27]req_shift_open_date [11:48:27]req_shift_open_date done [11:48:27]produce_requested_data done [11:48:27]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70676,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [11:48:27]process_action_free close_receipt [11:48:27]json_value_free [11:48:27]json_value_free done [11:48:27]process_json_proto returns [11:48:27]Send response to host [11:48:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70676,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [11:48:27]free response buf [11:48:27]execute_script done [11:48:27]execute_script returns [11:48:27]free content buf [11:48:27]Sock 9.Close socket [11:48:27]Sock 9.Thread stoped [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:46]OFD Sender: No OFD packet to send [11:54:51]OFD Sender: No OFD packet to send [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:11:12]ConnectInit Can't connect to host [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:11:58]accept exits with 9 [12:11:58]New connection [12:11:58]New thread 3066740068 created [12:11:58]Waiting for new connection... [12:11:58] Sock 9.Parse request [12:11:58]Sock 9.Check first char [12:11:58]Sock 9.First char is OK [12:11:58]request: POST /json_proto HTTP/1.0 [12:11:58]Method: POST [12:11:58]URL: /json_proto [12:11:58]Method is POST - this is cgi request [12:11:58]url: /json_proto [12:11:58]query_string will be loaded in cgi processing [12:11:58]execute_cgi json_proto POST (null) [12:11:58]execute_cgi path=json_proto method=POST [12:11:58]POST find Content-Length [12:11:58]Host: 172.17.58.67:8080 [12:11:58]Content-Length: 215 [12:11:58]Content-Type: application/json [12:11:58] [12:11:58]POST finish read [12:11:58]Found Content-Length = 215 [12:11:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:58]execute_script... [12:11:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:58]POST & json_proto [12:11:58]process_json_proto [12:11:58]json parsed OK: [12:11:58]protocol is kg_v1.0 [12:11:58]action value=get_value [12:11:58]process_action get_value [12:11:58]cmd_get_value [12:11:58]process_action get_value done [12:11:58]requested_data is exist [12:11:58]produce_requested_data [12:11:58]requested_item kkm.sn is exist - process it [12:11:58]requested_item kkm.ver is exist - process it [12:11:58]requested_item fm.sn is exist - process it [12:11:58]wFMCommunicate request_size=4 [12:11:58]MH_SAM_APDU [12:11:58]CAPDU: 80 11 00 00 [12:11:58]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [12:11:58]Write i2c OK [12:11:58]MH_I2C_Read... [12:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:58]Read from MH i2c: E2 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 17 00 [12:11:58]MH_I2C_Read... [12:11:58]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 39 31 35 90 00 DF [12:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:11:58]wFMCommunicate OK [12:11:58]requested_item fd.num is exist - process it [12:11:58]SAM_PROTO_GetFieldsCounters [12:11:58]wFMCommunicate request_size=4 [12:11:58]MH_SAM_APDU [12:11:58]CAPDU: 80 13 00 00 [12:11:58]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [12:11:58]Write i2c OK [12:11:58]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 [12:11:59]MH_I2C_Read... [12:11:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:59]Read from MH i2c: E2 62 00 [12:11:59]MH_I2C_Read... [12:11:59]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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 14 14 01 00 0E 04 04 00 D2 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 03 [12:11: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 14 14 01 00 0E 04 04 00 D2 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 [12:11:59]wFMCommunicate OK [12:11:59]SAM_PROTO_GetFieldsCounters done [12:11:59]requested_item shift.num is exist - process it [12:11:59]requested_item shift.opened is exist - process it [12:11:59]req_shift_opened [12:11:59]FM_GetShiftState [12:11:59]SAM_PROTO_GetShiftState [12:11:59]wFMCommunicate request_size=4 [12:11:59]MH_SAM_APDU [12:11:59]CAPDU: 80 13 01 00 [12:11:59]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [12:11:59]Write i2c OK [12:11:59]MH_I2C_Read... [12:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:59]Read from MH i2c: E2 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 0E 00 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 FE [12:11:59]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [12:11:59]wFMCommunicate OK [12:11:59]SAM_PROTO_GetShiftState done [12:11:59]FM_GetShiftState done [12:11:59]req_shift_opened done [12:11:59]requested_item shift.open_date is exist - process it [12:11:59]req_shift_open_date [12:11:59]req_shift_open_date done [12:11:59]produce_requested_data done [12:11:59]produce_requested_data return {"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70676,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [12:11:59]process_action_free get_value [12:11:59]json_value_free [12:11:59]json_value_free done [12:11:59]process_json_proto returns [12:11:59]Send response to host [12:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70676,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [12:11:59]free response buf [12:11:59]execute_script done [12:11:59]execute_script returns [12:11:59]free content buf [12:11:59]Sock 9.Close socket [12:11:59]Sock 9.Thread stoped [12:11:59]accept exits with 7 [12:11:59]New connection [12:11:59]New thread 3066596708 created [12:11:59]Thread 3066740068 joined [12:11:59]Waiting for new connection... [12:11:59] Sock 7.Parse request [12:11:59]Sock 7.Check first char [12:11:59]Sock 7.First char is OK [12:11:59]request: POST /json_proto HTTP/1.0 [12:11:59]Method: POST [12:11:59]URL: /json_proto [12:11:59]Method is POST - this is cgi request [12:11:59]url: /json_proto [12:11:59]query_string will be loaded in cgi processing [12:11:59]execute_cgi json_proto POST (null) [12:11:59]execute_cgi path=json_proto method=POST [12:11:59]POST find Content-Length [12:11:59]Host: 172.17.58.67:8080 [12:11:59]Content-Length: 331 [12:11:59]Content-Type: application/json [12:11:59] [12:11:59]POST finish read [12:11:59]Found Content-Length = 331 [12:11: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" ] } } [12:11:59]execute_script... [12:11:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:11:59]POST & json_proto [12:11:59]process_json_proto [12:11:59]json parsed OK: [12:11:59]protocol is kg_v1.0 [12:11:59]action value=get_value [12:11:59]process_action get_value [12:11:59]cmd_get_value [12:11:59]process_action get_value done [12:11:59]requested_data is exist [12:11:59]produce_requested_data [12:11:59]requested_item fm.sale.total is exist - process it [12:11:59]SAM_PROTO_GetFMData [12:11:59]wFMCommunicate request_size=4 [12:11:59]MH_SAM_APDU [12:11:59]CAPDU: 80 13 03 00 [12:11:59]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [12:11:59]Write i2c OK [12:11:59]MH_I2C_Read... [12:11:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:11:59]Read from MH i2c: E2 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 FD 00 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 FD 00 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 70 10 01 00 69 04 A3 00 6F 04 04 00 3B 07 01 00 B1 04 05 00 E1 96 A8 C9 01 70 04 05 00 34 88 B5 5F 01 72 04 04 00 AD 0E F3 69 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 15 77 9B 30 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 62 E9 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 35 09 00 00 B1 04 04 00 90 50 60 14 70 04 04 00 F4 17 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F5 0B 2A 02 90 00 1F [12:11:59]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 70 10 01 00 69 04 A3 00 6F 04 04 00 3B 07 01 00 B1 04 05 00 E1 96 A8 C9 01 70 04 05 00 34 88 B5 5F 01 72 04 04 00 AD 0E F3 69 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 15 77 9B 30 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 62 E9 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 35 09 00 00 B1 04 04 00 90 50 60 14 70 04 04 00 F4 17 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F5 0B 2A 02 90 00 [12:11:59]wFMCommunicate OK [12:11:59]wFMCommunicate request_size=4 [12:11:59]MH_SAM_APDU [12:11:59]CAPDU: 80 17 00 00 [12:11:59]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [12:11:59]Write i2c OK [12:11:59]MH_I2C_Read... [12:12:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:12:00]Read from MH i2c: E2 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: E2 FD 00 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: E2 FD 00 14 00 00 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 33 2B 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 1C [12:12:00]RAPDU: 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 33 2B 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 [12:12:00]wFMCommunicate OK [12:12:00]wFMCommunicate request_size=4 [12:12:00]MH_SAM_APDU [12:12:00]CAPDU: 80 17 00 00 [12:12:00]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [12:12:00]Write i2c OK [12:12:00]MH_I2C_Read... [12:12:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:12:00]Read from MH i2c: E2 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: E2 FD 00 [12:12:00]MH_I2C_Read... [12:12:00]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 [12:12:00]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 [12:12:00]wFMCommunicate OK [12:12:00]wFMCommunicate request_size=4 [12:12:00]MH_SAM_APDU [12:12:00]CAPDU: 80 17 00 00 [12:12:00]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [12:12:00]Write i2c OK [12:12:00]MH_I2C_Read... [12:12:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:12:00]Read from MH i2c: E2 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: E2 FD 00 [12:12:00]MH_I2C_Read... [12:12:00]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 [12:12:00]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 [12:12:00]wFMCommunicate OK [12:12:00]wFMCommunicate request_size=4 [12:12:00]MH_SAM_APDU [12:12:00]CAPDU: 80 17 00 00 [12:12:00]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [12:12:00]Write i2c OK [12:12:00]MH_I2C_Read... [12:12:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [12:12:00]Read from MH i2c: E2 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: E2 E5 00 [12:12:00]MH_I2C_Read... [12:12:00]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 [12:12:00]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 [12:12:00]wFMCommunicate OK [12:12:00]SAM_PROTO_GetFMData done [12:12:00]requested_item fm.sale_refund.total is exist - process it [12:12:00]requested_item fm.buy.total is exist - process it [12:12:00]requested_item shift.sale.total is exist - process it [12:12:00]SAM_PROTO_GetShiftData [12:12:00]wFMCommunicate request_size=4 [12:12:00]MH_SAM_APDU [12:12:00]CAPDU: 80 13 02 00 [12:12:00]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [12:12:00]Write i2c OK [12:12:00]MH_I2C_Read... [12:12:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:12:01]Read from MH i2c: E2 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: E2 FD 00 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 1E 00 00 00 69 04 9B 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 8B 2A 2A 70 04 03 00 48 1A 1B 72 04 03 00 43 10 0F 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 84 7A 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 8C 5F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 03 00 00 00 B1 04 03 00 B0 71 0B 70 04 03 00 B0 71 0B 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 2C 37 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 2E [12:12:01]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 1E 00 00 00 69 04 9B 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 8B 2A 2A 70 04 03 00 48 1A 1B 72 04 03 00 43 10 0F 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 84 7A 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 8C 5F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 03 00 00 00 B1 04 03 00 B0 71 0B 70 04 03 00 B0 71 0B 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 2C 37 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [12:12:01]wFMCommunicate OK [12:12:01]wFMCommunicate request_size=4 [12:12:01]MH_SAM_APDU [12:12:01]CAPDU: 80 17 00 00 [12:12:01]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [12:12:01]Write i2c OK [12:12:01]MH_I2C_Read... [12:12:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:12:01]Read from MH i2c: E2 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: E2 FD 00 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 EE 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 5F [12:12:01]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 EE 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [12:12:01]wFMCommunicate OK [12:12:01]wFMCommunicate request_size=4 [12:12:01]MH_SAM_APDU [12:12:01]CAPDU: 80 17 00 00 [12:12:01]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [12:12:01]OFD Sender: No OFD packet to send [12:12:01]Write i2c OK [12:12:01]MH_I2C_Read... [12:12:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:12:01]Read from MH i2c: E2 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: E2 FD 00 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [12:12:01]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [12:12:01]wFMCommunicate OK [12:12:01]wFMCommunicate request_size=4 [12:12:01]MH_SAM_APDU [12:12:01]CAPDU: 80 17 00 00 [12:12:01]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [12:12:01]Write i2c OK [12:12:01]MH_I2C_Read... [12:12:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:12:02]Read from MH i2c: E2 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 FD 00 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 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 90 00 13 [12:12:02]RAPDU: EF 03 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 90 00 [12:12:02]wFMCommunicate OK [12:12:02]wFMCommunicate request_size=4 [12:12:02]MH_SAM_APDU [12:12:02]CAPDU: 80 17 00 00 [12:12:02]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [12:12:02]Write i2c OK [12:12:02]MH_I2C_Read... [12:12:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [12:12:02]Read from MH i2c: E2 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 D6 00 [12:12:02]MH_I2C_Read... [12:12:02]Read from MH i2c: E2 D6 00 1C 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 7E [12:12:02]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:12:02]wFMCommunicate OK [12:12:02]SAM_PROTO_GetShiftData done [12:12:02]requested_item shift.sale.total_cash is exist - process it [12:12:02]requested_item shift.sale_refund.total is exist - process it [12:12:02]requested_item shift.sale_refund.total_cash is exist - process it [12:12:02]requested_item shift.buy.total is exist - process it [12:12:02]requested_item shift.buy.total_cash is exist - process it [12:12:02]produce_requested_data done [12:12:02]produce_requested_data return {"fm.sale.total":76782363.85,"fm.sale_refund.total":3418564.00,"fm.buy.total":0.00,"shift.sale.total":27634.03,"shift.sale.total_cash":17762.00,"shift.sale_refund.total":7500.00,"shift.sale_refund.total_cash":7500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:12:02]process_action_free get_value [12:12:02]json_value_free [12:12:02]json_value_free done [12:12:02]process_json_proto returns [12:12:02]Send response to host [12:12:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76782363.85,"fm.sale_refund.total":3418564.00,"fm.buy.total":0.00,"shift.sale.total":27634.03,"shift.sale.total_cash":17762.00,"shift.sale_refund.total":7500.00,"shift.sale_refund.total_cash":7500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:12:02]free response buf [12:12:02]execute_script done [12:12:02]execute_script returns [12:12:02]free content buf [12:12:02]Sock 7.Close socket [12:12:02]Sock 7.Thread stoped [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:39]accept exits with 9 [12:19:39]New connection [12:19:39]New thread 3066740068 created [12:19:39]Thread 3066596708 joined [12:19:39]Waiting for new connection... [12:19:39] Sock 9.Parse request [12:19:39]Sock 9.Check first char [12:19:40]Sock 9.First char is OK [12:19:40]request: POST /json_proto HTTP/1.0 [12:19:40]Method: POST [12:19:40]URL: /json_proto [12:19:40]Method is POST - this is cgi request [12:19:40]url: /json_proto [12:19:40]query_string will be loaded in cgi processing [12:19:40]execute_cgi json_proto POST (null) [12:19:40]execute_cgi path=json_proto method=POST [12:19:40]POST find Content-Length [12:19:40]Host: 172.17.58.67:8080 [12:19:40]Content-Length: 1207 [12:19:40]Content-Type: application/json [12:19:40] [12:19:40]POST finish read [12:19:40]Found Content-Length = 1207 [12:19: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141134\u000A13.08.2024 11:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.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\u000A89331\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:40]execute_script... [12:19: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141134\u000A13.08.2024 11:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.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\u000A89331\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:40]POST & json_proto [12:19:40]process_json_proto [12:19:40]json parsed OK: [12:19:40]protocol is kg_v1.0 [12:19:40]action value=print_text [12:19:40]process_action print_text [12:19:40]cmd_print_text [12:19:40]ExternCall_PrintAddStr [12:19:40]wPrintStart [12:19:40]Write to MH i2c: 01 00 00 1D 00 1D [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: 01 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: 01 07 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [12:19:40]RasterBufferAndPrint [12:19:40]line *****ТОВÐРÐЫЙ ЧЕК***** [12:19:40]line ÐЗС 39 [12:19:40]line Партнер нефть [12:19:40]line 02508201610067 [12:19:40]line КаÑÑир : ОваÑбекова Л. [12:19:40]line Счет N : (1)141134 [12:19:40]line 13.08.2024 11:38 [12:19:40]line ПРОДÐЖР[12:19:40]line ТРК (МРК, ГÐК): 31 [12:19:40]line Вид ГСМ : 2710124130 [12:19:40]line Ðи-92-К-5 [12:19:40]line 20.000 x 65.90 [12:19:40]line ИТОГ: 1318.00 [12:19:40]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [12:19:40]line 89331 [12:19:40]line ______________________ [12:19:40]line (подпиÑÑŒ) [12:19:40]written 0, free lines is 4095 [12:19:40]Write to MH i2c: 01 00 00 31 00 31 [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: 01 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: 01 07 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 13 0E 59 [12:19:40]RasterBufferAndPrint [12:19:40]line [12:19:40]line [12:19:40]line [12:19:40]line [12:19:40]line [12:19:40]written 0, free lines is 3605 [12:19:40]MH_Cut [12:19:40]Write to MH i2c: D1 01 00 38 00 01 0A [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: D1 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: D1 01 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: D1 01 00 38 00 00 09 [12:19:40]Write to MH i2c: 01 00 00 39 00 39 [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:41]*** Cut start [12:19:41]*** Purtial cut [12:19:41]*** CUTSNS_PIN = 0 [12:19:41]*** Stage 1: CUTSNS_PIN = 1 [12:19:42]OFD Sender: No OFD packet to send [12:19:43]Read from MH i2c: 01 [12:19:43]MH_I2C_Read... [12:19:43]*** Stop cut motor [12:19:43]*** Cut end [12:19:43]Read from MH i2c: 01 07 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 07 00 39 00 00 00 00 00 00 FF 0F 4E [12:19:43]process_action print_text done [12:19:43]requested_data is exist [12:19:43]produce_requested_data [12:19:43]requested_item fm.sn is exist - process it [12:19:43]wFMCommunicate request_size=4 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 11 00 00 [12:19:43]Write to MH i2c: E2 08 00 3A 00 80 11 00 00 00 00 00 00 B4 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 17 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 17 00 3A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 09 [12:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:19:43]wFMCommunicate OK [12:19:43]requested_item fd.num is exist - process it [12:19:43]SAM_PROTO_GetFieldsCounters [12:19:43]wFMCommunicate request_size=4 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 13 00 00 [12:19:43]Write to MH i2c: E2 08 00 3B 00 80 13 00 00 00 00 00 00 B7 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:43]Read from MH i2c: E2 62 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 62 00 3B 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 14 14 01 00 0E 04 04 00 D2 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 2D [12:19: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 14 14 01 00 0E 04 04 00 D2 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 [12:19:43]wFMCommunicate OK [12:19:43]SAM_PROTO_GetFieldsCounters done [12:19:43]requested_item shift.num is exist - process it [12:19:43]requested_item shift.opened is exist - process it [12:19:43]req_shift_opened [12:19:43]FM_GetShiftState [12:19:43]SAM_PROTO_GetShiftState [12:19:43]wFMCommunicate request_size=4 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 13 01 00 [12:19:43]Write to MH i2c: E2 08 00 3C 00 80 13 01 00 00 00 00 00 B9 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]int [12:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:43]*** FLAG_PRN_KEY set [12:19:43]Read from MH i2c: E2 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 0E 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: E2 0E 00 3C 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 28 [12:19:43]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [12:19:43]wFMCommunicate OK [12:19:43]SAM_PROTO_GetShiftState done [12:19:43]FM_GetShiftState done [12:19:43]req_shift_opened done [12:19:43]requested_item shift.open_date is exist - process it [12:19:43]req_shift_open_date [12:19:43]req_shift_open_date done [12:19:43]produce_requested_data done [12:19:43]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70676,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [12:19:43]process_action_free print_text [12:19:43]json_value_free [12:19:43]json_value_free done [12:19:43]process_json_proto returns [12:19:43]Send response to host [12:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70676,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [12:19:43]free response buf [12:19:43]execute_script done [12:19:43]execute_script returns [12:19:43]free content buf [12:19:43]Sock 9.Close socket [12:19:43]Sock 9.Thread stoped [12:19:43]Write to MH i2c: 01 00 00 3D 00 3D [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 07 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 07 00 3D 00 00 08 00 00 00 FF 0F 5A [12:19:43]state=0 [12:19:43]Key pressed [12:19:43]Feed [12:19:43]Write to MH i2c: D8 00 00 3E 00 15 [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: D8 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: D8 01 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: D8 01 00 3E 00 00 16 [12:19:43]int [12:19:43]Write to MH i2c: 01 00 00 3F 00 3F [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 07 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 07 00 3F 00 00 48 00 00 00 3C 00 CA [12:19:43]state=2 [12:19:43]Key pressed [12:19:43]int [12:19:43]Write to MH i2c: 01 00 00 40 00 40 [12:19:43]*** FLAG_PRN_KEY reset [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 07 00 [12:19:43]MH_I2C_Read... [12:19:43]Read from MH i2c: 01 07 00 40 00 00 00 00 00 00 FB 0F 51 [12:19:43]state=2 [12:19:43]Stop feed [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:16]accept exits with 7 [12:20:16]New connection [12:20:16]New thread 3066596708 created [12:20:16]Thread 3066740068 joined [12:20:16]Waiting for new connection... [12:20:16] Sock 7.Parse request [12:20:16]Sock 7.Check first char [12:20:16]Sock 7.First char is OK [12:20:16]request: POST /json_proto HTTP/1.0 [12:20:16]Method: POST [12:20:16]URL: /json_proto [12:20:16]Method is POST - this is cgi request [12:20:16]url: /json_proto [12:20:16]query_string will be loaded in cgi processing [12:20:16]execute_cgi json_proto POST (null) [12:20:16]execute_cgi path=json_proto method=POST [12:20:16]POST find Content-Length [12:20:16]Host: 172.17.58.67:8080 [12:20:16]Content-Length: 699 [12:20:16]Content-Type: application/json [12:20:16] [12:20:16]POST finish read [12:20:16]Found Content-Length = 699 [12:20:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17474", "tax_sys" : 0, "items" : [ { "code": "4700000482757", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043C\u0430\u043D\u0433,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:16]execute_script... [12:20:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17474", "tax_sys" : 0, "items" : [ { "code": "4700000482757", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043C\u0430\u043D\u0433,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:16]POST & json_proto [12:20:16]process_json_proto [12:20:16]json parsed OK: [12:20:16]protocol is kg_v1.0 [12:20:16]action value=close_receipt [12:20:16]process_action close_receipt [12:20:16]cmd_close_receipt [12:20:16]MH_GetDate [12:20:16]Write to MH i2c: F0 00 00 41 00 30 [12:20:16]Write i2c OK [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: F0 [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: F0 09 00 [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: F0 09 00 41 00 00 80 4F BB 66 94 51 63 64 D5 [12:20:16]GetLastDocTimeStamp 1723549704 [12:20:16]current date 1723551616 [12:20:16]FM_GetShiftState [12:20:16]SAM_PROTO_GetShiftState [12:20:16]wFMCommunicate request_size=4 [12:20:16]MH_SAM_APDU [12:20:16]CAPDU: 80 13 01 00 [12:20:16]Write to MH i2c: E2 08 00 42 00 80 13 01 00 00 00 00 00 BF [12:20:16]Write i2c OK [12:20:16]MH_I2C_Read... [12:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:16]Read from MH i2c: E2 [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: E2 0E 00 [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: E2 0E 00 42 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 2E [12:20:16]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [12:20:16]wFMCommunicate OK [12:20:16]SAM_PROTO_GetShiftState done [12:20:16]FM_GetShiftState done [12:20:16]opened in 1723509656 [12:20:16]opened+sec_in_day 1723596056 [12:20:16]quantity*price = 9500 [12:20:16]sum+1 = 9501 [12:20:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 ÐСП 1% : 0.84 ÐДС 12% : 10.09 Ðаличными: 95.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 31 13.08.2024 12:20 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70677 ФПД: 244203287811599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T122016&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70677&fm=244203287811599&tin=02508201610067®Number=0000000000090913&sum=9500 0 [12:20:17]StoreToDocumentArchive [12:20:17]shift 466 fd 70677 [12:20:17]save to /storage/0466/doc_00070677 [12:20:17]save last doc name /storage/0466/doc_00070677 to /storage/kkm_last_doc_name [12:20:17]save OK [12:20:17]Clear old archive folders... [12:20:17]ProcessDocumentItem done err = 0, tmpTLVsize=303 [12:20:17]tlvbuf is 00F35860 [12:20:17]SAM_PROTO_ClearQueue [12:20:17]wFMCommunicate request_size=4 [12:20:17]MH_SAM_APDU [12:20:17]CAPDU: 80 09 00 00 [12:20:17]Write to MH i2c: E2 08 00 4F 00 80 09 00 00 00 00 00 00 C1 [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:17]Read from MH i2c: E2 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 4F 00 00 90 00 C3 [12:20:17]RAPDU: 90 00 [12:20:17]wFMCommunicate OK [12:20:17]SAM_PROTO_ClearQueue done [12:20:17]KKMCreateOFDPacket [12:20:17]OFDProtocolAddRootSTLVToBuf [12:20:17]FM_MakeSignedData [12:20:17]FM_MakeSignedData [12:20:17]SAM_PROTO_SignData [12:20:17]wFMCommunicate request_size=4 [12:20:17]MH_SAM_APDU [12:20:17]CAPDU: 80 0D 01 02 [12:20:17]Write to MH i2c: E2 08 00 50 00 80 0D 01 02 00 00 00 00 C9 [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:17]Read from MH i2c: E2 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 50 00 00 90 00 C4 [12:20:17]RAPDU: 90 00 [12:20:17]wFMCommunicate OK [12:20:17]wFMCommunicate request_size=255 [12:20:17]MH_SAM_APDU [12:20:17]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 80 4F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D [12:20:17]Write to MH i2c: E2 02 01 51 00 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 80 4F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 00 00 23 [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:17]Read from MH i2c: E2 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 51 00 00 90 00 C5 [12:20:17]RAPDU: 90 00 [12:20:17]wFMCommunicate OK [12:20:17]wFMCommunicate request_size=62 [12:20:17]MH_SAM_APDU [12:20:17]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 15 14 01 00 35 04 06 00 DE 1A 02 39 16 0F [12:20:17]Write to MH i2c: E2 41 00 52 00 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 15 14 01 00 35 04 06 00 DE 1A 02 39 16 0F 00 00 88 [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:17]Read from MH i2c: E2 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 52 00 00 90 00 C6 [12:20:17]RAPDU: 90 00 [12:20:17]wFMCommunicate OK [12:20:17]wFMCommunicate request_size=4 [12:20:17]MH_SAM_APDU [12:20:17]CAPDU: 80 0D 03 02 [12:20:17]Write to MH i2c: E2 08 00 53 00 80 0D 03 02 00 00 00 00 CE [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:18]Read from MH i2c: E2 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: E2 0B 00 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: E2 0B 00 53 00 00 20 67 9C CD 4E BD 92 36 90 00 92 [12:20:18]RAPDU: 20 67 9C CD 4E BD 92 36 90 00 [12:20:18]wFMCommunicate OK [12:20:18]SAM_PROTO_SignData done [12:20:18]FM_MakeSignedData done [12:20:18]CreateOFDProtocolMessage [12:20:18]wFMCommunicate request_size=4 [12:20:18]MH_SAM_APDU [12:20:18]CAPDU: 80 11 00 00 [12:20:18]Write to MH i2c: E2 08 00 54 00 80 11 00 00 00 00 00 00 CE [12:20:18]Write i2c OK [12:20:18]MH_I2C_Read... [12:20:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:18]Read from MH i2c: E2 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: E2 17 00 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: E2 17 00 54 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 23 [12:20:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:20:18]wFMCommunicate OK [12:20:18]CreateOFDProtocolMessage done [12:20:18]OFDSenderStorePacket 70677 [12:20:18]StoreOFDPacket docnum=70677 [12:20:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 43 01 00 00 04 7B 3B 01 59 67 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 80 4F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 15 14 01 00 35 04 06 00 DE 1A 02 39 16 0F 20 67 9C CD 4E BD 92 36 [12:20:18]CheckFolder [12:20:18]dirname=/storage/ofd_packets [12:20:18]CheckFolder done [12:20:18]ProducePacketName [12:20:18]name=ofd_packets/00070677 [12:20:18]NVStorageSaveData ofd_packets/00070677 [12:20:18]File name is /storage/ofd_packets/00070677 [12:20:18]Write 353 bytes [12:20:18]NVStorageSaveData done [12:20:18]OFDSenderStorePacket done [12:20:18]KKMCreateOFDPacket done [12:20:18]NVStorageSaveData kkm_last_timestamp [12:20:18]File name is /storage/kkm_last_timestamp [12:20:18]Write 4 bytes [12:20:18]NVStorageSaveData done [12:20:18]ExternCall_PrintAddStr [12:20:18]wPrintStart [12:20:18]Write to MH i2c: 01 00 00 55 00 55 [12:20:18]Write i2c OK [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: 01 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: 01 07 00 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: 01 07 00 55 00 00 00 00 00 00 FF 0F 6A [12:20:18]RasterBufferAndPrint [12:20:18]line Счет N : (3)17474 [12:20:18]line ИÐÐ: 02508201610067 [12:20:18]line Контрольно-КаÑÑовый Чек [12:20:18]line ПРОДÐЖР[12:20:18]line Товар: 4700000482757 [12:20:18]line Ðапиток Nitro Fr газ манг,клуб ж/б 0,45л [12:20:18]line 1.000 * 95.00 [12:20:18]line = 95.00 [12:20:18]line ÐДС 12% ÐСП 1% [12:20:18]line > о реализуемом товаре [12:20:18]line ИТОГО: 95.00 [12:20:18]line ÐСП 1% : 0.84 [12:20:18]line ÐДС 12% : 10.09 [12:20:18]line Ðаличными: 95.00 [12:20:18]line Безнал.: 0.00 [12:20:18]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [12:20:18]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [12:20:18]line СÐО: Общий режим [12:20:18]line Чек 31 13.08.2024 12:20 [12:20:18]line Смена: 466 ФФД: 1.0 [12:20:18]line ЗÐМ: 0300000140 [12:20:18]line РÐМ: 0000000000090913 [12:20:18]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:20:18]line ФМ: 0000000000874915 [12:20:18]line ФД: 70677 [12:20:18]line ФПД: 244203287811599 [12:20:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T122016&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70677&fm=244203287811599&tin=02508201610067®Number=0000000000090913&sum=9500 [12:20:18]OFD Sender: Processing packet 70677 [packets to send 67, broken 66] [12:20:18]ProducePacketName [12:20:18]name=ofd_packets/00070677 [12:20:18]OFD Sender: To server: ‡•öpG, [12:20:18]CommunicateWithHost lk.salyk.kg:30040 [12:20:18]ConnectInit lk.salyk.kg [12:20:18]line 0 [12:20:18]written 0, free lines is 4095 [12:20:18]Connected sock=10 [12:20: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 39 31 35 43 01 00 00 04 7B 3B 01 59 67 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 80 4F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 15 14 01 00 35 04 06 00 DE 1A 02 39 16 0F 20 67 9C CD 4E BD 92 36 [12:20:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 0C 28 47 00 05 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 15 14 01 00 F4 03 04 00 6B F6 BA 66 B6 04 01 00 00 64 77 9D AD E9 F9 D5 FC [12:20:18]CommunicateWithHost err = 0 [12:20:18]CheckOFDResponse [12:20:18]1017 (14) - 77093643461234 [12:20:18]1041 (16) - 0000000000874915 [12:20:18]1040 (4) - 70677 [12:20:18]1012 (4) - 13.08.2024 06:00 [12:20:18]1206 (1) - 0 [12:20:18]OFD Sender: Remove packet 70677 [12:20:18]ProducePacketName [12:20:18]name=ofd_packets/00070677 [12:20:18]NVStorageDeleteData [12:20:18]Write to MH i2c: 01 00 00 7E 00 7E [12:20:18]Write i2c OK [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: 01 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: 01 07 00 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: 01 07 00 7E 00 00 00 00 00 00 15 0D A7 [12:20:18]RasterBufferAndPrint [12:20:18]line [12:20:18]line [12:20:18]line [12:20:18]line [12:20:18]line [12:20:18]written 0, free lines is 3355 [12:20:18]MH_Cut [12:20:18]Write to MH i2c: D1 01 00 85 00 01 57 [12:20:18]Write i2c OK [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: D1 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: D1 01 00 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: D1 01 00 85 00 00 56 [12:20:18]Write to MH i2c: 01 00 00 86 00 86 [12:20:18]Write i2c OK [12:20:18]MH_I2C_Read... [12:20:19]OFD Sender: No OFD packet to send [12:20:19]*** Cut start [12:20:19]*** Purtial cut [12:20:19]*** Stage 1: CUTSNS_PIN = 1 [12:20:19]Read from MH i2c: 01 [12:20:19]MH_I2C_Read... [12:20:19]*** Stop cut motor [12:20:19]*** Cut end [12:20:19]Read from MH i2c: 01 07 00 [12:20:19]MH_I2C_Read... [12:20:19]Read from MH i2c: 01 07 00 86 00 00 00 00 00 00 FF 0F 9B [12:20:19]process_action close_receipt done [12:20:19]requested_data is exist [12:20:19]produce_requested_data [12:20:19]requested_item fm.sn is exist - process it [12:20:19]wFMCommunicate request_size=4 [12:20:19]MH_SAM_APDU [12:20:19]CAPDU: 80 11 00 00 [12:20:19]Write to MH i2c: E2 08 00 87 00 80 11 00 00 00 00 00 00 01 [12:20:19]Write i2c OK [12:20:19]MH_I2C_Read... [12:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:19]Read from MH i2c: E2 [12:20:19]MH_I2C_Read... [12:20:19]Read from MH i2c: E2 17 00 [12:20:19]MH_I2C_Read... [12:20:19]Read from MH i2c: E2 17 00 87 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 56 [12:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:20:19]wFMCommunicate OK [12:20:19]requested_item fd.num is exist - process it [12:20:19]SAM_PROTO_GetFieldsCounters [12:20:19]wFMCommunicate request_size=4 [12:20:19]MH_SAM_APDU [12:20:19]CAPDU: 80 13 00 00 [12:20:19]Write to MH i2c: E2 08 00 88 00 80 13 00 00 00 00 00 00 04 [12:20:19]Write i2c OK [12:20:19]MH_I2C_Read... [12:20:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:20]Read from MH i2c: E2 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 62 00 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 62 00 88 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 15 14 01 00 0E 04 04 00 D2 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 7E [12:20:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 15 14 01 00 0E 04 04 00 D2 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 [12:20:20]wFMCommunicate OK [12:20:20]SAM_PROTO_GetFieldsCounters done [12:20:20]requested_item shift.num is exist - process it [12:20:20]requested_item shift.opened is exist - process it [12:20:20]req_shift_opened [12:20:20]FM_GetShiftState [12:20:20]SAM_PROTO_GetShiftState [12:20:20]wFMCommunicate request_size=4 [12:20:20]MH_SAM_APDU [12:20:20]CAPDU: 80 13 01 00 [12:20:20]Write to MH i2c: E2 08 00 89 00 80 13 01 00 00 00 00 00 06 [12:20:20]Write i2c OK [12:20:20]MH_I2C_Read... [12:20:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:20]Read from MH i2c: E2 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 0E 00 [12:20:20]MH_I2C_Read... [12:20:20]Read from MH i2c: E2 0E 00 89 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 75 [12:20:20]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [12:20:20]wFMCommunicate OK [12:20:20]SAM_PROTO_GetShiftState done [12:20:20]FM_GetShiftState done [12:20:20]req_shift_opened done [12:20:20]requested_item shift.open_date is exist - process it [12:20:20]req_shift_open_date [12:20:20]req_shift_open_date done [12:20:20]produce_requested_data done [12:20:20]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70677,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [12:20:20]process_action_free close_receipt [12:20:20]json_value_free [12:20:20]json_value_free done [12:20:20]process_json_proto returns [12:20:20]Send response to host [12:20:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70677,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [12:20:20]free response buf [12:20:20]execute_script done [12:20:20]execute_script returns [12:20:20]free content buf [12:20:20]Sock 7.Close socket [12:20:20]Sock 7.Thread stoped [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:37]accept exits with 9 [12:21:37]New connection [12:21:37]New thread 3066740068 created [12:21:37]Thread 3066596708 joined [12:21:37]Waiting for new connection... [12:21:37] Sock 9.Parse request [12:21:37]Sock 9.Check first char [12:21:37]Sock 9.First char is OK [12:21:37]request: POST /json_proto HTTP/1.0 [12:21:37]Method: POST [12:21:37]URL: /json_proto [12:21:37]Method is POST - this is cgi request [12:21:37]url: /json_proto [12:21:37]query_string will be loaded in cgi processing [12:21:37]execute_cgi json_proto POST (null) [12:21:37]execute_cgi path=json_proto method=POST [12:21:37]POST find Content-Length [12:21:37]Host: 172.17.58.67:8080 [12:21:37]Content-Length: 1201 [12:21:37]Content-Type: application/json [12:21:37] [12:21:37]POST finish read [12:21:37]Found Content-Length = 1201 [12:21:37]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141135\u000A13.08.2024 11:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 2636.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\u000A3936288;287\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:37]execute_script... [12:21:37]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141135\u000A13.08.2024 11:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 2636.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\u000A3936288;287\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:37]POST & json_proto [12:21:37]process_json_proto [12:21:37]json parsed OK: [12:21:37]protocol is kg_v1.0 [12:21:37]action value=print_text [12:21:37]process_action print_text [12:21:37]cmd_print_text [12:21:37]ExternCall_PrintAddStr [12:21:37]wPrintStart [12:21:37]Write to MH i2c: 01 00 00 8A 00 8A [12:21:37]Write i2c OK [12:21:37]MH_I2C_Read... [12:21:37]Read from MH i2c: 01 [12:21:37]MH_I2C_Read... [12:21:37]Read from MH i2c: 01 07 00 [12:21:37]MH_I2C_Read... [12:21:37]Read from MH i2c: 01 07 00 8A 00 00 00 00 00 00 FF 0F 9F [12:21:37]RasterBufferAndPrint [12:21:37]line *****ТОВÐРÐЫЙ ЧЕК***** [12:21:37]line ÐЗС 39 [12:21:37]line Партнер нефть [12:21:37]line 02508201610067 [12:21:37]line КаÑÑир : ОваÑбекова Л. [12:21:37]line Счет N : (1)141135 [12:21:37]line 13.08.2024 11:40 [12:21:37]line ПРОДÐЖР[12:21:37]line ТРК (МРК, ГÐК): 41 [12:21:37]line Вид ГСМ : 2710124130 [12:21:37]line Ðи-92-К-5 [12:21:37]line 40.000 x 65.90 [12:21:37]line ИТОГ: 2636.00 [12:21:37]line Тип оплаты: Талоны: Партнер нефть [12:21:37]line 3936288;287 [12:21:37]line ______________________ [12:21:37]line (подпиÑÑŒ) [12:21:37]written 0, free lines is 4095 [12:21:37]Write to MH i2c: 01 00 00 9E 00 9E [12:21:37]Write i2c OK [12:21:37]MH_I2C_Read... [12:21:37]Read from MH i2c: 01 [12:21:37]MH_I2C_Read... [12:21:37]Read from MH i2c: 01 07 00 [12:21:37]MH_I2C_Read... [12:21:37]Read from MH i2c: 01 07 00 9E 00 00 00 00 00 00 14 0E C7 [12:21:37]RasterBufferAndPrint [12:21:37]line [12:21:37]line [12:21:37]line [12:21:37]line [12:21:37]line [12:21:37]written 0, free lines is 3606 [12:21:37]MH_Cut [12:21:37]Write to MH i2c: D1 01 00 A5 00 01 77 [12:21:37]Write i2c OK [12:21:37]MH_I2C_Read... [12:21:37]Read from MH i2c: D1 [12:21:37]MH_I2C_Read... [12:21:37]Read from MH i2c: D1 01 00 [12:21:37]MH_I2C_Read... [12:21:37]Read from MH i2c: D1 01 00 A5 00 00 76 [12:21:37]Write to MH i2c: 01 00 00 A6 00 A6 [12:21:37]Write i2c OK [12:21:37]MH_I2C_Read... [12:21:38]*** Cut start [12:21:38]*** Purtial cut [12:21:38]*** CUTSNS_PIN = 0 [12:21:38]*** Stage 1: CUTSNS_PIN = 1 [12:21:39]OFD Sender: No OFD packet to send [12:21:40]Read from MH i2c: 01 [12:21:40]MH_I2C_Read... [12:21:40]*** Stop cut motor [12:21:40]*** Cut end [12:21:40]Read from MH i2c: 01 07 00 [12:21:40]MH_I2C_Read... [12:21:40]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 FF 0F BB [12:21:40]process_action print_text done [12:21:40]requested_data is exist [12:21:40]produce_requested_data [12:21:40]requested_item fm.sn is exist - process it [12:21:40]wFMCommunicate request_size=4 [12:21:40]MH_SAM_APDU [12:21:40]CAPDU: 80 11 00 00 [12:21:40]Write to MH i2c: E2 08 00 A7 00 80 11 00 00 00 00 00 00 21 [12:21:40]Write i2c OK [12:21:40]MH_I2C_Read... [12:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:40]Read from MH i2c: E2 [12:21:40]MH_I2C_Read... [12:21:40]Read from MH i2c: E2 17 00 [12:21:40]MH_I2C_Read... [12:21:40]Read from MH i2c: E2 17 00 A7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 76 [12:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:21:40]wFMCommunicate OK [12:21:40]requested_item fd.num is exist - process it [12:21:40]SAM_PROTO_GetFieldsCounters [12:21:40]wFMCommunicate request_size=4 [12:21:40]MH_SAM_APDU [12:21:40]CAPDU: 80 13 00 00 [12:21:40]Write to MH i2c: E2 08 00 A8 00 80 13 00 00 00 00 00 00 24 [12:21:40]Write i2c OK [12:21:40]MH_I2C_Read... [12:21:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:40]Read from MH i2c: E2 [12:21:40]MH_I2C_Read... [12:21:40]Read from MH i2c: E2 62 00 [12:21:40]MH_I2C_Read... [12:21:40]Read from MH i2c: E2 62 00 A8 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 15 14 01 00 0E 04 04 00 D2 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 9E [12:21:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 15 14 01 00 0E 04 04 00 D2 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 [12:21:40]wFMCommunicate OK [12:21:40]SAM_PROTO_GetFieldsCounters done [12:21:40]requested_item shift.num is exist - process it [12:21:40]requested_item shift.opened is exist - process it [12:21:40]req_shift_opened [12:21:40]FM_GetShiftState [12:21:40]SAM_PROTO_GetShiftState [12:21:40]wFMCommunicate request_size=4 [12:21:40]MH_SAM_APDU [12:21:40]CAPDU: 80 13 01 00 [12:21:40]Write to MH i2c: E2 08 00 A9 00 80 13 01 00 00 00 00 00 26 [12:21:40]Write i2c OK [12:21:40]MH_I2C_Read... [12:21:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:40]Read from MH i2c: E2 [12:21:40]MH_I2C_Read... [12:21:40]Read from MH i2c: E2 0E 00 [12:21:40]MH_I2C_Read... [12:21:40]Read from MH i2c: E2 0E 00 A9 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 95 [12:21:40]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [12:21:40]wFMCommunicate OK [12:21:40]SAM_PROTO_GetShiftState done [12:21:40]FM_GetShiftState done [12:21:40]req_shift_opened done [12:21:40]requested_item shift.open_date is exist - process it [12:21:40]req_shift_open_date [12:21:40]req_shift_open_date done [12:21:40]produce_requested_data done [12:21:40]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70677,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [12:21:40]process_action_free print_text [12:21:40]json_value_free [12:21:40]json_value_free done [12:21:40]process_json_proto returns [12:21:40]Send response to host [12:21:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70677,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [12:21:40]free response buf [12:21:40]execute_script done [12:21:40]execute_script returns [12:21:40]free content buf [12:21:40]Sock 9.Close socket [12:21:40]Sock 9.Thread stoped [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:34]int [12:22:34]Write to MH i2c: 01 00 00 AA 00 AA [12:22:34]*** FLAG_PRN_KEY set [12:22:34]Write i2c OK [12:22:34]MH_I2C_Read... [12:22:34]Read from MH i2c: 01 [12:22:34]MH_I2C_Read... [12:22:34]Read from MH i2c: 01 07 00 [12:22:34]MH_I2C_Read... [12:22:34]Read from MH i2c: 01 07 00 AA 00 00 08 00 00 00 FF 0F C7 [12:22:34]state=0 [12:22:34]Key pressed [12:22:34]Feed [12:22:34]Write to MH i2c: D8 00 00 AB 00 82 [12:22:34]Write i2c OK [12:22:34]MH_I2C_Read... [12:22:34]Read from MH i2c: D8 [12:22:34]MH_I2C_Read... [12:22:34]Read from MH i2c: D8 01 00 [12:22:34]MH_I2C_Read... [12:22:34]Read from MH i2c: D8 01 00 AB 00 00 83 [12:22:34]int [12:22:34]Write to MH i2c: 01 00 00 AC 00 AC [12:22:34]Write i2c OK [12:22:34]MH_I2C_Read... [12:22:34]Read from MH i2c: 01 [12:22:34]MH_I2C_Read... [12:22:34]Read from MH i2c: 01 07 00 [12:22:34]MH_I2C_Read... [12:22:34]Read from MH i2c: 01 07 00 AC 00 00 48 00 00 00 3C 00 37 [12:22:34]state=2 [12:22:34]Key pressed [12:22:34]int [12:22:34]Write to MH i2c: 01 00 00 AD 00 AD [12:22:34]*** FLAG_PRN_KEY reset [12:22:34]Write i2c OK [12:22:34]MH_I2C_Read... [12:22:34]Read from MH i2c: 01 [12:22:34]MH_I2C_Read... [12:22:34]Read from MH i2c: 01 07 00 [12:22:34]MH_I2C_Read... [12:22:34]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 F6 0F B9 [12:22:34]state=2 [12:22:34]Stop feed [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:05]accept exits with 7 [12:32:05]New connection [12:32:05]New thread 3066596708 created [12:32:05]Thread 3066740068 joined [12:32:05]Waiting for new connection... [12:32:05] Sock 7.Parse request [12:32:05]Sock 7.Check first char [12:32:05]Sock 7.First char is OK [12:32:05]request: POST /json_proto HTTP/1.0 [12:32:05]Method: POST [12:32:05]URL: /json_proto [12:32:05]Method is POST - this is cgi request [12:32:05]url: /json_proto [12:32:05]query_string will be loaded in cgi processing [12:32:05]execute_cgi json_proto POST (null) [12:32:05]execute_cgi path=json_proto method=POST [12:32:05]POST find Content-Length [12:32:05]Host: 172.17.58.67:8080 [12:32:05]Content-Length: 677 [12:32:05]Content-Type: application/json [12:32:05] [12:32:05]POST finish read [12:32:05]Found Content-Length = 677 [12:32:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.100, "sum" : 270.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:05]execute_script... [12:32:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.100, "sum" : 270.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:05]POST & json_proto [12:32:05]process_json_proto [12:32:05]json parsed OK: [12:32:05]protocol is kg_v1.0 [12:32:05]action value=close_receipt [12:32:05]process_action close_receipt [12:32:05]cmd_close_receipt [12:32:05]MH_GetDate [12:32:05]Write to MH i2c: F0 00 00 AE 00 9D [12:32:05]Write i2c OK [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: F0 [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: F0 09 00 [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: F0 09 00 AE 00 00 45 52 BB 66 94 51 63 64 0A [12:32:05]GetLastDocTimeStamp 1723551616 [12:32:05]current date 1723552325 [12:32:05]FM_GetShiftState [12:32:05]SAM_PROTO_GetShiftState [12:32:05]wFMCommunicate request_size=4 [12:32:05]MH_SAM_APDU [12:32:05]CAPDU: 80 13 01 00 [12:32:05]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [12:32:05]Write i2c OK [12:32:05]MH_I2C_Read... [12:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:05]Read from MH i2c: E2 [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: E2 0E 00 [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 9B [12:32:05]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [12:32:05]wFMCommunicate OK [12:32:05]SAM_PROTO_GetShiftState done [12:32:05]FM_GetShiftState done [12:32:05]opened in 1723509656 [12:32:05]opened+sec_in_day 1723596056 [12:32:05]quantity*price = 27019 [12:32:05]sum+1 = 27020 [12:32:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.19 ИТОГО: 270.00 ВнеÑено: 270.00 СДÐЧÐ: 0.00 ÐСП 1% : 2.39 ÐДС 12% : 28.69 Ðаличными: 270.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 32 13.08.2024 12:32 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70678 ФПД: 184349051966913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T123205&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70678&fm=184349051966913&tin=02508201610067®Number=0000000000090913&sum=27000 [12:32:06]StoreToDocumentArchive [12:32:06]shift 466 fd 70678 [12:32:06]save to /storage/0466/doc_00070678 [12:32:06]save last doc name /storage/0466/doc_00070678 to /storage/kkm_last_doc_name [12:32:06]save OK [12:32:06]Clear old archive folders... [12:32:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:06]tlvbuf is 00F20A30 [12:32:06]SAM_PROTO_ClearQueue [12:32:06]wFMCommunicate request_size=4 [12:32:06]MH_SAM_APDU [12:32:06]CAPDU: 80 09 00 00 [12:32:06]Write to MH i2c: E2 08 00 BC 00 80 09 00 00 00 00 00 00 2E [12:32:06]Write i2c OK [12:32:06]MH_I2C_Read... [12:32:06]Read from MH i2c: E2 [12:32:06]MH_I2C_Read... [12:32:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:06]Read from MH i2c: E2 03 00 [12:32:06]MH_I2C_Read... [12:32:06]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [12:32:06]RAPDU: 90 00 [12:32:06]wFMCommunicate OK [12:32:06]SAM_PROTO_ClearQueue done [12:32:06]KKMCreateOFDPacket [12:32:06]OFDProtocolAddRootSTLVToBuf [12:32:06]FM_MakeSignedData [12:32:06]FM_MakeSignedData [12:32:06]SAM_PROTO_SignData [12:32:06]wFMCommunicate request_size=4 [12:32:06]MH_SAM_APDU [12:32:06]CAPDU: 80 0D 01 02 [12:32:06]Write to MH i2c: E2 08 00 BD 00 80 0D 01 02 00 00 00 00 36 [12:32:06]Write i2c OK [12:32:06]MH_I2C_Read... [12:32:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:06]Read from MH i2c: E2 [12:32:06]MH_I2C_Read... [12:32:06]Read from MH i2c: E2 03 00 [12:32:06]MH_I2C_Read... [12:32:06]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [12:32:06]RAPDU: 90 00 [12:32:06]wFMCommunicate OK [12:32:06]wFMCommunicate request_size=255 [12:32:06]MH_SAM_APDU [12:32:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 10 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 8B 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 45 52 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 16 14 01 00 35 04 06 00 A7 [12:32:06]Write to MH i2c: E2 02 01 BE 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 04 10 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 8B 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 45 52 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 16 14 01 00 35 04 06 00 A7 00 00 8C [12:32:06]Write i2c OK [12:32:06]MH_I2C_Read... [12:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:06]Read from MH i2c: E2 [12:32:06]MH_I2C_Read... [12:32:06]Read from MH i2c: E2 03 00 [12:32:06]MH_I2C_Read... [12:32:06]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [12:32:06]RAPDU: 90 00 [12:32:06]wFMCommunicate OK [12:32:06]wFMCommunicate request_size=10 [12:32:06]MH_SAM_APDU [12:32:06]CAPDU: 80 0D 02 02 05 AA 1B C1 D5 C1 [12:32:06]Write to MH i2c: E2 0D 00 BF 00 80 0D 02 02 05 00 AA 1B C1 D5 C1 00 00 5F [12:32:06]Write i2c OK [12:32:06]MH_I2C_Read... [12:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:07]Read from MH i2c: E2 [12:32:07]MH_I2C_Read... [12:32:07]Read from MH i2c: E2 03 00 [12:32:07]MH_I2C_Read... [12:32:07]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [12:32:07]RAPDU: 90 00 [12:32:07]wFMCommunicate OK [12:32:07]wFMCommunicate request_size=4 [12:32:07]MH_SAM_APDU [12:32:07]CAPDU: 80 0D 03 02 [12:32:07]Write to MH i2c: E2 08 00 C0 00 80 0D 03 02 00 00 00 00 3B [12:32:07]Write i2c OK [12:32:07]MH_I2C_Read... [12:32:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:07]Read from MH i2c: E2 [12:32:07]MH_I2C_Read... [12:32:07]Read from MH i2c: E2 0B 00 [12:32:07]MH_I2C_Read... [12:32:07]Read from MH i2c: E2 0B 00 C0 00 00 35 75 96 02 BA 26 8B 91 90 00 7A [12:32:07]RAPDU: 35 75 96 02 BA 26 8B 91 90 00 [12:32:07]wFMCommunicate OK [12:32:07]SAM_PROTO_SignData done [12:32:07]FM_MakeSignedData done [12:32:07]CreateOFDProtocolMessage [12:32:07]wFMCommunicate request_size=4 [12:32:07]MH_SAM_APDU [12:32:07]CAPDU: 80 11 00 00 [12:32:07]Write to MH i2c: E2 08 00 C1 00 80 11 00 00 00 00 00 00 3B [12:32:07]Write i2c OK [12:32:07]MH_I2C_Read... [12:32:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:07]Read from MH i2c: E2 [12:32:07]MH_I2C_Read... [12:32:07]Read from MH i2c: E2 17 00 [12:32:07]MH_I2C_Read... [12:32:07]Read from MH i2c: E2 17 00 C1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 90 [12:32:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:32:07]wFMCommunicate OK [12:32:07]CreateOFDProtocolMessage done [12:32:07]OFDSenderStorePacket 70678 [12:32:07]StoreOFDPacket docnum=70678 [12:32:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 66 D1 07 01 11 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 10 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 8B 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 45 52 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 16 14 01 00 35 04 06 00 A7 AA 1B C1 D5 C1 35 75 96 02 BA 26 8B 91 [12:32:07]CheckFolder [12:32:07]dirname=/storage/ofd_packets [12:32:07]CheckFolder done [12:32:07]ProducePacketName [12:32:07]name=ofd_packets/00070678 [12:32:07]NVStorageSaveData ofd_packets/00070678 [12:32:07]File name is /storage/ofd_packets/00070678 [12:32:07]Write 301 bytes [12:32:07]NVStorageSaveData done [12:32:07]OFDSenderStorePacket done [12:32:07]KKMCreateOFDPacket done [12:32:07]NVStorageSaveData kkm_last_timestamp [12:32:07]File name is /storage/kkm_last_timestamp [12:32:07]Write 4 bytes [12:32:07]NVStorageSaveData done [12:32:07]ExternCall_PrintAddStr [12:32:07]wPrintStart [12:32:07]Write to MH i2c: 01 00 00 C2 00 C2 [12:32:07]Write i2c OK [12:32:07]MH_I2C_Read... [12:32:07]Read from MH i2c: 01 [12:32:07]MH_I2C_Read... [12:32:07]Read from MH i2c: 01 07 00 [12:32:07]MH_I2C_Read... [12:32:07]Read from MH i2c: 01 07 00 C2 00 00 00 00 00 00 FF 0F D7 [12:32:07]RasterBufferAndPrint [12:32:07]line Счет N : (1)141136 [12:32:07]line ИÐÐ: 02508201610067 [12:32:07]line Контрольно-КаÑÑовый Чек [12:32:07]line ПРОДÐЖР[12:32:07]line ТРК (МРК, ГÐК) : 41 [12:32:07]line Товар: 2710124130 [12:32:07]line Ðи-92-К-5 [12:32:07]line 4.100 * 65.90 [12:32:07]line = 270.19 [12:32:07]line ÐДС 12% ÐСП 1% [12:32:07]line > о реализуемом товаре [12:32:07]line ОКРУГЛЕÐИЕ: -0.19 [12:32:07]line ИТОГО: 270.00 [12:32:07]line ВнеÑено: 270.00 [12:32:07]line СДÐЧÐ: 0.00 [12:32:07]line ÐСП 1% : 2.39 [12:32:07]line ÐДС 12% : 28.69 [12:32:07]line Ðаличными: 270.00 [12:32:07]line Безнал.: 0.00 [12:32:07]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [12:32:07]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [12:32:07]line СÐО: Общий режим [12:32:07]line Чек 32 13.08.2024 12:32 [12:32:07]line Смена: 466 ФФД: 1.0 [12:32:07]line ЗÐМ: 0300000140 [12:32:07]line РÐМ: 0000000000090913 [12:32:07]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:32:07]line ФМ: 0000000000874915 [12:32:07]line ФД: 70678 [12:32:07]line ФПД: 184349051966913 [12:32:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T123205&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70678&fm=184349051966913&tin=02508201610067®Number=0000000000090913&sum=27000 [12:32:07]OFD Sender: Processing packet 70678 [packets to send 67, broken 66] [12:32:07]ProducePacketName [12:32:07]name=ofd_packets/00070678 [12:32:07]OFD Sender: To server: ‡•öpG, [12:32:07]CommunicateWithHost lk.salyk.kg:30040 [12:32:07]ConnectInit lk.salyk.kg [12:32:07]written 0, free lines is 4095 [12:32:07]Connected sock=10 [12:32:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 66 D1 07 01 11 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 10 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 8B 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 45 52 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 16 14 01 00 35 04 06 00 A7 AA 1B C1 D5 C1 35 75 96 02 BA 26 8B 91 [12:32:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 C0 AF 47 00 74 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 31 35 10 04 04 00 16 14 01 00 F4 03 04 00 30 F9 BA 66 B6 04 01 00 00 2F BE 83 43 A6 97 F0 18 [12:32:07]CommunicateWithHost err = 0 [12:32:07]CheckOFDResponse [12:32:07]1017 (14) - 77093643461234 [12:32:07]1041 (16) - 0000000000874915 [12:32:07]1040 (4) - 70678 [12:32:07]1012 (4) - 13.08.2024 06:12 [12:32:07]1206 (1) - 0 [12:32:07]OFD Sender: Remove packet 70678 [12:32:07]ProducePacketName [12:32:07]name=ofd_packets/00070678 [12:32:07]NVStorageDeleteData [12:32:07]Write to MH i2c: 01 00 00 ED 00 ED [12:32:07]Write i2c OK [12:32:07]MH_I2C_Read... [12:32:07]Read from MH i2c: 01 [12:32:07]MH_I2C_Read... [12:32:07]Read from MH i2c: 01 07 00 [12:32:07]MH_I2C_Read... [12:32:07]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 EA 0C EA [12:32:07]RasterBufferAndPrint [12:32:07]line [12:32:07]line [12:32:07]line [12:32:07]line [12:32:07]line [12:32:07]written 0, free lines is 3312 [12:32:07]MH_Cut [12:32:07]Write to MH i2c: D1 01 00 F4 00 01 C6 [12:32:07]Write i2c OK [12:32:07]MH_I2C_Read... [12:32:07]Read from MH i2c: D1 [12:32:07]MH_I2C_Read... [12:32:07]Read from MH i2c: D1 01 00 [12:32:07]MH_I2C_Read... [12:32:07]Read from MH i2c: D1 01 00 F4 00 00 C5 [12:32:07]Write to MH i2c: 01 00 00 F5 00 F5 [12:32:07]Write i2c OK [12:32:07]MH_I2C_Read... [12:32:08]OFD Sender: No OFD packet to send [12:32:08]*** Cut start [12:32:08]*** Purtial cut [12:32:08]*** Stage 1: CUTSNS_PIN = 1 [12:32:08]Read from MH i2c: 01 [12:32:08]MH_I2C_Read... [12:32:08]*** Stop cut motor [12:32:08]*** Cut end [12:32:08]Read from MH i2c: 01 07 00 [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: 01 07 00 F5 00 00 00 00 00 00 FF 0F 0A [12:32:08]process_action close_receipt done [12:32:08]requested_data is exist [12:32:08]produce_requested_data [12:32:08]requested_item fm.sn is exist - process it [12:32:08]wFMCommunicate request_size=4 [12:32:08]MH_SAM_APDU [12:32:08]CAPDU: 80 11 00 00 [12:32:08]Write to MH i2c: E2 08 00 F6 00 80 11 00 00 00 00 00 00 70 [12:32:08]Write i2c OK [12:32:08]MH_I2C_Read... [12:32:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:08]Read from MH i2c: E2 [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: E2 17 00 [12:32:08]MH_I2C_Read... [12:32:08]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 39 31 35 90 00 C5 [12:32:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:32:08]wFMCommunicate OK [12:32:08]requested_item fd.num is exist - process it [12:32:08]SAM_PROTO_GetFieldsCounters [12:32:08]wFMCommunicate request_size=4 [12:32:08]MH_SAM_APDU [12:32:08]CAPDU: 80 13 00 00 [12:32:08]Write to MH i2c: E2 08 00 F7 00 80 13 00 00 00 00 00 00 73 [12:32:08]Write i2c OK [12:32:08]MH_I2C_Read... [12:32:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:09]Read from MH i2c: E2 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: E2 62 00 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: E2 62 00 F7 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 16 14 01 00 0E 04 04 00 D2 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 F1 [12:32: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 16 14 01 00 0E 04 04 00 D2 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 [12:32:09]wFMCommunicate OK [12:32:09]SAM_PROTO_GetFieldsCounters done [12:32:09]requested_item shift.num is exist - process it [12:32:09]requested_item shift.opened is exist - process it [12:32:09]req_shift_opened [12:32:09]FM_GetShiftState [12:32:09]SAM_PROTO_GetShiftState [12:32:09]wFMCommunicate request_size=4 [12:32:09]MH_SAM_APDU [12:32:09]CAPDU: 80 13 01 00 [12:32:09]Write to MH i2c: E2 08 00 F8 00 80 13 01 00 00 00 00 00 75 [12:32:09]Write i2c OK [12:32:09]MH_I2C_Read... [12:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:09]Read from MH i2c: E2 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: E2 0E 00 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: E2 0E 00 F8 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 E4 [12:32:09]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [12:32:09]wFMCommunicate OK [12:32:09]SAM_PROTO_GetShiftState done [12:32:09]FM_GetShiftState done [12:32:09]req_shift_opened done [12:32:09]requested_item shift.open_date is exist - process it [12:32:09]req_shift_open_date [12:32:09]req_shift_open_date done [12:32:09]produce_requested_data done [12:32:09]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70678,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [12:32:09]process_action_free close_receipt [12:32:09]json_value_free [12:32:09]json_value_free done [12:32:09]process_json_proto returns [12:32:09]Send response to host [12:32:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70678,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [12:32:09]free response buf [12:32:09]execute_script done [12:32:09]execute_script returns [12:32:09]free content buf [12:32:09]Sock 7.Close socket [12:32:09]Sock 7.Thread stoped [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:43]accept exits with 9 [12:50:43]New connection [12:50:43]New thread 3066740068 created [12:50:43]Thread 3066596708 joined [12:50:43]Waiting for new connection... [12:50:43] Sock 9.Parse request [12:50:43]Sock 9.Check first char [12:50:43]Sock 9.First char is OK [12:50:43]request: POST /json_proto HTTP/1.0 [12:50:43]Method: POST [12:50:43]URL: /json_proto [12:50:43]Method is POST - this is cgi request [12:50:43]url: /json_proto [12:50:43]query_string will be loaded in cgi processing [12:50:43]execute_cgi json_proto POST (null) [12:50:43]execute_cgi path=json_proto method=POST [12:50:43]POST find Content-Length [12:50:43]Host: 172.17.58.67:8080 [12:50:43]Content-Length: 622 [12:50:43]Content-Type: application/json [12:50:43] [12:50:43]POST finish read [12:50:43]Found Content-Length = 622 [12:50:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17475", "tax_sys" : 0, "items" : [ { "code": "4870001150389", "name": "\u0421\u043E\u043A DaDa 0,95\u043B \u0412\u0438\u0448\u043D\u044F", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:43]execute_script... [12:50:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17475", "tax_sys" : 0, "items" : [ { "code": "4870001150389", "name": "\u0421\u043E\u043A DaDa 0,95\u043B \u0412\u0438\u0448\u043D\u044F", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:43]POST & json_proto [12:50:43]process_json_proto [12:50:43]json parsed OK: [12:50:43]protocol is kg_v1.0 [12:50:43]action value=close_receipt [12:50:43]process_action close_receipt [12:50:43]cmd_close_receipt [12:50:43]MH_GetDate [12:50:43]Write to MH i2c: F0 00 00 F9 00 E8 [12:50:43]Write i2c OK [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: F0 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: F0 09 00 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: F0 09 00 F9 00 00 A3 56 BB 66 94 51 63 64 B7 [12:50:43]GetLastDocTimeStamp 1723552325 [12:50:43]current date 1723553443 [12:50:43]FM_GetShiftState [12:50:43]SAM_PROTO_GetShiftState [12:50:43]wFMCommunicate request_size=4 [12:50:43]MH_SAM_APDU [12:50:43]CAPDU: 80 13 01 00 [12:50:43]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [12:50:43]Write i2c OK [12:50:43]MH_I2C_Read... [12:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:43]Read from MH i2c: E2 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 0E 00 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 E6 [12:50:43]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [12:50:43]wFMCommunicate OK [12:50:43]SAM_PROTO_GetShiftState done [12:50:43]FM_GetShiftState done [12:50:43]opened in 1723509656 [12:50:43]opened+sec_in_day 1723596056 [12:50:43]quantity*price = 15000 [12:50:43]sum+1 = 15001 [12:50:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 ÐСП 1% : 1.33 ÐДС 12% : 15.93 Ðаличными: 150.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 33 13.08.2024 12:50 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70679 ФПД: 227776932411053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T125043&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70679&fm=227776932411053&tin=02508201610067®Number=0000000000090913&sum=15000 0 [12:50:44]StoreToDocumentArchive [12:50:44]shift 466 fd 70679 [12:50:44]save to /storage/0466/doc_00070679 [12:50:44]save last doc name /storage/0466/doc_00070679 to /storage/kkm_last_doc_name [12:50:44]OFD Sender: No OFD packet to send [12:50:44]save OK [12:50:44]Clear old archive folders... [12:50:44]ProcessDocumentItem done err = 0, tmpTLVsize=271 [12:50:44]tlvbuf is 00F54580 [12:50:44]SAM_PROTO_ClearQueue [12:50:44]wFMCommunicate request_size=4 [12:50:44]MH_SAM_APDU [12:50:44]CAPDU: 80 09 00 00 [12:50:44]Write to MH i2c: E2 08 00 07 01 80 09 00 00 00 00 00 00 7A [12:50:44]Write i2c OK [12:50:44]MH_I2C_Read... [12:50:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:44]Read from MH i2c: E2 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 03 00 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [12:50:44]RAPDU: 90 00 [12:50:44]wFMCommunicate OK [12:50:44]SAM_PROTO_ClearQueue done [12:50:44]KKMCreateOFDPacket [12:50:44]OFDProtocolAddRootSTLVToBuf [12:50:44]FM_MakeSignedData [12:50:44]FM_MakeSignedData [12:50:44]SAM_PROTO_SignData [12:50:44]wFMCommunicate request_size=4 [12:50:44]MH_SAM_APDU [12:50:44]CAPDU: 80 0D 01 02 [12:50:44]Write to MH i2c: E2 08 00 08 01 80 0D 01 02 00 00 00 00 82 [12:50:44]Write i2c OK [12:50:44]MH_I2C_Read... [12:50:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:44]Read from MH i2c: E2 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 03 00 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [12:50:44]RAPDU: 90 00 [12:50:44]wFMCommunicate OK [12:50:44]wFMCommunicate request_size=255 [12:50:44]MH_SAM_APDU [12:50:44]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 A3 56 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [12:50:44]Write to MH i2c: E2 02 01 09 01 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 A3 56 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 EC [12:50:44]Write i2c OK [12:50:44]MH_I2C_Read... [12:50:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:44]Read from MH i2c: E2 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 03 00 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [12:50:44]RAPDU: 90 00 [12:50:44]wFMCommunicate OK [12:50:44]wFMCommunicate request_size=30 [12:50:44]MH_SAM_APDU [12:50:44]CAPDU: 80 0D 02 02 19 30 38 37 34 39 31 35 10 04 04 00 17 14 01 00 35 04 06 00 CF 29 73 24 F6 AD [12:50:44]Write to MH i2c: E2 21 00 0A 01 80 0D 02 02 19 00 30 38 37 34 39 31 35 10 04 04 00 17 14 01 00 35 04 06 00 CF 29 73 24 F6 AD 00 00 DE [12:50:44]Write i2c OK [12:50:44]MH_I2C_Read... [12:50:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:44]Read from MH i2c: E2 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 03 00 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [12:50:44]RAPDU: 90 00 [12:50:44]wFMCommunicate OK [12:50:44]wFMCommunicate request_size=4 [12:50:44]MH_SAM_APDU [12:50:44]CAPDU: 80 0D 03 02 [12:50:44]Write to MH i2c: E2 08 00 0B 01 80 0D 03 02 00 00 00 00 87 [12:50:44]Write i2c OK [12:50:44]MH_I2C_Read... [12:50:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:44]Read from MH i2c: E2 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 0B 00 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 0B 00 0B 01 00 0C 41 C5 C4 9C 51 05 04 90 00 54 [12:50:44]RAPDU: 0C 41 C5 C4 9C 51 05 04 90 00 [12:50:44]wFMCommunicate OK [12:50:44]SAM_PROTO_SignData done [12:50:44]FM_MakeSignedData done [12:50:44]CreateOFDProtocolMessage [12:50:44]wFMCommunicate request_size=4 [12:50:44]MH_SAM_APDU [12:50:44]CAPDU: 80 11 00 00 [12:50:44]Write to MH i2c: E2 08 00 0C 01 80 11 00 00 00 00 00 00 87 [12:50:44]Write i2c OK [12:50:44]MH_I2C_Read... [12:50:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:44]Read from MH i2c: E2 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 17 00 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 17 00 0C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 DC [12:50:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:50:44]wFMCommunicate OK [12:50:44]CreateOFDProtocolMessage done [12:50:44]OFDSenderStorePacket 70679 [12:50:44]StoreOFDPacket docnum=70679 [12:50:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 23 01 00 00 7C 99 1B 01 4F A5 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 A3 56 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 17 14 01 00 35 04 06 00 CF 29 73 24 F6 AD 0C 41 C5 C4 9C 51 05 04 [12:50:44]CheckFolder [12:50:44]dirname=/storage/ofd_packets [12:50:44]CheckFolder done [12:50:44]ProducePacketName [12:50:44]name=ofd_packets/00070679 [12:50:44]NVStorageSaveData ofd_packets/00070679 [12:50:44]File name is /storage/ofd_packets/00070679 [12:50:44]Write 321 bytes [12:50:44]NVStorageSaveData done [12:50:44]OFDSenderStorePacket done [12:50:44]KKMCreateOFDPacket done [12:50:44]NVStorageSaveData kkm_last_timestamp [12:50:44]File name is /storage/kkm_last_timestamp [12:50:44]Write 4 bytes [12:50:44]NVStorageSaveData done [12:50:44]ExternCall_PrintAddStr [12:50:44]wPrintStart [12:50:44]Write to MH i2c: 01 00 00 0D 01 0E [12:50:44]Write i2c OK [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: 01 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: 01 07 00 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: 01 07 00 0D 01 00 00 00 00 00 FF 0F 23 [12:50:44]RasterBufferAndPrint [12:50:44]line Счет N : (3)17475 [12:50:44]line ИÐÐ: 02508201610067 [12:50:44]line Контрольно-КаÑÑовый Чек [12:50:44]line ПРОДÐЖР[12:50:44]line Товар: 4870001150389 [12:50:44]line Сок DaDa 0,95л Ð’Ð¸ÑˆÐ½Ñ [12:50:44]line 1.000 * 150.00 [12:50:44]line = 150.00 [12:50:44]line ÐДС 12% ÐСП 1% [12:50:44]line > о реализуемом товаре [12:50:44]line ИТОГО: 150.00 [12:50:44]line ÐСП 1% : 1.33 [12:50:44]line ÐДС 12% : 15.93 [12:50:44]line Ðаличными: 150.00 [12:50:44]line Безнал.: 0.00 [12:50:44]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [12:50:44]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [12:50:44]line СÐО: Общий режим [12:50:44]line Чек 33 13.08.2024 12:50 [12:50:44]line Смена: 466 ФФД: 1.0 [12:50:44]line ЗÐМ: 0300000140 [12:50:44]line РÐМ: 0000000000090913 [12:50:44]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:50:44]line ФМ: 0000000000874915 [12:50:44]line ФД: 70679 [12:50:44]line ФПД: 227776932411053 [12:50:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T125043&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70679&fm=227776932411053&tin=02508201610067®Number=0000000000090913&sum=15000 [12:50:44]line 0 [12:50:44]written 0, free lines is 4095 [12:50:44]OFD Sender: Processing packet 70679 [packets to send 67, broken 66] [12:50:44]ProducePacketName [12:50:44]name=ofd_packets/00070679 [12:50:44]OFD Sender: To server: ‡•öpG, [12:50:44]CommunicateWithHost lk.salyk.kg:30040 [12:50:44]ConnectInit lk.salyk.kg [12:50:45]Connected sock=10 [12:50: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 39 31 35 23 01 00 00 7C 99 1B 01 4F A5 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 A3 56 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 17 14 01 00 35 04 06 00 CF 29 73 24 F6 AD 0C 41 C5 C4 9C 51 05 04 [12:50:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 F0 5C 47 00 67 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 17 14 01 00 F4 03 04 00 8E FD BA 66 B6 04 01 00 00 E5 C2 A0 84 EC 0D 94 B2 [12:50:45]CommunicateWithHost err = 0 [12:50:45]CheckOFDResponse [12:50:45]1017 (14) - 77093643461234 [12:50:45]1041 (16) - 0000000000874915 [12:50:45]1040 (4) - 70679 [12:50:45]1012 (4) - 13.08.2024 06:30 [12:50:45]1206 (1) - 0 [12:50:45]OFD Sender: Remove packet 70679 [12:50:45]ProducePacketName [12:50:45]name=ofd_packets/00070679 [12:50:45]NVStorageDeleteData [12:50:45]Write to MH i2c: 01 00 00 35 01 36 [12:50:45]Write i2c OK [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: 01 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: 01 07 00 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: 01 07 00 35 01 00 00 00 00 00 19 0D 63 [12:50:45]RasterBufferAndPrint [12:50:45]line [12:50:45]line [12:50:45]line [12:50:45]line [12:50:45]line [12:50:45]written 0, free lines is 3359 [12:50:45]MH_Cut [12:50:45]Write to MH i2c: D1 01 00 3C 01 01 0F [12:50:45]Write i2c OK [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: D1 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: D1 01 00 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: D1 01 00 3C 01 00 0E [12:50:45]Write to MH i2c: 01 00 00 3D 01 3E [12:50:45]Write i2c OK [12:50:45]MH_I2C_Read... [12:50:45]OFD Sender: No OFD packet to send [12:50:45]*** Cut start [12:50:45]*** Purtial cut [12:50:45]*** CUTSNS_PIN = 0 [12:50:46]*** Stage 1: CUTSNS_PIN = 1 [12:50:48]Read from MH i2c: 01 [12:50:48]MH_I2C_Read... [12:50:48]*** Stop cut motor [12:50:48]*** Cut end [12:50:48]Read from MH i2c: 01 07 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 FF 0F 53 [12:50:48]process_action close_receipt done [12:50:48]requested_data is exist [12:50:48]produce_requested_data [12:50:48]requested_item fm.sn is exist - process it [12:50:48]wFMCommunicate request_size=4 [12:50:48]MH_SAM_APDU [12:50:48]CAPDU: 80 11 00 00 [12:50:48]Write to MH i2c: E2 08 00 3E 01 80 11 00 00 00 00 00 00 B9 [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:48]Read from MH i2c: E2 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 17 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 17 00 3E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 0E [12:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:50:48]wFMCommunicate OK [12:50:48]requested_item fd.num is exist - process it [12:50:48]SAM_PROTO_GetFieldsCounters [12:50:48]wFMCommunicate request_size=4 [12:50:48]MH_SAM_APDU [12:50:48]CAPDU: 80 13 00 00 [12:50:48]Write to MH i2c: E2 08 00 3F 01 80 13 00 00 00 00 00 00 BC [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:48]Read from MH i2c: E2 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 62 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 62 00 3F 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 17 14 01 00 0E 04 04 00 D2 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 3E [12:50: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 17 14 01 00 0E 04 04 00 D2 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 [12:50:48]wFMCommunicate OK [12:50:48]SAM_PROTO_GetFieldsCounters done [12:50:48]requested_item shift.num is exist - process it [12:50:48]requested_item shift.opened is exist - process it [12:50:48]req_shift_opened [12:50:48]FM_GetShiftState [12:50:48]SAM_PROTO_GetShiftState [12:50:48]wFMCommunicate request_size=4 [12:50:48]MH_SAM_APDU [12:50:48]CAPDU: 80 13 01 00 [12:50:48]Write to MH i2c: E2 08 00 40 01 80 13 01 00 00 00 00 00 BE [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:48]Read from MH i2c: E2 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 0E 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 0E 00 40 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 2D [12:50:48]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [12:50:48]wFMCommunicate OK [12:50:48]SAM_PROTO_GetShiftState done [12:50:48]FM_GetShiftState done [12:50:48]req_shift_opened done [12:50:48]requested_item shift.open_date is exist - process it [12:50:48]req_shift_open_date [12:50:48]req_shift_open_date done [12:50:48]produce_requested_data done [12:50:48]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70679,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [12:50:48]process_action_free close_receipt [12:50:48]json_value_free [12:50:48]json_value_free done [12:50:48]process_json_proto returns [12:50:48]Send response to host [12:50:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70679,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [12:50:48]free response buf [12:50:48]execute_script done [12:50:48]execute_script returns [12:50:48]free content buf [12:50:48]Sock 9.Close socket [12:50:48]Sock 9.Thread stoped [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:55]OFD Sender: No OFD packet to send [12:53:00]OFD Sender: No OFD packet to send [12:53:05]OFD Sender: No OFD packet to send [12:53:10]OFD Sender: No OFD packet to send [12:53:15]OFD Sender: No OFD packet to send [12:53:20]OFD Sender: No OFD packet to send [12:53:25]OFD Sender: No OFD packet to send [12:53:30]OFD Sender: No OFD packet to send [12:53:35]OFD Sender: No OFD packet to send [12:53:40]OFD Sender: No OFD packet to send [12:53:45]OFD Sender: No OFD packet to send [12:53:50]OFD Sender: No OFD packet to send [12:53:55]OFD Sender: No OFD packet to send [12:54:00]OFD Sender: No OFD packet to send [12:54:05]OFD Sender: No OFD packet to send [12:54:10]OFD Sender: No OFD packet to send [12:54:12]accept exits with 7 [12:54:12]New connection [12:54:12]New thread 3066596708 created [12:54:12]Thread 3066740068 joined [12:54:12]Waiting for new connection... [12:54:12] Sock 7.Parse request [12:54:12]Sock 7.Check first char [12:54:12]Sock 7.First char is OK [12:54:12]request: POST /json_proto HTTP/1.0 [12:54:12]Method: POST [12:54:12]URL: /json_proto [12:54:12]Method is POST - this is cgi request [12:54:12]url: /json_proto [12:54:12]query_string will be loaded in cgi processing [12:54:12]execute_cgi json_proto POST (null) [12:54:12]execute_cgi path=json_proto method=POST [12:54:12]POST find Content-Length [12:54:12]Host: 172.17.58.67:8080 [12:54:12]Content-Length: 699 [12:54:12]Content-Type: application/json [12:54:12] [12:54:12]POST finish read [12:54:12]Found Content-Length = 699 [12:54:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17476", "tax_sys" : 0, "items" : [ { "code": "4700000482757", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043C\u0430\u043D\u0433,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:12]execute_script... [12:54:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17476", "tax_sys" : 0, "items" : [ { "code": "4700000482757", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043C\u0430\u043D\u0433,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:12]POST & json_proto [12:54:12]process_json_proto [12:54:12]json parsed OK: [12:54:12]protocol is kg_v1.0 [12:54:12]action value=close_receipt [12:54:12]process_action close_receipt [12:54:12]cmd_close_receipt [12:54:12]MH_GetDate [12:54:12]Write to MH i2c: F0 00 00 41 01 31 [12:54:12]Write i2c OK [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: F0 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: F0 09 00 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: F0 09 00 41 01 00 74 57 BB 66 94 51 63 64 D2 [12:54:12]GetLastDocTimeStamp 1723553443 [12:54:12]current date 1723553652 [12:54:12]FM_GetShiftState [12:54:12]SAM_PROTO_GetShiftState [12:54:12]wFMCommunicate request_size=4 [12:54:12]MH_SAM_APDU [12:54:12]CAPDU: 80 13 01 00 [12:54:12]Write to MH i2c: E2 08 00 42 01 80 13 01 00 00 00 00 00 C0 [12:54:12]Write i2c OK [12:54:12]MH_I2C_Read... [12:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:12]Read from MH i2c: E2 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 0E 00 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 0E 00 42 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 2F [12:54:12]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [12:54:12]wFMCommunicate OK [12:54:12]SAM_PROTO_GetShiftState done [12:54:12]FM_GetShiftState done [12:54:12]opened in 1723509656 [12:54:12]opened+sec_in_day 1723596056 [12:54:12]quantity*price = 9500 [12:54:12]sum+1 = 9501 [12:54:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 ÐСП 1% : 0.84 ÐДС 12% : 10.09 Ðаличными: 95.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 34 13.08.2024 12:54 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70680 ФПД: 204944237490942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T125412&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70680&fm=204944237490942&tin=02508201610067®Number=0000000000090913&sum=9500 0 [12:54:13]StoreToDocumentArchive [12:54:13]shift 466 fd 70680 [12:54:13]save to /storage/0466/doc_00070680 [12:54:13]save last doc name /storage/0466/doc_00070680 to /storage/kkm_last_doc_name [12:54:13]save OK [12:54:13]Clear old archive folders... [12:54:13]ProcessDocumentItem done err = 0, tmpTLVsize=303 [12:54:13]tlvbuf is 00F26AB0 [12:54:13]SAM_PROTO_ClearQueue [12:54:13]wFMCommunicate request_size=4 [12:54:13]MH_SAM_APDU [12:54:13]CAPDU: 80 09 00 00 [12:54:13]Write to MH i2c: E2 08 00 4F 01 80 09 00 00 00 00 00 00 C2 [12:54:13]Write i2c OK [12:54:13]MH_I2C_Read... [12:54:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:13]Read from MH i2c: E2 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 03 00 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [12:54:13]RAPDU: 90 00 [12:54:13]wFMCommunicate OK [12:54:13]SAM_PROTO_ClearQueue done [12:54:13]KKMCreateOFDPacket [12:54:13]OFDProtocolAddRootSTLVToBuf [12:54:13]FM_MakeSignedData [12:54:13]FM_MakeSignedData [12:54:13]SAM_PROTO_SignData [12:54:13]wFMCommunicate request_size=4 [12:54:13]MH_SAM_APDU [12:54:13]CAPDU: 80 0D 01 02 [12:54:13]Write to MH i2c: E2 08 00 50 01 80 0D 01 02 00 00 00 00 CA [12:54:13]Write i2c OK [12:54:13]MH_I2C_Read... [12:54:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:13]Read from MH i2c: E2 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 03 00 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [12:54:13]RAPDU: 90 00 [12:54:13]wFMCommunicate OK [12:54:13]wFMCommunicate request_size=255 [12:54:13]MH_SAM_APDU [12:54:13]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 74 57 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D [12:54:13]Write to MH i2c: E2 02 01 51 01 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 74 57 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 00 00 23 [12:54:13]Write i2c OK [12:54:13]MH_I2C_Read... [12:54:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:13]Read from MH i2c: E2 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 03 00 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [12:54:13]RAPDU: 90 00 [12:54:13]wFMCommunicate OK [12:54:13]wFMCommunicate request_size=62 [12:54:13]MH_SAM_APDU [12:54:13]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 18 14 01 00 35 04 06 00 BA 65 4C 79 72 FE [12:54:13]Write to MH i2c: E2 41 00 52 01 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 18 14 01 00 35 04 06 00 BA 65 4C 79 72 FE 00 00 88 [12:54:13]Write i2c OK [12:54:13]MH_I2C_Read... [12:54:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:13]Read from MH i2c: E2 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 03 00 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [12:54:13]RAPDU: 90 00 [12:54:13]wFMCommunicate OK [12:54:13]wFMCommunicate request_size=4 [12:54:13]MH_SAM_APDU [12:54:13]CAPDU: 80 0D 03 02 [12:54:13]Write to MH i2c: E2 08 00 53 01 80 0D 03 02 00 00 00 00 CF [12:54:13]Write i2c OK [12:54:13]MH_I2C_Read... [12:54:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:14]Read from MH i2c: E2 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: E2 0B 00 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: E2 0B 00 53 01 00 59 8A 75 1F 29 F4 E6 F9 90 00 43 [12:54:14]RAPDU: 59 8A 75 1F 29 F4 E6 F9 90 00 [12:54:14]wFMCommunicate OK [12:54:14]SAM_PROTO_SignData done [12:54:14]FM_MakeSignedData done [12:54:14]CreateOFDProtocolMessage [12:54:14]wFMCommunicate request_size=4 [12:54:14]MH_SAM_APDU [12:54:14]CAPDU: 80 11 00 00 [12:54:14]Write to MH i2c: E2 08 00 54 01 80 11 00 00 00 00 00 00 CF [12:54:14]Write i2c OK [12:54:14]MH_I2C_Read... [12:54:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:14]Read from MH i2c: E2 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: E2 17 00 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: E2 17 00 54 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 24 [12:54:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:54:14]wFMCommunicate OK [12:54:14]CreateOFDProtocolMessage done [12:54:14]OFDSenderStorePacket 70680 [12:54:14]StoreOFDPacket docnum=70680 [12:54:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 43 01 00 00 FC 51 3B 01 AF D3 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 74 57 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 18 14 01 00 35 04 06 00 BA 65 4C 79 72 FE 59 8A 75 1F 29 F4 E6 F9 [12:54:14]CheckFolder [12:54:14]dirname=/storage/ofd_packets [12:54:14]CheckFolder done [12:54:14]ProducePacketName [12:54:14]name=ofd_packets/00070680 [12:54:14]NVStorageSaveData ofd_packets/00070680 [12:54:14]File name is /storage/ofd_packets/00070680 [12:54:14]Write 353 bytes [12:54:14]NVStorageSaveData done [12:54:14]OFDSenderStorePacket done [12:54:14]KKMCreateOFDPacket done [12:54:14]NVStorageSaveData kkm_last_timestamp [12:54:14]File name is /storage/kkm_last_timestamp [12:54:14]Write 4 bytes [12:54:14]NVStorageSaveData done [12:54:14]ExternCall_PrintAddStr [12:54:14]wPrintStart [12:54:14]Write to MH i2c: 01 00 00 55 01 56 [12:54:14]Write i2c OK [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: 01 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: 01 07 00 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: 01 07 00 55 01 00 00 00 00 00 FF 0F 6B [12:54:14]RasterBufferAndPrint [12:54:14]line Счет N : (3)17476 [12:54:14]line ИÐÐ: 02508201610067 [12:54:14]line Контрольно-КаÑÑовый Чек [12:54:14]line ПРОДÐЖР[12:54:14]line Товар: 4700000482757 [12:54:14]line Ðапиток Nitro Fr газ манг,клуб ж/б 0,45л [12:54:14]line 1.000 * 95.00 [12:54:14]line = 95.00 [12:54:14]line ÐДС 12% ÐСП 1% [12:54:14]line > о реализуемом товаре [12:54:14]line ИТОГО: 95.00 [12:54:14]line ÐСП 1% : 0.84 [12:54:14]line ÐДС 12% : 10.09 [12:54:14]line Ðаличными: 95.00 [12:54:14]line Безнал.: 0.00 [12:54:14]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [12:54:14]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [12:54:14]line СÐО: Общий режим [12:54:14]line Чек 34 13.08.2024 12:54 [12:54:14]line Смена: 466 ФФД: 1.0 [12:54:14]line ЗÐМ: 0300000140 [12:54:14]line РÐМ: 0000000000090913 [12:54:14]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:54:14]line ФМ: 0000000000874915 [12:54:14]line ФД: 70680 [12:54:14]line ФПД: 204944237490942 [12:54:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T125412&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70680&fm=204944237490942&tin=02508201610067®Number=0000000000090913&sum=9500 [12:54:14]line 0 [12:54:14]OFD Sender: Processing packet 70680 [packets to send 67, broken 66] [12:54:14]ProducePacketName [12:54:14]name=ofd_packets/00070680 [12:54:14]OFD Sender: To server: ‡•öpG, [12:54:14]CommunicateWithHost lk.salyk.kg:30040 [12:54:14]ConnectInit lk.salyk.kg [12:54:14]written 0, free lines is 4095 [12:54:14]Connected sock=11 [12:54:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 43 01 00 00 FC 51 3B 01 AF D3 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 74 57 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 18 14 01 00 35 04 06 00 BA 65 4C 79 72 FE 59 8A 75 1F 29 F4 E6 F9 [12:54:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 CD 1A 47 00 90 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 18 14 01 00 F4 03 04 00 5F FE BA 66 B6 04 01 00 00 33 A6 55 86 E4 14 C0 27 [12:54:14]CommunicateWithHost err = 0 [12:54:14]CheckOFDResponse [12:54:14]1017 (14) - 77093643461234 [12:54:14]1041 (16) - 0000000000874915 [12:54:14]1040 (4) - 70680 [12:54:14]1012 (4) - 13.08.2024 06:34 [12:54:14]1206 (1) - 0 [12:54:14]OFD Sender: Remove packet 70680 [12:54:14]ProducePacketName [12:54:14]name=ofd_packets/00070680 [12:54:14]NVStorageDeleteData [12:54:14]Write to MH i2c: 01 00 00 7E 01 7F [12:54:14]Write i2c OK [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: 01 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: 01 07 00 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: 01 07 00 7E 01 00 00 00 00 00 F5 0C 87 [12:54:14]RasterBufferAndPrint [12:54:14]line [12:54:14]line [12:54:14]line [12:54:14]line [12:54:14]line [12:54:14]written 0, free lines is 3323 [12:54:14]MH_Cut [12:54:14]Write to MH i2c: D1 01 00 85 01 01 58 [12:54:14]Write i2c OK [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: D1 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: D1 01 00 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: D1 01 00 85 01 00 57 [12:54:14]Write to MH i2c: 01 00 00 86 01 87 [12:54:14]Write i2c OK [12:54:14]MH_I2C_Read... [12:54:15]OFD Sender: No OFD packet to send [12:54:15]*** Cut start [12:54:15]*** Purtial cut [12:54:15]*** Stage 1: CUTSNS_PIN = 1 [12:54:15]Read from MH i2c: 01 [12:54:15]MH_I2C_Read... [12:54:15]*** Stop cut motor [12:54:15]*** Cut end [12:54:15]Read from MH i2c: 01 07 00 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 FF 0F 9C [12:54:15]process_action close_receipt done [12:54:15]requested_data is exist [12:54:15]produce_requested_data [12:54:15]requested_item fm.sn is exist - process it [12:54:15]wFMCommunicate request_size=4 [12:54:15]MH_SAM_APDU [12:54:15]CAPDU: 80 11 00 00 [12:54:15]Write to MH i2c: E2 08 00 87 01 80 11 00 00 00 00 00 00 02 [12:54:15]Write i2c OK [12:54:15]MH_I2C_Read... [12:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:15]Read from MH i2c: E2 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 17 00 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 17 00 87 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 57 [12:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:54:15]wFMCommunicate OK [12:54:15]requested_item fd.num is exist - process it [12:54:15]SAM_PROTO_GetFieldsCounters [12:54:15]wFMCommunicate request_size=4 [12:54:15]MH_SAM_APDU [12:54:15]CAPDU: 80 13 00 00 [12:54:15]Write to MH i2c: E2 08 00 88 01 80 13 00 00 00 00 00 00 05 [12:54:15]Write i2c OK [12:54:15]MH_I2C_Read... [12:54:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:15]Read from MH i2c: E2 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 62 00 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 62 00 88 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 18 14 01 00 0E 04 04 00 D2 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 8B [12:54: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 18 14 01 00 0E 04 04 00 D2 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 [12:54:16]wFMCommunicate OK [12:54:16]SAM_PROTO_GetFieldsCounters done [12:54:16]requested_item shift.num is exist - process it [12:54:16]requested_item shift.opened is exist - process it [12:54:16]req_shift_opened [12:54:16]FM_GetShiftState [12:54:16]SAM_PROTO_GetShiftState [12:54:16]wFMCommunicate request_size=4 [12:54:16]MH_SAM_APDU [12:54:16]CAPDU: 80 13 01 00 [12:54:16]Write to MH i2c: E2 08 00 89 01 80 13 01 00 00 00 00 00 07 [12:54:16]Write i2c OK [12:54:16]MH_I2C_Read... [12:54:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:16]Read from MH i2c: E2 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: E2 0E 00 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: E2 0E 00 89 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 76 [12:54:16]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [12:54:16]wFMCommunicate OK [12:54:16]SAM_PROTO_GetShiftState done [12:54:16]FM_GetShiftState done [12:54:16]req_shift_opened done [12:54:16]requested_item shift.open_date is exist - process it [12:54:16]req_shift_open_date [12:54:16]req_shift_open_date done [12:54:16]produce_requested_data done [12:54:16]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70680,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [12:54:16]process_action_free close_receipt [12:54:16]json_value_free [12:54:16]json_value_free done [12:54:16]process_json_proto returns [12:54:16]Send response to host [12:54:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70680,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [12:54:16]free response buf [12:54:16]execute_script done [12:54:16]execute_script returns [12:54:16]free content buf [12:54:16]Sock 7.Close socket [12:54:16]Sock 7.Thread stoped [12:54:20]OFD Sender: No OFD packet to send [12:54:25]OFD Sender: No OFD packet to send [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:17]accept exits with 9 [13:01:17]New connection [13:01:17]New thread 3066740068 created [13:01:17]Thread 3066596708 joined [13:01:17]Waiting for new connection... [13:01:17] Sock 9.Parse request [13:01:17]Sock 9.Check first char [13:01:17]Sock 9.First char is OK [13:01:17]request: POST /json_proto HTTP/1.0 [13:01:17]Method: POST [13:01:17]URL: /json_proto [13:01:17]Method is POST - this is cgi request [13:01:17]url: /json_proto [13:01:17]query_string will be loaded in cgi processing [13:01:17]execute_cgi json_proto POST (null) [13:01:17]execute_cgi path=json_proto method=POST [13:01:17]POST find Content-Length [13:01:17]Host: 172.17.58.67:8080 [13:01:17]Content-Length: 1196 [13:01:17]Content-Type: application/json [13:01:17] [13:01:17]POST finish read [13:01:17]Found Content-Length = 1196 [13:01:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141137\u000A13.08.2024 12:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A4205431\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:17]execute_script... [13:01:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141137\u000A13.08.2024 12:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A4205431\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:17]POST & json_proto [13:01:17]process_json_proto [13:01:17]json parsed OK: [13:01:17]protocol is kg_v1.0 [13:01:17]action value=print_text [13:01:17]process_action print_text [13:01:17]cmd_print_text [13:01:17]ExternCall_PrintAddStr [13:01:17]wPrintStart [13:01:17]Write to MH i2c: 01 00 00 8A 01 8B [13:01:17]Write i2c OK [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: 01 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: 01 07 00 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 FF 0F A0 [13:01:17]RasterBufferAndPrint [13:01:17]line *****ТОВÐРÐЫЙ ЧЕК***** [13:01:17]line ÐЗС 39 [13:01:17]line Партнер нефть [13:01:17]line 02508201610067 [13:01:17]line КаÑÑир : ОваÑбекова Л. [13:01:17]line Счет N : (1)141137 [13:01:17]line 13.08.2024 12:20 [13:01:17]line ПРОДÐЖР[13:01:17]line ТРК (МРК, ГÐК): 31 [13:01:17]line Вид ГСМ : 2710124130 [13:01:17]line Ðи-92-К-5 [13:01:17]line 10.000 x 65.90 [13:01:17]line ИТОГ: 659.00 [13:01:17]line Тип оплаты: Талоны: Партнер нефть [13:01:17]line 4205431 [13:01:17]line ______________________ [13:01:17]line (подпиÑÑŒ) [13:01:17]written 0, free lines is 4095 [13:01:17]Write to MH i2c: 01 00 00 9E 01 9F [13:01:17]Write i2c OK [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: 01 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: 01 07 00 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: 01 07 00 9E 01 00 00 00 00 00 10 0E C4 [13:01:17]RasterBufferAndPrint [13:01:17]line [13:01:17]line [13:01:17]line [13:01:17]line [13:01:17]line [13:01:17]written 0, free lines is 3601 [13:01:17]MH_Cut [13:01:17]Write to MH i2c: D1 01 00 A5 01 01 78 [13:01:17]Write i2c OK [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: D1 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: D1 01 00 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: D1 01 00 A5 01 00 77 [13:01:17]Write to MH i2c: 01 00 00 A6 01 A7 [13:01:17]Write i2c OK [13:01:17]MH_I2C_Read... [13:01:18]*** Cut start [13:01:18]*** Purtial cut [13:01:18]*** CUTSNS_PIN = 0 [13:01:18]*** Stage 1: CUTSNS_PIN = 1 [13:01:20]Read from MH i2c: 01 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: 01 07 00 [13:01:20]MH_I2C_Read... [13:01:20]*** Stop cut motor [13:01:20]*** Cut end [13:01:20]Read from MH i2c: 01 07 00 A6 01 00 00 00 00 00 FF 0F BC [13:01:20]process_action print_text done [13:01:20]requested_data is exist [13:01:20]produce_requested_data [13:01:20]requested_item fm.sn is exist - process it [13:01:20]wFMCommunicate request_size=4 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 11 00 00 [13:01:20]Write to MH i2c: E2 08 00 A7 01 80 11 00 00 00 00 00 00 22 [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 17 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 17 00 A7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 77 [13:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [13:01:20]wFMCommunicate OK [13:01:20]requested_item fd.num is exist - process it [13:01:20]SAM_PROTO_GetFieldsCounters [13:01:20]wFMCommunicate request_size=4 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 13 00 00 [13:01:20]Write to MH i2c: E2 08 00 A8 01 80 13 00 00 00 00 00 00 25 [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]OFD Sender: No OFD packet to send [13:01:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 62 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 62 00 A8 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 18 14 01 00 0E 04 04 00 D2 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 AB [13:01:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 18 14 01 00 0E 04 04 00 D2 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 [13:01:20]wFMCommunicate OK [13:01:20]SAM_PROTO_GetFieldsCounters done [13:01:20]requested_item shift.num is exist - process it [13:01:20]requested_item shift.opened is exist - process it [13:01:20]req_shift_opened [13:01:20]FM_GetShiftState [13:01:20]SAM_PROTO_GetShiftState [13:01:20]wFMCommunicate request_size=4 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 13 01 00 [13:01:20]Write to MH i2c: E2 08 00 A9 01 80 13 01 00 00 00 00 00 27 [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 0E 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 0E 00 A9 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 96 [13:01:20]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [13:01:20]wFMCommunicate OK [13:01:20]SAM_PROTO_GetShiftState done [13:01:20]FM_GetShiftState done [13:01:20]req_shift_opened done [13:01:20]requested_item shift.open_date is exist - process it [13:01:20]req_shift_open_date [13:01:20]req_shift_open_date done [13:01:20]produce_requested_data done [13:01:20]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70680,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [13:01:20]process_action_free print_text [13:01:20]json_value_free [13:01:20]json_value_free done [13:01:20]process_json_proto returns [13:01:20]Send response to host [13:01:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70680,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [13:01:20]free response buf [13:01:20]execute_script done [13:01:20]execute_script returns [13:01:20]free content buf [13:01:20]Sock 9.Close socket [13:01:20]Sock 9.Thread stoped [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:21]OFD Sender: No OFD packet to send [13:08:26]OFD Sender: No OFD packet to send [13:08:31]OFD Sender: No OFD packet to send [13:08:36]OFD Sender: No OFD packet to send [13:08:41]OFD Sender: No OFD packet to send [13:08:46]OFD Sender: No OFD packet to send [13:08:51]OFD Sender: No OFD packet to send [13:08:56]OFD Sender: No OFD packet to send [13:09:01]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]OFD Sender: No OFD packet to send [13:17:56]OFD Sender: No OFD packet to send [13:18:01]OFD Sender: No OFD packet to send [13:18:06]OFD Sender: No OFD packet to send [13:18:11]OFD Sender: No OFD packet to send [13:18:16]OFD Sender: No OFD packet to send [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:36]OFD Sender: No OFD packet to send [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:56]OFD Sender: No OFD packet to send [13:19:01]OFD Sender: No OFD packet to send [13:19:06]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:25:04]ConnectInit Can't connect to host [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:20]accept exits with 9 [13:25:20]New connection [13:25:20]New thread 3067063652 created [13:25:20]Waiting for new connection... [13:25:20] Sock 9.Parse request [13:25:20]Sock 9.Check first char [13:25:20]Sock 9.First char is OK [13:25:20]request: POST /json_proto HTTP/1.0 [13:25:20]Method: POST [13:25:20]URL: /json_proto [13:25:20]Method is POST - this is cgi request [13:25:20]url: /json_proto [13:25:20]query_string will be loaded in cgi processing [13:25:20]execute_cgi json_proto POST (null) [13:25:20]execute_cgi path=json_proto method=POST [13:25:20]POST find Content-Length [13:25:20]Host: 172.17.58.67:8080 [13:25:20]Content-Length: 215 [13:25:20]Content-Type: application/json [13:25:20] [13:25:20]POST finish read [13:25:20]Found Content-Length = 215 [13:25:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:20]execute_script... [13:25:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:20]POST & json_proto [13:25:20]process_json_proto [13:25:20]json parsed OK: [13:25:20]protocol is kg_v1.0 [13:25:20]action value=get_value [13:25:20]process_action get_value [13:25:20]cmd_get_value [13:25:20]process_action get_value done [13:25:20]requested_data is exist [13:25:20]produce_requested_data [13:25:20]requested_item kkm.sn is exist - process it [13:25:20]requested_item kkm.ver is exist - process it [13:25:20]requested_item fm.sn is exist - process it [13:25:20]wFMCommunicate request_size=4 [13:25:20]MH_SAM_APDU [13:25:20]CAPDU: 80 11 00 00 [13:25:20]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:20]Read from MH i2c: E2 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 17 00 [13:25:20]MH_I2C_Read... [13:25:20]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 39 31 35 90 00 DF [13:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [13:25:20]wFMCommunicate OK [13:25:20]requested_item fd.num is exist - process it [13:25:20]SAM_PROTO_GetFieldsCounters [13:25:20]wFMCommunicate request_size=4 [13:25:20]MH_SAM_APDU [13:25:20]CAPDU: 80 13 00 00 [13:25:20]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 [13:25:20]MH_I2C_Read... [13:25:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:20]Read from MH i2c: E2 62 00 [13:25:20]MH_I2C_Read... [13:25:20]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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 18 14 01 00 0E 04 04 00 D2 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 13 [13:25:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 18 14 01 00 0E 04 04 00 D2 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 [13:25:20]wFMCommunicate OK [13:25:20]SAM_PROTO_GetFieldsCounters done [13:25:20]requested_item shift.num is exist - process it [13:25:20]requested_item shift.opened is exist - process it [13:25:20]req_shift_opened [13:25:20]FM_GetShiftState [13:25:20]SAM_PROTO_GetShiftState [13:25:20]wFMCommunicate request_size=4 [13:25:20]MH_SAM_APDU [13:25:20]CAPDU: 80 13 01 00 [13:25:20]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:20]Read from MH i2c: E2 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 0E 00 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 FE [13:25:20]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [13:25:20]wFMCommunicate OK [13:25:20]SAM_PROTO_GetShiftState done [13:25:20]FM_GetShiftState done [13:25:20]req_shift_opened done [13:25:20]requested_item shift.open_date is exist - process it [13:25:20]req_shift_open_date [13:25:20]req_shift_open_date done [13:25:20]produce_requested_data done [13:25:20]produce_requested_data return {"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70680,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [13:25:20]process_action_free get_value [13:25:20]json_value_free [13:25:20]json_value_free done [13:25:20]process_json_proto returns [13:25:20]Send response to host [13:25:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70680,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [13:25:20]free response buf [13:25:20]execute_script done [13:25:20]execute_script returns [13:25:20]free content buf [13:25:20]Sock 9.Close socket [13:25:20]Sock 9.Thread stoped [13:25:20]accept exits with 7 [13:25:20]New connection [13:25:20]New thread 3066920292 created [13:25:20]Thread 3067063652 joined [13:25:20]Waiting for new connection... [13:25:20] Sock 7.Parse request [13:25:20]Sock 7.Check first char [13:25:20]Sock 7.First char is OK [13:25:20]request: POST /json_proto HTTP/1.0 [13:25:20]Method: POST [13:25:20]URL: /json_proto [13:25:20]Method is POST - this is cgi request [13:25:20]url: /json_proto [13:25:20]query_string will be loaded in cgi processing [13:25:20]execute_cgi json_proto POST (null) [13:25:20]execute_cgi path=json_proto method=POST [13:25:20]POST find Content-Length [13:25:20]Host: 172.17.58.67:8080 [13:25:20]Content-Length: 331 [13:25:20]Content-Type: application/json [13:25:20] [13:25:20]POST finish read [13:25:20]Found Content-Length = 331 [13:25:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:25:20]execute_script... [13:25:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:25:20]POST & json_proto [13:25:20]process_json_proto [13:25:20]json parsed OK: [13:25:20]protocol is kg_v1.0 [13:25:20]action value=get_value [13:25:20]process_action get_value [13:25:20]cmd_get_value [13:25:20]process_action get_value done [13:25:20]requested_data is exist [13:25:20]produce_requested_data [13:25:20]requested_item fm.sale.total is exist - process it [13:25:20]SAM_PROTO_GetFMData [13:25:20]wFMCommunicate request_size=4 [13:25:20]MH_SAM_APDU [13:25:20]CAPDU: 80 13 03 00 [13:25:20]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:25:21]Read from MH i2c: E2 [13:25:21]MH_I2C_Read... [13:25:21]Read from MH i2c: E2 FD 00 [13:25:21]MH_I2C_Read... [13:25:21]Read from MH i2c: E2 FD 00 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 74 10 01 00 69 04 A3 00 6F 04 04 00 3F 07 01 00 B1 04 05 00 29 85 A9 C9 01 70 04 05 00 7C 76 B6 5F 01 72 04 04 00 AD 0E F3 69 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 65 90 9B 30 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 7E EB 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 35 09 00 00 B1 04 04 00 90 50 60 14 70 04 04 00 F4 17 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F5 0B 2A 02 90 00 1D [13:25:21]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 74 10 01 00 69 04 A3 00 6F 04 04 00 3F 07 01 00 B1 04 05 00 29 85 A9 C9 01 70 04 05 00 7C 76 B6 5F 01 72 04 04 00 AD 0E F3 69 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 65 90 9B 30 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 7E EB 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 35 09 00 00 B1 04 04 00 90 50 60 14 70 04 04 00 F4 17 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F5 0B 2A 02 90 00 [13:25:21]wFMCommunicate OK [13:25:21]wFMCommunicate request_size=4 [13:25:21]MH_SAM_APDU [13:25:21]CAPDU: 80 17 00 00 [13:25:21]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [13:25:21]Write i2c OK [13:25:21]MH_I2C_Read... [13:25:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:25:21]Read from MH i2c: E2 [13:25:21]MH_I2C_Read... [13:25:21]Read from MH i2c: E2 FD 00 [13:25:21]MH_I2C_Read... [13:25:21]Read from MH i2c: E2 FD 00 14 00 00 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 33 2B 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 1C [13:25:21]RAPDU: 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 33 2B 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 [13:25:21]wFMCommunicate OK [13:25:21]wFMCommunicate request_size=4 [13:25:21]MH_SAM_APDU [13:25:21]CAPDU: 80 17 00 00 [13:25:21]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [13:25:21]Write i2c OK [13:25:21]MH_I2C_Read... [13:25:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:25:21]Read from MH i2c: E2 [13:25:21]MH_I2C_Read... [13:25:21]Read from MH i2c: E2 FD 00 [13:25:21]MH_I2C_Read... [13:25:21]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 [13:25:21]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 [13:25:21]wFMCommunicate OK [13:25:21]wFMCommunicate request_size=4 [13:25:21]MH_SAM_APDU [13:25:21]CAPDU: 80 17 00 00 [13:25:21]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [13:25:21]Write i2c OK [13:25:21]MH_I2C_Read... [13:25:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:25:22]Read from MH i2c: E2 [13:25:22]MH_I2C_Read... [13:25:22]Read from MH i2c: E2 FD 00 [13:25:22]MH_I2C_Read... [13:25:22]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 [13:25:22]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 [13:25:22]wFMCommunicate OK [13:25:22]wFMCommunicate request_size=4 [13:25:22]MH_SAM_APDU [13:25:22]CAPDU: 80 17 00 00 [13:25:22]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [13:25:22]Write i2c OK [13:25:22]MH_I2C_Read... [13:25:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [13:25:22]Read from MH i2c: E2 [13:25:22]MH_I2C_Read... [13:25:22]Read from MH i2c: E2 E5 00 [13:25:22]MH_I2C_Read... [13:25:22]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 [13:25:22]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 [13:25:22]wFMCommunicate OK [13:25:22]SAM_PROTO_GetFMData done [13:25:22]requested_item fm.sale_refund.total is exist - process it [13:25:22]requested_item fm.buy.total is exist - process it [13:25:22]requested_item shift.sale.total is exist - process it [13:25:22]SAM_PROTO_GetShiftData [13:25:22]wFMCommunicate request_size=4 [13:25:22]MH_SAM_APDU [13:25:22]CAPDU: 80 13 02 00 [13:25:22]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [13:25:22]Write i2c OK [13:25:22]MH_I2C_Read... [13:25:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:25:22]Read from MH i2c: E2 [13:25:22]MH_I2C_Read... [13:25:22]Read from MH i2c: E2 FD 00 [13:25:22]MH_I2C_Read... [13:25:22]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 1F 00 00 00 B1 04 03 00 D3 18 2B 70 04 03 00 90 08 1C 72 04 03 00 43 10 0F 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 D4 93 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A8 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 03 00 00 00 B1 04 03 00 B0 71 0B 70 04 03 00 B0 71 0B 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 2C 37 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 2B [13:25:22]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 22 00 00 00 69 04 9B 00 6F 04 04 00 1F 00 00 00 B1 04 03 00 D3 18 2B 70 04 03 00 90 08 1C 72 04 03 00 43 10 0F 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 D4 93 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A8 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 03 00 00 00 B1 04 03 00 B0 71 0B 70 04 03 00 B0 71 0B 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 2C 37 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [13:25:22]wFMCommunicate OK [13:25:22]wFMCommunicate request_size=4 [13:25:22]MH_SAM_APDU [13:25:22]CAPDU: 80 17 00 00 [13:25:22]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [13:25:22]Write i2c OK [13:25:22]MH_I2C_Read... [13:25:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:25:22]Read from MH i2c: E2 [13:25:22]MH_I2C_Read... [13:25:22]Read from MH i2c: E2 FD 00 [13:25:22]MH_I2C_Read... [13:25:23]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 EE 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 5F [13:25:23]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 EE 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [13:25:23]wFMCommunicate OK [13:25:23]wFMCommunicate request_size=4 [13:25:23]MH_SAM_APDU [13:25:23]CAPDU: 80 17 00 00 [13:25:23]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [13:25:23]Write i2c OK [13:25:23]MH_I2C_Read... [13:25:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:25:23]Read from MH i2c: E2 [13:25:23]MH_I2C_Read... [13:25:23]Read from MH i2c: E2 FD 00 [13:25:23]MH_I2C_Read... [13:25:23]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [13:25:23]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [13:25:23]wFMCommunicate OK [13:25:23]wFMCommunicate request_size=4 [13:25:23]MH_SAM_APDU [13:25:23]CAPDU: 80 17 00 00 [13:25:23]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [13:25:23]Write i2c OK [13:25:23]MH_I2C_Read... [13:25:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:25:23]Read from MH i2c: E2 [13:25:23]MH_I2C_Read... [13:25:23]Read from MH i2c: E2 FD 00 [13:25:23]MH_I2C_Read... [13:25:23]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 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 90 00 13 [13:25:23]RAPDU: EF 03 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 90 00 [13:25:23]wFMCommunicate OK [13:25:23]wFMCommunicate request_size=4 [13:25:23]MH_SAM_APDU [13:25:23]CAPDU: 80 17 00 00 [13:25:23]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [13:25:23]OFD Sender: No OFD packet to send [13:25:23]Write i2c OK [13:25:23]MH_I2C_Read... [13:25:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [13:25:23]Read from MH i2c: E2 [13:25:23]MH_I2C_Read... [13:25:23]Read from MH i2c: E2 D6 00 [13:25:23]MH_I2C_Read... [13:25:23]Read from MH i2c: E2 D6 00 1C 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 7E [13:25:23]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:25:23]wFMCommunicate OK [13:25:23]SAM_PROTO_GetShiftData done [13:25:23]requested_item shift.sale.total_cash is exist - process it [13:25:23]requested_item shift.sale_refund.total is exist - process it [13:25:23]requested_item shift.sale_refund.total_cash is exist - process it [13:25:23]requested_item shift.buy.total is exist - process it [13:25:23]requested_item shift.buy.total_cash is exist - process it [13:25:23]produce_requested_data done [13:25:23]produce_requested_data return {"fm.sale.total":76782973.85,"fm.sale_refund.total":3418564.00,"fm.buy.total":0.00,"shift.sale.total":28244.03,"shift.sale.total_cash":18372.00,"shift.sale_refund.total":7500.00,"shift.sale_refund.total_cash":7500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:25:23]process_action_free get_value [13:25:23]json_value_free [13:25:23]json_value_free done [13:25:23]process_json_proto returns [13:25:23]Send response to host [13:25:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76782973.85,"fm.sale_refund.total":3418564.00,"fm.buy.total":0.00,"shift.sale.total":28244.03,"shift.sale.total_cash":18372.00,"shift.sale_refund.total":7500.00,"shift.sale_refund.total_cash":7500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:25:23]free response buf [13:25:23]execute_script done [13:25:23]execute_script returns [13:25:23]free content buf [13:25:23]Sock 7.Close socket [13:25:23]Sock 7.Thread stoped [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:38]OFD Sender: No OFD packet to send [13:25:43]OFD Sender: No OFD packet to send [13:25:48]OFD Sender: No OFD packet to send [13:25:53]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:03]OFD Sender: No OFD packet to send [13:26:08]OFD Sender: No OFD packet to send [13:26:13]OFD Sender: No OFD packet to send [13:26:18]OFD Sender: No OFD packet to send [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [13:26:38]OFD Sender: No OFD packet to send [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:07]accept exits with 9 [13:28:07]New connection [13:28:07]New thread 3067063652 created [13:28:07]Thread 3066920292 joined [13:28:07]Waiting for new connection... [13:28:07] Sock 9.Parse request [13:28:07]Sock 9.Check first char [13:28:07]Sock 9.First char is OK [13:28:07]request: POST /json_proto HTTP/1.0 [13:28:07]Method: POST [13:28:07]URL: /json_proto [13:28:07]Method is POST - this is cgi request [13:28:07]url: /json_proto [13:28:07]query_string will be loaded in cgi processing [13:28:07]execute_cgi json_proto POST (null) [13:28:07]execute_cgi path=json_proto method=POST [13:28:07]POST find Content-Length [13:28:07]Host: 172.17.58.67:8080 [13:28:07]Content-Length: 805 [13:28:07]Content-Type: application/json [13:28:07] [13:28:07]POST finish read [13:28:07]Found Content-Length = 805 [13:28:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:07]execute_script... [13:28: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)141138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:07]POST & json_proto [13:28:07]process_json_proto [13:28:07]json parsed OK: [13:28:07]protocol is kg_v1.0 [13:28:07]action value=close_receipt [13:28:07]process_action close_receipt [13:28:07]cmd_close_receipt [13:28:07]MH_GetDate [13:28:07]Write to MH i2c: F0 00 00 1D 00 0C [13:28:07]Write i2c OK [13:28:07]MH_I2C_Read... [13:28:07]Read from MH i2c: F0 [13:28:07]MH_I2C_Read... [13:28:07]Read from MH i2c: F0 09 00 [13:28:07]MH_I2C_Read... [13:28:07]Read from MH i2c: F0 09 00 1D 00 00 67 5F BB 66 94 51 63 64 A8 [13:28:07]GetLastDocTimeStamp 1723553652 [13:28:07]current date 1723555687 [13:28:07]FM_GetShiftState [13:28:07]SAM_PROTO_GetShiftState [13:28:07]wFMCommunicate request_size=4 [13:28:07]MH_SAM_APDU [13:28:07]CAPDU: 80 13 01 00 [13:28:07]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [13:28:07]Write i2c OK [13:28:07]MH_I2C_Read... [13:28:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:07]Read from MH i2c: E2 [13:28:07]MH_I2C_Read... [13:28:07]Read from MH i2c: E2 0E 00 [13:28:07]MH_I2C_Read... [13:28:07]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 0A [13:28:07]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [13:28:07]wFMCommunicate OK [13:28:07]SAM_PROTO_GetShiftState done [13:28:07]FM_GetShiftState done [13:28:07]opened in 1723509656 [13:28:07]opened+sec_in_day 1723596056 [13:28:07]quantity*price = 150064 [13:28:07]sum+1 = 150066 [13:28:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.65 ÐСП 1% : 13.28 ÐДС 12% : 159.36 Ðаличными: 0.00 Безнал.: 1500.65 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 35 13.08.2024 13:28 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70681 ФПД: 110057656808090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T132807&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70681&fm=110057656808090&tin=02508201610067®Number=0000000000090913&sum=150065 [13:28:08]StoreToDocumentArchive [13:28:08]shift 466 fd 70681 [13:28:08]save to /storage/0466/doc_00070681 [13:28:08]save last doc name /storage/0466/doc_00070681 to /storage/kkm_last_doc_name [13:28:08]OFD Sender: No OFD packet to send [13:28:08]save OK [13:28:08]Clear old archive folders... [13:28:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:28:08]tlvbuf is 01030AA0 [13:28:08]SAM_PROTO_ClearQueue [13:28:08]wFMCommunicate request_size=4 [13:28:08]MH_SAM_APDU [13:28:08]CAPDU: 80 09 00 00 [13:28:08]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [13:28:08]Write i2c OK [13:28:08]MH_I2C_Read... [13:28:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:08]Read from MH i2c: E2 [13:28:08]MH_I2C_Read... [13:28:08]Read from MH i2c: E2 03 00 [13:28:08]MH_I2C_Read... [13:28:08]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [13:28:08]RAPDU: 90 00 [13:28:08]wFMCommunicate OK [13:28:08]SAM_PROTO_ClearQueue done [13:28:08]KKMCreateOFDPacket [13:28:08]OFDProtocolAddRootSTLVToBuf [13:28:08]FM_MakeSignedData [13:28:08]FM_MakeSignedData [13:28:08]SAM_PROTO_SignData [13:28:08]wFMCommunicate request_size=4 [13:28:08]MH_SAM_APDU [13:28:08]CAPDU: 80 0D 01 02 [13:28:08]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [13:28:08]Write i2c OK [13:28:08]MH_I2C_Read... [13:28:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:08]Read from MH i2c: E2 [13:28:08]MH_I2C_Read... [13:28:08]Read from MH i2c: E2 03 00 [13:28:08]MH_I2C_Read... [13:28:08]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [13:28:08]RAPDU: 90 00 [13:28:08]wFMCommunicate OK [13:28:08]wFMCommunicate request_size=255 [13:28:08]MH_SAM_APDU [13:28:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 67 5F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 19 14 01 00 35 04 06 00 64 18 CB 89 [13:28:08]Write to MH i2c: E2 02 01 2D 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 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 67 5F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 19 14 01 00 35 04 06 00 64 18 CB 89 00 00 4B [13:28:08]Write i2c OK [13:28:08]MH_I2C_Read... [13:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:09]Read from MH i2c: E2 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: E2 03 00 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [13:28:09]RAPDU: 90 00 [13:28:09]wFMCommunicate OK [13:28:09]wFMCommunicate request_size=7 [13:28:09]MH_SAM_APDU [13:28:09]CAPDU: 80 0D 02 02 02 F2 9A [13:28:09]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 F2 9A 00 00 38 [13:28:09]Write i2c OK [13:28:09]MH_I2C_Read... [13:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:09]Read from MH i2c: E2 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: E2 03 00 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [13:28:09]RAPDU: 90 00 [13:28:09]wFMCommunicate OK [13:28:09]wFMCommunicate request_size=4 [13:28:09]MH_SAM_APDU [13:28:09]CAPDU: 80 0D 03 02 [13:28:09]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [13:28:09]Write i2c OK [13:28:09]MH_I2C_Read... [13:28:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:09]Read from MH i2c: E2 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: E2 0B 00 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: E2 0B 00 2F 00 00 F5 0B 5D 61 20 39 B8 D5 90 00 4F [13:28:09]RAPDU: F5 0B 5D 61 20 39 B8 D5 90 00 [13:28:09]wFMCommunicate OK [13:28:09]SAM_PROTO_SignData done [13:28:09]FM_MakeSignedData done [13:28:09]CreateOFDProtocolMessage [13:28:09]wFMCommunicate request_size=4 [13:28:09]MH_SAM_APDU [13:28:09]CAPDU: 80 11 00 00 [13:28:09]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [13:28:09]Write i2c OK [13:28:09]MH_I2C_Read... [13:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:09]Read from MH i2c: E2 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: E2 17 00 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 FF [13:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [13:28:09]wFMCommunicate OK [13:28:09]CreateOFDProtocolMessage done [13:28:09]OFDSenderStorePacket 70681 [13:28:09]StoreOFDPacket docnum=70681 [13:28:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 9C FA 04 01 85 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 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 67 5F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 19 14 01 00 35 04 06 00 64 18 CB 89 F2 9A F5 0B 5D 61 20 39 B8 D5 [13:28:09]CheckFolder [13:28:09]dirname=/storage/ofd_packets [13:28:09]CheckFolder done [13:28:09]ProducePacketName [13:28:09]name=ofd_packets/00070681 [13:28:09]NVStorageSaveData ofd_packets/00070681 [13:28:09]File name is /storage/ofd_packets/00070681 [13:28:09]Write 298 bytes [13:28:09]NVStorageSaveData done [13:28:09]OFDSenderStorePacket done [13:28:09]KKMCreateOFDPacket done [13:28:09]NVStorageSaveData kkm_last_timestamp [13:28:09]File name is /storage/kkm_last_timestamp [13:28:09]Write 4 bytes [13:28:09]NVStorageSaveData done [13:28:09]ExternCall_PrintAddStr [13:28:09]wPrintStart [13:28:09]Write to MH i2c: 01 00 00 31 00 31 [13:28:09]Write i2c OK [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: 01 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: 01 07 00 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [13:28:09]RasterBufferAndPrint [13:28:09]line Счет N : (1)141138 [13:28:09]line ИÐÐ: 02508201610067 [13:28:09]line Контрольно-КаÑÑовый Чек [13:28:09]line ПРОДÐЖР[13:28:09]line ТРК (МРК, ГÐК) : 34 [13:28:09]line Товар: 2710194210 [13:28:09]line ДТ-К-5 [13:28:09]line 20.170 * 74.40 [13:28:09]line = 1500.65 [13:28:09]line ÐДС 12% ÐСП 1% [13:28:09]line > о реализуемом товаре [13:28:09]line ИТОГО: 1500.65 [13:28:09]line ÐСП 1% : 13.28 [13:28:09]line ÐДС 12% : 159.36 [13:28:09]line Ðаличными: 0.00 [13:28:09]line Безнал.: 1500.65 [13:28:09]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [13:28:09]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [13:28:09]line СÐО: Общий режим [13:28:09]line Чек 35 13.08.2024 13:28 [13:28:09]line Смена: 466 ФФД: 1.0 [13:28:09]line ЗÐМ: 0300000140 [13:28:09]line РÐМ: 0000000000090913 [13:28:09]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:28:09]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [13:28:09]line ФМ: 0000000000874915 [13:28:09]line ФД: 70681 [13:28:09]line ФПД: 110057656808090 [13:28:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T132807&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70681&fm=110057656808090&tin=02508201610067®Number=0000000000090913&sum=150065 [13:28:09]written 0, free lines is 4095 [13:28:09]OFD Sender: Processing packet 70681 [packets to send 67, broken 66] [13:28:09]ProducePacketName [13:28:09]name=ofd_packets/00070681 [13:28:09]OFD Sender: To server: ‡•öpG, [13:28:09]CommunicateWithHost lk.salyk.kg:30040 [13:28:09]ConnectInit lk.salyk.kg [13:28:09]Connected sock=10 [13:28: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 39 31 35 0C 01 00 00 9C FA 04 01 85 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 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 67 5F BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 19 14 01 00 35 04 06 00 64 18 CB 89 F2 9A F5 0B 5D 61 20 39 B8 D5 [13:28:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 77 84 47 00 86 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 19 14 01 00 F4 03 04 00 52 06 BB 66 B6 04 01 00 00 2B 09 8A CD CA 1D 41 07 [13:28:09]CommunicateWithHost err = 0 [13:28:09]CheckOFDResponse [13:28:09]1017 (14) - 77093643461234 [13:28:09]1041 (16) - 0000000000874915 [13:28:09]1040 (4) - 70681 [13:28:09]1012 (4) - 13.08.2024 07:08 [13:28:09]1206 (1) - 0 [13:28:09]OFD Sender: Remove packet 70681 [13:28:09]ProducePacketName [13:28:09]name=ofd_packets/00070681 [13:28:09]NVStorageDeleteData [13:28:09]Write to MH i2c: 01 00 00 5B 00 5B [13:28:09]Write i2c OK [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: 01 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: 01 07 00 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 0D 0D 7C [13:28:09]RasterBufferAndPrint [13:28:09]line [13:28:09]line [13:28:09]line [13:28:09]line [13:28:09]line [13:28:09]written 0, free lines is 3347 [13:28:09]MH_Cut [13:28:09]Write to MH i2c: D1 01 00 62 00 01 34 [13:28:09]Write i2c OK [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: D1 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: D1 01 00 [13:28:09]MH_I2C_Read... [13:28:09]Read from MH i2c: D1 01 00 62 00 00 33 [13:28:09]Write to MH i2c: 01 00 00 63 00 63 [13:28:09]Write i2c OK [13:28:09]MH_I2C_Read... [13:28:10]OFD Sender: No OFD packet to send [13:28:10]*** Cut start [13:28:10]*** Purtial cut [13:28:10]*** Stage 1: CUTSNS_PIN = 1 [13:28:10]Read from MH i2c: 01 [13:28:10]MH_I2C_Read... [13:28:10]*** Stop cut motor [13:28:10]*** Cut end [13:28:10]Read from MH i2c: 01 07 00 [13:28:10]MH_I2C_Read... [13:28:10]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [13:28:10]process_action close_receipt done [13:28:10]requested_data is exist [13:28:10]produce_requested_data [13:28:10]requested_item fm.sn is exist - process it [13:28:10]wFMCommunicate request_size=4 [13:28:10]MH_SAM_APDU [13:28:10]CAPDU: 80 11 00 00 [13:28:10]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [13:28:10]Write i2c OK [13:28:10]MH_I2C_Read... [13:28:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:10]Read from MH i2c: E2 [13:28:10]MH_I2C_Read... [13:28:10]Read from MH i2c: E2 17 00 [13:28:10]MH_I2C_Read... [13:28:10]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 33 [13:28:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [13:28:10]wFMCommunicate OK [13:28:10]requested_item fd.num is exist - process it [13:28:10]SAM_PROTO_GetFieldsCounters [13:28:10]wFMCommunicate request_size=4 [13:28:10]MH_SAM_APDU [13:28:10]CAPDU: 80 13 00 00 [13:28:10]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [13:28:10]Write i2c OK [13:28:10]MH_I2C_Read... [13:28:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:10]Read from MH i2c: E2 [13:28:10]MH_I2C_Read... [13:28:10]Read from MH i2c: E2 62 00 [13:28:10]MH_I2C_Read... [13:28:11]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 19 14 01 00 0E 04 04 00 D2 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 6B [13:28: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 19 14 01 00 0E 04 04 00 D2 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 [13:28:11]wFMCommunicate OK [13:28:11]SAM_PROTO_GetFieldsCounters done [13:28:11]requested_item shift.num is exist - process it [13:28:11]requested_item shift.opened is exist - process it [13:28:11]req_shift_opened [13:28:11]FM_GetShiftState [13:28:11]SAM_PROTO_GetShiftState [13:28:11]wFMCommunicate request_size=4 [13:28:11]MH_SAM_APDU [13:28:11]CAPDU: 80 13 01 00 [13:28:11]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [13:28:11]Write i2c OK [13:28:11]MH_I2C_Read... [13:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:11]Read from MH i2c: E2 [13:28:11]MH_I2C_Read... [13:28:11]Read from MH i2c: E2 0E 00 [13:28:11]MH_I2C_Read... [13:28:11]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 52 [13:28:11]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [13:28:11]wFMCommunicate OK [13:28:11]SAM_PROTO_GetShiftState done [13:28:11]FM_GetShiftState done [13:28:11]req_shift_opened done [13:28:11]requested_item shift.open_date is exist - process it [13:28:11]req_shift_open_date [13:28:11]req_shift_open_date done [13:28:11]produce_requested_data done [13:28:11]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70681,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [13:28:11]process_action_free close_receipt [13:28:11]json_value_free [13:28:11]json_value_free done [13:28:11]process_json_proto returns [13:28:11]Send response to host [13:28:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70681,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [13:28:11]free response buf [13:28:11]execute_script done [13:28:11]execute_script returns [13:28:11]free content buf [13:28:11]Sock 9.Close socket [13:28:11]Sock 9.Thread stoped [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:44]accept exits with 7 [13:30:44]New connection [13:30:44]New thread 3066920292 created [13:30:44]Thread 3067063652 joined [13:30:44]Waiting for new connection... [13:30:44] Sock 7.Parse request [13:30:44]Sock 7.Check first char [13:30:44]Sock 7.First char is OK [13:30:44]request: POST /json_proto HTTP/1.0 [13:30:44]Method: POST [13:30:44]URL: /json_proto [13:30:44]Method is POST - this is cgi request [13:30:44]url: /json_proto [13:30:44]query_string will be loaded in cgi processing [13:30:44]execute_cgi json_proto POST (null) [13:30:44]execute_cgi path=json_proto method=POST [13:30:44]POST find Content-Length [13:30:44]Host: 172.17.58.67:8080 [13:30:44]Content-Length: 1200 [13:30:44]Content-Type: application/json [13:30:44] [13:30:44]POST finish read [13:30:44]Found Content-Length = 1200 [13:30: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141139\u000A13.08.2024 12:49\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 3.580 x 73.90\u000A\u0418\u0422\u041E\u0413: 264.56\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:44]execute_script... [13:30: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141139\u000A13.08.2024 12:49\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 3.580 x 73.90\u000A\u0418\u0422\u041E\u0413: 264.56\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:44]POST & json_proto [13:30:44]process_json_proto [13:30:44]json parsed OK: [13:30:44]protocol is kg_v1.0 [13:30:44]action value=print_text [13:30:44]process_action print_text [13:30:44]cmd_print_text [13:30:44]ExternCall_PrintAddStr [13:30:44]wPrintStart [13:30:44]Write to MH i2c: 01 00 00 67 00 67 [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 07 00 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 07 00 67 00 00 00 00 00 00 FF 0F 7C [13:30:44]RasterBufferAndPrint [13:30:44]line *****ТОВÐРÐЫЙ ЧЕК***** [13:30:44]line ÐЗС 39 [13:30:44]line Партнер нефть [13:30:44]line 02508201610067 [13:30:44]line КаÑÑир : ОваÑбекова Л. [13:30:44]line Счет N : (1)141139 [13:30:44]line 13.08.2024 12:49 [13:30:44]line ПРОДÐЖР[13:30:44]line ТРК (МРК, ГÐК): 33 [13:30:44]line Вид ГСМ : 2710124500 [13:30:44]line Ðи-95-К-5 [13:30:44]line 3.580 x 73.90 [13:30:44]line ИТОГ: 264.56 [13:30:44]line Тип оплаты: ТехнологичеÑкий отпуÑк: [13:30:44]line ______________________ [13:30:44]line (подпиÑÑŒ) [13:30:44]written 0, free lines is 4095 [13:30:44]Write to MH i2c: 01 00 00 7A 00 7A [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 07 00 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 2A 0E B9 [13:30:44]RasterBufferAndPrint [13:30:44]line [13:30:44]line [13:30:44]line [13:30:44]line [13:30:44]line [13:30:44]written 0, free lines is 3628 [13:30:44]MH_Cut [13:30:44]Write to MH i2c: D1 01 00 81 00 01 53 [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: D1 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: D1 01 00 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: D1 01 00 81 00 00 52 [13:30:44]Write to MH i2c: 01 00 00 82 00 82 [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:44]*** Cut start [13:30:44]*** Purtial cut [13:30:44]*** CUTSNS_PIN = 0 [13:30:45]*** Stage 1: CUTSNS_PIN = 1 [13:30:45]OFD Sender: No OFD packet to send [13:30:47]Read from MH i2c: 01 [13:30:47]MH_I2C_Read... [13:30:47]*** Stop cut motor [13:30:47]*** Cut end [13:30:47]Read from MH i2c: 01 07 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: 01 07 00 82 00 00 00 00 00 00 FF 0F 97 [13:30:47]process_action print_text done [13:30:47]requested_data is exist [13:30:47]produce_requested_data [13:30:47]requested_item fm.sn is exist - process it [13:30:47]wFMCommunicate request_size=4 [13:30:47]MH_SAM_APDU [13:30:47]CAPDU: 80 11 00 00 [13:30:47]Write to MH i2c: E2 08 00 83 00 80 11 00 00 00 00 00 00 FD [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:47]Read from MH i2c: E2 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 17 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 17 00 83 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 52 [13:30:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [13:30:47]wFMCommunicate OK [13:30:47]requested_item fd.num is exist - process it [13:30:47]SAM_PROTO_GetFieldsCounters [13:30:47]wFMCommunicate request_size=4 [13:30:47]MH_SAM_APDU [13:30:47]CAPDU: 80 13 00 00 [13:30:47]Write to MH i2c: E2 08 00 84 00 80 13 00 00 00 00 00 00 00 [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 [13:30:47]MH_I2C_Read... [13:30:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:47]Read from MH i2c: E2 62 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 62 00 84 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 19 14 01 00 0E 04 04 00 D2 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 8A [13:30: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 19 14 01 00 0E 04 04 00 D2 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 [13:30:47]wFMCommunicate OK [13:30:47]SAM_PROTO_GetFieldsCounters done [13:30:47]requested_item shift.num is exist - process it [13:30:47]requested_item shift.opened is exist - process it [13:30:47]req_shift_opened [13:30:47]FM_GetShiftState [13:30:47]SAM_PROTO_GetShiftState [13:30:47]wFMCommunicate request_size=4 [13:30:47]MH_SAM_APDU [13:30:47]CAPDU: 80 13 01 00 [13:30:47]Write to MH i2c: E2 08 00 85 00 80 13 01 00 00 00 00 00 02 [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:47]Read from MH i2c: E2 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 0E 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 0E 00 85 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 71 [13:30:47]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [13:30:47]wFMCommunicate OK [13:30:47]SAM_PROTO_GetShiftState done [13:30:47]FM_GetShiftState done [13:30:47]req_shift_opened done [13:30:47]requested_item shift.open_date is exist - process it [13:30:47]req_shift_open_date [13:30:47]req_shift_open_date done [13:30:47]produce_requested_data done [13:30:47]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70681,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [13:30:47]process_action_free print_text [13:30:47]json_value_free [13:30:47]json_value_free done [13:30:47]process_json_proto returns [13:30:47]Send response to host [13:30:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70681,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [13:30:47]free response buf [13:30:47]execute_script done [13:30:47]execute_script returns [13:30:47]free content buf [13:30:47]Sock 7.Close socket [13:30:47]Sock 7.Thread stoped [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:05]accept exits with 9 [13:32:05]New connection [13:32:05]New thread 3067063652 created [13:32:05]Thread 3066920292 joined [13:32:05]Waiting for new connection... [13:32:05] Sock 9.Parse request [13:32:05]Sock 9.Check first char [13:32:05]Sock 9.First char is OK [13:32:05]request: POST /json_proto HTTP/1.0 [13:32:05]Method: POST [13:32:05]URL: /json_proto [13:32:05]Method is POST - this is cgi request [13:32:05]url: /json_proto [13:32:05]query_string will be loaded in cgi processing [13:32:05]execute_cgi json_proto POST (null) [13:32:05]execute_cgi path=json_proto method=POST [13:32:05]POST find Content-Length [13:32:05]Host: 172.17.58.67:8080 [13:32:05]Content-Length: 1199 [13:32:05]Content-Type: application/json [13:32:05] [13:32:05]POST finish read [13:32:05]Found Content-Length = 1199 [13:32: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141140\u000A13.08.2024 12:51\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 0.190 x 73.90\u000A\u0418\u0422\u041E\u0413: 14.04\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:05]execute_script... [13:32: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141140\u000A13.08.2024 12:51\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 : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 0.190 x 73.90\u000A\u0418\u0422\u041E\u0413: 14.04\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:05]POST & json_proto [13:32:05]process_json_proto [13:32:05]json parsed OK: [13:32:05]protocol is kg_v1.0 [13:32:05]action value=print_text [13:32:05]process_action print_text [13:32:05]cmd_print_text [13:32:05]ExternCall_PrintAddStr [13:32:05]wPrintStart [13:32:05]Write to MH i2c: 01 00 00 86 00 86 [13:32:05]Write i2c OK [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: 01 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: 01 07 00 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: 01 07 00 86 00 00 00 00 00 00 FF 0F 9B [13:32:05]RasterBufferAndPrint [13:32:05]line *****ТОВÐРÐЫЙ ЧЕК***** [13:32:05]line ÐЗС 39 [13:32:05]line Партнер нефть [13:32:05]line 02508201610067 [13:32:05]line КаÑÑир : ОваÑбекова Л. [13:32:05]line Счет N : (1)141140 [13:32:05]line 13.08.2024 12:51 [13:32:05]line ПРОДÐЖР[13:32:05]line ТРК (МРК, ГÐК): 43 [13:32:05]line Вид ГСМ : 2710124500 [13:32:05]line Ðи-95-К-5 [13:32:05]line 0.190 x 73.90 [13:32:05]line ИТОГ: 14.04 [13:32:05]line Тип оплаты: ТехнологичеÑкий отпуÑк: [13:32:05]line ______________________ [13:32:05]line (подпиÑÑŒ) [13:32:05]written 0, free lines is 4095 [13:32:05]Write to MH i2c: 01 00 00 99 00 99 [13:32:05]Write i2c OK [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: 01 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: 01 07 00 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: 01 07 00 99 00 00 00 00 00 00 29 0E D7 [13:32:05]RasterBufferAndPrint [13:32:05]line [13:32:05]line [13:32:05]line [13:32:05]line [13:32:05]line [13:32:05]written 0, free lines is 3626 [13:32:05]MH_Cut [13:32:05]Write to MH i2c: D1 01 00 A0 00 01 72 [13:32:05]Write i2c OK [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: D1 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: D1 01 00 [13:32:05]MH_I2C_Read... [13:32:05]Read from MH i2c: D1 01 00 A0 00 00 71 [13:32:05]Write to MH i2c: 01 00 00 A1 00 A1 [13:32:05]Write i2c OK [13:32:05]MH_I2C_Read... [13:32:06]*** Cut start [13:32:06]*** Purtial cut [13:32:06]*** Stage 1: CUTSNS_PIN = 1 [13:32:06]Read from MH i2c: 01 [13:32:06]MH_I2C_Read... [13:32:06]*** Stop cut motor [13:32:06]*** Cut end [13:32:06]Read from MH i2c: 01 07 00 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: 01 07 00 A1 00 00 00 00 00 00 FF 0F B6 [13:32:06]process_action print_text done [13:32:06]requested_data is exist [13:32:06]produce_requested_data [13:32:06]requested_item fm.sn is exist - process it [13:32:06]wFMCommunicate request_size=4 [13:32:06]MH_SAM_APDU [13:32:06]CAPDU: 80 11 00 00 [13:32:06]Write to MH i2c: E2 08 00 A2 00 80 11 00 00 00 00 00 00 1C [13:32:06]Write i2c OK [13:32:06]MH_I2C_Read... [13:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:06]Read from MH i2c: E2 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 17 00 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 17 00 A2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 71 [13:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [13:32:06]wFMCommunicate OK [13:32:06]requested_item fd.num is exist - process it [13:32:06]SAM_PROTO_GetFieldsCounters [13:32:06]wFMCommunicate request_size=4 [13:32:06]MH_SAM_APDU [13:32:06]CAPDU: 80 13 00 00 [13:32:06]Write to MH i2c: E2 08 00 A3 00 80 13 00 00 00 00 00 00 1F [13:32:06]Write i2c OK [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 [13:32:06]MH_I2C_Read... [13:32:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:06]Read from MH i2c: E2 62 00 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 62 00 A3 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 19 14 01 00 0E 04 04 00 D2 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 A9 [13:32: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 19 14 01 00 0E 04 04 00 D2 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 [13:32:06]wFMCommunicate OK [13:32:06]SAM_PROTO_GetFieldsCounters done [13:32:06]requested_item shift.num is exist - process it [13:32:06]requested_item shift.opened is exist - process it [13:32:06]req_shift_opened [13:32:06]FM_GetShiftState [13:32:06]SAM_PROTO_GetShiftState [13:32:06]wFMCommunicate request_size=4 [13:32:06]MH_SAM_APDU [13:32:06]CAPDU: 80 13 01 00 [13:32:06]Write to MH i2c: E2 08 00 A4 00 80 13 01 00 00 00 00 00 21 [13:32:06]Write i2c OK [13:32:06]MH_I2C_Read... [13:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:06]Read from MH i2c: E2 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 0E 00 [13:32:06]MH_I2C_Read... [13:32:06]Read from MH i2c: E2 0E 00 A4 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 90 [13:32:06]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [13:32:06]wFMCommunicate OK [13:32:06]SAM_PROTO_GetShiftState done [13:32:06]FM_GetShiftState done [13:32:06]req_shift_opened done [13:32:06]requested_item shift.open_date is exist - process it [13:32:06]req_shift_open_date [13:32:06]req_shift_open_date done [13:32:06]produce_requested_data done [13:32:06]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70681,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [13:32:06]process_action_free print_text [13:32:06]json_value_free [13:32:06]json_value_free done [13:32:06]process_json_proto returns [13:32:06]Send response to host [13:32:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70681,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [13:32:06]free response buf [13:32:06]execute_script done [13:32:06]execute_script returns [13:32:06]free content buf [13:32:06]Sock 9.Close socket [13:32:06]Sock 9.Thread stoped [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:05]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]accept exits with 7 [13:35:30]New connection [13:35:30]New thread 3066920292 created [13:35:30]Thread 3067063652 joined [13:35:30]Waiting for new connection... [13:35:30] Sock 7.Parse request [13:35:30]Sock 7.Check first char [13:35:30]Sock 7.First char is OK [13:35:30]request: POST /json_proto HTTP/1.0 [13:35:30]Method: POST [13:35:30]URL: /json_proto [13:35:30]Method is POST - this is cgi request [13:35:30]url: /json_proto [13:35:30]query_string will be loaded in cgi processing [13:35:30]execute_cgi json_proto POST (null) [13:35:30]execute_cgi path=json_proto method=POST [13:35:30]POST find Content-Length [13:35:30]Host: 172.17.58.67:8080 [13:35:30]Content-Length: 1205 [13:35:30]Content-Type: application/json [13:35:30] [13:35:30]POST finish read [13:35:30]Found Content-Length = 1205 [13:35:30]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141141\u000A13.08.2024 12:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 2636.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\u000A4148545;4148584\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:30]execute_script... [13:35:30]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141141\u000A13.08.2024 12:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 2636.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\u000A4148545;4148584\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:30]POST & json_proto [13:35:30]process_json_proto [13:35:30]json parsed OK: [13:35:30]protocol is kg_v1.0 [13:35:30]action value=print_text [13:35:30]process_action print_text [13:35:30]cmd_print_text [13:35:30]ExternCall_PrintAddStr [13:35:30]wPrintStart [13:35:30]Write to MH i2c: 01 00 00 A5 00 A5 [13:35:30]Write i2c OK [13:35:30]MH_I2C_Read... [13:35:30]Read from MH i2c: 01 [13:35:30]MH_I2C_Read... [13:35:30]Read from MH i2c: 01 07 00 [13:35:30]MH_I2C_Read... [13:35:30]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 FF 0F BA [13:35:30]RasterBufferAndPrint [13:35:30]line *****ТОВÐРÐЫЙ ЧЕК***** [13:35:30]line ÐЗС 39 [13:35:30]line Партнер нефть [13:35:30]line 02508201610067 [13:35:30]line КаÑÑир : ОваÑбекова Л. [13:35:30]line Счет N : (1)141141 [13:35:30]line 13.08.2024 12:54 [13:35:30]line ПРОДÐЖР[13:35:30]line ТРК (МРК, ГÐК): 31 [13:35:30]line Вид ГСМ : 2710124130 [13:35:30]line Ðи-92-К-5 [13:35:30]line 40.000 x 65.90 [13:35:30]line ИТОГ: 2636.00 [13:35:30]line Тип оплаты: Талоны: Партнер нефть [13:35:30]line 4148545;4148584 [13:35:30]line ______________________ [13:35:30]line (подпиÑÑŒ) [13:35:30]written 0, free lines is 4095 [13:35:30]OFD Sender: No OFD packet to send [13:35:30]Write to MH i2c: 01 00 00 B9 00 B9 [13:35:30]Write i2c OK [13:35:30]MH_I2C_Read... [13:35:30]Read from MH i2c: 01 [13:35:30]MH_I2C_Read... [13:35:30]Read from MH i2c: 01 07 00 [13:35:30]MH_I2C_Read... [13:35:30]Read from MH i2c: 01 07 00 B9 00 00 00 00 00 00 15 0E E3 [13:35:30]RasterBufferAndPrint [13:35:30]line [13:35:30]line [13:35:30]line [13:35:30]line [13:35:30]line [13:35:30]written 0, free lines is 3607 [13:35:30]MH_Cut [13:35:30]Write to MH i2c: D1 01 00 C0 00 01 92 [13:35:30]Write i2c OK [13:35:30]MH_I2C_Read... [13:35:30]Read from MH i2c: D1 [13:35:30]MH_I2C_Read... [13:35:30]Read from MH i2c: D1 01 00 [13:35:30]MH_I2C_Read... [13:35:30]Read from MH i2c: D1 01 00 C0 00 00 91 [13:35:30]Write to MH i2c: 01 00 00 C1 00 C1 [13:35:30]Write i2c OK [13:35:30]MH_I2C_Read... [13:35:31]*** Cut start [13:35:31]*** Purtial cut [13:35:31]*** CUTSNS_PIN = 0 [13:35:31]*** Stage 1: CUTSNS_PIN = 1 [13:35:33]Read from MH i2c: 01 [13:35:33]MH_I2C_Read... [13:35:33]*** Stop cut motor [13:35:33]*** Cut end [13:35:33]Read from MH i2c: 01 07 00 [13:35:33]MH_I2C_Read... [13:35:33]Read from MH i2c: 01 07 00 C1 00 00 00 00 00 00 FF 0F D6 [13:35:33]process_action print_text done [13:35:33]requested_data is exist [13:35:33]produce_requested_data [13:35:33]requested_item fm.sn is exist - process it [13:35:33]wFMCommunicate request_size=4 [13:35:33]MH_SAM_APDU [13:35:33]CAPDU: 80 11 00 00 [13:35:33]Write to MH i2c: E2 08 00 C2 00 80 11 00 00 00 00 00 00 3C [13:35:33]Write i2c OK [13:35:33]MH_I2C_Read... [13:35:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:33]Read from MH i2c: E2 [13:35:33]MH_I2C_Read... [13:35:33]Read from MH i2c: E2 17 00 [13:35:33]MH_I2C_Read... [13:35:33]Read from MH i2c: E2 17 00 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 91 [13:35:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [13:35:33]wFMCommunicate OK [13:35:33]requested_item fd.num is exist - process it [13:35:33]SAM_PROTO_GetFieldsCounters [13:35:33]wFMCommunicate request_size=4 [13:35:33]MH_SAM_APDU [13:35:33]CAPDU: 80 13 00 00 [13:35:33]Write to MH i2c: E2 08 00 C3 00 80 13 00 00 00 00 00 00 3F [13:35:33]Write i2c OK [13:35:33]MH_I2C_Read... [13:35:33]Read from MH i2c: E2 [13:35:33]MH_I2C_Read... [13:35:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:33]Read from MH i2c: E2 62 00 [13:35:33]MH_I2C_Read... [13:35:33]Read from MH i2c: E2 62 00 C3 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 19 14 01 00 0E 04 04 00 D2 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 C9 [13:35: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 19 14 01 00 0E 04 04 00 D2 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 [13:35:33]wFMCommunicate OK [13:35:33]SAM_PROTO_GetFieldsCounters done [13:35:33]requested_item shift.num is exist - process it [13:35:33]requested_item shift.opened is exist - process it [13:35:33]req_shift_opened [13:35:33]FM_GetShiftState [13:35:33]SAM_PROTO_GetShiftState [13:35:33]wFMCommunicate request_size=4 [13:35:33]MH_SAM_APDU [13:35:33]CAPDU: 80 13 01 00 [13:35:33]Write to MH i2c: E2 08 00 C4 00 80 13 01 00 00 00 00 00 41 [13:35:33]Write i2c OK [13:35:33]MH_I2C_Read... [13:35:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:33]Read from MH i2c: E2 [13:35:33]MH_I2C_Read... [13:35:33]Read from MH i2c: E2 0E 00 [13:35:33]MH_I2C_Read... [13:35:33]Read from MH i2c: E2 0E 00 C4 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 B0 [13:35:33]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [13:35:33]wFMCommunicate OK [13:35:33]SAM_PROTO_GetShiftState done [13:35:33]FM_GetShiftState done [13:35:33]req_shift_opened done [13:35:33]requested_item shift.open_date is exist - process it [13:35:33]req_shift_open_date [13:35:33]req_shift_open_date done [13:35:33]produce_requested_data done [13:35:33]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70681,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [13:35:33]process_action_free print_text [13:35:33]json_value_free [13:35:33]json_value_free done [13:35:33]process_json_proto returns [13:35:33]Send response to host [13:35:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70681,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [13:35:33]free response buf [13:35:33]execute_script done [13:35:33]execute_script returns [13:35:33]free content buf [13:35:33]Sock 7.Close socket [13:35:33]Sock 7.Thread stoped [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:46:22]ConnectInit Can't connect to host [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:52:31]ConnectInit Can't connect to host [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:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:02]accept exits with 9 [14:01:02]New connection [14:01:02]New thread 3066928484 created [14:01:02]Waiting for new connection... [14:01:02] Sock 9.Parse request [14:01:02]Sock 9.Check first char [14:01:02]Sock 9.First char is OK [14:01:02]request: POST /json_proto HTTP/1.0 [14:01:02]Method: POST [14:01:02]URL: /json_proto [14:01:02]Method is POST - this is cgi request [14:01:02]url: /json_proto [14:01:02]query_string will be loaded in cgi processing [14:01:02]execute_cgi json_proto POST (null) [14:01:02]execute_cgi path=json_proto method=POST [14:01:02]POST find Content-Length [14:01:02]Host: 172.17.58.67:8080 [14:01:02]Content-Length: 215 [14:01:02]Content-Type: application/json [14:01:02] [14:01:02]POST finish read [14:01:02]Found Content-Length = 215 [14:01:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:02]execute_script... [14:01:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:02]POST & json_proto [14:01:02]process_json_proto [14:01:02]json parsed OK: [14:01:02]protocol is kg_v1.0 [14:01:02]action value=get_value [14:01:02]process_action get_value [14:01:02]cmd_get_value [14:01:02]process_action get_value done [14:01:02]requested_data is exist [14:01:02]produce_requested_data [14:01:02]requested_item kkm.sn is exist - process it [14:01:02]requested_item kkm.ver is exist - process it [14:01:02]requested_item fm.sn is exist - process it [14:01:02]wFMCommunicate request_size=4 [14:01:02]MH_SAM_APDU [14:01:02]CAPDU: 80 11 00 00 [14:01:02]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:01:02]Write i2c OK [14:01:02]MH_I2C_Read... [14:01:02]Read from MH i2c: E2 [14:01:02]MH_I2C_Read... [14:01:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:02]Read from MH i2c: E2 17 00 [14:01:02]MH_I2C_Read... [14:01:02]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 39 31 35 90 00 DF [14:01:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:01:02]wFMCommunicate OK [14:01:02]requested_item fd.num is exist - process it [14:01:02]SAM_PROTO_GetFieldsCounters [14:01:02]wFMCommunicate request_size=4 [14:01:02]MH_SAM_APDU [14:01:02]CAPDU: 80 13 00 00 [14:01:02]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [14:01:02]Write i2c OK [14:01:02]MH_I2C_Read... [14:01:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:02]Read from MH i2c: E2 [14:01:02]MH_I2C_Read... [14:01:02]Read from MH i2c: E2 62 00 [14:01:02]MH_I2C_Read... [14:01:02]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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 19 14 01 00 0E 04 04 00 D2 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 17 [14:01: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 19 14 01 00 0E 04 04 00 D2 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 [14:01:02]wFMCommunicate OK [14:01:02]SAM_PROTO_GetFieldsCounters done [14:01:02]requested_item shift.num is exist - process it [14:01:02]requested_item shift.opened is exist - process it [14:01:02]req_shift_opened [14:01:02]FM_GetShiftState [14:01:02]SAM_PROTO_GetShiftState [14:01:02]wFMCommunicate request_size=4 [14:01:02]MH_SAM_APDU [14:01:02]CAPDU: 80 13 01 00 [14:01:02]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [14:01:02]Write i2c OK [14:01:02]MH_I2C_Read... [14:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:02]Read from MH i2c: E2 [14:01:02]MH_I2C_Read... [14:01:02]Read from MH i2c: E2 0E 00 [14:01:02]MH_I2C_Read... [14:01:02]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 FE [14:01:02]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [14:01:02]wFMCommunicate OK [14:01:02]SAM_PROTO_GetShiftState done [14:01:02]FM_GetShiftState done [14:01:02]req_shift_opened done [14:01:02]requested_item shift.open_date is exist - process it [14:01:02]req_shift_open_date [14:01:02]req_shift_open_date done [14:01:02]produce_requested_data done [14:01:02]produce_requested_data return {"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70681,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [14:01:02]process_action_free get_value [14:01:02]json_value_free [14:01:02]json_value_free done [14:01:02]process_json_proto returns [14:01:02]Send response to host [14:01:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70681,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [14:01:02]free response buf [14:01:02]execute_script done [14:01:02]execute_script returns [14:01:02]free content buf [14:01:02]Sock 9.Close socket [14:01:02]Sock 9.Thread stoped [14:01:02]accept exits with 7 [14:01:02]New connection [14:01:02]New thread 3066785124 created [14:01:02]Thread 3066928484 joined [14:01:02]Waiting for new connection... [14:01:02] Sock 7.Parse request [14:01:02]Sock 7.Check first char [14:01:02]Sock 7.First char is OK [14:01:02]request: POST /json_proto HTTP/1.0 [14:01:02]Method: POST [14:01:02]URL: /json_proto [14:01:02]Method is POST - this is cgi request [14:01:02]url: /json_proto [14:01:02]query_string will be loaded in cgi processing [14:01:02]execute_cgi json_proto POST (null) [14:01:02]execute_cgi path=json_proto method=POST [14:01:02]POST find Content-Length [14:01:02]Host: 172.17.58.67:8080 [14:01:02]Content-Length: 331 [14:01:02]Content-Type: application/json [14:01:02] [14:01:02]POST finish read [14:01:02]Found Content-Length = 331 [14:01:02]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:01:02]execute_script... [14:01:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:01:02]POST & json_proto [14:01:02]process_json_proto [14:01:02]json parsed OK: [14:01:02]protocol is kg_v1.0 [14:01:02]action value=get_value [14:01:02]process_action get_value [14:01:03]cmd_get_value [14:01:03]process_action get_value done [14:01:03]requested_data is exist [14:01:03]produce_requested_data [14:01:03]requested_item fm.sale.total is exist - process it [14:01:03]SAM_PROTO_GetFMData [14:01:03]wFMCommunicate request_size=4 [14:01:03]MH_SAM_APDU [14:01:03]CAPDU: 80 13 03 00 [14:01:03]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:01:03]Write i2c OK [14:01:03]MH_I2C_Read... [14:01:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:01:03]Read from MH i2c: E2 [14:01:03]MH_I2C_Read... [14:01:03]Read from MH i2c: E2 FD 00 [14:01:03]MH_I2C_Read... [14:01:03]Read from MH i2c: E2 FD 00 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 75 10 01 00 69 04 A3 00 6F 04 04 00 40 07 01 00 B1 04 05 00 5A CF AB C9 01 70 04 05 00 7C 76 B6 5F 01 72 04 04 00 DE 58 F5 69 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 CE 9B 30 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 AE F0 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 35 09 00 00 B1 04 04 00 90 50 60 14 70 04 04 00 F4 17 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F5 0B 2A 02 90 00 CC [14:01:03]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 75 10 01 00 69 04 A3 00 6F 04 04 00 40 07 01 00 B1 04 05 00 5A CF AB C9 01 70 04 05 00 7C 76 B6 5F 01 72 04 04 00 DE 58 F5 69 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A5 CE 9B 30 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 AE F0 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 35 09 00 00 B1 04 04 00 90 50 60 14 70 04 04 00 F4 17 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F5 0B 2A 02 90 00 [14:01:03]wFMCommunicate OK [14:01:03]wFMCommunicate request_size=4 [14:01:03]MH_SAM_APDU [14:01:03]CAPDU: 80 17 00 00 [14:01:03]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:01:03]Write i2c OK [14:01:03]MH_I2C_Read... [14:01:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:01:03]Read from MH i2c: E2 [14:01:03]MH_I2C_Read... [14:01:03]Read from MH i2c: E2 FD 00 [14:01:03]MH_I2C_Read... [14:01:03]Read from MH i2c: E2 FD 00 14 00 00 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 33 2B 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 1C [14:01:03]RAPDU: 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 33 2B 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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:01:03]wFMCommunicate OK [14:01:03]wFMCommunicate request_size=4 [14:01:03]MH_SAM_APDU [14:01:03]CAPDU: 80 17 00 00 [14:01:03]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [14:01:03]Write i2c OK [14:01:03]MH_I2C_Read... [14:01:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:01:03]Read from MH i2c: E2 [14:01:03]MH_I2C_Read... [14:01:03]Read from MH i2c: E2 FD 00 [14:01:03]MH_I2C_Read... [14:01:03]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 [14:01:03]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:01:03]wFMCommunicate OK [14:01:03]wFMCommunicate request_size=4 [14:01:03]MH_SAM_APDU [14:01:03]CAPDU: 80 17 00 00 [14:01:03]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:01:03]Write i2c OK [14:01:03]MH_I2C_Read... [14:01:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:01:04]Read from MH i2c: E2 [14:01:04]MH_I2C_Read... [14:01:04]Read from MH i2c: E2 FD 00 [14:01:04]MH_I2C_Read... [14:01:04]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 [14:01: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:01:04]wFMCommunicate OK [14:01:04]wFMCommunicate request_size=4 [14:01:04]MH_SAM_APDU [14:01:04]CAPDU: 80 17 00 00 [14:01:04]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:01:04]Write i2c OK [14:01:04]MH_I2C_Read... [14:01:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [14:01:04]Read from MH i2c: E2 [14:01:04]MH_I2C_Read... [14:01:04]Read from MH i2c: E2 E5 00 [14:01:04]MH_I2C_Read... [14:01:04]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 [14:01:04]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:01:04]wFMCommunicate OK [14:01:04]SAM_PROTO_GetFMData done [14:01:04]requested_item fm.sale_refund.total is exist - process it [14:01:04]requested_item fm.buy.total is exist - process it [14:01:04]requested_item shift.sale.total is exist - process it [14:01:04]SAM_PROTO_GetShiftData [14:01:04]wFMCommunicate request_size=4 [14:01:04]MH_SAM_APDU [14:01:04]CAPDU: 80 13 02 00 [14:01:04]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:01:04]Write i2c OK [14:01:04]MH_I2C_Read... [14:01:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:01:04]Read from MH i2c: E2 [14:01:04]MH_I2C_Read... [14:01:04]Read from MH i2c: E2 FD 00 [14:01:04]MH_I2C_Read... [14:01:04]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 23 00 00 00 69 04 9B 00 6F 04 04 00 20 00 00 00 B1 04 03 00 04 63 2D 70 04 03 00 90 08 1C 72 04 03 00 74 5A 11 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 14 D2 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D8 66 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 03 00 00 00 B1 04 03 00 B0 71 0B 70 04 03 00 B0 71 0B 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 2C 37 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 DC [14:01:04]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 23 00 00 00 69 04 9B 00 6F 04 04 00 20 00 00 00 B1 04 03 00 04 63 2D 70 04 03 00 90 08 1C 72 04 03 00 74 5A 11 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 14 D2 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D8 66 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 03 00 00 00 B1 04 03 00 B0 71 0B 70 04 03 00 B0 71 0B 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 2C 37 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [14:01:04]wFMCommunicate OK [14:01:04]wFMCommunicate request_size=4 [14:01:04]MH_SAM_APDU [14:01:04]CAPDU: 80 17 00 00 [14:01:04]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:01:04]Write i2c OK [14:01:04]MH_I2C_Read... [14:01:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:01:05]Read from MH i2c: E2 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 FD 00 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 EE 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 5F [14:01:05]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 EE 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [14:01:05]wFMCommunicate OK [14:01:05]wFMCommunicate request_size=4 [14:01:05]MH_SAM_APDU [14:01:05]CAPDU: 80 17 00 00 [14:01:05]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:01:05]Write i2c OK [14:01:05]MH_I2C_Read... [14:01:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:01:05]Read from MH i2c: E2 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 FD 00 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [14:01:05]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [14:01:05]wFMCommunicate OK [14:01:05]wFMCommunicate request_size=4 [14:01:05]MH_SAM_APDU [14:01:05]CAPDU: 80 17 00 00 [14:01:05]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [14:01:05]Write i2c OK [14:01:05]MH_I2C_Read... [14:01:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:01:05]Read from MH i2c: E2 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 FD 00 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 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 90 00 13 [14:01:05]RAPDU: EF 03 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 90 00 [14:01:05]wFMCommunicate OK [14:01:05]wFMCommunicate request_size=4 [14:01:05]MH_SAM_APDU [14:01:05]CAPDU: 80 17 00 00 [14:01:05]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:01:05]Write i2c OK [14:01:05]MH_I2C_Read... [14:01:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [14:01:06]Read from MH i2c: E2 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: E2 D6 00 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: E2 D6 00 1C 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 7E [14:01:06]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 OFD Sender: No OFD packet to send [14:01:06]00 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:01:06]wFMCommunicate OK [14:01:06]SAM_PROTO_GetShiftData done [14:01:06]requested_item shift.sale.total_cash is exist - process it [14:01:06]requested_item shift.sale_refund.total is exist - process it [14:01:06]requested_item shift.sale_refund.total_cash is exist - process it [14:01:06]requested_item shift.buy.total is exist - process it [14:01:06]requested_item shift.buy.total_cash is exist - process it [14:01:06]produce_requested_data done [14:01:06]produce_requested_data return {"fm.sale.total":76784474.50,"fm.sale_refund.total":3418564.00,"fm.buy.total":0.00,"shift.sale.total":29744.68,"shift.sale.total_cash":18372.00,"shift.sale_refund.total":7500.00,"shift.sale_refund.total_cash":7500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:01:06]process_action_free get_value [14:01:06]json_value_free [14:01:06]json_value_free done [14:01:06]process_json_proto returns [14:01:06]Send response to host [14:01:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76784474.50,"fm.sale_refund.total":3418564.00,"fm.buy.total":0.00,"shift.sale.total":29744.68,"shift.sale.total_cash":18372.00,"shift.sale_refund.total":7500.00,"shift.sale_refund.total_cash":7500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:01:06]free response buf [14:01:06]execute_script done [14:01:06]execute_script returns [14:01:06]free content buf [14:01:06]Sock 7.Close socket [14:01:06]Sock 7.Thread stoped [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:01]int [14:06:01]Write to MH i2c: 01 00 00 1D 00 1D [14:06:01]*** FLAG_PRN_KEY set [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: 01 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: 01 07 00 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: 01 07 00 1D 00 00 08 00 00 00 FF 0F 3A [14:06:01]state=0 [14:06:01]Key pressed [14:06:01]Feed [14:06:01]Write to MH i2c: D8 00 00 1E 00 F5 [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: D8 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: D8 01 00 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: D8 01 00 1E 00 00 F6 [14:06:01]int [14:06:01]Write to MH i2c: 01 00 00 1F 00 1F [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: 01 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: 01 07 00 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: 01 07 00 1F 00 00 48 00 00 00 3D 00 AB [14:06:01]state=2 [14:06:01]Key pressed [14:06:01]int [14:06:01]Write to MH i2c: 01 00 00 20 00 20 [14:06:01]*** FLAG_PRN_KEY reset [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: 01 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: 01 07 00 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: 01 07 00 20 00 00 00 00 00 00 F5 0F 2B [14:06:01]state=2 [14:06:01]Stop feed [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:16]accept exits with 9 [14:07:16]New connection [14:07:16]New thread 3066928484 created [14:07:16]Thread 3066785124 joined [14:07:16]Waiting for new connection... [14:07:16] Sock 9.Parse request [14:07:16]Sock 9.Check first char [14:07:16]Sock 9.First char is OK [14:07:16]request: POST /json_proto HTTP/1.0 [14:07:16]Method: POST [14:07:16]URL: /json_proto [14:07:16]Method is POST - this is cgi request [14:07:16]url: /json_proto [14:07:16]query_string will be loaded in cgi processing [14:07:16]execute_cgi json_proto POST (null) [14:07:16]execute_cgi path=json_proto method=POST [14:07:16]POST find Content-Length [14:07:16]Host: 172.17.58.67:8080 [14:07:16]Content-Length: 805 [14:07:16]Content-Type: application/json [14:07:16] [14:07:16]POST finish read [14:07:16]Found Content-Length = 805 [14:07:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 2.720, "sum" : 179.25, "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" : 179.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:16]execute_script... [14:07:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 2.720, "sum" : 179.25, "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" : 179.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:16]POST & json_proto [14:07:16]process_json_proto [14:07:16]json parsed OK: [14:07:16]protocol is kg_v1.0 [14:07:16]action value=close_receipt [14:07:16]process_action close_receipt [14:07:16]cmd_close_receipt [14:07:16]MH_GetDate [14:07:16]Write to MH i2c: F0 00 00 21 00 10 [14:07:16]Write i2c OK [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: F0 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: F0 09 00 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: F0 09 00 21 00 00 95 68 BB 66 94 51 63 64 E3 [14:07:16]GetLastDocTimeStamp 1723555687 [14:07:16]current date 1723558037 [14:07:16]FM_GetShiftState [14:07:16]SAM_PROTO_GetShiftState [14:07:16]wFMCommunicate request_size=4 [14:07:16]MH_SAM_APDU [14:07:16]CAPDU: 80 13 01 00 [14:07:16]Write to MH i2c: E2 08 00 22 00 80 13 01 00 00 00 00 00 9F [14:07:16]Write i2c OK [14:07:16]MH_I2C_Read... [14:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:16]Read from MH i2c: E2 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: E2 0E 00 [14:07:16]MH_I2C_Read... [14:07:16]Read from MH i2c: E2 0E 00 22 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 0E [14:07:16]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [14:07:16]wFMCommunicate OK [14:07:16]SAM_PROTO_GetShiftState done [14:07:16]FM_GetShiftState done [14:07:16]opened in 1723509656 [14:07:16]opened+sec_in_day 1723596056 [14:07:16]quantity*price = 17924 [14:07:16]sum+1 = 17926 [14:07:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 179.25 ÐСП 1% : 1.59 ÐДС 12% : 19.03 Ðаличными: 0.00 Безнал.: 179.25 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 36 13.08.2024 14:07 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70682 ФПД: 246964228251995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T140717&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70682&fm=246964228251995&tin=02508201610067®Number=0000000000090913&sum=17925 [14:07:18]StoreToDocumentArchive [14:07:18]shift 466 fd 70682 [14:07:18]save to /storage/0466/doc_00070682 [14:07:18]save last doc name /storage/0466/doc_00070682 to /storage/kkm_last_doc_name [14:07:18]save OK [14:07:18]Clear old archive folders... [14:07:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:18]tlvbuf is 018C3B00 [14:07:18]SAM_PROTO_ClearQueue [14:07:18]wFMCommunicate request_size=4 [14:07:18]MH_SAM_APDU [14:07:18]CAPDU: 80 09 00 00 [14:07:18]Write to MH i2c: E2 08 00 2F 00 80 09 00 00 00 00 00 00 A1 [14:07:18]Write i2c OK [14:07:18]MH_I2C_Read... [14:07:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:18]Read from MH i2c: E2 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: E2 03 00 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: E2 03 00 2F 00 00 90 00 A3 [14:07:18]RAPDU: 90 00 [14:07:18]wFMCommunicate OK [14:07:18]SAM_PROTO_ClearQueue done [14:07:18]KKMCreateOFDPacket [14:07:18]OFDProtocolAddRootSTLVToBuf [14:07:18]FM_MakeSignedData [14:07:18]FM_MakeSignedData [14:07:18]SAM_PROTO_SignData [14:07:18]wFMCommunicate request_size=4 [14:07:18]MH_SAM_APDU [14:07:18]CAPDU: 80 0D 01 02 [14:07:18]Write to MH i2c: E2 08 00 30 00 80 0D 01 02 00 00 00 00 A9 [14:07:18]Write i2c OK [14:07:18]MH_I2C_Read... [14:07:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:18]Read from MH i2c: E2 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: E2 03 00 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: E2 03 00 30 00 00 90 00 A4 [14:07:18]RAPDU: 90 00 [14:07:18]wFMCommunicate OK [14:07:18]wFMCommunicate request_size=255 [14:07:18]MH_SAM_APDU [14:07:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 0A 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 05 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 95 68 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1A 14 01 00 35 04 06 00 E0 [14:07:18]Write to MH i2c: E2 02 01 31 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 A0 0A 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 05 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 95 68 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1A 14 01 00 35 04 06 00 E0 00 00 4D [14:07:18]Write i2c OK [14:07:18]MH_I2C_Read... [14:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:18]Read from MH i2c: E2 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: E2 03 00 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: E2 03 00 31 00 00 90 00 A5 [14:07:18]RAPDU: 90 00 [14:07:18]wFMCommunicate OK [14:07:18]wFMCommunicate request_size=10 [14:07:18]MH_SAM_APDU [14:07:18]CAPDU: 80 0D 02 02 05 9C D7 18 E1 5B [14:07:18]Write to MH i2c: E2 0D 00 32 00 80 0D 02 02 05 00 9C D7 18 E1 5B 00 00 7D [14:07:18]Write i2c OK [14:07:18]MH_I2C_Read... [14:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:18]Read from MH i2c: E2 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: E2 03 00 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: E2 03 00 32 00 00 90 00 A6 [14:07:18]RAPDU: 90 00 [14:07:18]wFMCommunicate OK [14:07:18]wFMCommunicate request_size=4 [14:07:18]MH_SAM_APDU [14:07:18]CAPDU: 80 0D 03 02 [14:07:18]Write to MH i2c: E2 08 00 33 00 80 0D 03 02 00 00 00 00 AE [14:07:18]Write i2c OK [14:07:18]MH_I2C_Read... [14:07:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:18]Read from MH i2c: E2 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: E2 0B 00 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: E2 0B 00 33 00 00 47 94 11 4A B8 A0 98 69 90 00 3E [14:07:18]RAPDU: 47 94 11 4A B8 A0 98 69 90 00 [14:07:18]wFMCommunicate OK [14:07:18]SAM_PROTO_SignData done [14:07:18]FM_MakeSignedData done [14:07:18]CreateOFDProtocolMessage [14:07:18]wFMCommunicate request_size=4 [14:07:18]MH_SAM_APDU [14:07:18]CAPDU: 80 11 00 00 [14:07:18]Write to MH i2c: E2 08 00 34 00 80 11 00 00 00 00 00 00 AE [14:07:18]Write i2c OK [14:07:18]MH_I2C_Read... [14:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:18]Read from MH i2c: E2 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: E2 17 00 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: E2 17 00 34 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 03 [14:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:07:18]wFMCommunicate OK [14:07:18]CreateOFDProtocolMessage done [14:07:18]OFDSenderStorePacket 70682 [14:07:18]StoreOFDPacket docnum=70682 [14:07:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 9B 86 07 01 40 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 0A 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 05 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 95 68 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1A 14 01 00 35 04 06 00 E0 9C D7 18 E1 5B 47 94 11 4A B8 A0 98 69 [14:07:18]CheckFolder [14:07:18]dirname=/storage/ofd_packets [14:07:18]CheckFolder done [14:07:18]ProducePacketName [14:07:18]name=ofd_packets/00070682 [14:07:18]NVStorageSaveData ofd_packets/00070682 [14:07:18]File name is /storage/ofd_packets/00070682 [14:07:18]Write 301 bytes [14:07:18]NVStorageSaveData done [14:07:18]OFDSenderStorePacket done [14:07:18]KKMCreateOFDPacket done [14:07:18]NVStorageSaveData kkm_last_timestamp [14:07:18]File name is /storage/kkm_last_timestamp [14:07:18]Write 4 bytes [14:07:18]NVStorageSaveData done [14:07:18]ExternCall_PrintAddStr [14:07:18]wPrintStart [14:07:18]Write to MH i2c: 01 00 00 35 00 35 [14:07:18]Write i2c OK [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: 01 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: 01 07 00 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: 01 07 00 35 00 00 00 00 00 00 FF 0F 4A [14:07:18]RasterBufferAndPrint [14:07:18]line Счет N : (1)141142 [14:07:18]line ИÐÐ: 02508201610067 [14:07:18]line Контрольно-КаÑÑовый Чек [14:07:18]line ПРОДÐЖР[14:07:18]line ТРК (МРК, ГÐК) : 31 [14:07:18]line Товар: 2710124130 [14:07:18]line Ðи-92-К-5 [14:07:18]line 2.720 * 65.90 [14:07:18]line = 179.25 [14:07:18]line ÐДС 12% ÐСП 1% [14:07:18]line > о реализуемом товаре [14:07:18]line ИТОГО: 179.25 [14:07:18]line ÐСП 1% : 1.59 [14:07:18]line ÐДС 12% : 19.03 [14:07:18]line Ðаличными: 0.00 [14:07:18]line Безнал.: 179.25 [14:07:18]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [14:07:18]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [14:07:18]line СÐО: Общий режим [14:07:18]line Чек 36 13.08.2024 14:07 [14:07:18]line Смена: 466 ФФД: 1.0 [14:07:18]line ЗÐМ: 0300000140 [14:07:18]line РÐМ: 0000000000090913 [14:07:18]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [14:07:18]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [14:07:18]line ФМ: 0000000000874915 [14:07:18]line ФД: 70682 [14:07:18]line ФПД: 246964228251995 [14:07:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T140717&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70682&fm=246964228251995&tin=02508201610067®Number=0000000000090913&sum=17925 [14:07:18]written 0, free lines is 4095 [14:07:18]OFD Sender: Processing packet 70682 [packets to send 67, broken 66] [14:07:18]ProducePacketName [14:07:18]name=ofd_packets/00070682 [14:07:18]OFD Sender: To server: ‡•öpG, [14:07:18]CommunicateWithHost lk.salyk.kg:30040 [14:07:18]ConnectInit lk.salyk.kg [14:07:18]Connected sock=10 [14:07: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 39 31 35 0F 01 00 00 9B 86 07 01 40 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 0A 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 05 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 46 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 95 68 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1A 14 01 00 35 04 06 00 E0 9C D7 18 E1 5B 47 94 11 4A B8 A0 98 69 [14:07:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 36 FF 47 00 8E 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 39 31 35 10 04 04 00 1A 14 01 00 F4 03 04 00 80 0F BB 66 B6 04 01 00 00 22 E6 8E B1 35 9E 4E A9 [14:07:18]CommunicateWithHost err = 0 [14:07:18]CheckOFDResponse [14:07:18]1017 (14) - 77093643461234 [14:07:18]1041 (16) - 0000000000874915 [14:07:18]1040 (4) - 70682 [14:07:18]1012 (4) - 13.08.2024 07:47 [14:07:18]1206 (1) - 0 [14:07:18]OFD Sender: Remove packet 70682 [14:07:18]ProducePacketName [14:07:18]name=ofd_packets/00070682 [14:07:18]NVStorageDeleteData [14:07:19]Write to MH i2c: 01 00 00 5F 00 5F [14:07:19]Write i2c OK [14:07:19]MH_I2C_Read... [14:07:19]Read from MH i2c: 01 [14:07:19]MH_I2C_Read... [14:07:19]Read from MH i2c: 01 07 00 [14:07:19]MH_I2C_Read... [14:07:19]Read from MH i2c: 01 07 00 5F 00 00 00 00 00 00 04 0D 77 [14:07:19]RasterBufferAndPrint [14:07:19]line [14:07:19]line [14:07:19]line [14:07:19]line [14:07:19]line [14:07:19]written 0, free lines is 3338 [14:07:19]MH_Cut [14:07:19]Write to MH i2c: D1 01 00 66 00 01 38 [14:07:19]Write i2c OK [14:07:19]MH_I2C_Read... [14:07:19]Read from MH i2c: D1 [14:07:19]MH_I2C_Read... [14:07:19]Read from MH i2c: D1 01 00 [14:07:19]MH_I2C_Read... [14:07:19]Read from MH i2c: D1 01 00 66 00 00 37 [14:07:19]Write to MH i2c: 01 00 00 67 00 67 [14:07:19]Write i2c OK [14:07:19]MH_I2C_Read... [14:07:19]OFD Sender: No OFD packet to send [14:07:19]*** Cut start [14:07:19]*** Purtial cut [14:07:19]*** Stage 1: CUTSNS_PIN = 1 [14:07:20]Read from MH i2c: 01 [14:07:20]MH_I2C_Read... [14:07:20]*** Stop cut motor [14:07:20]*** Cut end [14:07:20]Read from MH i2c: 01 07 00 [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: 01 07 00 67 00 00 00 00 00 00 FF 0F 7C [14:07:20]process_action close_receipt done [14:07:20]requested_data is exist [14:07:20]produce_requested_data [14:07:20]requested_item fm.sn is exist - process it [14:07:20]wFMCommunicate request_size=4 [14:07:20]MH_SAM_APDU [14:07:20]CAPDU: 80 11 00 00 [14:07:20]Write to MH i2c: E2 08 00 68 00 80 11 00 00 00 00 00 00 E2 [14:07:20]Write i2c OK [14:07:20]MH_I2C_Read... [14:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:20]Read from MH i2c: E2 [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: E2 17 00 [14:07:20]MH_I2C_Read... [14:07:20]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 39 31 35 90 00 37 [14:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:07:20]wFMCommunicate OK [14:07:20]requested_item fd.num is exist - process it [14:07:20]SAM_PROTO_GetFieldsCounters [14:07:20]wFMCommunicate request_size=4 [14:07:20]MH_SAM_APDU [14:07:20]CAPDU: 80 13 00 00 [14:07:20]Write to MH i2c: E2 08 00 69 00 80 13 00 00 00 00 00 00 E5 [14:07:20]Write i2c OK [14:07:20]MH_I2C_Read... [14:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:20]Read from MH i2c: E2 [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: E2 62 00 [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: E2 62 00 69 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 1A 14 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [14:07:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 1A 14 01 00 0E 04 04 00 D2 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 [14:07:20]wFMCommunicate OK [14:07:20]SAM_PROTO_GetFieldsCounters done [14:07:20]requested_item shift.num is exist - process it [14:07:20]requested_item shift.opened is exist - process it [14:07:20]req_shift_opened [14:07:20]FM_GetShiftState [14:07:20]SAM_PROTO_GetShiftState [14:07:20]wFMCommunicate request_size=4 [14:07:20]MH_SAM_APDU [14:07:20]CAPDU: 80 13 01 00 [14:07:20]Write to MH i2c: E2 08 00 6A 00 80 13 01 00 00 00 00 00 E7 [14:07:20]Write i2c OK [14:07:20]MH_I2C_Read... [14:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:20]Read from MH i2c: E2 [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: E2 0E 00 [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: E2 0E 00 6A 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 56 [14:07:20]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [14:07:20]wFMCommunicate OK [14:07:20]SAM_PROTO_GetShiftState done [14:07:20]FM_GetShiftState done [14:07:20]req_shift_opened done [14:07:20]requested_item shift.open_date is exist - process it [14:07:20]req_shift_open_date [14:07:20]req_shift_open_date done [14:07:20]produce_requested_data done [14:07:20]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70682,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [14:07:20]process_action_free close_receipt [14:07:20]json_value_free [14:07:20]json_value_free done [14:07:20]process_json_proto returns [14:07:20]Send response to host [14:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70682,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [14:07:20]free response buf [14:07:20]execute_script done [14:07:20]execute_script returns [14:07:20]free content buf [14:07:20]Sock 9.Close socket [14:07:20]Sock 9.Thread stoped [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:42]accept exits with 7 [14:08:42]New connection [14:08:42]New thread 3066785124 created [14:08:42]Thread 3066928484 joined [14:08:42]Waiting for new connection... [14:08:42] Sock 7.Parse request [14:08:42]Sock 7.Check first char [14:08:42]Sock 7.First char is OK [14:08:42]request: POST /json_proto HTTP/1.0 [14:08:42]Method: POST [14:08:42]URL: /json_proto [14:08:42]Method is POST - this is cgi request [14:08:42]url: /json_proto [14:08:42]query_string will be loaded in cgi processing [14:08:42]execute_cgi json_proto POST (null) [14:08:42]execute_cgi path=json_proto method=POST [14:08:42]POST find Content-Length [14:08:42]Host: 172.17.58.67:8080 [14:08:42]Content-Length: 802 [14:08:42]Content-Type: application/json [14:08:42] [14:08:42]POST finish read [14:08:42]Found Content-Length = 802 [14:08:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 6.730, "sum" : 500.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:42]execute_script... [14:08: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)141143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 6.730, "sum" : 500.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:42]POST & json_proto [14:08:42]process_json_proto [14:08:42]json parsed OK: [14:08:42]protocol is kg_v1.0 [14:08:42]action value=close_receipt [14:08:42]process_action close_receipt [14:08:42]cmd_close_receipt [14:08:42]MH_GetDate [14:08:42]Write to MH i2c: F0 00 00 6B 00 5A [14:08:42]Write i2c OK [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: F0 [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: F0 09 00 [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: F0 09 00 6B 00 00 EB 68 BB 66 94 51 63 64 83 [14:08:42]GetLastDocTimeStamp 1723558037 [14:08:42]current date 1723558123 [14:08:42]FM_GetShiftState [14:08:42]SAM_PROTO_GetShiftState [14:08:42]wFMCommunicate request_size=4 [14:08:42]MH_SAM_APDU [14:08:42]CAPDU: 80 13 01 00 [14:08:42]Write to MH i2c: E2 08 00 6C 00 80 13 01 00 00 00 00 00 E9 [14:08:42]Write i2c OK [14:08:42]MH_I2C_Read... [14:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:43]Read from MH i2c: E2 [14:08:43]MH_I2C_Read... [14:08:43]Read from MH i2c: E2 0E 00 [14:08:43]MH_I2C_Read... [14:08:43]Read from MH i2c: E2 0E 00 6C 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 58 [14:08:43]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [14:08:43]wFMCommunicate OK [14:08:43]SAM_PROTO_GetShiftState done [14:08:43]FM_GetShiftState done [14:08:43]opened in 1723509656 [14:08:43]opened+sec_in_day 1723596056 [14:08:43]quantity*price = 50071 [14:08:43]sum+1 = 50072 [14:08:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.71 ÐСП 1% : 4.43 ÐДС 12% : 53.17 Ðаличными: 0.00 Безнал.: 500.71 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 37 13.08.2024 14:08 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70683 ФПД: 259405600288486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T140843&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70683&fm=259405600288486&tin=02508201610067®Number=0000000000090913&sum=50071 [14:08:44]StoreToDocumentArchive [14:08:44]shift 466 fd 70683 [14:08:44]save to /storage/0466/doc_00070683 [14:08:44]save last doc name /storage/0466/doc_00070683 to /storage/kkm_last_doc_name [14:08:44]save OK [14:08:44]Clear old archive folders... [14:08:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:08:44]tlvbuf is 018B0350 [14:08:44]SAM_PROTO_ClearQueue [14:08:44]wFMCommunicate request_size=4 [14:08:44]MH_SAM_APDU [14:08:44]CAPDU: 80 09 00 00 [14:08:44]Write to MH i2c: E2 08 00 79 00 80 09 00 00 00 00 00 00 EB [14:08:44]Write i2c OK [14:08:44]MH_I2C_Read... [14:08:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:44]Read from MH i2c: E2 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 03 00 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [14:08:44]RAPDU: 90 00 [14:08:44]wFMCommunicate OK [14:08:44]SAM_PROTO_ClearQueue done [14:08:44]KKMCreateOFDPacket [14:08:44]OFDProtocolAddRootSTLVToBuf [14:08:44]FM_MakeSignedData [14:08:44]FM_MakeSignedData [14:08:44]SAM_PROTO_SignData [14:08:44]wFMCommunicate request_size=4 [14:08:44]MH_SAM_APDU [14:08:44]CAPDU: 80 0D 01 02 [14:08:44]Write to MH i2c: E2 08 00 7A 00 80 0D 01 02 00 00 00 00 F3 [14:08:44]Write i2c OK [14:08:44]MH_I2C_Read... [14:08:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:44]Read from MH i2c: E2 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 03 00 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 03 00 7A 00 00 90 00 EE [14:08:44]RAPDU: 90 00 [14:08:44]wFMCommunicate OK [14:08:44]wFMCommunicate request_size=255 [14:08:44]MH_SAM_APDU [14:08:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 EB 68 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1B 14 01 00 35 04 06 00 EB ED 92 A8 [14:08:44]Write to MH i2c: E2 02 01 7B 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 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 EB 68 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1B 14 01 00 35 04 06 00 EB ED 92 A8 00 00 31 [14:08:44]Write i2c OK [14:08:44]MH_I2C_Read... [14:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:44]Read from MH i2c: E2 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 03 00 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [14:08:44]RAPDU: 90 00 [14:08:44]wFMCommunicate OK [14:08:44]wFMCommunicate request_size=7 [14:08:44]MH_SAM_APDU [14:08:44]CAPDU: 80 0D 02 02 02 6E E6 [14:08:44]Write to MH i2c: E2 0A 00 7C 00 80 0D 02 02 02 00 6E E6 00 00 4E [14:08:44]Write i2c OK [14:08:44]MH_I2C_Read... [14:08:44]OFD Sender: No OFD packet to send [14:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:44]Read from MH i2c: E2 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 03 00 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 03 00 7C 00 00 90 00 F0 [14:08:44]RAPDU: 90 00 [14:08:44]wFMCommunicate OK [14:08:44]wFMCommunicate request_size=4 [14:08:44]MH_SAM_APDU [14:08:44]CAPDU: 80 0D 03 02 [14:08:44]Write to MH i2c: E2 08 00 7D 00 80 0D 03 02 00 00 00 00 F8 [14:08:44]Write i2c OK [14:08:44]MH_I2C_Read... [14:08:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:44]Read from MH i2c: E2 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 0B 00 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 0B 00 7D 00 00 56 0C CA 19 EC C7 2A BC 90 00 D7 [14:08:44]RAPDU: 56 0C CA 19 EC C7 2A BC 90 00 [14:08:44]wFMCommunicate OK [14:08:44]SAM_PROTO_SignData done [14:08:44]FM_MakeSignedData done [14:08:44]CreateOFDProtocolMessage [14:08:44]wFMCommunicate request_size=4 [14:08:44]MH_SAM_APDU [14:08:44]CAPDU: 80 11 00 00 [14:08:44]Write to MH i2c: E2 08 00 7E 00 80 11 00 00 00 00 00 00 F8 [14:08:44]Write i2c OK [14:08:44]MH_I2C_Read... [14:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:44]Read from MH i2c: E2 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 17 00 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 17 00 7E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 4D [14:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:08:44]wFMCommunicate OK [14:08:44]CreateOFDProtocolMessage done [14:08:44]OFDSenderStorePacket 70683 [14:08:44]StoreOFDPacket docnum=70683 [14:08:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 10 68 04 01 7E 6B 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 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 EB 68 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1B 14 01 00 35 04 06 00 EB ED 92 A8 6E E6 56 0C CA 19 EC C7 2A BC [14:08:44]CheckFolder [14:08:44]dirname=/storage/ofd_packets [14:08:44]CheckFolder done [14:08:44]ProducePacketName [14:08:44]name=ofd_packets/00070683 [14:08:44]NVStorageSaveData ofd_packets/00070683 [14:08:44]File name is /storage/ofd_packets/00070683 [14:08:44]Write 298 bytes [14:08:44]NVStorageSaveData done [14:08:44]OFDSenderStorePacket done [14:08:44]KKMCreateOFDPacket done [14:08:44]NVStorageSaveData kkm_last_timestamp [14:08:44]File name is /storage/kkm_last_timestamp [14:08:44]Write 4 bytes [14:08:44]NVStorageSaveData done [14:08:44]ExternCall_PrintAddStr [14:08:44]wPrintStart [14:08:44]Write to MH i2c: 01 00 00 7F 00 7F [14:08:44]Write i2c OK [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: 01 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: 01 07 00 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: 01 07 00 7F 00 00 00 00 00 00 FF 0F 94 [14:08:44]RasterBufferAndPrint [14:08:44]line Счет N : (1)141143 [14:08:44]line ИÐÐ: 02508201610067 [14:08:44]line Контрольно-КаÑÑовый Чек [14:08:44]line ПРОДÐЖР[14:08:44]line ТРК (МРК, ГÐК) : 44 [14:08:44]line Товар: 2710194210 [14:08:44]line ДТ-К-5 [14:08:44]line 6.730 * 74.40 [14:08:44]line = 500.71 [14:08:44]line ÐДС 12% ÐСП 1% [14:08:44]line > о реализуемом товаре [14:08:44]line ИТОГО: 500.71 [14:08:44]line ÐСП 1% : 4.43 [14:08:44]line ÐДС 12% : 53.17 [14:08:44]line Ðаличными: 0.00 [14:08:44]line Безнал.: 500.71 [14:08:44]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [14:08:44]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [14:08:44]line СÐО: Общий режим [14:08:44]line Чек 37 13.08.2024 14:08 [14:08:44]line Смена: 466 ФФД: 1.0 [14:08:44]line ЗÐМ: 0300000140 [14:08:44]line РÐМ: 0000000000090913 [14:08:44]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [14:08:44]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [14:08:44]line ФМ: 0000000000874915 [14:08:44]line ФД: 70683 [14:08:44]line ФПД: 259405600288486 [14:08:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T140843&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70683&fm=259405600288486&tin=02508201610067®Number=0000000000090913&sum=50071 [14:08:45]written 0, free lines is 4095 [14:08:45]OFD Sender: Processing packet 70683 [packets to send 67, broken 66] [14:08:45]ProducePacketName [14:08:45]name=ofd_packets/00070683 [14:08:45]OFD Sender: To server: ‡•öpG, [14:08:45]CommunicateWithHost lk.salyk.kg:30040 [14:08:45]ConnectInit lk.salyk.kg [14:08:45]Connected sock=10 [14:08: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 39 31 35 0C 01 00 00 10 68 04 01 7E 6B 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 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 EB 68 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1B 14 01 00 35 04 06 00 EB ED 92 A8 6E E6 56 0C CA 19 EC C7 2A BC [14:08:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 16 79 47 00 EF 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1B 14 01 00 F4 03 04 00 D6 0F BB 66 B6 04 01 00 00 A7 63 4A 41 52 52 FD 0E [14:08:45]CommunicateWithHost err = 0 [14:08:45]CheckOFDResponse [14:08:45]1017 (14) - 77093643461234 [14:08:45]1041 (16) - 0000000000874915 [14:08:45]1040 (4) - 70683 [14:08:45]1012 (4) - 13.08.2024 07:48 [14:08:45]1206 (1) - 0 [14:08:45]OFD Sender: Remove packet 70683 [14:08:45]ProducePacketName [14:08:45]name=ofd_packets/00070683 [14:08:45]NVStorageDeleteData [14:08:45]Write to MH i2c: 01 00 00 A9 00 A9 [14:08:45]Write i2c OK [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: 01 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: 01 07 00 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 EF 0C AB [14:08:45]RasterBufferAndPrint [14:08:45]line [14:08:45]line [14:08:45]line [14:08:45]line [14:08:45]line [14:08:45]written 0, free lines is 3317 [14:08:45]MH_Cut [14:08:45]Write to MH i2c: D1 01 00 B0 00 01 82 [14:08:45]Write i2c OK [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: D1 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: D1 01 00 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: D1 01 00 B0 00 00 81 [14:08:45]Write to MH i2c: 01 00 00 B1 00 B1 [14:08:45]Write i2c OK [14:08:45]MH_I2C_Read... [14:08:45]OFD Sender: No OFD packet to send [14:08:46]*** Cut start [14:08:46]*** Purtial cut [14:08:46]*** CUTSNS_PIN = 0 [14:08:46]*** Stage 1: CUTSNS_PIN = 1 [14:08:48]Read from MH i2c: 01 [14:08:48]MH_I2C_Read... [14:08:48]*** Stop cut motor [14:08:48]*** Cut end [14:08:48]Read from MH i2c: 01 07 00 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: 01 07 00 B1 00 00 00 00 00 00 FF 0F C6 [14:08:48]process_action close_receipt done [14:08:48]requested_data is exist [14:08:48]produce_requested_data [14:08:48]requested_item fm.sn is exist - process it [14:08:48]wFMCommunicate request_size=4 [14:08:48]MH_SAM_APDU [14:08:48]CAPDU: 80 11 00 00 [14:08:48]Write to MH i2c: E2 08 00 B2 00 80 11 00 00 00 00 00 00 2C [14:08:48]Write i2c OK [14:08:48]MH_I2C_Read... [14:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:48]Read from MH i2c: E2 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 17 00 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 17 00 B2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 81 [14:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:08:48]wFMCommunicate OK [14:08:48]requested_item fd.num is exist - process it [14:08:48]SAM_PROTO_GetFieldsCounters [14:08:48]wFMCommunicate request_size=4 [14:08:48]MH_SAM_APDU [14:08:48]CAPDU: 80 13 00 00 [14:08:48]Write to MH i2c: E2 08 00 B3 00 80 13 00 00 00 00 00 00 2F [14:08:48]Write i2c OK [14:08:48]MH_I2C_Read... [14:08:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:48]Read from MH i2c: E2 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 62 00 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 62 00 B3 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 1B 14 01 00 0E 04 04 00 D2 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 C1 [14:08: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 1B 14 01 00 0E 04 04 00 D2 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 [14:08:48]wFMCommunicate OK [14:08:48]SAM_PROTO_GetFieldsCounters done [14:08:48]requested_item shift.num is exist - process it [14:08:48]requested_item shift.opened is exist - process it [14:08:48]req_shift_opened [14:08:48]FM_GetShiftState [14:08:48]SAM_PROTO_GetShiftState [14:08:48]wFMCommunicate request_size=4 [14:08:48]MH_SAM_APDU [14:08:48]CAPDU: 80 13 01 00 [14:08:48]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [14:08:48]Write i2c OK [14:08:48]MH_I2C_Read... [14:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:48]Read from MH i2c: E2 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 0E 00 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 A0 [14:08:48]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [14:08:48]wFMCommunicate OK [14:08:48]SAM_PROTO_GetShiftState done [14:08:48]FM_GetShiftState done [14:08:48]req_shift_opened done [14:08:48]requested_item shift.open_date is exist - process it [14:08:48]req_shift_open_date [14:08:48]req_shift_open_date done [14:08:48]produce_requested_data done [14:08:48]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70683,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [14:08:48]process_action_free close_receipt [14:08:48]json_value_free [14:08:48]json_value_free done [14:08:48]process_json_proto returns [14:08:48]Send response to host [14:08:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70683,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [14:08:48]free response buf [14:08:48]execute_script done [14:08:48]execute_script returns [14:08:48]free content buf [14:08:48]Sock 7.Close socket [14:08:48]Sock 7.Thread stoped [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:50]OFD Sender: No OFD packet to send [14:09:55]OFD Sender: No OFD packet to send [14:10:00]OFD Sender: No OFD packet to send [14:10:05]OFD Sender: No OFD packet to send [14:10:10]OFD Sender: No OFD packet to send [14:10:15]OFD Sender: No OFD packet to send [14:10:20]OFD Sender: No OFD packet to send [14:10:25]OFD Sender: No OFD packet to send [14:10:30]OFD Sender: No OFD packet to send [14:10:35]OFD Sender: No OFD packet to send [14:10:40]OFD Sender: No OFD packet to send [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:05]OFD Sender: No OFD packet to send [14:11:10]OFD Sender: No OFD packet to send [14:11:15]OFD Sender: No OFD packet to send [14:11:20]OFD Sender: No OFD packet to send [14:11:25]OFD Sender: No OFD packet to send [14:11:30]OFD Sender: No OFD packet to send [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:57]OFD Sender: No OFD packet to send [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:30]accept exits with 9 [14:36:30]New connection [14:36:30]New thread 3066928484 created [14:36:30]Thread 3066785124 joined [14:36:30]Waiting for new connection... [14:36:30] Sock 9.Parse request [14:36:30]Sock 9.Check first char [14:36:30]Sock 9.First char is OK [14:36:30]request: POST /json_proto HTTP/1.0 [14:36:30]Method: POST [14:36:30]URL: /json_proto [14:36:30]Method is POST - this is cgi request [14:36:30]url: /json_proto [14:36:30]query_string will be loaded in cgi processing [14:36:30]execute_cgi json_proto POST (null) [14:36:30]execute_cgi path=json_proto method=POST [14:36:30]POST find Content-Length [14:36:30]Host: 172.17.58.67:8080 [14:36:30]Content-Length: 1207 [14:36:30]Content-Type: application/json [14:36:30] [14:36:30]POST finish read [14:36:30]Found Content-Length = 1207 [14:36:30]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141144\u000A13.08.2024 13:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.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\u000A43209\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:30]execute_script... [14:36:30]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141144\u000A13.08.2024 13:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.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\u000A43209\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:30]POST & json_proto [14:36:30]process_json_proto [14:36:30]json parsed OK: [14:36:30]protocol is kg_v1.0 [14:36:30]action value=print_text [14:36:30]process_action print_text [14:36:30]cmd_print_text [14:36:30]ExternCall_PrintAddStr [14:36:30]wPrintStart [14:36:30]Write to MH i2c: 01 00 00 B5 00 B5 [14:36:30]Write i2c OK [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: 01 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: 01 07 00 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: 01 07 00 B5 00 00 00 00 00 00 FF 0F CA [14:36:30]RasterBufferAndPrint [14:36:30]line *****ТОВÐРÐЫЙ ЧЕК***** [14:36:30]line ÐЗС 39 [14:36:30]line Партнер нефть [14:36:30]line 02508201610067 [14:36:30]line КаÑÑир : ОваÑбекова Л. [14:36:30]line Счет N : (1)141144 [14:36:30]line 13.08.2024 13:55 [14:36:30]line ПРОДÐЖР[14:36:30]line ТРК (МРК, ГÐК): 31 [14:36:30]line Вид ГСМ : 2710124130 [14:36:30]line Ðи-92-К-5 [14:36:30]line 20.000 x 65.90 [14:36:30]line ИТОГ: 1318.00 [14:36:30]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [14:36:30]line 43209 [14:36:30]line ______________________ [14:36:30]line (подпиÑÑŒ) [14:36:30]written 0, free lines is 4095 [14:36:30]Write to MH i2c: 01 00 00 C9 00 C9 [14:36:30]Write i2c OK [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: 01 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: 01 07 00 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: 01 07 00 C9 00 00 00 00 00 00 10 0E EE [14:36:30]RasterBufferAndPrint [14:36:30]line [14:36:30]line [14:36:30]line [14:36:30]line [14:36:30]line [14:36:30]written 0, free lines is 3602 [14:36:30]MH_Cut [14:36:30]Write to MH i2c: D1 01 00 D0 00 01 A2 [14:36:30]Write i2c OK [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: D1 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: D1 01 00 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: D1 01 00 D0 00 00 A1 [14:36:30]Write to MH i2c: 01 00 00 D1 00 D1 [14:36:30]Write i2c OK [14:36:30]MH_I2C_Read... [14:36:30]*** Cut start [14:36:30]*** Purtial cut [14:36:30]*** Stage 1: CUTSNS_PIN = 1 [14:36:31]Read from MH i2c: 01 [14:36:31]MH_I2C_Read... [14:36:31]*** Stop cut motor [14:36:31]*** Cut end [14:36:31]Read from MH i2c: 01 07 00 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: 01 07 00 D1 00 00 00 00 00 00 FF 0F E6 [14:36:31]process_action print_text done [14:36:31]requested_data is exist [14:36:31]produce_requested_data [14:36:31]requested_item fm.sn is exist - process it [14:36:31]wFMCommunicate request_size=4 [14:36:31]MH_SAM_APDU [14:36:31]CAPDU: 80 11 00 00 [14:36:31]Write to MH i2c: E2 08 00 D2 00 80 11 00 00 00 00 00 00 4C [14:36:31]Write i2c OK [14:36:31]MH_I2C_Read... [14:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:31]Read from MH i2c: E2 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 17 00 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 17 00 D2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 A1 [14:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:36:31]wFMCommunicate OK [14:36:31]requested_item fd.num is exist - process it [14:36:31]SAM_PROTO_GetFieldsCounters [14:36:31]wFMCommunicate request_size=4 [14:36:31]MH_SAM_APDU [14:36:31]CAPDU: 80 13 00 00 [14:36:31]Write to MH i2c: E2 08 00 D3 00 80 13 00 00 00 00 00 00 4F [14:36:31]Write i2c OK [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 62 00 [14:36:31]MH_I2C_Read... [14:36:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:31]Read from MH i2c: E2 62 00 D3 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 1B 14 01 00 0E 04 04 00 D2 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 E1 [14: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 1B 14 01 00 0E 04 04 00 D2 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 [14:36:31]wFMCommunicate OK [14:36:31]SAM_PROTO_GetFieldsCounters done [14:36:31]requested_item shift.num is exist - process it [14:36:31]requested_item shift.opened is exist - process it [14:36:31]req_shift_opened [14:36:31]FM_GetShiftState [14:36:31]SAM_PROTO_GetShiftState [14:36:31]wFMCommunicate request_size=4 [14:36:31]MH_SAM_APDU [14:36:31]CAPDU: 80 13 01 00 [14:36:31]Write to MH i2c: E2 08 00 D4 00 80 13 01 00 00 00 00 00 51 [14:36:31]Write i2c OK [14:36:31]MH_I2C_Read... [14:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:31]*** FLAG_PRN_KEY set [14:36:31]int [14:36:31]Read from MH i2c: E2 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 0E 00 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 0E 00 D4 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 C0 [14:36:31]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [14:36:31]wFMCommunicate OK [14:36:31]SAM_PROTO_GetShiftState done [14:36:31]FM_GetShiftState done [14:36:31]req_shift_opened done [14:36:31]requested_item shift.open_date is exist - process it [14:36:31]req_shift_open_date [14:36:31]req_shift_open_date done [14:36:31]produce_requested_data done [14:36:31]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70683,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [14:36:31]process_action_free print_text [14:36:31]json_value_free [14:36:31]json_value_free done [14:36:31]process_json_proto returns [14:36:31]Send response to host [14:36:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70683,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [14:36:31]free response buf [14:36:31]execute_script done [14:36:31]execute_script returns [14:36:31]free content buf [14:36:31]Sock 9.Close socket [14:36:31]Sock 9.Thread stoped [14:36:31]Write to MH i2c: 01 00 00 D5 00 D5 [14:36:31]Write i2c OK [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: 01 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: 01 07 00 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: 01 07 00 D5 00 00 08 00 00 00 FF 0F F2 [14:36:31]state=0 [14:36:31]Key pressed [14:36:31]Feed [14:36:31]Write to MH i2c: D8 00 00 D6 00 AD [14:36:31]Write i2c OK [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: D8 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: D8 01 00 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: D8 01 00 D6 00 00 AE [14:36:31]int [14:36:31]Write to MH i2c: 01 00 00 D7 00 D7 [14:36:31]Write i2c OK [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: 01 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: 01 07 00 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: 01 07 00 D7 00 00 48 00 00 00 3C 00 62 [14:36:31]state=2 [14:36:31]Key pressed [14:36:31]int [14:36:31]Write to MH i2c: 01 00 00 D8 00 D8 [14:36:31]*** FLAG_PRN_KEY reset [14:36:31]Write i2c OK [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: 01 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: 01 07 00 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 FD 0F EB [14:36:31]state=2 [14:36:31]Stop feed [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46: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:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [14:49:43]OFD Sender: No OFD packet to send [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:49:58]OFD Sender: No OFD packet to send [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:13]OFD Sender: No OFD packet to send [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:33]OFD Sender: No OFD packet to send [14:50:38]OFD Sender: No OFD packet to send [14:50:43]OFD Sender: No OFD packet to send [14:50:48]OFD Sender: No OFD packet to send [14:50:53]OFD Sender: No OFD packet to send [14:50:58]OFD Sender: No OFD packet to send [14:51:03]OFD Sender: No OFD packet to send [14:51:08]OFD Sender: No OFD packet to send [14:51:13]OFD Sender: No OFD packet to send [14:51:18]OFD Sender: No OFD packet to send [14:51:21]accept exits with 7 [14:51:21]New connection [14:51:21]New thread 3066785124 created [14:51:21]Thread 3066928484 joined [14:51:21]Waiting for new connection... [14:51:21] Sock 7.Parse request [14:51:21]Sock 7.Check first char [14:51:21]Sock 7.First char is OK [14:51:21]request: POST /json_proto HTTP/1.0 [14:51:21]Method: POST [14:51:21]URL: /json_proto [14:51:21]Method is POST - this is cgi request [14:51:21]url: /json_proto [14:51:21]query_string will be loaded in cgi processing [14:51:21]execute_cgi json_proto POST (null) [14:51:21]execute_cgi path=json_proto method=POST [14:51:21]POST find Content-Length [14:51:21]Host: 172.17.58.67:8080 [14:51:21]Content-Length: 805 [14:51:21]Content-Type: application/json [14:51:21] [14:51:21]POST finish read [14:51:21]Found Content-Length = 805 [14:51:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.740, "sum" : 312.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 312.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:21]execute_script... [14:51:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.740, "sum" : 312.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 312.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:21]POST & json_proto [14:51:21]process_json_proto [14:51:21]json parsed OK: [14:51:21]protocol is kg_v1.0 [14:51:21]action value=close_receipt [14:51:21]process_action close_receipt [14:51:21]cmd_close_receipt [14:51:21]MH_GetDate [14:51:21]Write to MH i2c: F0 00 00 D9 00 C8 [14:51:21]Write i2c OK [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: F0 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: F0 09 00 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: F0 09 00 D9 00 00 EA 72 BB 66 94 51 63 64 FA [14:51:21]GetLastDocTimeStamp 1723558123 [14:51:21]current date 1723560682 [14:51:21]FM_GetShiftState [14:51:21]SAM_PROTO_GetShiftState [14:51:21]wFMCommunicate request_size=4 [14:51:21]MH_SAM_APDU [14:51:21]CAPDU: 80 13 01 00 [14:51:21]Write to MH i2c: E2 08 00 DA 00 80 13 01 00 00 00 00 00 57 [14:51:21]Write i2c OK [14:51:21]MH_I2C_Read... [14:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:21]Read from MH i2c: E2 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 0E 00 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 0E 00 DA 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 C6 [14:51:21]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [14:51:21]wFMCommunicate OK [14:51:21]SAM_PROTO_GetShiftState done [14:51:21]FM_GetShiftState done [14:51:21]opened in 1723509656 [14:51:21]opened+sec_in_day 1723596056 [14:51:21]quantity*price = 31236 [14:51:21]sum+1 = 31238 [14:51:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 312.37 ÐСП 1% : 2.76 ÐДС 12% : 33.17 Ðаличными: 0.00 Безнал.: 312.37 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 38 13.08.2024 14:51 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70684 ФПД: 27396431663832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T145122&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70684&fm=27396431663832&tin=02508201610067®Number=0000000000090913&sum=31237 [14:51:22]StoreToDocumentArchive [14:51:22]shift 466 fd 70684 [14:51:22]save to /storage/0466/doc_00070684 [14:51:22]save last doc name /storage/0466/doc_00070684 to /storage/kkm_last_doc_name [14:51:22]save OK [14:51:22]Clear old archive folders... [14:51:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:51:22]tlvbuf is 018B0220 [14:51:22]SAM_PROTO_ClearQueue [14:51:22]wFMCommunicate request_size=4 [14:51:22]MH_SAM_APDU [14:51:22]CAPDU: 80 09 00 00 [14:51:22]Write to MH i2c: E2 08 00 E7 00 80 09 00 00 00 00 00 00 59 [14:51:22]Write i2c OK [14:51:22]MH_I2C_Read... [14:51:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:22]Read from MH i2c: E2 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: E2 03 00 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: E2 03 00 E7 00 00 90 00 5B [14:51:22]RAPDU: 90 00 [14:51:22]wFMCommunicate OK [14:51:22]SAM_PROTO_ClearQueue done [14:51:22]KKMCreateOFDPacket [14:51:22]OFDProtocolAddRootSTLVToBuf [14:51:22]FM_MakeSignedData [14:51:22]FM_MakeSignedData [14:51:22]SAM_PROTO_SignData [14:51:22]wFMCommunicate request_size=4 [14:51:22]MH_SAM_APDU [14:51:22]CAPDU: 80 0D 01 02 [14:51:22]Write to MH i2c: E2 08 00 E8 00 80 0D 01 02 00 00 00 00 61 [14:51:22]Write i2c OK [14:51:22]MH_I2C_Read... [14:51:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:22]Read from MH i2c: E2 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: E2 03 00 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: E2 03 00 E8 00 00 90 00 5C [14:51:22]RAPDU: 90 00 [14:51:22]wFMCommunicate OK [14:51:22]wFMCommunicate request_size=255 [14:51:22]MH_SAM_APDU [14:51:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 12 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 05 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 7A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 EA 72 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1C 14 01 00 35 04 06 00 18 [14:51:22]Write to MH i2c: E2 02 01 E9 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 84 12 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 05 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 7A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 EA 72 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1C 14 01 00 35 04 06 00 18 00 00 29 [14:51:22]Write i2c OK [14:51:22]MH_I2C_Read... [14:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:22]Read from MH i2c: E2 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: E2 03 00 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: E2 03 00 E9 00 00 90 00 5D [14:51:22]RAPDU: 90 00 [14:51:22]wFMCommunicate OK [14:51:22]wFMCommunicate request_size=10 [14:51:22]MH_SAM_APDU [14:51:22]CAPDU: 80 0D 02 02 05 EA BA 93 D2 D8 [14:51:22]Write to MH i2c: E2 0D 00 EA 00 80 0D 02 02 05 00 EA BA 93 D2 D8 00 00 4F [14:51:22]Write i2c OK [14:51:22]MH_I2C_Read... [14:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:22]Read from MH i2c: E2 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: E2 03 00 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: E2 03 00 EA 00 00 90 00 5E [14:51:22]RAPDU: 90 00 [14:51:22]wFMCommunicate OK [14:51:22]wFMCommunicate request_size=4 [14:51:22]MH_SAM_APDU [14:51:22]CAPDU: 80 0D 03 02 [14:51:22]Write to MH i2c: E2 08 00 EB 00 80 0D 03 02 00 00 00 00 66 [14:51:22]Write i2c OK [14:51:22]MH_I2C_Read... [14:51:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:22]Read from MH i2c: E2 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: E2 0B 00 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: E2 0B 00 EB 00 00 FD BF 71 E7 0B 7B 75 9B 90 00 11 [14:51:22]RAPDU: FD BF 71 E7 0B 7B 75 9B 90 00 [14:51:22]wFMCommunicate OK [14:51:22]SAM_PROTO_SignData done [14:51:22]FM_MakeSignedData done [14:51:22]CreateOFDProtocolMessage [14:51:22]wFMCommunicate request_size=4 [14:51:22]MH_SAM_APDU [14:51:22]CAPDU: 80 11 00 00 [14:51:22]Write to MH i2c: E2 08 00 EC 00 80 11 00 00 00 00 00 00 66 [14:51:22]Write i2c OK [14:51:22]MH_I2C_Read... [14:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:22]Read from MH i2c: E2 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: E2 17 00 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: E2 17 00 EC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 BB [14:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:51:22]wFMCommunicate OK [14:51:22]CreateOFDProtocolMessage done [14:51:22]OFDSenderStorePacket 70684 [14:51:22]StoreOFDPacket docnum=70684 [14:51:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 2F 5E 07 01 2D D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 12 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 05 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 7A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 EA 72 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1C 14 01 00 35 04 06 00 18 EA BA 93 D2 D8 FD BF 71 E7 0B 7B 75 9B [14:51:22]CheckFolder [14:51:22]dirname=/storage/ofd_packets [14:51:22]CheckFolder done [14:51:22]ProducePacketName [14:51:22]name=ofd_packets/00070684 [14:51:22]NVStorageSaveData ofd_packets/00070684 [14:51:22]File name is /storage/ofd_packets/00070684 [14:51:22]Write 301 bytes [14:51:22]NVStorageSaveData done [14:51:22]OFDSenderStorePacket done [14:51:22]KKMCreateOFDPacket done [14:51:22]NVStorageSaveData kkm_last_timestamp [14:51:22]File name is /storage/kkm_last_timestamp [14:51:22]Write 4 bytes [14:51:22]NVStorageSaveData done [14:51:22]ExternCall_PrintAddStr [14:51:22]wPrintStart [14:51:22]Write to MH i2c: 01 00 00 ED 00 ED [14:51:22]Write i2c OK [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: 01 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: 01 07 00 [14:51:22]MH_I2C_Read... [14:51:22]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 FF 0F 02 [14:51:22]RasterBufferAndPrint [14:51:22]line Счет N : (1)141146 [14:51:22]line ИÐÐ: 02508201610067 [14:51:22]line Контрольно-КаÑÑовый Чек [14:51:22]line ПРОДÐЖР[14:51:22]line ТРК (МРК, ГÐК) : 31 [14:51:22]line Товар: 2710124130 [14:51:22]line Ðи-92-К-5 [14:51:22]line 4.740 * 65.90 [14:51:22]line = 312.37 [14:51:22]line ÐДС 12% ÐСП 1% [14:51:22]line > о реализуемом товаре [14:51:22]line ИТОГО: 312.37 [14:51:22]line ÐСП 1% : 2.76 [14:51:22]line ÐДС 12% : 33.17 [14:51:22]line Ðаличными: 0.00 [14:51:22]line Безнал.: 312.37 [14:51:22]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [14:51:22]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [14:51:22]line СÐО: Общий режим [14:51:22]line Чек 38 13.08.2024 14:51 [14:51:22]line Смена: 466 ФФД: 1.0 [14:51:22]line ЗÐМ: 0300000140 [14:51:22]line РÐМ: 0000000000090913 [14:51:22]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [14:51:22]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [14:51:22]line ФМ: 0000000000874915 [14:51:22]line ФД: 70684 [14:51:22]line ФПД: 27396431663832 [14:51:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T145122&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70684&fm=27396431663832&tin=02508201610067®Number=0000000000090913&sum=31237 [14:51:23]OFD Sender: Processing packet 70684 [packets to send 67, broken 66] [14:51:23]ProducePacketName [14:51:23]name=ofd_packets/00070684 [14:51:23]OFD Sender: To server: ‡•öpG, [14:51:23]CommunicateWithHost lk.salyk.kg:30040 [14:51:23]ConnectInit lk.salyk.kg [14:51:23]written 0, free lines is 4095 [14:51:23]Connected sock=10 [14:51:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 2F 5E 07 01 2D D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 12 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 05 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 7A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 EA 72 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1C 14 01 00 35 04 06 00 18 EA BA 93 D2 D8 FD BF 71 E7 0B 7B 75 9B [14:51:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 C7 D3 47 00 FE 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 39 31 35 10 04 04 00 1C 14 01 00 F4 03 04 00 D4 19 BB 66 B6 04 01 00 00 99 DF 9F AE E2 A2 68 80 [14:51:23]CommunicateWithHost err = 0 [14:51:23]CheckOFDResponse [14:51:23]1017 (14) - 77093643461234 [14:51:23]1041 (16) - 0000000000874915 [14:51:23]1040 (4) - 70684 [14:51:23]1012 (4) - 13.08.2024 08:31 [14:51:23]1206 (1) - 0 [14:51:23]OFD Sender: Remove packet 70684 [14:51:23]ProducePacketName [14:51:23]name=ofd_packets/00070684 [14:51:23]NVStorageDeleteData [14:51:23]Write to MH i2c: 01 00 00 17 01 18 [14:51:23]Write i2c OK [14:51:23]MH_I2C_Read... [14:51:23]Read from MH i2c: 01 [14:51:23]MH_I2C_Read... [14:51:23]Read from MH i2c: 01 07 00 [14:51:23]MH_I2C_Read... [14:51:23]Read from MH i2c: 01 07 00 17 01 00 00 00 00 00 FB 0C 26 [14:51:23]RasterBufferAndPrint [14:51:23]line [14:51:23]line [14:51:23]line [14:51:23]line [14:51:23]line [14:51:23]written 0, free lines is 3329 [14:51:23]MH_Cut [14:51:23]Write to MH i2c: D1 01 00 1E 01 01 F1 [14:51:23]Write i2c OK [14:51:23]MH_I2C_Read... [14:51:23]Read from MH i2c: D1 [14:51:23]MH_I2C_Read... [14:51:23]Read from MH i2c: D1 01 00 [14:51:23]MH_I2C_Read... [14:51:23]Read from MH i2c: D1 01 00 1E 01 00 F0 [14:51:23]Write to MH i2c: 01 00 00 1F 01 20 [14:51:23]Write i2c OK [14:51:23]MH_I2C_Read... [14:51:23]OFD Sender: No OFD packet to send [14:51:24]*** Cut start [14:51:24]*** Purtial cut [14:51:24]*** CUTSNS_PIN = 0 [14:51:24]*** Stage 1: CUTSNS_PIN = 1 [14:51:26]Read from MH i2c: 01 [14:51:26]MH_I2C_Read... [14:51:26]*** Stop cut motor [14:51:26]*** Cut end [14:51:26]Read from MH i2c: 01 07 00 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: 01 07 00 1F 01 00 00 00 00 00 FF 0F 35 [14:51:26]process_action close_receipt done [14:51:26]requested_data is exist [14:51:26]produce_requested_data [14:51:26]requested_item fm.sn is exist - process it [14:51:26]wFMCommunicate request_size=4 [14:51:26]MH_SAM_APDU [14:51:26]CAPDU: 80 11 00 00 [14:51:26]Write to MH i2c: E2 08 00 20 01 80 11 00 00 00 00 00 00 9B [14:51:26]Write i2c OK [14:51:26]MH_I2C_Read... [14:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:26]Read from MH i2c: E2 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: E2 17 00 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: E2 17 00 20 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 F0 [14:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:51:26]wFMCommunicate OK [14:51:26]requested_item fd.num is exist - process it [14:51:26]SAM_PROTO_GetFieldsCounters [14:51:26]wFMCommunicate request_size=4 [14:51:26]MH_SAM_APDU [14:51:26]CAPDU: 80 13 00 00 [14:51:26]Write to MH i2c: E2 08 00 21 01 80 13 00 00 00 00 00 00 9E [14:51:26]Write i2c OK [14:51:26]MH_I2C_Read... [14:51:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:26]Read from MH i2c: E2 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: E2 62 00 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: E2 62 00 21 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 1C 14 01 00 0E 04 04 00 D2 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 34 [14:51: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 1C 14 01 00 0E 04 04 00 D2 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 [14:51:26]wFMCommunicate OK [14:51:26]SAM_PROTO_GetFieldsCounters done [14:51:26]requested_item shift.num is exist - process it [14:51:26]requested_item shift.opened is exist - process it [14:51:26]req_shift_opened [14:51:26]FM_GetShiftState [14:51:26]SAM_PROTO_GetShiftState [14:51:26]wFMCommunicate request_size=4 [14:51:26]MH_SAM_APDU [14:51:26]CAPDU: 80 13 01 00 [14:51:26]Write to MH i2c: E2 08 00 22 01 80 13 01 00 00 00 00 00 A0 [14:51:26]Write i2c OK [14:51:26]MH_I2C_Read... [14:51:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:26]Read from MH i2c: E2 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: E2 0E 00 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: E2 0E 00 22 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 0F [14:51:26]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [14:51:26]wFMCommunicate OK [14:51:26]SAM_PROTO_GetShiftState done [14:51:26]FM_GetShiftState done [14:51:26]req_shift_opened done [14:51:26]requested_item shift.open_date is exist - process it [14:51:26]req_shift_open_date [14:51:26]req_shift_open_date done [14:51:26]produce_requested_data done [14:51:26]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70684,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [14:51:26]process_action_free close_receipt [14:51:26]json_value_free [14:51:26]json_value_free done [14:51:26]process_json_proto returns [14:51:26]Send response to host [14:51:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70684,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [14:51:26]free response buf [14:51:26]execute_script done [14:51:26]execute_script returns [14:51:26]free content buf [14:51:26]Sock 7.Close socket [14:51:26]Sock 7.Thread stoped [14:51:28]OFD Sender: No OFD packet to send [14:51:33]OFD Sender: No OFD packet to send [14:51:38]accept exits with 9 [14:51:38]New connection [14:51:38]New thread 3066928484 created [14:51:38]Thread 3066785124 joined [14:51:38]Waiting for new connection... [14:51:38] Sock 9.Parse request [14:51:38]Sock 9.Check first char [14:51:38]Sock 9.First char is OK [14:51:38]request: POST /json_proto HTTP/1.0 [14:51:38]Method: POST [14:51:38]URL: /json_proto [14:51:38]Method is POST - this is cgi request [14:51:38]url: /json_proto [14:51:38]query_string will be loaded in cgi processing [14:51:38]execute_cgi json_proto POST (null) [14:51:38]execute_cgi path=json_proto method=POST [14:51:38]POST find Content-Length [14:51:38]Host: 172.17.58.67:8080 [14:51:38]Content-Length: 808 [14:51:38]Content-Type: application/json [14:51:38] [14:51:38]POST finish read [14:51:38]Found Content-Length = 808 [14:51:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 42.490, "sum" : 2800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2800.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:38]execute_script... [14:51: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)141145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 42.490, "sum" : 2800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2800.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:38]POST & json_proto [14:51:38]process_json_proto [14:51:38]json parsed OK: [14:51:38]protocol is kg_v1.0 [14:51:38]action value=close_receipt [14:51:38]process_action close_receipt [14:51:38]cmd_close_receipt [14:51:38]MH_GetDate [14:51:38]Write to MH i2c: F0 00 00 23 01 13 [14:51:38]Write i2c OK [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: F0 [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: F0 09 00 [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: F0 09 00 23 01 00 FB 72 BB 66 94 51 63 64 56 [14:51:38]GetLastDocTimeStamp 1723560682 [14:51:38]current date 1723560699 [14:51:38]FM_GetShiftState [14:51:38]SAM_PROTO_GetShiftState [14:51:38]wFMCommunicate request_size=4 [14:51:38]MH_SAM_APDU [14:51:38]CAPDU: 80 13 01 00 [14:51:38]Write to MH i2c: E2 08 00 24 01 80 13 01 00 00 00 00 00 A2 [14:51:38]Write i2c OK [14:51:38]MH_I2C_Read... [14:51:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:38]Read from MH i2c: E2 [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: E2 0E 00 [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: E2 0E 00 24 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 11 [14:51:38]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [14:51:38]wFMCommunicate OK [14:51:38]SAM_PROTO_GetShiftState done [14:51:38]FM_GetShiftState done [14:51:38]opened in 1723509656 [14:51:38]opened+sec_in_day 1723596056 [14:51:38]quantity*price = 280009 [14:51:38]sum+1 = 280010 [14:51:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2800.09 ÐСП 1% : 24.78 ÐДС 12% : 297.35 Ðаличными: 0.00 Безнал.: 2800.09 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 39 13.08.2024 14:51 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70685 ФПД: 74283575529929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T145139&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70685&fm=74283575529929&tin=02508201610067®Number=0000000000090913&sum=280009 [14:51:39]StoreToDocumentArchive [14:51:39]shift 466 fd 70685 [14:51:39]save to /storage/0466/doc_00070685 [14:51:39]save last doc name /storage/0466/doc_00070685 to /storage/kkm_last_doc_name [14:51:39]save OK [14:51:39]Clear old archive folders... [14:51:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:51:39]tlvbuf is 018D0FD0 [14:51:39]SAM_PROTO_ClearQueue [14:51:39]wFMCommunicate request_size=4 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 09 00 00 [14:51:39]Write to MH i2c: E2 08 00 31 01 80 09 00 00 00 00 00 00 A4 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 31 01 00 90 00 A6 [14:51:39]RAPDU: 90 00 [14:51:39]wFMCommunicate OK [14:51:39]SAM_PROTO_ClearQueue done [14:51:39]KKMCreateOFDPacket [14:51:39]OFDProtocolAddRootSTLVToBuf [14:51:39]FM_MakeSignedData [14:51:39]FM_MakeSignedData [14:51:39]SAM_PROTO_SignData [14:51:39]wFMCommunicate request_size=4 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 0D 01 02 [14:51:39]Write to MH i2c: E2 08 00 32 01 80 0D 01 02 00 00 00 00 AC [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 32 01 00 90 00 A7 [14:51:39]RAPDU: 90 00 [14:51:39]wFMCommunicate OK [14:51:39]wFMCommunicate request_size=255 [14:51:39]MH_SAM_APDU [14:51: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 FA A5 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C9 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 45 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 FB 72 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1D 14 01 00 35 04 06 00 43 [14:51:39]Write to MH i2c: E2 02 01 33 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 FA A5 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C9 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 45 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 FB 72 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1D 14 01 00 35 04 06 00 43 00 00 B0 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 33 01 00 90 00 A8 [14:51:39]RAPDU: 90 00 [14:51:39]wFMCommunicate OK [14:51:39]wFMCommunicate request_size=10 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 0D 02 02 05 8F 7E 21 D1 C9 [14:51:39]Write to MH i2c: E2 0D 00 34 01 80 0D 02 02 05 00 8F 7E 21 D1 C9 00 00 81 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 34 01 00 90 00 A9 [14:51:39]RAPDU: 90 00 [14:51:39]wFMCommunicate OK [14:51:39]wFMCommunicate request_size=4 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 0D 03 02 [14:51:39]Write to MH i2c: E2 08 00 35 01 80 0D 03 02 00 00 00 00 B1 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 0B 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 0B 00 35 01 00 ED BD 15 3E AD 2C F5 2F 90 00 AC [14:51:39]RAPDU: ED BD 15 3E AD 2C F5 2F 90 00 [14:51:39]wFMCommunicate OK [14:51:39]SAM_PROTO_SignData done [14:51:39]FM_MakeSignedData done [14:51:39]CreateOFDProtocolMessage [14:51:39]wFMCommunicate request_size=4 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 11 00 00 [14:51:39]Write to MH i2c: E2 08 00 36 01 80 11 00 00 00 00 00 00 B1 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 17 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 17 00 36 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 06 [14:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:51:39]wFMCommunicate OK [14:51:39]CreateOFDProtocolMessage done [14:51:39]OFDSenderStorePacket 70685 [14:51:39]StoreOFDPacket docnum=70685 [14:51:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 6C 28 07 01 26 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA A5 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C9 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 45 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 FB 72 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1D 14 01 00 35 04 06 00 43 8F 7E 21 D1 C9 ED BD 15 3E AD 2C F5 2F [14:51:39]CheckFolder [14:51:39]dirname=/storage/ofd_packets [14:51:39]CheckFolder done [14:51:39]ProducePacketName [14:51:39]name=ofd_packets/00070685 [14:51:39]NVStorageSaveData ofd_packets/00070685 [14:51:39]File name is /storage/ofd_packets/00070685 [14:51:39]Write 301 bytes [14:51:39]NVStorageSaveData done [14:51:39]OFDSenderStorePacket done [14:51:39]KKMCreateOFDPacket done [14:51:39]NVStorageSaveData kkm_last_timestamp [14:51:39]File name is /storage/kkm_last_timestamp [14:51:39]Write 4 bytes [14:51:39]NVStorageSaveData done [14:51:39]ExternCall_PrintAddStr [14:51:39]wPrintStart [14:51:39]Write to MH i2c: 01 00 00 37 01 38 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: 01 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: 01 07 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: 01 07 00 37 01 00 00 00 00 00 FF 0F 4D [14:51:39]RasterBufferAndPrint [14:51:39]line Счет N : (1)141145 [14:51:39]line ИÐÐ: 02508201610067 [14:51:39]line Контрольно-КаÑÑовый Чек [14:51:39]line ПРОДÐЖР[14:51:39]line ТРК (МРК, ГÐК) : 41 [14:51:39]line Товар: 2710124130 [14:51:39]line Ðи-92-К-5 [14:51:39]line 42.490 * 65.90 [14:51:39]line = 2800.09 [14:51:39]line ÐДС 12% ÐСП 1% [14:51:39]line > о реализуемом товаре [14:51:39]line ИТОГО: 2800.09 [14:51:39]line ÐСП 1% : 24.78 [14:51:39]line ÐДС 12% : 297.35 [14:51:39]line Ðаличными: 0.00 [14:51:39]line Безнал.: 2800.09 [14:51:39]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [14:51:39]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [14:51:39]line СÐО: Общий режим [14:51:39]line Чек 39 13.08.2024 14:51 [14:51:39]line Смена: 466 ФФД: 1.0 [14:51:39]line ЗÐМ: 0300000140 [14:51:39]line РÐМ: 0000000000090913 [14:51:39]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [14:51:39]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [14:51:39]line ФМ: 0000000000874915 [14:51:39]line ФД: 70685 [14:51:39]line ФПД: 74283575529929 [14:51:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T145139&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70685&fm=74283575529929&tin=02508201610067®Number=0000000000090913&sum=280009 [14:51:40]written 0, free lines is 4095 [14:51:40]OFD Sender: Processing packet 70685 [packets to send 67, broken 66] [14:51:40]ProducePacketName [14:51:40]name=ofd_packets/00070685 [14:51:40]OFD Sender: To server: ‡•öpG, [14:51:40]CommunicateWithHost lk.salyk.kg:30040 [14:51:40]ConnectInit lk.salyk.kg [14:51:40]Connected sock=10 [14:51: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 39 31 35 0F 01 00 00 6C 28 07 01 26 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA A5 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C9 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 45 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 FB 72 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1D 14 01 00 35 04 06 00 43 8F 7E 21 D1 C9 ED BD 15 3E AD 2C F5 2F [14:51:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 46 8F 47 00 1B 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 31 35 10 04 04 00 1D 14 01 00 F4 03 04 00 E5 19 BB 66 B6 04 01 00 00 02 14 E3 62 5B 7B FC F7 [14:51:40]CommunicateWithHost err = 0 [14:51:40]CheckOFDResponse [14:51:40]1017 (14) - 77093643461234 [14:51:40]1041 (16) - 0000000000874915 [14:51:40]1040 (4) - 70685 [14:51:40]1012 (4) - 13.08.2024 08:31 [14:51:40]1206 (1) - 0 [14:51:40]OFD Sender: Remove packet 70685 [14:51:40]ProducePacketName [14:51:40]name=ofd_packets/00070685 [14:51:40]NVStorageDeleteData [14:51:40]Write to MH i2c: 01 00 00 61 01 62 [14:51:40]Write i2c OK [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: 01 [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: 01 07 00 [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: 01 07 00 61 01 00 00 00 00 00 0D 0D 83 [14:51:40]RasterBufferAndPrint [14:51:40]line [14:51:40]line [14:51:40]line [14:51:40]line [14:51:40]line [14:51:40]written 0, free lines is 3350 [14:51:40]MH_Cut [14:51:40]Write to MH i2c: D1 01 00 68 01 01 3B [14:51:40]Write i2c OK [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: D1 [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: D1 01 00 [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: D1 01 00 68 01 00 3A [14:51:40]Write to MH i2c: 01 00 00 69 01 6A [14:51:40]Write i2c OK [14:51:40]MH_I2C_Read... [14:51:40]OFD Sender: No OFD packet to send [14:51:41]*** Cut start [14:51:41]*** Purtial cut [14:51:41]*** Stage 1: CUTSNS_PIN = 1 [14:51:41]Read from MH i2c: 01 [14:51:41]MH_I2C_Read... [14:51:41]*** Stop cut motor [14:51:41]*** Cut end [14:51:41]Read from MH i2c: 01 07 00 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: 01 07 00 69 01 00 00 00 00 00 FF 0F 7F [14:51:41]process_action close_receipt done [14:51:41]requested_data is exist [14:51:41]produce_requested_data [14:51:41]requested_item fm.sn is exist - process it [14:51:41]wFMCommunicate request_size=4 [14:51:41]MH_SAM_APDU [14:51:41]CAPDU: 80 11 00 00 [14:51:41]Write to MH i2c: E2 08 00 6A 01 80 11 00 00 00 00 00 00 E5 [14:51:41]Write i2c OK [14:51:41]MH_I2C_Read... [14:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:41]Read from MH i2c: E2 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: E2 17 00 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: E2 17 00 6A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 3A [14:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:51:41]wFMCommunicate OK [14:51:41]requested_item fd.num is exist - process it [14:51:41]SAM_PROTO_GetFieldsCounters [14:51:41]wFMCommunicate request_size=4 [14:51:41]MH_SAM_APDU [14:51:41]CAPDU: 80 13 00 00 [14:51:41]Write to MH i2c: E2 08 00 6B 01 80 13 00 00 00 00 00 00 E8 [14:51:41]Write i2c OK [14:51:41]MH_I2C_Read... [14:51:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:41]Read from MH i2c: E2 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: E2 62 00 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: E2 62 00 6B 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 1D 14 01 00 0E 04 04 00 D2 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 82 [14:51: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 1D 14 01 00 0E 04 04 00 D2 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 [14:51:41]wFMCommunicate OK [14:51:41]SAM_PROTO_GetFieldsCounters done [14:51:41]requested_item shift.num is exist - process it [14:51:41]requested_item shift.opened is exist - process it [14:51:41]req_shift_opened [14:51:41]FM_GetShiftState [14:51:41]SAM_PROTO_GetShiftState [14:51:41]wFMCommunicate request_size=4 [14:51:41]MH_SAM_APDU [14:51:41]CAPDU: 80 13 01 00 [14:51:41]Write to MH i2c: E2 08 00 6C 01 80 13 01 00 00 00 00 00 EA [14:51:41]Write i2c OK [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: E2 [14:51:41]MH_I2C_Read... [14:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:41]Read from MH i2c: E2 0E 00 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: E2 0E 00 6C 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 59 [14:51:41]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [14:51:41]wFMCommunicate OK [14:51:41]SAM_PROTO_GetShiftState done [14:51:41]FM_GetShiftState done [14:51:41]req_shift_opened done [14:51:41]requested_item shift.open_date is exist - process it [14:51:41]req_shift_open_date [14:51:41]req_shift_open_date done [14:51:41]produce_requested_data done [14:51:41]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70685,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [14:51:41]process_action_free close_receipt [14:51:41]json_value_free [14:51:41]json_value_free done [14:51:41]process_json_proto returns [14:51:41]Send response to host [14:51:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70685,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [14:51:41]free response buf [14:51:41]execute_script done [14:51:41]execute_script returns [14:51:41]free content buf [14:51:41]Sock 9.Close socket [14:51:41]Sock 9.Thread stoped [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:18]accept exits with 7 [14:52:18]New connection [14:52:18]New thread 3066785124 created [14:52:18]Thread 3066928484 joined [14:52:18]Waiting for new connection... [14:52:18] Sock 7.Parse request [14:52:18]Sock 7.Check first char [14:52:18]Sock 7.First char is OK [14:52:18]request: POST /json_proto HTTP/1.0 [14:52:18]Method: POST [14:52:18]URL: /json_proto [14:52:18]Method is POST - this is cgi request [14:52:18]url: /json_proto [14:52:18]query_string will be loaded in cgi processing [14:52:18]execute_cgi json_proto POST (null) [14:52:18]execute_cgi path=json_proto method=POST [14:52:18]POST find Content-Length [14:52:18]Host: 172.17.58.67:8080 [14:52:18]Content-Length: 215 [14:52:18]Content-Type: application/json [14:52:18] [14:52:18]POST finish read [14:52:18]Found Content-Length = 215 [14:52: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" ] } } [14:52:18]execute_script... [14:52: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" ] } } [14:52:18]POST & json_proto [14:52:18]process_json_proto [14:52:18]json parsed OK: [14:52:18]protocol is kg_v1.0 [14:52:18]action value=get_value [14:52:18]process_action get_value [14:52:18]cmd_get_value [14:52:18]process_action get_value done [14:52:18]requested_data is exist [14:52:18]produce_requested_data [14:52:18]requested_item kkm.sn is exist - process it [14:52:18]requested_item kkm.ver is exist - process it [14:52:18]requested_item fm.sn is exist - process it [14:52:18]wFMCommunicate request_size=4 [14:52:18]MH_SAM_APDU [14:52:18]CAPDU: 80 11 00 00 [14:52:18]Write to MH i2c: E2 08 00 6D 01 80 11 00 00 00 00 00 00 E8 [14:52:18]Write i2c OK [14:52:18]MH_I2C_Read... [14:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:19]Read from MH i2c: E2 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 17 00 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 17 00 6D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 3D [14:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:52:19]wFMCommunicate OK [14:52:19]requested_item fd.num is exist - process it [14:52:19]SAM_PROTO_GetFieldsCounters [14:52:19]wFMCommunicate request_size=4 [14:52:19]MH_SAM_APDU [14:52:19]CAPDU: 80 13 00 00 [14:52:19]Write to MH i2c: E2 08 00 6E 01 80 13 00 00 00 00 00 00 EB [14:52:19]Write i2c OK [14:52:19]MH_I2C_Read... [14:52:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:19]Read from MH i2c: E2 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 62 00 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 62 00 6E 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 1D 14 01 00 0E 04 04 00 D2 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 85 [14:52: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 1D 14 01 00 0E 04 04 00 D2 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 [14:52:19]wFMCommunicate OK [14:52:19]SAM_PROTO_GetFieldsCounters done [14:52:19]requested_item shift.num is exist - process it [14:52:19]requested_item shift.opened is exist - process it [14:52:19]req_shift_opened [14:52:19]FM_GetShiftState [14:52:19]SAM_PROTO_GetShiftState [14:52:19]wFMCommunicate request_size=4 [14:52:19]MH_SAM_APDU [14:52:19]CAPDU: 80 13 01 00 [14:52:19]Write to MH i2c: E2 08 00 6F 01 80 13 01 00 00 00 00 00 ED [14:52:19]Write i2c OK [14:52:19]MH_I2C_Read... [14:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:19]Read from MH i2c: E2 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 0E 00 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 0E 00 6F 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 5C [14:52:19]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [14:52:19]wFMCommunicate OK [14:52:19]SAM_PROTO_GetShiftState done [14:52:19]FM_GetShiftState done [14:52:19]req_shift_opened done [14:52:19]requested_item shift.open_date is exist - process it [14:52:19]req_shift_open_date [14:52:19]req_shift_open_date done [14:52:19]produce_requested_data done [14:52:19]produce_requested_data return {"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70685,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [14:52:19]process_action_free get_value [14:52:19]json_value_free [14:52:19]json_value_free done [14:52:19]process_json_proto returns [14:52:19]Send response to host [14:52:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70685,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [14:52:19]free response buf [14:52:19]execute_script done [14:52:19]execute_script returns [14:52:19]free content buf [14:52:19]Sock 7.Close socket [14:52:19]Sock 7.Thread stoped [14:52:19]accept exits with 9 [14:52:19]New connection [14:52:19]New thread 3066928484 created [14:52:19]Thread 3066785124 joined [14:52:19]Waiting for new connection... [14:52:19] Sock 9.Parse request [14:52:19]Sock 9.Check first char [14:52:19]Sock 9.First char is OK [14:52:19]request: POST /json_proto HTTP/1.0 [14:52:19]Method: POST [14:52:19]URL: /json_proto [14:52:19]Method is POST - this is cgi request [14:52:19]url: /json_proto [14:52:19]query_string will be loaded in cgi processing [14:52:19]execute_cgi json_proto POST (null) [14:52:19]execute_cgi path=json_proto method=POST [14:52:19]POST find Content-Length [14:52:19]Host: 172.17.58.67:8080 [14:52:19]Content-Length: 331 [14:52:19]Content-Type: application/json [14:52:19] [14:52:19]POST finish read [14:52:19]Found Content-Length = 331 [14:52:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:52:19]execute_script... [14:52:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:52:19]POST & json_proto [14:52:19]process_json_proto [14:52:19]json parsed OK: [14:52:19]protocol is kg_v1.0 [14:52:19]action value=get_value [14:52:19]process_action get_value [14:52:19]cmd_get_value [14:52:19]process_action get_value done [14:52:19]requested_data is exist [14:52:19]produce_requested_data [14:52:19]requested_item fm.sale.total is exist - process it [14:52:19]SAM_PROTO_GetFMData [14:52:19]wFMCommunicate request_size=4 [14:52:19]MH_SAM_APDU [14:52:19]CAPDU: 80 13 03 00 [14:52:19]Write to MH i2c: E2 08 00 70 01 80 13 03 00 00 00 00 00 F0 [14:52:19]Write i2c OK [14:52:19]MH_I2C_Read... [14:52:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:52:19]Read from MH i2c: E2 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 FD 00 [14:52:19]MH_I2C_Read... [14:52:19]Read from MH i2c: E2 FD 00 70 01 00 C8 04 85 04 C4 04 6E 04 04 00 79 10 01 00 69 04 A3 00 6F 04 04 00 44 07 01 00 B1 04 05 00 C4 98 B1 C9 01 70 04 05 00 7C 76 B6 5F 01 72 04 04 00 48 22 FB 69 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 F5 6B 9C 30 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 CA FD 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 35 09 00 00 B1 04 04 00 90 50 60 14 70 04 04 00 F4 17 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F5 0B 2A 02 90 00 BC [14:52:19]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 79 10 01 00 69 04 A3 00 6F 04 04 00 44 07 01 00 B1 04 05 00 C4 98 B1 C9 01 70 04 05 00 7C 76 B6 5F 01 72 04 04 00 48 22 FB 69 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 F5 6B 9C 30 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 CA FD 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 35 09 00 00 B1 04 04 00 90 50 60 14 70 04 04 00 F4 17 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F5 0B 2A 02 90 00 [14:52:19]wFMCommunicate OK [14:52:19]wFMCommunicate request_size=4 [14:52:19]MH_SAM_APDU [14:52:19]CAPDU: 80 17 00 00 [14:52:19]Write to MH i2c: E2 08 00 71 01 80 17 00 00 00 00 00 00 F2 [14:52:19]Write i2c OK [14:52:19]MH_I2C_Read... [14:52:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:52:20]Read from MH i2c: E2 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: E2 FD 00 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: E2 FD 00 71 01 00 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 33 2B 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 7A [14:52:20]RAPDU: 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 33 2B 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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:52:20]wFMCommunicate OK [14:52:20]wFMCommunicate request_size=4 [14:52:20]MH_SAM_APDU [14:52:20]CAPDU: 80 17 00 00 [14:52:20]Write to MH i2c: E2 08 00 72 01 80 17 00 00 00 00 00 00 F3 [14:52:20]Write i2c OK [14:52:20]MH_I2C_Read... [14:52:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:52:20]Read from MH i2c: E2 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: E2 FD 00 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: E2 FD 00 72 01 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 CB [14:52:20]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:52:20]wFMCommunicate OK [14:52:20]wFMCommunicate request_size=4 [14:52:20]MH_SAM_APDU [14:52:20]CAPDU: 80 17 00 00 [14:52:20]Write to MH i2c: E2 08 00 73 01 80 17 00 00 00 00 00 00 F4 [14:52:20]Write i2c OK [14:52:20]MH_I2C_Read... [14:52:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:52:20]Read from MH i2c: E2 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: E2 FD 00 [14:52:20]MH_I2C_Read... [14:52:20]Read from MH i2c: E2 FD 00 73 01 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 6C [14:52: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 [14:52:20]wFMCommunicate OK [14:52:20]wFMCommunicate request_size=4 [14:52:20]MH_SAM_APDU [14:52:20]CAPDU: 80 17 00 00 [14:52:20]Write to MH i2c: E2 08 00 74 01 80 17 00 00 00 00 00 00 F5 [14:52:20]Write i2c OK [14:52:20]MH_I2C_Read... [14:52:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [14:52:21]Read from MH i2c: E2 [14:52:21]MH_I2C_Read... [14:52:21]Read from MH i2c: E2 E5 00 [14:52:21]MH_I2C_Read... [14:52:21]Read from MH i2c: E2 E5 00 74 01 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 D9 [14:52:21]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:52:21]wFMCommunicate OK [14:52:21]SAM_PROTO_GetFMData done [14:52:21]requested_item fm.sale_refund.total is exist - process it [14:52:21]requested_item fm.buy.total is exist - process it [14:52:21]requested_item shift.sale.total is exist - process it [14:52:21]SAM_PROTO_GetShiftData [14:52:21]wFMCommunicate request_size=4 [14:52:21]MH_SAM_APDU [14:52:21]CAPDU: 80 13 02 00 [14:52:21]Write to MH i2c: E2 08 00 75 01 80 13 02 00 00 00 00 00 F4 [14:52:21]Write i2c OK [14:52:21]MH_I2C_Read... [14:52:21]OFD Sender: No OFD packet to send [14:52:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:52:21]Read from MH i2c: E2 [14:52:21]MH_I2C_Read... [14:52:21]Read from MH i2c: E2 FD 00 [14:52:21]MH_I2C_Read... [14:52:21]Read from MH i2c: E2 FD 00 75 01 00 B9 04 AA 04 B5 04 6E 04 04 00 27 00 00 00 69 04 9B 00 6F 04 04 00 24 00 00 00 B1 04 03 00 6E 2C 33 70 04 03 00 90 08 1C 72 04 03 00 DE 23 17 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 64 6F 05 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 F4 73 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 03 00 00 00 B1 04 03 00 B0 71 0B 70 04 03 00 B0 71 0B 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 2C 37 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 CB [14:52:21]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 27 00 00 00 69 04 9B 00 6F 04 04 00 24 00 00 00 B1 04 03 00 6E 2C 33 70 04 03 00 90 08 1C 72 04 03 00 DE 23 17 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 64 6F 05 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 F4 73 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 03 00 00 00 B1 04 03 00 B0 71 0B 70 04 03 00 B0 71 0B 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 2C 37 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [14:52:21]wFMCommunicate OK [14:52:21]wFMCommunicate request_size=4 [14:52:21]MH_SAM_APDU [14:52:21]CAPDU: 80 17 00 00 [14:52:21]Write to MH i2c: E2 08 00 76 01 80 17 00 00 00 00 00 00 F7 [14:52:21]Write i2c OK [14:52:21]MH_I2C_Read... [14:52:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:52:21]Read from MH i2c: E2 [14:52:21]MH_I2C_Read... [14:52:21]Read from MH i2c: E2 FD 00 [14:52:21]MH_I2C_Read... [14:52:21]Read from MH i2c: E2 FD 00 76 01 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 EE 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 BD [14:52:21]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 EE 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [14:52:21]wFMCommunicate OK [14:52:21]wFMCommunicate request_size=4 [14:52:21]MH_SAM_APDU [14:52:21]CAPDU: 80 17 00 00 [14:52:21]Write to MH i2c: E2 08 00 77 01 80 17 00 00 00 00 00 00 F8 [14:52:21]Write i2c OK [14:52:21]MH_I2C_Read... [14:52:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:52:22]Read from MH i2c: E2 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 FD 00 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 FD 00 77 01 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 20 [14:52:22]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [14:52:22]wFMCommunicate OK [14:52:22]wFMCommunicate request_size=4 [14:52:22]MH_SAM_APDU [14:52:22]CAPDU: 80 17 00 00 [14:52:22]Write to MH i2c: E2 08 00 78 01 80 17 00 00 00 00 00 00 F9 [14:52:22]Write i2c OK [14:52:22]MH_I2C_Read... [14:52:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:52:22]Read from MH i2c: E2 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 FD 00 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 FD 00 78 01 00 EF 03 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 90 00 71 [14:52:22]RAPDU: EF 03 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 90 00 [14:52:22]wFMCommunicate OK [14:52:22]wFMCommunicate request_size=4 [14:52:22]MH_SAM_APDU [14:52:22]CAPDU: 80 17 00 00 [14:52:22]Write to MH i2c: E2 08 00 79 01 80 17 00 00 00 00 00 00 FA [14:52:22]Write i2c OK [14:52:22]MH_I2C_Read... [14:52:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [14:52:22]Read from MH i2c: E2 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 D6 00 [14:52:22]MH_I2C_Read... [14:52:22]Read from MH i2c: E2 D6 00 79 01 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DC [14:52:22]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:52:22]wFMCommunicate OK [14:52:22]SAM_PROTO_GetShiftData done [14:52:22]requested_item shift.sale.total_cash is exist - process it [14:52:22]requested_item shift.sale_refund.total is exist - process it [14:52:22]requested_item shift.sale_refund.total_cash is exist - process it [14:52:22]requested_item shift.buy.total is exist - process it [14:52:22]requested_item shift.buy.total_cash is exist - process it [14:52:22]produce_requested_data done [14:52:22]produce_requested_data return {"fm.sale.total":76788266.92,"fm.sale_refund.total":3418564.00,"fm.buy.total":0.00,"shift.sale.total":33537.10,"shift.sale.total_cash":18372.00,"shift.sale_refund.total":7500.00,"shift.sale_refund.total_cash":7500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:52:22]process_action_free get_value [14:52:22]json_value_free [14:52:22]json_value_free done [14:52:22]process_json_proto returns [14:52:22]Send response to host [14:52:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76788266.92,"fm.sale_refund.total":3418564.00,"fm.buy.total":0.00,"shift.sale.total":33537.10,"shift.sale.total_cash":18372.00,"shift.sale_refund.total":7500.00,"shift.sale_refund.total_cash":7500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:52:22]free response buf [14:52:22]execute_script done [14:52:22]execute_script returns [14:52:22]free content buf [14:52:22]Sock 9.Close socket [14:52:22]Sock 9.Thread stoped [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:12]accept exits with 7 [14:54:12]New connection [14:54:12]New thread 3066785124 created [14:54:12]Thread 3066928484 joined [14:54:12]Waiting for new connection... [14:54:12] Sock 7.Parse request [14:54:12]Sock 7.Check first char [14:54:12]Sock 7.First char is OK [14:54:12]request: POST /json_proto HTTP/1.0 [14:54:12]Method: POST [14:54:12]URL: /json_proto [14:54:12]Method is POST - this is cgi request [14:54:12]url: /json_proto [14:54:12]query_string will be loaded in cgi processing [14:54:12]execute_cgi json_proto POST (null) [14:54:12]execute_cgi path=json_proto method=POST [14:54:12]POST find Content-Length [14:54:12]Host: 172.17.58.67:8080 [14:54:12]Content-Length: 808 [14:54:12]Content-Type: application/json [14:54:12] [14:54:12]POST finish read [14:54:12]Found Content-Length = 808 [14:54:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:12]execute_script... [14:54:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:12]POST & json_proto [14:54:12]process_json_proto [14:54:12]json parsed OK: [14:54:12]protocol is kg_v1.0 [14:54:12]action value=close_receipt [14:54:12]process_action close_receipt [14:54:12]cmd_close_receipt [14:54:12]MH_GetDate [14:54:12]Write to MH i2c: F0 00 00 7A 01 6A [14:54:12]Write i2c OK [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: F0 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: F0 09 00 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: F0 09 00 7A 01 00 95 73 BB 66 94 51 63 64 48 [14:54:12]GetLastDocTimeStamp 1723560699 [14:54:12]current date 1723560853 [14:54:12]FM_GetShiftState [14:54:12]SAM_PROTO_GetShiftState [14:54:12]wFMCommunicate request_size=4 [14:54:12]MH_SAM_APDU [14:54:12]CAPDU: 80 13 01 00 [14:54:12]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [14:54:12]Write i2c OK [14:54:12]MH_I2C_Read... [14:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:12]Read from MH i2c: E2 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 0E 00 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 68 [14:54:12]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [14:54:12]wFMCommunicate OK [14:54:12]SAM_PROTO_GetShiftState done [14:54:12]FM_GetShiftState done [14:54:12]opened in 1723509656 [14:54:12]opened+sec_in_day 1723596056 [14:54:12]quantity*price = 100036 [14:54:12]sum+1 = 100037 [14:54:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.36 ÐСП 1% : 8.85 ÐДС 12% : 106.23 Ðаличными: 0.00 Безнал.: 1000.36 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 40 13.08.2024 14:54 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70686 ФПД: 275258895154500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T145413&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70686&fm=275258895154500&tin=02508201610067®Number=0000000000090913&sum=100036 [14:54:13]StoreToDocumentArchive [14:54:13]shift 466 fd 70686 [14:54:13]save to /storage/0466/doc_00070686 [14:54:13]save last doc name /storage/0466/doc_00070686 to /storage/kkm_last_doc_name [14:54:13]save OK [14:54:13]Clear old archive folders... [14:54:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:54:13]tlvbuf is 018D37D0 [14:54:13]SAM_PROTO_ClearQueue [14:54:13]wFMCommunicate request_size=4 [14:54:13]MH_SAM_APDU [14:54:13]CAPDU: 80 09 00 00 [14:54:13]Write to MH i2c: E2 08 00 88 01 80 09 00 00 00 00 00 00 FB [14:54:13]Write i2c OK [14:54:13]MH_I2C_Read... [14:54:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:14]Read from MH i2c: E2 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 03 00 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [14:54:14]RAPDU: 90 00 [14:54:14]wFMCommunicate OK [14:54:14]SAM_PROTO_ClearQueue done [14:54:14]KKMCreateOFDPacket [14:54:14]OFDProtocolAddRootSTLVToBuf [14:54:14]FM_MakeSignedData [14:54:14]FM_MakeSignedData [14:54:14]SAM_PROTO_SignData [14:54:14]wFMCommunicate request_size=4 [14:54:14]MH_SAM_APDU [14:54:14]CAPDU: 80 0D 01 02 [14:54:14]Write to MH i2c: E2 08 00 89 01 80 0D 01 02 00 00 00 00 03 [14:54:14]Write i2c OK [14:54:14]MH_I2C_Read... [14:54:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:14]Read from MH i2c: E2 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 03 00 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [14:54:14]RAPDU: 90 00 [14:54:14]wFMCommunicate OK [14:54:14]wFMCommunicate request_size=255 [14:54:14]MH_SAM_APDU [14:54:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 95 73 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1E 14 01 00 35 04 06 00 FA [14:54:14]Write to MH i2c: E2 02 01 8A 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 95 73 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1E 14 01 00 35 04 06 00 FA 00 00 BC [14:54:14]Write i2c OK [14:54:14]MH_I2C_Read... [14:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:14]Read from MH i2c: E2 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 03 00 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [14:54:14]RAPDU: 90 00 [14:54:14]wFMCommunicate OK [14:54:14]wFMCommunicate request_size=10 [14:54:14]MH_SAM_APDU [14:54:14]CAPDU: 80 0D 02 02 05 58 B4 AA BD 44 [14:54:14]Write to MH i2c: E2 0D 00 8B 01 80 0D 02 02 05 00 58 B4 AA BD 44 00 00 C7 [14:54:14]Write i2c OK [14:54:14]MH_I2C_Read... [14:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:14]Read from MH i2c: E2 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 03 00 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [14:54:14]RAPDU: 90 00 [14:54:14]wFMCommunicate OK [14:54:14]wFMCommunicate request_size=4 [14:54:14]MH_SAM_APDU [14:54:14]CAPDU: 80 0D 03 02 [14:54:14]Write to MH i2c: E2 08 00 8C 01 80 0D 03 02 00 00 00 00 08 [14:54:14]Write i2c OK [14:54:14]MH_I2C_Read... [14:54:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:14]Read from MH i2c: E2 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 0B 00 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 0B 00 8C 01 00 FC 4F 85 F4 BE A8 78 27 90 00 D2 [14:54:14]RAPDU: FC 4F 85 F4 BE A8 78 27 90 00 [14:54:14]wFMCommunicate OK [14:54:14]SAM_PROTO_SignData done [14:54:14]FM_MakeSignedData done [14:54:14]CreateOFDProtocolMessage [14:54:14]wFMCommunicate request_size=4 [14:54:14]MH_SAM_APDU [14:54:14]CAPDU: 80 11 00 00 [14:54:14]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [14:54:14]Write i2c OK [14:54:14]MH_I2C_Read... [14:54:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:14]Read from MH i2c: E2 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 17 00 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 5D [14:54:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:54:14]wFMCommunicate OK [14:54:14]CreateOFDProtocolMessage done [14:54:14]OFDSenderStorePacket 70686 [14:54:14]StoreOFDPacket docnum=70686 [14:54:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 1E 0A 07 01 49 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 95 73 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1E 14 01 00 35 04 06 00 FA 58 B4 AA BD 44 FC 4F 85 F4 BE A8 78 27 [14:54:14]CheckFolder [14:54:14]dirname=/storage/ofd_packets [14:54:14]CheckFolder done [14:54:14]ProducePacketName [14:54:14]name=ofd_packets/00070686 [14:54:14]NVStorageSaveData ofd_packets/00070686 [14:54:14]File name is /storage/ofd_packets/00070686 [14:54:14]Write 301 bytes [14:54:14]NVStorageSaveData done [14:54:14]OFDSenderStorePacket done [14:54:14]KKMCreateOFDPacket done [14:54:14]NVStorageSaveData kkm_last_timestamp [14:54:14]File name is /storage/kkm_last_timestamp [14:54:14]Write 4 bytes [14:54:14]NVStorageSaveData done [14:54:14]ExternCall_PrintAddStr [14:54:14]wPrintStart [14:54:14]Write to MH i2c: 01 00 00 8E 01 8F [14:54:14]Write i2c OK [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: 01 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: 01 07 00 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [14:54:14]RasterBufferAndPrint [14:54:14]line Счет N : (1)141147 [14:54:14]line ИÐÐ: 02508201610067 [14:54:14]line Контрольно-КаÑÑовый Чек [14:54:14]line ПРОДÐЖР[14:54:14]line ТРК (МРК, ГÐК) : 31 [14:54:14]line Товар: 2710124130 [14:54:14]line Ðи-92-К-5 [14:54:14]line 15.180 * 65.90 [14:54:14]line = 1000.36 [14:54:14]line ÐДС 12% ÐСП 1% [14:54:14]line > о реализуемом товаре [14:54:14]line ИТОГО: 1000.36 [14:54:14]line ÐСП 1% : 8.85 [14:54:14]line ÐДС 12% : 106.23 [14:54:14]line Ðаличными: 0.00 [14:54:14]line Безнал.: 1000.36 [14:54:14]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [14:54:14]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [14:54:14]line СÐО: Общий режим [14:54:14]line Чек 40 13.08.2024 14:54 [14:54:14]line Смена: 466 ФФД: 1.0 [14:54:14]line ЗÐМ: 0300000140 [14:54:14]line РÐМ: 0000000000090913 [14:54:14]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [14:54:14]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [14:54:14]line ФМ: 0000000000874915 [14:54:14]line ФД: 70686 [14:54:14]line ФПД: 275258895154500 [14:54:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T145413&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70686&fm=275258895154500&tin=02508201610067®Number=0000000000090913&sum=100036 [14:54:14]OFD Sender: Processing packet 70686 [packets to send 67, broken 66] [14:54:14]ProducePacketName [14:54:14]name=ofd_packets/00070686 [14:54:14]OFD Sender: To server: ‡•öpG, [14:54:14]CommunicateWithHost lk.salyk.kg:30040 [14:54:14]ConnectInit lk.salyk.kg [14:54:14]written 0, free lines is 4095 [14:54:14]Connected sock=10 [14:54:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 1E 0A 07 01 49 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 95 73 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1E 14 01 00 35 04 06 00 FA 58 B4 AA BD 44 FC 4F 85 F4 BE A8 78 27 [14:54:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 C7 6D 47 00 48 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 39 31 35 10 04 04 00 1E 14 01 00 F4 03 04 00 80 1A BB 66 B6 04 01 00 00 5D 0A D7 6C 86 66 CB 56 [14:54:15]CommunicateWithHost err = 0 [14:54:15]CheckOFDResponse [14:54:15]1017 (14) - 77093643461234 [14:54:15]1041 (16) - 0000000000874915 [14:54:15]1040 (4) - 70686 [14:54:15]1012 (4) - 13.08.2024 08:34 [14:54:15]1206 (1) - 0 [14:54:15]OFD Sender: Remove packet 70686 [14:54:15]ProducePacketName [14:54:15]name=ofd_packets/00070686 [14:54:15]NVStorageDeleteData [14:54:15]Write to MH i2c: 01 00 00 B8 01 B9 [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: 01 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: 01 07 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: 01 07 00 B8 01 00 00 00 00 00 0D 0D DA [14:54:15]RasterBufferAndPrint [14:54:15]line [14:54:15]line [14:54:15]line [14:54:15]line [14:54:15]line [14:54:15]written 0, free lines is 3347 [14:54:15]MH_Cut [14:54:15]Write to MH i2c: D1 01 00 BF 01 01 92 [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: D1 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: D1 01 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: D1 01 00 BF 01 00 91 [14:54:15]Write to MH i2c: 01 00 00 C0 01 C1 [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]OFD Sender: No OFD packet to send [14:54:15]*** Cut start [14:54:15]*** Purtial cut [14:54:15]*** CUTSNS_PIN = 0 [14:54:16]*** Stage 1: CUTSNS_PIN = 1 [14:54:18]Read from MH i2c: 01 [14:54:18]MH_I2C_Read... [14:54:18]*** Stop cut motor [14:54:18]*** Cut end [14:54:18]Read from MH i2c: 01 07 00 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: 01 07 00 C0 01 00 00 00 00 00 FF 0F D6 [14:54:18]process_action close_receipt done [14:54:18]requested_data is exist [14:54:18]produce_requested_data [14:54:18]requested_item fm.sn is exist - process it [14:54:18]wFMCommunicate request_size=4 [14:54:18]MH_SAM_APDU [14:54:18]CAPDU: 80 11 00 00 [14:54:18]Write to MH i2c: E2 08 00 C1 01 80 11 00 00 00 00 00 00 3C [14:54:18]Write i2c OK [14:54:18]MH_I2C_Read... [14:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:18]Read from MH i2c: E2 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 17 00 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 17 00 C1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 91 [14:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:54:18]wFMCommunicate OK [14:54:18]requested_item fd.num is exist - process it [14:54:18]SAM_PROTO_GetFieldsCounters [14:54:18]wFMCommunicate request_size=4 [14:54:18]MH_SAM_APDU [14:54:18]CAPDU: 80 13 00 00 [14:54:18]Write to MH i2c: E2 08 00 C2 01 80 13 00 00 00 00 00 00 3F [14:54:18]Write i2c OK [14:54:18]MH_I2C_Read... [14:54:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:18]Read from MH i2c: E2 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 62 00 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 62 00 C2 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 1E 14 01 00 0E 04 04 00 D2 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 DD [14:54:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 1E 14 01 00 0E 04 04 00 D2 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 [14:54:18]wFMCommunicate OK [14:54:18]SAM_PROTO_GetFieldsCounters done [14:54:18]requested_item shift.num is exist - process it [14:54:18]requested_item shift.opened is exist - process it [14:54:18]req_shift_opened [14:54:18]FM_GetShiftState [14:54:18]SAM_PROTO_GetShiftState [14:54:18]wFMCommunicate request_size=4 [14:54:18]MH_SAM_APDU [14:54:18]CAPDU: 80 13 01 00 [14:54:18]Write to MH i2c: E2 08 00 C3 01 80 13 01 00 00 00 00 00 41 [14:54:18]Write i2c OK [14:54:18]MH_I2C_Read... [14:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:18]Read from MH i2c: E2 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 0E 00 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 0E 00 C3 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 B0 [14:54:18]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [14:54:18]wFMCommunicate OK [14:54:18]SAM_PROTO_GetShiftState done [14:54:18]FM_GetShiftState done [14:54:18]req_shift_opened done [14:54:18]requested_item shift.open_date is exist - process it [14:54:18]req_shift_open_date [14:54:18]req_shift_open_date done [14:54:18]produce_requested_data done [14:54:18]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70686,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [14:54:18]process_action_free close_receipt [14:54:18]json_value_free [14:54:18]json_value_free done [14:54:18]process_json_proto returns [14:54:18]Send response to host [14:54:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70686,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [14:54:18]free response buf [14:54:18]execute_script done [14:54:18]execute_script returns [14:54:18]free content buf [14:54:18]Sock 7.Close socket [14:54:18]Sock 7.Thread stoped [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:26]OFD Sender: No OFD packet to send [15:05:31]OFD Sender: No OFD packet to send [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:26]OFD Sender: No OFD packet to send [15:06:31]OFD Sender: No OFD packet to send [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:37]accept exits with 9 [15:09:37]New connection [15:09:37]New thread 3066928484 created [15:09:37]Thread 3066785124 joined [15:09:37]Waiting for new connection... [15:09:37] Sock 9.Parse request [15:09:37]Sock 9.Check first char [15:09:37]Sock 9.First char is OK [15:09:37]request: POST /json_proto HTTP/1.0 [15:09:37]Method: POST [15:09:37]URL: /json_proto [15:09:37]Method is POST - this is cgi request [15:09:37]url: /json_proto [15:09:37]query_string will be loaded in cgi processing [15:09:37]execute_cgi json_proto POST (null) [15:09:37]execute_cgi path=json_proto method=POST [15:09:37]POST find Content-Length [15:09:37]Host: 172.17.58.67:8080 [15:09:37]Content-Length: 805 [15:09:37]Content-Type: application/json [15:09:37] [15:09:37]POST finish read [15:09:37]Found Content-Length = 805 [15:09:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:37]execute_script... [15:09:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:37]POST & json_proto [15:09:37]process_json_proto [15:09:37]json parsed OK: [15:09:37]protocol is kg_v1.0 [15:09:37]action value=close_receipt [15:09:37]process_action close_receipt [15:09:37]cmd_close_receipt [15:09:37]MH_GetDate [15:09:37]Write to MH i2c: F0 00 00 C4 01 B4 [15:09:37]Write i2c OK [15:09:37]MH_I2C_Read... [15:09:37]Read from MH i2c: F0 [15:09:37]MH_I2C_Read... [15:09:37]Read from MH i2c: F0 09 00 [15:09:37]MH_I2C_Read... [15:09:37]Read from MH i2c: F0 09 00 C4 01 00 32 77 BB 66 94 51 63 64 33 [15:09:37]GetLastDocTimeStamp 1723560853 [15:09:37]current date 1723561778 [15:09:37]FM_GetShiftState [15:09:37]SAM_PROTO_GetShiftState [15:09:37]wFMCommunicate request_size=4 [15:09:37]MH_SAM_APDU [15:09:37]CAPDU: 80 13 01 00 [15:09:37]Write to MH i2c: E2 08 00 C5 01 80 13 01 00 00 00 00 00 43 [15:09:37]Write i2c OK [15:09:37]MH_I2C_Read... [15:09:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:37]Read from MH i2c: E2 [15:09:37]MH_I2C_Read... [15:09:37]Read from MH i2c: E2 0E 00 [15:09:37]MH_I2C_Read... [15:09:37]Read from MH i2c: E2 0E 00 C5 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 B2 [15:09:37]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [15:09:37]wFMCommunicate OK [15:09:37]SAM_PROTO_GetShiftState done [15:09:37]FM_GetShiftState done [15:09:37]opened in 1723509656 [15:09:37]opened+sec_in_day 1723596056 [15:09:37]quantity*price = 50018 [15:09:37]sum+1 = 50019 [15:09:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 0.00 Безнал.: 500.18 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 41 13.08.2024 15:09 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70687 ФПД: 82326359041354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T150938&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70687&fm=82326359041354&tin=02508201610067®Number=0000000000090913&sum=50018 [15:09:38]StoreToDocumentArchive [15:09:38]shift 466 fd 70687 [15:09:38]save to /storage/0466/doc_00070687 [15:09:38]save last doc name /storage/0466/doc_00070687 to /storage/kkm_last_doc_name [15:09:38]save OK [15:09:38]Clear old archive folders... [15:09:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:38]tlvbuf is 018CFAE0 [15:09:38]SAM_PROTO_ClearQueue [15:09:38]wFMCommunicate request_size=4 [15:09:38]MH_SAM_APDU [15:09:38]CAPDU: 80 09 00 00 [15:09:38]Write to MH i2c: E2 08 00 D2 01 80 09 00 00 00 00 00 00 45 [15:09:38]Write i2c OK [15:09:38]MH_I2C_Read... [15:09:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:38]Read from MH i2c: E2 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: E2 03 00 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [15:09:38]RAPDU: 90 00 [15:09:38]wFMCommunicate OK [15:09:38]SAM_PROTO_ClearQueue done [15:09:38]KKMCreateOFDPacket [15:09:38]OFDProtocolAddRootSTLVToBuf [15:09:38]FM_MakeSignedData [15:09:38]FM_MakeSignedData [15:09:38]SAM_PROTO_SignData [15:09:38]wFMCommunicate request_size=4 [15:09:38]MH_SAM_APDU [15:09:38]CAPDU: 80 0D 01 02 [15:09:38]Write to MH i2c: E2 08 00 D3 01 80 0D 01 02 00 00 00 00 4D [15:09:38]Write i2c OK [15:09:38]MH_I2C_Read... [15:09:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:38]Read from MH i2c: E2 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: E2 03 00 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [15:09:38]RAPDU: 90 00 [15:09:38]wFMCommunicate OK [15:09:38]wFMCommunicate request_size=255 [15:09:38]MH_SAM_APDU [15:09:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 32 77 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1F 14 01 00 35 04 06 00 4A [15:09:38]Write to MH i2c: E2 02 01 D4 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 32 77 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1F 14 01 00 35 04 06 00 4A 00 00 33 [15:09:38]Write i2c OK [15:09:38]MH_I2C_Read... [15:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:39]Read from MH i2c: E2 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 03 00 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [15:09:39]RAPDU: 90 00 [15:09:39]wFMCommunicate OK [15:09:39]wFMCommunicate request_size=10 [15:09:39]MH_SAM_APDU [15:09:39]CAPDU: 80 0D 02 02 05 E0 19 62 E5 4A [15:09:39]Write to MH i2c: E2 0D 00 D5 01 80 0D 02 02 05 00 E0 19 62 E5 4A 00 00 E4 [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:39]Read from MH i2c: E2 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 03 00 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [15:09:39]RAPDU: 90 00 [15:09:39]wFMCommunicate OK [15:09:39]wFMCommunicate request_size=4 [15:09:39]MH_SAM_APDU [15:09:39]CAPDU: 80 0D 03 02 [15:09:39]Write to MH i2c: E2 08 00 D6 01 80 0D 03 02 00 00 00 00 52 [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:39]Read from MH i2c: E2 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 0B 00 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 0B 00 D6 01 00 F1 21 28 23 72 F1 EC 71 90 00 70 [15:09:39]RAPDU: F1 21 28 23 72 F1 EC 71 90 00 [15:09:39]wFMCommunicate OK [15:09:39]SAM_PROTO_SignData done [15:09:39]FM_MakeSignedData done [15:09:39]CreateOFDProtocolMessage [15:09:39]wFMCommunicate request_size=4 [15:09:39]MH_SAM_APDU [15:09:39]CAPDU: 80 11 00 00 [15:09:39]Write to MH i2c: E2 08 00 D7 01 80 11 00 00 00 00 00 00 52 [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:39]Read from MH i2c: E2 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 17 00 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 17 00 D7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 A7 [15:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [15:09:39]wFMCommunicate OK [15:09:39]CreateOFDProtocolMessage done [15:09:39]OFDSenderStorePacket 70687 [15:09:39]StoreOFDPacket docnum=70687 [15:09:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 F3 71 07 01 D5 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 32 77 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1F 14 01 00 35 04 06 00 4A E0 19 62 E5 4A F1 21 28 23 72 F1 EC 71 [15:09:39]CheckFolder [15:09:39]dirname=/storage/ofd_packets [15:09:39]CheckFolder done [15:09:39]ProducePacketName [15:09:39]name=ofd_packets/00070687 [15:09:39]NVStorageSaveData ofd_packets/00070687 [15:09:39]File name is /storage/ofd_packets/00070687 [15:09:39]Write 301 bytes [15:09:39]NVStorageSaveData done [15:09:39]OFDSenderStorePacket done [15:09:39]KKMCreateOFDPacket done [15:09:39]NVStorageSaveData kkm_last_timestamp [15:09:39]File name is /storage/kkm_last_timestamp [15:09:39]Write 4 bytes [15:09:39]NVStorageSaveData done [15:09:39]ExternCall_PrintAddStr [15:09:39]wPrintStart [15:09:39]Write to MH i2c: 01 00 00 D8 01 D9 [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: 01 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: 01 07 00 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 FF 0F EE [15:09:39]RasterBufferAndPrint [15:09:39]line Счет N : (1)141148 [15:09:39]line ИÐÐ: 02508201610067 [15:09:39]line Контрольно-КаÑÑовый Чек [15:09:39]line ПРОДÐЖР[15:09:39]line ТРК (МРК, ГÐК) : 31 [15:09:39]line Товар: 2710124130 [15:09:39]line Ðи-92-К-5 [15:09:39]line 7.590 * 65.90 [15:09:39]line = 500.18 [15:09:39]line ÐДС 12% ÐСП 1% [15:09:39]line > о реализуемом товаре [15:09:39]line ИТОГО: 500.18 [15:09:39]line ÐСП 1% : 4.43 [15:09:39]line ÐДС 12% : 53.12 [15:09:39]line Ðаличными: 0.00 [15:09:39]line Безнал.: 500.18 [15:09:39]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [15:09:39]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [15:09:39]line СÐО: Общий режим [15:09:39]line Чек 41 13.08.2024 15:09 [15:09:39]line Смена: 466 ФФД: 1.0 [15:09:39]line ЗÐМ: 0300000140 [15:09:39]line РÐМ: 0000000000090913 [15:09:39]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [15:09:39]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [15:09:39]line ФМ: 0000000000874915 [15:09:39]line ФД: 70687 [15:09:39]line ФПД: 82326359041354 [15:09:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T150938&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70687&fm=82326359041354&tin=02508201610067®Number=0000000000090913&sum=50018 [15:09:39]written 0, free lines is 4095 [15:09:39]OFD Sender: Processing packet 70687 [packets to send 67, broken 66] [15:09:39]ProducePacketName [15:09:39]name=ofd_packets/00070687 [15:09:39]OFD Sender: To server: ‡•öpG, [15:09:39]CommunicateWithHost lk.salyk.kg:30040 [15:09:39]ConnectInit lk.salyk.kg [15:09:39]Connected sock=10 [15:09:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 F3 71 07 01 D5 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 32 77 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1F 14 01 00 35 04 06 00 4A E0 19 62 E5 4A F1 21 28 23 72 F1 EC 71 [15:09:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 EF 6B 47 00 72 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 1F 14 01 00 F4 03 04 00 1D 1E BB 66 B6 04 01 00 00 69 CA A7 D8 F2 97 1A 6A [15:09:39]CommunicateWithHost err = 0 [15:09:39]CheckOFDResponse [15:09:39]1017 (14) - 77093643461234 [15:09:39]1041 (16) - 0000000000874915 [15:09:39]1040 (4) - 70687 [15:09:39]1012 (4) - 13.08.2024 08:49 [15:09:39]1206 (1) - 0 [15:09:39]OFD Sender: Remove packet 70687 [15:09:39]ProducePacketName [15:09:39]name=ofd_packets/00070687 [15:09:39]NVStorageDeleteData [15:09:39]Write to MH i2c: 01 00 00 02 02 04 [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: 01 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: 01 07 00 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: 01 07 00 02 02 00 00 00 00 00 01 0D 19 [15:09:39]RasterBufferAndPrint [15:09:39]line [15:09:39]line [15:09:39]line [15:09:39]line [15:09:39]line [15:09:39]written 0, free lines is 3335 [15:09:39]MH_Cut [15:09:39]Write to MH i2c: D1 01 00 09 02 01 DD [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: D1 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: D1 01 00 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: D1 01 00 09 02 00 DC [15:09:39]Write to MH i2c: 01 00 00 0A 02 0C [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:40]OFD Sender: No OFD packet to send [15:09:40]*** Cut start [15:09:40]*** Purtial cut [15:09:40]*** Stage 1: CUTSNS_PIN = 1 [15:09:40]Read from MH i2c: 01 [15:09:40]MH_I2C_Read... [15:09:40]*** Stop cut motor [15:09:40]*** Cut end [15:09:40]Read from MH i2c: 01 07 00 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: 01 07 00 0A 02 00 00 00 00 00 FF 0F 21 [15:09:40]process_action close_receipt done [15:09:40]requested_data is exist [15:09:40]produce_requested_data [15:09:40]requested_item fm.sn is exist - process it [15:09:40]wFMCommunicate request_size=4 [15:09:40]MH_SAM_APDU [15:09:40]CAPDU: 80 11 00 00 [15:09:40]Write to MH i2c: E2 08 00 0B 02 80 11 00 00 00 00 00 00 87 [15:09:40]Write i2c OK [15:09:40]MH_I2C_Read... [15:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:40]Read from MH i2c: E2 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: E2 17 00 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: E2 17 00 0B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 DC [15:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [15:09:40]wFMCommunicate OK [15:09:40]requested_item fd.num is exist - process it [15:09:40]SAM_PROTO_GetFieldsCounters [15:09:40]wFMCommunicate request_size=4 [15:09:40]MH_SAM_APDU [15:09:40]CAPDU: 80 13 00 00 [15:09:40]Write to MH i2c: E2 08 00 0C 02 80 13 00 00 00 00 00 00 8A [15:09:40]Write i2c OK [15:09:40]MH_I2C_Read... [15:09:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:40]Read from MH i2c: E2 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: E2 62 00 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: E2 62 00 0C 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 1F 14 01 00 0E 04 04 00 D2 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 2C [15:09:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 1F 14 01 00 0E 04 04 00 D2 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 [15:09:40]wFMCommunicate OK [15:09:40]SAM_PROTO_GetFieldsCounters done [15:09:40]requested_item shift.num is exist - process it [15:09:40]requested_item shift.opened is exist - process it [15:09:40]req_shift_opened [15:09:40]FM_GetShiftState [15:09:40]SAM_PROTO_GetShiftState [15:09:40]wFMCommunicate request_size=4 [15:09:40]MH_SAM_APDU [15:09:40]CAPDU: 80 13 01 00 [15:09:40]Write to MH i2c: E2 08 00 0D 02 80 13 01 00 00 00 00 00 8C [15:09:40]Write i2c OK [15:09:40]MH_I2C_Read... [15:09:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:40]Read from MH i2c: E2 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: E2 0E 00 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: E2 0E 00 0D 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 FB [15:09:40]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [15:09:40]wFMCommunicate OK [15:09:40]SAM_PROTO_GetShiftState done [15:09:40]FM_GetShiftState done [15:09:40]req_shift_opened done [15:09:40]requested_item shift.open_date is exist - process it [15:09:40]req_shift_open_date [15:09:40]req_shift_open_date done [15:09:40]produce_requested_data done [15:09:40]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70687,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [15:09:40]process_action_free close_receipt [15:09:40]json_value_free [15:09:40]json_value_free done [15:09:40]process_json_proto returns [15:09:40]Send response to host [15:09:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70687,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [15:09:40]free response buf [15:09:40]execute_script done [15:09:40]execute_script returns [15:09:40]free content buf [15:09:40]Sock 9.Close socket [15:09:40]Sock 9.Thread stoped [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:20]accept exits with 7 [15:38:20]New connection [15:38:20]New thread 3066785124 created [15:38:20]Thread 3066928484 joined [15:38:20]Waiting for new connection... [15:38:20] Sock 7.Parse request [15:38:20]Sock 7.Check first char [15:38:20]Sock 7.First char is OK [15:38:20]request: POST /json_proto HTTP/1.0 [15:38:20]Method: POST [15:38:20]URL: /json_proto [15:38:20]Method is POST - this is cgi request [15:38:20]url: /json_proto [15:38:20]query_string will be loaded in cgi processing [15:38:20]execute_cgi json_proto POST (null) [15:38:20]execute_cgi path=json_proto method=POST [15:38:20]POST find Content-Length [15:38:20]Host: 172.17.58.67:8080 [15:38:20]Content-Length: 805 [15:38:20]Content-Type: application/json [15:38:20] [15:38:20]POST finish read [15:38:20]Found Content-Length = 805 [15:38:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:20]execute_script... [15:38: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)141149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:20]POST & json_proto [15:38:20]process_json_proto [15:38:20]json parsed OK: [15:38:20]protocol is kg_v1.0 [15:38:20]action value=close_receipt [15:38:20]process_action close_receipt [15:38:20]cmd_close_receipt [15:38:20]MH_GetDate [15:38:20]Write to MH i2c: F0 00 00 0E 02 FF [15:38:20]Write i2c OK [15:38:20]MH_I2C_Read... [15:38:20]Read from MH i2c: F0 [15:38:20]MH_I2C_Read... [15:38:20]Read from MH i2c: F0 09 00 [15:38:20]MH_I2C_Read... [15:38:20]Read from MH i2c: F0 09 00 0E 02 00 ED 7D BB 66 94 51 63 64 3F [15:38:20]GetLastDocTimeStamp 1723561778 [15:38:20]current date 1723563501 [15:38:20]FM_GetShiftState [15:38:20]SAM_PROTO_GetShiftState [15:38:20]wFMCommunicate request_size=4 [15:38:20]MH_SAM_APDU [15:38:20]CAPDU: 80 13 01 00 [15:38:20]Write to MH i2c: E2 08 00 0F 02 80 13 01 00 00 00 00 00 8E [15:38:20]Write i2c OK [15:38:20]MH_I2C_Read... [15:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:20]Read from MH i2c: E2 [15:38:20]MH_I2C_Read... [15:38:20]Read from MH i2c: E2 0E 00 [15:38:20]MH_I2C_Read... [15:38:20]Read from MH i2c: E2 0E 00 0F 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 FD [15:38:20]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [15:38:20]wFMCommunicate OK [15:38:20]SAM_PROTO_GetShiftState done [15:38:20]FM_GetShiftState done [15:38:20]opened in 1723509656 [15:38:20]opened+sec_in_day 1723596056 [15:38:20]quantity*price = 50018 [15:38:20]sum+1 = 50019 [15:38:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 0.00 Безнал.: 500.18 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 42 13.08.2024 15:38 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70688 ФПД: 81126232028894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T153821&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70688&fm=81126232028894&tin=02508201610067®Number=0000000000090913&sum=50018 [15:38:21]StoreToDocumentArchive [15:38:21]shift 466 fd 70688 [15:38:21]save to /storage/0466/doc_00070688 [15:38:21]save last doc name /storage/0466/doc_00070688 to /storage/kkm_last_doc_name [15:38:21]save OK [15:38:21]Clear old archive folders... [15:38:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:21]tlvbuf is 018C1670 [15:38:21]SAM_PROTO_ClearQueue [15:38:21]wFMCommunicate request_size=4 [15:38:21]MH_SAM_APDU [15:38:21]CAPDU: 80 09 00 00 [15:38:21]Write to MH i2c: E2 08 00 1C 02 80 09 00 00 00 00 00 00 90 [15:38:21]Write i2c OK [15:38:21]MH_I2C_Read... [15:38:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:21]Read from MH i2c: E2 [15:38:21]MH_I2C_Read... [15:38:21]Read from MH i2c: E2 03 00 [15:38:21]MH_I2C_Read... [15:38:21]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [15:38:21]RAPDU: 90 00 [15:38:21]wFMCommunicate OK [15:38:21]SAM_PROTO_ClearQueue done [15:38:21]KKMCreateOFDPacket [15:38:21]OFDProtocolAddRootSTLVToBuf [15:38:21]FM_MakeSignedData [15:38:21]FM_MakeSignedData [15:38:21]SAM_PROTO_SignData [15:38:21]wFMCommunicate request_size=4 [15:38:21]MH_SAM_APDU [15:38:21]CAPDU: 80 0D 01 02 [15:38:21]Write to MH i2c: E2 08 00 1D 02 80 0D 01 02 00 00 00 00 98 [15:38:21]Write i2c OK [15:38:21]MH_I2C_Read... [15:38:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:21]Read from MH i2c: E2 [15:38:21]MH_I2C_Read... [15:38:21]Read from MH i2c: E2 03 00 [15:38:21]MH_I2C_Read... [15:38:21]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [15:38:21]RAPDU: 90 00 [15:38:21]wFMCommunicate OK [15:38:21]wFMCommunicate request_size=255 [15:38:21]MH_SAM_APDU [15:38:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 ED 7D BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 20 14 01 00 35 04 06 00 49 [15:38:21]Write to MH i2c: E2 02 01 1E 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 ED 7D BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 20 14 01 00 35 04 06 00 49 00 00 40 [15:38:21]Write i2c OK [15:38:21]MH_I2C_Read... [15:38:21]OFD Sender: No OFD packet to send [15:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:21]Read from MH i2c: E2 [15:38:21]MH_I2C_Read... [15:38:21]Read from MH i2c: E2 03 00 [15:38:21]MH_I2C_Read... [15:38:21]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [15:38:21]RAPDU: 90 00 [15:38:21]wFMCommunicate OK [15:38:21]wFMCommunicate request_size=10 [15:38:21]MH_SAM_APDU [15:38:21]CAPDU: 80 0D 02 02 05 C8 AC 3D F6 DE [15:38:21]Write to MH i2c: E2 0D 00 1F 02 80 0D 02 02 05 00 C8 AC 3D F6 DE 00 00 2A [15:38:22]Write i2c OK [15:38:22]MH_I2C_Read... [15:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:22]Read from MH i2c: E2 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: E2 03 00 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [15:38:22]RAPDU: 90 00 [15:38:22]wFMCommunicate OK [15:38:22]wFMCommunicate request_size=4 [15:38:22]MH_SAM_APDU [15:38:22]CAPDU: 80 0D 03 02 [15:38:22]Write to MH i2c: E2 08 00 20 02 80 0D 03 02 00 00 00 00 9D [15:38:22]Write i2c OK [15:38:22]MH_I2C_Read... [15:38:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:22]Read from MH i2c: E2 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: E2 0B 00 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: E2 0B 00 20 02 00 BF 80 BD 3F D7 6B FE 6E 90 00 87 [15:38:22]RAPDU: BF 80 BD 3F D7 6B FE 6E 90 00 [15:38:22]wFMCommunicate OK [15:38:22]SAM_PROTO_SignData done [15:38:22]FM_MakeSignedData done [15:38:22]CreateOFDProtocolMessage [15:38:22]wFMCommunicate request_size=4 [15:38:22]MH_SAM_APDU [15:38:22]CAPDU: 80 11 00 00 [15:38:22]Write to MH i2c: E2 08 00 21 02 80 11 00 00 00 00 00 00 9D [15:38:22]Write i2c OK [15:38:22]MH_I2C_Read... [15:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:22]Read from MH i2c: E2 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: E2 17 00 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: E2 17 00 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 F2 [15:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [15:38:22]wFMCommunicate OK [15:38:22]CreateOFDProtocolMessage done [15:38:22]OFDSenderStorePacket 70688 [15:38:22]StoreOFDPacket docnum=70688 [15:38:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 01 15 07 01 ED 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 ED 7D BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 20 14 01 00 35 04 06 00 49 C8 AC 3D F6 DE BF 80 BD 3F D7 6B FE 6E [15:38:22]CheckFolder [15:38:22]dirname=/storage/ofd_packets [15:38:22]CheckFolder done [15:38:22]ProducePacketName [15:38:22]name=ofd_packets/00070688 [15:38:22]NVStorageSaveData ofd_packets/00070688 [15:38:22]File name is /storage/ofd_packets/00070688 [15:38:22]Write 301 bytes [15:38:22]NVStorageSaveData done [15:38:22]OFDSenderStorePacket done [15:38:22]KKMCreateOFDPacket done [15:38:22]NVStorageSaveData kkm_last_timestamp [15:38:22]File name is /storage/kkm_last_timestamp [15:38:22]Write 4 bytes [15:38:22]NVStorageSaveData done [15:38:22]OFD Sender: Processing packet 70688 [packets to send 67, broken 66] [15:38:22]ProducePacketName [15:38:22]name=ofd_packets/00070688 [15:38:22]OFD Sender: To server: ‡•öpG, [15:38:22]CommunicateWithHost lk.salyk.kg:30040 [15:38:22]ConnectInit lk.salyk.kg [15:38:22]ExternCall_PrintAddStr [15:38:22]wPrintStart [15:38:22]Write to MH i2c: 01 00 00 22 02 24 [15:38:22]Write i2c OK [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: 01 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: 01 07 00 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 FF 0F 39 [15:38:22]RasterBufferAndPrint [15:38:22]line Счет N : (1)141149 [15:38:22]line ИÐÐ: 02508201610067 [15:38:22]line Контрольно-КаÑÑовый Чек [15:38:22]line ПРОДÐЖР[15:38:22]line ТРК (МРК, ГÐК) : 41 [15:38:22]line Товар: 2710124130 [15:38:22]line Ðи-92-К-5 [15:38:22]line 7.590 * 65.90 [15:38:22]line = 500.18 [15:38:22]line ÐДС 12% ÐСП 1% [15:38:22]line > о реализуемом товаре [15:38:22]line ИТОГО: 500.18 [15:38:22]line ÐСП 1% : 4.43 [15:38:22]line ÐДС 12% : 53.12 [15:38:22]line Ðаличными: 0.00 [15:38:22]line Безнал.: 500.18 [15:38:22]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [15:38:22]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [15:38:22]line СÐО: Общий режим [15:38:22]line Чек 42 13.08.2024 15:38 [15:38:22]line Смена: 466 ФФД: 1.0 [15:38:22]line ЗÐМ: 0300000140 [15:38:22]line РÐМ: 0000000000090913 [15:38:22]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [15:38:22]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [15:38:22]line ФМ: 0000000000874915 [15:38:22]line ФД: 70688 [15:38:22]line ФПД: 81126232028894 [15:38:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T153821&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70688&fm=81126232028894&tin=02508201610067®Number=0000000000090913&sum=50018 [15:38:22]Connected sock=11 [15:38: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 39 31 35 0F 01 00 00 01 15 07 01 ED 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 ED 7D BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 20 14 01 00 35 04 06 00 49 C8 AC 3D F6 DE BF 80 BD 3F D7 6B FE 6E [15:38:22]written 0, free lines is 4095 [15:38:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 BA 31 47 00 7C 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 20 14 01 00 F4 03 04 00 D8 24 BB 66 B6 04 01 00 00 31 F1 83 F8 F3 49 E9 AD [15:38:22]CommunicateWithHost err = 0 [15:38:22]CheckOFDResponse [15:38:22]1017 (14) - 77093643461234 [15:38:22]1041 (16) - 0000000000874915 [15:38:22]1040 (4) - 70688 [15:38:22]1012 (4) - 13.08.2024 09:18 [15:38:22]1206 (1) - 0 [15:38:22]OFD Sender: Remove packet 70688 [15:38:22]ProducePacketName [15:38:22]name=ofd_packets/00070688 [15:38:22]NVStorageDeleteData [15:38:22]Write to MH i2c: 01 00 00 4C 02 4E [15:38:22]Write i2c OK [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: 01 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: 01 07 00 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: 01 07 00 4C 02 00 00 00 00 00 FA 0C 5B [15:38:22]RasterBufferAndPrint [15:38:22]line [15:38:22]line [15:38:22]line [15:38:22]line [15:38:22]line [15:38:22]written 0, free lines is 3328 [15:38:22]MH_Cut [15:38:22]Write to MH i2c: D1 01 00 53 02 01 27 [15:38:22]Write i2c OK [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: D1 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: D1 01 00 [15:38:22]MH_I2C_Read... [15:38:22]Read from MH i2c: D1 01 00 53 02 00 26 [15:38:22]Write to MH i2c: 01 00 00 54 02 56 [15:38:22]Write i2c OK [15:38:22]MH_I2C_Read... [15:38:23]OFD Sender: No OFD packet to send [15:38:23]*** Cut start [15:38:23]*** Purtial cut [15:38:23]*** CUTSNS_PIN = 0 [15:38:23]*** Stage 1: CUTSNS_PIN = 1 [15:38:25]Read from MH i2c: 01 [15:38:25]MH_I2C_Read... [15:38:25]*** Stop cut motor [15:38:25]*** Cut end [15:38:25]Read from MH i2c: 01 07 00 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: 01 07 00 54 02 00 00 00 00 00 FF 0F 6B [15:38:25]process_action close_receipt done [15:38:25]requested_data is exist [15:38:25]produce_requested_data [15:38:25]requested_item fm.sn is exist - process it [15:38:25]wFMCommunicate request_size=4 [15:38:25]MH_SAM_APDU [15:38:25]CAPDU: 80 11 00 00 [15:38:25]Write to MH i2c: E2 08 00 55 02 80 11 00 00 00 00 00 00 D1 [15:38:25]Write i2c OK [15:38:25]MH_I2C_Read... [15:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:25]Read from MH i2c: E2 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 17 00 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 17 00 55 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 26 [15:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [15:38:25]wFMCommunicate OK [15:38:25]requested_item fd.num is exist - process it [15:38:25]SAM_PROTO_GetFieldsCounters [15:38:25]wFMCommunicate request_size=4 [15:38:25]MH_SAM_APDU [15:38:25]CAPDU: 80 13 00 00 [15:38:25]Write to MH i2c: E2 08 00 56 02 80 13 00 00 00 00 00 00 D4 [15:38:25]Write i2c OK [15:38:25]MH_I2C_Read... [15:38:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:25]Read from MH i2c: E2 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 62 00 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 62 00 56 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 20 14 01 00 0E 04 04 00 D2 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 7A [15:38: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 20 14 01 00 0E 04 04 00 D2 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 [15:38:25]wFMCommunicate OK [15:38:25]SAM_PROTO_GetFieldsCounters done [15:38:25]requested_item shift.num is exist - process it [15:38:25]requested_item shift.opened is exist - process it [15:38:25]req_shift_opened [15:38:25]FM_GetShiftState [15:38:25]SAM_PROTO_GetShiftState [15:38:25]wFMCommunicate request_size=4 [15:38:25]MH_SAM_APDU [15:38:25]CAPDU: 80 13 01 00 [15:38:25]Write to MH i2c: E2 08 00 57 02 80 13 01 00 00 00 00 00 D6 [15:38:25]Write i2c OK [15:38:25]MH_I2C_Read... [15:38:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:25]Read from MH i2c: E2 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 0E 00 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 0E 00 57 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 45 [15:38:25]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [15:38:25]wFMCommunicate OK [15:38:25]SAM_PROTO_GetShiftState done [15:38:25]FM_GetShiftState done [15:38:25]req_shift_opened done [15:38:25]requested_item shift.open_date is exist - process it [15:38:25]req_shift_open_date [15:38:25]req_shift_open_date done [15:38:25]produce_requested_data done [15:38:25]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70688,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [15:38:25]process_action_free close_receipt [15:38:25]json_value_free [15:38:25]json_value_free done [15:38:25]process_json_proto returns [15:38:25]Send response to host [15:38:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70688,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [15:38:25]free response buf [15:38:25]execute_script done [15:38:25]execute_script returns [15:38:25]free content buf [15:38:25]Sock 7.Close socket [15:38:25]Sock 7.Thread stoped [15:38:28]OFD Sender: No OFD packet to send [15:38:33]OFD Sender: No OFD packet to send [15:38:38]OFD Sender: No OFD packet to send [15:38:43]OFD Sender: No OFD packet to send [15:38:48]OFD Sender: No OFD packet to send [15:38:53]OFD Sender: No OFD packet to send [15:38:58]OFD Sender: No OFD packet to send [15:39:03]OFD Sender: No OFD packet to send [15:39:08]OFD Sender: No OFD packet to send [15:39:13]OFD Sender: No OFD packet to send [15:39:18]OFD Sender: No OFD packet to send [15:39:23]OFD Sender: No OFD packet to send [15:39:28]OFD Sender: No OFD packet to send [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:23]OFD Sender: No OFD packet to send [15:43:28]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:38]OFD Sender: No OFD packet to send [15:43:43]OFD Sender: No OFD packet to send [15:43:48]OFD Sender: No OFD packet to send [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [15:44:03]OFD Sender: No OFD packet to send [15:44:08]OFD Sender: No OFD packet to send [15:44:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:48]OFD Sender: No OFD packet to send [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:43]OFD Sender: No OFD packet to send [15:48:48]OFD Sender: No OFD packet to send [15:48:53]OFD Sender: No OFD packet to send [15:48:58]OFD Sender: No OFD packet to send [15:49:03]OFD Sender: No OFD packet to send [15:49:08]OFD Sender: No OFD packet to send [15:49:13]OFD Sender: No OFD packet to send [15:49:18]OFD Sender: No OFD packet to send [15:49:23]OFD Sender: No OFD packet to send [15:49:28]OFD Sender: No OFD packet to send [15:49:33]OFD Sender: No OFD packet to send [15:49:38]OFD Sender: No OFD packet to send [15:49:43]OFD Sender: No OFD packet to send [15:49:48]OFD Sender: No OFD packet to send [15:49:53]OFD Sender: No OFD packet to send [15:49:58]OFD Sender: No OFD packet to send [15:50:03]OFD Sender: No OFD packet to send [15:50:08]OFD Sender: No OFD packet to send [15:50:13]OFD Sender: No OFD packet to send [15:50:18]OFD Sender: No OFD packet to send [15:50:23]OFD Sender: No OFD packet to send [15:50:28]OFD Sender: No OFD packet to send [15:50:33]OFD Sender: No OFD packet to send [15:50:38]OFD Sender: No OFD packet to send [15:50:43]OFD Sender: No OFD packet to send [15:50:48]OFD Sender: No OFD packet to send [15:50:53]OFD Sender: No OFD packet to send [15:50:58]OFD Sender: No OFD packet to send [15:51:03]OFD Sender: No OFD packet to send [15:51:08]OFD Sender: No OFD packet to send [15:51:13]OFD Sender: No OFD packet to send [15:51:18]OFD Sender: No OFD packet to send [15:51:23]OFD Sender: No OFD packet to send [15:51:28]OFD Sender: No OFD packet to send [15:51:33]OFD Sender: No OFD packet to send [15:51:38]OFD Sender: No OFD packet to send [15:51:43]OFD Sender: No OFD packet to send [15:51:48]OFD Sender: No OFD packet to send [15:51:53]OFD Sender: No OFD packet to send [15:51:58]OFD Sender: No OFD packet to send [15:52:03]OFD Sender: No OFD packet to send [15:52:08]OFD Sender: No OFD packet to send [15:52:13]OFD Sender: No OFD packet to send [15:52:18]OFD Sender: No OFD packet to send [15:52:23]OFD Sender: No OFD packet to send [15:52:28]OFD Sender: No OFD packet to send [15:52:33]OFD Sender: No OFD packet to send [15:52:38]OFD Sender: No OFD packet to send [15:52:43]OFD Sender: No OFD packet to send [15:52:48]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]OFD Sender: No OFD packet to send [15:57:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:14]OFD Sender: No OFD packet to send [15:58:19]OFD Sender: No OFD packet to send [15:58:24]OFD Sender: No OFD packet to send [15:58:28]accept exits with 9 [15:58:28]New connection [15:58:28]New thread 3066928484 created [15:58:28]Thread 3066785124 joined [15:58:28]Waiting for new connection... [15:58:28] Sock 9.Parse request [15:58:28]Sock 9.Check first char [15:58:28]Sock 9.First char is OK [15:58:28]request: POST /json_proto HTTP/1.0 [15:58:28]Method: POST [15:58:28]URL: /json_proto [15:58:28]Method is POST - this is cgi request [15:58:28]url: /json_proto [15:58:28]query_string will be loaded in cgi processing [15:58:28]execute_cgi json_proto POST (null) [15:58:28]execute_cgi path=json_proto method=POST [15:58:28]POST find Content-Length [15:58:28]Host: 172.17.58.67:8080 [15:58:28]Content-Length: 817 [15:58:28]Content-Type: application/json [15:58:28] [15:58:28]POST finish read [15:58:28]Found Content-Length = 817 [15:58:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.000, "sum" : 659.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 659.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:28]execute_script... [15:58:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.000, "sum" : 659.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 659.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:28]POST & json_proto [15:58:28]process_json_proto [15:58:28]json parsed OK: [15:58:28]protocol is kg_v1.0 [15:58:28]action value=close_receipt [15:58:28]process_action close_receipt [15:58:28]cmd_close_receipt [15:58:28]MH_GetDate [15:58:28]Write to MH i2c: F0 00 00 58 02 49 [15:58:28]Write i2c OK [15:58:28]MH_I2C_Read... [15:58:28]Read from MH i2c: F0 [15:58:28]MH_I2C_Read... [15:58:28]Read from MH i2c: F0 09 00 [15:58:28]MH_I2C_Read... [15:58:28]Read from MH i2c: F0 09 00 58 02 00 A5 82 BB 66 94 51 63 64 46 [15:58:28]GetLastDocTimeStamp 1723563501 [15:58:28]current date 1723564709 [15:58:28]FM_GetShiftState [15:58:28]SAM_PROTO_GetShiftState [15:58:28]wFMCommunicate request_size=4 [15:58:28]MH_SAM_APDU [15:58:28]CAPDU: 80 13 01 00 [15:58:28]Write to MH i2c: E2 08 00 59 02 80 13 01 00 00 00 00 00 D8 [15:58:28]Write i2c OK [15:58:28]MH_I2C_Read... [15:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:28]Read from MH i2c: E2 [15:58:28]MH_I2C_Read... [15:58:28]Read from MH i2c: E2 0E 00 [15:58:28]MH_I2C_Read... [15:58:28]Read from MH i2c: E2 0E 00 59 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 47 [15:58:28]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [15:58:28]wFMCommunicate OK [15:58:28]SAM_PROTO_GetShiftState done [15:58:28]FM_GetShiftState done [15:58:28]opened in 1723509656 [15:58:28]opened+sec_in_day 1723596056 [15:58:28]quantity*price = 65900 [15:58:28]sum+1 = 65901 [15:58:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 659.00 ÐСП 1% : 5.83 ÐДС 12% : 69.98 Ðаличными: 0.00 Безнал.: 659.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 43 13.08.2024 15:58 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000000874915 ФД: 70689 ФПД: 109048090072753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T155829&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70689&fm=109048090072753&tin=02508201610067®Number=0000000000090913&sum=65900 [15:58:29]StoreToDocumentArchive [15:58:29]shift 466 fd 70689 [15:58:29]save to /storage/0466/doc_00070689 [15:58:29]save last doc name /storage/0466/doc_00070689 to /storage/kkm_last_doc_name [15:58:29]save OK [15:58:29]Clear old archive folders... [15:58:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:58:29]tlvbuf is 018C3280 [15:58:29]SAM_PROTO_ClearQueue [15:58:29]wFMCommunicate request_size=4 [15:58:29]MH_SAM_APDU [15:58:29]CAPDU: 80 09 00 00 [15:58:29]Write to MH i2c: E2 08 00 66 02 80 09 00 00 00 00 00 00 DA [15:58:29]Write i2c OK [15:58:29]MH_I2C_Read... [15:58:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:29]Read from MH i2c: E2 [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: E2 03 00 [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: E2 03 00 66 02 00 90 00 DC [15:58:29]RAPDU: 90 00 [15:58:29]wFMCommunicate OK [15:58:29]SAM_PROTO_ClearQueue done [15:58:29]KKMCreateOFDPacket [15:58:29]OFDProtocolAddRootSTLVToBuf [15:58:29]FM_MakeSignedData [15:58:29]FM_MakeSignedData [15:58:29]SAM_PROTO_SignData [15:58:29]wFMCommunicate request_size=4 [15:58:29]MH_SAM_APDU [15:58:29]CAPDU: 80 0D 01 02 [15:58:29]Write to MH i2c: E2 08 00 67 02 80 0D 01 02 00 00 00 00 E2 [15:58:29]Write i2c OK [15:58:29]MH_I2C_Read... [15:58:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:29]Read from MH i2c: E2 [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: E2 03 00 [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: E2 03 00 67 02 00 90 00 DD [15:58:29]RAPDU: 90 00 [15:58:29]wFMCommunicate OK [15:58:29]wFMCommunicate request_size=255 [15:58:29]MH_SAM_APDU [15:58: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 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A5 82 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 21 14 01 00 35 04 06 00 63 [15:58:29]Write to MH i2c: E2 02 01 68 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 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A5 82 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 21 14 01 00 35 04 06 00 63 00 00 DC [15:58:29]Write i2c OK [15:58:29]MH_I2C_Read... [15:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:29]Read from MH i2c: E2 [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: E2 03 00 [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: E2 03 00 68 02 00 90 00 DE [15:58:29]RAPDU: 90 00 [15:58:29]wFMCommunicate OK [15:58:29]wFMCommunicate request_size=10 [15:58:29]MH_SAM_APDU [15:58:29]CAPDU: 80 0D 02 02 05 2D BC AC 16 B1 [15:58:29]Write to MH i2c: E2 0D 00 69 02 80 0D 02 02 05 00 2D BC AC 16 B1 00 00 4B [15:58:29]Write i2c OK [15:58:29]MH_I2C_Read... [15:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:29]Read from MH i2c: E2 [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: E2 03 00 [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [15:58:29]RAPDU: 90 00 [15:58:29]wFMCommunicate OK [15:58:29]wFMCommunicate request_size=4 [15:58:29]MH_SAM_APDU [15:58:29]CAPDU: 80 0D 03 02 [15:58:29]Write to MH i2c: E2 08 00 6A 02 80 0D 03 02 00 00 00 00 E7 [15:58:29]Write i2c OK [15:58:29]MH_I2C_Read... [15:58:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:29]Read from MH i2c: E2 [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: E2 0B 00 [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: E2 0B 00 6A 02 00 DA 1D 4E 31 B5 C7 5A 02 90 00 36 [15:58:29]RAPDU: DA 1D 4E 31 B5 C7 5A 02 90 00 [15:58:29]wFMCommunicate OK [15:58:29]SAM_PROTO_SignData done [15:58:29]FM_MakeSignedData done [15:58:29]CreateOFDProtocolMessage [15:58:29]wFMCommunicate request_size=4 [15:58:29]MH_SAM_APDU [15:58:29]CAPDU: 80 11 00 00 [15:58:29]Write to MH i2c: E2 08 00 6B 02 80 11 00 00 00 00 00 00 E7 [15:58:29]Write i2c OK [15:58:29]MH_I2C_Read... [15:58:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:29]Read from MH i2c: E2 [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: E2 17 00 [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: E2 17 00 6B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 3C [15:58:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [15:58:29]wFMCommunicate OK [15:58:29]CreateOFDProtocolMessage done [15:58:29]OFDSenderStorePacket 70689 [15:58:29]StoreOFDPacket docnum=70689 [15:58:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 15 4F 07 01 33 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A5 82 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 21 14 01 00 35 04 06 00 63 2D BC AC 16 B1 DA 1D 4E 31 B5 C7 5A 02 [15:58:29]CheckFolder [15:58:29]dirname=/storage/ofd_packets [15:58:29]CheckFolder done [15:58:29]ProducePacketName [15:58:29]name=ofd_packets/00070689 [15:58:29]NVStorageSaveData ofd_packets/00070689 [15:58:29]File name is /storage/ofd_packets/00070689 [15:58:29]Write 301 bytes [15:58:29]NVStorageSaveData done [15:58:29]OFDSenderStorePacket done [15:58:29]KKMCreateOFDPacket done [15:58:29]NVStorageSaveData kkm_last_timestamp [15:58:29]File name is /storage/kkm_last_timestamp [15:58:29]Write 4 bytes [15:58:29]NVStorageSaveData done [15:58:29]ExternCall_PrintAddStr [15:58:29]wPrintStart [15:58:29]Write to MH i2c: 01 00 00 6C 02 6E [15:58:29]Write i2c OK [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: 01 [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: 01 07 00 [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 FF 0F 83 [15:58:29]RasterBufferAndPrint [15:58:29]line Счет N : (1)141150 [15:58:29]line ИÐÐ: 02508201610067 [15:58:29]line Контрольно-КаÑÑовый Чек [15:58:29]line ПРОДÐЖР[15:58:29]line ТРК (МРК, ГÐК) : 41 [15:58:29]line Товар: 2710124130 [15:58:29]line Ðи-92-К-5 [15:58:29]line 10.000 * 65.90 [15:58:29]line = 659.00 [15:58:29]line ÐДС 12% ÐСП 1% [15:58:29]line > о реализуемом товаре [15:58:29]line ИТОГО: 659.00 [15:58:29]line ÐСП 1% : 5.83 [15:58:29]line ÐДС 12% : 69.98 [15:58:29]line Ðаличными: 0.00 [15:58:29]line Безнал.: 659.00 [15:58:29]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [15:58:29]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [15:58:29]line СÐО: Общий режим [15:58:29]line Чек 43 13.08.2024 15:58 [15:58:29]line Смена: 466 ФФД: 1.0 [15:58:29]line ЗÐМ: 0300000140 [15:58:29]line РÐМ: 0000000000090913 [15:58:29]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [15:58:29]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [15:58:29]line ФМ: 0000000000874915 [15:58:29]line ФД: 70689 [15:58:29]line ФПД: 109048090072753 [15:58:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T155829&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70689&fm=109048090072753&tin=02508201610067®Number=0000000000090913&sum=65900 [15:58:30]OFD Sender: Processing packet 70689 [packets to send 67, broken 66] [15:58:30]ProducePacketName [15:58:30]name=ofd_packets/00070689 [15:58:30]OFD Sender: To server: ‡•öpG, [15:58:30]CommunicateWithHost lk.salyk.kg:30040 [15:58:30]ConnectInit lk.salyk.kg [15:58:30]written 0, free lines is 4095 [15:58:30]Connected sock=10 [15:58:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 15 4F 07 01 33 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A5 82 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 21 14 01 00 35 04 06 00 63 2D BC AC 16 B1 DA 1D 4E 31 B5 C7 5A 02 [15:58:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 70 3D 47 00 83 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 39 31 35 10 04 04 00 21 14 01 00 F4 03 04 00 90 29 BB 66 B6 04 01 00 00 52 69 78 05 0E 36 BE 45 [15:58:30]CommunicateWithHost err = 0 [15:58:30]CheckOFDResponse [15:58:30]1017 (14) - 77093643461234 [15:58:30]1041 (16) - 0000000000874915 [15:58:30]1040 (4) - 70689 [15:58:30]1012 (4) - 13.08.2024 09:38 [15:58:30]1206 (1) - 0 [15:58:30]OFD Sender: Remove packet 70689 [15:58:30]ProducePacketName [15:58:30]name=ofd_packets/00070689 [15:58:30]NVStorageDeleteData [15:58:30]Write to MH i2c: 01 00 00 96 02 98 [15:58:30]Write i2c OK [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: 01 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: 01 07 00 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: 01 07 00 96 02 00 00 00 00 00 00 0D AC [15:58:30]RasterBufferAndPrint [15:58:30]line [15:58:30]line [15:58:30]line [15:58:30]line [15:58:30]line [15:58:30]written 0, free lines is 3334 [15:58:30]MH_Cut [15:58:30]Write to MH i2c: D1 01 00 9D 02 01 71 [15:58:30]Write i2c OK [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: D1 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: D1 01 00 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: D1 01 00 9D 02 00 70 [15:58:30]Write to MH i2c: 01 00 00 9E 02 A0 [15:58:30]Write i2c OK [15:58:30]MH_I2C_Read... [15:58:31]OFD Sender: No OFD packet to send [15:58:31]*** Cut start [15:58:31]*** Purtial cut [15:58:31]*** Stage 1: CUTSNS_PIN = 1 [15:58:31]Read from MH i2c: 01 [15:58:31]MH_I2C_Read... [15:58:31]*** Stop cut motor [15:58:31]*** Cut end [15:58:31]Read from MH i2c: 01 07 00 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: 01 07 00 9E 02 00 00 00 00 00 FF 0F B5 [15:58:31]process_action close_receipt done [15:58:31]requested_data is exist [15:58:31]produce_requested_data [15:58:31]requested_item fm.sn is exist - process it [15:58:31]wFMCommunicate request_size=4 [15:58:31]MH_SAM_APDU [15:58:31]CAPDU: 80 11 00 00 [15:58:31]Write to MH i2c: E2 08 00 9F 02 80 11 00 00 00 00 00 00 1B [15:58:31]Write i2c OK [15:58:31]MH_I2C_Read... [15:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:31]Read from MH i2c: E2 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: E2 17 00 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: E2 17 00 9F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 70 [15:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [15:58:31]wFMCommunicate OK [15:58:31]requested_item fd.num is exist - process it [15:58:31]SAM_PROTO_GetFieldsCounters [15:58:31]wFMCommunicate request_size=4 [15:58:31]MH_SAM_APDU [15:58:31]CAPDU: 80 13 00 00 [15:58:31]Write to MH i2c: E2 08 00 A0 02 80 13 00 00 00 00 00 00 1E [15:58:31]Write i2c OK [15:58:31]MH_I2C_Read... [15:58:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:31]Read from MH i2c: E2 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: E2 62 00 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: E2 62 00 A0 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 21 14 01 00 0E 04 04 00 D2 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 C8 [15:58: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 21 14 01 00 0E 04 04 00 D2 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 [15:58:31]wFMCommunicate OK [15:58:31]SAM_PROTO_GetFieldsCounters done [15:58:31]requested_item shift.num is exist - process it [15:58:31]requested_item shift.opened is exist - process it [15:58:31]req_shift_opened [15:58:31]FM_GetShiftState [15:58:31]SAM_PROTO_GetShiftState [15:58:31]wFMCommunicate request_size=4 [15:58:31]MH_SAM_APDU [15:58:31]CAPDU: 80 13 01 00 [15:58:31]Write to MH i2c: E2 08 00 A1 02 80 13 01 00 00 00 00 00 20 [15:58:31]Write i2c OK [15:58:31]MH_I2C_Read... [15:58:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:31]Read from MH i2c: E2 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: E2 0E 00 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: E2 0E 00 A1 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 8F [15:58:31]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [15:58:31]wFMCommunicate OK [15:58:31]SAM_PROTO_GetShiftState done [15:58:31]FM_GetShiftState done [15:58:31]req_shift_opened done [15:58:31]requested_item shift.open_date is exist - process it [15:58:31]req_shift_open_date [15:58:31]req_shift_open_date done [15:58:31]produce_requested_data done [15:58:31]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70689,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [15:58:31]process_action_free close_receipt [15:58:31]json_value_free [15:58:31]json_value_free done [15:58:31]process_json_proto returns [15:58:31]Send response to host [15:58:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70689,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [15:58:31]free response buf [15:58:31]execute_script done [15:58:31]execute_script returns [15:58:31]free content buf [15:58:31]Sock 9.Close socket [15:58:31]Sock 9.Thread stoped [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [15:59:21]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:27]accept exits with 7 [16:02:27]New connection [16:02:27]New thread 3066785124 created [16:02:27]Thread 3066928484 joined [16:02:27]Waiting for new connection... [16:02:27] Sock 7.Parse request [16:02:27]Sock 7.Check first char [16:02:27]Sock 7.First char is OK [16:02:27]request: POST /json_proto HTTP/1.0 [16:02:27]Method: POST [16:02:27]URL: /json_proto [16:02:27]Method is POST - this is cgi request [16:02:27]url: /json_proto [16:02:27]query_string will be loaded in cgi processing [16:02:27]execute_cgi json_proto POST (null) [16:02:27]execute_cgi path=json_proto method=POST [16:02:27]POST find Content-Length [16:02:27]Host: 172.17.58.67:8080 [16:02:27]Content-Length: 948 [16:02:27]Content-Type: application/json [16:02:27] [16:02:27]POST finish read [16:02:27]Found Content-Length = 948 [16:02:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17477", "tax_sys" : 0, "items" : [ { "code": "4860114390161", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A\u043E\u0433\u043E\u043B\u044C\u043D\u044B\u0439 \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0413\u0440\u0443\u0448", "price" : 155.00, "quantity" : 1.000, "sum" : 155.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" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:27]execute_script... [16:02:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17477", "tax_sys" : 0, "items" : [ { "code": "4860114390161", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A\u043E\u0433\u043E\u043B\u044C\u043D\u044B\u0439 \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0413\u0440\u0443\u0448", "price" : 155.00, "quantity" : 1.000, "sum" : 155.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" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:27]POST & json_proto [16:02:27]process_json_proto [16:02:27]json parsed OK: [16:02:27]protocol is kg_v1.0 [16:02:27]action value=close_receipt [16:02:27]process_action close_receipt [16:02:27]cmd_close_receipt [16:02:27]MH_GetDate [16:02:27]Write to MH i2c: F0 00 00 A2 02 93 [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: F0 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: F0 09 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: F0 09 00 A2 02 00 94 83 BB 66 94 51 63 64 80 [16:02:27]GetLastDocTimeStamp 1723564709 [16:02:27]current date 1723564948 [16:02:27]FM_GetShiftState [16:02:27]SAM_PROTO_GetShiftState [16:02:27]wFMCommunicate request_size=4 [16:02:27]MH_SAM_APDU [16:02:27]CAPDU: 80 13 01 00 [16:02:27]Write to MH i2c: E2 08 00 A3 02 80 13 01 00 00 00 00 00 22 [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:27]Read from MH i2c: E2 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 0E 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 0E 00 A3 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 91 [16:02:27]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [16:02:27]wFMCommunicate OK [16:02:27]SAM_PROTO_GetShiftState done [16:02:27]FM_GetShiftState done [16:02:27]opened in 1723509656 [16:02:27]opened+sec_in_day 1723596056 [16:02:27]quantity*price = 15500 [16:02:27]sum+1 = 15501 [16:02:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 ÐСП 1% : 1.37 ÐДС 12% : 16.46 Ðаличными: 0.00 Безнал.: 155.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 44 13.08.2024 16:02 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70690 ФПД: 32076560772499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T160228&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70690&fm=32076560772499&tin=02508201610067®Number=0000000000090913&sum=15500 0 [16:02:28]StoreToDocumentArchive [16:02:28]shift 466 fd 70690 [16:02:28]save to /storage/0466/doc_00070690 [16:02:28]save last doc name /storage/0466/doc_00070690 to /storage/kkm_last_doc_name [16:02:28]save OK [16:02:28]Clear old archive folders... [16:02:28]ProcessDocumentItem done err = 0, tmpTLVsize=319 [16:02:28]tlvbuf is 018AFC90 [16:02:28]SAM_PROTO_ClearQueue [16:02:28]wFMCommunicate request_size=4 [16:02:28]MH_SAM_APDU [16:02:28]CAPDU: 80 09 00 00 [16:02:28]Write to MH i2c: E2 08 00 B0 02 80 09 00 00 00 00 00 00 24 [16:02:28]Write i2c OK [16:02:28]MH_I2C_Read... [16:02:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:28]Read from MH i2c: E2 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: E2 03 00 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: E2 03 00 B0 02 00 90 00 26 [16:02:28]RAPDU: 90 00 [16:02:28]wFMCommunicate OK [16:02:28]SAM_PROTO_ClearQueue done [16:02:28]KKMCreateOFDPacket [16:02:28]OFDProtocolAddRootSTLVToBuf [16:02:28]FM_MakeSignedData [16:02:28]FM_MakeSignedData [16:02:28]SAM_PROTO_SignData [16:02:28]wFMCommunicate request_size=4 [16:02:28]MH_SAM_APDU [16:02:28]CAPDU: 80 0D 01 02 [16:02:28]Write to MH i2c: E2 08 00 B1 02 80 0D 01 02 00 00 00 00 2C [16:02:28]Write i2c OK [16:02:28]MH_I2C_Read... [16:02:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:28]Read from MH i2c: E2 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: E2 03 00 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: E2 03 00 B1 02 00 90 00 27 [16:02:28]RAPDU: 90 00 [16:02:28]wFMCommunicate OK [16:02:28]wFMCommunicate request_size=255 [16:02:28]MH_SAM_APDU [16:02:28]CAPDU: 80 0D 02 02 FA 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 36 31 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 93 D1 80 D1 83 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 94 83 [16:02:28]Write to MH i2c: E2 02 01 B2 02 80 0D 02 02 FA 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 36 31 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 93 D1 80 D1 83 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 94 83 00 00 0E [16:02:28]Write i2c OK [16:02:28]MH_I2C_Read... [16:02:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:28]Read from MH i2c: E2 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: E2 03 00 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: E2 03 00 B2 02 00 90 00 28 [16:02:28]RAPDU: 90 00 [16:02:28]wFMCommunicate OK [16:02:28]wFMCommunicate request_size=78 [16:02:28]MH_SAM_APDU [16:02:28]CAPDU: 80 0D 02 02 49 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 22 14 01 00 35 04 06 00 1D 2C 68 02 AD 93 [16:02:28]Write to MH i2c: E2 51 00 B3 02 80 0D 02 02 49 00 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 22 14 01 00 35 04 06 00 1D 2C 68 02 AD 93 00 00 89 [16:02:28]Write i2c OK [16:02:28]MH_I2C_Read... [16:02:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:28]Read from MH i2c: E2 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: E2 03 00 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: E2 03 00 B3 02 00 90 00 29 [16:02:28]RAPDU: 90 00 [16:02:28]wFMCommunicate OK [16:02:28]wFMCommunicate request_size=4 [16:02:28]MH_SAM_APDU [16:02:28]CAPDU: 80 0D 03 02 [16:02:28]Write to MH i2c: E2 08 00 B4 02 80 0D 03 02 00 00 00 00 31 [16:02:28]Write i2c OK [16:02:28]MH_I2C_Read... [16:02:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:28]Read from MH i2c: E2 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: E2 0B 00 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: E2 0B 00 B4 02 00 AF 38 D8 AA A6 3A AD 6A 90 00 92 [16:02:28]RAPDU: AF 38 D8 AA A6 3A AD 6A 90 00 [16:02:28]wFMCommunicate OK [16:02:28]SAM_PROTO_SignData done [16:02:28]FM_MakeSignedData done [16:02:28]CreateOFDProtocolMessage [16:02:28]wFMCommunicate request_size=4 [16:02:28]MH_SAM_APDU [16:02:28]CAPDU: 80 11 00 00 [16:02:28]Write to MH i2c: E2 08 00 B5 02 80 11 00 00 00 00 00 00 31 [16:02:28]Write i2c OK [16:02:28]MH_I2C_Read... [16:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:28]Read from MH i2c: E2 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: E2 17 00 [16:02:28]MH_I2C_Read... [16:02:28]Read from MH i2c: E2 17 00 B5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 86 [16:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:02:28]wFMCommunicate OK [16:02:28]CreateOFDProtocolMessage done [16:02:28]OFDSenderStorePacket 70690 [16:02:28]StoreOFDPacket docnum=70690 [16:02:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 53 01 00 00 41 56 4B 01 74 B7 5A 03 01 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 36 31 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 93 D1 80 D1 83 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 94 83 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 22 14 01 00 35 04 06 00 1D 2C 68 02 AD 93 AF 38 D8 AA A6 3A AD 6A [16:02:28]CheckFolder [16:02:28]dirname=/storage/ofd_packets [16:02:28]CheckFolder done [16:02:28]ProducePacketName [16:02:28]name=ofd_packets/00070690 [16:02:28]NVStorageSaveData ofd_packets/00070690 [16:02:28]File name is /storage/ofd_packets/00070690 [16:02:28]Write 369 bytes [16:02:28]NVStorageSaveData done [16:02:28]OFDSenderStorePacket done [16:02:28]KKMCreateOFDPacket done [16:02:28]NVStorageSaveData kkm_last_timestamp [16:02:28]File name is /storage/kkm_last_timestamp [16:02:28]Write 4 bytes [16:02:28]NVStorageSaveData done [16:02:28]ExternCall_PrintAddStr [16:02:28]wPrintStart [16:02:28]Write to MH i2c: 01 00 00 B6 02 B8 [16:02:29]Write i2c OK [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: 01 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: 01 07 00 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 FF 0F CD [16:02:29]RasterBufferAndPrint [16:02:29]line Счет N : (3)17477 [16:02:29]line ИÐÐ: 02508201610067 [16:02:29]line Контрольно-КаÑÑовый Чек [16:02:29]line ПРОДÐЖР[16:02:29]line Товар: 4860114390161 [16:02:29]line Ðапиток безалкогольный газированный Груш [16:02:29]line 1.000 * 155.00 [16:02:29]line = 155.00 [16:02:29]line ÐДС 12% ÐСП 1% [16:02:29]line > о реализуемом товаре [16:02:29]line ИТОГО: 155.00 [16:02:29]line ÐСП 1% : 1.37 [16:02:29]line ÐДС 12% : 16.46 [16:02:29]line Ðаличными: 0.00 [16:02:29]line Безнал.: 155.00 [16:02:29]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [16:02:29]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [16:02:29]line СÐО: Общий режим [16:02:29]line Чек 44 13.08.2024 16:02 [16:02:29]line Смена: 466 ФФД: 1.0 [16:02:29]line ЗÐМ: 0300000140 [16:02:29]line РÐМ: 0000000000090913 [16:02:29]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [16:02:29]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [16:02:29]line ФМ: 0000000000874915 [16:02:29]line ФД: 70690 [16:02:29]line ФПД: 32076560772499 [16:02:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T160228&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70690&fm=32076560772499&tin=02508201610067®Number=0000000000090913&sum=15500 [16:02:29]line 0 [16:02:29]OFD Sender: Processing packet 70690 [packets to send 67, broken 66] [16:02:29]ProducePacketName [16:02:29]name=ofd_packets/00070690 [16:02:29]OFD Sender: To server: ‡•öpG, [16:02:29]CommunicateWithHost lk.salyk.kg:30040 [16:02:29]ConnectInit lk.salyk.kg [16:02:29]written 0, free lines is 4095 [16:02:29]Connected sock=10 [16:02: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 39 31 35 53 01 00 00 41 56 4B 01 74 B7 5A 03 01 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 36 31 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 93 D1 80 D1 83 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 94 83 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 22 14 01 00 35 04 06 00 1D 2C 68 02 AD 93 AF 38 D8 AA A6 3A AD 6A [16:02:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 A1 5D 47 00 B4 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 22 14 01 00 F4 03 04 00 7F 2A BB 66 B6 04 01 00 00 5E 2C 53 4D CE F5 E1 24 [16:02:29]CommunicateWithHost err = 0 [16:02:29]CheckOFDResponse [16:02:29]1017 (14) - 77093643461234 [16:02:29]1041 (16) - 0000000000874915 [16:02:29]1040 (4) - 70690 [16:02:29]1012 (4) - 13.08.2024 09:42 [16:02:29]1206 (1) - 0 [16:02:29]OFD Sender: Remove packet 70690 [16:02:29]ProducePacketName [16:02:29]name=ofd_packets/00070690 [16:02:29]NVStorageDeleteData [16:02:29]Write to MH i2c: 01 00 00 E1 02 E3 [16:02:29]Write i2c OK [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: 01 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: 01 07 00 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: 01 07 00 E1 02 00 00 00 00 00 DC 0C D2 [16:02:29]RasterBufferAndPrint [16:02:29]line [16:02:29]line [16:02:29]line [16:02:29]line [16:02:29]line [16:02:29]written 0, free lines is 3301 [16:02:29]MH_Cut [16:02:29]Write to MH i2c: D1 01 00 E8 02 01 BC [16:02:29]Write i2c OK [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: D1 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: D1 01 00 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: D1 01 00 E8 02 00 BB [16:02:29]Write to MH i2c: 01 00 00 E9 02 EB [16:02:29]Write i2c OK [16:02:29]MH_I2C_Read... [16:02:30]OFD Sender: No OFD packet to send [16:02:30]*** Cut start [16:02:30]*** Purtial cut [16:02:30]*** CUTSNS_PIN = 0 [16:02:30]*** Stage 1: CUTSNS_PIN = 1 [16:02:32]Read from MH i2c: 01 [16:02:32]MH_I2C_Read... [16:02:32]*** Stop cut motor [16:02:32]*** Cut end [16:02:32]Read from MH i2c: 01 07 00 [16:02:32]MH_I2C_Read... [16:02:32]Read from MH i2c: 01 07 00 E9 02 00 00 00 00 00 FF 0F 00 [16:02:32]process_action close_receipt done [16:02:32]requested_data is exist [16:02:32]produce_requested_data [16:02:32]requested_item fm.sn is exist - process it [16:02:32]wFMCommunicate request_size=4 [16:02:32]MH_SAM_APDU [16:02:32]CAPDU: 80 11 00 00 [16:02:32]Write to MH i2c: E2 08 00 EA 02 80 11 00 00 00 00 00 00 66 [16:02:32]Write i2c OK [16:02:32]MH_I2C_Read... [16:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:32]Read from MH i2c: E2 [16:02:32]MH_I2C_Read... [16:02:32]Read from MH i2c: E2 17 00 [16:02:32]MH_I2C_Read... [16:02:32]Read from MH i2c: E2 17 00 EA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 BB [16:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:02:32]wFMCommunicate OK [16:02:32]requested_item fd.num is exist - process it [16:02:32]SAM_PROTO_GetFieldsCounters [16:02:32]wFMCommunicate request_size=4 [16:02:32]MH_SAM_APDU [16:02:32]CAPDU: 80 13 00 00 [16:02:32]Write to MH i2c: E2 08 00 EB 02 80 13 00 00 00 00 00 00 69 [16:02:32]Write i2c OK [16:02:32]MH_I2C_Read... [16:02:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:32]Read from MH i2c: E2 [16:02:32]MH_I2C_Read... [16:02:32]Read from MH i2c: E2 62 00 [16:02:32]MH_I2C_Read... [16:02:32]Read from MH i2c: E2 62 00 EB 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 22 14 01 00 0E 04 04 00 D2 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 17 [16:02:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 22 14 01 00 0E 04 04 00 D2 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 [16:02:32]wFMCommunicate OK [16:02:32]SAM_PROTO_GetFieldsCounters done [16:02:32]requested_item shift.num is exist - process it [16:02:32]requested_item shift.opened is exist - process it [16:02:32]req_shift_opened [16:02:32]FM_GetShiftState [16:02:32]SAM_PROTO_GetShiftState [16:02:32]wFMCommunicate request_size=4 [16:02:32]MH_SAM_APDU [16:02:32]CAPDU: 80 13 01 00 [16:02:32]Write to MH i2c: E2 08 00 EC 02 80 13 01 00 00 00 00 00 6B [16:02:32]Write i2c OK [16:02:32]MH_I2C_Read... [16:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:32]Read from MH i2c: E2 [16:02:32]MH_I2C_Read... [16:02:32]Read from MH i2c: E2 0E 00 [16:02:32]MH_I2C_Read... [16:02:32]Read from MH i2c: E2 0E 00 EC 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 DA [16:02:32]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [16:02:32]wFMCommunicate OK [16:02:32]SAM_PROTO_GetShiftState done [16:02:32]FM_GetShiftState done [16:02:32]req_shift_opened done [16:02:32]requested_item shift.open_date is exist - process it [16:02:32]req_shift_open_date [16:02:32]req_shift_open_date done [16:02:32]produce_requested_data done [16:02:32]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70690,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [16:02:32]process_action_free close_receipt [16:02:32]json_value_free [16:02:32]json_value_free done [16:02:32]process_json_proto returns [16:02:32]Send response to host [16:02:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70690,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [16:02:32]free response buf [16:02:32]execute_script done [16:02:32]execute_script returns [16:02:32]free content buf [16:02:32]Sock 7.Close socket [16:02:32]Sock 7.Thread stoped [16:02:35]OFD Sender: No OFD packet to send [16:02:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:05:20]ConnectInit Can't connect to host [16:05:24]OFD Sender: No OFD packet to send [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:20]accept exits with 9 [16:09:20]New connection [16:09:20]New thread 3067448676 created [16:09:20]Waiting for new connection... [16:09:20] Sock 9.Parse request [16:09:20]Sock 9.Check first char [16:09:20]Sock 9.First char is OK [16:09:20]request: POST /json_proto HTTP/1.0 [16:09:20]Method: POST [16:09:20]URL: /json_proto [16:09:20]Method is POST - this is cgi request [16:09:20]url: /json_proto [16:09:20]query_string will be loaded in cgi processing [16:09:20]execute_cgi json_proto POST (null) [16:09:20]execute_cgi path=json_proto method=POST [16:09:20]POST find Content-Length [16:09:20]Host: 172.17.58.67:8080 [16:09:20]Content-Length: 215 [16:09:20]Content-Type: application/json [16:09:20] [16:09:20]POST finish read [16:09:20]Found Content-Length = 215 [16:09:20]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" ] } } [16:09:20]execute_script... [16:09:20]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" ] } } [16:09:20]POST & json_proto [16:09:20]process_json_proto [16:09:20]json parsed OK: [16:09:20]protocol is kg_v1.0 [16:09:20]action value=get_value [16:09:20]process_action get_value [16:09:20]cmd_get_value [16:09:20]process_action get_value done [16:09:20]requested_data is exist [16:09:20]produce_requested_data [16:09:20]requested_item kkm.sn is exist - process it [16:09:20]requested_item kkm.ver is exist - process it [16:09:20]requested_item fm.sn is exist - process it [16:09:20]wFMCommunicate request_size=4 [16:09:20]MH_SAM_APDU [16:09:20]CAPDU: 80 11 00 00 [16:09:20]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [16:09:20]Write i2c OK [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 17 00 [16:09:20]MH_I2C_Read... [16:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:20]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 39 31 35 90 00 DF [16:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:09:20]wFMCommunicate OK [16:09:20]requested_item fd.num is exist - process it [16:09:20]SAM_PROTO_GetFieldsCounters [16:09:20]wFMCommunicate request_size=4 [16:09:20]MH_SAM_APDU [16:09:20]CAPDU: 80 13 00 00 [16:09:20]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [16:09:20]Write i2c OK [16:09:20]MH_I2C_Read... [16:09:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:20]Read from MH i2c: E2 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 62 00 [16:09:20]MH_I2C_Read... [16:09:20]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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 22 14 01 00 0E 04 04 00 D2 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 3B [16:09:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 22 14 01 00 0E 04 04 00 D2 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 [16:09:20]wFMCommunicate OK [16:09:20]SAM_PROTO_GetFieldsCounters done [16:09:20]requested_item shift.num is exist - process it [16:09:20]requested_item shift.opened is exist - process it [16:09:20]req_shift_opened [16:09:20]FM_GetShiftState [16:09:20]SAM_PROTO_GetShiftState [16:09:20]wFMCommunicate request_size=4 [16:09:20]MH_SAM_APDU [16:09:20]CAPDU: 80 13 01 00 [16:09:20]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [16:09:20]Write i2c OK [16:09:20]MH_I2C_Read... [16:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:20]Read from MH i2c: E2 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 0E 00 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 FE [16:09:20]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [16:09:20]wFMCommunicate OK [16:09:20]SAM_PROTO_GetShiftState done [16:09:20]FM_GetShiftState done [16:09:20]req_shift_opened done [16:09:20]requested_item shift.open_date is exist - process it [16:09:20]req_shift_open_date [16:09:20]req_shift_open_date done [16:09:20]produce_requested_data done [16:09:20]produce_requested_data return {"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70690,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [16:09:20]process_action_free get_value [16:09:20]json_value_free [16:09:20]json_value_free done [16:09:20]process_json_proto returns [16:09:20]Send response to host [16:09:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70690,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [16:09:20]free response buf [16:09:20]execute_script done [16:09:20]execute_script returns [16:09:20]free content buf [16:09:20]Sock 9.Close socket [16:09:20]Sock 9.Thread stoped [16:09:20]accept exits with 7 [16:09:20]New connection [16:09:20]New thread 3067305316 created [16:09:20]Thread 3067448676 joined [16:09:20]Waiting for new connection... [16:09:20] Sock 7.Parse request [16:09:20]Sock 7.Check first char [16:09:20]Sock 7.First char is OK [16:09:20]request: POST /json_proto HTTP/1.0 [16:09:20]Method: POST [16:09:20]URL: /json_proto [16:09:20]Method is POST - this is cgi request [16:09:20]url: /json_proto [16:09:20]query_string will be loaded in cgi processing [16:09:20]execute_cgi json_proto POST (null) [16:09:20]execute_cgi path=json_proto method=POST [16:09:20]POST find Content-Length [16:09:20]Host: 172.17.58.67:8080 [16:09:20]Content-Length: 331 [16:09:20]Content-Type: application/json [16:09:20] [16:09:20]POST finish read [16:09:20]Found Content-Length = 331 [16:09:20]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" ] } } [16:09:20]execute_script... [16:09:20]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" ] } } [16:09:20]POST & json_proto [16:09:20]process_json_proto [16:09:20]json parsed OK: [16:09:20]protocol is kg_v1.0 [16:09:20]action value=get_value [16:09:20]process_action get_value [16:09:21]cmd_get_value [16:09:21]process_action get_value done [16:09:21]requested_data is exist [16:09:21]produce_requested_data [16:09:21]requested_item fm.sale.total is exist - process it [16:09:21]SAM_PROTO_GetFMData [16:09:21]wFMCommunicate request_size=4 [16:09:21]MH_SAM_APDU [16:09:21]CAPDU: 80 13 03 00 [16:09:21]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [16:09:21]Write i2c OK [16:09:21]MH_I2C_Read... [16:09:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:09:21]Read from MH i2c: E2 [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: E2 FD 00 [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: E2 FD 00 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 7E 10 01 00 69 04 A3 00 6F 04 04 00 49 07 01 00 B1 04 05 00 44 E4 B5 C9 01 70 04 05 00 7C 76 B6 5F 01 72 04 04 00 C8 6D FF 69 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 B8 E0 9C 30 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 85 07 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 35 09 00 00 B1 04 04 00 90 50 60 14 70 04 04 00 F4 17 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F5 0B 2A 02 90 00 05 [16:09:21]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 7E 10 01 00 69 04 A3 00 6F 04 04 00 49 07 01 00 B1 04 05 00 44 E4 B5 C9 01 70 04 05 00 7C 76 B6 5F 01 72 04 04 00 C8 6D FF 69 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 B8 E0 9C 30 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 85 07 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 35 09 00 00 B1 04 04 00 90 50 60 14 70 04 04 00 F4 17 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F5 0B 2A 02 90 00 [16:09:21]wFMCommunicate OK [16:09:21]wFMCommunicate request_size=4 [16:09:21]MH_SAM_APDU [16:09:21]CAPDU: 80 17 00 00 [16:09:21]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [16:09:21]Write i2c OK [16:09:21]MH_I2C_Read... [16:09:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:09:21]Read from MH i2c: E2 [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: E2 FD 00 [16:09:21]MH_I2C_Read... [16:09:21]Read from MH i2c: E2 FD 00 14 00 00 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 33 2B 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 1C [16:09:21]RAPDU: 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 33 2B 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 [16:09:21]wFMCommunicate OK [16:09:21]wFMCommunicate request_size=4 [16:09:21]MH_SAM_APDU [16:09:21]CAPDU: 80 17 00 00 [16:09:21]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [16:09:21]Write i2c OK [16:09:21]MH_I2C_Read... [16:09:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:09:22]Read from MH i2c: E2 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 FD 00 [16:09:22]MH_I2C_Read... [16:09:22]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 [16:09:22]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 [16:09:22]wFMCommunicate OK [16:09:22]wFMCommunicate request_size=4 [16:09:22]MH_SAM_APDU [16:09:22]CAPDU: 80 17 00 00 [16:09:22]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:09:22]Read from MH i2c: E2 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 FD 00 [16:09:22]MH_I2C_Read... [16:09:22]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 [16:09:22]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 [16:09:22]wFMCommunicate OK [16:09:22]wFMCommunicate request_size=4 [16:09:22]MH_SAM_APDU [16:09:22]CAPDU: 80 17 00 00 [16:09:22]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [16:09:22]Read from MH i2c: E2 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 E5 00 [16:09:22]MH_I2C_Read... [16:09:22]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 [16:09:22]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 [16:09:22]wFMCommunicate OK [16:09:22]SAM_PROTO_GetFMData done [16:09:22]requested_item fm.sale_refund.total is exist - process it [16:09:22]requested_item fm.buy.total is exist - process it [16:09:22]requested_item shift.sale.total is exist - process it [16:09:22]SAM_PROTO_GetShiftData [16:09:22]wFMCommunicate request_size=4 [16:09:22]MH_SAM_APDU [16:09:22]CAPDU: 80 13 02 00 [16:09:22]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:09:23]Read from MH i2c: E2 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 FD 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 2C 00 00 00 69 04 9B 00 6F 04 04 00 29 00 00 00 B1 04 03 00 EE 77 37 70 04 03 00 90 08 1C 72 04 03 00 5E 6F 1B 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 27 E4 05 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 AF 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 03 00 00 00 B1 04 03 00 B0 71 0B 70 04 03 00 B0 71 0B 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 2C 37 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 13 [16:09:23]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 2C 00 00 00 69 04 9B 00 6F 04 04 00 29 00 00 00 B1 04 03 00 EE 77 37 70 04 03 00 90 08 1C 72 04 03 00 5E 6F 1B 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 27 E4 05 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 AF 7D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 03 00 00 00 B1 04 03 00 B0 71 0B 70 04 03 00 B0 71 0B 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 2C 37 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [16:09:23]wFMCommunicate OK [16:09:23]wFMCommunicate request_size=4 [16:09:23]MH_SAM_APDU [16:09:23]CAPDU: 80 17 00 00 [16:09:23]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:09:23]Read from MH i2c: E2 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 FD 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 EE 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 5F [16:09:23]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 EE 19 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [16:09:23]wFMCommunicate OK [16:09:23]wFMCommunicate request_size=4 [16:09:23]MH_SAM_APDU [16:09:23]CAPDU: 80 17 00 00 [16:09:23]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:09:23]Read from MH i2c: E2 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 FD 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [16:09:23]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [16:09:23]wFMCommunicate OK [16:09:23]wFMCommunicate request_size=4 [16:09:23]MH_SAM_APDU [16:09:23]CAPDU: 80 17 00 00 [16:09:23]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:09:23]Read from MH i2c: E2 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 FD 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 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 90 00 13 [16:09:23]RAPDU: EF 03 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 90 00 [16:09:23]wFMCommunicate OK [16:09:23]wFMCommunicate request_size=4 [16:09:23]MH_SAM_APDU [16:09:23]CAPDU: 80 17 00 00 [16:09:23]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [16:09:24]Read from MH i2c: E2 [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: E2 D6 00 [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: E2 D6 00 1C 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 7E [16:09:24]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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]wFMCommunicate OK [16:09:24]SAM_PROTO_GetShiftData done [16:09:24]requested_item shift.sale.total_cash is exist - process it [16:09:24]requested_item shift.sale_refund.total is exist - process it [16:09:24]requested_item shift.sale_refund.total_cash is exist - process it [16:09:24]requested_item shift.buy.total is exist - process it [16:09:24]requested_item shift.buy.total_cash is exist - process it [16:09:24]produce_requested_data done [16:09:24]produce_requested_data return {"fm.sale.total":76791081.64,"fm.sale_refund.total":3418564.00,"fm.buy.total":0.00,"shift.sale.total":36351.82,"shift.sale.total_cash":18372.00,"shift.sale_refund.total":7500.00,"shift.sale_refund.total_cash":7500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:09:24]process_action_free get_value [16:09:24]json_value_free [16:09:24]json_value_free done [16:09:24]process_json_proto returns [16:09:24]Send response to host [16:09:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76791081.64,"fm.sale_refund.total":3418564.00,"fm.buy.total":0.00,"shift.sale.total":36351.82,"shift.sale.total_cash":18372.00,"shift.sale_refund.total":7500.00,"shift.sale_refund.total_cash":7500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:09:24]free response buf [16:09:24]execute_script done [16:09:24]execute_script returns [16:09:24]free content buf [16:09:24]Sock 7.Close socket [16:09:24]Sock 7.Thread stoped [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:35]OFD Sender: No OFD packet to send [16:11:40]OFD Sender: No OFD packet to send [16:11:45]OFD Sender: No OFD packet to send [16:11:50]OFD Sender: No OFD packet to send [16:11:55]OFD Sender: No OFD packet to send [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:35]OFD Sender: No OFD packet to send [16:15:40]OFD Sender: No OFD packet to send [16:15:45]OFD Sender: No OFD packet to send [16:15:50]OFD Sender: No OFD packet to send [16:15:55]OFD Sender: No OFD packet to send [16:16:00]OFD Sender: No OFD packet to send [16:16:05]OFD Sender: No OFD packet to send [16:16:10]OFD Sender: No OFD packet to send [16:16:15]OFD Sender: No OFD packet to send [16:16:20]OFD Sender: No OFD packet to send [16:16:25]OFD Sender: No OFD packet to send [16:16:30]OFD Sender: No OFD packet to send [16:16:35]OFD Sender: No OFD packet to send [16:16:40]OFD Sender: No OFD packet to send [16:16:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:12]accept exits with 9 [16:20:12]New connection [16:20:12]New thread 3067448676 created [16:20:12]Thread 3067305316 joined [16:20:12]Waiting for new connection... [16:20:12] Sock 9.Parse request [16:20:12]Sock 9.Check first char [16:20:12]Sock 9.First char is OK [16:20:12]request: POST /json_proto HTTP/1.0 [16:20:12]Method: POST [16:20:12]URL: /json_proto [16:20:12]Method is POST - this is cgi request [16:20:12]url: /json_proto [16:20:12]query_string will be loaded in cgi processing [16:20:12]execute_cgi json_proto POST (null) [16:20:12]execute_cgi path=json_proto method=POST [16:20:12]POST find Content-Length [16:20:12]Host: 172.17.58.67:8080 [16:20:12]Content-Length: 1207 [16:20:12]Content-Type: application/json [16:20:12] [16:20:12]POST finish read [16:20:12]Found Content-Length = 1207 [16:20: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141151\u000A13.08.2024 15:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1647.50\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\u000A03033\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:12]execute_script... [16:20: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141151\u000A13.08.2024 15:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1647.50\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\u000A03033\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:12]POST & json_proto [16:20:12]process_json_proto [16:20:12]json parsed OK: [16:20:12]protocol is kg_v1.0 [16:20:12]action value=print_text [16:20:12]process_action print_text [16:20:12]cmd_print_text [16:20:12]ExternCall_PrintAddStr [16:20:12]wPrintStart [16:20:12]Write to MH i2c: 01 00 00 1D 00 1D [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: 01 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: 01 07 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [16:20:12]RasterBufferAndPrint [16:20:12]line *****ТОВÐРÐЫЙ ЧЕК***** [16:20:12]line ÐЗС 39 [16:20:12]line Партнер нефть [16:20:12]line 02508201610067 [16:20:12]line КаÑÑир : ОваÑбекова Л. [16:20:12]line Счет N : (1)141151 [16:20:12]line 13.08.2024 15:39 [16:20:12]line ПРОДÐЖР[16:20:12]line ТРК (МРК, ГÐК): 31 [16:20:12]line Вид ГСМ : 2710124130 [16:20:12]line Ðи-92-К-5 [16:20:12]line 25.000 x 65.90 [16:20:12]line ИТОГ: 1647.50 [16:20:12]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [16:20:12]line 03033 [16:20:12]line ______________________ [16:20:12]line (подпиÑÑŒ) [16:20:12]written 0, free lines is 4095 [16:20:12]Write to MH i2c: 01 00 00 31 00 31 [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: 01 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: 01 07 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 12 0E 58 [16:20:12]RasterBufferAndPrint [16:20:12]line [16:20:12]line [16:20:12]line [16:20:12]line [16:20:12]line [16:20:12]written 0, free lines is 3603 [16:20:12]MH_Cut [16:20:12]Write to MH i2c: D1 01 00 38 00 01 0A [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: D1 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: D1 01 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: D1 01 00 38 00 00 09 [16:20:12]Write to MH i2c: 01 00 00 39 00 39 [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:13]*** Cut start [16:20:13]*** Purtial cut [16:20:13]*** Stage 1: CUTSNS_PIN = 1 [16:20:13]Read from MH i2c: 01 [16:20:13]MH_I2C_Read... [16:20:13]Read from MH i2c: 01 07 00 [16:20:13]MH_I2C_Read... [16:20:13]*** Stop cut motor [16:20:13]*** Cut end [16:20:13]Read from MH i2c: 01 07 00 39 00 00 00 00 00 00 FF 0F 4E [16:20:13]process_action print_text done [16:20:13]requested_data is exist [16:20:13]produce_requested_data [16:20:13]requested_item fm.sn is exist - process it [16:20:13]wFMCommunicate request_size=4 [16:20:13]MH_SAM_APDU [16:20:13]CAPDU: 80 11 00 00 [16:20:13]Write to MH i2c: E2 08 00 3A 00 80 11 00 00 00 00 00 00 B4 [16:20:13]Write i2c OK [16:20:13]MH_I2C_Read... [16:20:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:13]Read from MH i2c: E2 [16:20:13]MH_I2C_Read... [16:20:13]Read from MH i2c: E2 17 00 [16:20:13]MH_I2C_Read... [16:20:13]Read from MH i2c: E2 17 00 3A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 09 [16:20:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:20:13]wFMCommunicate OK [16:20:13]requested_item fd.num is exist - process it [16:20:13]SAM_PROTO_GetFieldsCounters [16:20:13]wFMCommunicate request_size=4 [16:20:13]MH_SAM_APDU [16:20:13]CAPDU: 80 13 00 00 [16:20:13]Write to MH i2c: E2 08 00 3B 00 80 13 00 00 00 00 00 00 B7 [16:20:13]Write i2c OK [16:20:13]MH_I2C_Read... [16:20:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:13]Read from MH i2c: E2 [16:20:13]MH_I2C_Read... [16:20:13]Read from MH i2c: E2 62 00 [16:20:13]MH_I2C_Read... [16:20:13]Read from MH i2c: E2 62 00 3B 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 22 14 01 00 0E 04 04 00 D2 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 65 [16:20: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 22 14 01 00 0E 04 04 00 D2 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 [16:20:13]wFMCommunicate OK [16:20:13]SAM_PROTO_GetFieldsCounters done [16:20:13]requested_item shift.num is exist - process it [16:20:13]requested_item shift.opened is exist - process it [16:20:13]req_shift_opened [16:20:13]FM_GetShiftState [16:20:13]SAM_PROTO_GetShiftState [16:20:13]wFMCommunicate request_size=4 [16:20:13]MH_SAM_APDU [16:20:13]CAPDU: 80 13 01 00 [16:20:13]Write to MH i2c: E2 08 00 3C 00 80 13 01 00 00 00 00 00 B9 [16:20:13]Write i2c OK [16:20:13]MH_I2C_Read... [16:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:13]Read from MH i2c: E2 [16:20:13]MH_I2C_Read... [16:20:13]Read from MH i2c: E2 0E 00 [16:20:13]MH_I2C_Read... [16:20:13]Read from MH i2c: E2 0E 00 3C 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 28 [16:20:13]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [16:20:13]wFMCommunicate OK [16:20:13]SAM_PROTO_GetShiftState done [16:20:13]FM_GetShiftState done [16:20:13]req_shift_opened done [16:20:13]requested_item shift.open_date is exist - process it [16:20:13]req_shift_open_date [16:20:13]req_shift_open_date done [16:20:13]produce_requested_data done [16:20:13]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70690,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [16:20:13]process_action_free print_text [16:20:13]json_value_free [16:20:13]json_value_free done [16:20:13]process_json_proto returns [16:20:13]Send response to host [16:20:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70690,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [16:20:13]free response buf [16:20:13]execute_script done [16:20:13]execute_script returns [16:20:13]free content buf [16:20:13]Sock 9.Close socket [16:20:13]Sock 9.Thread stoped [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:26]OFD Sender: No OFD packet to send [16:30:31]OFD Sender: No OFD packet to send [16:30:36]OFD Sender: No OFD packet to send [16:30:41]OFD Sender: No OFD packet to send [16:30:46]OFD Sender: No OFD packet to send [16:30:51]OFD Sender: No OFD packet to send [16:30:56]OFD Sender: No OFD packet to send [16:31:01]OFD Sender: No OFD packet to send [16:31:06]OFD Sender: No OFD packet to send [16:31:11]OFD Sender: No OFD packet to send [16:31:16]OFD Sender: No OFD packet to send [16:31:21]OFD Sender: No OFD packet to send [16:31:26]OFD Sender: No OFD packet to send [16:31:31]OFD Sender: No OFD packet to send [16:31:36]OFD Sender: No OFD packet to send [16:31:41]OFD Sender: No OFD packet to send [16:31:46]OFD Sender: No OFD packet to send [16:31:51]OFD Sender: No OFD packet to send [16:31:56]OFD Sender: No OFD packet to send [16:32:01]OFD Sender: No OFD packet to send [16:32:06]OFD Sender: No OFD packet to send [16:32:11]OFD Sender: No OFD packet to send [16:32:16]OFD Sender: No OFD packet to send [16:32:21]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:11]OFD Sender: No OFD packet to send [16:33:16]OFD Sender: No OFD packet to send [16:33:21]OFD Sender: No OFD packet to send [16:33:26]OFD Sender: No OFD packet to send [16:33:31]OFD Sender: No OFD packet to send [16:33:36]OFD Sender: No OFD packet to send [16:33:41]OFD Sender: No OFD packet to send [16:33:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:04]accept exits with 7 [16:34:04]New connection [16:34:04]New thread 3067305316 created [16:34:04]Thread 3067448676 joined [16:34:04]Waiting for new connection... [16:34:04] Sock 7.Parse request [16:34:04]Sock 7.Check first char [16:34:04]Sock 7.First char is OK [16:34:04]request: POST /json_proto HTTP/1.0 [16:34:04]Method: POST [16:34:04]URL: /json_proto [16:34:04]Method is POST - this is cgi request [16:34:04]url: /json_proto [16:34:04]query_string will be loaded in cgi processing [16:34:04]execute_cgi json_proto POST (null) [16:34:04]execute_cgi path=json_proto method=POST [16:34:04]POST find Content-Length [16:34:04]Host: 172.17.58.67:8080 [16:34:04]Content-Length: 631 [16:34:04]Content-Type: application/json [16:34:04] [16:34:04]POST finish read [16:34:04]Found Content-Length = 631 [16:34:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17478", "tax_sys" : 0, "items" : [ { "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:04]execute_script... [16:34:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17478", "tax_sys" : 0, "items" : [ { "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:04]POST & json_proto [16:34:04]process_json_proto [16:34:04]json parsed OK: [16:34:04]protocol is kg_v1.0 [16:34:04]action value=close_receipt [16:34:04]process_action close_receipt [16:34:04]cmd_close_receipt [16:34:04]MH_GetDate [16:34:04]Write to MH i2c: F0 00 00 3D 00 2C [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: F0 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: F0 09 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: F0 09 00 3D 00 00 FD 8A BB 66 94 51 63 64 89 [16:34:04]GetLastDocTimeStamp 48 [16:34:04]current date 1723566845 [16:34:04]FM_GetShiftState [16:34:04]SAM_PROTO_GetShiftState [16:34:04]wFMCommunicate request_size=4 [16:34:04]MH_SAM_APDU [16:34:04]CAPDU: 80 13 01 00 [16:34:04]Write to MH i2c: E2 08 00 3E 00 80 13 01 00 00 00 00 00 BB [16:34:04]Write i2c OK [16:34:04]MH_I2C_Read... [16:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:04]Read from MH i2c: E2 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 0E 00 [16:34:04]MH_I2C_Read... [16:34:04]Read from MH i2c: E2 0E 00 3E 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 2A [16:34:04]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [16:34:04]wFMCommunicate OK [16:34:04]SAM_PROTO_GetShiftState done [16:34:04]FM_GetShiftState done [16:34:04]opened in 1723509656 [16:34:04]opened+sec_in_day 1723596056 [16:34:04]quantity*price = 14000 [16:34:04]sum+1 = 14001 [16:34:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 ÐСП 1% : 1.24 ÐДС 12% : 14.87 Ðаличными: 140.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 45 13.08.2024 16:34 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70691 ФПД: 268399603724294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T163405&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70691&fm=268399603724294&tin=02508201610067®Number=0000000000090913&sum=14000 0 [16:34:06]StoreToDocumentArchive [16:34:06]shift 466 fd 70691 [16:34:06]save to /storage/0466/doc_00070691 [16:34:06]save last doc name /storage/0466/doc_00070691 to /storage/kkm_last_doc_name [16:34:06]save OK [16:34:06]Clear old archive folders... [16:34:06]ProcessDocumentItem done err = 0, tmpTLVsize=284 [16:34:06]tlvbuf is 006BF6E0 [16:34:06]SAM_PROTO_ClearQueue [16:34:06]wFMCommunicate request_size=4 [16:34:06]MH_SAM_APDU [16:34:06]CAPDU: 80 09 00 00 [16:34:06]Write to MH i2c: E2 08 00 4B 00 80 09 00 00 00 00 00 00 BD [16:34:06]Write i2c OK [16:34:06]MH_I2C_Read... [16:34:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:06]Read from MH i2c: E2 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 03 00 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 03 00 4B 00 00 90 00 BF [16:34:06]RAPDU: 90 00 [16:34:06]wFMCommunicate OK [16:34:06]SAM_PROTO_ClearQueue done [16:34:06]KKMCreateOFDPacket [16:34:06]OFDProtocolAddRootSTLVToBuf [16:34:06]FM_MakeSignedData [16:34:06]FM_MakeSignedData [16:34:06]SAM_PROTO_SignData [16:34:06]wFMCommunicate request_size=4 [16:34:06]MH_SAM_APDU [16:34:06]CAPDU: 80 0D 01 02 [16:34:06]Write to MH i2c: E2 08 00 4C 00 80 0D 01 02 00 00 00 00 C5 [16:34:06]Write i2c OK [16:34:06]MH_I2C_Read... [16:34:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:06]Read from MH i2c: E2 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 03 00 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 03 00 4C 00 00 90 00 C0 [16:34:06]RAPDU: 90 00 [16:34:06]wFMCommunicate OK [16:34:06]wFMCommunicate request_size=255 [16:34:06]MH_SAM_APDU [16:34:06]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 FD 8A BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 [16:34:06]Write to MH i2c: E2 02 01 4D 00 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 FD 8A BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 00 00 53 [16:34:06]Write i2c OK [16:34:06]MH_I2C_Read... [16:34:06]OFD Sender: No OFD packet to send [16:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:06]Read from MH i2c: E2 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 03 00 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 03 00 4D 00 00 90 00 C1 [16:34:06]RAPDU: 90 00 [16:34:06]wFMCommunicate OK [16:34:06]wFMCommunicate request_size=43 [16:34:06]MH_SAM_APDU [16:34:06]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 23 14 01 00 35 04 06 00 F4 1B A7 09 B0 06 [16:34:06]Write to MH i2c: E2 2E 00 4E 00 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 23 14 01 00 35 04 06 00 F4 1B A7 09 B0 06 00 00 5F [16:34:06]Write i2c OK [16:34:06]MH_I2C_Read... [16:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:06]Read from MH i2c: E2 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 03 00 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 03 00 4E 00 00 90 00 C2 [16:34:06]RAPDU: 90 00 [16:34:06]wFMCommunicate OK [16:34:06]wFMCommunicate request_size=4 [16:34:06]MH_SAM_APDU [16:34:06]CAPDU: 80 0D 03 02 [16:34:06]Write to MH i2c: E2 08 00 4F 00 80 0D 03 02 00 00 00 00 CA [16:34:06]Write i2c OK [16:34:06]MH_I2C_Read... [16:34:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:06]Read from MH i2c: E2 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 0B 00 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 0B 00 4F 00 00 D6 D9 74 5B 25 31 92 31 90 00 62 [16:34:06]RAPDU: D6 D9 74 5B 25 31 92 31 90 00 [16:34:06]wFMCommunicate OK [16:34:06]SAM_PROTO_SignData done [16:34:06]FM_MakeSignedData done [16:34:06]CreateOFDProtocolMessage [16:34:06]wFMCommunicate request_size=4 [16:34:06]MH_SAM_APDU [16:34:06]CAPDU: 80 11 00 00 [16:34:06]Write to MH i2c: E2 08 00 50 00 80 11 00 00 00 00 00 00 CA [16:34:06]Write i2c OK [16:34:06]MH_I2C_Read... [16:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:06]Read from MH i2c: E2 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 17 00 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: E2 17 00 50 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 1F [16:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:34:06]wFMCommunicate OK [16:34:06]CreateOFDProtocolMessage done [16:34:06]OFDSenderStorePacket 70691 [16:34:06]StoreOFDPacket docnum=70691 [16:34:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 30 01 00 00 54 40 28 01 30 A2 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 FD 8A BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 23 14 01 00 35 04 06 00 F4 1B A7 09 B0 06 D6 D9 74 5B 25 31 92 31 [16:34:06]CheckFolder [16:34:06]dirname=/storage/ofd_packets [16:34:06]CheckFolder done [16:34:06]ProducePacketName [16:34:06]name=ofd_packets/00070691 [16:34:06]NVStorageSaveData ofd_packets/00070691 [16:34:06]File name is /storage/ofd_packets/00070691 [16:34:06]Write 334 bytes [16:34:06]NVStorageSaveData done [16:34:06]OFDSenderStorePacket done [16:34:06]KKMCreateOFDPacket done [16:34:06]NVStorageSaveData kkm_last_timestamp [16:34:06]File name is /storage/kkm_last_timestamp [16:34:06]Write 4 bytes [16:34:06]NVStorageSaveData done [16:34:06]ExternCall_PrintAddStr [16:34:06]wPrintStart [16:34:06]Write to MH i2c: 01 00 00 51 00 51 [16:34:06]Write i2c OK [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: 01 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: 01 07 00 [16:34:06]MH_I2C_Read... [16:34:06]Read from MH i2c: 01 07 00 51 00 00 00 00 00 00 FF 0F 66 [16:34:06]RasterBufferAndPrint [16:34:06]line Счет N : (3)17478 [16:34:06]line ИÐÐ: 02508201610067 [16:34:06]line Контрольно-КаÑÑовый Чек [16:34:06]line ПРОДÐЖР[16:34:06]line Товар: 48745031 [16:34:06]line Сигареты Winston Superslims Expand Blue [16:34:06]line 1.000 * 140.00 [16:34:06]line = 140.00 [16:34:06]line ÐДС 12% ÐСП 1% [16:34:06]line > о реализуемом товаре [16:34:06]line ИТОГО: 140.00 [16:34:06]line ÐСП 1% : 1.24 [16:34:06]line ÐДС 12% : 14.87 [16:34:06]line Ðаличными: 140.00 [16:34:06]line Безнал.: 0.00 [16:34:06]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [16:34:06]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [16:34:06]line СÐО: Общий режим [16:34:06]line Чек 45 13.08.2024 16:34 [16:34:06]line Смена: 466 ФФД: 1.0 [16:34:06]line ЗÐМ: 0300000140 [16:34:06]line РÐМ: 0000000000090913 [16:34:06]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [16:34:06]line ФМ: 0000000000874915 [16:34:06]line ФД: 70691 [16:34:06]line ФПД: 268399603724294 [16:34:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T163405&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70691&fm=268399603724294&tin=02508201610067®Number=0000000000090913&sum=14000 [16:34:06]OFD Sender: Processing packet 70691 [packets to send 67, broken 66] [16:34:06]ProducePacketName [16:34:06]name=ofd_packets/00070691 [16:34:06]OFD Sender: To server: ‡•öpG, [16:34:06]CommunicateWithHost lk.salyk.kg:30040 [16:34:06]ConnectInit lk.salyk.kg [16:34:06]line 0 [16:34:06]written 0, free lines is 4095 [16:34:07]Connected sock=10 [16:34: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 39 31 35 30 01 00 00 54 40 28 01 30 A2 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 FD 8A BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 23 14 01 00 35 04 06 00 F4 1B A7 09 B0 06 D6 D9 74 5B 25 31 92 31 [16:34:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 C5 33 47 00 87 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 23 14 01 00 F4 03 04 00 E7 31 BB 66 B6 04 01 00 00 FD 0C 41 D4 27 59 FF 3D [16:34:07]CommunicateWithHost err = 0 [16:34:07]CheckOFDResponse [16:34:07]1017 (14) - 77093643461234 [16:34:07]1041 (16) - 0000000000874915 [16:34:07]1040 (4) - 70691 [16:34:07]1012 (4) - 13.08.2024 10:13 [16:34:07]1206 (1) - 0 [16:34:07]OFD Sender: Remove packet 70691 [16:34:07]ProducePacketName [16:34:07]name=ofd_packets/00070691 [16:34:07]NVStorageDeleteData [16:34:07]Write to MH i2c: 01 00 00 7A 00 7A [16:34:07]Write i2c OK [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: 01 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: 01 07 00 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 04 0D 92 [16:34:07]RasterBufferAndPrint [16:34:07]line [16:34:07]line [16:34:07]line [16:34:07]line [16:34:07]line [16:34:07]written 0, free lines is 3338 [16:34:07]MH_Cut [16:34:07]Write to MH i2c: D1 01 00 81 00 01 53 [16:34:07]Write i2c OK [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: D1 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: D1 01 00 [16:34:07]MH_I2C_Read... [16:34:07]Read from MH i2c: D1 01 00 81 00 00 52 [16:34:07]Write to MH i2c: 01 00 00 82 00 82 [16:34:07]Write i2c OK [16:34:07]MH_I2C_Read... [16:34:07]OFD Sender: No OFD packet to send [16:34:08]*** Cut start [16:34:08]*** Purtial cut [16:34:08]*** CUTSNS_PIN = 0 [16:34:08]*** Stage 1: CUTSNS_PIN = 1 [16:34:10]Read from MH i2c: 01 [16:34:10]MH_I2C_Read... [16:34:10]*** Stop cut motor [16:34:10]*** Cut end [16:34:10]Read from MH i2c: 01 07 00 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: 01 07 00 82 00 00 00 00 00 00 FF 0F 97 [16:34:10]process_action close_receipt done [16:34:10]requested_data is exist [16:34:10]produce_requested_data [16:34:10]requested_item fm.sn is exist - process it [16:34:10]wFMCommunicate request_size=4 [16:34:10]MH_SAM_APDU [16:34:10]CAPDU: 80 11 00 00 [16:34:10]Write to MH i2c: E2 08 00 83 00 80 11 00 00 00 00 00 00 FD [16:34:10]Write i2c OK [16:34:10]MH_I2C_Read... [16:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:10]Read from MH i2c: E2 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: E2 17 00 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: E2 17 00 83 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 52 [16:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:34:10]wFMCommunicate OK [16:34:10]requested_item fd.num is exist - process it [16:34:10]SAM_PROTO_GetFieldsCounters [16:34:10]wFMCommunicate request_size=4 [16:34:10]MH_SAM_APDU [16:34:10]CAPDU: 80 13 00 00 [16:34:10]Write to MH i2c: E2 08 00 84 00 80 13 00 00 00 00 00 00 00 [16:34:10]Write i2c OK [16:34:10]MH_I2C_Read... [16:34:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:10]Read from MH i2c: E2 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: E2 62 00 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: E2 62 00 84 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 23 14 01 00 0E 04 04 00 D2 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 B2 [16:34:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 23 14 01 00 0E 04 04 00 D2 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 [16:34:10]wFMCommunicate OK [16:34:10]SAM_PROTO_GetFieldsCounters done [16:34:10]requested_item shift.num is exist - process it [16:34:10]requested_item shift.opened is exist - process it [16:34:10]req_shift_opened [16:34:10]FM_GetShiftState [16:34:10]SAM_PROTO_GetShiftState [16:34:10]wFMCommunicate request_size=4 [16:34:10]MH_SAM_APDU [16:34:10]CAPDU: 80 13 01 00 [16:34:10]Write to MH i2c: E2 08 00 85 00 80 13 01 00 00 00 00 00 02 [16:34:10]Write i2c OK [16:34:10]MH_I2C_Read... [16:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:10]Read from MH i2c: E2 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: E2 0E 00 [16:34:10]MH_I2C_Read... [16:34:10]Read from MH i2c: E2 0E 00 85 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 71 [16:34:10]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [16:34:10]wFMCommunicate OK [16:34:10]SAM_PROTO_GetShiftState done [16:34:10]FM_GetShiftState done [16:34:10]req_shift_opened done [16:34:10]requested_item shift.open_date is exist - process it [16:34:10]req_shift_open_date [16:34:10]req_shift_open_date done [16:34:10]produce_requested_data done [16:34:10]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70691,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [16:34:10]process_action_free close_receipt [16:34:10]json_value_free [16:34:10]json_value_free done [16:34:10]process_json_proto returns [16:34:10]Send response to host [16:34:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70691,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [16:34:10]free response buf [16:34:10]execute_script done [16:34:10]execute_script returns [16:34:10]free content buf [16:34:10]Sock 7.Close socket [16:34:10]Sock 7.Thread stoped [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:55]int [16:44:55]Write to MH i2c: 01 00 00 86 00 86 [16:44:55]*** FLAG_PRN_KEY set [16:44:55]Write i2c OK [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: 01 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: 01 07 00 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: 01 07 00 86 00 00 08 00 00 00 FF 0F A3 [16:44:55]state=0 [16:44:55]Key pressed [16:44:55]Feed [16:44:55]Write to MH i2c: D8 00 00 87 00 5E [16:44:55]Write i2c OK [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: D8 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: D8 01 00 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: D8 01 00 87 00 00 5F [16:44:55]int [16:44:55]Write to MH i2c: 01 00 00 88 00 88 [16:44:55]Write i2c OK [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: 01 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: 01 07 00 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: 01 07 00 88 00 00 48 00 00 00 3C 00 13 [16:44:55]state=2 [16:44:55]Key pressed [16:44:56]int [16:44:56]Write to MH i2c: 01 00 00 89 00 89 [16:44:56]*** FLAG_PRN_KEY reset [16:44:56]Write i2c OK [16:44:56]MH_I2C_Read... [16:44:56]Read from MH i2c: 01 [16:44:56]MH_I2C_Read... [16:44:56]Read from MH i2c: 01 07 00 [16:44:56]MH_I2C_Read... [16:44:56]Read from MH i2c: 01 07 00 89 00 00 00 00 00 00 F5 0F 94 [16:44:56]state=2 [16:44:56]Stop feed [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:07]accept exits with 9 [16:45:07]New connection [16:45:07]New thread 3067448676 created [16:45:07]Thread 3067305316 joined [16:45:07]Waiting for new connection... [16:45:07] Sock 9.Parse request [16:45:07]Sock 9.Check first char [16:45:07]Sock 9.First char is OK [16:45:07]request: POST /json_proto HTTP/1.0 [16:45:07]Method: POST [16:45:07]URL: /json_proto [16:45:07]Method is POST - this is cgi request [16:45:07]url: /json_proto [16:45:07]query_string will be loaded in cgi processing [16:45:07]execute_cgi json_proto POST (null) [16:45:07]execute_cgi path=json_proto method=POST [16:45:07]POST find Content-Length [16:45:07]Host: 172.17.58.67:8080 [16:45:07]Content-Length: 805 [16:45:07]Content-Type: application/json [16:45:07] [16:45:07]POST finish read [16:45:07]Found Content-Length = 805 [16:45:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "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.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:07]execute_script... [16:45:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "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.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:07]POST & json_proto [16:45:07]process_json_proto [16:45:07]json parsed OK: [16:45:07]protocol is kg_v1.0 [16:45:07]action value=close_receipt [16:45:07]process_action close_receipt [16:45:07]cmd_close_receipt [16:45:07]MH_GetDate [16:45:07]Write to MH i2c: F0 00 00 8A 00 79 [16:45:07]Write i2c OK [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: F0 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: F0 09 00 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: F0 09 00 8A 00 00 94 8D BB 66 94 51 63 64 70 [16:45:07]GetLastDocTimeStamp 1723566845 [16:45:07]current date 1723567508 [16:45:07]FM_GetShiftState [16:45:07]SAM_PROTO_GetShiftState [16:45:07]wFMCommunicate request_size=4 [16:45:07]MH_SAM_APDU [16:45:07]CAPDU: 80 13 01 00 [16:45:07]Write to MH i2c: E2 08 00 8B 00 80 13 01 00 00 00 00 00 08 [16:45:07]Write i2c OK [16:45:07]MH_I2C_Read... [16:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:07]Read from MH i2c: E2 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: E2 0E 00 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: E2 0E 00 8B 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 77 [16:45:07]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [16:45:07]wFMCommunicate OK [16:45:07]SAM_PROTO_GetShiftState done [16:45:07]FM_GetShiftState done [16:45:07]opened in 1723509656 [16:45:07]opened+sec_in_day 1723596056 [16:45:07]quantity*price = 100068 [16:45:07]sum+1 = 100069 [16:45:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.68 ÐСП 1% : 8.86 ÐДС 12% : 106.27 Ðаличными: 0.00 Безнал.: 1000.68 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 46 13.08.2024 16:45 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70692 ФПД: 37651118307502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T164508&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70692&fm=37651118307502&tin=02508201610067®Number=0000000000090913&sum=100068 [16:45:08]StoreToDocumentArchive [16:45:08]shift 466 fd 70692 [16:45:08]save to /storage/0466/doc_00070692 [16:45:08]save last doc name /storage/0466/doc_00070692 to /storage/kkm_last_doc_name [16:45:08]save OK [16:45:08]Clear old archive folders... [16:45:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:45:08]tlvbuf is 006B6660 [16:45:08]SAM_PROTO_ClearQueue [16:45:08]wFMCommunicate request_size=4 [16:45:08]MH_SAM_APDU [16:45:08]CAPDU: 80 09 00 00 [16:45:08]Write to MH i2c: E2 08 00 98 00 80 09 00 00 00 00 00 00 0A [16:45:08]Write i2c OK [16:45:08]MH_I2C_Read... [16:45:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:08]Read from MH i2c: E2 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: E2 03 00 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: E2 03 00 98 00 00 90 00 0C [16:45:08]RAPDU: 90 00 [16:45:08]wFMCommunicate OK [16:45:08]SAM_PROTO_ClearQueue done [16:45:08]KKMCreateOFDPacket [16:45:08]OFDProtocolAddRootSTLVToBuf [16:45:08]FM_MakeSignedData [16:45:08]FM_MakeSignedData [16:45:08]SAM_PROTO_SignData [16:45:08]wFMCommunicate request_size=4 [16:45:08]MH_SAM_APDU [16:45:08]CAPDU: 80 0D 01 02 [16:45:08]Write to MH i2c: E2 08 00 99 00 80 0D 01 02 00 00 00 00 12 [16:45:08]Write i2c OK [16:45:08]MH_I2C_Read... [16:45:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:08]Read from MH i2c: E2 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: E2 03 00 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: E2 03 00 99 00 00 90 00 0D [16:45:08]RAPDU: 90 00 [16:45:08]wFMCommunicate OK [16:45:08]wFMCommunicate request_size=255 [16:45:08]MH_SAM_APDU [16:45: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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 94 8D BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 24 14 01 00 35 04 06 00 22 3E 55 88 [16:45:08]Write to MH i2c: E2 02 01 9A 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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 94 8D BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 24 14 01 00 35 04 06 00 22 3E 55 88 00 00 78 [16:45:08]Write i2c OK [16:45:08]MH_I2C_Read... [16:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:09]Read from MH i2c: E2 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 03 00 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 03 00 9A 00 00 90 00 0E [16:45:09]RAPDU: 90 00 [16:45:09]wFMCommunicate OK [16:45:09]wFMCommunicate request_size=7 [16:45:09]MH_SAM_APDU [16:45:09]CAPDU: 80 0D 02 02 02 38 AE [16:45:09]Write to MH i2c: E2 0A 00 9B 00 80 0D 02 02 02 00 38 AE 00 00 FF [16:45:09]Write i2c OK [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 [16:45:09]MH_I2C_Read... [16:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:09]Read from MH i2c: E2 03 00 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 03 00 9B 00 00 90 00 0F [16:45:09]RAPDU: 90 00 [16:45:09]wFMCommunicate OK [16:45:09]wFMCommunicate request_size=4 [16:45:09]MH_SAM_APDU [16:45:09]CAPDU: 80 0D 03 02 [16:45:09]Write to MH i2c: E2 08 00 9C 00 80 0D 03 02 00 00 00 00 17 [16:45:09]Write i2c OK [16:45:09]MH_I2C_Read... [16:45:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:09]Read from MH i2c: E2 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 0B 00 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 0B 00 9C 00 00 6D 5E A2 A4 92 2C 53 5F 90 00 99 [16:45:09]RAPDU: 6D 5E A2 A4 92 2C 53 5F 90 00 [16:45:09]wFMCommunicate OK [16:45:09]SAM_PROTO_SignData done [16:45:09]FM_MakeSignedData done [16:45:09]CreateOFDProtocolMessage [16:45:09]wFMCommunicate request_size=4 [16:45:09]MH_SAM_APDU [16:45:09]CAPDU: 80 11 00 00 [16:45:09]Write to MH i2c: E2 08 00 9D 00 80 11 00 00 00 00 00 00 17 [16:45:09]Write i2c OK [16:45:09]MH_I2C_Read... [16:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:09]Read from MH i2c: E2 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 17 00 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: E2 17 00 9D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 6C [16:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:45:09]wFMCommunicate OK [16:45:09]CreateOFDProtocolMessage done [16:45:09]OFDSenderStorePacket 70692 [16:45:09]StoreOFDPacket docnum=70692 [16:45:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 8A 04 04 01 85 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 94 8D BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 24 14 01 00 35 04 06 00 22 3E 55 88 38 AE 6D 5E A2 A4 92 2C 53 5F [16:45:09]CheckFolder [16:45:09]dirname=/storage/ofd_packets [16:45:09]CheckFolder done [16:45:09]ProducePacketName [16:45:09]name=ofd_packets/00070692 [16:45:09]NVStorageSaveData ofd_packets/00070692 [16:45:09]File name is /storage/ofd_packets/00070692 [16:45:09]Write 298 bytes [16:45:09]NVStorageSaveData done [16:45:09]OFDSenderStorePacket done [16:45:09]KKMCreateOFDPacket done [16:45:09]NVStorageSaveData kkm_last_timestamp [16:45:09]File name is /storage/kkm_last_timestamp [16:45:09]Write 4 bytes [16:45:09]NVStorageSaveData done [16:45:09]ExternCall_PrintAddStr [16:45:09]wPrintStart [16:45:09]Write to MH i2c: 01 00 00 9E 00 9E [16:45:09]Write i2c OK [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: 01 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: 01 07 00 [16:45:09]MH_I2C_Read... [16:45:09]Read from MH i2c: 01 07 00 9E 00 00 00 00 00 00 FF 0F B3 [16:45:09]RasterBufferAndPrint [16:45:09]line Счет N : (1)141152 [16:45:09]line ИÐÐ: 02508201610067 [16:45:09]line Контрольно-КаÑÑовый Чек [16:45:09]line ПРОДÐЖР[16:45:09]line ТРК (МРК, ГÐК) : 44 [16:45:09]line Товар: 2710194210 [16:45:09]line ДТ-К-5 [16:45:09]line 13.450 * 74.40 [16:45:09]line = 1000.68 [16:45:09]line ÐДС 12% ÐСП 1% [16:45:09]line > о реализуемом товаре [16:45:09]line ИТОГО: 1000.68 [16:45:09]line ÐСП 1% : 8.86 [16:45:09]line ÐДС 12% : 106.27 [16:45:09]line Ðаличными: 0.00 [16:45:09]line Безнал.: 1000.68 [16:45:09]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [16:45:09]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [16:45:09]line СÐО: Общий режим [16:45:09]line Чек 46 13.08.2024 16:45 [16:45:09]line Смена: 466 ФФД: 1.0 [16:45:09]line ЗÐМ: 0300000140 [16:45:09]line РÐМ: 0000000000090913 [16:45:09]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [16:45:09]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [16:45:09]line ФМ: 0000000000874915 [16:45:09]line ФД: 70692 [16:45:09]line ФПД: 37651118307502 [16:45:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T164508&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70692&fm=37651118307502&tin=02508201610067®Number=0000000000090913&sum=100068 [16:45:09]OFD Sender: Processing packet 70692 [packets to send 67, broken 66] [16:45:09]ProducePacketName [16:45:09]name=ofd_packets/00070692 [16:45:09]OFD Sender: To server: ‡•öpG, [16:45:09]CommunicateWithHost lk.salyk.kg:30040 [16:45:09]ConnectInit lk.salyk.kg [16:45:09]written 0, free lines is 4095 [16:45:09]Connected sock=10 [16:45: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 39 31 35 0C 01 00 00 8A 04 04 01 85 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 94 8D BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 24 14 01 00 35 04 06 00 22 3E 55 88 38 AE 6D 5E A2 A4 92 2C 53 5F [16:45:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 9C C5 47 00 2D EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 24 14 01 00 F4 03 04 00 7E 34 BB 66 B6 04 01 00 00 3E 60 8B 6D 5F 16 13 26 [16:45:09]CommunicateWithHost err = 0 [16:45:09]CheckOFDResponse [16:45:09]1017 (14) - 77093643461234 [16:45:09]1041 (16) - 0000000000874915 [16:45:09]1040 (4) - 70692 [16:45:09]1012 (4) - 13.08.2024 10:25 [16:45:09]1206 (1) - 0 [16:45:09]OFD Sender: Remove packet 70692 [16:45:09]ProducePacketName [16:45:09]name=ofd_packets/00070692 [16:45:09]NVStorageDeleteData [16:45:10]Write to MH i2c: 01 00 00 C8 00 C8 [16:45:10]Write i2c OK [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: 01 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: 01 07 00 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: 01 07 00 C8 00 00 00 00 00 00 F1 0C CC [16:45:10]RasterBufferAndPrint [16:45:10]line [16:45:10]line [16:45:10]line [16:45:10]line [16:45:10]line [16:45:10]written 0, free lines is 3319 [16:45:10]MH_Cut [16:45:10]Write to MH i2c: D1 01 00 CF 00 01 A1 [16:45:10]Write i2c OK [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: D1 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: D1 01 00 [16:45:10]MH_I2C_Read... [16:45:10]Read from MH i2c: D1 01 00 CF 00 00 A0 [16:45:10]Write to MH i2c: 01 00 00 D0 00 D0 [16:45:10]Write i2c OK [16:45:10]MH_I2C_Read... [16:45:10]OFD Sender: No OFD packet to send [16:45:10]*** Cut start [16:45:10]*** Purtial cut [16:45:10]*** Stage 1: CUTSNS_PIN = 1 [16:45:10]Read from MH i2c: 01 [16:45:11]MH_I2C_Read... [16:45:11]*** Stop cut motor [16:45:11]*** Cut end [16:45:11]Read from MH i2c: 01 07 00 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: 01 07 00 D0 00 00 00 00 00 00 FF 0F E5 [16:45:11]process_action close_receipt done [16:45:11]requested_data is exist [16:45:11]produce_requested_data [16:45:11]requested_item fm.sn is exist - process it [16:45:11]wFMCommunicate request_size=4 [16:45:11]MH_SAM_APDU [16:45:11]CAPDU: 80 11 00 00 [16:45:11]Write to MH i2c: E2 08 00 D1 00 80 11 00 00 00 00 00 00 4B [16:45:11]Write i2c OK [16:45:11]MH_I2C_Read... [16:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:11]Read from MH i2c: E2 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 17 00 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 17 00 D1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 A0 [16:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:45:11]wFMCommunicate OK [16:45:11]requested_item fd.num is exist - process it [16:45:11]SAM_PROTO_GetFieldsCounters [16:45:11]wFMCommunicate request_size=4 [16:45:11]MH_SAM_APDU [16:45:11]CAPDU: 80 13 00 00 [16:45:11]Write to MH i2c: E2 08 00 D2 00 80 13 00 00 00 00 00 00 4E [16:45:11]Write i2c OK [16:45:11]MH_I2C_Read... [16:45:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:11]Read from MH i2c: E2 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 62 00 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 62 00 D2 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 24 14 01 00 0E 04 04 00 D2 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 04 [16:45: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 24 14 01 00 0E 04 04 00 D2 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 [16:45:11]wFMCommunicate OK [16:45:11]SAM_PROTO_GetFieldsCounters done [16:45:11]requested_item shift.num is exist - process it [16:45:11]requested_item shift.opened is exist - process it [16:45:11]req_shift_opened [16:45:11]FM_GetShiftState [16:45:11]SAM_PROTO_GetShiftState [16:45:11]wFMCommunicate request_size=4 [16:45:11]MH_SAM_APDU [16:45:11]CAPDU: 80 13 01 00 [16:45:11]Write to MH i2c: E2 08 00 D3 00 80 13 01 00 00 00 00 00 50 [16:45:11]Write i2c OK [16:45:11]MH_I2C_Read... [16:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:11]Read from MH i2c: E2 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 0E 00 [16:45:11]MH_I2C_Read... [16:45:11]Read from MH i2c: E2 0E 00 D3 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 BF [16:45:11]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [16:45:11]wFMCommunicate OK [16:45:11]SAM_PROTO_GetShiftState done [16:45:11]FM_GetShiftState done [16:45:11]req_shift_opened done [16:45:11]requested_item shift.open_date is exist - process it [16:45:11]req_shift_open_date [16:45:11]req_shift_open_date done [16:45:11]produce_requested_data done [16:45:11]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70692,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [16:45:11]process_action_free close_receipt [16:45:11]json_value_free [16:45:11]json_value_free done [16:45:11]process_json_proto returns [16:45:11]Send response to host [16:45:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70692,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [16:45:11]free response buf [16:45:11]execute_script done [16:45:11]execute_script returns [16:45:11]free content buf [16:45:11]Sock 9.Close socket [16:45:11]Sock 9.Thread stoped [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:16]OFD Sender: No OFD packet to send [17:02:21]OFD Sender: No OFD packet to send [17:02:26]accept exits with 7 [17:02:26]New connection [17:02:26]New thread 3067305316 created [17:02:26]Thread 3067448676 joined [17:02:26]Waiting for new connection... [17:02:26] Sock 7.Parse request [17:02:26]Sock 7.Check first char [17:02:26]Sock 7.First char is OK [17:02:26]request: POST /json_proto HTTP/1.0 [17:02:26]Method: POST [17:02:26]URL: /json_proto [17:02:26]Method is POST - this is cgi request [17:02:26]url: /json_proto [17:02:26]query_string will be loaded in cgi processing [17:02:26]execute_cgi json_proto POST (null) [17:02:26]execute_cgi path=json_proto method=POST [17:02:26]POST find Content-Length [17:02:26]Host: 172.17.58.67:8080 [17:02:26]Content-Length: 805 [17:02:26]Content-Type: application/json [17:02:26] [17:02:26]POST finish read [17:02:26]Found Content-Length = 805 [17:02:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:26]execute_script... [17:02: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)141154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:26]POST & json_proto [17:02:26]process_json_proto [17:02:26]json parsed OK: [17:02:26]protocol is kg_v1.0 [17:02:26]action value=close_receipt [17:02:26]process_action close_receipt [17:02:26]cmd_close_receipt [17:02:26]MH_GetDate [17:02:26]Write to MH i2c: F0 00 00 D4 00 C3 [17:02:26]Write i2c OK [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: F0 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: F0 09 00 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: F0 09 00 D4 00 00 A2 91 BB 66 94 51 63 64 CC [17:02:26]GetLastDocTimeStamp 1723567508 [17:02:26]current date 1723568546 [17:02:26]FM_GetShiftState [17:02:26]SAM_PROTO_GetShiftState [17:02:26]wFMCommunicate request_size=4 [17:02:26]MH_SAM_APDU [17:02:26]CAPDU: 80 13 01 00 [17:02:26]Write to MH i2c: E2 08 00 D5 00 80 13 01 00 00 00 00 00 52 [17:02:26]Write i2c OK [17:02:26]MH_I2C_Read... [17:02:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:26]Read from MH i2c: E2 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: E2 0E 00 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: E2 0E 00 D5 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 C1 [17:02:26]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:02:26]wFMCommunicate OK [17:02:26]SAM_PROTO_GetShiftState done [17:02:26]FM_GetShiftState done [17:02:26]opened in 1723509656 [17:02:26]opened+sec_in_day 1723596056 [17:02:26]quantity*price = 150064 [17:02:26]sum+1 = 150066 [17:02:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.65 ÐСП 1% : 13.28 ÐДС 12% : 159.36 Ðаличными: 0.00 Безнал.: 1500.65 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 47 13.08.2024 17:02 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70693 ФПД: 115797485754625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T170226&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70693&fm=115797485754625&tin=02508201610067®Number=0000000000090913&sum=150065 [17:02:27]StoreToDocumentArchive [17:02:27]shift 466 fd 70693 [17:02:27]save to /storage/0466/doc_00070693 [17:02:27]save last doc name /storage/0466/doc_00070693 to /storage/kkm_last_doc_name [17:02:27]save OK [17:02:27]Clear old archive folders... [17:02:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:02:27]tlvbuf is 006E76C0 [17:02:27]SAM_PROTO_ClearQueue [17:02:27]wFMCommunicate request_size=4 [17:02:27]MH_SAM_APDU [17:02:27]CAPDU: 80 09 00 00 [17:02:27]Write to MH i2c: E2 08 00 E2 00 80 09 00 00 00 00 00 00 54 [17:02:27]Write i2c OK [17:02:27]MH_I2C_Read... [17:02:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:27]Read from MH i2c: E2 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 03 00 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 03 00 E2 00 00 90 00 56 [17:02:27]RAPDU: 90 00 [17:02:27]wFMCommunicate OK [17:02:27]SAM_PROTO_ClearQueue done [17:02:27]KKMCreateOFDPacket [17:02:27]OFDProtocolAddRootSTLVToBuf [17:02:27]FM_MakeSignedData [17:02:27]FM_MakeSignedData [17:02:27]SAM_PROTO_SignData [17:02:27]wFMCommunicate request_size=4 [17:02:27]MH_SAM_APDU [17:02:27]CAPDU: 80 0D 01 02 [17:02:27]Write to MH i2c: E2 08 00 E3 00 80 0D 01 02 00 00 00 00 5C [17:02:27]Write i2c OK [17:02:27]MH_I2C_Read... [17:02:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:27]Read from MH i2c: E2 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 03 00 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 03 00 E3 00 00 90 00 57 [17:02:27]RAPDU: 90 00 [17:02:27]wFMCommunicate OK [17:02:27]wFMCommunicate request_size=255 [17:02:27]MH_SAM_APDU [17:02: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 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A2 91 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 25 14 01 00 35 04 06 00 69 51 34 01 [17:02:27]Write to MH i2c: E2 02 01 E4 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 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A2 91 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 25 14 01 00 35 04 06 00 69 51 34 01 00 00 A6 [17:02:27]Write i2c OK [17:02:27]MH_I2C_Read... [17:02:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:27]Read from MH i2c: E2 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 03 00 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 03 00 E4 00 00 90 00 58 [17:02:27]RAPDU: 90 00 [17:02:27]wFMCommunicate OK [17:02:27]wFMCommunicate request_size=7 [17:02:27]MH_SAM_APDU [17:02:27]CAPDU: 80 0D 02 02 02 19 01 [17:02:27]Write to MH i2c: E2 0A 00 E5 00 80 0D 02 02 02 00 19 01 00 00 7D [17:02:27]Write i2c OK [17:02:27]MH_I2C_Read... [17:02:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:27]Read from MH i2c: E2 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 03 00 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 03 00 E5 00 00 90 00 59 [17:02:27]RAPDU: 90 00 [17:02:27]wFMCommunicate OK [17:02:27]wFMCommunicate request_size=4 [17:02:27]MH_SAM_APDU [17:02:27]CAPDU: 80 0D 03 02 [17:02:27]Write to MH i2c: E2 08 00 E6 00 80 0D 03 02 00 00 00 00 61 [17:02:27]Write i2c OK [17:02:27]MH_I2C_Read... [17:02:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:27]Read from MH i2c: E2 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 0B 00 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 0B 00 E6 00 00 47 CB 46 35 58 F6 14 F8 90 00 49 [17:02:27]RAPDU: 47 CB 46 35 58 F6 14 F8 90 00 [17:02:27]wFMCommunicate OK [17:02:27]SAM_PROTO_SignData done [17:02:27]FM_MakeSignedData done [17:02:27]CreateOFDProtocolMessage [17:02:27]wFMCommunicate request_size=4 [17:02:27]MH_SAM_APDU [17:02:27]CAPDU: 80 11 00 00 [17:02:27]Write to MH i2c: E2 08 00 E7 00 80 11 00 00 00 00 00 00 61 [17:02:27]Write i2c OK [17:02:27]MH_I2C_Read... [17:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:27]Read from MH i2c: E2 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 17 00 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 17 00 E7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 B6 [17:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:02:27]wFMCommunicate OK [17:02:27]CreateOFDProtocolMessage done [17:02:27]OFDSenderStorePacket 70693 [17:02:27]StoreOFDPacket docnum=70693 [17:02:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 3E 46 04 01 4B 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A2 91 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 25 14 01 00 35 04 06 00 69 51 34 01 19 01 47 CB 46 35 58 F6 14 F8 [17:02:27]CheckFolder [17:02:27]dirname=/storage/ofd_packets [17:02:27]CheckFolder done [17:02:27]ProducePacketName [17:02:27]name=ofd_packets/00070693 [17:02:27]NVStorageSaveData ofd_packets/00070693 [17:02:27]File name is /storage/ofd_packets/00070693 [17:02:27]Write 298 bytes [17:02:27]NVStorageSaveData done [17:02:27]OFDSenderStorePacket done [17:02:27]KKMCreateOFDPacket done [17:02:27]NVStorageSaveData kkm_last_timestamp [17:02:27]File name is /storage/kkm_last_timestamp [17:02:27]Write 4 bytes [17:02:27]NVStorageSaveData done [17:02:27]ExternCall_PrintAddStr [17:02:27]wPrintStart [17:02:27]Write to MH i2c: 01 00 00 E8 00 E8 [17:02:27]Write i2c OK [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: 01 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: 01 07 00 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: 01 07 00 E8 00 00 00 00 00 00 FF 0F FD [17:02:27]RasterBufferAndPrint [17:02:27]line Счет N : (1)141154 [17:02:27]line ИÐÐ: 02508201610067 [17:02:27]line Контрольно-КаÑÑовый Чек [17:02:27]line ПРОДÐЖР[17:02:27]line ТРК (МРК, ГÐК) : 14 [17:02:27]line Товар: 2710194210 [17:02:27]line ДТ-К-5 [17:02:27]line 20.170 * 74.40 [17:02:27]line = 1500.65 [17:02:27]line ÐДС 12% ÐСП 1% [17:02:27]line > о реализуемом товаре [17:02:27]line ИТОГО: 1500.65 [17:02:27]line ÐСП 1% : 13.28 [17:02:27]line ÐДС 12% : 159.36 [17:02:27]line Ðаличными: 0.00 [17:02:27]line Безнал.: 1500.65 [17:02:27]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [17:02:27]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [17:02:27]line СÐО: Общий режим [17:02:27]line Чек 47 13.08.2024 17:02 [17:02:27]line Смена: 466 ФФД: 1.0 [17:02:27]line ЗÐМ: 0300000140 [17:02:27]line РÐМ: 0000000000090913 [17:02:27]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:02:27]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [17:02:27]line ФМ: 0000000000874915 [17:02:27]line ФД: 70693 [17:02:27]line ФПД: 115797485754625 [17:02:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T170226&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70693&fm=115797485754625&tin=02508201610067®Number=0000000000090913&sum=150065 [17:02:28]OFD Sender: Processing packet 70693 [packets to send 67, broken 66] [17:02:28]ProducePacketName [17:02:28]name=ofd_packets/00070693 [17:02:28]OFD Sender: To server: ‡•öpG, [17:02:28]CommunicateWithHost lk.salyk.kg:30040 [17:02:28]ConnectInit lk.salyk.kg [17:02:28]written 0, free lines is 4095 [17:02:28]Connected sock=11 [17:02: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 39 31 35 0C 01 00 00 3E 46 04 01 4B 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A2 91 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 25 14 01 00 35 04 06 00 69 51 34 01 19 01 47 CB 46 35 58 F6 14 F8 [17:02:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 03 84 47 00 60 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 25 14 01 00 F4 03 04 00 8D 38 BB 66 B6 04 01 00 00 99 2F 4B 5E 6C 6B 31 56 [17:02:28]CommunicateWithHost err = 0 [17:02:28]CheckOFDResponse [17:02:28]1017 (14) - 77093643461234 [17:02:28]1041 (16) - 0000000000874915 [17:02:28]1040 (4) - 70693 [17:02:28]1012 (4) - 13.08.2024 10:42 [17:02:28]1206 (1) - 0 [17:02:28]OFD Sender: Remove packet 70693 [17:02:28]ProducePacketName [17:02:28]name=ofd_packets/00070693 [17:02:28]NVStorageDeleteData [17:02:28]Write to MH i2c: 01 00 00 12 01 13 [17:02:28]Write i2c OK [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: 01 [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: 01 07 00 [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 E9 0C 0F [17:02:28]RasterBufferAndPrint [17:02:28]line [17:02:28]line [17:02:28]line [17:02:28]line [17:02:28]line [17:02:28]written 0, free lines is 3311 [17:02:28]MH_Cut [17:02:28]Write to MH i2c: D1 01 00 19 01 01 EC [17:02:28]Write i2c OK [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: D1 [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: D1 01 00 [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: D1 01 00 19 01 00 EB [17:02:28]Write to MH i2c: 01 00 00 1A 01 1B [17:02:28]Write i2c OK [17:02:28]MH_I2C_Read... [17:02:28]OFD Sender: No OFD packet to send [17:02:29]*** Cut start [17:02:29]*** Purtial cut [17:02:29]*** CUTSNS_PIN = 0 [17:02:29]*** Stage 1: CUTSNS_PIN = 1 [17:02:31]Read from MH i2c: 01 [17:02:31]MH_I2C_Read... [17:02:31]*** Stop cut motor [17:02:31]*** Cut end [17:02:31]Read from MH i2c: 01 07 00 [17:02:31]MH_I2C_Read... [17:02:31]Read from MH i2c: 01 07 00 1A 01 00 00 00 00 00 FF 0F 30 [17:02:31]process_action close_receipt done [17:02:31]requested_data is exist [17:02:31]produce_requested_data [17:02:31]requested_item fm.sn is exist - process it [17:02:31]wFMCommunicate request_size=4 [17:02:31]MH_SAM_APDU [17:02:31]CAPDU: 80 11 00 00 [17:02:31]Write to MH i2c: E2 08 00 1B 01 80 11 00 00 00 00 00 00 96 [17:02:31]Write i2c OK [17:02:31]MH_I2C_Read... [17:02:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:31]Read from MH i2c: E2 [17:02:31]MH_I2C_Read... [17:02:31]Read from MH i2c: E2 17 00 [17:02:31]MH_I2C_Read... [17:02:31]Read from MH i2c: E2 17 00 1B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 EB [17:02:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:02:31]wFMCommunicate OK [17:02:31]requested_item fd.num is exist - process it [17:02:31]SAM_PROTO_GetFieldsCounters [17:02:31]wFMCommunicate request_size=4 [17:02:31]MH_SAM_APDU [17:02:31]CAPDU: 80 13 00 00 [17:02:31]Write to MH i2c: E2 08 00 1C 01 80 13 00 00 00 00 00 00 99 [17:02:31]Write i2c OK [17:02:31]MH_I2C_Read... [17:02:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:31]Read from MH i2c: E2 [17:02:31]MH_I2C_Read... [17:02:31]Read from MH i2c: E2 62 00 [17:02:31]MH_I2C_Read... [17:02:31]Read from MH i2c: E2 62 00 1C 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 25 14 01 00 0E 04 04 00 D2 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 53 [17: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 25 14 01 00 0E 04 04 00 D2 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 [17:02:31]wFMCommunicate OK [17:02:31]SAM_PROTO_GetFieldsCounters done [17:02:31]requested_item shift.num is exist - process it [17:02:31]requested_item shift.opened is exist - process it [17:02:31]req_shift_opened [17:02:31]FM_GetShiftState [17:02:31]SAM_PROTO_GetShiftState [17:02:31]wFMCommunicate request_size=4 [17:02:31]MH_SAM_APDU [17:02:31]CAPDU: 80 13 01 00 [17:02:31]Write to MH i2c: E2 08 00 1D 01 80 13 01 00 00 00 00 00 9B [17:02:31]Write i2c OK [17:02:31]MH_I2C_Read... [17:02:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:31]Read from MH i2c: E2 [17:02:31]MH_I2C_Read... [17:02:31]Read from MH i2c: E2 0E 00 [17:02:31]MH_I2C_Read... [17:02:31]Read from MH i2c: E2 0E 00 1D 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 0A [17:02:31]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:02:31]wFMCommunicate OK [17:02:31]SAM_PROTO_GetShiftState done [17:02:31]FM_GetShiftState done [17:02:31]req_shift_opened done [17:02:31]requested_item shift.open_date is exist - process it [17:02:31]req_shift_open_date [17:02:31]req_shift_open_date done [17:02:31]produce_requested_data done [17:02:31]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70693,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [17:02:31]process_action_free close_receipt [17:02:31]json_value_free [17:02:31]json_value_free done [17:02:31]process_json_proto returns [17:02:31]Send response to host [17:02:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70693,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [17:02:31]free response buf [17:02:31]execute_script done [17:02:31]execute_script returns [17:02:31]free content buf [17:02:31]Sock 7.Close socket [17:02:31]Sock 7.Thread stoped [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:41]accept exits with 9 [17:04:41]New connection [17:04:41]New thread 3067448676 created [17:04:41]Thread 3067305316 joined [17:04:41]Waiting for new connection... [17:04:41] Sock 9.Parse request [17:04:41]Sock 9.Check first char [17:04:41]Sock 9.First char is OK [17:04:41]request: POST /json_proto HTTP/1.0 [17:04:41]Method: POST [17:04:41]URL: /json_proto [17:04:41]Method is POST - this is cgi request [17:04:41]url: /json_proto [17:04:41]query_string will be loaded in cgi processing [17:04:41]execute_cgi json_proto POST (null) [17:04:41]execute_cgi path=json_proto method=POST [17:04:41]POST find Content-Length [17:04:41]Host: 172.17.58.67:8080 [17:04:41]Content-Length: 816 [17:04:41]Content-Type: application/json [17:04:41] [17:04:41]POST finish read [17:04:41]Found Content-Length = 816 [17:04:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:41]execute_script... [17:04:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:41]POST & json_proto [17:04:41]process_json_proto [17:04:41]json parsed OK: [17:04:41]protocol is kg_v1.0 [17:04:41]action value=close_receipt [17:04:41]process_action close_receipt [17:04:41]cmd_close_receipt [17:04:41]MH_GetDate [17:04:41]Write to MH i2c: F0 00 00 1E 01 0E [17:04:41]Write i2c OK [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: F0 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: F0 09 00 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: F0 09 00 1E 01 00 2A 92 BB 66 94 51 63 64 A0 [17:04:41]GetLastDocTimeStamp 1723568546 [17:04:41]current date 1723568682 [17:04:41]FM_GetShiftState [17:04:41]SAM_PROTO_GetShiftState [17:04:41]wFMCommunicate request_size=4 [17:04:41]MH_SAM_APDU [17:04:41]CAPDU: 80 13 01 00 [17:04:41]Write to MH i2c: E2 08 00 1F 01 80 13 01 00 00 00 00 00 9D [17:04:41]Write i2c OK [17:04:41]MH_I2C_Read... [17:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:41]Read from MH i2c: E2 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: E2 0E 00 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: E2 0E 00 1F 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 0C [17:04:41]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:04:41]wFMCommunicate OK [17:04:41]SAM_PROTO_GetShiftState done [17:04:41]FM_GetShiftState done [17:04:41]opened in 1723509656 [17:04:41]opened+sec_in_day 1723596056 [17:04:41]quantity*price = 200061 [17:04:41]sum+1 = 200063 [17:04:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.62 ÐСП 1% : 17.70 ÐДС 12% : 212.45 Ðаличными: 0.00 Безнал.: 2000.62 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 48 13.08.2024 17:04 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000000874915 ФД: 70694 ФПД: 241602902948096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T170442&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70694&fm=241602902948096&tin=02508201610067®Number=0000000000090913&sum=200062 [17:04:42]StoreToDocumentArchive [17:04:42]shift 466 fd 70694 [17:04:42]save to /storage/0466/doc_00070694 [17:04:42]save last doc name /storage/0466/doc_00070694 to /storage/kkm_last_doc_name [17:04:42]save OK [17:04:42]Clear old archive folders... [17:04:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:04:42]tlvbuf is 006EFAF0 [17:04:42]SAM_PROTO_ClearQueue [17:04:42]wFMCommunicate request_size=4 [17:04:42]MH_SAM_APDU [17:04:42]CAPDU: 80 09 00 00 [17:04:42]Write to MH i2c: E2 08 00 2C 01 80 09 00 00 00 00 00 00 9F [17:04:42]Write i2c OK [17:04:42]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 2C 01 00 90 00 A1 [17:04:43]RAPDU: 90 00 [17:04:43]wFMCommunicate OK [17:04:43]SAM_PROTO_ClearQueue done [17:04:43]KKMCreateOFDPacket [17:04:43]OFDProtocolAddRootSTLVToBuf [17:04:43]FM_MakeSignedData [17:04:43]FM_MakeSignedData [17:04:43]SAM_PROTO_SignData [17:04:43]wFMCommunicate request_size=4 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 0D 01 02 [17:04:43]Write to MH i2c: E2 08 00 2D 01 80 0D 01 02 00 00 00 00 A7 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 2D 01 00 90 00 A2 [17:04:43]RAPDU: 90 00 [17:04:43]wFMCommunicate OK [17:04:43]wFMCommunicate request_size=255 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 2A 92 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 26 14 01 00 35 04 06 00 DB BC 8F 34 [17:04:43]Write to MH i2c: E2 02 01 2E 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 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 2A 92 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 26 14 01 00 35 04 06 00 DB BC 8F 34 00 00 01 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 2E 01 00 90 00 A3 [17:04:43]RAPDU: 90 00 [17:04:43]wFMCommunicate OK [17:04:43]wFMCommunicate request_size=7 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 0D 02 02 02 F9 00 [17:04:43]Write to MH i2c: E2 0A 00 2F 01 80 0D 02 02 02 00 F9 00 00 00 A7 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 2F 01 00 90 00 A4 [17:04:43]RAPDU: 90 00 [17:04:43]wFMCommunicate OK [17:04:43]wFMCommunicate request_size=4 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 0D 03 02 [17:04:43]Write to MH i2c: E2 08 00 30 01 80 0D 03 02 00 00 00 00 AC [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 0B 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 0B 00 30 01 00 33 EA 5F 69 E4 7D 5A B2 90 00 FF [17:04:43]RAPDU: 33 EA 5F 69 E4 7D 5A B2 90 00 [17:04:43]wFMCommunicate OK [17:04:43]SAM_PROTO_SignData done [17:04:43]FM_MakeSignedData done [17:04:43]CreateOFDProtocolMessage [17:04:43]wFMCommunicate request_size=4 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 11 00 00 [17:04:43]Write to MH i2c: E2 08 00 31 01 80 11 00 00 00 00 00 00 AC [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 17 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 17 00 31 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 01 [17:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:04:43]wFMCommunicate OK [17:04:43]CreateOFDProtocolMessage done [17:04:43]OFDSenderStorePacket 70694 [17:04:43]StoreOFDPacket docnum=70694 [17:04:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 2E C6 04 01 43 B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 2A 92 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 26 14 01 00 35 04 06 00 DB BC 8F 34 F9 00 33 EA 5F 69 E4 7D 5A B2 [17:04:43]CheckFolder [17:04:43]dirname=/storage/ofd_packets [17:04:43]CheckFolder done [17:04:43]ProducePacketName [17:04:43]name=ofd_packets/00070694 [17:04:43]NVStorageSaveData ofd_packets/00070694 [17:04:43]File name is /storage/ofd_packets/00070694 [17:04:43]Write 298 bytes [17:04:43]NVStorageSaveData done [17:04:43]OFDSenderStorePacket done [17:04:43]KKMCreateOFDPacket done [17:04:43]NVStorageSaveData kkm_last_timestamp [17:04:43]File name is /storage/kkm_last_timestamp [17:04:43]Write 4 bytes [17:04:43]NVStorageSaveData done [17:04:43]ExternCall_PrintAddStr [17:04:43]wPrintStart [17:04:43]Write to MH i2c: 01 00 00 32 01 33 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: 01 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: 01 07 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: 01 07 00 32 01 00 00 00 00 00 FF 0F 48 [17:04:43]RasterBufferAndPrint [17:04:43]line Счет N : (1)141155 [17:04:43]line ИÐÐ: 02508201610067 [17:04:43]line Контрольно-КаÑÑовый Чек [17:04:43]line ПРОДÐЖР[17:04:43]line ТРК (МРК, ГÐК) : 34 [17:04:43]line Товар: 2710194210 [17:04:43]line ДТ-К-5 [17:04:43]line 26.890 * 74.40 [17:04:43]line = 2000.62 [17:04:43]line ÐДС 12% ÐСП 1% [17:04:43]line > о реализуемом товаре [17:04:43]line ИТОГО: 2000.62 [17:04:43]line ÐСП 1% : 17.70 [17:04:43]line ÐДС 12% : 212.45 [17:04:43]line Ðаличными: 0.00 [17:04:43]line Безнал.: 2000.62 [17:04:43]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [17:04:43]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [17:04:43]line СÐО: Общий режим [17:04:43]line Чек 48 13.08.2024 17:04 [17:04:43]line Смена: 466 ФФД: 1.0 [17:04:43]line ЗÐМ: 0300000140 [17:04:43]line РÐМ: 0000000000090913 [17:04:43]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:04:43]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [17:04:43]line ФМ: 0000000000874915 [17:04:43]line ФД: 70694 [17:04:43]line ФПД: 241602902948096 [17:04:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T170442&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70694&fm=241602902948096&tin=02508201610067®Number=0000000000090913&sum=200062 [17:04:43]OFD Sender: Processing packet 70694 [packets to send 67, broken 66] [17:04:43]ProducePacketName [17:04:43]name=ofd_packets/00070694 [17:04:43]OFD Sender: To server: ‡•öpG, [17:04:43]CommunicateWithHost lk.salyk.kg:30040 [17:04:43]ConnectInit lk.salyk.kg [17:04:43]written 0, free lines is 4095 [17:04:43]Connected sock=10 [17:04: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 39 31 35 0C 01 00 00 2E C6 04 01 43 B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 2A 92 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 26 14 01 00 35 04 06 00 DB BC 8F 34 F9 00 33 EA 5F 69 E4 7D 5A B2 [17:04:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 A8 83 47 00 A7 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 26 14 01 00 F4 03 04 00 14 39 BB 66 B6 04 01 00 00 F3 C0 3A 87 FE 41 26 69 [17:04:44]CommunicateWithHost err = 0 [17:04:44]CheckOFDResponse [17:04:44]1017 (14) - 77093643461234 [17:04:44]1041 (16) - 0000000000874915 [17:04:44]1040 (4) - 70694 [17:04:44]1012 (4) - 13.08.2024 10:44 [17:04:44]1206 (1) - 0 [17:04:44]OFD Sender: Remove packet 70694 [17:04:44]ProducePacketName [17:04:44]name=ofd_packets/00070694 [17:04:44]NVStorageDeleteData [17:04:44]Write to MH i2c: 01 00 00 5C 01 5D [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: 01 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: 01 07 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 0A 0D 7B [17:04:44]RasterBufferAndPrint [17:04:44]line [17:04:44]line [17:04:44]line [17:04:44]line [17:04:44]line [17:04:44]written 0, free lines is 3343 [17:04:44]MH_Cut [17:04:44]Write to MH i2c: D1 01 00 63 01 01 36 [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: D1 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: D1 01 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: D1 01 00 63 01 00 35 [17:04:44]Write to MH i2c: 01 00 00 64 01 65 [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]OFD Sender: No OFD packet to send [17:04:44]*** Cut start [17:04:44]*** Purtial cut [17:04:44]*** Stage 1: CUTSNS_PIN = 1 [17:04:45]Read from MH i2c: 01 [17:04:45]MH_I2C_Read... [17:04:45]*** Stop cut motor [17:04:45]*** Cut end [17:04:45]Read from MH i2c: 01 07 00 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: 01 07 00 64 01 00 00 00 00 00 FF 0F 7A [17:04:45]process_action close_receipt done [17:04:45]requested_data is exist [17:04:45]produce_requested_data [17:04:45]requested_item fm.sn is exist - process it [17:04:45]wFMCommunicate request_size=4 [17:04:45]MH_SAM_APDU [17:04:45]CAPDU: 80 11 00 00 [17:04:45]Write to MH i2c: E2 08 00 65 01 80 11 00 00 00 00 00 00 E0 [17:04:45]Write i2c OK [17:04:45]MH_I2C_Read... [17:04:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:45]Read from MH i2c: E2 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E2 17 00 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E2 17 00 65 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 35 [17:04:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:04:45]wFMCommunicate OK [17:04:45]requested_item fd.num is exist - process it [17:04:45]SAM_PROTO_GetFieldsCounters [17:04:45]wFMCommunicate request_size=4 [17:04:45]MH_SAM_APDU [17:04:45]CAPDU: 80 13 00 00 [17:04:45]Write to MH i2c: E2 08 00 66 01 80 13 00 00 00 00 00 00 E3 [17:04:45]Write i2c OK [17:04:45]MH_I2C_Read... [17:04:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:45]Read from MH i2c: E2 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E2 62 00 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E2 62 00 66 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 26 14 01 00 0E 04 04 00 D2 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 A1 [17:04:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 26 14 01 00 0E 04 04 00 D2 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 [17:04:45]wFMCommunicate OK [17:04:45]SAM_PROTO_GetFieldsCounters done [17:04:45]requested_item shift.num is exist - process it [17:04:45]requested_item shift.opened is exist - process it [17:04:45]req_shift_opened [17:04:45]FM_GetShiftState [17:04:45]SAM_PROTO_GetShiftState [17:04:45]wFMCommunicate request_size=4 [17:04:45]MH_SAM_APDU [17:04:45]CAPDU: 80 13 01 00 [17:04:45]Write to MH i2c: E2 08 00 67 01 80 13 01 00 00 00 00 00 E5 [17:04:45]Write i2c OK [17:04:45]MH_I2C_Read... [17:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:45]Read from MH i2c: E2 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E2 0E 00 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: E2 0E 00 67 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 54 [17:04:45]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:04:45]wFMCommunicate OK [17:04:45]SAM_PROTO_GetShiftState done [17:04:45]FM_GetShiftState done [17:04:45]req_shift_opened done [17:04:45]requested_item shift.open_date is exist - process it [17:04:45]req_shift_open_date [17:04:45]req_shift_open_date done [17:04:45]produce_requested_data done [17:04:45]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70694,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [17:04:45]process_action_free close_receipt [17:04:45]json_value_free [17:04:45]json_value_free done [17:04:45]process_json_proto returns [17:04:45]Send response to host [17:04:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70694,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [17:04:45]free response buf [17:04:45]execute_script done [17:04:45]execute_script returns [17:04:45]free content buf [17:04:45]Sock 9.Close socket [17:04:45]Sock 9.Thread stoped [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:01]accept exits with 7 [17:06:01]New connection [17:06:01]New thread 3067305316 created [17:06:01]Thread 3067448676 joined [17:06:01]Waiting for new connection... [17:06:01] Sock 7.Parse request [17:06:01]Sock 7.Check first char [17:06:01]Sock 7.First char is OK [17:06:01]request: POST /json_proto HTTP/1.0 [17:06:01]Method: POST [17:06:01]URL: /json_proto [17:06:01]Method is POST - this is cgi request [17:06:01]url: /json_proto [17:06:01]query_string will be loaded in cgi processing [17:06:01]execute_cgi json_proto POST (null) [17:06:01]execute_cgi path=json_proto method=POST [17:06:01]POST find Content-Length [17:06:01]Host: 172.17.58.67:8080 [17:06:01]Content-Length: 664 [17:06:01]Content-Type: application/json [17:06:01] [17:06:01]POST finish read [17:06:01]Found Content-Length = 664 [17:06:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17479", "tax_sys" : 0, "items" : [ { "code": "46234964", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C \u0427\u0427 XXL 4D \u0411\u0410\u041D\u041A\u0410 PLAYLIST 8*60*2", "price" : 39.00, "quantity" : 1.000, "sum" : 39.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 39.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:01]execute_script... [17:06:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17479", "tax_sys" : 0, "items" : [ { "code": "46234964", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C \u0427\u0427 XXL 4D \u0411\u0410\u041D\u041A\u0410 PLAYLIST 8*60*2", "price" : 39.00, "quantity" : 1.000, "sum" : 39.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 39.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:01]POST & json_proto [17:06:01]process_json_proto [17:06:01]json parsed OK: [17:06:01]protocol is kg_v1.0 [17:06:01]action value=close_receipt [17:06:01]process_action close_receipt [17:06:01]cmd_close_receipt [17:06:01]MH_GetDate [17:06:01]Write to MH i2c: F0 00 00 68 01 58 [17:06:01]Write i2c OK [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: F0 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: F0 09 00 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: F0 09 00 68 01 00 7A 92 BB 66 94 51 63 64 3A [17:06:01]GetLastDocTimeStamp 1723568682 [17:06:01]current date 1723568762 [17:06:01]FM_GetShiftState [17:06:01]SAM_PROTO_GetShiftState [17:06:01]wFMCommunicate request_size=4 [17:06:01]MH_SAM_APDU [17:06:01]CAPDU: 80 13 01 00 [17:06:01]Write to MH i2c: E2 08 00 69 01 80 13 01 00 00 00 00 00 E7 [17:06:01]Write i2c OK [17:06:01]MH_I2C_Read... [17:06:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:01]Read from MH i2c: E2 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: E2 0E 00 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: E2 0E 00 69 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 56 [17:06:01]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:06:01]wFMCommunicate OK [17:06:01]SAM_PROTO_GetShiftState done [17:06:01]FM_GetShiftState done [17:06:01]opened in 1723509656 [17:06:01]opened+sec_in_day 1723596056 [17:06:01]quantity*price = 3900 [17:06:01]sum+1 = 3901 [17:06:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 39.00 ÐСП 1% : 0.34 ÐДС 12% : 4.14 Ðаличными: 39.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 49 13.08.2024 17:06 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70695 ФПД: 241641868022956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T170602&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70695&fm=241641868022956&tin=02508201610067®Number=0000000000090913&sum=3900 0 [17:06:02]StoreToDocumentArchive [17:06:02]shift 466 fd 70695 [17:06:02]save to /storage/0466/doc_00070695 [17:06:02]save last doc name /storage/0466/doc_00070695 to /storage/kkm_last_doc_name [17:06:02]save OK [17:06:02]Clear old archive folders... [17:06:02]ProcessDocumentItem done err = 0, tmpTLVsize=292 [17:06:02]tlvbuf is 006BFAE0 [17:06:02]SAM_PROTO_ClearQueue [17:06:02]wFMCommunicate request_size=4 [17:06:02]MH_SAM_APDU [17:06:02]CAPDU: 80 09 00 00 [17:06:02]Write to MH i2c: E2 08 00 76 01 80 09 00 00 00 00 00 00 E9 [17:06:02]Write i2c OK [17:06:02]MH_I2C_Read... [17:06:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:03]Read from MH i2c: E2 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 03 00 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 03 00 76 01 00 90 00 EB [17:06:03]RAPDU: 90 00 [17:06:03]wFMCommunicate OK [17:06:03]SAM_PROTO_ClearQueue done [17:06:03]KKMCreateOFDPacket [17:06:03]OFDProtocolAddRootSTLVToBuf [17:06:03]FM_MakeSignedData [17:06:03]FM_MakeSignedData [17:06:03]SAM_PROTO_SignData [17:06:03]wFMCommunicate request_size=4 [17:06:03]MH_SAM_APDU [17:06:03]CAPDU: 80 0D 01 02 [17:06:03]Write to MH i2c: E2 08 00 77 01 80 0D 01 02 00 00 00 00 F1 [17:06:03]Write i2c OK [17:06:03]MH_I2C_Read... [17:06:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:03]Read from MH i2c: E2 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 03 00 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 03 00 77 01 00 90 00 EC [17:06:03]RAPDU: 90 00 [17:06:03]wFMCommunicate OK [17:06:03]wFMCommunicate request_size=255 [17:06:03]MH_SAM_APDU [17:06:03]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 08 00 34 36 32 33 34 39 36 34 06 04 37 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 58 58 4C 20 34 44 20 D0 91 D0 90 D0 9D D0 9A D0 90 20 50 4C 41 59 4C 49 53 54 20 38 2A 36 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 01 00 00 00 00 07 04 06 00 3C 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 7A 92 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [17:06:03]Write to MH i2c: E2 02 01 78 01 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 08 00 34 36 32 33 34 39 36 34 06 04 37 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 58 58 4C 20 34 44 20 D0 91 D0 90 D0 9D D0 9A D0 90 20 50 4C 41 59 4C 49 53 54 20 38 2A 36 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 01 00 00 00 00 07 04 06 00 3C 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 7A 92 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 E7 [17:06:03]Write i2c OK [17:06:03]MH_I2C_Read... [17:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:03]Read from MH i2c: E2 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 03 00 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 03 00 78 01 00 90 00 ED [17:06:03]RAPDU: 90 00 [17:06:03]wFMCommunicate OK [17:06:03]wFMCommunicate request_size=51 [17:06:03]MH_SAM_APDU [17:06:03]CAPDU: 80 0D 02 02 2E 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 27 14 01 00 35 04 06 00 DB C5 A1 B4 D4 AC [17:06:03]Write to MH i2c: E2 36 00 79 01 80 0D 02 02 2E 00 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 27 14 01 00 35 04 06 00 DB C5 A1 B4 D4 AC 00 00 35 [17:06:03]Write i2c OK [17:06:03]MH_I2C_Read... [17:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:03]Read from MH i2c: E2 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 03 00 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 03 00 79 01 00 90 00 EE [17:06:03]RAPDU: 90 00 [17:06:03]wFMCommunicate OK [17:06:03]wFMCommunicate request_size=4 [17:06:03]MH_SAM_APDU [17:06:03]CAPDU: 80 0D 03 02 [17:06:03]Write to MH i2c: E2 08 00 7A 01 80 0D 03 02 00 00 00 00 F6 [17:06:03]Write i2c OK [17:06:03]MH_I2C_Read... [17:06:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:03]Read from MH i2c: E2 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 0B 00 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 0B 00 7A 01 00 96 A5 E0 FF 80 46 D7 1A 90 00 C8 [17:06:03]RAPDU: 96 A5 E0 FF 80 46 D7 1A 90 00 [17:06:03]wFMCommunicate OK [17:06:03]SAM_PROTO_SignData done [17:06:03]FM_MakeSignedData done [17:06:03]CreateOFDProtocolMessage [17:06:03]wFMCommunicate request_size=4 [17:06:03]MH_SAM_APDU [17:06:03]CAPDU: 80 11 00 00 [17:06:03]Write to MH i2c: E2 08 00 7B 01 80 11 00 00 00 00 00 00 F6 [17:06:03]Write i2c OK [17:06:03]MH_I2C_Read... [17:06:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:03]Read from MH i2c: E2 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 17 00 [17:06:03]MH_I2C_Read... [17:06:03]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 39 31 35 90 00 4B [17:06:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:06:03]wFMCommunicate OK [17:06:03]CreateOFDProtocolMessage done [17:06:03]OFDSenderStorePacket 70695 [17:06:03]StoreOFDPacket docnum=70695 [17:06:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 38 01 00 00 DE CB 30 01 3D 47 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 08 00 34 36 32 33 34 39 36 34 06 04 37 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 58 58 4C 20 34 44 20 D0 91 D0 90 D0 9D D0 9A D0 90 20 50 4C 41 59 4C 49 53 54 20 38 2A 36 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 01 00 00 00 00 07 04 06 00 3C 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 7A 92 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 27 14 01 00 35 04 06 00 DB C5 A1 B4 D4 AC 96 A5 E0 FF 80 46 D7 1A [17:06:03]CheckFolder [17:06:03]dirname=/storage/ofd_packets [17:06:03]CheckFolder done [17:06:03]ProducePacketName [17:06:03]name=ofd_packets/00070695 [17:06:03]NVStorageSaveData ofd_packets/00070695 [17:06:03]File name is /storage/ofd_packets/00070695 [17:06:03]Write 342 bytes [17:06:03]NVStorageSaveData done [17:06:03]OFDSenderStorePacket done [17:06:03]KKMCreateOFDPacket done [17:06:03]NVStorageSaveData kkm_last_timestamp [17:06:03]File name is /storage/kkm_last_timestamp [17:06:03]Write 4 bytes [17:06:03]NVStorageSaveData done [17:06:03]ExternCall_PrintAddStr [17:06:03]wPrintStart [17:06:03]Write to MH i2c: 01 00 00 7C 01 7D [17:06:03]Write i2c OK [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: 01 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: 01 07 00 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: 01 07 00 7C 01 00 00 00 00 00 FF 0F 92 [17:06:03]RasterBufferAndPrint [17:06:03]line Счет N : (3)17479 [17:06:03]line ИÐÐ: 02508201610067 [17:06:03]line Контрольно-КаÑÑовый Чек [17:06:03]line ПРОДÐЖР[17:06:03]line Товар: 46234964 [17:06:03]line Карамель ЧЧ XXL 4D БÐÐКРPLAYLIST 8*60*2 [17:06:03]line 1.000 * 39.00 [17:06:03]line = 39.00 [17:06:03]line ÐДС 12% ÐСП 1% [17:06:03]line > о реализуемом товаре [17:06:03]line ИТОГО: 39.00 [17:06:03]line ÐСП 1% : 0.34 [17:06:03]line ÐДС 12% : 4.14 [17:06:03]line Ðаличными: 39.00 [17:06:03]line Безнал.: 0.00 [17:06:03]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [17:06:03]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [17:06:03]line СÐО: Общий режим [17:06:03]line Чек 49 13.08.2024 17:06 [17:06:03]line Смена: 466 ФФД: 1.0 [17:06:03]line ЗÐМ: 0300000140 [17:06:03]line РÐМ: 0000000000090913 [17:06:03]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:06:03]line ФМ: 0000000000874915 [17:06:03]line ФД: 70695 [17:06:03]line ФПД: 241641868022956 [17:06:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T170602&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70695&fm=241641868022956&tin=02508201610067®Number=0000000000090913&sum=3900 [17:06:03]line 0 [17:06:03]OFD Sender: Processing packet 70695 [packets to send 67, broken 66] [17:06:03]ProducePacketName [17:06:03]name=ofd_packets/00070695 [17:06:03]OFD Sender: To server: ‡•öpG, [17:06:03]CommunicateWithHost lk.salyk.kg:30040 [17:06:03]ConnectInit lk.salyk.kg [17:06:03]written 0, free lines is 4095 [17:06:03]Connected sock=10 [17:06: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 39 31 35 38 01 00 00 DE CB 30 01 3D 47 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 08 00 34 36 32 33 34 39 36 34 06 04 37 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 58 58 4C 20 34 44 20 D0 91 D0 90 D0 9D D0 9A D0 90 20 50 4C 41 59 4C 49 53 54 20 38 2A 36 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 01 00 00 00 00 07 04 06 00 3C 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 7A 92 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 27 14 01 00 35 04 06 00 DB C5 A1 B4 D4 AC 96 A5 E0 FF 80 46 D7 1A [17:06:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 5C 30 47 00 96 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 27 14 01 00 F4 03 04 00 64 39 BB 66 B6 04 01 00 00 0A BE 80 4C 51 4E 85 A7 [17:06:04]CommunicateWithHost err = 0 [17:06:04]CheckOFDResponse [17:06:04]1017 (14) - 77093643461234 [17:06:04]1041 (16) - 0000000000874915 [17:06:04]1040 (4) - 70695 [17:06:04]1012 (4) - 13.08.2024 10:45 [17:06:04]1206 (1) - 0 [17:06:04]OFD Sender: Remove packet 70695 [17:06:04]ProducePacketName [17:06:04]name=ofd_packets/00070695 [17:06:04]NVStorageDeleteData [17:06:04]Write to MH i2c: 01 00 00 A5 01 A6 [17:06:04]Write i2c OK [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: 01 [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: 01 07 00 [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: 01 07 00 A5 01 00 00 00 00 00 FF 0C B8 [17:06:04]RasterBufferAndPrint [17:06:04]line [17:06:04]line [17:06:04]line [17:06:04]line [17:06:04]line [17:06:04]written 0, free lines is 3333 [17:06:04]MH_Cut [17:06:04]Write to MH i2c: D1 01 00 AC 01 01 7F [17:06:04]Write i2c OK [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: D1 [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: D1 01 00 [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: D1 01 00 AC 01 00 7E [17:06:04]Write to MH i2c: 01 00 00 AD 01 AE [17:06:04]Write i2c OK [17:06:04]MH_I2C_Read... [17:06:04]OFD Sender: No OFD packet to send [17:06:04]*** Cut start [17:06:04]*** Purtial cut [17:06:04]*** CUTSNS_PIN = 0 [17:06:05]*** Stage 1: CUTSNS_PIN = 1 [17:06:07]Read from MH i2c: 01 [17:06:07]MH_I2C_Read... [17:06:07]*** Stop cut motor [17:06:07]*** Cut end [17:06:07]Read from MH i2c: 01 07 00 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: 01 07 00 AD 01 00 00 00 00 00 FF 0F C3 [17:06:07]process_action close_receipt done [17:06:07]requested_data is exist [17:06:07]produce_requested_data [17:06:07]requested_item fm.sn is exist - process it [17:06:07]wFMCommunicate request_size=4 [17:06:07]MH_SAM_APDU [17:06:07]CAPDU: 80 11 00 00 [17:06:07]Write to MH i2c: E2 08 00 AE 01 80 11 00 00 00 00 00 00 29 [17:06:07]Write i2c OK [17:06:07]MH_I2C_Read... [17:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:07]Read from MH i2c: E2 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 17 00 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 17 00 AE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 7E [17:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:06:07]wFMCommunicate OK [17:06:07]requested_item fd.num is exist - process it [17:06:07]SAM_PROTO_GetFieldsCounters [17:06:07]wFMCommunicate request_size=4 [17:06:07]MH_SAM_APDU [17:06:07]CAPDU: 80 13 00 00 [17:06:07]Write to MH i2c: E2 08 00 AF 01 80 13 00 00 00 00 00 00 2C [17:06:07]Write i2c OK [17:06:07]MH_I2C_Read... [17:06:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:07]Read from MH i2c: E2 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 62 00 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 62 00 AF 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 27 14 01 00 0E 04 04 00 D2 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 EE [17:06: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 27 14 01 00 0E 04 04 00 D2 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 [17:06:07]wFMCommunicate OK [17:06:07]SAM_PROTO_GetFieldsCounters done [17:06:07]requested_item shift.num is exist - process it [17:06:07]requested_item shift.opened is exist - process it [17:06:07]req_shift_opened [17:06:07]FM_GetShiftState [17:06:07]SAM_PROTO_GetShiftState [17:06:07]wFMCommunicate request_size=4 [17:06:07]MH_SAM_APDU [17:06:07]CAPDU: 80 13 01 00 [17:06:07]Write to MH i2c: E2 08 00 B0 01 80 13 01 00 00 00 00 00 2E [17:06:07]Write i2c OK [17:06:07]MH_I2C_Read... [17:06:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:07]Read from MH i2c: E2 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 0E 00 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 0E 00 B0 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 9D [17:06:07]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:06:07]wFMCommunicate OK [17:06:07]SAM_PROTO_GetShiftState done [17:06:07]FM_GetShiftState done [17:06:07]req_shift_opened done [17:06:07]requested_item shift.open_date is exist - process it [17:06:07]req_shift_open_date [17:06:07]req_shift_open_date done [17:06:07]produce_requested_data done [17:06:07]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70695,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [17:06:07]process_action_free close_receipt [17:06:07]json_value_free [17:06:07]json_value_free done [17:06:07]process_json_proto returns [17:06:07]Send response to host [17:06:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70695,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [17:06:07]free response buf [17:06:07]execute_script done [17:06:07]execute_script returns [17:06:07]free content buf [17:06:07]Sock 7.Close socket [17:06:07]Sock 7.Thread stoped [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:19]OFD Sender: No OFD packet to send [17:07:24]OFD Sender: No OFD packet to send [17:07:29]OFD Sender: No OFD packet to send [17:07:34]OFD Sender: No OFD packet to send [17:07:36]accept exits with 9 [17:07:36]New connection [17:07:36]New thread 3067448676 created [17:07:36]Thread 3067305316 joined [17:07:36]Waiting for new connection... [17:07:36] Sock 9.Parse request [17:07:36]Sock 9.Check first char [17:07:36]Sock 9.First char is OK [17:07:36]request: POST /json_proto HTTP/1.0 [17:07:36]Method: POST [17:07:36]URL: /json_proto [17:07:36]Method is POST - this is cgi request [17:07:36]url: /json_proto [17:07:36]query_string will be loaded in cgi processing [17:07:36]execute_cgi json_proto POST (null) [17:07:36]execute_cgi path=json_proto method=POST [17:07:36]POST find Content-Length [17:07:36]Host: 172.17.58.67:8080 [17:07:36]Content-Length: 805 [17:07:36]Content-Type: application/json [17:07:36] [17:07:36]POST finish read [17:07:36]Found Content-Length = 805 [17:07:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.860, "sum" : 320.27, "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" : 320.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:36]execute_script... [17:07:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.860, "sum" : 320.27, "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" : 320.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:36]POST & json_proto [17:07:36]process_json_proto [17:07:36]json parsed OK: [17:07:36]protocol is kg_v1.0 [17:07:36]action value=close_receipt [17:07:36]process_action close_receipt [17:07:36]cmd_close_receipt [17:07:36]MH_GetDate [17:07:36]Write to MH i2c: F0 00 00 B1 01 A1 [17:07:36]Write i2c OK [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: F0 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: F0 09 00 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: F0 09 00 B1 01 00 D8 92 BB 66 94 51 63 64 E1 [17:07:36]GetLastDocTimeStamp 1723568762 [17:07:36]current date 1723568856 [17:07:36]FM_GetShiftState [17:07:36]SAM_PROTO_GetShiftState [17:07:36]wFMCommunicate request_size=4 [17:07:36]MH_SAM_APDU [17:07:36]CAPDU: 80 13 01 00 [17:07:36]Write to MH i2c: E2 08 00 B2 01 80 13 01 00 00 00 00 00 30 [17:07:36]Write i2c OK [17:07:36]MH_I2C_Read... [17:07:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:36]Read from MH i2c: E2 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: E2 0E 00 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: E2 0E 00 B2 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 9F [17:07:36]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:07:36]wFMCommunicate OK [17:07:36]SAM_PROTO_GetShiftState done [17:07:36]FM_GetShiftState done [17:07:36]opened in 1723509656 [17:07:36]opened+sec_in_day 1723596056 [17:07:36]quantity*price = 32027 [17:07:36]sum+1 = 32028 [17:07:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 320.27 ÐСП 1% : 2.83 ÐДС 12% : 34.01 Ðаличными: 0.00 Безнал.: 320.27 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 50 13.08.2024 17:07 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70696 ФПД: 128565102345609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T170736&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70696&fm=128565102345609&tin=02508201610067®Number=0000000000090913&sum=32027 [17:07:37]StoreToDocumentArchive [17:07:37]shift 466 fd 70696 [17:07:37]save to /storage/0466/doc_00070696 [17:07:37]save last doc name /storage/0466/doc_00070696 to /storage/kkm_last_doc_name [17:07:37]save OK [17:07:37]Clear old archive folders... [17:07:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:37]tlvbuf is 006AEF80 [17:07:37]SAM_PROTO_ClearQueue [17:07:37]wFMCommunicate request_size=4 [17:07:37]MH_SAM_APDU [17:07:37]CAPDU: 80 09 00 00 [17:07:37]Write to MH i2c: E2 08 00 BF 01 80 09 00 00 00 00 00 00 32 [17:07:37]Write i2c OK [17:07:37]MH_I2C_Read... [17:07:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:37]Read from MH i2c: E2 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 03 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 03 00 BF 01 00 90 00 34 [17:07:37]RAPDU: 90 00 [17:07:37]wFMCommunicate OK [17:07:37]SAM_PROTO_ClearQueue done [17:07:37]KKMCreateOFDPacket [17:07:37]OFDProtocolAddRootSTLVToBuf [17:07:37]FM_MakeSignedData [17:07:37]FM_MakeSignedData [17:07:37]SAM_PROTO_SignData [17:07:37]wFMCommunicate request_size=4 [17:07:37]MH_SAM_APDU [17:07:37]CAPDU: 80 0D 01 02 [17:07:37]Write to MH i2c: E2 08 00 C0 01 80 0D 01 02 00 00 00 00 3A [17:07:37]Write i2c OK [17:07:37]MH_I2C_Read... [17:07:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:37]Read from MH i2c: E2 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 03 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 03 00 C0 01 00 90 00 35 [17:07:37]RAPDU: 90 00 [17:07:37]wFMCommunicate OK [17:07:37]wFMCommunicate request_size=255 [17:07:37]MH_SAM_APDU [17:07:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 12 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 1B 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 D8 92 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 28 14 01 00 35 04 06 00 74 [17:07:37]Write to MH i2c: E2 02 01 C1 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 FC 12 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 1B 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 D8 92 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 28 14 01 00 35 04 06 00 74 00 00 A3 [17:07:37]Write i2c OK [17:07:37]MH_I2C_Read... [17:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:37]Read from MH i2c: E2 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 03 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 03 00 C1 01 00 90 00 36 [17:07:37]RAPDU: 90 00 [17:07:37]wFMCommunicate OK [17:07:37]wFMCommunicate request_size=10 [17:07:37]MH_SAM_APDU [17:07:37]CAPDU: 80 0D 02 02 05 ED E5 41 7D 89 [17:07:37]Write to MH i2c: E2 0D 00 C2 01 80 0D 02 02 05 00 ED E5 41 7D 89 00 00 60 [17:07:37]Write i2c OK [17:07:37]MH_I2C_Read... [17:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:37]Read from MH i2c: E2 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 03 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 03 00 C2 01 00 90 00 37 [17:07:37]RAPDU: 90 00 [17:07:37]wFMCommunicate OK [17:07:37]wFMCommunicate request_size=4 [17:07:37]MH_SAM_APDU [17:07:37]CAPDU: 80 0D 03 02 [17:07:37]Write to MH i2c: E2 08 00 C3 01 80 0D 03 02 00 00 00 00 3F [17:07:37]Write i2c OK [17:07:37]MH_I2C_Read... [17:07:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:37]Read from MH i2c: E2 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 0B 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 0B 00 C3 01 00 2D 4B 4C FE 5B 16 4D 07 90 00 C7 [17:07:37]RAPDU: 2D 4B 4C FE 5B 16 4D 07 90 00 [17:07:37]wFMCommunicate OK [17:07:37]SAM_PROTO_SignData done [17:07:37]FM_MakeSignedData done [17:07:37]CreateOFDProtocolMessage [17:07:37]wFMCommunicate request_size=4 [17:07:37]MH_SAM_APDU [17:07:37]CAPDU: 80 11 00 00 [17:07:37]Write to MH i2c: E2 08 00 C4 01 80 11 00 00 00 00 00 00 3F [17:07:37]Write i2c OK [17:07:37]MH_I2C_Read... [17:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:37]Read from MH i2c: E2 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 17 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 17 00 C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 94 [17:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:07:37]wFMCommunicate OK [17:07:37]CreateOFDProtocolMessage done [17:07:37]OFDSenderStorePacket 70696 [17:07:37]StoreOFDPacket docnum=70696 [17:07:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 52 02 07 01 9C 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 12 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 1B 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 D8 92 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 28 14 01 00 35 04 06 00 74 ED E5 41 7D 89 2D 4B 4C FE 5B 16 4D 07 [17:07:37]CheckFolder [17:07:37]dirname=/storage/ofd_packets [17:07:37]CheckFolder done [17:07:37]ProducePacketName [17:07:37]name=ofd_packets/00070696 [17:07:37]NVStorageSaveData ofd_packets/00070696 [17:07:37]File name is /storage/ofd_packets/00070696 [17:07:37]Write 301 bytes [17:07:37]NVStorageSaveData done [17:07:37]OFDSenderStorePacket done [17:07:37]KKMCreateOFDPacket done [17:07:37]NVStorageSaveData kkm_last_timestamp [17:07:37]File name is /storage/kkm_last_timestamp [17:07:37]Write 4 bytes [17:07:37]NVStorageSaveData done [17:07:37]ExternCall_PrintAddStr [17:07:37]wPrintStart [17:07:37]Write to MH i2c: 01 00 00 C5 01 C6 [17:07:37]Write i2c OK [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: 01 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: 01 07 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: 01 07 00 C5 01 00 00 00 00 00 FF 0F DB [17:07:37]RasterBufferAndPrint [17:07:37]line Счет N : (1)141156 [17:07:37]line ИÐÐ: 02508201610067 [17:07:37]line Контрольно-КаÑÑовый Чек [17:07:37]line ПРОДÐЖР[17:07:37]line ТРК (МРК, ГÐК) : 41 [17:07:37]line Товар: 2710124130 [17:07:37]line Ðи-92-К-5 [17:07:37]line 4.860 * 65.90 [17:07:37]line = 320.27 [17:07:37]line ÐДС 12% ÐСП 1% [17:07:37]line > о реализуемом товаре [17:07:37]line ИТОГО: 320.27 [17:07:37]line ÐСП 1% : 2.83 [17:07:37]line ÐДС 12% : 34.01 [17:07:37]line Ðаличными: 0.00 [17:07:37]line Безнал.: 320.27 [17:07:37]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [17:07:37]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [17:07:37]line СÐО: Общий режим [17:07:37]line Чек 50 13.08.2024 17:07 [17:07:37]line Смена: 466 ФФД: 1.0 [17:07:37]line ЗÐМ: 0300000140 [17:07:37]line РÐМ: 0000000000090913 [17:07:37]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:07:37]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [17:07:37]line ФМ: 0000000000874915 [17:07:37]line ФД: 70696 [17:07:37]line ФПД: 128565102345609 [17:07:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T170736&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70696&fm=128565102345609&tin=02508201610067®Number=0000000000090913&sum=32027 [17:07:37]written 0, free lines is 4095 [17:07:37]OFD Sender: Processing packet 70696 [packets to send 67, broken 66] [17:07:37]ProducePacketName [17:07:37]name=ofd_packets/00070696 [17:07:37]OFD Sender: To server: ‡•öpG, [17:07:37]CommunicateWithHost lk.salyk.kg:30040 [17:07:37]ConnectInit lk.salyk.kg [17:07:38]Write to MH i2c: 01 00 00 EF 01 F0 [17:07:38]Write i2c OK [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: 01 [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: 01 07 00 [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: 01 07 00 EF 01 00 00 00 00 00 EA 0C ED [17:07:38]RasterBufferAndPrint [17:07:38]line [17:07:38]line [17:07:38]line [17:07:38]line [17:07:38]line [17:07:38]written 0, free lines is 3312 [17:07:38]MH_Cut [17:07:38]Write to MH i2c: D1 01 00 F6 01 01 C9 [17:07:38]Write i2c OK [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: D1 [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: D1 01 00 [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: D1 01 00 F6 01 00 C8 [17:07:38]Write to MH i2c: 01 00 00 F7 01 F8 [17:07:38]Write i2c OK [17:07:38]MH_I2C_Read... [17:07:38]*** Cut start [17:07:38]*** Purtial cut [17:07:38]*** Stage 1: CUTSNS_PIN = 1 [17:07:39]Read from MH i2c: 01 [17:07:39]MH_I2C_Read... [17:07:39]*** Stop cut motor [17:07:39]*** Cut end [17:07:39]Read from MH i2c: 01 07 00 [17:07:39]MH_I2C_Read... [17:07:39]Read from MH i2c: 01 07 00 F7 01 00 00 00 00 00 FF 0F 0D [17:07:39]process_action close_receipt done [17:07:39]requested_data is exist [17:07:39]produce_requested_data [17:07:39]requested_item fm.sn is exist - process it [17:07:39]wFMCommunicate request_size=4 [17:07:39]MH_SAM_APDU [17:07:39]CAPDU: 80 11 00 00 [17:07:39]Write to MH i2c: E2 08 00 F8 01 80 11 00 00 00 00 00 00 73 [17:07:39]Write i2c OK [17:07:39]MH_I2C_Read... [17:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:39]Read from MH i2c: E2 [17:07:39]MH_I2C_Read... [17:07:39]Read from MH i2c: E2 17 00 [17:07:39]MH_I2C_Read... [17:07:39]Read from MH i2c: E2 17 00 F8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C8 [17:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:07:39]wFMCommunicate OK [17:07:39]requested_item fd.num is exist - process it [17:07:39]SAM_PROTO_GetFieldsCounters [17:07:39]wFMCommunicate request_size=4 [17:07:39]MH_SAM_APDU [17:07:39]CAPDU: 80 13 00 00 [17:07:39]Write to MH i2c: E2 08 00 F9 01 80 13 00 00 00 00 00 00 76 [17:07:39]Write i2c OK [17:07:39]MH_I2C_Read... [17:07:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:39]Read from MH i2c: E2 [17:07:39]MH_I2C_Read... [17:07:39]Read from MH i2c: E2 62 00 [17:07:39]MH_I2C_Read... [17:07:39]Read from MH i2c: E2 62 00 F9 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 28 14 01 00 0E 04 04 00 D2 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 3C [17:07: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 28 14 01 00 0E 04 04 00 D2 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 [17:07:39]wFMCommunicate OK [17:07:39]SAM_PROTO_GetFieldsCounters done [17:07:39]requested_item shift.num is exist - process it [17:07:39]requested_item shift.opened is exist - process it [17:07:39]req_shift_opened [17:07:39]FM_GetShiftState [17:07:39]SAM_PROTO_GetShiftState [17:07:39]wFMCommunicate request_size=4 [17:07:39]MH_SAM_APDU [17:07:39]CAPDU: 80 13 01 00 [17:07:39]Write to MH i2c: E2 08 00 FA 01 80 13 01 00 00 00 00 00 78 [17:07:39]Write i2c OK [17:07:39]MH_I2C_Read... [17:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:39]Read from MH i2c: E2 [17:07:39]MH_I2C_Read... [17:07:39]Read from MH i2c: E2 0E 00 [17:07:39]MH_I2C_Read... [17:07:39]Read from MH i2c: E2 0E 00 FA 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 E7 [17:07:39]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:07:39]wFMCommunicate OK [17:07:39]SAM_PROTO_GetShiftState done [17:07:39]FM_GetShiftState done [17:07:39]req_shift_opened done [17:07:39]requested_item shift.open_date is exist - process it [17:07:39]req_shift_open_date [17:07:39]req_shift_open_date done [17:07:39]produce_requested_data done [17:07:39]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70696,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [17:07:39]process_action_free close_receipt [17:07:39]json_value_free [17:07:39]json_value_free done [17:07:39]process_json_proto returns [17:07:39]Send response to host [17:07:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70696,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [17:07:39]free response buf [17:07:39]execute_script done [17:07:39]execute_script returns [17:07:39]free content buf [17:07:39]Sock 9.Close socket [17:07:39]Sock 9.Thread stoped [17:09:51]ConnectInit Can't connect to host [17:09:51]CommunicateWithHost connect error [17:09:51]CommunicateWithHost err = -1 [17:09:51]OFD Sender: Server communicate error [17:09:56]OFD Sender: Processing packet 70696 [packets to send 67, broken 66] [17:09:56]ProducePacketName [17:09:56]name=ofd_packets/00070696 [17:09:56]OFD Sender: To server: ‡•öpG, [17:09:56]CommunicateWithHost lk.salyk.kg:30040 [17:09:56]ConnectInit lk.salyk.kg [17:09:56]Connected sock=9 [17:09:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 52 02 07 01 9C 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 12 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 1B 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 D8 92 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 28 14 01 00 35 04 06 00 74 ED E5 41 7D 89 2D 4B 4C FE 5B 16 4D 07 [17:09:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 74 3A 47 00 F1 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 28 14 01 00 F4 03 04 00 4D 3A BB 66 B6 04 01 00 00 4C 00 EF 99 22 89 53 D3 [17:09:56]CommunicateWithHost err = 0 [17:09:56]CheckOFDResponse [17:09:56]1017 (14) - 77093643461234 [17:09:56]1041 (16) - 0000000000874915 [17:09:56]1040 (4) - 70696 [17:09:56]1012 (4) - 13.08.2024 10:49 [17:09:56]1206 (1) - 0 [17:09:56]OFD Sender: Remove packet 70696 [17:09:56]ProducePacketName [17:09:56]name=ofd_packets/00070696 [17:09:56]NVStorageDeleteData [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:17]OFD Sender: No OFD packet to send [17:10:22]OFD Sender: No OFD packet to send [17:10:27]OFD Sender: No OFD packet to send [17:10:32]OFD Sender: No OFD packet to send [17:10:37]OFD Sender: No OFD packet to send [17:10:42]OFD Sender: No OFD packet to send [17:10:47]OFD Sender: No OFD packet to send [17:10:52]OFD Sender: No OFD packet to send [17:10:57]OFD Sender: No OFD packet to send [17:11:02]OFD Sender: No OFD packet to send [17:11:07]OFD Sender: No OFD packet to send [17:11:12]OFD Sender: No OFD packet to send [17:11:17]OFD Sender: No OFD packet to send [17:11:22]OFD Sender: No OFD packet to send [17:11:27]OFD Sender: No OFD packet to send [17:11:32]OFD Sender: No OFD packet to send [17:11:37]OFD Sender: No OFD packet to send [17:11:42]OFD Sender: No OFD packet to send [17:11:47]OFD Sender: No OFD packet to send [17:11:52]OFD Sender: No OFD packet to send [17:11:57]OFD Sender: No OFD packet to send [17:12:02]OFD Sender: No OFD packet to send [17:12:07]OFD Sender: No OFD packet to send [17:12:12]OFD Sender: No OFD packet to send [17:12:17]OFD Sender: No OFD packet to send [17:12:22]OFD Sender: No OFD packet to send [17:12:27]OFD Sender: No OFD packet to send [17:12:32]OFD Sender: No OFD packet to send [17:12:37]OFD Sender: No OFD packet to send [17:12:42]OFD Sender: No OFD packet to send [17:12:47]OFD Sender: No OFD packet to send [17:12:52]OFD Sender: No OFD packet to send [17:12:57]OFD Sender: No OFD packet to send [17:13:02]OFD Sender: No OFD packet to send [17:13:07]OFD Sender: No OFD packet to send [17:13:12]OFD Sender: No OFD packet to send [17:13:17]OFD Sender: No OFD packet to send [17:13:22]OFD Sender: No OFD packet to send [17:13:27]OFD Sender: No OFD packet to send [17:13:32]OFD Sender: No OFD packet to send [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14:52]OFD Sender: No OFD packet to send [17:14:57]OFD Sender: No OFD packet to send [17:15:02]OFD Sender: No OFD packet to send [17:15:07]OFD Sender: No OFD packet to send [17:15:07]accept exits with 7 [17:15:07]New connection [17:15:07]New thread 3067305316 created [17:15:07]Thread 3067448676 joined [17:15:07]Waiting for new connection... [17:15:07] Sock 7.Parse request [17:15:07]Sock 7.Check first char [17:15:07]Sock 7.First char is OK [17:15:07]request: POST /json_proto HTTP/1.0 [17:15:07]Method: POST [17:15:07]URL: /json_proto [17:15:07]Method is POST - this is cgi request [17:15:07]url: /json_proto [17:15:07]query_string will be loaded in cgi processing [17:15:07]execute_cgi json_proto POST (null) [17:15:07]execute_cgi path=json_proto method=POST [17:15:07]POST find Content-Length [17:15:07]Host: 172.17.58.67:8080 [17:15:07]Content-Length: 808 [17:15:07]Content-Type: application/json [17:15:07] [17:15:07]POST finish read [17:15:07]Found Content-Length = 808 [17:15:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:07]execute_script... [17:15: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)141157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:07]POST & json_proto [17:15:07]process_json_proto [17:15:07]json parsed OK: [17:15:07]protocol is kg_v1.0 [17:15:07]action value=close_receipt [17:15:07]process_action close_receipt [17:15:07]cmd_close_receipt [17:15:07]MH_GetDate [17:15:07]Write to MH i2c: F0 00 00 FB 01 EB [17:15:07]Write i2c OK [17:15:07]MH_I2C_Read... [17:15:07]Read from MH i2c: F0 [17:15:07]MH_I2C_Read... [17:15:07]Read from MH i2c: F0 09 00 [17:15:07]MH_I2C_Read... [17:15:07]Read from MH i2c: F0 09 00 FB 01 00 9C 94 BB 66 94 51 63 64 F1 [17:15:07]GetLastDocTimeStamp 1723568856 [17:15:07]current date 1723569308 [17:15:07]FM_GetShiftState [17:15:07]SAM_PROTO_GetShiftState [17:15:07]wFMCommunicate request_size=4 [17:15:07]MH_SAM_APDU [17:15:07]CAPDU: 80 13 01 00 [17:15:07]Write to MH i2c: E2 08 00 FC 01 80 13 01 00 00 00 00 00 7A [17:15:07]Write i2c OK [17:15:07]MH_I2C_Read... [17:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:08]Read from MH i2c: E2 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 0E 00 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 0E 00 FC 01 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 E9 [17:15:08]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:15:08]wFMCommunicate OK [17:15:08]SAM_PROTO_GetShiftState done [17:15:08]FM_GetShiftState done [17:15:08]opened in 1723509656 [17:15:08]opened+sec_in_day 1723596056 [17:15:08]quantity*price = 100036 [17:15:08]sum+1 = 100037 [17:15:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.36 ÐСП 1% : 8.85 ÐДС 12% : 106.23 Ðаличными: 0.00 Безнал.: 1000.36 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 51 13.08.2024 17:15 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70697 ФПД: 194233716075845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T171508&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70697&fm=194233716075845&tin=02508201610067®Number=0000000000090913&sum=100036 [17:15:09]StoreToDocumentArchive [17:15:09]shift 466 fd 70697 [17:15:09]save to /storage/0466/doc_00070697 [17:15:09]save last doc name /storage/0466/doc_00070697 to /storage/kkm_last_doc_name [17:15:09]save OK [17:15:09]Clear old archive folders... [17:15:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:15:09]tlvbuf is 006AEB60 [17:15:09]SAM_PROTO_ClearQueue [17:15:09]wFMCommunicate request_size=4 [17:15:09]MH_SAM_APDU [17:15:09]CAPDU: 80 09 00 00 [17:15:09]Write to MH i2c: E2 08 00 09 02 80 09 00 00 00 00 00 00 7D [17:15:09]Write i2c OK [17:15:09]MH_I2C_Read... [17:15:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:09]Read from MH i2c: E2 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: E2 03 00 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: E2 03 00 09 02 00 90 00 7F [17:15:09]RAPDU: 90 00 [17:15:09]wFMCommunicate OK [17:15:09]SAM_PROTO_ClearQueue done [17:15:09]KKMCreateOFDPacket [17:15:09]OFDProtocolAddRootSTLVToBuf [17:15:09]FM_MakeSignedData [17:15:09]FM_MakeSignedData [17:15:09]SAM_PROTO_SignData [17:15:09]wFMCommunicate request_size=4 [17:15:09]MH_SAM_APDU [17:15:09]CAPDU: 80 0D 01 02 [17:15:09]Write to MH i2c: E2 08 00 0A 02 80 0D 01 02 00 00 00 00 85 [17:15:09]Write i2c OK [17:15:09]MH_I2C_Read... [17:15:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:09]Read from MH i2c: E2 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: E2 03 00 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: E2 03 00 0A 02 00 90 00 80 [17:15:09]RAPDU: 90 00 [17:15:09]wFMCommunicate OK [17:15:09]wFMCommunicate request_size=255 [17:15:09]MH_SAM_APDU [17:15: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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9C 94 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 29 14 01 00 35 04 06 00 B0 [17:15:09]Write to MH i2c: E2 02 01 0B 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9C 94 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 29 14 01 00 35 04 06 00 B0 00 00 32 [17:15:09]Write i2c OK [17:15:09]MH_I2C_Read... [17:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:09]Read from MH i2c: E2 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: E2 03 00 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: E2 03 00 0B 02 00 90 00 81 [17:15:09]RAPDU: 90 00 [17:15:09]wFMCommunicate OK [17:15:09]wFMCommunicate request_size=10 [17:15:09]MH_SAM_APDU [17:15:09]CAPDU: 80 0D 02 02 05 A7 8F A6 6D 45 [17:15:09]Write to MH i2c: E2 0D 00 0C 02 80 0D 02 02 05 00 A7 8F A6 6D 45 00 00 20 [17:15:09]Write i2c OK [17:15:09]MH_I2C_Read... [17:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:09]Read from MH i2c: E2 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: E2 03 00 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: E2 03 00 0C 02 00 90 00 82 [17:15:09]RAPDU: 90 00 [17:15:09]wFMCommunicate OK [17:15:09]wFMCommunicate request_size=4 [17:15:09]MH_SAM_APDU [17:15:09]CAPDU: 80 0D 03 02 [17:15:09]Write to MH i2c: E2 08 00 0D 02 80 0D 03 02 00 00 00 00 8A [17:15:09]Write i2c OK [17:15:09]MH_I2C_Read... [17:15:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:09]Read from MH i2c: E2 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: E2 0B 00 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: E2 0B 00 0D 02 00 95 DD 66 ED 02 1F B4 78 90 00 9D [17:15:09]RAPDU: 95 DD 66 ED 02 1F B4 78 90 00 [17:15:09]wFMCommunicate OK [17:15:09]SAM_PROTO_SignData done [17:15:09]FM_MakeSignedData done [17:15:09]CreateOFDProtocolMessage [17:15:09]wFMCommunicate request_size=4 [17:15:09]MH_SAM_APDU [17:15:09]CAPDU: 80 11 00 00 [17:15:09]Write to MH i2c: E2 08 00 0E 02 80 11 00 00 00 00 00 00 8A [17:15:09]Write i2c OK [17:15:09]MH_I2C_Read... [17:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:09]Read from MH i2c: E2 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: E2 17 00 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: E2 17 00 0E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 DF [17:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:15:09]wFMCommunicate OK [17:15:09]CreateOFDProtocolMessage done [17:15:09]OFDSenderStorePacket 70697 [17:15:09]StoreOFDPacket docnum=70697 [17:15:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 C2 A4 07 01 E0 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9C 94 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 29 14 01 00 35 04 06 00 B0 A7 8F A6 6D 45 95 DD 66 ED 02 1F B4 78 [17:15:09]CheckFolder [17:15:09]dirname=/storage/ofd_packets [17:15:09]CheckFolder done [17:15:09]ProducePacketName [17:15:09]name=ofd_packets/00070697 [17:15:09]NVStorageSaveData ofd_packets/00070697 [17:15:09]File name is /storage/ofd_packets/00070697 [17:15:09]Write 301 bytes [17:15:09]NVStorageSaveData done [17:15:09]OFDSenderStorePacket done [17:15:09]KKMCreateOFDPacket done [17:15:09]NVStorageSaveData kkm_last_timestamp [17:15:09]File name is /storage/kkm_last_timestamp [17:15:09]Write 4 bytes [17:15:09]NVStorageSaveData done [17:15:09]ExternCall_PrintAddStr [17:15:09]wPrintStart [17:15:09]Write to MH i2c: 01 00 00 0F 02 11 [17:15:09]Write i2c OK [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: 01 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: 01 07 00 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: 01 07 00 0F 02 00 00 00 00 00 FF 0F 26 [17:15:09]RasterBufferAndPrint [17:15:09]line Счет N : (1)141157 [17:15:09]line ИÐÐ: 02508201610067 [17:15:09]line Контрольно-КаÑÑовый Чек [17:15:09]line ПРОДÐЖР[17:15:09]line ТРК (МРК, ГÐК) : 31 [17:15:09]line Товар: 2710124130 [17:15:09]line Ðи-92-К-5 [17:15:09]line 15.180 * 65.90 [17:15:09]line = 1000.36 [17:15:09]line ÐДС 12% ÐСП 1% [17:15:09]line > о реализуемом товаре [17:15:09]line ИТОГО: 1000.36 [17:15:09]line ÐСП 1% : 8.85 [17:15:09]line ÐДС 12% : 106.23 [17:15:09]line Ðаличными: 0.00 [17:15:09]line Безнал.: 1000.36 [17:15:09]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [17:15:09]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [17:15:09]line СÐО: Общий режим [17:15:09]line Чек 51 13.08.2024 17:15 [17:15:09]line Смена: 466 ФФД: 1.0 [17:15:09]line ЗÐМ: 0300000140 [17:15:09]line РÐМ: 0000000000090913 [17:15:09]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:15:09]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [17:15:09]line ФМ: 0000000000874915 [17:15:09]line ФД: 70697 [17:15:09]line ФПД: 194233716075845 [17:15:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T171508&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70697&fm=194233716075845&tin=02508201610067®Number=0000000000090913&sum=100036 [17:15:09]OFD Sender: Processing packet 70697 [packets to send 67, broken 66] [17:15:09]ProducePacketName [17:15:09]name=ofd_packets/00070697 [17:15:09]OFD Sender: To server: ‡•öpG, [17:15:09]CommunicateWithHost lk.salyk.kg:30040 [17:15:09]ConnectInit lk.salyk.kg [17:15:09]written 0, free lines is 4095 [17:15:10]Connected sock=10 [17:15: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 39 31 35 0F 01 00 00 C2 A4 07 01 E0 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 9C 94 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 29 14 01 00 35 04 06 00 B0 A7 8F A6 6D 45 95 DD 66 ED 02 1F B4 78 [17:15:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 45 DC 47 00 9A 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 29 14 01 00 F4 03 04 00 87 3B BB 66 B6 04 01 00 00 37 5C 2B 7F F7 E0 C6 D5 [17:15:10]CommunicateWithHost err = 0 [17:15:10]CheckOFDResponse [17:15:10]1017 (14) - 77093643461234 [17:15:10]1041 (16) - 0000000000874915 [17:15:10]1040 (4) - 70697 [17:15:10]1012 (4) - 13.08.2024 10:55 [17:15:10]1206 (1) - 0 [17:15:10]OFD Sender: Remove packet 70697 [17:15:10]ProducePacketName [17:15:10]name=ofd_packets/00070697 [17:15:10]NVStorageDeleteData [17:15:10]Write to MH i2c: 01 00 00 39 02 3B [17:15:10]Write i2c OK [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: 01 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: 01 07 00 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 FB 0C 49 [17:15:10]RasterBufferAndPrint [17:15:10]line [17:15:10]line [17:15:10]line [17:15:10]line [17:15:10]line [17:15:10]written 0, free lines is 3329 [17:15:10]MH_Cut [17:15:10]Write to MH i2c: D1 01 00 40 02 01 14 [17:15:10]Write i2c OK [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: D1 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: D1 01 00 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: D1 01 00 40 02 00 13 [17:15:10]Write to MH i2c: 01 00 00 41 02 43 [17:15:10]Write i2c OK [17:15:10]MH_I2C_Read... [17:15:10]OFD Sender: No OFD packet to send [17:15:11]*** Cut start [17:15:11]*** Purtial cut [17:15:11]*** CUTSNS_PIN = 0 [17:15:11]*** Stage 1: CUTSNS_PIN = 1 [17:15:13]Read from MH i2c: 01 [17:15:13]MH_I2C_Read... [17:15:13]*** Stop cut motor [17:15:13]*** Cut end [17:15:13]Read from MH i2c: 01 07 00 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: 01 07 00 41 02 00 00 00 00 00 FF 0F 58 [17:15:13]process_action close_receipt done [17:15:13]requested_data is exist [17:15:13]produce_requested_data [17:15:13]requested_item fm.sn is exist - process it [17:15:13]wFMCommunicate request_size=4 [17:15:13]MH_SAM_APDU [17:15:13]CAPDU: 80 11 00 00 [17:15:13]Write to MH i2c: E2 08 00 42 02 80 11 00 00 00 00 00 00 BE [17:15:13]Write i2c OK [17:15:13]MH_I2C_Read... [17:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:13]Read from MH i2c: E2 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: E2 17 00 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: E2 17 00 42 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 13 [17:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:15:13]wFMCommunicate OK [17:15:13]requested_item fd.num is exist - process it [17:15:13]SAM_PROTO_GetFieldsCounters [17:15:13]wFMCommunicate request_size=4 [17:15:13]MH_SAM_APDU [17:15:13]CAPDU: 80 13 00 00 [17:15:13]Write to MH i2c: E2 08 00 43 02 80 13 00 00 00 00 00 00 C1 [17:15:13]Write i2c OK [17:15:13]MH_I2C_Read... [17:15:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:13]Read from MH i2c: E2 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: E2 62 00 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: E2 62 00 43 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 29 14 01 00 0E 04 04 00 D2 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 8B [17:15: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 29 14 01 00 0E 04 04 00 D2 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 [17:15:13]wFMCommunicate OK [17:15:13]SAM_PROTO_GetFieldsCounters done [17:15:13]requested_item shift.num is exist - process it [17:15:13]requested_item shift.opened is exist - process it [17:15:13]req_shift_opened [17:15:13]FM_GetShiftState [17:15:13]SAM_PROTO_GetShiftState [17:15:13]wFMCommunicate request_size=4 [17:15:13]MH_SAM_APDU [17:15:13]CAPDU: 80 13 01 00 [17:15:13]Write to MH i2c: E2 08 00 44 02 80 13 01 00 00 00 00 00 C3 [17:15:13]Write i2c OK [17:15:13]MH_I2C_Read... [17:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:13]Read from MH i2c: E2 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: E2 0E 00 [17:15:13]MH_I2C_Read... [17:15:13]Read from MH i2c: E2 0E 00 44 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 32 [17:15:13]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:15:13]wFMCommunicate OK [17:15:13]SAM_PROTO_GetShiftState done [17:15:13]FM_GetShiftState done [17:15:13]req_shift_opened done [17:15:13]requested_item shift.open_date is exist - process it [17:15:13]req_shift_open_date [17:15:13]req_shift_open_date done [17:15:13]produce_requested_data done [17:15:13]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70697,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [17:15:13]process_action_free close_receipt [17:15:13]json_value_free [17:15:13]json_value_free done [17:15:13]process_json_proto returns [17:15:13]Send response to host [17:15:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70697,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [17:15:13]free response buf [17:15:13]execute_script done [17:15:13]execute_script returns [17:15:13]free content buf [17:15:13]Sock 7.Close socket [17:15:13]Sock 7.Thread stoped [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:50]OFD Sender: No OFD packet to send [17:15:55]OFD Sender: No OFD packet to send [17:16:00]OFD Sender: No OFD packet to send [17:16:05]OFD Sender: No OFD packet to send [17:16:10]OFD Sender: No OFD packet to send [17:16:15]OFD Sender: No OFD packet to send [17:16:20]OFD Sender: No OFD packet to send [17:16:25]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:40]OFD Sender: No OFD packet to send [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:41]OFD Sender: No OFD packet to send [17:19:46]OFD Sender: No OFD packet to send [17:19:51]OFD Sender: No OFD packet to send [17:19:56]OFD Sender: No OFD packet to send [17:20:01]OFD Sender: No OFD packet to send [17:20:06]OFD Sender: No OFD packet to send [17:20:11]OFD Sender: No OFD packet to send [17:20:16]OFD Sender: No OFD packet to send [17:20:21]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:46]OFD Sender: No OFD packet to send [17:20:51]OFD Sender: No OFD packet to send [17:20:56]OFD Sender: No OFD packet to send [17:21:01]OFD Sender: No OFD packet to send [17:21:06]OFD Sender: No OFD packet to send [17:21:11]OFD Sender: No OFD packet to send [17:21:16]OFD Sender: No OFD packet to send [17:21:21]OFD Sender: No OFD packet to send [17:21:26]OFD Sender: No OFD packet to send [17:21:31]OFD Sender: No OFD packet to send [17:21:36]OFD Sender: No OFD packet to send [17:21:41]OFD Sender: No OFD packet to send [17:21:46]OFD Sender: No OFD packet to send [17:21:51]OFD Sender: No OFD packet to send [17:21:56]OFD Sender: No OFD packet to send [17:22:01]OFD Sender: No OFD packet to send [17:22:06]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:11]OFD Sender: No OFD packet to send [17:24:16]OFD Sender: No OFD packet to send [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]OFD Sender: No OFD packet to send [17:26:46]OFD Sender: No OFD packet to send [17:26:51]OFD Sender: No OFD packet to send [17:26:56]OFD Sender: No OFD packet to send [17:27:01]OFD Sender: No OFD packet to send [17:27:06]OFD Sender: No OFD packet to send [17:27:11]OFD Sender: No OFD packet to send [17:27:16]OFD Sender: No OFD packet to send [17:27:21]OFD Sender: No OFD packet to send [17:27:26]OFD Sender: No OFD packet to send [17:27:31]OFD Sender: No OFD packet to send [17:27:36]OFD Sender: No OFD packet to send [17:27:41]OFD Sender: No OFD packet to send [17:27:46]OFD Sender: No OFD packet to send [17:27:51]OFD Sender: No OFD packet to send [17:27:56]OFD Sender: No OFD packet to send [17:28:01]OFD Sender: No OFD packet to send [17:28:06]OFD Sender: No OFD packet to send [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:23]accept exits with 9 [17:28:23]New connection [17:28:23]New thread 3067448676 created [17:28:23]Thread 3067305316 joined [17:28:23]Waiting for new connection... [17:28:23] Sock 9.Parse request [17:28:23]Sock 9.Check first char [17:28:23]Sock 9.First char is OK [17:28:23]request: POST /json_proto HTTP/1.0 [17:28:23]Method: POST [17:28:23]URL: /json_proto [17:28:23]Method is POST - this is cgi request [17:28:23]url: /json_proto [17:28:23]query_string will be loaded in cgi processing [17:28:23]execute_cgi json_proto POST (null) [17:28:23]execute_cgi path=json_proto method=POST [17:28:23]POST find Content-Length [17:28:23]Host: 172.17.58.67:8080 [17:28:23]Content-Length: 805 [17:28:23]Content-Type: application/json [17:28:23] [17:28:23]POST finish read [17:28:23]Found Content-Length = 805 [17:28:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:23]execute_script... [17:28: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)141158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:23]POST & json_proto [17:28:23]process_json_proto [17:28:23]json parsed OK: [17:28:23]protocol is kg_v1.0 [17:28:23]action value=close_receipt [17:28:23]process_action close_receipt [17:28:23]cmd_close_receipt [17:28:23]MH_GetDate [17:28:23]Write to MH i2c: F0 00 00 45 02 36 [17:28:23]Write i2c OK [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: F0 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: F0 09 00 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: F0 09 00 45 02 00 B7 97 BB 66 94 51 63 64 5A [17:28:23]GetLastDocTimeStamp 1723569308 [17:28:23]current date 1723570103 [17:28:23]FM_GetShiftState [17:28:23]SAM_PROTO_GetShiftState [17:28:23]wFMCommunicate request_size=4 [17:28:23]MH_SAM_APDU [17:28:23]CAPDU: 80 13 01 00 [17:28:23]Write to MH i2c: E2 08 00 46 02 80 13 01 00 00 00 00 00 C5 [17:28:23]Write i2c OK [17:28:23]MH_I2C_Read... [17:28:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:23]Read from MH i2c: E2 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 0E 00 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 0E 00 46 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 34 [17:28:23]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:28:23]wFMCommunicate OK [17:28:23]SAM_PROTO_GetShiftState done [17:28:23]FM_GetShiftState done [17:28:23]opened in 1723509656 [17:28:23]opened+sec_in_day 1723596056 [17:28:23]quantity*price = 30050 [17:28:23]sum+1 = 30051 [17:28:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.50 ÐСП 1% : 2.66 ÐДС 12% : 31.91 Ðаличными: 0.00 Безнал.: 300.50 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 52 13.08.2024 17:28 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70698 ФПД: 96792181261733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T172823&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70698&fm=96792181261733&tin=02508201610067®Number=0000000000090913&sum=30050 [17:28:24]StoreToDocumentArchive [17:28:24]shift 466 fd 70698 [17:28:24]save to /storage/0466/doc_00070698 [17:28:24]save last doc name /storage/0466/doc_00070698 to /storage/kkm_last_doc_name [17:28:24]save OK [17:28:24]Clear old archive folders... [17:28:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:24]tlvbuf is 006E21B0 [17:28:24]SAM_PROTO_ClearQueue [17:28:24]wFMCommunicate request_size=4 [17:28:24]MH_SAM_APDU [17:28:24]CAPDU: 80 09 00 00 [17:28:24]Write to MH i2c: E2 08 00 53 02 80 09 00 00 00 00 00 00 C7 [17:28:24]Write i2c OK [17:28:24]MH_I2C_Read... [17:28:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:24]Read from MH i2c: E2 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: E2 03 00 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: E2 03 00 53 02 00 90 00 C9 [17:28:24]RAPDU: 90 00 [17:28:24]wFMCommunicate OK [17:28:24]SAM_PROTO_ClearQueue done [17:28:24]KKMCreateOFDPacket [17:28:24]OFDProtocolAddRootSTLVToBuf [17:28:24]FM_MakeSignedData [17:28:24]FM_MakeSignedData [17:28:24]SAM_PROTO_SignData [17:28:24]wFMCommunicate request_size=4 [17:28:24]MH_SAM_APDU [17:28:24]CAPDU: 80 0D 01 02 [17:28:24]Write to MH i2c: E2 08 00 54 02 80 0D 01 02 00 00 00 00 CF [17:28:24]Write i2c OK [17:28:24]MH_I2C_Read... [17:28:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:24]Read from MH i2c: E2 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: E2 03 00 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: E2 03 00 54 02 00 90 00 CA [17:28:24]RAPDU: 90 00 [17:28:24]wFMCommunicate OK [17:28:24]wFMCommunicate request_size=255 [17:28:24]MH_SAM_APDU [17:28:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B7 97 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2A 14 01 00 35 04 06 00 58 [17:28:24]Write to MH i2c: E2 02 01 55 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 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B7 97 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2A 14 01 00 35 04 06 00 58 00 00 B0 [17:28:24]Write i2c OK [17:28:24]MH_I2C_Read... [17:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:24]Read from MH i2c: E2 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: E2 03 00 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: E2 03 00 55 02 00 90 00 CB [17:28:24]RAPDU: 90 00 [17:28:24]wFMCommunicate OK [17:28:24]wFMCommunicate request_size=10 [17:28:24]MH_SAM_APDU [17:28:24]CAPDU: 80 0D 02 02 05 08 2F 94 C5 A5 [17:28:24]Write to MH i2c: E2 0D 00 56 02 80 0D 02 02 05 00 08 2F 94 C5 A5 00 00 11 [17:28:24]Write i2c OK [17:28:24]MH_I2C_Read... [17:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:24]Read from MH i2c: E2 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: E2 03 00 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: E2 03 00 56 02 00 90 00 CC [17:28:24]RAPDU: 90 00 [17:28:24]wFMCommunicate OK [17:28:24]wFMCommunicate request_size=4 [17:28:24]MH_SAM_APDU [17:28:24]CAPDU: 80 0D 03 02 [17:28:24]Write to MH i2c: E2 08 00 57 02 80 0D 03 02 00 00 00 00 D4 [17:28:24]Write i2c OK [17:28:24]MH_I2C_Read... [17:28:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:25]Read from MH i2c: E2 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 0B 00 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 0B 00 57 02 00 A8 47 AD B3 69 D3 95 28 90 00 1D [17:28:25]RAPDU: A8 47 AD B3 69 D3 95 28 90 00 [17:28:25]wFMCommunicate OK [17:28:25]SAM_PROTO_SignData done [17:28:25]FM_MakeSignedData done [17:28:25]CreateOFDProtocolMessage [17:28:25]wFMCommunicate request_size=4 [17:28:25]MH_SAM_APDU [17:28:25]CAPDU: 80 11 00 00 [17:28:25]Write to MH i2c: E2 08 00 58 02 80 11 00 00 00 00 00 00 D4 [17:28:25]Write i2c OK [17:28:25]MH_I2C_Read... [17:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:25]Read from MH i2c: E2 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 17 00 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 17 00 58 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 29 [17:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:28:25]wFMCommunicate OK [17:28:25]CreateOFDProtocolMessage done [17:28:25]OFDSenderStorePacket 70698 [17:28:25]StoreOFDPacket docnum=70698 [17:28:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 E5 0E 07 01 C3 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B7 97 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2A 14 01 00 35 04 06 00 58 08 2F 94 C5 A5 A8 47 AD B3 69 D3 95 28 [17:28:25]CheckFolder [17:28:25]dirname=/storage/ofd_packets [17:28:25]CheckFolder done [17:28:25]ProducePacketName [17:28:25]name=ofd_packets/00070698 [17:28:25]NVStorageSaveData ofd_packets/00070698 [17:28:25]File name is /storage/ofd_packets/00070698 [17:28:25]Write 301 bytes [17:28:25]NVStorageSaveData done [17:28:25]OFDSenderStorePacket done [17:28:25]KKMCreateOFDPacket done [17:28:25]NVStorageSaveData kkm_last_timestamp [17:28:25]File name is /storage/kkm_last_timestamp [17:28:25]Write 4 bytes [17:28:25]NVStorageSaveData done [17:28:25]ExternCall_PrintAddStr [17:28:25]wPrintStart [17:28:25]Write to MH i2c: 01 00 00 59 02 5B [17:28:25]Write i2c OK [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: 01 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: 01 07 00 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: 01 07 00 59 02 00 00 00 00 00 FF 0F 70 [17:28:25]RasterBufferAndPrint [17:28:25]line Счет N : (1)141158 [17:28:25]line ИÐÐ: 02508201610067 [17:28:25]line Контрольно-КаÑÑовый Чек [17:28:25]line ПРОДÐЖР[17:28:25]line ТРК (МРК, ГÐК) : 31 [17:28:25]line Товар: 2710124130 [17:28:25]line Ðи-92-К-5 [17:28:25]line 4.560 * 65.90 [17:28:25]line = 300.50 [17:28:25]line ÐДС 12% ÐСП 1% [17:28:25]line > о реализуемом товаре [17:28:25]line ИТОГО: 300.50 [17:28:25]line ÐСП 1% : 2.66 [17:28:25]line ÐДС 12% : 31.91 [17:28:25]line Ðаличными: 0.00 [17:28:25]line Безнал.: 300.50 [17:28:25]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [17:28:25]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [17:28:25]line СÐО: Общий режим [17:28:25]line Чек 52 13.08.2024 17:28 [17:28:25]line Смена: 466 ФФД: 1.0 [17:28:25]line ЗÐМ: 0300000140 [17:28:25]line РÐМ: 0000000000090913 [17:28:25]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:28:25]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [17:28:25]line ФМ: 0000000000874915 [17:28:25]line ФД: 70698 [17:28:25]line ФПД: 96792181261733 [17:28:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T172823&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70698&fm=96792181261733&tin=02508201610067®Number=0000000000090913&sum=30050 [17:28:25]written 0, free lines is 4095 [17:28:25]OFD Sender: Processing packet 70698 [packets to send 67, broken 66] [17:28:25]ProducePacketName [17:28:25]name=ofd_packets/00070698 [17:28:25]OFD Sender: To server: ‡•öpG, [17:28:25]CommunicateWithHost lk.salyk.kg:30040 [17:28:25]ConnectInit lk.salyk.kg [17:28:25]Connected sock=10 [17:28: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 39 31 35 0F 01 00 00 E5 0E 07 01 C3 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B7 97 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2A 14 01 00 35 04 06 00 58 08 2F 94 C5 A5 A8 47 AD B3 69 D3 95 28 [17:28:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 AB F4 47 00 02 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2A 14 01 00 F4 03 04 00 A2 3E BB 66 B6 04 01 00 00 02 7B 36 9E 2D 6B 48 59 [17:28:25]CommunicateWithHost err = 0 [17:28:25]CheckOFDResponse [17:28:25]1017 (14) - 77093643461234 [17:28:25]1041 (16) - 0000000000874915 [17:28:25]1040 (4) - 70698 [17:28:25]1012 (4) - 13.08.2024 11:08 [17:28:25]1206 (1) - 0 [17:28:25]OFD Sender: Remove packet 70698 [17:28:25]ProducePacketName [17:28:25]name=ofd_packets/00070698 [17:28:25]NVStorageDeleteData [17:28:25]Write to MH i2c: 01 00 00 83 02 85 [17:28:25]Write i2c OK [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: 01 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: 01 07 00 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 02 0D 9B [17:28:25]RasterBufferAndPrint [17:28:25]line [17:28:25]line [17:28:25]line [17:28:25]line [17:28:25]line [17:28:25]written 0, free lines is 3336 [17:28:25]MH_Cut [17:28:25]Write to MH i2c: D1 01 00 8A 02 01 5E [17:28:25]Write i2c OK [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: D1 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: D1 01 00 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: D1 01 00 8A 02 00 5D [17:28:25]Write to MH i2c: 01 00 00 8B 02 8D [17:28:25]Write i2c OK [17:28:25]MH_I2C_Read... [17:28:25]OFD Sender: No OFD packet to send [17:28:26]*** Cut start [17:28:26]*** Purtial cut [17:28:26]*** Stage 1: CUTSNS_PIN = 1 [17:28:26]Read from MH i2c: 01 [17:28:26]MH_I2C_Read... [17:28:26]*** Stop cut motor [17:28:26]*** Cut end [17:28:26]Read from MH i2c: 01 07 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: 01 07 00 8B 02 00 00 00 00 00 FF 0F A2 [17:28:26]process_action close_receipt done [17:28:26]requested_data is exist [17:28:26]produce_requested_data [17:28:26]requested_item fm.sn is exist - process it [17:28:26]wFMCommunicate request_size=4 [17:28:26]MH_SAM_APDU [17:28:26]CAPDU: 80 11 00 00 [17:28:26]Write to MH i2c: E2 08 00 8C 02 80 11 00 00 00 00 00 00 08 [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:26]Read from MH i2c: E2 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 17 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 17 00 8C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 5D [17:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:28:26]wFMCommunicate OK [17:28:26]requested_item fd.num is exist - process it [17:28:26]SAM_PROTO_GetFieldsCounters [17:28:26]wFMCommunicate request_size=4 [17:28:26]MH_SAM_APDU [17:28:26]CAPDU: 80 13 00 00 [17:28:26]Write to MH i2c: E2 08 00 8D 02 80 13 00 00 00 00 00 00 0B [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:26]Read from MH i2c: E2 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 62 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 62 00 8D 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 2A 14 01 00 0E 04 04 00 D2 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 D9 [17:28: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 2A 14 01 00 0E 04 04 00 D2 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 [17:28:26]wFMCommunicate OK [17:28:26]SAM_PROTO_GetFieldsCounters done [17:28:26]requested_item shift.num is exist - process it [17:28:26]requested_item shift.opened is exist - process it [17:28:26]req_shift_opened [17:28:26]FM_GetShiftState [17:28:26]SAM_PROTO_GetShiftState [17:28:26]wFMCommunicate request_size=4 [17:28:26]MH_SAM_APDU [17:28:26]CAPDU: 80 13 01 00 [17:28:26]Write to MH i2c: E2 08 00 8E 02 80 13 01 00 00 00 00 00 0D [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:26]Read from MH i2c: E2 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 0E 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 0E 00 8E 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 7C [17:28:26]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:28:26]wFMCommunicate OK [17:28:26]SAM_PROTO_GetShiftState done [17:28:26]FM_GetShiftState done [17:28:26]req_shift_opened done [17:28:26]requested_item shift.open_date is exist - process it [17:28:26]req_shift_open_date [17:28:26]req_shift_open_date done [17:28:26]produce_requested_data done [17:28:26]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70698,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [17:28:26]process_action_free close_receipt [17:28:26]json_value_free [17:28:26]json_value_free done [17:28:26]process_json_proto returns [17:28:26]Send response to host [17:28:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70698,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [17:28:26]free response buf [17:28:26]execute_script done [17:28:26]execute_script returns [17:28:26]free content buf [17:28:26]Sock 9.Close socket [17:28:26]Sock 9.Thread stoped [17:28:30]OFD Sender: No OFD packet to send [17:28:35]OFD Sender: No OFD packet to send [17:28:40]OFD Sender: No OFD packet to send [17:28:45]OFD Sender: No OFD packet to send [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:20]OFD Sender: No OFD packet to send [17:29:25]OFD Sender: No OFD packet to send [17:29:30]OFD Sender: No OFD packet to send [17:29:35]OFD Sender: No OFD packet to send [17:29:40]OFD Sender: No OFD packet to send [17:29:45]OFD Sender: No OFD packet to send [17:29:50]OFD Sender: No OFD packet to send [17:29:56]OFD Sender: No OFD packet to send [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:26]OFD Sender: No OFD packet to send [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:26]OFD Sender: No OFD packet to send [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:56]OFD Sender: No OFD packet to send [17:32:01]OFD Sender: No OFD packet to send [17:32:06]OFD Sender: No OFD packet to send [17:32:11]OFD Sender: No OFD packet to send [17:32:16]OFD Sender: No OFD packet to send [17:32:21]OFD Sender: No OFD packet to send [17:32:26]OFD Sender: No OFD packet to send [17:32:31]OFD Sender: No OFD packet to send [17:32:36]OFD Sender: No OFD packet to send [17:32:41]OFD Sender: No OFD packet to send [17:32:46]OFD Sender: No OFD packet to send [17:32:51]OFD Sender: No OFD packet to send [17:32:56]OFD Sender: No OFD packet to send [17:33:01]OFD Sender: No OFD packet to send [17:33:06]OFD Sender: No OFD packet to send [17:33:11]OFD Sender: No OFD packet to send [17:33:16]OFD Sender: No OFD packet to send [17:33:21]OFD Sender: No OFD packet to send [17:33:26]OFD Sender: No OFD packet to send [17:33:31]OFD Sender: No OFD packet to send [17:33:36]OFD Sender: No OFD packet to send [17:33:41]OFD Sender: No OFD packet to send [17:33:46]OFD Sender: No OFD packet to send [17:33:51]OFD Sender: No OFD packet to send [17:33:56]OFD Sender: No OFD packet to send [17:34:01]OFD Sender: No OFD packet to send [17:34:06]OFD Sender: No OFD packet to send [17:34:11]OFD Sender: No OFD packet to send [17:34:16]OFD Sender: No OFD packet to send [17:34:21]OFD Sender: No OFD packet to send [17:34:26]OFD Sender: No OFD packet to send [17:34:31]OFD Sender: No OFD packet to send [17:34:36]OFD Sender: No OFD packet to send [17:34:41]OFD Sender: No OFD packet to send [17:34:46]OFD Sender: No OFD packet to send [17:34:51]OFD Sender: No OFD packet to send [17:34:56]OFD Sender: No OFD packet to send [17:35:01]OFD Sender: No OFD packet to send [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:56]OFD Sender: No OFD packet to send [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:37:01]OFD Sender: No OFD packet to send [17:37:06]OFD Sender: No OFD packet to send [17:37:11]OFD Sender: No OFD packet to send [17:37:16]OFD Sender: No OFD packet to send [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:45]accept exits with 7 [17:39:45]New connection [17:39:45]New thread 3067305316 created [17:39:45]Thread 3067448676 joined [17:39:45]Waiting for new connection... [17:39:45] Sock 7.Parse request [17:39:45]Sock 7.Check first char [17:39:45]Sock 7.First char is OK [17:39:45]request: POST /json_proto HTTP/1.0 [17:39:45]Method: POST [17:39:45]URL: /json_proto [17:39:45]Method is POST - this is cgi request [17:39:45]url: /json_proto [17:39:45]query_string will be loaded in cgi processing [17:39:45]execute_cgi json_proto POST (null) [17:39:45]execute_cgi path=json_proto method=POST [17:39:45]POST find Content-Length [17:39:45]Host: 172.17.58.67:8080 [17:39:45]Content-Length: 638 [17:39:45]Content-Type: application/json [17:39:45] [17:39:45]POST finish read [17:39:45]Found Content-Length = 638 [17:39:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17480", "tax_sys" : 0, "items" : [ { "code": "4870001150013", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:45]execute_script... [17:39:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17480", "tax_sys" : 0, "items" : [ { "code": "4870001150013", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:45]POST & json_proto [17:39:45]process_json_proto [17:39:45]json parsed OK: [17:39:45]protocol is kg_v1.0 [17:39:45]action value=close_receipt [17:39:45]process_action close_receipt [17:39:45]cmd_close_receipt [17:39:45]MH_GetDate [17:39:45]Write to MH i2c: F0 00 00 8F 02 80 [17:39:45]Write i2c OK [17:39:45]MH_I2C_Read... [17:39:45]Read from MH i2c: F0 [17:39:45]MH_I2C_Read... [17:39:45]Read from MH i2c: F0 09 00 [17:39:45]MH_I2C_Read... [17:39:45]Read from MH i2c: F0 09 00 8F 02 00 62 9A BB 66 94 51 63 64 52 [17:39:45]GetLastDocTimeStamp 1723570103 [17:39:45]current date 1723570786 [17:39:45]FM_GetShiftState [17:39:45]SAM_PROTO_GetShiftState [17:39:45]wFMCommunicate request_size=4 [17:39:45]MH_SAM_APDU [17:39:45]CAPDU: 80 13 01 00 [17:39:45]Write to MH i2c: E2 08 00 90 02 80 13 01 00 00 00 00 00 0F [17:39:45]Write i2c OK [17:39:45]MH_I2C_Read... [17:39:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:45]Read from MH i2c: E2 [17:39:45]MH_I2C_Read... [17:39:45]Read from MH i2c: E2 0E 00 [17:39:45]MH_I2C_Read... [17:39:45]Read from MH i2c: E2 0E 00 90 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 7E [17:39:45]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:39:45]wFMCommunicate OK [17:39:45]SAM_PROTO_GetShiftState done [17:39:45]FM_GetShiftState done [17:39:45]opened in 1723509656 [17:39:45]opened+sec_in_day 1723596056 [17:39:45]quantity*price = 15000 [17:39:45]sum+1 = 15001 [17:39:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 ÐСП 1% : 1.33 ÐДС 12% : 15.93 Ðаличными: 150.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 53 13.08.2024 17:39 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70699 ФПД: 121990680666669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T173946&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70699&fm=121990680666669&tin=02508201610067®Number=0000000000090913&sum=15000 0 [17:39:46]StoreToDocumentArchive [17:39:46]shift 466 fd 70699 [17:39:46]save to /storage/0466/doc_00070699 [17:39:46]save last doc name /storage/0466/doc_00070699 to /storage/kkm_last_doc_name [17:39:46]save OK [17:39:46]Clear old archive folders... [17:39:46]ProcessDocumentItem done err = 0, tmpTLVsize=275 [17:39:46]tlvbuf is 006FE9E0 [17:39:46]SAM_PROTO_ClearQueue [17:39:46]wFMCommunicate request_size=4 [17:39:46]MH_SAM_APDU [17:39:46]CAPDU: 80 09 00 00 [17:39:46]Write to MH i2c: E2 08 00 9D 02 80 09 00 00 00 00 00 00 11 [17:39:46]Write i2c OK [17:39:46]MH_I2C_Read... [17:39:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:46]Read from MH i2c: E2 [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: E2 03 00 [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: E2 03 00 9D 02 00 90 00 13 [17:39:46]RAPDU: 90 00 [17:39:46]wFMCommunicate OK [17:39:46]SAM_PROTO_ClearQueue done [17:39:46]KKMCreateOFDPacket [17:39:46]OFDProtocolAddRootSTLVToBuf [17:39:46]FM_MakeSignedData [17:39:46]FM_MakeSignedData [17:39:46]SAM_PROTO_SignData [17:39:46]wFMCommunicate request_size=4 [17:39:46]MH_SAM_APDU [17:39:46]CAPDU: 80 0D 01 02 [17:39:46]Write to MH i2c: E2 08 00 9E 02 80 0D 01 02 00 00 00 00 19 [17:39:46]Write i2c OK [17:39:46]MH_I2C_Read... [17:39:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:47]Read from MH i2c: E2 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: E2 03 00 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: E2 03 00 9E 02 00 90 00 14 [17:39:47]RAPDU: 90 00 [17:39:47]wFMCommunicate OK [17:39:47]wFMCommunicate request_size=255 [17:39:47]MH_SAM_APDU [17:39:47]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 31 33 06 04 21 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 62 9A BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 [17:39:47]Write to MH i2c: E2 02 01 9F 02 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 31 33 06 04 21 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 62 9A BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 00 00 1D [17:39:47]Write i2c OK [17:39:47]MH_I2C_Read... [17:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:47]Read from MH i2c: E2 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: E2 03 00 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: E2 03 00 9F 02 00 90 00 15 [17:39:47]RAPDU: 90 00 [17:39:47]wFMCommunicate OK [17:39:47]wFMCommunicate request_size=34 [17:39:47]MH_SAM_APDU [17:39:47]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2B 14 01 00 35 04 06 00 6E F3 2B 2F E2 2D [17:39:47]Write to MH i2c: E2 25 00 A0 02 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2B 14 01 00 35 04 06 00 6E F3 2B 2F E2 2D 00 00 E9 [17:39:47]Write i2c OK [17:39:47]MH_I2C_Read... [17:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:47]Read from MH i2c: E2 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: E2 03 00 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: E2 03 00 A0 02 00 90 00 16 [17:39:47]RAPDU: 90 00 [17:39:47]wFMCommunicate OK [17:39:47]wFMCommunicate request_size=4 [17:39:47]MH_SAM_APDU [17:39:47]CAPDU: 80 0D 03 02 [17:39:47]Write to MH i2c: E2 08 00 A1 02 80 0D 03 02 00 00 00 00 1E [17:39:47]Write i2c OK [17:39:47]MH_I2C_Read... [17:39:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:47]Read from MH i2c: E2 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: E2 0B 00 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: E2 0B 00 A1 02 00 0A 86 F7 1C AF 70 64 18 90 00 5D [17:39:47]RAPDU: 0A 86 F7 1C AF 70 64 18 90 00 [17:39:47]wFMCommunicate OK [17:39:47]SAM_PROTO_SignData done [17:39:47]FM_MakeSignedData done [17:39:47]CreateOFDProtocolMessage [17:39:47]wFMCommunicate request_size=4 [17:39:47]MH_SAM_APDU [17:39:47]CAPDU: 80 11 00 00 [17:39:47]Write to MH i2c: E2 08 00 A2 02 80 11 00 00 00 00 00 00 1E [17:39:47]Write i2c OK [17:39:47]MH_I2C_Read... [17:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:47]Read from MH i2c: E2 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: E2 17 00 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: E2 17 00 A2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 73 [17:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:39:47]wFMCommunicate OK [17:39:47]CreateOFDProtocolMessage done [17:39:47]OFDSenderStorePacket 70699 [17:39:47]StoreOFDPacket docnum=70699 [17:39:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 27 01 00 00 23 23 1F 01 DD 80 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 31 33 06 04 21 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 62 9A BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2B 14 01 00 35 04 06 00 6E F3 2B 2F E2 2D 0A 86 F7 1C AF 70 64 18 [17:39:47]CheckFolder [17:39:47]dirname=/storage/ofd_packets [17:39:47]CheckFolder done [17:39:47]ProducePacketName [17:39:47]name=ofd_packets/00070699 [17:39:47]NVStorageSaveData ofd_packets/00070699 [17:39:47]File name is /storage/ofd_packets/00070699 [17:39:47]Write 325 bytes [17:39:47]NVStorageSaveData done [17:39:47]OFDSenderStorePacket done [17:39:47]KKMCreateOFDPacket done [17:39:47]NVStorageSaveData kkm_last_timestamp [17:39:47]File name is /storage/kkm_last_timestamp [17:39:47]Write 4 bytes [17:39:47]NVStorageSaveData done [17:39:47]ExternCall_PrintAddStr [17:39:47]wPrintStart [17:39:47]Write to MH i2c: 01 00 00 A3 02 A5 [17:39:47]Write i2c OK [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: 01 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: 01 07 00 [17:39:47]MH_I2C_Read... [17:39:47]Read from MH i2c: 01 07 00 A3 02 00 00 00 00 00 FF 0F BA [17:39:47]RasterBufferAndPrint [17:39:47]line Счет N : (3)17480 [17:39:47]line ИÐÐ: 02508201610067 [17:39:47]line Контрольно-КаÑÑовый Чек [17:39:47]line ПРОДÐЖР[17:39:47]line Товар: 4870001150013 [17:39:47]line Сок Da-Da 1л апельÑин [17:39:47]line 1.000 * 150.00 [17:39:47]line = 150.00 [17:39:47]line ÐДС 12% ÐСП 1% [17:39:47]line > о реализуемом товаре [17:39:47]line ИТОГО: 150.00 [17:39:47]line ÐСП 1% : 1.33 [17:39:47]line ÐДС 12% : 15.93 [17:39:47]line Ðаличными: 150.00 [17:39:47]line Безнал.: 0.00 [17:39:47]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [17:39:47]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [17:39:47]line СÐО: Общий режим [17:39:47]line Чек 53 13.08.2024 17:39 [17:39:47]line Смена: 466 ФФД: 1.0 [17:39:47]line ЗÐМ: 0300000140 [17:39:47]line РÐМ: 0000000000090913 [17:39:47]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:39:47]line ФМ: 0000000000874915 [17:39:47]line ФД: 70699 [17:39:47]line ФПД: 121990680666669 [17:39:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T173946&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70699&fm=121990680666669&tin=02508201610067®Number=0000000000090913&sum=15000 [17:39:47]line 0 [17:39:47]OFD Sender: Processing packet 70699 [packets to send 67, broken 66] [17:39:47]ProducePacketName [17:39:47]name=ofd_packets/00070699 [17:39:47]OFD Sender: To server: ‡•öpG, [17:39:47]CommunicateWithHost lk.salyk.kg:30040 [17:39:47]ConnectInit lk.salyk.kg [17:39:47]written 0, free lines is 4095 [17:39:48]Write to MH i2c: 01 00 00 CB 02 CD [17:39:48]Write i2c OK [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: 01 [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: 01 07 00 [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: 01 07 00 CB 02 00 00 00 00 00 0B 0D EC [17:39:48]RasterBufferAndPrint [17:39:48]line [17:39:48]line [17:39:48]line [17:39:48]line [17:39:48]line [17:39:48]written 0, free lines is 3345 [17:39:48]MH_Cut [17:39:48]Write to MH i2c: D1 01 00 D2 02 01 A6 [17:39:48]Write i2c OK [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: D1 [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: D1 01 00 [17:39:48]MH_I2C_Read... [17:39:48]Read from MH i2c: D1 01 00 D2 02 00 A5 [17:39:48]Write to MH i2c: 01 00 00 D3 02 D5 [17:39:48]Write i2c OK [17:39:48]MH_I2C_Read... [17:39:48]*** Cut start [17:39:48]*** Purtial cut [17:39:48]*** CUTSNS_PIN = 0 [17:39:49]*** Stage 1: CUTSNS_PIN = 1 [17:39:50]Read from MH i2c: 01 [17:39:50]MH_I2C_Read... [17:39:50]*** Stop cut motor [17:39:50]*** Cut end [17:39:50]Read from MH i2c: 01 07 00 [17:39:50]MH_I2C_Read... [17:39:50]Read from MH i2c: 01 07 00 D3 02 00 00 00 00 00 FF 0F EA [17:39:50]process_action close_receipt done [17:39:50]requested_data is exist [17:39:50]produce_requested_data [17:39:50]requested_item fm.sn is exist - process it [17:39:50]wFMCommunicate request_size=4 [17:39:50]MH_SAM_APDU [17:39:50]CAPDU: 80 11 00 00 [17:39:50]Write to MH i2c: E2 08 00 D4 02 80 11 00 00 00 00 00 00 50 [17:39:50]Write i2c OK [17:39:50]MH_I2C_Read... [17:39:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:51]Read from MH i2c: E2 [17:39:51]MH_I2C_Read... [17:39:51]Read from MH i2c: E2 17 00 [17:39:51]MH_I2C_Read... [17:39:51]Read from MH i2c: E2 17 00 D4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 A5 [17:39:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:39:51]wFMCommunicate OK [17:39:51]requested_item fd.num is exist - process it [17:39:51]SAM_PROTO_GetFieldsCounters [17:39:51]wFMCommunicate request_size=4 [17:39:51]MH_SAM_APDU [17:39:51]CAPDU: 80 13 00 00 [17:39:51]Write to MH i2c: E2 08 00 D5 02 80 13 00 00 00 00 00 00 53 [17:39:51]Write i2c OK [17:39:51]MH_I2C_Read... [17:39:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:51]Read from MH i2c: E2 [17:39:51]MH_I2C_Read... [17:39:51]Read from MH i2c: E2 62 00 [17:39:51]MH_I2C_Read... [17:39:51]Read from MH i2c: E2 62 00 D5 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 2B 14 01 00 0E 04 04 00 D2 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 25 [17:39: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 2B 14 01 00 0E 04 04 00 D2 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 [17:39:51]wFMCommunicate OK [17:39:51]SAM_PROTO_GetFieldsCounters done [17:39:51]requested_item shift.num is exist - process it [17:39:51]requested_item shift.opened is exist - process it [17:39:51]req_shift_opened [17:39:51]FM_GetShiftState [17:39:51]SAM_PROTO_GetShiftState [17:39:51]wFMCommunicate request_size=4 [17:39:51]MH_SAM_APDU [17:39:51]CAPDU: 80 13 01 00 [17:39:51]Write to MH i2c: E2 08 00 D6 02 80 13 01 00 00 00 00 00 55 [17:39:51]Write i2c OK [17:39:51]MH_I2C_Read... [17:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:51]Read from MH i2c: E2 [17:39:51]MH_I2C_Read... [17:39:51]Read from MH i2c: E2 0E 00 [17:39:51]MH_I2C_Read... [17:39:51]Read from MH i2c: E2 0E 00 D6 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 C4 [17:39:51]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:39:51]wFMCommunicate OK [17:39:51]SAM_PROTO_GetShiftState done [17:39:51]FM_GetShiftState done [17:39:51]req_shift_opened done [17:39:51]requested_item shift.open_date is exist - process it [17:39:51]req_shift_open_date [17:39:51]req_shift_open_date done [17:39:51]produce_requested_data done [17:39:51]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70699,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [17:39:51]process_action_free close_receipt [17:39:51]json_value_free [17:39:51]json_value_free done [17:39:51]process_json_proto returns [17:39:51]Send response to host [17:39:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70699,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [17:39:51]free response buf [17:39:51]execute_script done [17:39:51]execute_script returns [17:39:51]free content buf [17:39:51]Sock 7.Close socket [17:39:51]Sock 7.Thread stoped [17:41:50]accept exits with 9 [17:41:50]New connection [17:41:50]New thread 3067448676 created [17:41:50]Thread 3067305316 joined [17:41:50]Waiting for new connection... [17:41:50] Sock 9.Parse request [17:41:50]Sock 9.Check first char [17:41:51]Sock 9.First char is OK [17:41:51]request: POST /json_proto HTTP/1.0 [17:41:51]Method: POST [17:41:51]URL: /json_proto [17:41:51]Method is POST - this is cgi request [17:41:51]url: /json_proto [17:41:51]query_string will be loaded in cgi processing [17:41:51]execute_cgi json_proto POST (null) [17:41:51]execute_cgi path=json_proto method=POST [17:41:51]POST find Content-Length [17:41:51]Host: 172.17.58.67:8080 [17:41:51]Content-Length: 805 [17:41:51]Content-Type: application/json [17:41:51] [17:41:51]POST finish read [17:41:51]Found Content-Length = 805 [17:41:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 5.170, "sum" : 340.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" : 340.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:51]execute_script... [17:41: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)141159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 5.170, "sum" : 340.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" : 340.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:51]POST & json_proto [17:41:51]process_json_proto [17:41:51]json parsed OK: [17:41:51]protocol is kg_v1.0 [17:41:51]action value=close_receipt [17:41:51]process_action close_receipt [17:41:51]cmd_close_receipt [17:41:51]MH_GetDate [17:41:51]Write to MH i2c: F0 00 00 D7 02 C8 [17:41:51]Write i2c OK [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: F0 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: F0 09 00 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: F0 09 00 D7 02 00 DF 9A BB 66 94 51 63 64 17 [17:41:51]GetLastDocTimeStamp 1723570786 [17:41:51]current date 1723570911 [17:41:51]FM_GetShiftState [17:41:51]SAM_PROTO_GetShiftState [17:41:51]wFMCommunicate request_size=4 [17:41:51]MH_SAM_APDU [17:41:51]CAPDU: 80 13 01 00 [17:41:51]Write to MH i2c: E2 08 00 D8 02 80 13 01 00 00 00 00 00 57 [17:41:51]Write i2c OK [17:41:51]MH_I2C_Read... [17:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:51]Read from MH i2c: E2 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 0E 00 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 0E 00 D8 02 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 C6 [17:41:51]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:41:51]wFMCommunicate OK [17:41:51]SAM_PROTO_GetShiftState done [17:41:51]FM_GetShiftState done [17:41:51]opened in 1723509656 [17:41:51]opened+sec_in_day 1723596056 [17:41:51]quantity*price = 34070 [17:41:51]sum+1 = 34071 [17:41:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 340.70 ÐСП 1% : 3.01 ÐДС 12% : 36.18 Ðаличными: 0.00 Безнал.: 340.70 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 54 13.08.2024 17:41 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70700 ФПД: 36169910998953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T174152&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70700&fm=36169910998953&tin=02508201610067®Number=0000000000090913&sum=34070 [17:41:52]StoreToDocumentArchive [17:41:52]shift 466 fd 70700 [17:41:52]save to /storage/0466/doc_00070700 [17:41:52]save last doc name /storage/0466/doc_00070700 to /storage/kkm_last_doc_name [17:41:52]save OK [17:41:52]Clear old archive folders... [17:41:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:52]tlvbuf is 006BF9F0 [17:41:52]SAM_PROTO_ClearQueue [17:41:52]wFMCommunicate request_size=4 [17:41:52]MH_SAM_APDU [17:41:52]CAPDU: 80 09 00 00 [17:41:52]Write to MH i2c: E2 08 00 E5 02 80 09 00 00 00 00 00 00 59 [17:41:52]Write i2c OK [17:41:52]MH_I2C_Read... [17:41:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:52]Read from MH i2c: E2 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 03 00 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 03 00 E5 02 00 90 00 5B [17:41:52]RAPDU: 90 00 [17:41:52]wFMCommunicate OK [17:41:52]SAM_PROTO_ClearQueue done [17:41:52]KKMCreateOFDPacket [17:41:52]OFDProtocolAddRootSTLVToBuf [17:41:52]FM_MakeSignedData [17:41:52]FM_MakeSignedData [17:41:52]SAM_PROTO_SignData [17:41:52]wFMCommunicate request_size=4 [17:41:52]MH_SAM_APDU [17:41:52]CAPDU: 80 0D 01 02 [17:41:52]Write to MH i2c: E2 08 00 E6 02 80 0D 01 02 00 00 00 00 61 [17:41:52]Write i2c OK [17:41:52]MH_I2C_Read... [17:41:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:52]Read from MH i2c: E2 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 03 00 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 03 00 E6 02 00 90 00 5C [17:41:52]RAPDU: 90 00 [17:41:52]wFMCommunicate OK [17:41:52]wFMCommunicate request_size=255 [17:41:52]MH_SAM_APDU [17:41:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 16 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 85 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 E0 9A BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2C 14 01 00 35 04 06 00 20 [17:41:52]Write to MH i2c: E2 02 01 E7 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 32 14 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 16 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 85 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 E0 9A BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2C 14 01 00 35 04 06 00 20 00 00 BB [17:41:52]Write i2c OK [17:41:52]MH_I2C_Read... [17:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:52]Read from MH i2c: E2 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 03 00 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 03 00 E7 02 00 90 00 5D [17:41:52]RAPDU: 90 00 [17:41:52]wFMCommunicate OK [17:41:52]wFMCommunicate request_size=10 [17:41:52]MH_SAM_APDU [17:41:52]CAPDU: 80 0D 02 02 05 E5 76 B2 57 A9 [17:41:52]Write to MH i2c: E2 0D 00 E8 02 80 0D 02 02 05 00 E5 76 B2 57 A9 00 00 7B [17:41:52]Write i2c OK [17:41:52]MH_I2C_Read... [17:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:52]Read from MH i2c: E2 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 03 00 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 03 00 E8 02 00 90 00 5E [17:41:52]RAPDU: 90 00 [17:41:52]wFMCommunicate OK [17:41:52]wFMCommunicate request_size=4 [17:41:52]MH_SAM_APDU [17:41:52]CAPDU: 80 0D 03 02 [17:41:52]Write to MH i2c: E2 08 00 E9 02 80 0D 03 02 00 00 00 00 66 [17:41:52]Write i2c OK [17:41:52]MH_I2C_Read... [17:41:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:53]Read from MH i2c: E2 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: E2 0B 00 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: E2 0B 00 E9 02 00 47 21 37 F3 05 63 59 D8 90 00 92 [17:41:53]RAPDU: 47 21 37 F3 05 63 59 D8 90 00 [17:41:53]wFMCommunicate OK [17:41:53]SAM_PROTO_SignData done [17:41:53]FM_MakeSignedData done [17:41:53]CreateOFDProtocolMessage [17:41:53]wFMCommunicate request_size=4 [17:41:53]MH_SAM_APDU [17:41:53]CAPDU: 80 11 00 00 [17:41:53]Write to MH i2c: E2 08 00 EA 02 80 11 00 00 00 00 00 00 66 [17:41:53]Write i2c OK [17:41:53]MH_I2C_Read... [17:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:53]Read from MH i2c: E2 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: E2 17 00 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: E2 17 00 EA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 BB [17:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:41:53]wFMCommunicate OK [17:41:53]CreateOFDProtocolMessage done [17:41:53]OFDSenderStorePacket 70700 [17:41:53]StoreOFDPacket docnum=70700 [17:41:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 19 8A 07 01 5D 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 16 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 85 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 E0 9A BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2C 14 01 00 35 04 06 00 20 E5 76 B2 57 A9 47 21 37 F3 05 63 59 D8 [17:41:53]CheckFolder [17:41:53]dirname=/storage/ofd_packets [17:41:53]CheckFolder done [17:41:53]ProducePacketName [17:41:53]name=ofd_packets/00070700 [17:41:53]NVStorageSaveData ofd_packets/00070700 [17:41:53]File name is /storage/ofd_packets/00070700 [17:41:53]Write 301 bytes [17:41:53]NVStorageSaveData done [17:41:53]OFDSenderStorePacket done [17:41:53]KKMCreateOFDPacket done [17:41:53]NVStorageSaveData kkm_last_timestamp [17:41:53]File name is /storage/kkm_last_timestamp [17:41:53]Write 4 bytes [17:41:53]NVStorageSaveData done [17:41:53]ExternCall_PrintAddStr [17:41:53]wPrintStart [17:41:53]Write to MH i2c: 01 00 00 EB 02 ED [17:41:53]Write i2c OK [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: 01 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: 01 07 00 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: 01 07 00 EB 02 00 00 00 00 00 FF 0F 02 [17:41:53]RasterBufferAndPrint [17:41:53]line Счет N : (1)141159 [17:41:53]line ИÐÐ: 02508201610067 [17:41:53]line Контрольно-КаÑÑовый Чек [17:41:53]line ПРОДÐЖР[17:41:53]line ТРК (МРК, ГÐК) : 31 [17:41:53]line Товар: 2710124130 [17:41:53]line Ðи-92-К-5 [17:41:53]line 5.170 * 65.90 [17:41:53]line = 340.70 [17:41:53]line ÐДС 12% ÐСП 1% [17:41:53]line > о реализуемом товаре [17:41:53]line ИТОГО: 340.70 [17:41:53]line ÐСП 1% : 3.01 [17:41:53]line ÐДС 12% : 36.18 [17:41:53]line Ðаличными: 0.00 [17:41:53]line Безнал.: 340.70 [17:41:53]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [17:41:53]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [17:41:53]line СÐО: Общий режим [17:41:53]line Чек 54 13.08.2024 17:41 [17:41:53]line Смена: 466 ФФД: 1.0 [17:41:53]line ЗÐМ: 0300000140 [17:41:53]line РÐМ: 0000000000090913 [17:41:53]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:41:53]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [17:41:53]line ФМ: 0000000000874915 [17:41:53]line ФД: 70700 [17:41:53]line ФПД: 36169910998953 [17:41:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T174152&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70700&fm=36169910998953&tin=02508201610067®Number=0000000000090913&sum=34070 [17:41:53]written 0, free lines is 4095 [17:41:53]Write to MH i2c: 01 00 00 15 03 18 [17:41:53]Write i2c OK [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: 01 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: 01 07 00 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: 01 07 00 15 03 00 00 00 00 00 EF 0C 1A [17:41:53]RasterBufferAndPrint [17:41:53]line [17:41:53]line [17:41:53]line [17:41:53]line [17:41:53]line [17:41:53]written 0, free lines is 3317 [17:41:53]MH_Cut [17:41:53]Write to MH i2c: D1 01 00 1C 03 01 F1 [17:41:53]Write i2c OK [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: D1 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: D1 01 00 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: D1 01 00 1C 03 00 F0 [17:41:53]Write to MH i2c: 01 00 00 1D 03 20 [17:41:53]Write i2c OK [17:41:53]MH_I2C_Read... [17:41:54]*** Cut start [17:41:54]*** Purtial cut [17:41:54]*** Stage 1: CUTSNS_PIN = 1 [17:41:54]Read from MH i2c: 01 [17:41:54]MH_I2C_Read... [17:41:54]*** Stop cut motor [17:41:54]*** Cut end [17:41:54]Read from MH i2c: 01 07 00 [17:41:54]MH_I2C_Read... [17:41:54]Read from MH i2c: 01 07 00 1D 03 00 00 00 00 00 FF 0F 35 [17:41:54]process_action close_receipt done [17:41:54]requested_data is exist [17:41:54]produce_requested_data [17:41:54]requested_item fm.sn is exist - process it [17:41:54]wFMCommunicate request_size=4 [17:41:54]MH_SAM_APDU [17:41:54]CAPDU: 80 11 00 00 [17:41:54]Write to MH i2c: E2 08 00 1E 03 80 11 00 00 00 00 00 00 9B [17:41:54]Write i2c OK [17:41:54]MH_I2C_Read... [17:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:54]Read from MH i2c: E2 [17:41:54]MH_I2C_Read... [17:41:54]Read from MH i2c: E2 17 00 [17:41:54]MH_I2C_Read... [17:41:54]Read from MH i2c: E2 17 00 1E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 F0 [17:41:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:41:54]wFMCommunicate OK [17:41:54]requested_item fd.num is exist - process it [17:41:54]SAM_PROTO_GetFieldsCounters [17:41:54]wFMCommunicate request_size=4 [17:41:54]MH_SAM_APDU [17:41:54]CAPDU: 80 13 00 00 [17:41:54]Write to MH i2c: E2 08 00 1F 03 80 13 00 00 00 00 00 00 9E [17:41:54]Write i2c OK [17:41:54]MH_I2C_Read... [17:41:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:55]Read from MH i2c: E2 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: E2 62 00 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: E2 62 00 1F 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 2C 14 01 00 0E 04 04 00 D2 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 74 [17:41: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 2C 14 01 00 0E 04 04 00 D2 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 [17:41:55]wFMCommunicate OK [17:41:55]SAM_PROTO_GetFieldsCounters done [17:41:55]requested_item shift.num is exist - process it [17:41:55]requested_item shift.opened is exist - process it [17:41:55]req_shift_opened [17:41:55]FM_GetShiftState [17:41:55]SAM_PROTO_GetShiftState [17:41:55]wFMCommunicate request_size=4 [17:41:55]MH_SAM_APDU [17:41:55]CAPDU: 80 13 01 00 [17:41:55]Write to MH i2c: E2 08 00 20 03 80 13 01 00 00 00 00 00 A0 [17:41:55]Write i2c OK [17:41:55]MH_I2C_Read... [17:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:55]Read from MH i2c: E2 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: E2 0E 00 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: E2 0E 00 20 03 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 0F [17:41:55]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:41:55]wFMCommunicate OK [17:41:55]SAM_PROTO_GetShiftState done [17:41:55]FM_GetShiftState done [17:41:55]req_shift_opened done [17:41:55]requested_item shift.open_date is exist - process it [17:41:55]req_shift_open_date [17:41:55]req_shift_open_date done [17:41:55]produce_requested_data done [17:41:55]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70700,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [17:41:55]process_action_free close_receipt [17:41:55]json_value_free [17:41:55]json_value_free done [17:41:55]process_json_proto returns [17:41:55]Send response to host [17:41:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70700,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [17:41:55]free response buf [17:41:55]execute_script done [17:41:55]execute_script returns [17:41:55]free content buf [17:41:55]Sock 9.Close socket [17:41:55]Sock 9.Thread stoped [17:42:01]ConnectInit Can't connect to host [17:42:01]CommunicateWithHost connect error [17:42:01]CommunicateWithHost err = -1 [17:42:01]OFD Sender: Server communicate error [17:42:02]OFD Sender: Processing packet 70699 [packets to send 68, broken 66] [17:42:02]ProducePacketName [17:42:02]name=ofd_packets/00070699 [17:42:02]OFD Sender: To server: ‡•öpG, [17:42:02]CommunicateWithHost lk.salyk.kg:30040 [17:42:02]ConnectInit lk.salyk.kg [17:42:02]Connected sock=9 [17:42: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 39 31 35 27 01 00 00 23 23 1F 01 DD 80 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 31 33 06 04 21 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 62 9A BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2B 14 01 00 35 04 06 00 6E F3 2B 2F E2 2D 0A 86 F7 1C AF 70 64 18 [17:42:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 11 2E 47 00 8D 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 39 31 35 10 04 04 00 2B 14 01 00 F4 03 04 00 D3 41 BB 66 B6 04 01 00 00 3C 72 5D DD 88 BD 40 AB [17:42:02]CommunicateWithHost err = 0 [17:42:02]CheckOFDResponse [17:42:02]1017 (14) - 77093643461234 [17:42:02]1041 (16) - 0000000000874915 [17:42:02]1040 (4) - 70699 [17:42:02]1012 (4) - 13.08.2024 11:21 [17:42:02]1206 (1) - 0 [17:42:02]OFD Sender: Remove packet 70699 [17:42:02]ProducePacketName [17:42:02]name=ofd_packets/00070699 [17:42:02]NVStorageDeleteData [17:42:02]OFD Sender: Processing packet 70700 [packets to send 67, broken 66] [17:42:02]ProducePacketName [17:42:02]name=ofd_packets/00070700 [17:42:02]OFD Sender: To server: ‡•öpG, [17:42:02]CommunicateWithHost lk.salyk.kg:30040 [17:42:02]ConnectInit lk.salyk.kg [17:42:02]Connected sock=9 [17:42: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 39 31 35 0F 01 00 00 19 8A 07 01 5D 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 16 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 85 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 E0 9A BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2C 14 01 00 35 04 06 00 20 E5 76 B2 57 A9 47 21 37 F3 05 63 59 D8 [17:42:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 3F FC 47 00 41 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2C 14 01 00 F4 03 04 00 D3 41 BB 66 B6 04 01 00 00 15 20 01 56 3A 32 5C CD [17:42:03]CommunicateWithHost err = 0 [17:42:03]CheckOFDResponse [17:42:03]1017 (14) - 77093643461234 [17:42:03]1041 (16) - 0000000000874915 [17:42:03]1040 (4) - 70700 [17:42:03]1012 (4) - 13.08.2024 11:21 [17:42:03]1206 (1) - 0 [17:42:03]OFD Sender: Remove packet 70700 [17:42:03]ProducePacketName [17:42:03]name=ofd_packets/00070700 [17:42:03]NVStorageDeleteData [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:12]accept exits with 7 [17:46:12]New connection [17:46:12]New thread 3067305316 created [17:46:12]Thread 3067448676 joined [17:46:12]Waiting for new connection... [17:46:12] Sock 7.Parse request [17:46:12]Sock 7.Check first char [17:46:12]Sock 7.First char is OK [17:46:12]request: POST /json_proto HTTP/1.0 [17:46:12]Method: POST [17:46:12]URL: /json_proto [17:46:12]Method is POST - this is cgi request [17:46:12]url: /json_proto [17:46:12]query_string will be loaded in cgi processing [17:46:12]execute_cgi json_proto POST (null) [17:46:12]execute_cgi path=json_proto method=POST [17:46:12]POST find Content-Length [17:46:12]Host: 172.17.58.67:8080 [17:46:12]Content-Length: 805 [17:46:12]Content-Type: application/json [17:46:12] [17:46:12]POST finish read [17:46:12]Found Content-Length = 805 [17:46:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.650, "sum" : 240.54, "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" : 240.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:12]execute_script... [17:46:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.650, "sum" : 240.54, "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" : 240.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:12]POST & json_proto [17:46:12]process_json_proto [17:46:12]json parsed OK: [17:46:12]protocol is kg_v1.0 [17:46:12]action value=close_receipt [17:46:12]process_action close_receipt [17:46:12]cmd_close_receipt [17:46:12]MH_GetDate [17:46:12]Write to MH i2c: F0 00 00 21 03 13 [17:46:12]Write i2c OK [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: F0 [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: F0 09 00 [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: F0 09 00 21 03 00 E5 9B BB 66 94 51 63 64 69 [17:46:12]GetLastDocTimeStamp 1723570912 [17:46:12]current date 1723571173 [17:46:12]FM_GetShiftState [17:46:12]SAM_PROTO_GetShiftState [17:46:12]wFMCommunicate request_size=4 [17:46:12]MH_SAM_APDU [17:46:12]CAPDU: 80 13 01 00 [17:46:12]Write to MH i2c: E2 08 00 22 03 80 13 01 00 00 00 00 00 A2 [17:46:12]Write i2c OK [17:46:12]MH_I2C_Read... [17:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:12]Read from MH i2c: E2 [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: E2 0E 00 [17:46:12]MH_I2C_Read... [17:46:12]Read from MH i2c: E2 0E 00 22 03 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 11 [17:46:12]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:46:12]wFMCommunicate OK [17:46:12]SAM_PROTO_GetShiftState done [17:46:12]FM_GetShiftState done [17:46:12]opened in 1723509656 [17:46:12]opened+sec_in_day 1723596056 [17:46:12]quantity*price = 24053 [17:46:12]sum+1 = 24055 [17:46:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 240.54 ÐСП 1% : 2.13 ÐДС 12% : 25.54 Ðаличными: 0.00 Безнал.: 240.54 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 55 13.08.2024 17:46 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70701 ФПД: 22595968522711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T174613&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70701&fm=22595968522711&tin=02508201610067®Number=0000000000090913&sum=24054 [17:46:13]StoreToDocumentArchive [17:46:13]shift 466 fd 70701 [17:46:13]save to /storage/0466/doc_00070701 [17:46:13]save last doc name /storage/0466/doc_00070701 to /storage/kkm_last_doc_name [17:46:13]save OK [17:46:13]Clear old archive folders... [17:46:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:13]tlvbuf is 006DFD50 [17:46:13]SAM_PROTO_ClearQueue [17:46:13]wFMCommunicate request_size=4 [17:46:13]MH_SAM_APDU [17:46:13]CAPDU: 80 09 00 00 [17:46:13]Write to MH i2c: E2 08 00 2F 03 80 09 00 00 00 00 00 00 A4 [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:14]Read from MH i2c: E2 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 2F 03 00 90 00 A6 [17:46:14]RAPDU: 90 00 [17:46:14]wFMCommunicate OK [17:46:14]SAM_PROTO_ClearQueue done [17:46:14]KKMCreateOFDPacket [17:46:14]OFDProtocolAddRootSTLVToBuf [17:46:14]FM_MakeSignedData [17:46:14]FM_MakeSignedData [17:46:14]SAM_PROTO_SignData [17:46:14]wFMCommunicate request_size=4 [17:46:14]MH_SAM_APDU [17:46:14]CAPDU: 80 0D 01 02 [17:46:14]Write to MH i2c: E2 08 00 30 03 80 0D 01 02 00 00 00 00 AC [17:46:14]Write i2c OK [17:46:14]MH_I2C_Read... [17:46:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:14]Read from MH i2c: E2 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 30 03 00 90 00 A7 [17:46:14]RAPDU: 90 00 [17:46:14]wFMCommunicate OK [17:46:14]wFMCommunicate request_size=255 [17:46:14]MH_SAM_APDU [17:46:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F6 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 E5 9B BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2D 14 01 00 35 04 06 00 14 [17:46:14]Write to MH i2c: E2 02 01 31 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F6 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 E5 9B BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2D 14 01 00 35 04 06 00 14 00 00 AE [17:46:14]Write i2c OK [17:46:14]MH_I2C_Read... [17:46:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:14]Read from MH i2c: E2 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 31 03 00 90 00 A8 [17:46:14]RAPDU: 90 00 [17:46:14]wFMCommunicate OK [17:46:14]wFMCommunicate request_size=10 [17:46:14]MH_SAM_APDU [17:46:14]CAPDU: 80 0D 02 02 05 8D 08 AD 59 D7 [17:46:14]Write to MH i2c: E2 0D 00 32 03 80 0D 02 02 05 00 8D 08 AD 59 D7 00 00 2B [17:46:14]Write i2c OK [17:46:14]MH_I2C_Read... [17:46:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:14]Read from MH i2c: E2 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 32 03 00 90 00 A9 [17:46:14]RAPDU: 90 00 [17:46:14]wFMCommunicate OK [17:46:14]wFMCommunicate request_size=4 [17:46:14]MH_SAM_APDU [17:46:14]CAPDU: 80 0D 03 02 [17:46:14]Write to MH i2c: E2 08 00 33 03 80 0D 03 02 00 00 00 00 B1 [17:46:14]Write i2c OK [17:46:14]MH_I2C_Read... [17:46:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:14]Read from MH i2c: E2 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 0B 00 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 0B 00 33 03 00 DA 0F 6B 27 D0 09 AF EA 90 00 9F [17:46:14]RAPDU: DA 0F 6B 27 D0 09 AF EA 90 00 [17:46:14]wFMCommunicate OK [17:46:14]SAM_PROTO_SignData done [17:46:14]FM_MakeSignedData done [17:46:14]CreateOFDProtocolMessage [17:46:14]wFMCommunicate request_size=4 [17:46:14]MH_SAM_APDU [17:46:14]CAPDU: 80 11 00 00 [17:46:14]Write to MH i2c: E2 08 00 34 03 80 11 00 00 00 00 00 00 B1 [17:46:14]Write i2c OK [17:46:14]MH_I2C_Read... [17:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:14]Read from MH i2c: E2 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 17 00 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 17 00 34 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 06 [17:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:46:14]wFMCommunicate OK [17:46:14]CreateOFDProtocolMessage done [17:46:14]OFDSenderStorePacket 70701 [17:46:14]StoreOFDPacket docnum=70701 [17:46:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 B2 60 07 01 6C 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 42 0E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F6 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 E5 9B BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2D 14 01 00 35 04 06 00 14 8D 08 AD 59 D7 DA 0F 6B 27 D0 09 AF EA [17:46:14]CheckFolder [17:46:14]dirname=/storage/ofd_packets [17:46:14]CheckFolder done [17:46:14]ProducePacketName [17:46:14]name=ofd_packets/00070701 [17:46:14]NVStorageSaveData ofd_packets/00070701 [17:46:14]File name is /storage/ofd_packets/00070701 [17:46:14]Write 301 bytes [17:46:14]NVStorageSaveData done [17:46:14]OFDSenderStorePacket done [17:46:14]KKMCreateOFDPacket done [17:46:14]NVStorageSaveData kkm_last_timestamp [17:46:14]File name is /storage/kkm_last_timestamp [17:46:14]Write 4 bytes [17:46:14]NVStorageSaveData done [17:46:14]ExternCall_PrintAddStr [17:46:14]wPrintStart [17:46:14]Write to MH i2c: 01 00 00 35 03 38 [17:46:14]Write i2c OK [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: 01 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: 01 07 00 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: 01 07 00 35 03 00 00 00 00 00 FF 0F 4D [17:46:14]RasterBufferAndPrint [17:46:14]line Счет N : (1)141160 [17:46:14]line ИÐÐ: 02508201610067 [17:46:14]line Контрольно-КаÑÑовый Чек [17:46:14]line ПРОДÐЖР[17:46:14]line ТРК (МРК, ГÐК) : 31 [17:46:14]line Товар: 2710124130 [17:46:14]line Ðи-92-К-5 [17:46:14]line 3.650 * 65.90 [17:46:14]line = 240.54 [17:46:14]line ÐДС 12% ÐСП 1% [17:46:14]line > о реализуемом товаре [17:46:14]line ИТОГО: 240.54 [17:46:14]line ÐСП 1% : 2.13 [17:46:14]line ÐДС 12% : 25.54 [17:46:14]line Ðаличными: 0.00 [17:46:14]line Безнал.: 240.54 [17:46:14]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [17:46:14]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [17:46:14]line СÐО: Общий режим [17:46:14]line Чек 55 13.08.2024 17:46 [17:46:14]line Смена: 466 ФФД: 1.0 [17:46:14]line ЗÐМ: 0300000140 [17:46:14]line РÐМ: 0000000000090913 [17:46:14]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:46:14]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [17:46:14]line ФМ: 0000000000874915 [17:46:14]line ФД: 70701 [17:46:14]line ФПД: 22595968522711 [17:46:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T174613&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70701&fm=22595968522711&tin=02508201610067®Number=0000000000090913&sum=24054 [17:46:14]written 0, free lines is 4095 [17:46:14]OFD Sender: Processing packet 70701 [packets to send 67, broken 66] [17:46:14]ProducePacketName [17:46:14]name=ofd_packets/00070701 [17:46:14]OFD Sender: To server: ‡•öpG, [17:46:14]CommunicateWithHost lk.salyk.kg:30040 [17:46:14]ConnectInit lk.salyk.kg [17:46:14]Connected sock=10 [17:46: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 39 31 35 0F 01 00 00 B2 60 07 01 6C 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 42 0E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F6 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 5D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 E5 9B BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2D 14 01 00 35 04 06 00 14 8D 08 AD 59 D7 DA 0F 6B 27 D0 09 AF EA [17:46:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 6A 14 47 00 E2 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2D 14 01 00 F4 03 04 00 CF 42 BB 66 B6 04 01 00 00 35 79 34 BB 5B 3D 16 F5 [17:46:15]CommunicateWithHost err = 0 [17:46:15]CheckOFDResponse [17:46:15]1017 (14) - 77093643461234 [17:46:15]1041 (16) - 0000000000874915 [17:46:15]1040 (4) - 70701 [17:46:15]1012 (4) - 13.08.2024 11:26 [17:46:15]1206 (1) - 0 [17:46:15]OFD Sender: Remove packet 70701 [17:46:15]ProducePacketName [17:46:15]name=ofd_packets/00070701 [17:46:15]NVStorageDeleteData [17:46:15]Write to MH i2c: 01 00 00 5F 03 62 [17:46:15]Write i2c OK [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: 01 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: 01 07 00 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: 01 07 00 5F 03 00 00 00 00 00 F6 0C 6B [17:46:15]RasterBufferAndPrint [17:46:15]line [17:46:15]line [17:46:15]line [17:46:15]line [17:46:15]line [17:46:15]written 0, free lines is 3327 [17:46:15]MH_Cut [17:46:15]Write to MH i2c: D1 01 00 66 03 01 3B [17:46:15]Write i2c OK [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: D1 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: D1 01 00 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: D1 01 00 66 03 00 3A [17:46:15]Write to MH i2c: 01 00 00 67 03 6A [17:46:15]Write i2c OK [17:46:15]MH_I2C_Read... [17:46:15]OFD Sender: No OFD packet to send [17:46:15]*** Cut start [17:46:15]*** Purtial cut [17:46:15]*** CUTSNS_PIN = 0 [17:46:16]*** Stage 1: CUTSNS_PIN = 1 [17:46:17]Read from MH i2c: 01 [17:46:17]MH_I2C_Read... [17:46:17]*** Stop cut motor [17:46:18]*** Cut end [17:46:18]Read from MH i2c: 01 07 00 [17:46:18]MH_I2C_Read... [17:46:18]Read from MH i2c: 01 07 00 67 03 00 00 00 00 00 FF 0F 7F [17:46:18]process_action close_receipt done [17:46:18]requested_data is exist [17:46:18]produce_requested_data [17:46:18]requested_item fm.sn is exist - process it [17:46:18]wFMCommunicate request_size=4 [17:46:18]MH_SAM_APDU [17:46:18]CAPDU: 80 11 00 00 [17:46:18]Write to MH i2c: E2 08 00 68 03 80 11 00 00 00 00 00 00 E5 [17:46:18]Write i2c OK [17:46:18]MH_I2C_Read... [17:46:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:18]Read from MH i2c: E2 [17:46:18]MH_I2C_Read... [17:46:18]Read from MH i2c: E2 17 00 [17:46:18]MH_I2C_Read... [17:46:18]Read from MH i2c: E2 17 00 68 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 3A [17:46:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:46:18]wFMCommunicate OK [17:46:18]requested_item fd.num is exist - process it [17:46:18]SAM_PROTO_GetFieldsCounters [17:46:18]wFMCommunicate request_size=4 [17:46:18]MH_SAM_APDU [17:46:18]CAPDU: 80 13 00 00 [17:46:18]Write to MH i2c: E2 08 00 69 03 80 13 00 00 00 00 00 00 E8 [17:46:18]Write i2c OK [17:46:18]MH_I2C_Read... [17:46:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:18]Read from MH i2c: E2 [17:46:18]MH_I2C_Read... [17:46:18]Read from MH i2c: E2 62 00 [17:46:18]MH_I2C_Read... [17:46:18]Read from MH i2c: E2 62 00 69 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 2D 14 01 00 0E 04 04 00 D2 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 C2 [17:46: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 2D 14 01 00 0E 04 04 00 D2 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 [17:46:18]wFMCommunicate OK [17:46:18]SAM_PROTO_GetFieldsCounters done [17:46:18]requested_item shift.num is exist - process it [17:46:18]requested_item shift.opened is exist - process it [17:46:18]req_shift_opened [17:46:18]FM_GetShiftState [17:46:18]SAM_PROTO_GetShiftState [17:46:18]wFMCommunicate request_size=4 [17:46:18]MH_SAM_APDU [17:46:18]CAPDU: 80 13 01 00 [17:46:18]Write to MH i2c: E2 08 00 6A 03 80 13 01 00 00 00 00 00 EA [17:46:18]Write i2c OK [17:46:18]MH_I2C_Read... [17:46:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:18]Read from MH i2c: E2 [17:46:18]MH_I2C_Read... [17:46:18]Read from MH i2c: E2 0E 00 [17:46:18]MH_I2C_Read... [17:46:18]Read from MH i2c: E2 0E 00 6A 03 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 59 [17:46:18]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:46:18]wFMCommunicate OK [17:46:18]SAM_PROTO_GetShiftState done [17:46:18]FM_GetShiftState done [17:46:18]req_shift_opened done [17:46:18]requested_item shift.open_date is exist - process it [17:46:18]req_shift_open_date [17:46:18]req_shift_open_date done [17:46:18]produce_requested_data done [17:46:18]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70701,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [17:46:18]process_action_free close_receipt [17:46:18]json_value_free [17:46:18]json_value_free done [17:46:18]process_json_proto returns [17:46:18]Send response to host [17:46:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70701,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [17:46:18]free response buf [17:46:18]execute_script done [17:46:18]execute_script returns [17:46:18]free content buf [17:46:18]Sock 7.Close socket [17:46:18]Sock 7.Thread stoped [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:30]OFD Sender: No OFD packet to send [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:14]accept exits with 9 [17:47:14]New connection [17:47:14]New thread 3067448676 created [17:47:14]Thread 3067305316 joined [17:47:14]Waiting for new connection... [17:47:14] Sock 9.Parse request [17:47:14]Sock 9.Check first char [17:47:14]Sock 9.First char is OK [17:47:14]request: POST /json_proto HTTP/1.0 [17:47:14]Method: POST [17:47:14]URL: /json_proto [17:47:14]Method is POST - this is cgi request [17:47:14]url: /json_proto [17:47:14]query_string will be loaded in cgi processing [17:47:14]execute_cgi json_proto POST (null) [17:47:14]execute_cgi path=json_proto method=POST [17:47:14]POST find Content-Length [17:47:14]Host: 172.17.58.67:8080 [17:47:14]Content-Length: 805 [17:47:14]Content-Type: application/json [17:47:14] [17:47:14]POST finish read [17:47:14]Found Content-Length = 805 [17:47:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.900, "sum" : 520.61, "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" : 520.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:14]execute_script... [17:47:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.900, "sum" : 520.61, "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" : 520.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:14]POST & json_proto [17:47:14]process_json_proto [17:47:14]json parsed OK: [17:47:14]protocol is kg_v1.0 [17:47:14]action value=close_receipt [17:47:14]process_action close_receipt [17:47:14]cmd_close_receipt [17:47:14]MH_GetDate [17:47:14]Write to MH i2c: F0 00 00 6B 03 5D [17:47:14]Write i2c OK [17:47:14]MH_I2C_Read... [17:47:14]Read from MH i2c: F0 [17:47:14]MH_I2C_Read... [17:47:14]Read from MH i2c: F0 09 00 [17:47:14]MH_I2C_Read... [17:47:14]Read from MH i2c: F0 09 00 6B 03 00 22 9C BB 66 94 51 63 64 F1 [17:47:14]GetLastDocTimeStamp 1723571173 [17:47:14]current date 1723571234 [17:47:14]FM_GetShiftState [17:47:14]SAM_PROTO_GetShiftState [17:47:14]wFMCommunicate request_size=4 [17:47:14]MH_SAM_APDU [17:47:14]CAPDU: 80 13 01 00 [17:47:14]Write to MH i2c: E2 08 00 6C 03 80 13 01 00 00 00 00 00 EC [17:47:14]Write i2c OK [17:47:14]MH_I2C_Read... [17:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:14]Read from MH i2c: E2 [17:47:14]MH_I2C_Read... [17:47:14]Read from MH i2c: E2 0E 00 [17:47:14]MH_I2C_Read... [17:47:14]Read from MH i2c: E2 0E 00 6C 03 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 5B [17:47:14]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:47:14]wFMCommunicate OK [17:47:14]SAM_PROTO_GetShiftState done [17:47:14]FM_GetShiftState done [17:47:14]opened in 1723509656 [17:47:14]opened+sec_in_day 1723596056 [17:47:14]quantity*price = 52061 [17:47:14]sum+1 = 52062 [17:47:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 520.61 ÐСП 1% : 4.61 ÐДС 12% : 55.29 Ðаличными: 0.00 Безнал.: 520.61 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 56 13.08.2024 17:47 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70702 ФПД: 115579299947718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T174714&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70702&fm=115579299947718&tin=02508201610067®Number=0000000000090913&sum=52061 [17:47:15]StoreToDocumentArchive [17:47:15]shift 466 fd 70702 [17:47:15]save to /storage/0466/doc_00070702 [17:47:15]save last doc name /storage/0466/doc_00070702 to /storage/kkm_last_doc_name [17:47:15]save OK [17:47:15]Clear old archive folders... [17:47:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:15]tlvbuf is 006E1A20 [17:47:15]SAM_PROTO_ClearQueue [17:47:15]wFMCommunicate request_size=4 [17:47:15]MH_SAM_APDU [17:47:15]CAPDU: 80 09 00 00 [17:47:15]Write to MH i2c: E2 08 00 79 03 80 09 00 00 00 00 00 00 EE [17:47:15]Write i2c OK [17:47:15]MH_I2C_Read... [17:47:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:15]Read from MH i2c: E2 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 03 00 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 03 00 79 03 00 90 00 F0 [17:47:15]RAPDU: 90 00 [17:47:15]wFMCommunicate OK [17:47:15]SAM_PROTO_ClearQueue done [17:47:15]KKMCreateOFDPacket [17:47:15]OFDProtocolAddRootSTLVToBuf [17:47:15]FM_MakeSignedData [17:47:15]FM_MakeSignedData [17:47:15]SAM_PROTO_SignData [17:47:15]wFMCommunicate request_size=4 [17:47:15]MH_SAM_APDU [17:47:15]CAPDU: 80 0D 01 02 [17:47:15]Write to MH i2c: E2 08 00 7A 03 80 0D 01 02 00 00 00 00 F6 [17:47:15]Write i2c OK [17:47:15]MH_I2C_Read... [17:47:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:15]Read from MH i2c: E2 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 03 00 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 03 00 7A 03 00 90 00 F1 [17:47:15]RAPDU: 90 00 [17:47:15]wFMCommunicate OK [17:47:15]wFMCommunicate request_size=255 [17:47:15]MH_SAM_APDU [17:47:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 1E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 5D CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 22 9C BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2E 14 01 00 35 04 06 00 69 [17:47:15]Write to MH i2c: E2 02 01 7B 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 1E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 5D CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 22 9C BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2E 14 01 00 35 04 06 00 69 00 00 5A [17:47:15]Write i2c OK [17:47:15]MH_I2C_Read... [17:47:15]OFD Sender: No OFD packet to send [17:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:15]Read from MH i2c: E2 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 03 00 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 03 00 7B 03 00 90 00 F2 [17:47:15]RAPDU: 90 00 [17:47:15]wFMCommunicate OK [17:47:15]wFMCommunicate request_size=10 [17:47:15]MH_SAM_APDU [17:47:15]CAPDU: 80 0D 02 02 05 1E 67 1D E4 C6 [17:47:15]Write to MH i2c: E2 0D 00 7C 03 80 0D 02 02 05 00 1E 67 1D E4 C6 00 00 4F [17:47:15]Write i2c OK [17:47:15]MH_I2C_Read... [17:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:15]Read from MH i2c: E2 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 03 00 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 03 00 7C 03 00 90 00 F3 [17:47:15]RAPDU: 90 00 [17:47:15]wFMCommunicate OK [17:47:15]wFMCommunicate request_size=4 [17:47:15]MH_SAM_APDU [17:47:15]CAPDU: 80 0D 03 02 [17:47:15]Write to MH i2c: E2 08 00 7D 03 80 0D 03 02 00 00 00 00 FB [17:47:15]Write i2c OK [17:47:15]MH_I2C_Read... [17:47:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:15]Read from MH i2c: E2 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 0B 00 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 0B 00 7D 03 00 BF E5 4E F8 9C A0 57 A8 90 00 21 [17:47:15]RAPDU: BF E5 4E F8 9C A0 57 A8 90 00 [17:47:15]wFMCommunicate OK [17:47:15]SAM_PROTO_SignData done [17:47:15]FM_MakeSignedData done [17:47:15]CreateOFDProtocolMessage [17:47:15]wFMCommunicate request_size=4 [17:47:15]MH_SAM_APDU [17:47:15]CAPDU: 80 11 00 00 [17:47:15]Write to MH i2c: E2 08 00 7E 03 80 11 00 00 00 00 00 00 FB [17:47:15]Write i2c OK [17:47:15]MH_I2C_Read... [17:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:16]Read from MH i2c: E2 [17:47:16]MH_I2C_Read... [17:47:16]Read from MH i2c: E2 17 00 [17:47:16]MH_I2C_Read... [17:47:16]Read from MH i2c: E2 17 00 7E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 50 [17:47:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:47:16]wFMCommunicate OK [17:47:16]CreateOFDProtocolMessage done [17:47:16]OFDSenderStorePacket 70702 [17:47:16]StoreOFDPacket docnum=70702 [17:47:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 19 DC 07 01 DB C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 1E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 5D CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 22 9C BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2E 14 01 00 35 04 06 00 69 1E 67 1D E4 C6 BF E5 4E F8 9C A0 57 A8 [17:47:16]CheckFolder [17:47:16]dirname=/storage/ofd_packets [17:47:16]CheckFolder done [17:47:16]ProducePacketName [17:47:16]name=ofd_packets/00070702 [17:47:16]NVStorageSaveData ofd_packets/00070702 [17:47:16]File name is /storage/ofd_packets/00070702 [17:47:16]Write 301 bytes [17:47:16]NVStorageSaveData done [17:47:16]OFDSenderStorePacket done [17:47:16]KKMCreateOFDPacket done [17:47:16]NVStorageSaveData kkm_last_timestamp [17:47:16]File name is /storage/kkm_last_timestamp [17:47:16]Write 4 bytes [17:47:16]NVStorageSaveData done [17:47:16]ExternCall_PrintAddStr [17:47:16]wPrintStart [17:47:16]Write to MH i2c: 01 00 00 7F 03 82 [17:47:16]Write i2c OK [17:47:16]MH_I2C_Read... [17:47:16]Read from MH i2c: 01 [17:47:16]MH_I2C_Read... [17:47:16]Read from MH i2c: 01 07 00 [17:47:16]MH_I2C_Read... [17:47:16]Read from MH i2c: 01 07 00 7F 03 00 00 00 00 00 FF 0F 97 [17:47:16]RasterBufferAndPrint [17:47:16]line Счет N : (1)141161 [17:47:16]line ИÐÐ: 02508201610067 [17:47:16]line Контрольно-КаÑÑовый Чек [17:47:16]line ПРОДÐЖР[17:47:16]line ТРК (МРК, ГÐК) : 41 [17:47:16]line Товар: 2710124130 [17:47:16]line Ðи-92-К-5 [17:47:16]line 7.900 * 65.90 [17:47:16]line = 520.61 [17:47:16]line ÐДС 12% ÐСП 1% [17:47:16]line > о реализуемом товаре [17:47:16]line ИТОГО: 520.61 [17:47:16]line ÐСП 1% : 4.61 [17:47:16]line ÐДС 12% : 55.29 [17:47:16]line Ðаличными: 0.00 [17:47:16]line Безнал.: 520.61 [17:47:16]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [17:47:16]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [17:47:16]line СÐО: Общий режим [17:47:16]line Чек 56 13.08.2024 17:47 [17:47:16]line Смена: 466 ФФД: 1.0 [17:47:16]line ЗÐМ: 0300000140 [17:47:16]line РÐМ: 0000000000090913 [17:47:16]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:47:16]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [17:47:16]line ФМ: 0000000000874915 [17:47:16]line ФД: 70702 [17:47:16]line ФПД: 115579299947718 [17:47:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T174714&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70702&fm=115579299947718&tin=02508201610067®Number=0000000000090913&sum=52061 [17:47:16]OFD Sender: Processing packet 70702 [packets to send 67, broken 66] [17:47:16]ProducePacketName [17:47:16]name=ofd_packets/00070702 [17:47:16]OFD Sender: To server: ‡•öpG, [17:47:16]CommunicateWithHost lk.salyk.kg:30040 [17:47:16]ConnectInit lk.salyk.kg [17:47:16]written 0, free lines is 4095 [17:47:16]Connected sock=10 [17:47: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 39 31 35 0F 01 00 00 19 DC 07 01 DB C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 1E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 5D CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 22 9C BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2E 14 01 00 35 04 06 00 69 1E 67 1D E4 C6 BF E5 4E F8 9C A0 57 A8 [17:47:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 83 FE 47 00 00 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2E 14 01 00 F4 03 04 00 0D 43 BB 66 B6 04 01 00 00 65 6B E9 BF EE 5C BC F0 [17:47:16]CommunicateWithHost err = 0 [17:47:16]CheckOFDResponse [17:47:16]1017 (14) - 77093643461234 [17:47:16]1041 (16) - 0000000000874915 [17:47:16]1040 (4) - 70702 [17:47:16]1012 (4) - 13.08.2024 11:27 [17:47:16]1206 (1) - 0 [17:47:16]OFD Sender: Remove packet 70702 [17:47:16]ProducePacketName [17:47:16]name=ofd_packets/00070702 [17:47:16]NVStorageDeleteData [17:47:16]Write to MH i2c: 01 00 00 A9 03 AC [17:47:16]Write i2c OK [17:47:16]MH_I2C_Read... [17:47:16]Read from MH i2c: 01 [17:47:16]MH_I2C_Read... [17:47:16]Read from MH i2c: 01 07 00 [17:47:16]MH_I2C_Read... [17:47:16]Read from MH i2c: 01 07 00 A9 03 00 00 00 00 00 02 0D C2 [17:47:16]RasterBufferAndPrint [17:47:16]line [17:47:16]line [17:47:16]line [17:47:16]line [17:47:16]line [17:47:16]written 0, free lines is 3339 [17:47:16]MH_Cut [17:47:16]Write to MH i2c: D1 01 00 B0 03 01 85 [17:47:16]Write i2c OK [17:47:16]MH_I2C_Read... [17:47:16]Read from MH i2c: D1 [17:47:16]MH_I2C_Read... [17:47:16]Read from MH i2c: D1 01 00 [17:47:16]MH_I2C_Read... [17:47:16]Read from MH i2c: D1 01 00 B0 03 00 84 [17:47:16]Write to MH i2c: 01 00 00 B1 03 B4 [17:47:16]Write i2c OK [17:47:16]MH_I2C_Read... [17:47:17]OFD Sender: No OFD packet to send [17:47:17]*** Cut start [17:47:17]*** Purtial cut [17:47:17]*** Stage 1: CUTSNS_PIN = 1 [17:47:17]Read from MH i2c: 01 [17:47:17]MH_I2C_Read... [17:47:17]*** Stop cut motor [17:47:17]*** Cut end [17:47:17]Read from MH i2c: 01 07 00 [17:47:17]MH_I2C_Read... [17:47:17]Read from MH i2c: 01 07 00 B1 03 00 00 00 00 00 FF 0F C9 [17:47:17]process_action close_receipt done [17:47:17]requested_data is exist [17:47:17]produce_requested_data [17:47:17]requested_item fm.sn is exist - process it [17:47:17]wFMCommunicate request_size=4 [17:47:17]MH_SAM_APDU [17:47:17]CAPDU: 80 11 00 00 [17:47:17]Write to MH i2c: E2 08 00 B2 03 80 11 00 00 00 00 00 00 2F [17:47:17]Write i2c OK [17:47:17]MH_I2C_Read... [17:47:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:17]Read from MH i2c: E2 [17:47:17]MH_I2C_Read... [17:47:17]Read from MH i2c: E2 17 00 [17:47:17]MH_I2C_Read... [17:47:17]Read from MH i2c: E2 17 00 B2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 84 [17:47:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:47:17]wFMCommunicate OK [17:47:17]requested_item fd.num is exist - process it [17:47:17]SAM_PROTO_GetFieldsCounters [17:47:17]wFMCommunicate request_size=4 [17:47:17]MH_SAM_APDU [17:47:17]CAPDU: 80 13 00 00 [17:47:17]Write to MH i2c: E2 08 00 B3 03 80 13 00 00 00 00 00 00 32 [17:47:17]Write i2c OK [17:47:17]MH_I2C_Read... [17:47:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:17]Read from MH i2c: E2 [17:47:17]MH_I2C_Read... [17:47:17]Read from MH i2c: E2 62 00 [17:47:17]MH_I2C_Read... [17:47:17]Read from MH i2c: E2 62 00 B3 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 2E 14 01 00 0E 04 04 00 D2 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 10 [17:47: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 2E 14 01 00 0E 04 04 00 D2 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 [17:47:17]wFMCommunicate OK [17:47:17]SAM_PROTO_GetFieldsCounters done [17:47:17]requested_item shift.num is exist - process it [17:47:17]requested_item shift.opened is exist - process it [17:47:17]req_shift_opened [17:47:17]FM_GetShiftState [17:47:17]SAM_PROTO_GetShiftState [17:47:17]wFMCommunicate request_size=4 [17:47:17]MH_SAM_APDU [17:47:17]CAPDU: 80 13 01 00 [17:47:17]Write to MH i2c: E2 08 00 B4 03 80 13 01 00 00 00 00 00 34 [17:47:17]Write i2c OK [17:47:17]MH_I2C_Read... [17:47:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:18]Read from MH i2c: E2 [17:47:18]MH_I2C_Read... [17:47:18]Read from MH i2c: E2 0E 00 [17:47:18]MH_I2C_Read... [17:47:18]Read from MH i2c: E2 0E 00 B4 03 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 A3 [17:47:18]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [17:47:18]wFMCommunicate OK [17:47:18]SAM_PROTO_GetShiftState done [17:47:18]FM_GetShiftState done [17:47:18]req_shift_opened done [17:47:18]requested_item shift.open_date is exist - process it [17:47:18]req_shift_open_date [17:47:18]req_shift_open_date done [17:47:18]produce_requested_data done [17:47:18]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70702,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [17:47:18]process_action_free close_receipt [17:47:18]json_value_free [17:47:18]json_value_free done [17:47:18]process_json_proto returns [17:47:18]Send response to host [17:47:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70702,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [17:47:18]free response buf [17:47:18]execute_script done [17:47:18]execute_script returns [17:47:18]free content buf [17:47:18]Sock 9.Close socket [17:47:18]Sock 9.Thread stoped [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:02:02]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]OFD Sender: No OFD packet to send [18:05:33]OFD Sender: No OFD packet to send [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:48]OFD Sender: No OFD packet to send [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:33]OFD Sender: No OFD packet to send [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:48]OFD Sender: No OFD packet to send [18:08:53]OFD Sender: No OFD packet to send [18:08:58]OFD Sender: No OFD packet to send [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:08]OFD Sender: No OFD packet to send [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]OFD Sender: No OFD packet to send [18:10:53]OFD Sender: No OFD packet to send [18:10:58]OFD Sender: No OFD packet to send [18:11:03]OFD Sender: No OFD packet to send [18:11:08]OFD Sender: No OFD packet to send [18:11:13]OFD Sender: No OFD packet to send [18:11:18]OFD Sender: No OFD packet to send [18:11:23]OFD Sender: No OFD packet to send [18:11:28]OFD Sender: No OFD packet to send [18:11:33]OFD Sender: No OFD packet to send [18:11:38]OFD Sender: No OFD packet to send [18:11:43]OFD Sender: No OFD packet to send [18:11:48]OFD Sender: No OFD packet to send [18:11:53]OFD Sender: No OFD packet to send [18:11:58]OFD Sender: No OFD packet to send [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:39]OFD Sender: No OFD packet to send [18:20:44]OFD Sender: No OFD packet to send [18:20:49]OFD Sender: No OFD packet to send [18:20:54]OFD Sender: No OFD packet to send [18:20:59]OFD Sender: No OFD packet to send [18:21:04]OFD Sender: No OFD packet to send [18:21:09]OFD Sender: No OFD packet to send [18:21:14]OFD Sender: No OFD packet to send [18:21:19]OFD Sender: No OFD packet to send [18:21:24]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:34]OFD Sender: No OFD packet to send [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:31]accept exits with 7 [18:27:31]New connection [18:27:31]New thread 3067305316 created [18:27:31]Thread 3067448676 joined [18:27:31]Waiting for new connection... [18:27:31] Sock 7.Parse request [18:27:31]Sock 7.Check first char [18:27:31]Sock 7.First char is OK [18:27:31]request: POST /json_proto HTTP/1.0 [18:27:31]Method: POST [18:27:31]URL: /json_proto [18:27:31]Method is POST - this is cgi request [18:27:31]url: /json_proto [18:27:31]query_string will be loaded in cgi processing [18:27:31]execute_cgi json_proto POST (null) [18:27:31]execute_cgi path=json_proto method=POST [18:27:31]POST find Content-Length [18:27:31]Host: 172.17.58.67:8080 [18:27:31]Content-Length: 1196 [18:27:31]Content-Type: application/json [18:27:31] [18:27:31]POST finish read [18:27:31]Found Content-Length = 1196 [18:27:31]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141162\u000A13.08.2024 17:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A4124644\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:31]execute_script... [18:27:31]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141162\u000A13.08.2024 17:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A4124644\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:31]POST & json_proto [18:27:31]process_json_proto [18:27:31]json parsed OK: [18:27:31]protocol is kg_v1.0 [18:27:31]action value=print_text [18:27:31]process_action print_text [18:27:31]cmd_print_text [18:27:31]ExternCall_PrintAddStr [18:27:31]wPrintStart [18:27:31]Write to MH i2c: 01 00 00 B5 03 B8 [18:27:31]Write i2c OK [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: 01 [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: 01 07 00 [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: 01 07 00 B5 03 00 00 00 00 00 FF 0F CD [18:27:31]RasterBufferAndPrint [18:27:31]line *****ТОВÐРÐЫЙ ЧЕК***** [18:27:31]line ÐЗС 39 [18:27:31]line Партнер нефть [18:27:31]line 02508201610067 [18:27:31]line КаÑÑир : ОваÑбекова Л. [18:27:31]line Счет N : (1)141162 [18:27:31]line 13.08.2024 17:46 [18:27:31]line ПРОДÐЖР[18:27:31]line ТРК (МРК, ГÐК): 31 [18:27:31]line Вид ГСМ : 2710124130 [18:27:31]line Ðи-92-К-5 [18:27:31]line 10.000 x 65.90 [18:27:31]line ИТОГ: 659.00 [18:27:31]line Тип оплаты: Талоны: Партнер нефть [18:27:31]line 4124644 [18:27:31]line ______________________ [18:27:31]line (подпиÑÑŒ) [18:27:31]written 0, free lines is 4095 [18:27:31]Write to MH i2c: 01 00 00 C9 03 CC [18:27:31]Write i2c OK [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: 01 [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: 01 07 00 [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: 01 07 00 C9 03 00 00 00 00 00 0F 0E F0 [18:27:31]RasterBufferAndPrint [18:27:31]line [18:27:31]line [18:27:31]line [18:27:31]line [18:27:31]line [18:27:31]written 0, free lines is 3601 [18:27:31]MH_Cut [18:27:31]Write to MH i2c: D1 01 00 D0 03 01 A5 [18:27:31]Write i2c OK [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: D1 [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: D1 01 00 [18:27:31]MH_I2C_Read... [18:27:31]Read from MH i2c: D1 01 00 D0 03 00 A4 [18:27:31]Write to MH i2c: 01 00 00 D1 03 D4 [18:27:31]Write i2c OK [18:27:31]MH_I2C_Read... [18:27:32]*** Cut start [18:27:32]*** Purtial cut [18:27:32]*** CUTSNS_PIN = 0 [18:27:32]*** Stage 1: CUTSNS_PIN = 1 [18:27:34]Read from MH i2c: 01 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: 01 07 00 [18:27:34]MH_I2C_Read... [18:27:34]*** Stop cut motor [18:27:34]*** Cut end [18:27:34]Read from MH i2c: 01 07 00 D1 03 00 00 00 00 00 FF 0F E9 [18:27:34]process_action print_text done [18:27:34]requested_data is exist [18:27:34]produce_requested_data [18:27:34]requested_item fm.sn is exist - process it [18:27:34]wFMCommunicate request_size=4 [18:27:34]MH_SAM_APDU [18:27:34]CAPDU: 80 11 00 00 [18:27:34]Write to MH i2c: E2 08 00 D2 03 80 11 00 00 00 00 00 00 4F [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:34]Read from MH i2c: E2 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 17 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 17 00 D2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 A4 [18:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [18:27:34]wFMCommunicate OK [18:27:34]requested_item fd.num is exist - process it [18:27:34]SAM_PROTO_GetFieldsCounters [18:27:34]wFMCommunicate request_size=4 [18:27:34]MH_SAM_APDU [18:27:34]CAPDU: 80 13 00 00 [18:27:34]Write to MH i2c: E2 08 00 D3 03 80 13 00 00 00 00 00 00 52 [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]OFD Sender: No OFD packet to send [18:27:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:34]Read from MH i2c: E2 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 62 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 62 00 D3 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 2E 14 01 00 0E 04 04 00 D2 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 30 [18:27: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 2E 14 01 00 0E 04 04 00 D2 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 [18:27:34]wFMCommunicate OK [18:27:34]SAM_PROTO_GetFieldsCounters done [18:27:34]requested_item shift.num is exist - process it [18:27:34]requested_item shift.opened is exist - process it [18:27:34]req_shift_opened [18:27:34]FM_GetShiftState [18:27:34]SAM_PROTO_GetShiftState [18:27:34]wFMCommunicate request_size=4 [18:27:34]MH_SAM_APDU [18:27:34]CAPDU: 80 13 01 00 [18:27:34]Write to MH i2c: E2 08 00 D4 03 80 13 01 00 00 00 00 00 54 [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:34]Read from MH i2c: E2 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 0E 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 0E 00 D4 03 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 C3 [18:27:34]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [18:27:34]wFMCommunicate OK [18:27:34]SAM_PROTO_GetShiftState done [18:27:34]FM_GetShiftState done [18:27:34]req_shift_opened done [18:27:34]requested_item shift.open_date is exist - process it [18:27:34]req_shift_open_date [18:27:34]req_shift_open_date done [18:27:34]produce_requested_data done [18:27:34]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70702,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [18:27:34]process_action_free print_text [18:27:34]json_value_free [18:27:34]json_value_free done [18:27:34]process_json_proto returns [18:27:34]Send response to host [18:27:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70702,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [18:27:34]free response buf [18:27:34]execute_script done [18:27:34]execute_script returns [18:27:34]free content buf [18:27:34]Sock 7.Close socket [18:27:34]Sock 7.Thread stoped [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:30]OFD Sender: No OFD packet to send [18:38:35]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:19]accept exits with 9 [18:41:19]New connection [18:41:19]New thread 3067448676 created [18:41:19]Thread 3067305316 joined [18:41:19]Waiting for new connection... [18:41:19] Sock 9.Parse request [18:41:19]Sock 9.Check first char [18:41:19]Sock 9.First char is OK [18:41:19]request: POST /json_proto HTTP/1.0 [18:41:19]Method: POST [18:41:19]URL: /json_proto [18:41:19]Method is POST - this is cgi request [18:41:19]url: /json_proto [18:41:19]query_string will be loaded in cgi processing [18:41:19]execute_cgi json_proto POST (null) [18:41:19]execute_cgi path=json_proto method=POST [18:41:19]POST find Content-Length [18:41:19]Host: 172.17.58.67:8080 [18:41:19]Content-Length: 805 [18:41:19]Content-Type: application/json [18:41:19] [18:41:19]POST finish read [18:41:19]Found Content-Length = 805 [18:41:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:19]execute_script... [18:41: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)141163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:19]POST & json_proto [18:41:19]process_json_proto [18:41:19]json parsed OK: [18:41:19]protocol is kg_v1.0 [18:41:19]action value=close_receipt [18:41:19]process_action close_receipt [18:41:19]cmd_close_receipt [18:41:19]MH_GetDate [18:41:19]Write to MH i2c: F0 00 00 D5 03 C7 [18:41:19]Write i2c OK [18:41:19]MH_I2C_Read... [18:41:19]Read from MH i2c: F0 [18:41:19]MH_I2C_Read... [18:41:19]Read from MH i2c: F0 09 00 [18:41:19]MH_I2C_Read... [18:41:19]Read from MH i2c: F0 09 00 D5 03 00 D0 A8 BB 66 94 51 63 64 15 [18:41:19]GetLastDocTimeStamp 1723571234 [18:41:19]current date 1723574480 [18:41:19]FM_GetShiftState [18:41:19]SAM_PROTO_GetShiftState [18:41:19]wFMCommunicate request_size=4 [18:41:19]MH_SAM_APDU [18:41:19]CAPDU: 80 13 01 00 [18:41:19]Write to MH i2c: E2 08 00 D6 03 80 13 01 00 00 00 00 00 56 [18:41:19]Write i2c OK [18:41:19]MH_I2C_Read... [18:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:19]Read from MH i2c: E2 [18:41:19]MH_I2C_Read... [18:41:19]Read from MH i2c: E2 0E 00 [18:41:19]MH_I2C_Read... [18:41:19]Read from MH i2c: E2 0E 00 D6 03 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 C5 [18:41:19]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [18:41:19]wFMCommunicate OK [18:41:19]SAM_PROTO_GetShiftState done [18:41:19]FM_GetShiftState done [18:41:19]opened in 1723509656 [18:41:19]opened+sec_in_day 1723596056 [18:41:19]quantity*price = 30050 [18:41:19]sum+1 = 30051 [18:41:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.50 ÐСП 1% : 2.66 ÐДС 12% : 31.91 Ðаличными: 0.00 Безнал.: 300.50 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 57 13.08.2024 18:41 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70703 ФПД: 22798738783031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T184120&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70703&fm=22798738783031&tin=02508201610067®Number=0000000000090913&sum=30050 [18:41:20]StoreToDocumentArchive [18:41:20]shift 466 fd 70703 [18:41:20]save to /storage/0466/doc_00070703 [18:41:20]save last doc name /storage/0466/doc_00070703 to /storage/kkm_last_doc_name [18:41:20]save OK [18:41:20]Clear old archive folders... [18:41:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:41:20]tlvbuf is 006E1BB0 [18:41:20]SAM_PROTO_ClearQueue [18:41:20]wFMCommunicate request_size=4 [18:41:20]MH_SAM_APDU [18:41:20]CAPDU: 80 09 00 00 [18:41:20]Write to MH i2c: E2 08 00 E3 03 80 09 00 00 00 00 00 00 58 [18:41:20]Write i2c OK [18:41:20]MH_I2C_Read... [18:41:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:20]Read from MH i2c: E2 [18:41:20]MH_I2C_Read... [18:41:20]Read from MH i2c: E2 03 00 [18:41:20]MH_I2C_Read... [18:41:20]Read from MH i2c: E2 03 00 E3 03 00 90 00 5A [18:41:20]RAPDU: 90 00 [18:41:20]wFMCommunicate OK [18:41:20]SAM_PROTO_ClearQueue done [18:41:20]KKMCreateOFDPacket [18:41:20]OFDProtocolAddRootSTLVToBuf [18:41:20]FM_MakeSignedData [18:41:20]FM_MakeSignedData [18:41:20]SAM_PROTO_SignData [18:41:20]wFMCommunicate request_size=4 [18:41:20]MH_SAM_APDU [18:41:20]CAPDU: 80 0D 01 02 [18:41:20]Write to MH i2c: E2 08 00 E4 03 80 0D 01 02 00 00 00 00 60 [18:41:20]Write i2c OK [18:41:20]MH_I2C_Read... [18:41:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:20]Read from MH i2c: E2 [18:41:20]MH_I2C_Read... [18:41:20]Read from MH i2c: E2 03 00 [18:41:20]MH_I2C_Read... [18:41:20]Read from MH i2c: E2 03 00 E4 03 00 90 00 5B [18:41:20]RAPDU: 90 00 [18:41:20]wFMCommunicate OK [18:41:20]wFMCommunicate request_size=255 [18:41:20]MH_SAM_APDU [18:41:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 D0 A8 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2F 14 01 00 35 04 06 00 14 [18:41:20]Write to MH i2c: E2 02 01 E5 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 D0 A8 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2F 14 01 00 35 04 06 00 14 00 00 31 [18:41:20]Write i2c OK [18:41:20]MH_I2C_Read... [18:41:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:20]Read from MH i2c: E2 [18:41:20]MH_I2C_Read... [18:41:20]Read from MH i2c: E2 03 00 [18:41:20]MH_I2C_Read... [18:41:20]Read from MH i2c: E2 03 00 E5 03 00 90 00 5C [18:41:20]RAPDU: 90 00 [18:41:20]wFMCommunicate OK [18:41:20]wFMCommunicate request_size=10 [18:41:20]MH_SAM_APDU [18:41:20]CAPDU: 80 0D 02 02 05 BC 3E B9 FB 37 [18:41:20]Write to MH i2c: E2 0D 00 E6 03 80 0D 02 02 05 00 BC 3E B9 FB 37 00 00 52 [18:41:20]Write i2c OK [18:41:20]MH_I2C_Read... [18:41:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:20]Read from MH i2c: E2 [18:41:20]MH_I2C_Read... [18:41:20]Read from MH i2c: E2 03 00 [18:41:20]MH_I2C_Read... [18:41:20]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [18:41:20]RAPDU: 90 00 [18:41:20]wFMCommunicate OK [18:41:20]wFMCommunicate request_size=4 [18:41:20]MH_SAM_APDU [18:41:20]CAPDU: 80 0D 03 02 [18:41:20]Write to MH i2c: E2 08 00 E7 03 80 0D 03 02 00 00 00 00 65 [18:41:20]Write i2c OK [18:41:20]MH_I2C_Read... [18:41:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:20]Read from MH i2c: E2 [18:41:20]MH_I2C_Read... [18:41:20]Read from MH i2c: E2 0B 00 [18:41:20]MH_I2C_Read... [18:41:20]Read from MH i2c: E2 0B 00 E7 03 00 B7 D8 4F 86 CA CF DA 51 90 00 8E [18:41:20]RAPDU: B7 D8 4F 86 CA CF DA 51 90 00 [18:41:20]wFMCommunicate OK [18:41:20]SAM_PROTO_SignData done [18:41:20]FM_MakeSignedData done [18:41:20]CreateOFDProtocolMessage [18:41:20]wFMCommunicate request_size=4 [18:41:20]MH_SAM_APDU [18:41:20]CAPDU: 80 11 00 00 [18:41:20]Write to MH i2c: E2 08 00 E8 03 80 11 00 00 00 00 00 00 65 [18:41:20]Write i2c OK [18:41:20]MH_I2C_Read... [18:41:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:21]Read from MH i2c: E2 [18:41:21]MH_I2C_Read... [18:41:21]Read from MH i2c: E2 17 00 [18:41:21]MH_I2C_Read... [18:41:21]Read from MH i2c: E2 17 00 E8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 BA [18:41:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [18:41:21]wFMCommunicate OK [18:41:21]CreateOFDProtocolMessage done [18:41:21]OFDSenderStorePacket 70703 [18:41:21]StoreOFDPacket docnum=70703 [18:41:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 7D 6F 07 01 71 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 D0 A8 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2F 14 01 00 35 04 06 00 14 BC 3E B9 FB 37 B7 D8 4F 86 CA CF DA 51 [18:41:21]CheckFolder [18:41:21]dirname=/storage/ofd_packets [18:41:21]CheckFolder done [18:41:21]ProducePacketName [18:41:21]name=ofd_packets/00070703 [18:41:21]NVStorageSaveData ofd_packets/00070703 [18:41:21]File name is /storage/ofd_packets/00070703 [18:41:21]Write 301 bytes [18:41:21]NVStorageSaveData done [18:41:21]OFDSenderStorePacket done [18:41:21]KKMCreateOFDPacket done [18:41:21]NVStorageSaveData kkm_last_timestamp [18:41:21]File name is /storage/kkm_last_timestamp [18:41:21]Write 4 bytes [18:41:21]NVStorageSaveData done [18:41:21]ExternCall_PrintAddStr [18:41:21]wPrintStart [18:41:21]Write to MH i2c: 01 00 00 E9 03 EC [18:41:21]Write i2c OK [18:41:21]MH_I2C_Read... [18:41:21]Read from MH i2c: 01 [18:41:21]MH_I2C_Read... [18:41:21]Read from MH i2c: 01 07 00 [18:41:21]MH_I2C_Read... [18:41:21]Read from MH i2c: 01 07 00 E9 03 00 00 00 00 00 FF 0F 01 [18:41:21]RasterBufferAndPrint [18:41:21]line Счет N : (1)141163 [18:41:21]line ИÐÐ: 02508201610067 [18:41:21]line Контрольно-КаÑÑовый Чек [18:41:21]line ПРОДÐЖР[18:41:21]line ТРК (МРК, ГÐК) : 31 [18:41:21]line Товар: 2710124130 [18:41:21]line Ðи-92-К-5 [18:41:21]line 4.560 * 65.90 [18:41:21]line = 300.50 [18:41:21]line ÐДС 12% ÐСП 1% [18:41:21]line > о реализуемом товаре [18:41:21]line ИТОГО: 300.50 [18:41:21]line ÐСП 1% : 2.66 [18:41:21]line ÐДС 12% : 31.91 [18:41:21]line Ðаличными: 0.00 [18:41:21]line Безнал.: 300.50 [18:41:21]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [18:41:21]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [18:41:21]line СÐО: Общий режим [18:41:21]line Чек 57 13.08.2024 18:41 [18:41:21]line Смена: 466 ФФД: 1.0 [18:41:21]line ЗÐМ: 0300000140 [18:41:21]line РÐМ: 0000000000090913 [18:41:21]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [18:41:21]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [18:41:21]line ФМ: 0000000000874915 [18:41:21]line ФД: 70703 [18:41:21]line ФПД: 22798738783031 [18:41:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T184120&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70703&fm=22798738783031&tin=02508201610067®Number=0000000000090913&sum=30050 [18:41:21]written 0, free lines is 4095 [18:41:21]OFD Sender: Processing packet 70703 [packets to send 67, broken 66] [18:41:21]ProducePacketName [18:41:21]name=ofd_packets/00070703 [18:41:21]OFD Sender: To server: ‡•öpG, [18:41:21]CommunicateWithHost lk.salyk.kg:30040 [18:41:21]ConnectInit lk.salyk.kg [18:41:21]Connected sock=10 [18:41: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 39 31 35 0F 01 00 00 7D 6F 07 01 71 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 D0 A8 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 2F 14 01 00 35 04 06 00 14 BC 3E B9 FB 37 B7 D8 4F 86 CA CF DA 51 [18:41:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 56 D1 47 00 81 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 39 31 35 10 04 04 00 2F 14 01 00 F4 03 04 00 BA 4F BB 66 B6 04 01 00 00 4A E2 88 05 4D 1F B8 7B [18:41:21]CommunicateWithHost err = 0 [18:41:21]CheckOFDResponse [18:41:21]1017 (14) - 77093643461234 [18:41:21]1041 (16) - 0000000000874915 [18:41:21]1040 (4) - 70703 [18:41:21]1012 (4) - 13.08.2024 12:21 [18:41:21]1206 (1) - 0 [18:41:21]OFD Sender: Remove packet 70703 [18:41:21]ProducePacketName [18:41:21]name=ofd_packets/00070703 [18:41:21]NVStorageDeleteData [18:41:21]Write to MH i2c: 01 00 00 13 04 17 [18:41:21]Write i2c OK [18:41:21]MH_I2C_Read... [18:41:21]Read from MH i2c: 01 [18:41:21]MH_I2C_Read... [18:41:21]Read from MH i2c: 01 07 00 [18:41:21]MH_I2C_Read... [18:41:21]Read from MH i2c: 01 07 00 13 04 00 00 00 00 00 F6 0C 20 [18:41:21]RasterBufferAndPrint [18:41:21]line [18:41:21]line [18:41:21]line [18:41:21]line [18:41:21]line [18:41:21]written 0, free lines is 3324 [18:41:21]MH_Cut [18:41:21]Write to MH i2c: D1 01 00 1A 04 01 F0 [18:41:21]Write i2c OK [18:41:21]MH_I2C_Read... [18:41:21]Read from MH i2c: D1 [18:41:21]MH_I2C_Read... [18:41:21]Read from MH i2c: D1 01 00 [18:41:21]MH_I2C_Read... [18:41:21]Read from MH i2c: D1 01 00 1A 04 00 EF [18:41:21]Write to MH i2c: 01 00 00 1B 04 1F [18:41:21]Write i2c OK [18:41:21]MH_I2C_Read... [18:41:21]OFD Sender: No OFD packet to send [18:41:22]*** Cut start [18:41:22]*** Purtial cut [18:41:22]*** Stage 1: CUTSNS_PIN = 1 [18:41:22]Read from MH i2c: 01 [18:41:22]MH_I2C_Read... [18:41:22]*** Stop cut motor [18:41:22]*** Cut end [18:41:22]Read from MH i2c: 01 07 00 [18:41:22]MH_I2C_Read... [18:41:22]Read from MH i2c: 01 07 00 1B 04 00 00 00 00 00 FF 0F 34 [18:41:22]process_action close_receipt done [18:41:22]requested_data is exist [18:41:22]produce_requested_data [18:41:22]requested_item fm.sn is exist - process it [18:41:22]wFMCommunicate request_size=4 [18:41:22]MH_SAM_APDU [18:41:22]CAPDU: 80 11 00 00 [18:41:22]Write to MH i2c: E2 08 00 1C 04 80 11 00 00 00 00 00 00 9A [18:41:22]Write i2c OK [18:41:22]MH_I2C_Read... [18:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:22]Read from MH i2c: E2 [18:41:22]MH_I2C_Read... [18:41:22]Read from MH i2c: E2 17 00 [18:41:22]MH_I2C_Read... [18:41:22]Read from MH i2c: E2 17 00 1C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 EF [18:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [18:41:22]wFMCommunicate OK [18:41:22]requested_item fd.num is exist - process it [18:41:22]SAM_PROTO_GetFieldsCounters [18:41:22]wFMCommunicate request_size=4 [18:41:22]MH_SAM_APDU [18:41:22]CAPDU: 80 13 00 00 [18:41:22]Write to MH i2c: E2 08 00 1D 04 80 13 00 00 00 00 00 00 9D [18:41:22]Write i2c OK [18:41:22]MH_I2C_Read... [18:41:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:22]Read from MH i2c: E2 [18:41:22]MH_I2C_Read... [18:41:22]Read from MH i2c: E2 62 00 [18:41:22]MH_I2C_Read... [18:41:22]Read from MH i2c: E2 62 00 1D 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 2F 14 01 00 0E 04 04 00 D2 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 7F [18:41: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 2F 14 01 00 0E 04 04 00 D2 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 [18:41:22]wFMCommunicate OK [18:41:22]SAM_PROTO_GetFieldsCounters done [18:41:22]requested_item shift.num is exist - process it [18:41:22]requested_item shift.opened is exist - process it [18:41:22]req_shift_opened [18:41:22]FM_GetShiftState [18:41:22]SAM_PROTO_GetShiftState [18:41:22]wFMCommunicate request_size=4 [18:41:22]MH_SAM_APDU [18:41:22]CAPDU: 80 13 01 00 [18:41:22]Write to MH i2c: E2 08 00 1E 04 80 13 01 00 00 00 00 00 9F [18:41:22]Write i2c OK [18:41:22]MH_I2C_Read... [18:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:22]Read from MH i2c: E2 [18:41:22]MH_I2C_Read... [18:41:22]Read from MH i2c: E2 0E 00 [18:41:22]MH_I2C_Read... [18:41:22]Read from MH i2c: E2 0E 00 1E 04 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 0E [18:41:22]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [18:41:22]wFMCommunicate OK [18:41:22]SAM_PROTO_GetShiftState done [18:41:22]FM_GetShiftState done [18:41:22]req_shift_opened done [18:41:22]requested_item shift.open_date is exist - process it [18:41:22]req_shift_open_date [18:41:22]req_shift_open_date done [18:41:22]produce_requested_data done [18:41:22]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70703,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [18:41:22]process_action_free close_receipt [18:41:22]json_value_free [18:41:22]json_value_free done [18:41:22]process_json_proto returns [18:41:22]Send response to host [18:41:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70703,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [18:41:22]free response buf [18:41:22]execute_script done [18:41:22]execute_script returns [18:41:22]free content buf [18:41:22]Sock 9.Close socket [18:41:22]Sock 9.Thread stoped [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:47]OFD Sender: No OFD packet to send [18:48:52]OFD Sender: No OFD packet to send [18:48:57]OFD Sender: No OFD packet to send [18:49:02]OFD Sender: No OFD packet to send [18:49:07]OFD Sender: No OFD packet to send [18:49:12]OFD Sender: No OFD packet to send [18:49:17]OFD Sender: No OFD packet to send [18:49:22]OFD Sender: No OFD packet to send [18:49:27]OFD Sender: No OFD packet to send [18:49:32]OFD Sender: No OFD packet to send [18:49:37]OFD Sender: No OFD packet to send [18:49:42]OFD Sender: No OFD packet to send [18:49:47]OFD Sender: No OFD packet to send [18:49:52]OFD Sender: No OFD packet to send [18:49:57]OFD Sender: No OFD packet to send [18:50:02]OFD Sender: No OFD packet to send [18:50:07]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:22]OFD Sender: No OFD packet to send [18:54:27]OFD Sender: No OFD packet to send [18:54:32]OFD Sender: No OFD packet to send [18:54:37]OFD Sender: No OFD packet to send [18:54:42]OFD Sender: No OFD packet to send [18:54:47]OFD Sender: No OFD packet to send [18:54:52]OFD Sender: No OFD packet to send [18:54:57]OFD Sender: No OFD packet to send [18:55:02]OFD Sender: No OFD packet to send [18:55:07]OFD Sender: No OFD packet to send [18:55:12]OFD Sender: No OFD packet to send [18:55:17]OFD Sender: No OFD packet to send [18:55:22]OFD Sender: No OFD packet to send [18:55:27]OFD Sender: No OFD packet to send [18:55:32]OFD Sender: No OFD packet to send [18:55:37]OFD Sender: No OFD packet to send [18:55:42]OFD Sender: No OFD packet to send [18:55:47]OFD Sender: No OFD packet to send [18:55:52]OFD Sender: No OFD packet to send [18:55:57]OFD Sender: No OFD packet to send [18:56:02]OFD Sender: No OFD packet to send [18:56:07]OFD Sender: No OFD packet to send [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:22]OFD Sender: No OFD packet to send [18:56:27]OFD Sender: No OFD packet to send [18:56:32]OFD Sender: No OFD packet to send [18:56:37]OFD Sender: No OFD packet to send [18:56:42]OFD Sender: No OFD packet to send [18:56:47]OFD Sender: No OFD packet to send [18:56:52]OFD Sender: No OFD packet to send [18:56:57]OFD Sender: No OFD packet to send [18:57:02]OFD Sender: No OFD packet to send [18:57:07]OFD Sender: No OFD packet to send [18:57:12]OFD Sender: No OFD packet to send [18:57:17]OFD Sender: No OFD packet to send [18:57:22]OFD Sender: No OFD packet to send [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:23]OFD Sender: No OFD packet to send [19:03:28]OFD Sender: No OFD packet to send [19:03:33]OFD Sender: No OFD packet to send [19:03:38]OFD Sender: No OFD packet to send [19:03:43]OFD Sender: No OFD packet to send [19:03:48]OFD Sender: No OFD packet to send [19:03:53]OFD Sender: No OFD packet to send [19:03:58]OFD Sender: No OFD packet to send [19:04:03]OFD Sender: No OFD packet to send [19:04:08]OFD Sender: No OFD packet to send [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]OFD Sender: No OFD packet to send [19:04:28]OFD Sender: No OFD packet to send [19:04:33]OFD Sender: No OFD packet to send [19:04:38]OFD Sender: No OFD packet to send [19:04:43]OFD Sender: No OFD packet to send [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:03]OFD Sender: No OFD packet to send [19:05:08]OFD Sender: No OFD packet to send [19:05:13]OFD Sender: No OFD packet to send [19:05:18]OFD Sender: No OFD packet to send [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:33]OFD Sender: No OFD packet to send [19:05:38]OFD Sender: No OFD packet to send [19:05:43]OFD Sender: No OFD packet to send [19:05:48]OFD Sender: No OFD packet to send [19:05:53]OFD Sender: No OFD packet to send [19:05:58]OFD Sender: No OFD packet to send [19:06:03]OFD Sender: No OFD packet to send [19:06:08]OFD Sender: No OFD packet to send [19:06:13]OFD Sender: No OFD packet to send [19:06:18]OFD Sender: No OFD packet to send [19:06:23]OFD Sender: No OFD packet to send [19:06:28]OFD Sender: No OFD packet to send [19:06:33]OFD Sender: No OFD packet to send [19:06:38]OFD Sender: No OFD packet to send [19:06:43]OFD Sender: No OFD packet to send [19:06:48]OFD Sender: No OFD packet to send [19:06:53]OFD Sender: No OFD packet to send [19:06:58]OFD Sender: No OFD packet to send [19:07:03]OFD Sender: No OFD packet to send [19:07:08]OFD Sender: No OFD packet to send [19:07:13]OFD Sender: No OFD packet to send [19:07:18]OFD Sender: No OFD packet to send [19:07:23]OFD Sender: No OFD packet to send [19:07:28]OFD Sender: No OFD packet to send [19:07:33]OFD Sender: No OFD packet to send [19:07:38]OFD Sender: No OFD packet to send [19:07:43]OFD Sender: No OFD packet to send [19:07:48]OFD Sender: No OFD packet to send [19:07:53]OFD Sender: No OFD packet to send [19:07:58]OFD Sender: No OFD packet to send [19:08:03]OFD Sender: No OFD packet to send [19:08:08]OFD Sender: No OFD packet to send [19:08:13]OFD Sender: No OFD packet to send [19:08:18]OFD Sender: No OFD packet to send [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:33]OFD Sender: No OFD packet to send [19:08:38]OFD Sender: No OFD packet to send [19:08:43]OFD Sender: No OFD packet to send [19:08:48]OFD Sender: No OFD packet to send [19:08:53]OFD Sender: No OFD packet to send [19:08:58]OFD Sender: No OFD packet to send [19:09:03]OFD Sender: No OFD packet to send [19:09:08]OFD Sender: No OFD packet to send [19:09:13]OFD Sender: No OFD packet to send [19:09:18]OFD Sender: No OFD packet to send [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:11]accept exits with 7 [19:10:11]New connection [19:10:11]New thread 3067305316 created [19:10:11]Thread 3067448676 joined [19:10:11]Waiting for new connection... [19:10:11] Sock 7.Parse request [19:10:11]Sock 7.Check first char [19:10:11]Sock 7.First char is OK [19:10:11]request: POST /json_proto HTTP/1.0 [19:10:11]Method: POST [19:10:11]URL: /json_proto [19:10:11]Method is POST - this is cgi request [19:10:11]url: /json_proto [19:10:11]query_string will be loaded in cgi processing [19:10:11]execute_cgi json_proto POST (null) [19:10:11]execute_cgi path=json_proto method=POST [19:10:11]POST find Content-Length [19:10:11]Host: 172.17.58.67:8080 [19:10:11]Content-Length: 805 [19:10:11]Content-Type: application/json [19:10:11] [19:10:11]POST finish read [19:10:11]Found Content-Length = 805 [19:10:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 2.580, "sum" : 170.02, "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" : 170.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:11]execute_script... [19:10: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)141165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 2.580, "sum" : 170.02, "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" : 170.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:11]POST & json_proto [19:10:11]process_json_proto [19:10:11]json parsed OK: [19:10:11]protocol is kg_v1.0 [19:10:11]action value=close_receipt [19:10:11]process_action close_receipt [19:10:11]cmd_close_receipt [19:10:11]MH_GetDate [19:10:11]Write to MH i2c: F0 00 00 1F 04 12 [19:10:11]Write i2c OK [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: F0 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: F0 09 00 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: F0 09 00 1F 04 00 94 AF BB 66 94 51 63 64 2B [19:10:11]GetLastDocTimeStamp 1723574480 [19:10:11]current date 1723576212 [19:10:11]FM_GetShiftState [19:10:11]SAM_PROTO_GetShiftState [19:10:11]wFMCommunicate request_size=4 [19:10:11]MH_SAM_APDU [19:10:11]CAPDU: 80 13 01 00 [19:10:11]Write to MH i2c: E2 08 00 20 04 80 13 01 00 00 00 00 00 A1 [19:10:11]Write i2c OK [19:10:11]MH_I2C_Read... [19:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:11]Read from MH i2c: E2 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: E2 0E 00 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: E2 0E 00 20 04 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 10 [19:10:11]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [19:10:11]wFMCommunicate OK [19:10:11]SAM_PROTO_GetShiftState done [19:10:11]FM_GetShiftState done [19:10:11]opened in 1723509656 [19:10:11]opened+sec_in_day 1723596056 [19:10:11]quantity*price = 17002 [19:10:11]sum+1 = 17003 [19:10:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.02 ÐСП 1% : 1.50 ÐДС 12% : 18.05 Ðаличными: 0.00 Безнал.: 170.02 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 58 13.08.2024 19:10 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70704 ФПД: 53954743167251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T191012&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70704&fm=53954743167251&tin=02508201610067®Number=0000000000090913&sum=17002 [19:10:13]StoreToDocumentArchive [19:10:13]shift 466 fd 70704 [19:10:13]save to /storage/0466/doc_00070704 [19:10:13]save last doc name /storage/0466/doc_00070704 to /storage/kkm_last_doc_name [19:10:13]save OK [19:10:13]Clear old archive folders... [19:10:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:13]tlvbuf is 006EFF00 [19:10:13]SAM_PROTO_ClearQueue [19:10:13]wFMCommunicate request_size=4 [19:10:13]MH_SAM_APDU [19:10:13]CAPDU: 80 09 00 00 [19:10:13]Write to MH i2c: E2 08 00 2D 04 80 09 00 00 00 00 00 00 A3 [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:13]Read from MH i2c: E2 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 03 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [19:10:13]RAPDU: 90 00 [19:10:13]wFMCommunicate OK [19:10:13]SAM_PROTO_ClearQueue done [19:10:13]KKMCreateOFDPacket [19:10:13]OFDProtocolAddRootSTLVToBuf [19:10:13]FM_MakeSignedData [19:10:13]FM_MakeSignedData [19:10:13]SAM_PROTO_SignData [19:10:13]wFMCommunicate request_size=4 [19:10:13]MH_SAM_APDU [19:10:13]CAPDU: 80 0D 01 02 [19:10:13]Write to MH i2c: E2 08 00 2E 04 80 0D 01 02 00 00 00 00 AB [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:13]Read from MH i2c: E2 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 03 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [19:10:13]RAPDU: 90 00 [19:10:13]wFMCommunicate OK [19:10:13]wFMCommunicate request_size=255 [19:10:13]MH_SAM_APDU [19:10:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 0A 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6A 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 94 AF BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 30 14 01 00 35 04 06 00 31 [19:10:13]Write to MH i2c: E2 02 01 2F 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 14 0A 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6A 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 94 AF BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 30 14 01 00 35 04 06 00 31 00 00 3E [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:13]Read from MH i2c: E2 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 03 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [19:10:13]RAPDU: 90 00 [19:10:13]wFMCommunicate OK [19:10:13]wFMCommunicate request_size=10 [19:10:13]MH_SAM_APDU [19:10:13]CAPDU: 80 0D 02 02 05 12 51 4C E9 13 [19:10:13]Write to MH i2c: E2 0D 00 30 04 80 0D 02 02 05 00 12 51 4C E9 13 00 00 63 [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:13]Read from MH i2c: E2 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 03 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 03 00 30 04 00 90 00 A8 [19:10:13]RAPDU: 90 00 [19:10:13]wFMCommunicate OK [19:10:13]wFMCommunicate request_size=4 [19:10:13]MH_SAM_APDU [19:10:13]CAPDU: 80 0D 03 02 [19:10:13]Write to MH i2c: E2 08 00 31 04 80 0D 03 02 00 00 00 00 B0 [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:13]Read from MH i2c: E2 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 0B 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 0B 00 31 04 00 8E 3A 80 C6 9B A9 EE 46 90 00 37 [19:10:13]RAPDU: 8E 3A 80 C6 9B A9 EE 46 90 00 [19:10:13]wFMCommunicate OK [19:10:13]SAM_PROTO_SignData done [19:10:13]FM_MakeSignedData done [19:10:13]CreateOFDProtocolMessage [19:10:13]wFMCommunicate request_size=4 [19:10:13]MH_SAM_APDU [19:10:13]CAPDU: 80 11 00 00 [19:10:13]Write to MH i2c: E2 08 00 32 04 80 11 00 00 00 00 00 00 B0 [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:13]Read from MH i2c: E2 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 17 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 17 00 32 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 05 [19:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:10:13]wFMCommunicate OK [19:10:13]CreateOFDProtocolMessage done [19:10:13]OFDSenderStorePacket 70704 [19:10:13]StoreOFDPacket docnum=70704 [19:10:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 23 FD 07 01 30 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 0A 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6A 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 94 AF BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 30 14 01 00 35 04 06 00 31 12 51 4C E9 13 8E 3A 80 C6 9B A9 EE 46 [19:10:13]CheckFolder [19:10:13]dirname=/storage/ofd_packets [19:10:13]CheckFolder done [19:10:13]ProducePacketName [19:10:13]name=ofd_packets/00070704 [19:10:13]NVStorageSaveData ofd_packets/00070704 [19:10:13]File name is /storage/ofd_packets/00070704 [19:10:13]Write 301 bytes [19:10:13]NVStorageSaveData done [19:10:13]OFDSenderStorePacket done [19:10:13]KKMCreateOFDPacket done [19:10:13]NVStorageSaveData kkm_last_timestamp [19:10:13]File name is /storage/kkm_last_timestamp [19:10:13]Write 4 bytes [19:10:13]NVStorageSaveData done [19:10:13]ExternCall_PrintAddStr [19:10:13]wPrintStart [19:10:13]Write to MH i2c: 01 00 00 33 04 37 [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: 01 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: 01 07 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: 01 07 00 33 04 00 00 00 00 00 FF 0F 4C [19:10:13]RasterBufferAndPrint [19:10:13]line Счет N : (1)141165 [19:10:13]line ИÐÐ: 02508201610067 [19:10:13]line Контрольно-КаÑÑовый Чек [19:10:13]line ПРОДÐЖР[19:10:13]line ТРК (МРК, ГÐК) : 41 [19:10:13]line Товар: 2710124130 [19:10:13]line Ðи-92-К-5 [19:10:13]line 2.580 * 65.90 [19:10:13]line = 170.02 [19:10:13]line ÐДС 12% ÐСП 1% [19:10:13]line > о реализуемом товаре [19:10:13]line ИТОГО: 170.02 [19:10:13]line ÐСП 1% : 1.50 [19:10:13]line ÐДС 12% : 18.05 [19:10:13]line Ðаличными: 0.00 [19:10:13]line Безнал.: 170.02 [19:10:13]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [19:10:13]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [19:10:13]line СÐО: Общий режим [19:10:13]line Чек 58 13.08.2024 19:10 [19:10:13]line Смена: 466 ФФД: 1.0 [19:10:13]line ЗÐМ: 0300000140 [19:10:13]line РÐМ: 0000000000090913 [19:10:13]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [19:10:13]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [19:10:13]line ФМ: 0000000000874915 [19:10:13]line ФД: 70704 [19:10:13]line ФПД: 53954743167251 [19:10:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T191012&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70704&fm=53954743167251&tin=02508201610067®Number=0000000000090913&sum=17002 [19:10:13]written 0, free lines is 4095 [19:10:13]OFD Sender: Processing packet 70704 [packets to send 67, broken 66] [19:10:13]ProducePacketName [19:10:13]name=ofd_packets/00070704 [19:10:13]OFD Sender: To server: ‡•öpG, [19:10:13]CommunicateWithHost lk.salyk.kg:30040 [19:10:13]ConnectInit lk.salyk.kg [19:10:14]Write to MH i2c: 01 00 00 5D 04 61 [19:10:14]Write i2c OK [19:10:14]MH_I2C_Read... [19:10:14]Read from MH i2c: 01 [19:10:14]MH_I2C_Read... [19:10:14]Read from MH i2c: 01 07 00 [19:10:14]MH_I2C_Read... [19:10:14]Read from MH i2c: 01 07 00 5D 04 00 00 00 00 00 EE 0C 62 [19:10:14]RasterBufferAndPrint [19:10:14]line [19:10:14]line [19:10:14]line [19:10:14]line [19:10:14]line [19:10:14]written 0, free lines is 3316 [19:10:14]MH_Cut [19:10:14]Write to MH i2c: D1 01 00 64 04 01 3A [19:10:14]Write i2c OK [19:10:14]MH_I2C_Read... [19:10:14]Read from MH i2c: D1 [19:10:14]MH_I2C_Read... [19:10:14]Read from MH i2c: D1 01 00 [19:10:14]MH_I2C_Read... [19:10:14]Read from MH i2c: D1 01 00 64 04 00 39 [19:10:14]Write to MH i2c: 01 00 00 65 04 69 [19:10:14]Write i2c OK [19:10:14]MH_I2C_Read... [19:10:14]Connected sock=10 [19:10: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 39 31 35 0F 01 00 00 23 FD 07 01 30 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 0A 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6A 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 94 AF BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 30 14 01 00 35 04 06 00 31 12 51 4C E9 13 8E 3A 80 C6 9B A9 EE 46 [19:10:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 06 47 47 00 EB 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 39 31 35 10 04 04 00 30 14 01 00 F4 03 04 00 7F 56 BB 66 B6 04 01 00 00 65 1B D1 A1 E2 75 FF B8 [19:10:14]CommunicateWithHost err = 0 [19:10:14]CheckOFDResponse [19:10:14]1017 (14) - 77093643461234 [19:10:14]1041 (16) - 0000000000874915 [19:10:14]1040 (4) - 70704 [19:10:14]1012 (4) - 13.08.2024 12:50 [19:10:14]1206 (1) - 0 [19:10:14]OFD Sender: Remove packet 70704 [19:10:14]ProducePacketName [19:10:14]name=ofd_packets/00070704 [19:10:14]NVStorageDeleteData [19:10:14]*** Cut start [19:10:14]*** Purtial cut [19:10:14]*** CUTSNS_PIN = 0 [19:10:14]OFD Sender: No OFD packet to send [19:10:14]*** Stage 1: CUTSNS_PIN = 1 [19:10:16]Read from MH i2c: 01 [19:10:16]MH_I2C_Read... [19:10:16]*** Stop cut motor [19:10:16]*** Cut end [19:10:16]Read from MH i2c: 01 07 00 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: 01 07 00 65 04 00 00 00 00 00 FF 0F 7E [19:10:16]process_action close_receipt done [19:10:16]requested_data is exist [19:10:16]produce_requested_data [19:10:16]requested_item fm.sn is exist - process it [19:10:16]wFMCommunicate request_size=4 [19:10:16]MH_SAM_APDU [19:10:16]CAPDU: 80 11 00 00 [19:10:16]Write to MH i2c: E2 08 00 66 04 80 11 00 00 00 00 00 00 E4 [19:10:16]Write i2c OK [19:10:16]MH_I2C_Read... [19:10:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:16]Read from MH i2c: E2 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: E2 17 00 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: E2 17 00 66 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 39 [19:10:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:10:16]wFMCommunicate OK [19:10:16]requested_item fd.num is exist - process it [19:10:16]SAM_PROTO_GetFieldsCounters [19:10:16]wFMCommunicate request_size=4 [19:10:16]MH_SAM_APDU [19:10:16]CAPDU: 80 13 00 00 [19:10:16]Write to MH i2c: E2 08 00 67 04 80 13 00 00 00 00 00 00 E7 [19:10:16]Write i2c OK [19:10:16]MH_I2C_Read... [19:10:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:16]Read from MH i2c: E2 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: E2 62 00 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: E2 62 00 67 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 30 14 01 00 0E 04 04 00 D2 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 CD [19:10: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 30 14 01 00 0E 04 04 00 D2 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 [19:10:16]wFMCommunicate OK [19:10:16]SAM_PROTO_GetFieldsCounters done [19:10:16]requested_item shift.num is exist - process it [19:10:16]requested_item shift.opened is exist - process it [19:10:16]req_shift_opened [19:10:16]FM_GetShiftState [19:10:16]SAM_PROTO_GetShiftState [19:10:16]wFMCommunicate request_size=4 [19:10:16]MH_SAM_APDU [19:10:16]CAPDU: 80 13 01 00 [19:10:16]Write to MH i2c: E2 08 00 68 04 80 13 01 00 00 00 00 00 E9 [19:10:16]Write i2c OK [19:10:16]MH_I2C_Read... [19:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:17]Read from MH i2c: E2 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: E2 0E 00 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: E2 0E 00 68 04 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 58 [19:10:17]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [19:10:17]wFMCommunicate OK [19:10:17]SAM_PROTO_GetShiftState done [19:10:17]FM_GetShiftState done [19:10:17]req_shift_opened done [19:10:17]requested_item shift.open_date is exist - process it [19:10:17]req_shift_open_date [19:10:17]req_shift_open_date done [19:10:17]produce_requested_data done [19:10:17]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70704,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [19:10:17]process_action_free close_receipt [19:10:17]json_value_free [19:10:17]json_value_free done [19:10:17]process_json_proto returns [19:10:17]Send response to host [19:10:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70704,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [19:10:17]free response buf [19:10:17]execute_script done [19:10:17]execute_script returns [19:10:17]free content buf [19:10:17]Sock 7.Close socket [19:10:17]Sock 7.Thread stoped [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:19]OFD Sender: No OFD packet to send [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:20]OFD Sender: No OFD packet to send [19:14:22]accept exits with 9 [19:14:22]New connection [19:14:22]New thread 3067448676 created [19:14:22]Thread 3067305316 joined [19:14:22]Waiting for new connection... [19:14:22] Sock 9.Parse request [19:14:22]Sock 9.Check first char [19:14:22]Sock 9.First char is OK [19:14:22]request: POST /json_proto HTTP/1.0 [19:14:22]Method: POST [19:14:22]URL: /json_proto [19:14:22]Method is POST - this is cgi request [19:14:22]url: /json_proto [19:14:22]query_string will be loaded in cgi processing [19:14:22]execute_cgi json_proto POST (null) [19:14:22]execute_cgi path=json_proto method=POST [19:14:22]POST find Content-Length [19:14:22]Host: 172.17.58.67:8080 [19:14:22]Content-Length: 805 [19:14:22]Content-Type: application/json [19:14:22] [19:14:22]POST finish read [19:14:22]Found Content-Length = 805 [19:14:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "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.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:22]execute_script... [19:14:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "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.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:22]POST & json_proto [19:14:22]process_json_proto [19:14:22]json parsed OK: [19:14:22]protocol is kg_v1.0 [19:14:22]action value=close_receipt [19:14:22]process_action close_receipt [19:14:22]cmd_close_receipt [19:14:22]MH_GetDate [19:14:22]Write to MH i2c: F0 00 00 69 04 5C [19:14:22]Write i2c OK [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: F0 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: F0 09 00 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: F0 09 00 69 04 00 8F B0 BB 66 94 51 63 64 71 [19:14:22]GetLastDocTimeStamp 1723576212 [19:14:22]current date 1723576463 [19:14:22]FM_GetShiftState [19:14:22]SAM_PROTO_GetShiftState [19:14:22]wFMCommunicate request_size=4 [19:14:22]MH_SAM_APDU [19:14:22]CAPDU: 80 13 01 00 [19:14:22]Write to MH i2c: E2 08 00 6A 04 80 13 01 00 00 00 00 00 EB [19:14:22]Write i2c OK [19:14:22]MH_I2C_Read... [19:14:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:22]Read from MH i2c: E2 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: E2 0E 00 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: E2 0E 00 6A 04 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 5A [19:14:22]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [19:14:22]wFMCommunicate OK [19:14:22]SAM_PROTO_GetShiftState done [19:14:22]FM_GetShiftState done [19:14:22]opened in 1723509656 [19:14:22]opened+sec_in_day 1723596056 [19:14:22]quantity*price = 100068 [19:14:22]sum+1 = 100069 [19:14:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.68 ÐСП 1% : 8.86 ÐДС 12% : 106.27 Ðаличными: 0.00 Безнал.: 1000.68 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 59 13.08.2024 19:14 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70705 ФПД: 110643187521979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T191423&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70705&fm=110643187521979&tin=02508201610067®Number=0000000000090913&sum=100068 [19:14:23]StoreToDocumentArchive [19:14:23]shift 466 fd 70705 [19:14:23]save to /storage/0466/doc_00070705 [19:14:23]save last doc name /storage/0466/doc_00070705 to /storage/kkm_last_doc_name [19:14:23]save OK [19:14:23]Clear old archive folders... [19:14:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:14:23]tlvbuf is 006EFDD0 [19:14:23]SAM_PROTO_ClearQueue [19:14:23]wFMCommunicate request_size=4 [19:14:23]MH_SAM_APDU [19:14:23]CAPDU: 80 09 00 00 [19:14:23]Write to MH i2c: E2 08 00 77 04 80 09 00 00 00 00 00 00 ED [19:14:23]Write i2c OK [19:14:23]MH_I2C_Read... [19:14:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:23]Read from MH i2c: E2 [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: E2 03 00 [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [19:14:23]RAPDU: 90 00 [19:14:23]wFMCommunicate OK [19:14:23]SAM_PROTO_ClearQueue done [19:14:23]KKMCreateOFDPacket [19:14:23]OFDProtocolAddRootSTLVToBuf [19:14:23]FM_MakeSignedData [19:14:23]FM_MakeSignedData [19:14:23]SAM_PROTO_SignData [19:14:23]wFMCommunicate request_size=4 [19:14:23]MH_SAM_APDU [19:14:23]CAPDU: 80 0D 01 02 [19:14:23]Write to MH i2c: E2 08 00 78 04 80 0D 01 02 00 00 00 00 F5 [19:14:23]Write i2c OK [19:14:23]MH_I2C_Read... [19:14:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:23]Read from MH i2c: E2 [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: E2 03 00 [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [19:14:23]RAPDU: 90 00 [19:14:23]wFMCommunicate OK [19:14:23]wFMCommunicate request_size=255 [19:14:23]MH_SAM_APDU [19:14: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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 8F B0 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 31 14 01 00 35 04 06 00 64 A1 1F E3 [19:14:23]Write to MH i2c: E2 02 01 79 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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 8F B0 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 31 14 01 00 35 04 06 00 64 A1 1F E3 00 00 5D [19:14:23]Write i2c OK [19:14:23]MH_I2C_Read... [19:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:23]Read from MH i2c: E2 [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: E2 03 00 [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: E2 03 00 79 04 00 90 00 F1 [19:14:23]RAPDU: 90 00 [19:14:23]wFMCommunicate OK [19:14:23]wFMCommunicate request_size=7 [19:14:23]MH_SAM_APDU [19:14:23]CAPDU: 80 0D 02 02 02 99 BB [19:14:23]Write to MH i2c: E2 0A 00 7A 04 80 0D 02 02 02 00 99 BB 00 00 50 [19:14:23]Write i2c OK [19:14:23]MH_I2C_Read... [19:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:23]Read from MH i2c: E2 [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: E2 03 00 [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: E2 03 00 7A 04 00 90 00 F2 [19:14:23]RAPDU: 90 00 [19:14:23]wFMCommunicate OK [19:14:23]wFMCommunicate request_size=4 [19:14:23]MH_SAM_APDU [19:14:23]CAPDU: 80 0D 03 02 [19:14:23]Write to MH i2c: E2 08 00 7B 04 80 0D 03 02 00 00 00 00 FA [19:14:23]Write i2c OK [19:14:23]MH_I2C_Read... [19:14:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:23]Read from MH i2c: E2 [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: E2 0B 00 [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: E2 0B 00 7B 04 00 D5 F3 51 89 FB 3A F7 73 90 00 3C [19:14:23]RAPDU: D5 F3 51 89 FB 3A F7 73 90 00 [19:14:23]wFMCommunicate OK [19:14:23]SAM_PROTO_SignData done [19:14:23]FM_MakeSignedData done [19:14:23]CreateOFDProtocolMessage [19:14:23]wFMCommunicate request_size=4 [19:14:23]MH_SAM_APDU [19:14:23]CAPDU: 80 11 00 00 [19:14:23]Write to MH i2c: E2 08 00 7C 04 80 11 00 00 00 00 00 00 FA [19:14:23]Write i2c OK [19:14:23]MH_I2C_Read... [19:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:23]Read from MH i2c: E2 [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: E2 17 00 [19:14:23]MH_I2C_Read... [19:14:23]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 39 31 35 90 00 4F [19:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:14:23]wFMCommunicate OK [19:14:23]CreateOFDProtocolMessage done [19:14:23]OFDSenderStorePacket 70705 [19:14:23]StoreOFDPacket docnum=70705 [19:14:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 55 33 04 01 E2 20 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 8F B0 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 31 14 01 00 35 04 06 00 64 A1 1F E3 99 BB D5 F3 51 89 FB 3A F7 73 [19:14:23]CheckFolder [19:14:23]dirname=/storage/ofd_packets [19:14:23]CheckFolder done [19:14:23]ProducePacketName [19:14:23]name=ofd_packets/00070705 [19:14:23]NVStorageSaveData ofd_packets/00070705 [19:14:23]File name is /storage/ofd_packets/00070705 [19:14:23]Write 298 bytes [19:14:23]NVStorageSaveData done [19:14:23]OFDSenderStorePacket done [19:14:23]KKMCreateOFDPacket done [19:14:23]NVStorageSaveData kkm_last_timestamp [19:14:23]File name is /storage/kkm_last_timestamp [19:14:23]Write 4 bytes [19:14:23]NVStorageSaveData done [19:14:23]ExternCall_PrintAddStr [19:14:23]wPrintStart [19:14:23]Write to MH i2c: 01 00 00 7D 04 81 [19:14:23]Write i2c OK [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: 01 [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: 01 07 00 [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: 01 07 00 7D 04 00 00 00 00 00 FF 0F 96 [19:14:23]RasterBufferAndPrint [19:14:23]line Счет N : (1)141166 [19:14:23]line ИÐÐ: 02508201610067 [19:14:23]line Контрольно-КаÑÑовый Чек [19:14:23]line ПРОДÐЖР[19:14:23]line ТРК (МРК, ГÐК) : 14 [19:14:23]line Товар: 2710194210 [19:14:23]line ДТ-К-5 [19:14:23]line 13.450 * 74.40 [19:14:23]line = 1000.68 [19:14:23]line ÐДС 12% ÐСП 1% [19:14:23]line > о реализуемом товаре [19:14:23]line ИТОГО: 1000.68 [19:14:23]line ÐСП 1% : 8.86 [19:14:23]line ÐДС 12% : 106.27 [19:14:23]line Ðаличными: 0.00 [19:14:23]line Безнал.: 1000.68 [19:14:23]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [19:14:23]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [19:14:23]line СÐО: Общий режим [19:14:23]line Чек 59 13.08.2024 19:14 [19:14:23]line Смена: 466 ФФД: 1.0 [19:14:23]line ЗÐМ: 0300000140 [19:14:23]line РÐМ: 0000000000090913 [19:14:23]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [19:14:23]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [19:14:23]line ФМ: 0000000000874915 [19:14:23]line ФД: 70705 [19:14:23]line ФПД: 110643187521979 [19:14:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T191423&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70705&fm=110643187521979&tin=02508201610067®Number=0000000000090913&sum=100068 [19:14:24]OFD Sender: Processing packet 70705 [packets to send 67, broken 66] [19:14:24]ProducePacketName [19:14:24]name=ofd_packets/00070705 [19:14:24]OFD Sender: To server: ‡•öpG, [19:14:24]CommunicateWithHost lk.salyk.kg:30040 [19:14:24]ConnectInit lk.salyk.kg [19:14:24]written 0, free lines is 4095 [19:14:24]Connected sock=10 [19:14: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 39 31 35 0C 01 00 00 55 33 04 01 E2 20 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 8F B0 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 31 14 01 00 35 04 06 00 64 A1 1F E3 99 BB D5 F3 51 89 FB 3A F7 73 [19:14:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 08 10 47 00 B2 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 31 14 01 00 F4 03 04 00 79 57 BB 66 B6 04 01 00 00 C4 06 65 E0 0F A4 26 97 [19:14:24]CommunicateWithHost err = 0 [19:14:24]CheckOFDResponse [19:14:24]1017 (14) - 77093643461234 [19:14:24]1041 (16) - 0000000000874915 [19:14:24]1040 (4) - 70705 [19:14:24]1012 (4) - 13.08.2024 12:54 [19:14:24]1206 (1) - 0 [19:14:24]OFD Sender: Remove packet 70705 [19:14:24]ProducePacketName [19:14:24]name=ofd_packets/00070705 [19:14:24]NVStorageDeleteData [19:14:24]Write to MH i2c: 01 00 00 A7 04 AB [19:14:24]Write i2c OK [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: 01 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: 01 07 00 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: 01 07 00 A7 04 00 00 00 00 00 02 0D C1 [19:14:24]RasterBufferAndPrint [19:14:24]line [19:14:24]line [19:14:24]line [19:14:24]line [19:14:24]line [19:14:24]written 0, free lines is 3336 [19:14:24]MH_Cut [19:14:24]Write to MH i2c: D1 01 00 AE 04 01 84 [19:14:24]Write i2c OK [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: D1 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: D1 01 00 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: D1 01 00 AE 04 00 83 [19:14:24]Write to MH i2c: 01 00 00 AF 04 B3 [19:14:24]Write i2c OK [19:14:24]MH_I2C_Read... [19:14:24]OFD Sender: No OFD packet to send [19:14:25]*** Cut start [19:14:25]*** Purtial cut [19:14:25]*** Stage 1: CUTSNS_PIN = 1 [19:14:25]Read from MH i2c: 01 [19:14:25]MH_I2C_Read... [19:14:25]*** Stop cut motor [19:14:25]*** Cut end [19:14:25]Read from MH i2c: 01 07 00 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: 01 07 00 AF 04 00 00 00 00 00 FF 0F C8 [19:14:25]process_action close_receipt done [19:14:25]requested_data is exist [19:14:25]produce_requested_data [19:14:25]requested_item fm.sn is exist - process it [19:14:25]wFMCommunicate request_size=4 [19:14:25]MH_SAM_APDU [19:14:25]CAPDU: 80 11 00 00 [19:14:25]Write to MH i2c: E2 08 00 B0 04 80 11 00 00 00 00 00 00 2E [19:14:25]Write i2c OK [19:14:25]MH_I2C_Read... [19:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:25]Read from MH i2c: E2 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: E2 17 00 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: E2 17 00 B0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 83 [19:14:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:14:25]wFMCommunicate OK [19:14:25]requested_item fd.num is exist - process it [19:14:25]SAM_PROTO_GetFieldsCounters [19:14:25]wFMCommunicate request_size=4 [19:14:25]MH_SAM_APDU [19:14:25]CAPDU: 80 13 00 00 [19:14:25]Write to MH i2c: E2 08 00 B1 04 80 13 00 00 00 00 00 00 31 [19:14:25]Write i2c OK [19:14:25]MH_I2C_Read... [19:14:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:25]Read from MH i2c: E2 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: E2 62 00 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: E2 62 00 B1 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 31 14 01 00 0E 04 04 00 D2 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 1B [19:14: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 31 14 01 00 0E 04 04 00 D2 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 [19:14:25]wFMCommunicate OK [19:14:25]SAM_PROTO_GetFieldsCounters done [19:14:25]requested_item shift.num is exist - process it [19:14:25]requested_item shift.opened is exist - process it [19:14:25]req_shift_opened [19:14:25]FM_GetShiftState [19:14:25]SAM_PROTO_GetShiftState [19:14:25]wFMCommunicate request_size=4 [19:14:25]MH_SAM_APDU [19:14:25]CAPDU: 80 13 01 00 [19:14:25]Write to MH i2c: E2 08 00 B2 04 80 13 01 00 00 00 00 00 33 [19:14:25]Write i2c OK [19:14:25]MH_I2C_Read... [19:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:25]Read from MH i2c: E2 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: E2 0E 00 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: E2 0E 00 B2 04 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 A2 [19:14:25]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [19:14:25]wFMCommunicate OK [19:14:25]SAM_PROTO_GetShiftState done [19:14:25]FM_GetShiftState done [19:14:25]req_shift_opened done [19:14:25]requested_item shift.open_date is exist - process it [19:14:25]req_shift_open_date [19:14:25]req_shift_open_date done [19:14:25]produce_requested_data done [19:14:25]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70705,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [19:14:25]process_action_free close_receipt [19:14:25]json_value_free [19:14:25]json_value_free done [19:14:25]process_json_proto returns [19:14:25]Send response to host [19:14:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70705,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [19:14:25]free response buf [19:14:25]execute_script done [19:14:25]execute_script returns [19:14:25]free content buf [19:14:25]Sock 9.Close socket [19:14:25]Sock 9.Thread stoped [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:55]OFD Sender: No OFD packet to send [19:30:00]OFD Sender: No OFD packet to send [19:30:05]OFD Sender: No OFD packet to send [19:30:10]OFD Sender: No OFD packet to send [19:30:12]accept exits with 7 [19:30:12]New connection [19:30:12]New thread 3067305316 created [19:30:12]Thread 3067448676 joined [19:30:12]Waiting for new connection... [19:30:12] Sock 7.Parse request [19:30:12]Sock 7.Check first char [19:30:12]Sock 7.First char is OK [19:30:12]request: POST /json_proto HTTP/1.0 [19:30:12]Method: POST [19:30:12]URL: /json_proto [19:30:12]Method is POST - this is cgi request [19:30:12]url: /json_proto [19:30:12]query_string will be loaded in cgi processing [19:30:12]execute_cgi json_proto POST (null) [19:30:12]execute_cgi path=json_proto method=POST [19:30:12]POST find Content-Length [19:30:12]Host: 172.17.58.67:8080 [19:30:12]Content-Length: 622 [19:30:12]Content-Type: application/json [19:30:12] [19:30:12]POST finish read [19:30:12]Found Content-Length = 622 [19:30:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17481", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:12]execute_script... [19:30:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17481", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:12]POST & json_proto [19:30:12]process_json_proto [19:30:12]json parsed OK: [19:30:12]protocol is kg_v1.0 [19:30:12]action value=close_receipt [19:30:12]process_action close_receipt [19:30:12]cmd_close_receipt [19:30:12]MH_GetDate [19:30:12]Write to MH i2c: F0 00 00 B3 04 A6 [19:30:12]Write i2c OK [19:30:12]MH_I2C_Read... [19:30:12]Read from MH i2c: F0 [19:30:12]MH_I2C_Read... [19:30:12]Read from MH i2c: F0 09 00 [19:30:12]MH_I2C_Read... [19:30:12]Read from MH i2c: F0 09 00 B3 04 00 45 B4 BB 66 94 51 63 64 75 [19:30:12]GetLastDocTimeStamp 1723576463 [19:30:12]current date 1723577413 [19:30:12]FM_GetShiftState [19:30:12]SAM_PROTO_GetShiftState [19:30:12]wFMCommunicate request_size=4 [19:30:12]MH_SAM_APDU [19:30:12]CAPDU: 80 13 01 00 [19:30:12]Write to MH i2c: E2 08 00 B4 04 80 13 01 00 00 00 00 00 35 [19:30:12]Write i2c OK [19:30:12]MH_I2C_Read... [19:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:12]Read from MH i2c: E2 [19:30:12]MH_I2C_Read... [19:30:12]Read from MH i2c: E2 0E 00 [19:30:12]MH_I2C_Read... [19:30:12]Read from MH i2c: E2 0E 00 B4 04 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 A4 [19:30:12]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [19:30:12]wFMCommunicate OK [19:30:12]SAM_PROTO_GetShiftState done [19:30:12]FM_GetShiftState done [19:30:12]opened in 1723509656 [19:30:12]opened+sec_in_day 1723596056 [19:30:12]quantity*price = 26000 [19:30:12]sum+1 = 26001 [19:30:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 ÐСП 1% : 2.30 ÐДС 12% : 27.61 Ðаличными: 260.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 60 13.08.2024 19:30 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70706 ФПД: 1650140479233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T193013&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70706&fm=1650140479233&tin=02508201610067®Number=0000000000090913&sum=26000 0 [19:30:13]StoreToDocumentArchive [19:30:13]shift 466 fd 70706 [19:30:13]save to /storage/0466/doc_00070706 [19:30:13]save last doc name /storage/0466/doc_00070706 to /storage/kkm_last_doc_name [19:30:13]save OK [19:30:13]Clear old archive folders... [19:30:13]ProcessDocumentItem done err = 0, tmpTLVsize=275 [19:30:13]tlvbuf is 00700350 [19:30:13]SAM_PROTO_ClearQueue [19:30:13]wFMCommunicate request_size=4 [19:30:13]MH_SAM_APDU [19:30:13]CAPDU: 80 09 00 00 [19:30:13]Write to MH i2c: E2 08 00 C1 04 80 09 00 00 00 00 00 00 37 [19:30:13]Write i2c OK [19:30:13]MH_I2C_Read... [19:30:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:13]Read from MH i2c: E2 [19:30:13]MH_I2C_Read... [19:30:13]Read from MH i2c: E2 03 00 [19:30:13]MH_I2C_Read... [19:30:13]Read from MH i2c: E2 03 00 C1 04 00 90 00 39 [19:30:13]RAPDU: 90 00 [19:30:13]wFMCommunicate OK [19:30:13]SAM_PROTO_ClearQueue done [19:30:13]KKMCreateOFDPacket [19:30:13]OFDProtocolAddRootSTLVToBuf [19:30:13]FM_MakeSignedData [19:30:13]FM_MakeSignedData [19:30:13]SAM_PROTO_SignData [19:30:13]wFMCommunicate request_size=4 [19:30:13]MH_SAM_APDU [19:30:13]CAPDU: 80 0D 01 02 [19:30:13]Write to MH i2c: E2 08 00 C2 04 80 0D 01 02 00 00 00 00 3F [19:30:13]Write i2c OK [19:30:13]MH_I2C_Read... [19:30:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:13]Read from MH i2c: E2 [19:30:13]MH_I2C_Read... [19:30:13]Read from MH i2c: E2 03 00 [19:30:13]MH_I2C_Read... [19:30:13]Read from MH i2c: E2 03 00 C2 04 00 90 00 3A [19:30:13]RAPDU: 90 00 [19:30:13]wFMCommunicate OK [19:30:13]wFMCommunicate request_size=255 [19:30:13]MH_SAM_APDU [19:30:13]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 45 B4 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 [19:30:13]Write to MH i2c: E2 02 01 C3 04 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 45 B4 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 00 00 E9 [19:30:13]Write i2c OK [19:30:13]MH_I2C_Read... [19:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:14]Read from MH i2c: E2 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: E2 03 00 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: E2 03 00 C3 04 00 90 00 3B [19:30:14]RAPDU: 90 00 [19:30:14]wFMCommunicate OK [19:30:14]wFMCommunicate request_size=34 [19:30:14]MH_SAM_APDU [19:30:14]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 32 14 01 00 35 04 06 00 01 80 34 09 7F 01 [19:30:14]Write to MH i2c: E2 25 00 C4 04 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 32 14 01 00 35 04 06 00 01 80 34 09 7F 01 00 00 8A [19:30:14]Write i2c OK [19:30:14]MH_I2C_Read... [19:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:14]Read from MH i2c: E2 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: E2 03 00 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: E2 03 00 C4 04 00 90 00 3C [19:30:14]RAPDU: 90 00 [19:30:14]wFMCommunicate OK [19:30:14]wFMCommunicate request_size=4 [19:30:14]MH_SAM_APDU [19:30:14]CAPDU: 80 0D 03 02 [19:30:14]Write to MH i2c: E2 08 00 C5 04 80 0D 03 02 00 00 00 00 44 [19:30:14]Write i2c OK [19:30:14]MH_I2C_Read... [19:30:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:14]Read from MH i2c: E2 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: E2 0B 00 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: E2 0B 00 C5 04 00 63 F6 0F 2C 29 F3 13 49 90 00 51 [19:30:14]RAPDU: 63 F6 0F 2C 29 F3 13 49 90 00 [19:30:14]wFMCommunicate OK [19:30:14]SAM_PROTO_SignData done [19:30:14]FM_MakeSignedData done [19:30:14]CreateOFDProtocolMessage [19:30:14]wFMCommunicate request_size=4 [19:30:14]MH_SAM_APDU [19:30:14]CAPDU: 80 11 00 00 [19:30:14]Write to MH i2c: E2 08 00 C6 04 80 11 00 00 00 00 00 00 44 [19:30:14]Write i2c OK [19:30:14]MH_I2C_Read... [19:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:14]Read from MH i2c: E2 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: E2 17 00 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: E2 17 00 C6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 99 [19:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:30:14]wFMCommunicate OK [19:30:14]CreateOFDProtocolMessage done [19:30:14]OFDSenderStorePacket 70706 [19:30:14]StoreOFDPacket docnum=70706 [19:30:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 27 01 00 00 FA 21 1F 01 86 C3 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 45 B4 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 32 14 01 00 35 04 06 00 01 80 34 09 7F 01 63 F6 0F 2C 29 F3 13 49 [19:30:14]CheckFolder [19:30:14]dirname=/storage/ofd_packets [19:30:14]CheckFolder done [19:30:14]ProducePacketName [19:30:14]name=ofd_packets/00070706 [19:30:14]NVStorageSaveData ofd_packets/00070706 [19:30:14]File name is /storage/ofd_packets/00070706 [19:30:14]Write 325 bytes [19:30:14]NVStorageSaveData done [19:30:14]OFDSenderStorePacket done [19:30:14]KKMCreateOFDPacket done [19:30:14]NVStorageSaveData kkm_last_timestamp [19:30:14]File name is /storage/kkm_last_timestamp [19:30:14]Write 4 bytes [19:30:14]NVStorageSaveData done [19:30:14]ExternCall_PrintAddStr [19:30:14]wPrintStart [19:30:14]Write to MH i2c: 01 00 00 C7 04 CB [19:30:14]Write i2c OK [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: 01 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: 01 07 00 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: 01 07 00 C7 04 00 00 00 00 00 FF 0F E0 [19:30:14]RasterBufferAndPrint [19:30:14]line Счет N : (3)17481 [19:30:14]line ИÐÐ: 02508201610067 [19:30:14]line Контрольно-КаÑÑовый Чек [19:30:14]line ПРОДÐЖР[19:30:14]line Товар: 48741415 [19:30:14]line Сигареты LD Super Slims Violet [19:30:14]line 2.000 * 130.00 [19:30:14]line = 260.00 [19:30:14]line ÐДС 12% ÐСП 1% [19:30:14]line > о реализуемом товаре [19:30:14]line ИТОГО: 260.00 [19:30:14]line ÐСП 1% : 2.30 [19:30:14]line ÐДС 12% : 27.61 [19:30:14]line Ðаличными: 260.00 [19:30:14]line Безнал.: 0.00 [19:30:14]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [19:30:14]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [19:30:14]line СÐО: Общий режим [19:30:14]line Чек 60 13.08.2024 19:30 [19:30:14]line Смена: 466 ФФД: 1.0 [19:30:14]line ЗÐМ: 0300000140 [19:30:14]line РÐМ: 0000000000090913 [19:30:14]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [19:30:14]line ФМ: 0000000000874915 [19:30:14]line ФД: 70706 [19:30:14]line ФПД: 1650140479233 [19:30:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T193013&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70706&fm=1650140479233&tin=02508201610067®Number=0000000000090913&sum=26000 [19:30:14]OFD Sender: Processing packet 70706 [packets to send 67, broken 66] [19:30:14]ProducePacketName [19:30:14]name=ofd_packets/00070706 [19:30:14]OFD Sender: To server: ‡•öpG, [19:30:14]CommunicateWithHost lk.salyk.kg:30040 [19:30:14]ConnectInit lk.salyk.kg [19:30:14]line 0 [19:30:14]written 0, free lines is 4095 [19:30:14]Connected sock=10 [19:30: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 39 31 35 27 01 00 00 FA 21 1F 01 86 C3 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 45 B4 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 32 14 01 00 35 04 06 00 01 80 34 09 7F 01 63 F6 0F 2C 29 F3 13 49 [19:30:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 77 36 47 00 4E 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 32 14 01 00 F4 03 04 00 2F 5B BB 66 B6 04 01 00 00 29 0F AF 6F 98 DC 6E 15 [19:30:14]CommunicateWithHost err = 0 [19:30:14]CheckOFDResponse [19:30:14]1017 (14) - 77093643461234 [19:30:14]1041 (16) - 0000000000874915 [19:30:14]1040 (4) - 70706 [19:30:14]1012 (4) - 13.08.2024 13:10 [19:30:14]1206 (1) - 0 [19:30:14]OFD Sender: Remove packet 70706 [19:30:14]ProducePacketName [19:30:14]name=ofd_packets/00070706 [19:30:14]NVStorageDeleteData [19:30:15]Write to MH i2c: 01 00 00 F0 04 F4 [19:30:15]Write i2c OK [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: 01 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: 01 07 00 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: 01 07 00 F0 04 00 00 00 00 00 EB 0C F2 [19:30:15]RasterBufferAndPrint [19:30:15]line [19:30:15]line [19:30:15]line [19:30:15]line [19:30:15]line [19:30:15]written 0, free lines is 3313 [19:30:15]MH_Cut [19:30:15]Write to MH i2c: D1 01 00 F7 04 01 CD [19:30:15]Write i2c OK [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: D1 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: D1 01 00 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: D1 01 00 F7 04 00 CC [19:30:15]Write to MH i2c: 01 00 00 F8 04 FC [19:30:15]Write i2c OK [19:30:15]MH_I2C_Read... [19:30:15]OFD Sender: No OFD packet to send [19:30:15]*** Cut start [19:30:15]*** Purtial cut [19:30:15]*** CUTSNS_PIN = 0 [19:30:15]*** Stage 1: CUTSNS_PIN = 1 [19:30:17]Read from MH i2c: 01 [19:30:17]MH_I2C_Read... [19:30:17]*** Stop cut motor [19:30:17]*** Cut end [19:30:17]Read from MH i2c: 01 07 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: 01 07 00 F8 04 00 00 00 00 00 FF 0F 11 [19:30:17]process_action close_receipt done [19:30:17]requested_data is exist [19:30:17]produce_requested_data [19:30:17]requested_item fm.sn is exist - process it [19:30:17]wFMCommunicate request_size=4 [19:30:17]MH_SAM_APDU [19:30:17]CAPDU: 80 11 00 00 [19:30:17]Write to MH i2c: E2 08 00 F9 04 80 11 00 00 00 00 00 00 77 [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:17]Read from MH i2c: E2 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 17 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 17 00 F9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 CC [19:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:30:17]wFMCommunicate OK [19:30:17]requested_item fd.num is exist - process it [19:30:17]SAM_PROTO_GetFieldsCounters [19:30:17]wFMCommunicate request_size=4 [19:30:17]MH_SAM_APDU [19:30:17]CAPDU: 80 13 00 00 [19:30:17]Write to MH i2c: E2 08 00 FA 04 80 13 00 00 00 00 00 00 7A [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:17]Read from MH i2c: E2 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 62 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 62 00 FA 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 32 14 01 00 0E 04 04 00 D2 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 68 [19:30: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 32 14 01 00 0E 04 04 00 D2 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 [19:30:17]wFMCommunicate OK [19:30:17]SAM_PROTO_GetFieldsCounters done [19:30:17]requested_item shift.num is exist - process it [19:30:17]requested_item shift.opened is exist - process it [19:30:17]req_shift_opened [19:30:17]FM_GetShiftState [19:30:17]SAM_PROTO_GetShiftState [19:30:17]wFMCommunicate request_size=4 [19:30:17]MH_SAM_APDU [19:30:17]CAPDU: 80 13 01 00 [19:30:17]Write to MH i2c: E2 08 00 FB 04 80 13 01 00 00 00 00 00 7C [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:17]Read from MH i2c: E2 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 0E 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 0E 00 FB 04 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 EB [19:30:17]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [19:30:17]wFMCommunicate OK [19:30:17]SAM_PROTO_GetShiftState done [19:30:17]FM_GetShiftState done [19:30:17]req_shift_opened done [19:30:17]requested_item shift.open_date is exist - process it [19:30:17]req_shift_open_date [19:30:17]req_shift_open_date done [19:30:17]produce_requested_data done [19:30:17]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70706,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [19:30:17]process_action_free close_receipt [19:30:17]json_value_free [19:30:17]json_value_free done [19:30:17]process_json_proto returns [19:30:17]Send response to host [19:30:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70706,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [19:30:17]free response buf [19:30:17]execute_script done [19:30:17]execute_script returns [19:30:17]free content buf [19:30:17]Sock 7.Close socket [19:30:17]Sock 7.Thread stoped [19:30:20]OFD Sender: No OFD packet to send [19:30:25]OFD Sender: No OFD packet to send [19:30:30]OFD Sender: No OFD packet to send [19:30:35]OFD Sender: No OFD packet to send [19:30:40]OFD Sender: No OFD packet to send [19:30:45]OFD Sender: No OFD packet to send [19:30:47]accept exits with 9 [19:30:47]New connection [19:30:47]New thread 3067448676 created [19:30:47]Thread 3067305316 joined [19:30:47]Waiting for new connection... [19:30:47] Sock 9.Parse request [19:30:47]Sock 9.Check first char [19:30:47]Sock 9.First char is OK [19:30:47]request: POST /json_proto HTTP/1.0 [19:30:47]Method: POST [19:30:47]URL: /json_proto [19:30:47]Method is POST - this is cgi request [19:30:47]url: /json_proto [19:30:47]query_string will be loaded in cgi processing [19:30:47]execute_cgi json_proto POST (null) [19:30:47]execute_cgi path=json_proto method=POST [19:30:47]POST find Content-Length [19:30:47]Host: 172.17.58.67:8080 [19:30:47]Content-Length: 805 [19:30:47]Content-Type: application/json [19:30:47] [19:30:47]POST finish read [19:30:47]Found Content-Length = 805 [19:30:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:47]execute_script... [19:30:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:47]POST & json_proto [19:30:47]process_json_proto [19:30:47]json parsed OK: [19:30:47]protocol is kg_v1.0 [19:30:47]action value=close_receipt [19:30:47]process_action close_receipt [19:30:47]cmd_close_receipt [19:30:47]MH_GetDate [19:30:47]Write to MH i2c: F0 00 00 FC 04 EF [19:30:47]Write i2c OK [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: F0 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: F0 09 00 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: F0 09 00 FC 04 00 68 B4 BB 66 94 51 63 64 E1 [19:30:47]GetLastDocTimeStamp 1723577413 [19:30:47]current date 1723577448 [19:30:47]FM_GetShiftState [19:30:47]SAM_PROTO_GetShiftState [19:30:47]wFMCommunicate request_size=4 [19:30:47]MH_SAM_APDU [19:30:47]CAPDU: 80 13 01 00 [19:30:47]Write to MH i2c: E2 08 00 FD 04 80 13 01 00 00 00 00 00 7E [19:30:47]Write i2c OK [19:30:47]MH_I2C_Read... [19:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:47]Read from MH i2c: E2 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: E2 0E 00 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: E2 0E 00 FD 04 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 ED [19:30:47]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [19:30:47]wFMCommunicate OK [19:30:47]SAM_PROTO_GetShiftState done [19:30:47]FM_GetShiftState done [19:30:47]opened in 1723509656 [19:30:47]opened+sec_in_day 1723596056 [19:30:47]quantity*price = 50018 [19:30:47]sum+1 = 50019 [19:30:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 0.00 Безнал.: 500.18 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 61 13.08.2024 19:30 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70707 ФПД: 136265819332827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T193048&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70707&fm=136265819332827&tin=02508201610067®Number=0000000000090913&sum=50018 [19:30:48]StoreToDocumentArchive [19:30:48]shift 466 fd 70707 [19:30:48]save to /storage/0466/doc_00070707 [19:30:48]save last doc name /storage/0466/doc_00070707 to /storage/kkm_last_doc_name [19:30:48]save OK [19:30:48]Clear old archive folders... [19:30:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:30:49]tlvbuf is 006EFAA0 [19:30:49]SAM_PROTO_ClearQueue [19:30:49]wFMCommunicate request_size=4 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 09 00 00 [19:30:49]Write to MH i2c: E2 08 00 0A 05 80 09 00 00 00 00 00 00 81 [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 0A 05 00 90 00 83 [19:30:49]RAPDU: 90 00 [19:30:49]wFMCommunicate OK [19:30:49]SAM_PROTO_ClearQueue done [19:30:49]KKMCreateOFDPacket [19:30:49]OFDProtocolAddRootSTLVToBuf [19:30:49]FM_MakeSignedData [19:30:49]FM_MakeSignedData [19:30:49]SAM_PROTO_SignData [19:30:49]wFMCommunicate request_size=4 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 0D 01 02 [19:30:49]Write to MH i2c: E2 08 00 0B 05 80 0D 01 02 00 00 00 00 89 [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 0B 05 00 90 00 84 [19:30:49]RAPDU: 90 00 [19:30:49]wFMCommunicate OK [19:30:49]wFMCommunicate request_size=255 [19:30:49]MH_SAM_APDU [19:30: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 68 B4 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 33 14 01 00 35 04 06 00 7B [19:30:49]Write to MH i2c: E2 02 01 0C 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 68 B4 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 33 14 01 00 35 04 06 00 7B 00 00 3B [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 0C 05 00 90 00 85 [19:30:49]RAPDU: 90 00 [19:30:49]wFMCommunicate OK [19:30:49]wFMCommunicate request_size=10 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 0D 02 02 05 EE DB C1 A0 DB [19:30:49]Write to MH i2c: E2 0D 00 0D 05 80 0D 02 02 05 00 EE DB C1 A0 DB 00 00 9B [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 0D 05 00 90 00 86 [19:30:49]RAPDU: 90 00 [19:30:49]wFMCommunicate OK [19:30:49]wFMCommunicate request_size=4 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 0D 03 02 [19:30:49]Write to MH i2c: E2 08 00 0E 05 80 0D 03 02 00 00 00 00 8E [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 0B 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 0B 00 0E 05 00 D1 34 72 94 A1 70 20 1F 90 00 EA [19:30:49]RAPDU: D1 34 72 94 A1 70 20 1F 90 00 [19:30:49]wFMCommunicate OK [19:30:49]SAM_PROTO_SignData done [19:30:49]FM_MakeSignedData done [19:30:49]CreateOFDProtocolMessage [19:30:49]wFMCommunicate request_size=4 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 11 00 00 [19:30:49]Write to MH i2c: E2 08 00 0F 05 80 11 00 00 00 00 00 00 8E [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 17 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 17 00 0F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 E3 [19:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:30:49]wFMCommunicate OK [19:30:49]CreateOFDProtocolMessage done [19:30:49]OFDSenderStorePacket 70707 [19:30:49]StoreOFDPacket docnum=70707 [19:30:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 A2 B9 07 01 C4 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 68 B4 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 33 14 01 00 35 04 06 00 7B EE DB C1 A0 DB D1 34 72 94 A1 70 20 1F [19:30:49]CheckFolder [19:30:49]dirname=/storage/ofd_packets [19:30:49]CheckFolder done [19:30:49]ProducePacketName [19:30:49]name=ofd_packets/00070707 [19:30:49]NVStorageSaveData ofd_packets/00070707 [19:30:49]File name is /storage/ofd_packets/00070707 [19:30:49]Write 301 bytes [19:30:49]NVStorageSaveData done [19:30:49]OFDSenderStorePacket done [19:30:49]KKMCreateOFDPacket done [19:30:49]NVStorageSaveData kkm_last_timestamp [19:30:49]File name is /storage/kkm_last_timestamp [19:30:49]Write 4 bytes [19:30:49]NVStorageSaveData done [19:30:49]ExternCall_PrintAddStr [19:30:49]wPrintStart [19:30:49]Write to MH i2c: 01 00 00 10 05 15 [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: 01 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: 01 07 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: 01 07 00 10 05 00 00 00 00 00 FF 0F 2A [19:30:49]RasterBufferAndPrint [19:30:49]line Счет N : (1)141167 [19:30:49]line ИÐÐ: 02508201610067 [19:30:49]line Контрольно-КаÑÑовый Чек [19:30:49]line ПРОДÐЖР[19:30:49]line ТРК (МРК, ГÐК) : 41 [19:30:49]line Товар: 2710124130 [19:30:49]line Ðи-92-К-5 [19:30:49]line 7.590 * 65.90 [19:30:49]line = 500.18 [19:30:49]line ÐДС 12% ÐСП 1% [19:30:49]line > о реализуемом товаре [19:30:49]line ИТОГО: 500.18 [19:30:49]line ÐСП 1% : 4.43 [19:30:49]line ÐДС 12% : 53.12 [19:30:49]line Ðаличными: 0.00 [19:30:49]line Безнал.: 500.18 [19:30:49]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [19:30:49]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [19:30:49]line СÐО: Общий режим [19:30:49]line Чек 61 13.08.2024 19:30 [19:30:49]line Смена: 466 ФФД: 1.0 [19:30:49]line ЗÐМ: 0300000140 [19:30:49]line РÐМ: 0000000000090913 [19:30:49]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [19:30:49]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [19:30:49]line ФМ: 0000000000874915 [19:30:49]line ФД: 70707 [19:30:49]line ФПД: 136265819332827 [19:30:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T193048&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70707&fm=136265819332827&tin=02508201610067®Number=0000000000090913&sum=50018 [19:30:49]written 0, free lines is 4095 [19:30:49]OFD Sender: Processing packet 70707 [packets to send 67, broken 66] [19:30:49]ProducePacketName [19:30:49]name=ofd_packets/00070707 [19:30:49]OFD Sender: To server: ‡•öpG, [19:30:49]CommunicateWithHost lk.salyk.kg:30040 [19:30:49]ConnectInit lk.salyk.kg [19:30:49]Connected sock=10 [19:30:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 A2 B9 07 01 C4 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 68 B4 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 33 14 01 00 35 04 06 00 7B EE DB C1 A0 DB D1 34 72 94 A1 70 20 1F [19:30:49]Write to MH i2c: 01 00 00 3A 05 3F [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: 01 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: 01 07 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: 01 07 00 3A 05 00 00 00 00 00 F1 0C 43 [19:30:49]RasterBufferAndPrint [19:30:49]line [19:30:49]line [19:30:49]line [19:30:49]line [19:30:49]line [19:30:49]written 0, free lines is 3319 [19:30:50]MH_Cut [19:30:50]Write to MH i2c: D1 01 00 41 05 01 18 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: D1 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: D1 01 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: D1 01 00 41 05 00 17 [19:30:50]Write to MH i2c: 01 00 00 42 05 47 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 51 07 47 00 90 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 39 31 35 10 04 04 00 33 14 01 00 F4 03 04 00 53 5B BB 66 B6 04 01 00 00 17 5D 89 49 81 A3 CF 60 [19:30:50]CommunicateWithHost err = 0 [19:30:50]CheckOFDResponse [19:30:50]1017 (14) - 77093643461234 [19:30:50]1041 (16) - 0000000000874915 [19:30:50]1040 (4) - 70707 [19:30:50]1012 (4) - 13.08.2024 13:10 [19:30:50]1206 (1) - 0 [19:30:50]OFD Sender: Remove packet 70707 [19:30:50]ProducePacketName [19:30:50]name=ofd_packets/00070707 [19:30:50]NVStorageDeleteData [19:30:50]OFD Sender: No OFD packet to send [19:30:50]*** Cut start [19:30:50]*** Purtial cut [19:30:50]*** Stage 1: CUTSNS_PIN = 1 [19:30:50]Read from MH i2c: 01 [19:30:50]MH_I2C_Read... [19:30:50]*** Stop cut motor [19:30:50]*** Cut end [19:30:50]Read from MH i2c: 01 07 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 07 00 42 05 00 00 00 00 00 FF 0F 5C [19:30:50]process_action close_receipt done [19:30:50]requested_data is exist [19:30:50]produce_requested_data [19:30:50]requested_item fm.sn is exist - process it [19:30:50]wFMCommunicate request_size=4 [19:30:50]MH_SAM_APDU [19:30:50]CAPDU: 80 11 00 00 [19:30:50]Write to MH i2c: E2 08 00 43 05 80 11 00 00 00 00 00 00 C2 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:50]Read from MH i2c: E2 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 17 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 17 00 43 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 17 [19:30:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:30:50]wFMCommunicate OK [19:30:50]requested_item fd.num is exist - process it [19:30:50]SAM_PROTO_GetFieldsCounters [19:30:50]wFMCommunicate request_size=4 [19:30:50]MH_SAM_APDU [19:30:50]CAPDU: 80 13 00 00 [19:30:50]Write to MH i2c: E2 08 00 44 05 80 13 00 00 00 00 00 00 C5 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:51]Read from MH i2c: E2 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: E2 62 00 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: E2 62 00 44 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 33 14 01 00 0E 04 04 00 D2 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 B7 [19:30: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 33 14 01 00 0E 04 04 00 D2 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 [19:30:51]wFMCommunicate OK [19:30:51]SAM_PROTO_GetFieldsCounters done [19:30:51]requested_item shift.num is exist - process it [19:30:51]requested_item shift.opened is exist - process it [19:30:51]req_shift_opened [19:30:51]FM_GetShiftState [19:30:51]SAM_PROTO_GetShiftState [19:30:51]wFMCommunicate request_size=4 [19:30:51]MH_SAM_APDU [19:30:51]CAPDU: 80 13 01 00 [19:30:51]Write to MH i2c: E2 08 00 45 05 80 13 01 00 00 00 00 00 C7 [19:30:51]Write i2c OK [19:30:51]MH_I2C_Read... [19:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:51]Read from MH i2c: E2 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: E2 0E 00 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: E2 0E 00 45 05 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 36 [19:30:51]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [19:30:51]wFMCommunicate OK [19:30:51]SAM_PROTO_GetShiftState done [19:30:51]FM_GetShiftState done [19:30:51]req_shift_opened done [19:30:51]requested_item shift.open_date is exist - process it [19:30:51]req_shift_open_date [19:30:51]req_shift_open_date done [19:30:51]produce_requested_data done [19:30:51]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70707,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [19:30:51]process_action_free close_receipt [19:30:51]json_value_free [19:30:51]json_value_free done [19:30:51]process_json_proto returns [19:30:51]Send response to host [19:30:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70707,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [19:30:51]free response buf [19:30:51]execute_script done [19:30:51]execute_script returns [19:30:51]free content buf [19:30:51]Sock 9.Close socket [19:30:51]Sock 9.Thread stoped [19:30:55]OFD Sender: No OFD packet to send [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:10]OFD Sender: No OFD packet to send [19:31:15]OFD Sender: No OFD packet to send [19:31:20]OFD Sender: No OFD packet to send [19:31:25]OFD Sender: No OFD packet to send [19:31:30]OFD Sender: No OFD packet to send [19:31:35]OFD Sender: No OFD packet to send [19:31:40]OFD Sender: No OFD packet to send [19:31:45]OFD Sender: No OFD packet to send [19:31:50]OFD Sender: No OFD packet to send [19:31:55]OFD Sender: No OFD packet to send [19:32:00]OFD Sender: No OFD packet to send [19:32:05]OFD Sender: No OFD packet to send [19:32:10]OFD Sender: No OFD packet to send [19:32:15]OFD Sender: No OFD packet to send [19:32:20]OFD Sender: No OFD packet to send [19:32:25]OFD Sender: No OFD packet to send [19:32:30]OFD Sender: No OFD packet to send [19:32:35]OFD Sender: No OFD packet to send [19:32:40]OFD Sender: No OFD packet to send [19:32:45]OFD Sender: No OFD packet to send [19:32:50]OFD Sender: No OFD packet to send [19:32:55]OFD Sender: No OFD packet to send [19:33:00]OFD Sender: No OFD packet to send [19:33:05]OFD Sender: No OFD packet to send [19:33:10]OFD Sender: No OFD packet to send [19:33:15]OFD Sender: No OFD packet to send [19:33:20]OFD Sender: No OFD packet to send [19:33:25]OFD Sender: No OFD packet to send [19:33:30]OFD Sender: No OFD packet to send [19:33:35]OFD Sender: No OFD packet to send [19:33:40]OFD Sender: No OFD packet to send [19:33:45]OFD Sender: No OFD packet to send [19:33:50]OFD Sender: No OFD packet to send [19:33:55]OFD Sender: No OFD packet to send [19:34:00]OFD Sender: No OFD packet to send [19:34:05]OFD Sender: No OFD packet to send [19:34:10]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:10]OFD Sender: No OFD packet to send [19:36:15]OFD Sender: No OFD packet to send [19:36:20]OFD Sender: No OFD packet to send [19:36:25]OFD Sender: No OFD packet to send [19:36:30]OFD Sender: No OFD packet to send [19:36:35]OFD Sender: No OFD packet to send [19:36:38]accept exits with 7 [19:36:38]New connection [19:36:38]New thread 3067305316 created [19:36:38]Thread 3067448676 joined [19:36:38]Waiting for new connection... [19:36:38] Sock 7.Parse request [19:36:38]Sock 7.Check first char [19:36:38]Sock 7.First char is OK [19:36:38]request: POST /json_proto HTTP/1.0 [19:36:38]Method: POST [19:36:38]URL: /json_proto [19:36:38]Method is POST - this is cgi request [19:36:38]url: /json_proto [19:36:38]query_string will be loaded in cgi processing [19:36:38]execute_cgi json_proto POST (null) [19:36:38]execute_cgi path=json_proto method=POST [19:36:38]POST find Content-Length [19:36:38]Host: 172.17.58.67:8080 [19:36:38]Content-Length: 805 [19:36:38]Content-Type: application/json [19:36:38] [19:36:38]POST finish read [19:36:38]Found Content-Length = 805 [19:36:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:38]execute_script... [19:36: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)141168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:38]POST & json_proto [19:36:38]process_json_proto [19:36:38]json parsed OK: [19:36:38]protocol is kg_v1.0 [19:36:38]action value=close_receipt [19:36:38]process_action close_receipt [19:36:38]cmd_close_receipt [19:36:38]MH_GetDate [19:36:38]Write to MH i2c: F0 00 00 46 05 3A [19:36:38]Write i2c OK [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: F0 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: F0 09 00 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: F0 09 00 46 05 00 C7 B5 BB 66 94 51 63 64 8C [19:36:38]GetLastDocTimeStamp 1723577448 [19:36:38]current date 1723577799 [19:36:38]FM_GetShiftState [19:36:38]SAM_PROTO_GetShiftState [19:36:38]wFMCommunicate request_size=4 [19:36:38]MH_SAM_APDU [19:36:38]CAPDU: 80 13 01 00 [19:36:38]Write to MH i2c: E2 08 00 47 05 80 13 01 00 00 00 00 00 C9 [19:36:38]Write i2c OK [19:36:38]MH_I2C_Read... [19:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:38]Read from MH i2c: E2 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: E2 0E 00 [19:36:38]MH_I2C_Read... [19:36:38]Read from MH i2c: E2 0E 00 47 05 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 38 [19:36:38]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [19:36:38]wFMCommunicate OK [19:36:38]SAM_PROTO_GetShiftState done [19:36:38]FM_GetShiftState done [19:36:38]opened in 1723509656 [19:36:38]opened+sec_in_day 1723596056 [19:36:38]quantity*price = 150064 [19:36:38]sum+1 = 150066 [19:36:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.65 ÐСП 1% : 13.28 ÐДС 12% : 159.36 Ðаличными: 0.00 Безнал.: 1500.65 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 62 13.08.2024 19:36 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70708 ФПД: 140753286762583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T193639&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70708&fm=140753286762583&tin=02508201610067®Number=0000000000090913&sum=150065 [19:36:39]StoreToDocumentArchive [19:36:39]shift 466 fd 70708 [19:36:39]save to /storage/0466/doc_00070708 [19:36:39]save last doc name /storage/0466/doc_00070708 to /storage/kkm_last_doc_name [19:36:39]save OK [19:36:39]Clear old archive folders... [19:36:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:36:39]tlvbuf is 006EF970 [19:36:39]SAM_PROTO_ClearQueue [19:36:39]wFMCommunicate request_size=4 [19:36:39]MH_SAM_APDU [19:36:39]CAPDU: 80 09 00 00 [19:36:39]Write to MH i2c: E2 08 00 54 05 80 09 00 00 00 00 00 00 CB [19:36:39]Write i2c OK [19:36:39]MH_I2C_Read... [19:36:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:39]Read from MH i2c: E2 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: E2 03 00 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: E2 03 00 54 05 00 90 00 CD [19:36:39]RAPDU: 90 00 [19:36:39]wFMCommunicate OK [19:36:39]SAM_PROTO_ClearQueue done [19:36:39]KKMCreateOFDPacket [19:36:39]OFDProtocolAddRootSTLVToBuf [19:36:39]FM_MakeSignedData [19:36:39]FM_MakeSignedData [19:36:39]SAM_PROTO_SignData [19:36:39]wFMCommunicate request_size=4 [19:36:39]MH_SAM_APDU [19:36:39]CAPDU: 80 0D 01 02 [19:36:39]Write to MH i2c: E2 08 00 55 05 80 0D 01 02 00 00 00 00 D3 [19:36:39]Write i2c OK [19:36:39]MH_I2C_Read... [19:36:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:39]Read from MH i2c: E2 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: E2 03 00 [19:36:39]MH_I2C_Read... [19:36:39]Read from MH i2c: E2 03 00 55 05 00 90 00 CE [19:36:39]RAPDU: 90 00 [19:36:39]wFMCommunicate OK [19:36:39]wFMCommunicate request_size=255 [19:36:39]MH_SAM_APDU [19:36:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 C7 B5 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 34 14 01 00 35 04 06 00 80 03 AD A8 [19:36:39]Write to MH i2c: E2 02 01 56 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 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 C7 B5 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 34 14 01 00 35 04 06 00 80 03 AD A8 00 00 6D [19:36:39]Write i2c OK [19:36:39]MH_I2C_Read... [19:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:40]Read from MH i2c: E2 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 03 00 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 03 00 56 05 00 90 00 CF [19:36:40]RAPDU: 90 00 [19:36:40]wFMCommunicate OK [19:36:40]wFMCommunicate request_size=7 [19:36:40]MH_SAM_APDU [19:36:40]CAPDU: 80 0D 02 02 02 90 57 [19:36:40]Write to MH i2c: E2 0A 00 57 05 80 0D 02 02 02 00 90 57 00 00 C1 [19:36:40]Write i2c OK [19:36:40]MH_I2C_Read... [19:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:40]Read from MH i2c: E2 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 03 00 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 03 00 57 05 00 90 00 D0 [19:36:40]RAPDU: 90 00 [19:36:40]wFMCommunicate OK [19:36:40]wFMCommunicate request_size=4 [19:36:40]MH_SAM_APDU [19:36:40]CAPDU: 80 0D 03 02 [19:36:40]Write to MH i2c: E2 08 00 58 05 80 0D 03 02 00 00 00 00 D8 [19:36:40]Write i2c OK [19:36:40]MH_I2C_Read... [19:36:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:40]Read from MH i2c: E2 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 0B 00 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 0B 00 58 05 00 2B 68 24 90 35 64 9C CC 90 00 21 [19:36:40]RAPDU: 2B 68 24 90 35 64 9C CC 90 00 [19:36:40]wFMCommunicate OK [19:36:40]SAM_PROTO_SignData done [19:36:40]FM_MakeSignedData done [19:36:40]CreateOFDProtocolMessage [19:36:40]wFMCommunicate request_size=4 [19:36:40]MH_SAM_APDU [19:36:40]CAPDU: 80 11 00 00 [19:36:40]Write to MH i2c: E2 08 00 59 05 80 11 00 00 00 00 00 00 D8 [19:36:40]Write i2c OK [19:36:40]MH_I2C_Read... [19:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:40]Read from MH i2c: E2 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 17 00 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: E2 17 00 59 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 2D [19:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:36:40]wFMCommunicate OK [19:36:40]CreateOFDProtocolMessage done [19:36:40]OFDSenderStorePacket 70708 [19:36:40]StoreOFDPacket docnum=70708 [19:36:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 37 1F 04 01 97 44 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 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 C7 B5 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 34 14 01 00 35 04 06 00 80 03 AD A8 90 57 2B 68 24 90 35 64 9C CC [19:36:40]CheckFolder [19:36:40]dirname=/storage/ofd_packets [19:36:40]CheckFolder done [19:36:40]ProducePacketName [19:36:40]name=ofd_packets/00070708 [19:36:40]NVStorageSaveData ofd_packets/00070708 [19:36:40]File name is /storage/ofd_packets/00070708 [19:36:40]Write 298 bytes [19:36:40]NVStorageSaveData done [19:36:40]OFDSenderStorePacket done [19:36:40]KKMCreateOFDPacket done [19:36:40]NVStorageSaveData kkm_last_timestamp [19:36:40]File name is /storage/kkm_last_timestamp [19:36:40]Write 4 bytes [19:36:40]NVStorageSaveData done [19:36:40]ExternCall_PrintAddStr [19:36:40]wPrintStart [19:36:40]Write to MH i2c: 01 00 00 5A 05 5F [19:36:40]Write i2c OK [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: 01 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: 01 07 00 [19:36:40]MH_I2C_Read... [19:36:40]Read from MH i2c: 01 07 00 5A 05 00 00 00 00 00 FF 0F 74 [19:36:40]RasterBufferAndPrint [19:36:40]line Счет N : (1)141168 [19:36:40]line ИÐÐ: 02508201610067 [19:36:40]line Контрольно-КаÑÑовый Чек [19:36:40]line ПРОДÐЖР[19:36:40]line ТРК (МРК, ГÐК) : 44 [19:36:40]line Товар: 2710194210 [19:36:40]line ДТ-К-5 [19:36:40]line 20.170 * 74.40 [19:36:40]line = 1500.65 [19:36:40]line ÐДС 12% ÐСП 1% [19:36:40]line > о реализуемом товаре [19:36:40]line ИТОГО: 1500.65 [19:36:40]line ÐСП 1% : 13.28 [19:36:40]line ÐДС 12% : 159.36 [19:36:40]line Ðаличными: 0.00 [19:36:40]line Безнал.: 1500.65 [19:36:40]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [19:36:40]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [19:36:40]line СÐО: Общий режим [19:36:40]line Чек 62 13.08.2024 19:36 [19:36:40]line Смена: 466 ФФД: 1.0 [19:36:40]line ЗÐМ: 0300000140 [19:36:40]line РÐМ: 0000000000090913 [19:36:40]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [19:36:40]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [19:36:40]line ФМ: 0000000000874915 [19:36:40]line ФД: 70708 [19:36:40]line ФПД: 140753286762583 [19:36:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T193639&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70708&fm=140753286762583&tin=02508201610067®Number=0000000000090913&sum=150065 [19:36:40]OFD Sender: Processing packet 70708 [packets to send 67, broken 66] [19:36:40]ProducePacketName [19:36:40]name=ofd_packets/00070708 [19:36:40]OFD Sender: To server: ‡•öpG, [19:36:40]CommunicateWithHost lk.salyk.kg:30040 [19:36:40]ConnectInit lk.salyk.kg [19:36:40]written 0, free lines is 4095 [19:36:40]Connected sock=10 [19:36: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 39 31 35 0C 01 00 00 37 1F 04 01 97 44 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 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 C7 B5 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 34 14 01 00 35 04 06 00 80 03 AD A8 90 57 2B 68 24 90 35 64 9C CC [19:36:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 4F 0D 47 00 84 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 39 31 35 10 04 04 00 34 14 01 00 F4 03 04 00 B2 5C BB 66 B6 04 01 00 00 5E 12 27 B0 85 11 40 7E [19:36:40]CommunicateWithHost err = 0 [19:36:40]CheckOFDResponse [19:36:40]1017 (14) - 77093643461234 [19:36:40]1041 (16) - 0000000000874915 [19:36:40]1040 (4) - 70708 [19:36:40]1012 (4) - 13.08.2024 13:16 [19:36:40]1206 (1) - 0 [19:36:40]OFD Sender: Remove packet 70708 [19:36:40]ProducePacketName [19:36:40]name=ofd_packets/00070708 [19:36:40]NVStorageDeleteData [19:36:41]Write to MH i2c: 01 00 00 84 05 89 [19:36:41]Write i2c OK [19:36:41]MH_I2C_Read... [19:36:41]Read from MH i2c: 01 [19:36:41]MH_I2C_Read... [19:36:41]Read from MH i2c: 01 07 00 [19:36:41]MH_I2C_Read... [19:36:41]Read from MH i2c: 01 07 00 84 05 00 00 00 00 00 EC 0C 88 [19:36:41]RasterBufferAndPrint [19:36:41]line [19:36:41]line [19:36:41]line [19:36:41]line [19:36:41]line [19:36:41]written 0, free lines is 3317 [19:36:41]MH_Cut [19:36:41]Write to MH i2c: D1 01 00 8B 05 01 62 [19:36:41]Write i2c OK [19:36:41]MH_I2C_Read... [19:36:41]Read from MH i2c: D1 [19:36:41]MH_I2C_Read... [19:36:41]Read from MH i2c: D1 01 00 [19:36:41]MH_I2C_Read... [19:36:41]Read from MH i2c: D1 01 00 8B 05 00 61 [19:36:41]Write to MH i2c: 01 00 00 8C 05 91 [19:36:41]Write i2c OK [19:36:41]MH_I2C_Read... [19:36:41]OFD Sender: No OFD packet to send [19:36:41]*** Cut start [19:36:41]*** Purtial cut [19:36:41]*** CUTSNS_PIN = 0 [19:36:42]*** Stage 1: CUTSNS_PIN = 1 [19:36:43]Read from MH i2c: 01 [19:36:43]*** Stop cut motor [19:36:43]*** Cut end [19:36:43]MH_I2C_Read... [19:36:43]Read from MH i2c: 01 07 00 [19:36:43]MH_I2C_Read... [19:36:43]Read from MH i2c: 01 07 00 8C 05 00 00 00 00 00 FF 0F A6 [19:36:43]process_action close_receipt done [19:36:43]requested_data is exist [19:36:43]produce_requested_data [19:36:43]requested_item fm.sn is exist - process it [19:36:43]wFMCommunicate request_size=4 [19:36:43]MH_SAM_APDU [19:36:43]CAPDU: 80 11 00 00 [19:36:43]Write to MH i2c: E2 08 00 8D 05 80 11 00 00 00 00 00 00 0C [19:36:43]Write i2c OK [19:36:43]MH_I2C_Read... [19:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:43]Read from MH i2c: E2 [19:36:43]MH_I2C_Read... [19:36:43]Read from MH i2c: E2 17 00 [19:36:43]MH_I2C_Read... [19:36:43]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 39 31 35 90 00 61 [19:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:36:43]wFMCommunicate OK [19:36:43]requested_item fd.num is exist - process it [19:36:43]SAM_PROTO_GetFieldsCounters [19:36:43]wFMCommunicate request_size=4 [19:36:43]MH_SAM_APDU [19:36:43]CAPDU: 80 13 00 00 [19:36:43]Write to MH i2c: E2 08 00 8E 05 80 13 00 00 00 00 00 00 0F [19:36:43]Write i2c OK [19:36:43]MH_I2C_Read... [19:36:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:44]Read from MH i2c: E2 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: E2 62 00 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: E2 62 00 8E 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 34 14 01 00 0E 04 04 00 D2 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 05 [19:36: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 34 14 01 00 0E 04 04 00 D2 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 [19:36:44]wFMCommunicate OK [19:36:44]SAM_PROTO_GetFieldsCounters done [19:36:44]requested_item shift.num is exist - process it [19:36:44]requested_item shift.opened is exist - process it [19:36:44]req_shift_opened [19:36:44]FM_GetShiftState [19:36:44]SAM_PROTO_GetShiftState [19:36:44]wFMCommunicate request_size=4 [19:36:44]MH_SAM_APDU [19:36:44]CAPDU: 80 13 01 00 [19:36:44]Write to MH i2c: E2 08 00 8F 05 80 13 01 00 00 00 00 00 11 [19:36:44]Write i2c OK [19:36:44]MH_I2C_Read... [19:36:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:44]Read from MH i2c: E2 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: E2 0E 00 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: E2 0E 00 8F 05 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 80 [19:36:44]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [19:36:44]wFMCommunicate OK [19:36:44]SAM_PROTO_GetShiftState done [19:36:44]FM_GetShiftState done [19:36:44]req_shift_opened done [19:36:44]requested_item shift.open_date is exist - process it [19:36:44]req_shift_open_date [19:36:44]req_shift_open_date done [19:36:44]produce_requested_data done [19:36:44]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70708,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [19:36:44]process_action_free close_receipt [19:36:44]json_value_free [19:36:44]json_value_free done [19:36:44]process_json_proto returns [19:36:44]Send response to host [19:36:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70708,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [19:36:44]free response buf [19:36:44]execute_script done [19:36:44]execute_script returns [19:36:44]free content buf [19:36:44]Sock 7.Close socket [19:36:44]Sock 7.Thread stoped [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:38:56]accept exits with 9 [19:38:56]New connection [19:38:56]New thread 3067448676 created [19:38:56]Thread 3067305316 joined [19:38:56]Waiting for new connection... [19:38:56] Sock 9.Parse request [19:38:56]Sock 9.Check first char [19:38:56]Sock 9.First char is OK [19:38:56]request: POST /json_proto HTTP/1.0 [19:38:56]Method: POST [19:38:56]URL: /json_proto [19:38:56]Method is POST - this is cgi request [19:38:56]url: /json_proto [19:38:56]query_string will be loaded in cgi processing [19:38:56]execute_cgi json_proto POST (null) [19:38:56]execute_cgi path=json_proto method=POST [19:38:56]POST find Content-Length [19:38:56]Host: 172.17.58.67:8080 [19:38:56]Content-Length: 805 [19:38:56]Content-Type: application/json [19:38:56] [19:38:56]POST finish read [19:38:56]Found Content-Length = 805 [19:38:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 5.000, "sum" : 329.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 329.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:56]execute_script... [19:38: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)141169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 5.000, "sum" : 329.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 329.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:56]POST & json_proto [19:38:56]process_json_proto [19:38:56]json parsed OK: [19:38:56]protocol is kg_v1.0 [19:38:56]action value=close_receipt [19:38:56]process_action close_receipt [19:38:56]cmd_close_receipt [19:38:56]MH_GetDate [19:38:56]Write to MH i2c: F0 00 00 90 05 84 [19:38:56]Write i2c OK [19:38:56]MH_I2C_Read... [19:38:56]Read from MH i2c: F0 [19:38:56]MH_I2C_Read... [19:38:56]Read from MH i2c: F0 09 00 [19:38:56]MH_I2C_Read... [19:38:56]Read from MH i2c: F0 09 00 90 05 00 51 B6 BB 66 94 51 63 64 61 [19:38:56]GetLastDocTimeStamp 1723577799 [19:38:56]current date 1723577937 [19:38:56]FM_GetShiftState [19:38:56]SAM_PROTO_GetShiftState [19:38:56]wFMCommunicate request_size=4 [19:38:56]MH_SAM_APDU [19:38:56]CAPDU: 80 13 01 00 [19:38:56]Write to MH i2c: E2 08 00 91 05 80 13 01 00 00 00 00 00 13 [19:38:56]Write i2c OK [19:38:56]MH_I2C_Read... [19:38:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:56]Read from MH i2c: E2 [19:38:56]MH_I2C_Read... [19:38:56]Read from MH i2c: E2 0E 00 [19:38:56]MH_I2C_Read... [19:38:56]Read from MH i2c: E2 0E 00 91 05 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 82 [19:38:56]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [19:38:56]wFMCommunicate OK [19:38:56]SAM_PROTO_GetShiftState done [19:38:56]FM_GetShiftState done [19:38:56]opened in 1723509656 [19:38:56]opened+sec_in_day 1723596056 [19:38:56]quantity*price = 32950 [19:38:56]sum+1 = 32951 [19:38:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 329.50 ÐСП 1% : 2.92 ÐДС 12% : 34.99 Ðаличными: 0.00 Безнал.: 329.50 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 63 13.08.2024 19:38 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70709 ФПД: 239720920301457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T193857&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70709&fm=239720920301457&tin=02508201610067®Number=0000000000090913&sum=32950 [19:38:57]StoreToDocumentArchive [19:38:57]shift 466 fd 70709 [19:38:57]save to /storage/0466/doc_00070709 [19:38:57]save last doc name /storage/0466/doc_00070709 to /storage/kkm_last_doc_name [19:38:57]save OK [19:38:57]Clear old archive folders... [19:38:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:57]tlvbuf is 006BD1B0 [19:38:57]SAM_PROTO_ClearQueue [19:38:57]wFMCommunicate request_size=4 [19:38:57]MH_SAM_APDU [19:38:57]CAPDU: 80 09 00 00 [19:38:57]Write to MH i2c: E2 08 00 9E 05 80 09 00 00 00 00 00 00 15 [19:38:57]Write i2c OK [19:38:57]MH_I2C_Read... [19:38:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:57]Read from MH i2c: E2 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: E2 03 00 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: E2 03 00 9E 05 00 90 00 17 [19:38:57]RAPDU: 90 00 [19:38:57]wFMCommunicate OK [19:38:57]SAM_PROTO_ClearQueue done [19:38:57]KKMCreateOFDPacket [19:38:57]OFDProtocolAddRootSTLVToBuf [19:38:57]FM_MakeSignedData [19:38:57]FM_MakeSignedData [19:38:57]SAM_PROTO_SignData [19:38:57]wFMCommunicate request_size=4 [19:38:57]MH_SAM_APDU [19:38:57]CAPDU: 80 0D 01 02 [19:38:57]Write to MH i2c: E2 08 00 9F 05 80 0D 01 02 00 00 00 00 1D [19:38:57]Write i2c OK [19:38:57]MH_I2C_Read... [19:38:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:57]Read from MH i2c: E2 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: E2 03 00 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: E2 03 00 9F 05 00 90 00 18 [19:38:57]RAPDU: 90 00 [19:38:57]wFMCommunicate OK [19:38:57]wFMCommunicate request_size=255 [19:38:57]MH_SAM_APDU [19:38:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B6 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 51 B6 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 35 14 01 00 35 04 06 00 DA [19:38:57]Write to MH i2c: E2 02 01 A0 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 88 13 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B6 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 51 B6 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 35 14 01 00 35 04 06 00 DA 00 00 75 [19:38:57]Write i2c OK [19:38:57]MH_I2C_Read... [19:38:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:58]Read from MH i2c: E2 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 03 00 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 03 00 A0 05 00 90 00 19 [19:38:58]RAPDU: 90 00 [19:38:58]wFMCommunicate OK [19:38:58]wFMCommunicate request_size=10 [19:38:58]MH_SAM_APDU [19:38:58]CAPDU: 80 0D 02 02 05 06 60 4C BF 91 [19:38:58]Write to MH i2c: E2 0D 00 A1 05 80 0D 02 02 05 00 06 60 4C BF 91 00 00 2C [19:38:58]Write i2c OK [19:38:58]MH_I2C_Read... [19:38:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:58]Read from MH i2c: E2 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 03 00 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 03 00 A1 05 00 90 00 1A [19:38:58]RAPDU: 90 00 [19:38:58]wFMCommunicate OK [19:38:58]wFMCommunicate request_size=4 [19:38:58]MH_SAM_APDU [19:38:58]CAPDU: 80 0D 03 02 [19:38:58]Write to MH i2c: E2 08 00 A2 05 80 0D 03 02 00 00 00 00 22 [19:38:58]Write i2c OK [19:38:58]MH_I2C_Read... [19:38:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:58]Read from MH i2c: E2 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 0B 00 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 0B 00 A2 05 00 AE 15 20 63 1A 66 8A 0F 90 00 82 [19:38:58]RAPDU: AE 15 20 63 1A 66 8A 0F 90 00 [19:38:58]wFMCommunicate OK [19:38:58]SAM_PROTO_SignData done [19:38:58]FM_MakeSignedData done [19:38:58]CreateOFDProtocolMessage [19:38:58]wFMCommunicate request_size=4 [19:38:58]MH_SAM_APDU [19:38:58]CAPDU: 80 11 00 00 [19:38:58]Write to MH i2c: E2 08 00 A3 05 80 11 00 00 00 00 00 00 22 [19:38:58]Write i2c OK [19:38:58]MH_I2C_Read... [19:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:58]Read from MH i2c: E2 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 17 00 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 17 00 A3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 77 [19:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:38:58]wFMCommunicate OK [19:38:58]CreateOFDProtocolMessage done [19:38:58]OFDSenderStorePacket 70709 [19:38:58]StoreOFDPacket docnum=70709 [19:38:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 0F 9C 07 01 F5 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B6 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 51 B6 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 35 14 01 00 35 04 06 00 DA 06 60 4C BF 91 AE 15 20 63 1A 66 8A 0F [19:38:58]CheckFolder [19:38:58]dirname=/storage/ofd_packets [19:38:58]CheckFolder done [19:38:58]ProducePacketName [19:38:58]name=ofd_packets/00070709 [19:38:58]NVStorageSaveData ofd_packets/00070709 [19:38:58]File name is /storage/ofd_packets/00070709 [19:38:58]Write 301 bytes [19:38:58]NVStorageSaveData done [19:38:58]OFDSenderStorePacket done [19:38:58]KKMCreateOFDPacket done [19:38:58]NVStorageSaveData kkm_last_timestamp [19:38:58]File name is /storage/kkm_last_timestamp [19:38:58]Write 4 bytes [19:38:58]NVStorageSaveData done [19:38:58]ExternCall_PrintAddStr [19:38:58]wPrintStart [19:38:58]Write to MH i2c: 01 00 00 A4 05 A9 [19:38:58]Write i2c OK [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: 01 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: 01 07 00 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: 01 07 00 A4 05 00 00 00 00 00 FF 0F BE [19:38:58]RasterBufferAndPrint [19:38:58]line Счет N : (1)141169 [19:38:58]line ИÐÐ: 02508201610067 [19:38:58]line Контрольно-КаÑÑовый Чек [19:38:58]line ПРОДÐЖР[19:38:58]line ТРК (МРК, ГÐК) : 31 [19:38:58]line Товар: 2710124130 [19:38:58]line Ðи-92-К-5 [19:38:58]line 5.000 * 65.90 [19:38:58]line = 329.50 [19:38:58]line ÐДС 12% ÐСП 1% [19:38:58]line > о реализуемом товаре [19:38:58]line ИТОГО: 329.50 [19:38:58]line ÐСП 1% : 2.92 [19:38:58]line ÐДС 12% : 34.99 [19:38:58]line Ðаличными: 0.00 [19:38:58]line Безнал.: 329.50 [19:38:58]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [19:38:58]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [19:38:58]line СÐО: Общий режим [19:38:58]line Чек 63 13.08.2024 19:38 [19:38:58]line Смена: 466 ФФД: 1.0 [19:38:58]line ЗÐМ: 0300000140 [19:38:58]line РÐМ: 0000000000090913 [19:38:58]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [19:38:58]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [19:38:58]line ФМ: 0000000000874915 [19:38:58]line ФД: 70709 [19:38:58]line ФПД: 239720920301457 [19:38:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T193857&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70709&fm=239720920301457&tin=02508201610067®Number=0000000000090913&sum=32950 [19:38:58]written 0, free lines is 4095 [19:38:58]OFD Sender: Processing packet 70709 [packets to send 67, broken 66] [19:38:58]ProducePacketName [19:38:58]name=ofd_packets/00070709 [19:38:58]OFD Sender: To server: ‡•öpG, [19:38:58]CommunicateWithHost lk.salyk.kg:30040 [19:38:58]ConnectInit lk.salyk.kg [19:38:58]Connected sock=10 [19:38: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 39 31 35 0F 01 00 00 0F 9C 07 01 F5 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B6 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 51 B6 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 35 14 01 00 35 04 06 00 DA 06 60 4C BF 91 AE 15 20 63 1A 66 8A 0F [19:38:58]Write to MH i2c: 01 00 00 CE 05 D3 [19:38:58]Write i2c OK [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: 01 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: 01 07 00 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: 01 07 00 CE 05 00 00 00 00 00 F7 0C DD [19:38:58]RasterBufferAndPrint [19:38:58]line [19:38:58]line [19:38:58]line [19:38:58]line [19:38:58]line [19:38:58]written 0, free lines is 3325 [19:38:58]MH_Cut [19:38:58]Write to MH i2c: D1 01 00 D5 05 01 AC [19:38:58]Write i2c OK [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: D1 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: D1 01 00 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: D1 01 00 D5 05 00 AB [19:38:58]Write to MH i2c: 01 00 00 D6 05 DB [19:38:58]Write i2c OK [19:38:58]MH_I2C_Read... [19:38:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 4F 25 47 00 BB D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 35 14 01 00 F4 03 04 00 3C 5D BB 66 B6 04 01 00 00 6D 80 F1 EC 35 2D B1 A9 [19:38:58]CommunicateWithHost err = 0 [19:38:58]CheckOFDResponse [19:38:58]1017 (14) - 77093643461234 [19:38:58]1041 (16) - 0000000000874915 [19:38:58]1040 (4) - 70709 [19:38:58]1012 (4) - 13.08.2024 13:18 [19:38:58]1206 (1) - 0 [19:38:58]OFD Sender: Remove packet 70709 [19:38:58]ProducePacketName [19:38:58]name=ofd_packets/00070709 [19:38:58]NVStorageDeleteData [19:38:59]*** Cut start [19:38:59]*** Purtial cut [19:38:59]*** Stage 1: CUTSNS_PIN = 1 [19:38:59]OFD Sender: No OFD packet to send [19:38:59]Read from MH i2c: 01 [19:38:59]MH_I2C_Read... [19:38:59]*** Stop cut motor [19:38:59]*** Cut end [19:38:59]Read from MH i2c: 01 07 00 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: 01 07 00 D6 05 00 00 00 00 00 FF 0F F0 [19:38:59]process_action close_receipt done [19:38:59]requested_data is exist [19:38:59]produce_requested_data [19:38:59]requested_item fm.sn is exist - process it [19:38:59]wFMCommunicate request_size=4 [19:38:59]MH_SAM_APDU [19:38:59]CAPDU: 80 11 00 00 [19:38:59]Write to MH i2c: E2 08 00 D7 05 80 11 00 00 00 00 00 00 56 [19:38:59]Write i2c OK [19:38:59]MH_I2C_Read... [19:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:59]Read from MH i2c: E2 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: E2 17 00 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: E2 17 00 D7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 AB [19:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:38:59]wFMCommunicate OK [19:38:59]requested_item fd.num is exist - process it [19:38:59]SAM_PROTO_GetFieldsCounters [19:38:59]wFMCommunicate request_size=4 [19:38:59]MH_SAM_APDU [19:38:59]CAPDU: 80 13 00 00 [19:38:59]Write to MH i2c: E2 08 00 D8 05 80 13 00 00 00 00 00 00 59 [19:38:59]Write i2c OK [19:38:59]MH_I2C_Read... [19:38:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:59]Read from MH i2c: E2 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: E2 62 00 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: E2 62 00 D8 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 35 14 01 00 0E 04 04 00 D2 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 53 [19:38: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 35 14 01 00 0E 04 04 00 D2 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 [19:38:59]wFMCommunicate OK [19:38:59]SAM_PROTO_GetFieldsCounters done [19:38:59]requested_item shift.num is exist - process it [19:38:59]requested_item shift.opened is exist - process it [19:38:59]req_shift_opened [19:38:59]FM_GetShiftState [19:38:59]SAM_PROTO_GetShiftState [19:38:59]wFMCommunicate request_size=4 [19:38:59]MH_SAM_APDU [19:38:59]CAPDU: 80 13 01 00 [19:38:59]Write to MH i2c: E2 08 00 D9 05 80 13 01 00 00 00 00 00 5B [19:38:59]Write i2c OK [19:38:59]MH_I2C_Read... [19:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:00]Read from MH i2c: E2 [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: E2 0E 00 [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: E2 0E 00 D9 05 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 CA [19:39:00]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [19:39:00]wFMCommunicate OK [19:39:00]SAM_PROTO_GetShiftState done [19:39:00]FM_GetShiftState done [19:39:00]req_shift_opened done [19:39:00]requested_item shift.open_date is exist - process it [19:39:00]req_shift_open_date [19:39:00]req_shift_open_date done [19:39:00]produce_requested_data done [19:39:00]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70709,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [19:39:00]process_action_free close_receipt [19:39:00]json_value_free [19:39:00]json_value_free done [19:39:00]process_json_proto returns [19:39:00]Send response to host [19:39:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70709,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [19:39:00]free response buf [19:39:00]execute_script done [19:39:00]execute_script returns [19:39:00]free content buf [19:39:00]Sock 9.Close socket [19:39:00]Sock 9.Thread stoped [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]OFD Sender: No OFD packet to send [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:10]OFD Sender: No OFD packet to send [19:51:15]OFD Sender: No OFD packet to send [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:14]accept exits with 7 [19:55:14]New connection [19:55:14]New thread 3067305316 created [19:55:14]Thread 3067448676 joined [19:55:14]Waiting for new connection... [19:55:14] Sock 7.Parse request [19:55:14]Sock 7.Check first char [19:55:14]Sock 7.First char is OK [19:55:14]request: POST /json_proto HTTP/1.0 [19:55:14]Method: POST [19:55:14]URL: /json_proto [19:55:14]Method is POST - this is cgi request [19:55:14]url: /json_proto [19:55:14]query_string will be loaded in cgi processing [19:55:14]execute_cgi json_proto POST (null) [19:55:14]execute_cgi path=json_proto method=POST [19:55:14]POST find Content-Length [19:55:14]Host: 172.17.58.67:8080 [19:55:14]Content-Length: 808 [19:55:14]Content-Type: application/json [19:55:14] [19:55:14]POST finish read [19:55:14]Found Content-Length = 808 [19:55:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 18.210, "sum" : 1200.04, "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" : 1200.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:14]execute_script... [19:55:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 18.210, "sum" : 1200.04, "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" : 1200.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:14]POST & json_proto [19:55:14]process_json_proto [19:55:14]json parsed OK: [19:55:14]protocol is kg_v1.0 [19:55:14]action value=close_receipt [19:55:14]process_action close_receipt [19:55:14]cmd_close_receipt [19:55:14]MH_GetDate [19:55:14]Write to MH i2c: F0 00 00 DA 05 CE [19:55:14]Write i2c OK [19:55:14]MH_I2C_Read... [19:55:14]Read from MH i2c: F0 [19:55:14]MH_I2C_Read... [19:55:14]Read from MH i2c: F0 09 00 [19:55:14]MH_I2C_Read... [19:55:14]Read from MH i2c: F0 09 00 DA 05 00 23 BA BB 66 94 51 63 64 81 [19:55:14]GetLastDocTimeStamp 1723577937 [19:55:14]current date 1723578915 [19:55:14]FM_GetShiftState [19:55:14]SAM_PROTO_GetShiftState [19:55:14]wFMCommunicate request_size=4 [19:55:14]MH_SAM_APDU [19:55:14]CAPDU: 80 13 01 00 [19:55:14]Write to MH i2c: E2 08 00 DB 05 80 13 01 00 00 00 00 00 5D [19:55:14]Write i2c OK [19:55:14]MH_I2C_Read... [19:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:14]Read from MH i2c: E2 [19:55:14]MH_I2C_Read... [19:55:14]Read from MH i2c: E2 0E 00 [19:55:14]MH_I2C_Read... [19:55:14]Read from MH i2c: E2 0E 00 DB 05 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 CC [19:55:14]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [19:55:14]wFMCommunicate OK [19:55:14]SAM_PROTO_GetShiftState done [19:55:14]FM_GetShiftState done [19:55:14]opened in 1723509656 [19:55:14]opened+sec_in_day 1723596056 [19:55:14]quantity*price = 120003 [19:55:14]sum+1 = 120005 [19:55:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.04 ÐСП 1% : 10.62 ÐДС 12% : 127.44 Ðаличными: 0.00 Безнал.: 1200.04 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 64 13.08.2024 19:55 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70710 ФПД: 53748074834329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T195515&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70710&fm=53748074834329&tin=02508201610067®Number=0000000000090913&sum=120004 [19:55:15]StoreToDocumentArchive [19:55:15]shift 466 fd 70710 [19:55:15]save to /storage/0466/doc_00070710 [19:55:15]save last doc name /storage/0466/doc_00070710 to /storage/kkm_last_doc_name [19:55:15]save OK [19:55:15]Clear old archive folders... [19:55:15]OFD Sender: No OFD packet to send [19:55:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:55:15]tlvbuf is 006B7330 [19:55:15]SAM_PROTO_ClearQueue [19:55:15]wFMCommunicate request_size=4 [19:55:15]MH_SAM_APDU [19:55:15]CAPDU: 80 09 00 00 [19:55:15]Write to MH i2c: E2 08 00 E8 05 80 09 00 00 00 00 00 00 5F [19:55:15]Write i2c OK [19:55:15]MH_I2C_Read... [19:55:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:15]Read from MH i2c: E2 [19:55:15]MH_I2C_Read... [19:55:15]Read from MH i2c: E2 03 00 [19:55:15]MH_I2C_Read... [19:55:15]Read from MH i2c: E2 03 00 E8 05 00 90 00 61 [19:55:15]RAPDU: 90 00 [19:55:15]wFMCommunicate OK [19:55:15]SAM_PROTO_ClearQueue done [19:55:15]KKMCreateOFDPacket [19:55:15]OFDProtocolAddRootSTLVToBuf [19:55:15]FM_MakeSignedData [19:55:15]FM_MakeSignedData [19:55:15]SAM_PROTO_SignData [19:55:15]wFMCommunicate request_size=4 [19:55:15]MH_SAM_APDU [19:55:15]CAPDU: 80 0D 01 02 [19:55:15]Write to MH i2c: E2 08 00 E9 05 80 0D 01 02 00 00 00 00 67 [19:55:15]Write i2c OK [19:55:15]MH_I2C_Read... [19:55:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:15]Read from MH i2c: E2 [19:55:15]MH_I2C_Read... [19:55:15]Read from MH i2c: E2 03 00 [19:55:15]MH_I2C_Read... [19:55:15]Read from MH i2c: E2 03 00 E9 05 00 90 00 62 [19:55:15]RAPDU: 90 00 [19:55:15]wFMCommunicate OK [19:55:15]wFMCommunicate request_size=255 [19:55:15]MH_SAM_APDU [19:55:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 47 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 23 BA BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 36 14 01 00 35 04 06 00 30 [19:55:15]Write to MH i2c: E2 02 01 EA 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 22 47 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 23 BA BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 36 14 01 00 35 04 06 00 30 00 00 2A [19:55:15]Write i2c OK [19:55:15]MH_I2C_Read... [19:55:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:15]Read from MH i2c: E2 [19:55:15]MH_I2C_Read... [19:55:15]Read from MH i2c: E2 03 00 [19:55:15]MH_I2C_Read... [19:55:15]Read from MH i2c: E2 03 00 EA 05 00 90 00 63 [19:55:15]RAPDU: 90 00 [19:55:15]wFMCommunicate OK [19:55:15]wFMCommunicate request_size=10 [19:55:15]MH_SAM_APDU [19:55:15]CAPDU: 80 0D 02 02 05 E2 32 E8 69 99 [19:55:15]Write to MH i2c: E2 0D 00 EB 05 80 0D 02 02 05 00 E2 32 E8 69 99 00 00 72 [19:55:15]Write i2c OK [19:55:15]MH_I2C_Read... [19:55:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:15]Read from MH i2c: E2 [19:55:15]MH_I2C_Read... [19:55:15]Read from MH i2c: E2 03 00 [19:55:15]MH_I2C_Read... [19:55:15]Read from MH i2c: E2 03 00 EB 05 00 90 00 64 [19:55:15]RAPDU: 90 00 [19:55:15]wFMCommunicate OK [19:55:15]wFMCommunicate request_size=4 [19:55:15]MH_SAM_APDU [19:55:15]CAPDU: 80 0D 03 02 [19:55:15]Write to MH i2c: E2 08 00 EC 05 80 0D 03 02 00 00 00 00 6C [19:55:15]Write i2c OK [19:55:15]MH_I2C_Read... [19:55:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:15]Read from MH i2c: E2 [19:55:15]MH_I2C_Read... [19:55:15]Read from MH i2c: E2 0B 00 [19:55:15]MH_I2C_Read... [19:55:15]Read from MH i2c: E2 0B 00 EC 05 00 FE 1B 56 3A 2E 04 26 4A 90 00 B8 [19:55:15]RAPDU: FE 1B 56 3A 2E 04 26 4A 90 00 [19:55:15]wFMCommunicate OK [19:55:15]SAM_PROTO_SignData done [19:55:15]FM_MakeSignedData done [19:55:15]CreateOFDProtocolMessage [19:55:15]wFMCommunicate request_size=4 [19:55:15]MH_SAM_APDU [19:55:15]CAPDU: 80 11 00 00 [19:55:15]Write to MH i2c: E2 08 00 ED 05 80 11 00 00 00 00 00 00 6C [19:55:15]Write i2c OK [19:55:15]MH_I2C_Read... [19:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:16]Read from MH i2c: E2 [19:55:16]MH_I2C_Read... [19:55:16]Read from MH i2c: E2 17 00 [19:55:16]MH_I2C_Read... [19:55:16]Read from MH i2c: E2 17 00 ED 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C1 [19:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:55:16]wFMCommunicate OK [19:55:16]CreateOFDProtocolMessage done [19:55:16]OFDSenderStorePacket 70710 [19:55:16]StoreOFDPacket docnum=70710 [19:55:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 52 9B 07 01 E2 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 47 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 23 BA BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 36 14 01 00 35 04 06 00 30 E2 32 E8 69 99 FE 1B 56 3A 2E 04 26 4A [19:55:16]CheckFolder [19:55:16]dirname=/storage/ofd_packets [19:55:16]CheckFolder done [19:55:16]ProducePacketName [19:55:16]name=ofd_packets/00070710 [19:55:16]NVStorageSaveData ofd_packets/00070710 [19:55:16]File name is /storage/ofd_packets/00070710 [19:55:16]Write 301 bytes [19:55:16]NVStorageSaveData done [19:55:16]OFDSenderStorePacket done [19:55:16]KKMCreateOFDPacket done [19:55:16]NVStorageSaveData kkm_last_timestamp [19:55:16]File name is /storage/kkm_last_timestamp [19:55:16]Write 4 bytes [19:55:16]NVStorageSaveData done [19:55:16]ExternCall_PrintAddStr [19:55:16]wPrintStart [19:55:16]Write to MH i2c: 01 00 00 EE 05 F3 [19:55:16]Write i2c OK [19:55:16]MH_I2C_Read... [19:55:16]Read from MH i2c: 01 [19:55:16]MH_I2C_Read... [19:55:16]Read from MH i2c: 01 07 00 [19:55:16]MH_I2C_Read... [19:55:16]Read from MH i2c: 01 07 00 EE 05 00 00 00 00 00 FF 0F 08 [19:55:16]RasterBufferAndPrint [19:55:16]line Счет N : (1)141170 [19:55:16]line ИÐÐ: 02508201610067 [19:55:16]line Контрольно-КаÑÑовый Чек [19:55:16]line ПРОДÐЖР[19:55:16]line ТРК (МРК, ГÐК) : 41 [19:55:16]line Товар: 2710124130 [19:55:16]line Ðи-92-К-5 [19:55:16]line 18.210 * 65.90 [19:55:16]line = 1200.04 [19:55:16]line ÐДС 12% ÐСП 1% [19:55:16]line > о реализуемом товаре [19:55:16]line ИТОГО: 1200.04 [19:55:16]line ÐСП 1% : 10.62 [19:55:16]line ÐДС 12% : 127.44 [19:55:16]line Ðаличными: 0.00 [19:55:16]line Безнал.: 1200.04 [19:55:16]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [19:55:16]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [19:55:16]line СÐО: Общий режим [19:55:16]line Чек 64 13.08.2024 19:55 [19:55:16]line Смена: 466 ФФД: 1.0 [19:55:16]line ЗÐМ: 0300000140 [19:55:16]line РÐМ: 0000000000090913 [19:55:16]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [19:55:16]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [19:55:16]line ФМ: 0000000000874915 [19:55:16]line ФД: 70710 [19:55:16]line ФПД: 53748074834329 [19:55:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T195515&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70710&fm=53748074834329&tin=02508201610067®Number=0000000000090913&sum=120004 [19:55:16]written 0, free lines is 4095 [19:55:16]OFD Sender: Processing packet 70710 [packets to send 67, broken 66] [19:55:16]ProducePacketName [19:55:16]name=ofd_packets/00070710 [19:55:16]OFD Sender: To server: ‡•öpG, [19:55:16]CommunicateWithHost lk.salyk.kg:30040 [19:55:16]ConnectInit lk.salyk.kg [19:55:16]Connected sock=10 [19:55: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 39 31 35 0F 01 00 00 52 9B 07 01 E2 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 47 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 23 BA BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 36 14 01 00 35 04 06 00 30 E2 32 E8 69 99 FE 1B 56 3A 2E 04 26 4A [19:55:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 1E 28 47 00 50 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 36 14 01 00 F4 03 04 00 0D 61 BB 66 B6 04 01 00 00 B9 BC 9A 33 4B 1E BE 9E [19:55:16]CommunicateWithHost err = 0 [19:55:16]CheckOFDResponse [19:55:16]1017 (14) - 77093643461234 [19:55:16]1041 (16) - 0000000000874915 [19:55:16]1040 (4) - 70710 [19:55:16]1012 (4) - 13.08.2024 13:35 [19:55:16]1206 (1) - 0 [19:55:16]OFD Sender: Remove packet 70710 [19:55:16]ProducePacketName [19:55:16]name=ofd_packets/00070710 [19:55:16]NVStorageDeleteData [19:55:16]Write to MH i2c: 01 00 00 18 06 1E [19:55:16]Write i2c OK [19:55:16]MH_I2C_Read... [19:55:16]Read from MH i2c: 01 [19:55:16]MH_I2C_Read... [19:55:16]Read from MH i2c: 01 07 00 [19:55:16]MH_I2C_Read... [19:55:16]Read from MH i2c: 01 07 00 18 06 00 00 00 00 00 EB 0C 1C [19:55:16]RasterBufferAndPrint [19:55:16]line [19:55:16]line [19:55:16]line [19:55:16]line [19:55:16]line [19:55:16]written 0, free lines is 3313 [19:55:16]MH_Cut [19:55:16]Write to MH i2c: D1 01 00 1F 06 01 F7 [19:55:16]Write i2c OK [19:55:16]MH_I2C_Read... [19:55:16]Read from MH i2c: D1 [19:55:16]MH_I2C_Read... [19:55:16]Read from MH i2c: D1 01 00 [19:55:16]MH_I2C_Read... [19:55:16]Read from MH i2c: D1 01 00 1F 06 00 F6 [19:55:16]Write to MH i2c: 01 00 00 20 06 26 [19:55:16]Write i2c OK [19:55:16]MH_I2C_Read... [19:55:16]OFD Sender: No OFD packet to send [19:55:17]*** Cut start [19:55:17]*** Purtial cut [19:55:17]*** CUTSNS_PIN = 0 [19:55:17]*** Stage 1: CUTSNS_PIN = 1 [19:55:19]Read from MH i2c: 01 [19:55:19]MH_I2C_Read... [19:55:19]*** Stop cut motor [19:55:19]*** Cut end [19:55:19]Read from MH i2c: 01 07 00 [19:55:19]MH_I2C_Read... [19:55:19]Read from MH i2c: 01 07 00 20 06 00 00 00 00 00 FF 0F 3B [19:55:19]process_action close_receipt done [19:55:19]requested_data is exist [19:55:19]produce_requested_data [19:55:19]requested_item fm.sn is exist - process it [19:55:19]wFMCommunicate request_size=4 [19:55:19]MH_SAM_APDU [19:55:19]CAPDU: 80 11 00 00 [19:55:19]Write to MH i2c: E2 08 00 21 06 80 11 00 00 00 00 00 00 A1 [19:55:19]Write i2c OK [19:55:19]MH_I2C_Read... [19:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:19]Read from MH i2c: E2 [19:55:19]MH_I2C_Read... [19:55:19]Read from MH i2c: E2 17 00 [19:55:19]MH_I2C_Read... [19:55:19]Read from MH i2c: E2 17 00 21 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 F6 [19:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:55:19]wFMCommunicate OK [19:55:19]requested_item fd.num is exist - process it [19:55:19]SAM_PROTO_GetFieldsCounters [19:55:19]wFMCommunicate request_size=4 [19:55:19]MH_SAM_APDU [19:55:19]CAPDU: 80 13 00 00 [19:55:19]Write to MH i2c: E2 08 00 22 06 80 13 00 00 00 00 00 00 A4 [19:55:19]Write i2c OK [19:55:19]MH_I2C_Read... [19:55:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:19]Read from MH i2c: E2 [19:55:19]MH_I2C_Read... [19:55:19]Read from MH i2c: E2 62 00 [19:55:19]MH_I2C_Read... [19:55:19]Read from MH i2c: E2 62 00 22 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 36 14 01 00 0E 04 04 00 D2 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 A2 [19:55: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 36 14 01 00 0E 04 04 00 D2 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 [19:55:19]wFMCommunicate OK [19:55:19]SAM_PROTO_GetFieldsCounters done [19:55:19]requested_item shift.num is exist - process it [19:55:19]requested_item shift.opened is exist - process it [19:55:19]req_shift_opened [19:55:19]FM_GetShiftState [19:55:19]SAM_PROTO_GetShiftState [19:55:19]wFMCommunicate request_size=4 [19:55:19]MH_SAM_APDU [19:55:19]CAPDU: 80 13 01 00 [19:55:19]Write to MH i2c: E2 08 00 23 06 80 13 01 00 00 00 00 00 A6 [19:55:19]Write i2c OK [19:55:19]MH_I2C_Read... [19:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:19]Read from MH i2c: E2 [19:55:19]MH_I2C_Read... [19:55:19]Read from MH i2c: E2 0E 00 [19:55:19]MH_I2C_Read... [19:55:19]Read from MH i2c: E2 0E 00 23 06 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 15 [19:55:19]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [19:55:19]wFMCommunicate OK [19:55:19]SAM_PROTO_GetShiftState done [19:55:19]FM_GetShiftState done [19:55:19]req_shift_opened done [19:55:19]requested_item shift.open_date is exist - process it [19:55:19]req_shift_open_date [19:55:19]req_shift_open_date done [19:55:19]produce_requested_data done [19:55:19]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70710,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [19:55:19]process_action_free close_receipt [19:55:19]json_value_free [19:55:19]json_value_free done [19:55:19]process_json_proto returns [19:55:19]Send response to host [19:55:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70710,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [19:55:19]free response buf [19:55:19]execute_script done [19:55:19]execute_script returns [19:55:19]free content buf [19:55:19]Sock 7.Close socket [19:55:19]Sock 7.Thread stoped [19:55:21]OFD Sender: No OFD packet to send [19:55:26]OFD Sender: No OFD packet to send [19:55:31]OFD Sender: No OFD packet to send [19:55:36]OFD Sender: No OFD packet to send [19:55:41]OFD Sender: No OFD packet to send [19:55:46]OFD Sender: No OFD packet to send [19:55:51]OFD Sender: No OFD packet to send [19:55:56]OFD Sender: No OFD packet to send [19:56:01]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]accept exits with 9 [19:57:21]New connection [19:57:21]New thread 3067448676 created [19:57:21]Thread 3067305316 joined [19:57:21]Waiting for new connection... [19:57:21] Sock 9.Parse request [19:57:21]Sock 9.Check first char [19:57:21]Sock 9.First char is OK [19:57:21]request: POST /json_proto HTTP/1.0 [19:57:21]Method: POST [19:57:21]URL: /json_proto [19:57:21]Method is POST - this is cgi request [19:57:21]url: /json_proto [19:57:21]query_string will be loaded in cgi processing [19:57:21]execute_cgi json_proto POST (null) [19:57:21]execute_cgi path=json_proto method=POST [19:57:21]POST find Content-Length [19:57:21]Host: 172.17.58.67:8080 [19:57:21]Content-Length: 805 [19:57:21]Content-Type: application/json [19:57:21] [19:57:21]POST finish read [19:57:21]Found Content-Length = 805 [19:57:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 2.280, "sum" : 150.25, "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" : 150.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:21]execute_script... [19:57:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 2.280, "sum" : 150.25, "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" : 150.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:21]POST & json_proto [19:57:21]process_json_proto [19:57:21]json parsed OK: [19:57:21]protocol is kg_v1.0 [19:57:21]action value=close_receipt [19:57:21]process_action close_receipt [19:57:21]cmd_close_receipt [19:57:21]MH_GetDate [19:57:21]Write to MH i2c: F0 00 00 24 06 19 [19:57:21]Write i2c OK [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: F0 [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: F0 09 00 [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: F0 09 00 24 06 00 A2 BA BB 66 94 51 63 64 4B [19:57:21]GetLastDocTimeStamp 1723578915 [19:57:21]current date 1723579042 [19:57:21]FM_GetShiftState [19:57:21]SAM_PROTO_GetShiftState [19:57:21]wFMCommunicate request_size=4 [19:57:21]MH_SAM_APDU [19:57:21]CAPDU: 80 13 01 00 [19:57:21]Write to MH i2c: E2 08 00 25 06 80 13 01 00 00 00 00 00 A8 [19:57:21]Write i2c OK [19:57:21]MH_I2C_Read... [19:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:21]Read from MH i2c: E2 [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: E2 0E 00 [19:57:21]MH_I2C_Read... [19:57:21]Read from MH i2c: E2 0E 00 25 06 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 17 [19:57:21]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [19:57:21]wFMCommunicate OK [19:57:21]SAM_PROTO_GetShiftState done [19:57:21]FM_GetShiftState done [19:57:21]opened in 1723509656 [19:57:21]opened+sec_in_day 1723596056 [19:57:21]quantity*price = 15025 [19:57:21]sum+1 = 15026 [19:57:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.25 ÐСП 1% : 1.33 ÐДС 12% : 15.96 Ðаличными: 0.00 Безнал.: 150.25 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 65 13.08.2024 19:57 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70711 ФПД: 121038157713353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T195722&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70711&fm=121038157713353&tin=02508201610067®Number=0000000000090913&sum=15025 [19:57:22]StoreToDocumentArchive [19:57:22]shift 466 fd 70711 [19:57:22]save to /storage/0466/doc_00070711 [19:57:22]save last doc name /storage/0466/doc_00070711 to /storage/kkm_last_doc_name [19:57:22]save OK [19:57:22]Clear old archive folders... [19:57:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:57:22]tlvbuf is 006918A0 [19:57:22]SAM_PROTO_ClearQueue [19:57:22]wFMCommunicate request_size=4 [19:57:22]MH_SAM_APDU [19:57:22]CAPDU: 80 09 00 00 [19:57:22]Write to MH i2c: E2 08 00 32 06 80 09 00 00 00 00 00 00 AA [19:57:22]Write i2c OK [19:57:22]MH_I2C_Read... [19:57:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:23]Read from MH i2c: E2 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 03 00 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 03 00 32 06 00 90 00 AC [19:57:23]RAPDU: 90 00 [19:57:23]wFMCommunicate OK [19:57:23]SAM_PROTO_ClearQueue done [19:57:23]KKMCreateOFDPacket [19:57:23]OFDProtocolAddRootSTLVToBuf [19:57:23]FM_MakeSignedData [19:57:23]FM_MakeSignedData [19:57:23]SAM_PROTO_SignData [19:57:23]wFMCommunicate request_size=4 [19:57:23]MH_SAM_APDU [19:57:23]CAPDU: 80 0D 01 02 [19:57:23]Write to MH i2c: E2 08 00 33 06 80 0D 01 02 00 00 00 00 B2 [19:57:23]Write i2c OK [19:57:23]MH_I2C_Read... [19:57:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:23]Read from MH i2c: E2 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 03 00 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 03 00 33 06 00 90 00 AD [19:57:23]RAPDU: 90 00 [19:57:23]wFMCommunicate OK [19:57:23]wFMCommunicate request_size=255 [19:57:23]MH_SAM_APDU [19:57:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B1 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A2 BA BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 37 14 01 00 35 04 06 00 6E [19:57:23]Write to MH i2c: E2 02 01 34 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 E8 08 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B1 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A2 BA BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 37 14 01 00 35 04 06 00 6E 00 00 55 [19:57:23]Write i2c OK [19:57:23]MH_I2C_Read... [19:57:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:23]Read from MH i2c: E2 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 03 00 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 03 00 34 06 00 90 00 AE [19:57:23]RAPDU: 90 00 [19:57:23]wFMCommunicate OK [19:57:23]wFMCommunicate request_size=10 [19:57:23]MH_SAM_APDU [19:57:23]CAPDU: 80 0D 02 02 05 15 64 65 0F C9 [19:57:23]Write to MH i2c: E2 0D 00 35 06 80 0D 02 02 05 00 15 64 65 0F C9 00 00 75 [19:57:23]Write i2c OK [19:57:23]MH_I2C_Read... [19:57:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:23]Read from MH i2c: E2 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 03 00 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 03 00 35 06 00 90 00 AF [19:57:23]RAPDU: 90 00 [19:57:23]wFMCommunicate OK [19:57:23]wFMCommunicate request_size=4 [19:57:23]MH_SAM_APDU [19:57:23]CAPDU: 80 0D 03 02 [19:57:23]Write to MH i2c: E2 08 00 36 06 80 0D 03 02 00 00 00 00 B7 [19:57:23]Write i2c OK [19:57:23]MH_I2C_Read... [19:57:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:23]Read from MH i2c: E2 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 0B 00 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 0B 00 36 06 00 CF 16 43 3B 25 2B D9 64 90 00 A8 [19:57:23]RAPDU: CF 16 43 3B 25 2B D9 64 90 00 [19:57:23]wFMCommunicate OK [19:57:23]SAM_PROTO_SignData done [19:57:23]FM_MakeSignedData done [19:57:23]CreateOFDProtocolMessage [19:57:23]wFMCommunicate request_size=4 [19:57:23]MH_SAM_APDU [19:57:23]CAPDU: 80 11 00 00 [19:57:23]Write to MH i2c: E2 08 00 37 06 80 11 00 00 00 00 00 00 B7 [19:57:23]Write i2c OK [19:57:23]MH_I2C_Read... [19:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:23]Read from MH i2c: E2 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 17 00 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: E2 17 00 37 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 0C [19:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:57:23]wFMCommunicate OK [19:57:23]CreateOFDProtocolMessage done [19:57:23]OFDSenderStorePacket 70711 [19:57:23]StoreOFDPacket docnum=70711 [19:57:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 C8 83 07 01 F1 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B1 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A2 BA BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 37 14 01 00 35 04 06 00 6E 15 64 65 0F C9 CF 16 43 3B 25 2B D9 64 [19:57:23]CheckFolder [19:57:23]dirname=/storage/ofd_packets [19:57:23]CheckFolder done [19:57:23]ProducePacketName [19:57:23]name=ofd_packets/00070711 [19:57:23]NVStorageSaveData ofd_packets/00070711 [19:57:23]File name is /storage/ofd_packets/00070711 [19:57:23]Write 301 bytes [19:57:23]NVStorageSaveData done [19:57:23]OFDSenderStorePacket done [19:57:23]KKMCreateOFDPacket done [19:57:23]NVStorageSaveData kkm_last_timestamp [19:57:23]File name is /storage/kkm_last_timestamp [19:57:23]Write 4 bytes [19:57:23]NVStorageSaveData done [19:57:23]ExternCall_PrintAddStr [19:57:23]wPrintStart [19:57:23]Write to MH i2c: 01 00 00 38 06 3E [19:57:23]Write i2c OK [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: 01 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: 01 07 00 [19:57:23]MH_I2C_Read... [19:57:23]Read from MH i2c: 01 07 00 38 06 00 00 00 00 00 FF 0F 53 [19:57:23]RasterBufferAndPrint [19:57:23]line Счет N : (1)141171 [19:57:23]line ИÐÐ: 02508201610067 [19:57:23]line Контрольно-КаÑÑовый Чек [19:57:23]line ПРОДÐЖР[19:57:23]line ТРК (МРК, ГÐК) : 31 [19:57:23]line Товар: 2710124130 [19:57:23]line Ðи-92-К-5 [19:57:23]line 2.280 * 65.90 [19:57:23]line = 150.25 [19:57:23]line ÐДС 12% ÐСП 1% [19:57:23]line > о реализуемом товаре [19:57:23]line ИТОГО: 150.25 [19:57:23]line ÐСП 1% : 1.33 [19:57:23]line ÐДС 12% : 15.96 [19:57:23]line Ðаличными: 0.00 [19:57:23]line Безнал.: 150.25 [19:57:23]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [19:57:23]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [19:57:23]line СÐО: Общий режим [19:57:23]line Чек 65 13.08.2024 19:57 [19:57:23]line Смена: 466 ФФД: 1.0 [19:57:23]line ЗÐМ: 0300000140 [19:57:23]line РÐМ: 0000000000090913 [19:57:23]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [19:57:23]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [19:57:23]line ФМ: 0000000000874915 [19:57:23]line ФД: 70711 [19:57:23]line ФПД: 121038157713353 [19:57:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T195722&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70711&fm=121038157713353&tin=02508201610067®Number=0000000000090913&sum=15025 [19:57:23]OFD Sender: Processing packet 70711 [packets to send 67, broken 66] [19:57:23]ProducePacketName [19:57:23]name=ofd_packets/00070711 [19:57:23]OFD Sender: To server: ‡•öpG, [19:57:23]CommunicateWithHost lk.salyk.kg:30040 [19:57:23]ConnectInit lk.salyk.kg [19:57:23]written 0, free lines is 4095 [19:57:23]Connected sock=10 [19:57:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 C8 83 07 01 F1 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B1 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A2 BA BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 37 14 01 00 35 04 06 00 6E 15 64 65 0F C9 CF 16 43 3B 25 2B D9 64 [19:57:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 4B 66 47 00 16 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 37 14 01 00 F4 03 04 00 8D 61 BB 66 B6 04 01 00 00 8A FB E5 B5 06 EB 50 21 [19:57:24]CommunicateWithHost err = 0 [19:57:24]CheckOFDResponse [19:57:24]1017 (14) - 77093643461234 [19:57:24]1041 (16) - 0000000000874915 [19:57:24]1040 (4) - 70711 [19:57:24]1012 (4) - 13.08.2024 13:37 [19:57:24]1206 (1) - 0 [19:57:24]OFD Sender: Remove packet 70711 [19:57:24]ProducePacketName [19:57:24]name=ofd_packets/00070711 [19:57:24]NVStorageDeleteData [19:57:24]Write to MH i2c: 01 00 00 62 06 68 [19:57:24]Write i2c OK [19:57:24]MH_I2C_Read... [19:57:24]Read from MH i2c: 01 [19:57:24]MH_I2C_Read... [19:57:24]Read from MH i2c: 01 07 00 [19:57:24]MH_I2C_Read... [19:57:24]Read from MH i2c: 01 07 00 62 06 00 00 00 00 00 E6 0C 61 [19:57:24]RasterBufferAndPrint [19:57:24]line [19:57:24]line [19:57:24]line [19:57:24]line [19:57:24]line [19:57:24]written 0, free lines is 3308 [19:57:24]MH_Cut [19:57:24]Write to MH i2c: D1 01 00 69 06 01 41 [19:57:24]Write i2c OK [19:57:24]MH_I2C_Read... [19:57:24]Read from MH i2c: D1 [19:57:24]MH_I2C_Read... [19:57:24]Read from MH i2c: D1 01 00 [19:57:24]MH_I2C_Read... [19:57:24]Read from MH i2c: D1 01 00 69 06 00 40 [19:57:24]Write to MH i2c: 01 00 00 6A 06 70 [19:57:24]Write i2c OK [19:57:24]MH_I2C_Read... [19:57:24]OFD Sender: No OFD packet to send [19:57:24]*** Cut start [19:57:24]*** Purtial cut [19:57:24]*** Stage 1: CUTSNS_PIN = 1 [19:57:25]Read from MH i2c: 01 [19:57:25]MH_I2C_Read... [19:57:25]*** Stop cut motor [19:57:25]*** Cut end [19:57:25]Read from MH i2c: 01 07 00 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: 01 07 00 6A 06 00 00 00 00 00 FF 0F 85 [19:57:25]process_action close_receipt done [19:57:25]requested_data is exist [19:57:25]produce_requested_data [19:57:25]requested_item fm.sn is exist - process it [19:57:25]wFMCommunicate request_size=4 [19:57:25]MH_SAM_APDU [19:57:25]CAPDU: 80 11 00 00 [19:57:25]Write to MH i2c: E2 08 00 6B 06 80 11 00 00 00 00 00 00 EB [19:57:25]Write i2c OK [19:57:25]MH_I2C_Read... [19:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:25]Read from MH i2c: E2 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: E2 17 00 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: E2 17 00 6B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 40 [19:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:57:25]wFMCommunicate OK [19:57:25]requested_item fd.num is exist - process it [19:57:25]SAM_PROTO_GetFieldsCounters [19:57:25]wFMCommunicate request_size=4 [19:57:25]MH_SAM_APDU [19:57:25]CAPDU: 80 13 00 00 [19:57:25]Write to MH i2c: E2 08 00 6C 06 80 13 00 00 00 00 00 00 EE [19:57:25]Write i2c OK [19:57:25]MH_I2C_Read... [19:57:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:25]Read from MH i2c: E2 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: E2 62 00 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: E2 62 00 6C 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 37 14 01 00 0E 04 04 00 D2 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 F0 [19:57: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 37 14 01 00 0E 04 04 00 D2 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 [19:57:25]wFMCommunicate OK [19:57:25]SAM_PROTO_GetFieldsCounters done [19:57:25]requested_item shift.num is exist - process it [19:57:25]requested_item shift.opened is exist - process it [19:57:25]req_shift_opened [19:57:25]FM_GetShiftState [19:57:25]SAM_PROTO_GetShiftState [19:57:25]wFMCommunicate request_size=4 [19:57:25]MH_SAM_APDU [19:57:25]CAPDU: 80 13 01 00 [19:57:25]Write to MH i2c: E2 08 00 6D 06 80 13 01 00 00 00 00 00 F0 [19:57:25]Write i2c OK [19:57:25]MH_I2C_Read... [19:57:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:25]Read from MH i2c: E2 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: E2 0E 00 [19:57:25]MH_I2C_Read... [19:57:25]Read from MH i2c: E2 0E 00 6D 06 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 5F [19:57:25]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [19:57:25]wFMCommunicate OK [19:57:25]SAM_PROTO_GetShiftState done [19:57:25]FM_GetShiftState done [19:57:25]req_shift_opened done [19:57:25]requested_item shift.open_date is exist - process it [19:57:25]req_shift_open_date [19:57:25]req_shift_open_date done [19:57:25]produce_requested_data done [19:57:25]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70711,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [19:57:25]process_action_free close_receipt [19:57:25]json_value_free [19:57:25]json_value_free done [19:57:25]process_json_proto returns [19:57:25]Send response to host [19:57:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70711,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [19:57:25]free response buf [19:57:25]execute_script done [19:57:25]execute_script returns [19:57:25]free content buf [19:57:25]Sock 9.Close socket [19:57:25]Sock 9.Thread stoped [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:57:59]accept exits with 7 [19:57:59]New connection [19:57:59]New thread 3067305316 created [19:57:59]Thread 3067448676 joined [19:57:59]Waiting for new connection... [19:57:59] Sock 7.Parse request [19:57:59]Sock 7.Check first char [19:57:59]Sock 7.First char is OK [19:57:59]request: POST /json_proto HTTP/1.0 [19:57:59]Method: POST [19:57:59]URL: /json_proto [19:57:59]Method is POST - this is cgi request [19:57:59]url: /json_proto [19:57:59]query_string will be loaded in cgi processing [19:57:59]execute_cgi json_proto POST (null) [19:57:59]execute_cgi path=json_proto method=POST [19:57:59]POST find Content-Length [19:57:59]Host: 172.17.58.67:8080 [19:57:59]Content-Length: 805 [19:57:59]Content-Type: application/json [19:57:59] [19:57:59]POST finish read [19:57:59]Found Content-Length = 805 [19:57:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:59]execute_script... [19:57: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)141172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:59]POST & json_proto [19:57:59]process_json_proto [19:57:59]json parsed OK: [19:57:59]protocol is kg_v1.0 [19:57:59]action value=close_receipt [19:57:59]process_action close_receipt [19:57:59]cmd_close_receipt [19:57:59]MH_GetDate [19:57:59]Write to MH i2c: F0 00 00 6E 06 63 [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: F0 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: F0 09 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: F0 09 00 6E 06 00 C8 BA BB 66 94 51 63 64 BB [19:57:59]GetLastDocTimeStamp 1723579042 [19:57:59]current date 1723579080 [19:57:59]FM_GetShiftState [19:57:59]SAM_PROTO_GetShiftState [19:57:59]wFMCommunicate request_size=4 [19:57:59]MH_SAM_APDU [19:57:59]CAPDU: 80 13 01 00 [19:57:59]Write to MH i2c: E2 08 00 6F 06 80 13 01 00 00 00 00 00 F2 [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:59]Read from MH i2c: E2 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 0E 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 0E 00 6F 06 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 61 [19:57:59]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [19:57:59]wFMCommunicate OK [19:57:59]SAM_PROTO_GetShiftState done [19:57:59]FM_GetShiftState done [19:57:59]opened in 1723509656 [19:57:59]opened+sec_in_day 1723596056 [19:57:59]quantity*price = 30050 [19:57:59]sum+1 = 30051 [19:57:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.50 ÐСП 1% : 2.66 ÐДС 12% : 31.91 Ðаличными: 0.00 Безнал.: 300.50 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 66 13.08.2024 19:58 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70712 ФПД: 60856830712195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T195800&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70712&fm=60856830712195&tin=02508201610067®Number=0000000000090913&sum=30050 [19:58:00]StoreToDocumentArchive [19:58:00]shift 466 fd 70712 [19:58:00]save to /storage/0466/doc_00070712 [19:58:00]save last doc name /storage/0466/doc_00070712 to /storage/kkm_last_doc_name [19:58:00]save OK [19:58:00]Clear old archive folders... [19:58:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:58:00]tlvbuf is 006EF6E0 [19:58:00]SAM_PROTO_ClearQueue [19:58:00]wFMCommunicate request_size=4 [19:58:00]MH_SAM_APDU [19:58:00]CAPDU: 80 09 00 00 [19:58:00]Write to MH i2c: E2 08 00 7C 06 80 09 00 00 00 00 00 00 F4 [19:58:00]Write i2c OK [19:58:00]MH_I2C_Read... [19:58:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:01]Read from MH i2c: E2 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 03 00 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 03 00 7C 06 00 90 00 F6 [19:58:01]RAPDU: 90 00 [19:58:01]wFMCommunicate OK [19:58:01]SAM_PROTO_ClearQueue done [19:58:01]KKMCreateOFDPacket [19:58:01]OFDProtocolAddRootSTLVToBuf [19:58:01]FM_MakeSignedData [19:58:01]FM_MakeSignedData [19:58:01]SAM_PROTO_SignData [19:58:01]wFMCommunicate request_size=4 [19:58:01]MH_SAM_APDU [19:58:01]CAPDU: 80 0D 01 02 [19:58:01]Write to MH i2c: E2 08 00 7D 06 80 0D 01 02 00 00 00 00 FC [19:58:01]Write i2c OK [19:58:01]MH_I2C_Read... [19:58:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:01]Read from MH i2c: E2 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 03 00 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 03 00 7D 06 00 90 00 F7 [19:58:01]RAPDU: 90 00 [19:58:01]wFMCommunicate OK [19:58:01]wFMCommunicate request_size=255 [19:58:01]MH_SAM_APDU [19:58:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 C8 BA BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 38 14 01 00 35 04 06 00 37 [19:58:01]Write to MH i2c: E2 02 01 7E 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 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 C8 BA BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 38 14 01 00 35 04 06 00 37 00 00 0C [19:58:01]Write i2c OK [19:58:01]MH_I2C_Read... [19:58:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:01]Read from MH i2c: E2 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 03 00 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 03 00 7E 06 00 90 00 F8 [19:58:01]RAPDU: 90 00 [19:58:01]wFMCommunicate OK [19:58:01]wFMCommunicate request_size=10 [19:58:01]MH_SAM_APDU [19:58:01]CAPDU: 80 0D 02 02 05 59 55 C6 D9 83 [19:58:01]Write to MH i2c: E2 0D 00 7F 06 80 0D 02 02 05 00 59 55 C6 D9 83 00 00 D9 [19:58:01]Write i2c OK [19:58:01]MH_I2C_Read... [19:58:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:01]Read from MH i2c: E2 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 03 00 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 03 00 7F 06 00 90 00 F9 [19:58:01]RAPDU: 90 00 [19:58:01]wFMCommunicate OK [19:58:01]wFMCommunicate request_size=4 [19:58:01]MH_SAM_APDU [19:58:01]CAPDU: 80 0D 03 02 [19:58:01]Write to MH i2c: E2 08 00 80 06 80 0D 03 02 00 00 00 00 01 [19:58:01]Write i2c OK [19:58:01]MH_I2C_Read... [19:58:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:01]Read from MH i2c: E2 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 0B 00 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 0B 00 80 06 00 FC 54 9E F3 CD 21 F2 CD 90 00 90 [19:58:01]RAPDU: FC 54 9E F3 CD 21 F2 CD 90 00 [19:58:01]wFMCommunicate OK [19:58:01]SAM_PROTO_SignData done [19:58:01]FM_MakeSignedData done [19:58:01]CreateOFDProtocolMessage [19:58:01]wFMCommunicate request_size=4 [19:58:01]MH_SAM_APDU [19:58:01]CAPDU: 80 11 00 00 [19:58:01]Write to MH i2c: E2 08 00 81 06 80 11 00 00 00 00 00 00 01 [19:58:01]Write i2c OK [19:58:01]MH_I2C_Read... [19:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:01]Read from MH i2c: E2 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 17 00 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 17 00 81 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 56 [19:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:58:01]wFMCommunicate OK [19:58:01]CreateOFDProtocolMessage done [19:58:01]OFDSenderStorePacket 70712 [19:58:01]StoreOFDPacket docnum=70712 [19:58:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 10 89 07 01 39 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 C8 BA BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 38 14 01 00 35 04 06 00 37 59 55 C6 D9 83 FC 54 9E F3 CD 21 F2 CD [19:58:01]CheckFolder [19:58:01]dirname=/storage/ofd_packets [19:58:01]CheckFolder done [19:58:01]ProducePacketName [19:58:01]name=ofd_packets/00070712 [19:58:01]NVStorageSaveData ofd_packets/00070712 [19:58:01]File name is /storage/ofd_packets/00070712 [19:58:01]Write 301 bytes [19:58:01]NVStorageSaveData done [19:58:01]OFDSenderStorePacket done [19:58:01]KKMCreateOFDPacket done [19:58:01]NVStorageSaveData kkm_last_timestamp [19:58:01]File name is /storage/kkm_last_timestamp [19:58:01]Write 4 bytes [19:58:01]NVStorageSaveData done [19:58:01]ExternCall_PrintAddStr [19:58:01]wPrintStart [19:58:01]Write to MH i2c: 01 00 00 82 06 88 [19:58:01]Write i2c OK [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: 01 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: 01 07 00 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: 01 07 00 82 06 00 00 00 00 00 FF 0F 9D [19:58:01]RasterBufferAndPrint [19:58:01]line Счет N : (1)141172 [19:58:01]line ИÐÐ: 02508201610067 [19:58:01]line Контрольно-КаÑÑовый Чек [19:58:01]line ПРОДÐЖР[19:58:01]line ТРК (МРК, ГÐК) : 41 [19:58:01]line Товар: 2710124130 [19:58:01]line Ðи-92-К-5 [19:58:01]line 4.560 * 65.90 [19:58:01]line = 300.50 [19:58:01]line ÐДС 12% ÐСП 1% [19:58:01]line > о реализуемом товаре [19:58:01]line ИТОГО: 300.50 [19:58:01]line ÐСП 1% : 2.66 [19:58:01]line ÐДС 12% : 31.91 [19:58:01]line Ðаличными: 0.00 [19:58:01]line Безнал.: 300.50 [19:58:01]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [19:58:01]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [19:58:01]line СÐО: Общий режим [19:58:01]line Чек 66 13.08.2024 19:58 [19:58:01]line Смена: 466 ФФД: 1.0 [19:58:01]line ЗÐМ: 0300000140 [19:58:01]line РÐМ: 0000000000090913 [19:58:01]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [19:58:01]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [19:58:01]line ФМ: 0000000000874915 [19:58:01]line ФД: 70712 [19:58:01]line ФПД: 60856830712195 [19:58:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T195800&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70712&fm=60856830712195&tin=02508201610067®Number=0000000000090913&sum=30050 [19:58:01]written 0, free lines is 4095 [19:58:01]OFD Sender: Processing packet 70712 [packets to send 67, broken 66] [19:58:01]ProducePacketName [19:58:01]name=ofd_packets/00070712 [19:58:01]OFD Sender: To server: ‡•öpG, [19:58:01]CommunicateWithHost lk.salyk.kg:30040 [19:58:01]ConnectInit lk.salyk.kg [19:58:01]Connected sock=10 [19:58: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 39 31 35 0F 01 00 00 10 89 07 01 39 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 C8 BA BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 38 14 01 00 35 04 06 00 37 59 55 C6 D9 83 FC 54 9E F3 CD 21 F2 CD [19:58:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 5F B2 47 00 B5 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 38 14 01 00 F4 03 04 00 B2 61 BB 66 B6 04 01 00 00 64 8D D6 34 E1 4A C1 EC [19:58:01]CommunicateWithHost err = 0 [19:58:01]CheckOFDResponse [19:58:01]1017 (14) - 77093643461234 [19:58:01]1041 (16) - 0000000000874915 [19:58:01]1040 (4) - 70712 [19:58:01]1012 (4) - 13.08.2024 13:37 [19:58:01]1206 (1) - 0 [19:58:01]OFD Sender: Remove packet 70712 [19:58:01]ProducePacketName [19:58:01]name=ofd_packets/00070712 [19:58:01]NVStorageDeleteData [19:58:01]Write to MH i2c: 01 00 00 AC 06 B2 [19:58:01]Write i2c OK [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: 01 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: 01 07 00 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: 01 07 00 AC 06 00 00 00 00 00 F4 0C B9 [19:58:01]RasterBufferAndPrint [19:58:01]line [19:58:01]line [19:58:01]line [19:58:01]line [19:58:01]line [19:58:01]written 0, free lines is 3322 [19:58:01]MH_Cut [19:58:01]Write to MH i2c: D1 01 00 B3 06 01 8B [19:58:01]Write i2c OK [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: D1 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: D1 01 00 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: D1 01 00 B3 06 00 8A [19:58:01]Write to MH i2c: 01 00 00 B4 06 BA [19:58:01]Write i2c OK [19:58:01]MH_I2C_Read... [19:58:02]OFD Sender: No OFD packet to send [19:58:02]*** Cut start [19:58:02]*** Purtial cut [19:58:02]*** CUTSNS_PIN = 0 [19:58:02]*** Stage 1: CUTSNS_PIN = 1 [19:58:04]Read from MH i2c: 01 [19:58:04]MH_I2C_Read... [19:58:04]*** Stop cut motor [19:58:04]*** Cut end [19:58:04]Read from MH i2c: 01 07 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 07 00 B4 06 00 00 00 00 00 FF 0F CF [19:58:04]process_action close_receipt done [19:58:04]requested_data is exist [19:58:04]produce_requested_data [19:58:04]requested_item fm.sn is exist - process it [19:58:04]wFMCommunicate request_size=4 [19:58:04]MH_SAM_APDU [19:58:04]CAPDU: 80 11 00 00 [19:58:04]Write to MH i2c: E2 08 00 B5 06 80 11 00 00 00 00 00 00 35 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:04]Read from MH i2c: E2 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 17 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 17 00 B5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 8A [19:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:58:04]wFMCommunicate OK [19:58:04]requested_item fd.num is exist - process it [19:58:04]SAM_PROTO_GetFieldsCounters [19:58:04]wFMCommunicate request_size=4 [19:58:04]MH_SAM_APDU [19:58:04]CAPDU: 80 13 00 00 [19:58:04]Write to MH i2c: E2 08 00 B6 06 80 13 00 00 00 00 00 00 38 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:04]Read from MH i2c: E2 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 62 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 62 00 B6 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 38 14 01 00 0E 04 04 00 D2 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 3E [19:58:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 38 14 01 00 0E 04 04 00 D2 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 [19:58:04]wFMCommunicate OK [19:58:04]SAM_PROTO_GetFieldsCounters done [19:58:04]requested_item shift.num is exist - process it [19:58:04]requested_item shift.opened is exist - process it [19:58:04]req_shift_opened [19:58:04]FM_GetShiftState [19:58:04]SAM_PROTO_GetShiftState [19:58:04]wFMCommunicate request_size=4 [19:58:04]MH_SAM_APDU [19:58:04]CAPDU: 80 13 01 00 [19:58:04]Write to MH i2c: E2 08 00 B7 06 80 13 01 00 00 00 00 00 3A [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:04]Read from MH i2c: E2 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 0E 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 0E 00 B7 06 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 A9 [19:58:04]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [19:58:04]wFMCommunicate OK [19:58:04]SAM_PROTO_GetShiftState done [19:58:04]FM_GetShiftState done [19:58:04]req_shift_opened done [19:58:04]requested_item shift.open_date is exist - process it [19:58:04]req_shift_open_date [19:58:04]req_shift_open_date done [19:58:04]produce_requested_data done [19:58:04]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70712,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [19:58:04]process_action_free close_receipt [19:58:04]json_value_free [19:58:04]json_value_free done [19:58:04]process_json_proto returns [19:58:04]Send response to host [19:58:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70712,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [19:58:04]free response buf [19:58:04]execute_script done [19:58:04]execute_script returns [19:58:04]free content buf [19:58:04]Sock 7.Close socket [19:58:04]Sock 7.Thread stoped [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [20:01:12]OFD Sender: No OFD packet to send [20:01:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:23]OFD Sender: No OFD packet to send [20:26:28]OFD Sender: No OFD packet to send [20:26:33]OFD Sender: No OFD packet to send [20:26:38]OFD Sender: No OFD packet to send [20:26:43]OFD Sender: No OFD packet to send [20:26:48]OFD Sender: No OFD packet to send [20:26:53]OFD Sender: No OFD packet to send [20:26:58]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:39]accept exits with 9 [20:29:39]New connection [20:29:39]New thread 3067448676 created [20:29:39]Thread 3067305316 joined [20:29:39]Waiting for new connection... [20:29:39] Sock 9.Parse request [20:29:39]Sock 9.Check first char [20:29:39]Sock 9.First char is OK [20:29:39]request: POST /json_proto HTTP/1.0 [20:29:39]Method: POST [20:29:39]URL: /json_proto [20:29:39]Method is POST - this is cgi request [20:29:39]url: /json_proto [20:29:39]query_string will be loaded in cgi processing [20:29:39]execute_cgi json_proto POST (null) [20:29:39]execute_cgi path=json_proto method=POST [20:29:39]POST find Content-Length [20:29:39]Host: 172.17.58.67:8080 [20:29:39]Content-Length: 808 [20:29:39]Content-Type: application/json [20:29:39] [20:29:39]POST finish read [20:29:39]Found Content-Length = 808 [20:29:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "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.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:39]execute_script... [20:29: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)141173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "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.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:39]POST & json_proto [20:29:39]process_json_proto [20:29:39]json parsed OK: [20:29:39]protocol is kg_v1.0 [20:29:39]action value=close_receipt [20:29:39]process_action close_receipt [20:29:39]cmd_close_receipt [20:29:39]MH_GetDate [20:29:39]Write to MH i2c: F0 00 00 B8 06 AD [20:29:39]Write i2c OK [20:29:39]MH_I2C_Read... [20:29:39]Read from MH i2c: F0 [20:29:39]MH_I2C_Read... [20:29:39]Read from MH i2c: F0 09 00 [20:29:39]MH_I2C_Read... [20:29:39]Read from MH i2c: F0 09 00 B8 06 00 34 C2 BB 66 94 51 63 64 79 [20:29:39]GetLastDocTimeStamp 1723579080 [20:29:39]current date 1723580980 [20:29:39]FM_GetShiftState [20:29:39]SAM_PROTO_GetShiftState [20:29:39]wFMCommunicate request_size=4 [20:29:39]MH_SAM_APDU [20:29:39]CAPDU: 80 13 01 00 [20:29:39]Write to MH i2c: E2 08 00 B9 06 80 13 01 00 00 00 00 00 3C [20:29:39]Write i2c OK [20:29:39]MH_I2C_Read... [20:29:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:39]Read from MH i2c: E2 [20:29:39]MH_I2C_Read... [20:29:39]Read from MH i2c: E2 0E 00 [20:29:39]MH_I2C_Read... [20:29:39]Read from MH i2c: E2 0E 00 B9 06 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 AB [20:29:39]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [20:29:39]wFMCommunicate OK [20:29:39]SAM_PROTO_GetShiftState done [20:29:39]FM_GetShiftState done [20:29:39]opened in 1723509656 [20:29:39]opened+sec_in_day 1723596056 [20:29:39]quantity*price = 200006 [20:29:39]sum+1 = 200008 [20:29:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.07 ÐСП 1% : 17.70 ÐДС 12% : 212.40 Ðаличными: 0.00 Безнал.: 2000.07 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 67 13.08.2024 20:29 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70713 ФПД: 137795252672266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T202940&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70713&fm=137795252672266&tin=02508201610067®Number=0000000000090913&sum=200007 [20:29:40]StoreToDocumentArchive [20:29:40]shift 466 fd 70713 [20:29:40]save to /storage/0466/doc_00070713 [20:29:40]save last doc name /storage/0466/doc_00070713 to /storage/kkm_last_doc_name [20:29:40]save OK [20:29:40]Clear old archive folders... [20:29:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:29:40]tlvbuf is 006B7B00 [20:29:40]SAM_PROTO_ClearQueue [20:29:40]wFMCommunicate request_size=4 [20:29:40]MH_SAM_APDU [20:29:40]CAPDU: 80 09 00 00 [20:29:40]Write to MH i2c: E2 08 00 C6 06 80 09 00 00 00 00 00 00 3E [20:29:40]Write i2c OK [20:29:40]MH_I2C_Read... [20:29:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:40]Read from MH i2c: E2 [20:29:40]MH_I2C_Read... [20:29:40]Read from MH i2c: E2 03 00 [20:29:40]MH_I2C_Read... [20:29:40]Read from MH i2c: E2 03 00 C6 06 00 90 00 40 [20:29:40]RAPDU: 90 00 [20:29:40]wFMCommunicate OK [20:29:40]SAM_PROTO_ClearQueue done [20:29:40]KKMCreateOFDPacket [20:29:40]OFDProtocolAddRootSTLVToBuf [20:29:40]FM_MakeSignedData [20:29:40]FM_MakeSignedData [20:29:40]SAM_PROTO_SignData [20:29:40]wFMCommunicate request_size=4 [20:29:40]MH_SAM_APDU [20:29:40]CAPDU: 80 0D 01 02 [20:29:40]Write to MH i2c: E2 08 00 C7 06 80 0D 01 02 00 00 00 00 46 [20:29:40]Write i2c OK [20:29:40]MH_I2C_Read... [20:29:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:40]Read from MH i2c: E2 [20:29:40]MH_I2C_Read... [20:29:40]Read from MH i2c: E2 03 00 [20:29:40]MH_I2C_Read... [20:29:40]Read from MH i2c: E2 03 00 C7 06 00 90 00 41 [20:29:40]RAPDU: 90 00 [20:29:40]wFMCommunicate OK [20:29:40]wFMCommunicate request_size=255 [20:29:40]MH_SAM_APDU [20:29:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 47 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 47 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 34 C2 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 39 14 01 00 35 04 06 00 7D [20:29:40]Write to MH i2c: E2 02 01 C8 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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 47 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 47 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 34 C2 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 39 14 01 00 35 04 06 00 7D 00 00 61 [20:29:40]Write i2c OK [20:29:40]MH_I2C_Read... [20:29:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:40]Read from MH i2c: E2 [20:29:40]MH_I2C_Read... [20:29:40]Read from MH i2c: E2 03 00 [20:29:40]MH_I2C_Read... [20:29:40]Read from MH i2c: E2 03 00 C8 06 00 90 00 42 [20:29:40]RAPDU: 90 00 [20:29:40]wFMCommunicate OK [20:29:40]wFMCommunicate request_size=10 [20:29:40]MH_SAM_APDU [20:29:40]CAPDU: 80 0D 02 02 05 52 F5 16 57 0A [20:29:40]Write to MH i2c: E2 0D 00 C9 06 80 0D 02 02 05 00 52 F5 16 57 0A 00 00 11 [20:29:40]Write i2c OK [20:29:40]MH_I2C_Read... [20:29:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:40]Read from MH i2c: E2 [20:29:40]MH_I2C_Read... [20:29:40]Read from MH i2c: E2 03 00 [20:29:40]MH_I2C_Read... [20:29:40]Read from MH i2c: E2 03 00 C9 06 00 90 00 43 [20:29:40]RAPDU: 90 00 [20:29:40]wFMCommunicate OK [20:29:40]wFMCommunicate request_size=4 [20:29:40]MH_SAM_APDU [20:29:40]CAPDU: 80 0D 03 02 [20:29:40]Write to MH i2c: E2 08 00 CA 06 80 0D 03 02 00 00 00 00 4B [20:29:40]Write i2c OK [20:29:40]MH_I2C_Read... [20:29:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:40]Read from MH i2c: E2 [20:29:40]MH_I2C_Read... [20:29:40]Read from MH i2c: E2 0B 00 [20:29:40]MH_I2C_Read... [20:29:40]Read from MH i2c: E2 0B 00 CA 06 00 EC FD BB 7C 98 06 A2 8C 90 00 38 [20:29:40]RAPDU: EC FD BB 7C 98 06 A2 8C 90 00 [20:29:40]wFMCommunicate OK [20:29:40]SAM_PROTO_SignData done [20:29:40]FM_MakeSignedData done [20:29:40]CreateOFDProtocolMessage [20:29:40]wFMCommunicate request_size=4 [20:29:40]MH_SAM_APDU [20:29:40]CAPDU: 80 11 00 00 [20:29:40]Write to MH i2c: E2 08 00 CB 06 80 11 00 00 00 00 00 00 4B [20:29:40]Write i2c OK [20:29:40]MH_I2C_Read... [20:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:40]Read from MH i2c: E2 [20:29:40]MH_I2C_Read... [20:29:40]Read from MH i2c: E2 17 00 [20:29:40]MH_I2C_Read... [20:29:40]Read from MH i2c: E2 17 00 CB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 A0 [20:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [20:29:40]wFMCommunicate OK [20:29:40]CreateOFDProtocolMessage done [20:29:40]OFDSenderStorePacket 70713 [20:29:40]StoreOFDPacket docnum=70713 [20:29:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 C1 23 07 01 F1 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 47 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 47 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 34 C2 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 39 14 01 00 35 04 06 00 7D 52 F5 16 57 0A EC FD BB 7C 98 06 A2 8C [20:29:40]CheckFolder [20:29:40]dirname=/storage/ofd_packets [20:29:40]CheckFolder done [20:29:40]ProducePacketName [20:29:40]name=ofd_packets/00070713 [20:29:40]NVStorageSaveData ofd_packets/00070713 [20:29:40]File name is /storage/ofd_packets/00070713 [20:29:40]Write 301 bytes [20:29:40]NVStorageSaveData done [20:29:40]OFDSenderStorePacket done [20:29:40]KKMCreateOFDPacket done [20:29:40]NVStorageSaveData kkm_last_timestamp [20:29:40]File name is /storage/kkm_last_timestamp [20:29:40]Write 4 bytes [20:29:40]NVStorageSaveData done [20:29:40]ExternCall_PrintAddStr [20:29:40]wPrintStart [20:29:40]Write to MH i2c: 01 00 00 CC 06 D2 [20:29:40]Write i2c OK [20:29:40]MH_I2C_Read... [20:29:40]Read from MH i2c: 01 [20:29:40]MH_I2C_Read... [20:29:40]Read from MH i2c: 01 07 00 [20:29:40]MH_I2C_Read... [20:29:40]Read from MH i2c: 01 07 00 CC 06 00 00 00 00 00 FF 0F E7 [20:29:40]RasterBufferAndPrint [20:29:40]line Счет N : (1)141173 [20:29:40]line ИÐÐ: 02508201610067 [20:29:40]line Контрольно-КаÑÑовый Чек [20:29:40]line ПРОДÐЖР[20:29:40]line ТРК (МРК, ГÐК) : 31 [20:29:40]line Товар: 2710124130 [20:29:40]line Ðи-92-К-5 [20:29:40]line 30.350 * 65.90 [20:29:40]line = 2000.07 [20:29:40]line ÐДС 12% ÐСП 1% [20:29:40]line > о реализуемом товаре [20:29:40]line ИТОГО: 2000.07 [20:29:40]line ÐСП 1% : 17.70 [20:29:40]line ÐДС 12% : 212.40 [20:29:40]line Ðаличными: 0.00 [20:29:40]line Безнал.: 2000.07 [20:29:40]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [20:29:40]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [20:29:40]line СÐО: Общий режим [20:29:40]line Чек 67 13.08.2024 20:29 [20:29:40]line Смена: 466 ФФД: 1.0 [20:29:40]line ЗÐМ: 0300000140 [20:29:40]line РÐМ: 0000000000090913 [20:29:40]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [20:29:40]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [20:29:40]line ФМ: 0000000000874915 [20:29:40]line ФД: 70713 [20:29:40]line ФПД: 137795252672266 [20:29:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T202940&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70713&fm=137795252672266&tin=02508201610067®Number=0000000000090913&sum=200007 [20:29:41]written 0, free lines is 4095 [20:29:41]OFD Sender: Processing packet 70713 [packets to send 67, broken 66] [20:29:41]ProducePacketName [20:29:41]name=ofd_packets/00070713 [20:29:41]OFD Sender: To server: ‡•öpG, [20:29:41]CommunicateWithHost lk.salyk.kg:30040 [20:29:41]ConnectInit lk.salyk.kg [20:29:41]Connected sock=10 [20:29: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 39 31 35 0F 01 00 00 C1 23 07 01 F1 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 47 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 47 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 34 C2 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 39 14 01 00 35 04 06 00 7D 52 F5 16 57 0A EC FD BB 7C 98 06 A2 8C [20:29:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 1F 62 47 00 35 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 39 14 01 00 F4 03 04 00 1E 69 BB 66 B6 04 01 00 00 3D B8 65 73 0E F0 DB 37 [20:29:41]CommunicateWithHost err = 0 [20:29:41]CheckOFDResponse [20:29:41]1017 (14) - 77093643461234 [20:29:41]1041 (16) - 0000000000874915 [20:29:41]1040 (4) - 70713 [20:29:41]1012 (4) - 13.08.2024 14:09 [20:29:41]1206 (1) - 0 [20:29:41]OFD Sender: Remove packet 70713 [20:29:41]ProducePacketName [20:29:41]name=ofd_packets/00070713 [20:29:41]NVStorageDeleteData [20:29:41]Write to MH i2c: 01 00 00 F6 06 FC [20:29:41]Write i2c OK [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: 01 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: 01 07 00 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: 01 07 00 F6 06 00 00 00 00 00 F5 0C 04 [20:29:41]RasterBufferAndPrint [20:29:41]line [20:29:41]line [20:29:41]line [20:29:41]line [20:29:41]line [20:29:41]written 0, free lines is 3323 [20:29:41]MH_Cut [20:29:41]Write to MH i2c: D1 01 00 FD 06 01 D5 [20:29:41]Write i2c OK [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: D1 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: D1 01 00 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: D1 01 00 FD 06 00 D4 [20:29:41]Write to MH i2c: 01 00 00 FE 06 04 [20:29:41]Write i2c OK [20:29:41]MH_I2C_Read... [20:29:42]OFD Sender: No OFD packet to send [20:29:42]*** Cut start [20:29:42]*** Purtial cut [20:29:42]*** Stage 1: CUTSNS_PIN = 1 [20:29:42]Read from MH i2c: 01 [20:29:42]MH_I2C_Read... [20:29:42]*** Stop cut motor [20:29:42]*** Cut end [20:29:42]Read from MH i2c: 01 07 00 [20:29:42]MH_I2C_Read... [20:29:42]Read from MH i2c: 01 07 00 FE 06 00 00 00 00 00 FF 0F 19 [20:29:42]process_action close_receipt done [20:29:42]requested_data is exist [20:29:42]produce_requested_data [20:29:42]requested_item fm.sn is exist - process it [20:29:42]wFMCommunicate request_size=4 [20:29:42]MH_SAM_APDU [20:29:42]CAPDU: 80 11 00 00 [20:29:42]Write to MH i2c: E2 08 00 FF 06 80 11 00 00 00 00 00 00 7F [20:29:42]Write i2c OK [20:29:42]MH_I2C_Read... [20:29:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:42]Read from MH i2c: E2 [20:29:42]MH_I2C_Read... [20:29:42]Read from MH i2c: E2 17 00 [20:29:42]MH_I2C_Read... [20:29:42]Read from MH i2c: E2 17 00 FF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 D4 [20:29:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [20:29:42]wFMCommunicate OK [20:29:42]requested_item fd.num is exist - process it [20:29:42]SAM_PROTO_GetFieldsCounters [20:29:42]wFMCommunicate request_size=4 [20:29:42]MH_SAM_APDU [20:29:42]CAPDU: 80 13 00 00 [20:29:42]Write to MH i2c: E2 08 00 00 07 80 13 00 00 00 00 00 00 83 [20:29:42]Write i2c OK [20:29:42]MH_I2C_Read... [20:29:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:42]Read from MH i2c: E2 [20:29:42]MH_I2C_Read... [20:29:42]Read from MH i2c: E2 62 00 [20:29:42]MH_I2C_Read... [20:29:42]Read from MH i2c: E2 62 00 00 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 39 14 01 00 0E 04 04 00 D2 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 8D [20:29: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 39 14 01 00 0E 04 04 00 D2 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 [20:29:42]wFMCommunicate OK [20:29:42]SAM_PROTO_GetFieldsCounters done [20:29:42]requested_item shift.num is exist - process it [20:29:42]requested_item shift.opened is exist - process it [20:29:42]req_shift_opened [20:29:42]FM_GetShiftState [20:29:42]SAM_PROTO_GetShiftState [20:29:42]wFMCommunicate request_size=4 [20:29:42]MH_SAM_APDU [20:29:42]CAPDU: 80 13 01 00 [20:29:42]Write to MH i2c: E2 08 00 01 07 80 13 01 00 00 00 00 00 85 [20:29:42]Write i2c OK [20:29:42]MH_I2C_Read... [20:29:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:42]Read from MH i2c: E2 [20:29:42]MH_I2C_Read... [20:29:42]Read from MH i2c: E2 0E 00 [20:29:42]MH_I2C_Read... [20:29:42]Read from MH i2c: E2 0E 00 01 07 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 F4 [20:29:42]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [20:29:42]wFMCommunicate OK [20:29:42]SAM_PROTO_GetShiftState done [20:29:42]FM_GetShiftState done [20:29:42]req_shift_opened done [20:29:42]requested_item shift.open_date is exist - process it [20:29:42]req_shift_open_date [20:29:42]req_shift_open_date done [20:29:42]produce_requested_data done [20:29:42]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70713,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [20:29:42]process_action_free close_receipt [20:29:42]json_value_free [20:29:42]json_value_free done [20:29:42]process_json_proto returns [20:29:42]Send response to host [20:29:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70713,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [20:29:42]free response buf [20:29:42]execute_script done [20:29:42]execute_script returns [20:29:42]free content buf [20:29:42]Sock 9.Close socket [20:29:42]Sock 9.Thread stoped [20:29:47]OFD Sender: No OFD packet to send [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:12]OFD Sender: No OFD packet to send [20:30:17]OFD Sender: No OFD packet to send [20:30:22]OFD Sender: No OFD packet to send [20:30:27]OFD Sender: No OFD packet to send [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:54]accept exits with 7 [20:46:54]New connection [20:46:54]New thread 3067305316 created [20:46:54]Thread 3067448676 joined [20:46:54]Waiting for new connection... [20:46:54] Sock 7.Parse request [20:46:54]Sock 7.Check first char [20:46:54]Sock 7.First char is OK [20:46:54]request: POST /json_proto HTTP/1.0 [20:46:54]Method: POST [20:46:54]URL: /json_proto [20:46:54]Method is POST - this is cgi request [20:46:54]url: /json_proto [20:46:54]query_string will be loaded in cgi processing [20:46:54]execute_cgi json_proto POST (null) [20:46:54]execute_cgi path=json_proto method=POST [20:46:54]POST find Content-Length [20:46:54]Host: 172.17.58.67:8080 [20:46:54]Content-Length: 805 [20:46:54]Content-Type: application/json [20:46:54] [20:46:54]POST finish read [20:46:54]Found Content-Length = 805 [20:46:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.800, "sum" : 250.42, "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" : 250.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:54]execute_script... [20:46:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.800, "sum" : 250.42, "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" : 250.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:54]POST & json_proto [20:46:54]process_json_proto [20:46:54]json parsed OK: [20:46:54]protocol is kg_v1.0 [20:46:54]action value=close_receipt [20:46:54]process_action close_receipt [20:46:54]cmd_close_receipt [20:46:54]MH_GetDate [20:46:54]Write to MH i2c: F0 00 00 02 07 F8 [20:46:54]Write i2c OK [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: F0 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: F0 09 00 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: F0 09 00 02 07 00 3F C6 BB 66 94 51 63 64 D3 [20:46:54]GetLastDocTimeStamp 1723580980 [20:46:54]current date 1723582015 [20:46:54]FM_GetShiftState [20:46:54]SAM_PROTO_GetShiftState [20:46:54]wFMCommunicate request_size=4 [20:46:54]MH_SAM_APDU [20:46:54]CAPDU: 80 13 01 00 [20:46:54]Write to MH i2c: E2 08 00 03 07 80 13 01 00 00 00 00 00 87 [20:46:54]Write i2c OK [20:46:54]MH_I2C_Read... [20:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:54]Read from MH i2c: E2 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: E2 0E 00 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: E2 0E 00 03 07 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 F6 [20:46:54]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [20:46:54]wFMCommunicate OK [20:46:54]SAM_PROTO_GetShiftState done [20:46:54]FM_GetShiftState done [20:46:54]opened in 1723509656 [20:46:54]opened+sec_in_day 1723596056 [20:46:54]quantity*price = 25042 [20:46:54]sum+1 = 25043 [20:46:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.42 ÐСП 1% : 2.22 ÐДС 12% : 26.59 Ðаличными: 0.00 Безнал.: 250.42 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 68 13.08.2024 20:46 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70714 ФПД: 278277361460410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T204655&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70714&fm=278277361460410&tin=02508201610067®Number=0000000000090913&sum=25042 [20:46:55]StoreToDocumentArchive [20:46:55]shift 466 fd 70714 [20:46:55]save to /storage/0466/doc_00070714 [20:46:55]save last doc name /storage/0466/doc_00070714 to /storage/kkm_last_doc_name [20:46:55]save OK [20:46:55]Clear old archive folders... [20:46:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:46:55]tlvbuf is 006BCC50 [20:46:55]SAM_PROTO_ClearQueue [20:46:55]wFMCommunicate request_size=4 [20:46:55]MH_SAM_APDU [20:46:55]CAPDU: 80 09 00 00 [20:46:55]Write to MH i2c: E2 08 00 10 07 80 09 00 00 00 00 00 00 89 [20:46:55]Write i2c OK [20:46:55]MH_I2C_Read... [20:46:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:55]Read from MH i2c: E2 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 03 00 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 03 00 10 07 00 90 00 8B [20:46:55]RAPDU: 90 00 [20:46:55]wFMCommunicate OK [20:46:55]SAM_PROTO_ClearQueue done [20:46:55]KKMCreateOFDPacket [20:46:55]OFDProtocolAddRootSTLVToBuf [20:46:55]FM_MakeSignedData [20:46:55]FM_MakeSignedData [20:46:55]SAM_PROTO_SignData [20:46:55]wFMCommunicate request_size=4 [20:46:55]MH_SAM_APDU [20:46:55]CAPDU: 80 0D 01 02 [20:46:55]Write to MH i2c: E2 08 00 11 07 80 0D 01 02 00 00 00 00 91 [20:46:55]Write i2c OK [20:46:55]MH_I2C_Read... [20:46:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:55]Read from MH i2c: E2 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 03 00 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 03 00 11 07 00 90 00 8C [20:46:55]RAPDU: 90 00 [20:46:55]wFMCommunicate OK [20:46:55]wFMCommunicate request_size=255 [20:46:55]MH_SAM_APDU [20:46:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 3F C6 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3A 14 01 00 35 04 06 00 FD [20:46:55]Write to MH i2c: E2 02 01 12 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 D8 0E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 3F C6 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3A 14 01 00 35 04 06 00 FD 00 00 C4 [20:46:55]Write i2c OK [20:46:55]MH_I2C_Read... [20:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:56]Read from MH i2c: E2 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: E2 03 00 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: E2 03 00 12 07 00 90 00 8D [20:46:56]RAPDU: 90 00 [20:46:56]wFMCommunicate OK [20:46:56]wFMCommunicate request_size=10 [20:46:56]MH_SAM_APDU [20:46:56]CAPDU: 80 0D 02 02 05 17 7F 47 64 BA [20:46:56]Write to MH i2c: E2 0D 00 13 07 80 0D 02 02 05 00 17 7F 47 64 BA 00 00 99 [20:46:56]Write i2c OK [20:46:56]MH_I2C_Read... [20:46:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:56]Read from MH i2c: E2 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: E2 03 00 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: E2 03 00 13 07 00 90 00 8E [20:46:56]RAPDU: 90 00 [20:46:56]wFMCommunicate OK [20:46:56]wFMCommunicate request_size=4 [20:46:56]MH_SAM_APDU [20:46:56]CAPDU: 80 0D 03 02 [20:46:56]Write to MH i2c: E2 08 00 14 07 80 0D 03 02 00 00 00 00 96 [20:46:56]Write i2c OK [20:46:56]MH_I2C_Read... [20:46:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:56]Read from MH i2c: E2 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: E2 0B 00 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: E2 0B 00 14 07 00 AF 3C C0 48 90 42 8F 4D 90 00 38 [20:46:56]RAPDU: AF 3C C0 48 90 42 8F 4D 90 00 [20:46:56]wFMCommunicate OK [20:46:56]SAM_PROTO_SignData done [20:46:56]FM_MakeSignedData done [20:46:56]CreateOFDProtocolMessage [20:46:56]wFMCommunicate request_size=4 [20:46:56]MH_SAM_APDU [20:46:56]CAPDU: 80 11 00 00 [20:46:56]Write to MH i2c: E2 08 00 15 07 80 11 00 00 00 00 00 00 96 [20:46:56]Write i2c OK [20:46:56]MH_I2C_Read... [20:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:56]Read from MH i2c: E2 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: E2 17 00 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: E2 17 00 15 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 EB [20:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [20:46:56]wFMCommunicate OK [20:46:56]CreateOFDProtocolMessage done [20:46:56]OFDSenderStorePacket 70714 [20:46:56]StoreOFDPacket docnum=70714 [20:46:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 A8 C7 07 01 19 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 3F C6 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3A 14 01 00 35 04 06 00 FD 17 7F 47 64 BA AF 3C C0 48 90 42 8F 4D [20:46:56]CheckFolder [20:46:56]dirname=/storage/ofd_packets [20:46:56]CheckFolder done [20:46:56]ProducePacketName [20:46:56]name=ofd_packets/00070714 [20:46:56]NVStorageSaveData ofd_packets/00070714 [20:46:56]File name is /storage/ofd_packets/00070714 [20:46:56]Write 301 bytes [20:46:56]NVStorageSaveData done [20:46:56]OFDSenderStorePacket done [20:46:56]KKMCreateOFDPacket done [20:46:56]NVStorageSaveData kkm_last_timestamp [20:46:56]File name is /storage/kkm_last_timestamp [20:46:56]Write 4 bytes [20:46:56]NVStorageSaveData done [20:46:56]ExternCall_PrintAddStr [20:46:56]wPrintStart [20:46:56]Write to MH i2c: 01 00 00 16 07 1D [20:46:56]Write i2c OK [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: 01 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: 01 07 00 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: 01 07 00 16 07 00 00 00 00 00 FF 0F 32 [20:46:56]RasterBufferAndPrint [20:46:56]line Счет N : (1)141174 [20:46:56]line ИÐÐ: 02508201610067 [20:46:56]line Контрольно-КаÑÑовый Чек [20:46:56]line ПРОДÐЖР[20:46:56]line ТРК (МРК, ГÐК) : 31 [20:46:56]line Товар: 2710124130 [20:46:56]line Ðи-92-К-5 [20:46:56]line 3.800 * 65.90 [20:46:56]line = 250.42 [20:46:56]line ÐДС 12% ÐСП 1% [20:46:56]line > о реализуемом товаре [20:46:56]line ИТОГО: 250.42 [20:46:56]line ÐСП 1% : 2.22 [20:46:56]line ÐДС 12% : 26.59 [20:46:56]line Ðаличными: 0.00 [20:46:56]line Безнал.: 250.42 [20:46:56]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [20:46:56]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [20:46:56]line СÐО: Общий режим [20:46:56]line Чек 68 13.08.2024 20:46 [20:46:56]line Смена: 466 ФФД: 1.0 [20:46:56]line ЗÐМ: 0300000140 [20:46:56]line РÐМ: 0000000000090913 [20:46:56]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [20:46:56]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [20:46:56]line ФМ: 0000000000874915 [20:46:56]line ФД: 70714 [20:46:56]line ФПД: 278277361460410 [20:46:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T204655&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70714&fm=278277361460410&tin=02508201610067®Number=0000000000090913&sum=25042 [20:46:56]written 0, free lines is 4095 [20:46:56]OFD Sender: Processing packet 70714 [packets to send 67, broken 66] [20:46:56]ProducePacketName [20:46:56]name=ofd_packets/00070714 [20:46:56]OFD Sender: To server: ‡•öpG, [20:46:56]CommunicateWithHost lk.salyk.kg:30040 [20:46:56]ConnectInit lk.salyk.kg [20:46:56]Connected sock=9 [20:46:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 A8 C7 07 01 19 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 D2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 3F C6 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3A 14 01 00 35 04 06 00 FD 17 7F 47 64 BA AF 3C C0 48 90 42 8F 4D [20:46:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 83 89 47 00 22 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3A 14 01 00 F4 03 04 00 29 6D BB 66 B6 04 01 00 00 60 1A E9 A9 F7 6A FE FD [20:46:56]CommunicateWithHost err = 0 [20:46:56]CheckOFDResponse [20:46:56]1017 (14) - 77093643461234 [20:46:56]1041 (16) - 0000000000874915 [20:46:56]1040 (4) - 70714 [20:46:56]1012 (4) - 13.08.2024 14:26 [20:46:56]1206 (1) - 0 [20:46:56]OFD Sender: Remove packet 70714 [20:46:56]ProducePacketName [20:46:56]name=ofd_packets/00070714 [20:46:56]NVStorageDeleteData [20:46:56]Write to MH i2c: 01 00 00 40 07 47 [20:46:56]Write i2c OK [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: 01 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: 01 07 00 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: 01 07 00 40 07 00 00 00 00 00 F5 0C 4F [20:46:56]RasterBufferAndPrint [20:46:56]line [20:46:56]line [20:46:56]line [20:46:56]line [20:46:56]line [20:46:56]written 0, free lines is 3323 [20:46:56]MH_Cut [20:46:56]Write to MH i2c: D1 01 00 47 07 01 20 [20:46:56]Write i2c OK [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: D1 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: D1 01 00 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: D1 01 00 47 07 00 1F [20:46:56]Write to MH i2c: 01 00 00 48 07 4F [20:46:56]Write i2c OK [20:46:56]MH_I2C_Read... [20:46:56]OFD Sender: No OFD packet to send [20:46:57]*** Cut start [20:46:57]*** Purtial cut [20:46:57]*** CUTSNS_PIN = 0 [20:46:57]*** Stage 1: CUTSNS_PIN = 1 [20:46:59]Read from MH i2c: 01 [20:46:59]MH_I2C_Read... [20:46:59]*** Stop cut motor [20:46:59]*** Cut end [20:46:59]Read from MH i2c: 01 07 00 [20:46:59]MH_I2C_Read... [20:46:59]Read from MH i2c: 01 07 00 48 07 00 00 00 00 00 FF 0F 64 [20:46:59]process_action close_receipt done [20:46:59]requested_data is exist [20:46:59]produce_requested_data [20:46:59]requested_item fm.sn is exist - process it [20:46:59]wFMCommunicate request_size=4 [20:46:59]MH_SAM_APDU [20:46:59]CAPDU: 80 11 00 00 [20:46:59]Write to MH i2c: E2 08 00 49 07 80 11 00 00 00 00 00 00 CA [20:46:59]Write i2c OK [20:46:59]MH_I2C_Read... [20:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:59]Read from MH i2c: E2 [20:46:59]MH_I2C_Read... [20:46:59]Read from MH i2c: E2 17 00 [20:46:59]MH_I2C_Read... [20:46:59]Read from MH i2c: E2 17 00 49 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 1F [20:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [20:46:59]wFMCommunicate OK [20:46:59]requested_item fd.num is exist - process it [20:46:59]SAM_PROTO_GetFieldsCounters [20:46:59]wFMCommunicate request_size=4 [20:46:59]MH_SAM_APDU [20:46:59]CAPDU: 80 13 00 00 [20:46:59]Write to MH i2c: E2 08 00 4A 07 80 13 00 00 00 00 00 00 CD [20:46:59]Write i2c OK [20:46:59]MH_I2C_Read... [20:46:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:59]Read from MH i2c: E2 [20:46:59]MH_I2C_Read... [20:46:59]Read from MH i2c: E2 62 00 [20:46:59]MH_I2C_Read... [20:46:59]Read from MH i2c: E2 62 00 4A 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 3A 14 01 00 0E 04 04 00 D2 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 DB [20:46: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 3A 14 01 00 0E 04 04 00 D2 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 [20:46:59]wFMCommunicate OK [20:46:59]SAM_PROTO_GetFieldsCounters done [20:46:59]requested_item shift.num is exist - process it [20:46:59]requested_item shift.opened is exist - process it [20:46:59]req_shift_opened [20:46:59]FM_GetShiftState [20:46:59]SAM_PROTO_GetShiftState [20:46:59]wFMCommunicate request_size=4 [20:46:59]MH_SAM_APDU [20:46:59]CAPDU: 80 13 01 00 [20:46:59]Write to MH i2c: E2 08 00 4B 07 80 13 01 00 00 00 00 00 CF [20:46:59]Write i2c OK [20:46:59]MH_I2C_Read... [20:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:59]Read from MH i2c: E2 [20:46:59]MH_I2C_Read... [20:46:59]Read from MH i2c: E2 0E 00 [20:46:59]MH_I2C_Read... [20:46:59]Read from MH i2c: E2 0E 00 4B 07 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 3E [20:46:59]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [20:46:59]wFMCommunicate OK [20:46:59]SAM_PROTO_GetShiftState done [20:46:59]FM_GetShiftState done [20:46:59]req_shift_opened done [20:46:59]requested_item shift.open_date is exist - process it [20:46:59]req_shift_open_date [20:46:59]req_shift_open_date done [20:46:59]produce_requested_data done [20:46:59]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70714,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [20:46:59]process_action_free close_receipt [20:46:59]json_value_free [20:46:59]json_value_free done [20:46:59]process_json_proto returns [20:46:59]Send response to host [20:46:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70714,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [20:46:59]free response buf [20:46:59]execute_script done [20:46:59]execute_script returns [20:46:59]free content buf [20:46:59]Sock 7.Close socket [20:46:59]Sock 7.Thread stoped [20:47:01]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:01]accept exits with 10 [21:00:01]New connection [21:00:01]New thread 3067448676 created [21:00:01]Thread 3067305316 joined [21:00:01]Waiting for new connection... [21:00:01] Sock 10.Parse request [21:00:01]Sock 10.Check first char [21:00:01]Sock 10.First char is OK [21:00:01]request: POST /json_proto HTTP/1.0 [21:00:01]Method: POST [21:00:01]URL: /json_proto [21:00:01]Method is POST - this is cgi request [21:00:01]url: /json_proto [21:00:01]query_string will be loaded in cgi processing [21:00:01]execute_cgi json_proto POST (null) [21:00:01]execute_cgi path=json_proto method=POST [21:00:01]POST find Content-Length [21:00:01]Host: 172.17.58.67:8080 [21:00:01]Content-Length: 805 [21:00:01]Content-Type: application/json [21:00:01] [21:00:01]POST finish read [21:00:01]Found Content-Length = 805 [21:00:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:01]execute_script... [21:00:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:01]POST & json_proto [21:00:01]process_json_proto [21:00:01]json parsed OK: [21:00:01]protocol is kg_v1.0 [21:00:01]action value=close_receipt [21:00:01]process_action close_receipt [21:00:01]cmd_close_receipt [21:00:01]MH_GetDate [21:00:01]Write to MH i2c: F0 00 00 4C 07 42 [21:00:01]Write i2c OK [21:00:01]MH_I2C_Read... [21:00:01]Read from MH i2c: F0 [21:00:01]MH_I2C_Read... [21:00:01]Read from MH i2c: F0 09 00 [21:00:01]MH_I2C_Read... [21:00:01]Read from MH i2c: F0 09 00 4C 07 00 52 C9 BB 66 94 51 63 64 33 [21:00:01]GetLastDocTimeStamp 1723582015 [21:00:01]current date 1723582802 [21:00:01]FM_GetShiftState [21:00:01]SAM_PROTO_GetShiftState [21:00:01]wFMCommunicate request_size=4 [21:00:01]MH_SAM_APDU [21:00:01]CAPDU: 80 13 01 00 [21:00:01]Write to MH i2c: E2 08 00 4D 07 80 13 01 00 00 00 00 00 D1 [21:00:01]Write i2c OK [21:00:01]MH_I2C_Read... [21:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:01]Read from MH i2c: E2 [21:00:01]MH_I2C_Read... [21:00:01]Read from MH i2c: E2 0E 00 [21:00:01]MH_I2C_Read... [21:00:01]Read from MH i2c: E2 0E 00 4D 07 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 40 [21:00:01]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [21:00:01]wFMCommunicate OK [21:00:01]SAM_PROTO_GetShiftState done [21:00:01]FM_GetShiftState done [21:00:01]opened in 1723509656 [21:00:01]opened+sec_in_day 1723596056 [21:00:01]quantity*price = 50018 [21:00:01]sum+1 = 50019 [21:00:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 0.00 Безнал.: 500.18 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 69 13.08.2024 21:00 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70715 ФПД: 200722402354554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T210002&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70715&fm=200722402354554&tin=02508201610067®Number=0000000000090913&sum=50018 [21:00:02]StoreToDocumentArchive [21:00:02]shift 466 fd 70715 [21:00:02]save to /storage/0466/doc_00070715 [21:00:02]save last doc name /storage/0466/doc_00070715 to /storage/kkm_last_doc_name [21:00:02]save OK [21:00:02]Clear old archive folders... [21:00:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:00:02]tlvbuf is 006A9C40 [21:00:02]SAM_PROTO_ClearQueue [21:00:02]wFMCommunicate request_size=4 [21:00:02]MH_SAM_APDU [21:00:02]CAPDU: 80 09 00 00 [21:00:02]Write to MH i2c: E2 08 00 5A 07 80 09 00 00 00 00 00 00 D3 [21:00:02]Write i2c OK [21:00:02]MH_I2C_Read... [21:00:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:02]Read from MH i2c: E2 [21:00:02]MH_I2C_Read... [21:00:02]Read from MH i2c: E2 03 00 [21:00:02]MH_I2C_Read... [21:00:02]Read from MH i2c: E2 03 00 5A 07 00 90 00 D5 [21:00:02]RAPDU: 90 00 [21:00:02]wFMCommunicate OK [21:00:02]SAM_PROTO_ClearQueue done [21:00:02]KKMCreateOFDPacket [21:00:02]OFDProtocolAddRootSTLVToBuf [21:00:02]FM_MakeSignedData [21:00:02]FM_MakeSignedData [21:00:02]SAM_PROTO_SignData [21:00:02]wFMCommunicate request_size=4 [21:00:02]MH_SAM_APDU [21:00:02]CAPDU: 80 0D 01 02 [21:00:02]Write to MH i2c: E2 08 00 5B 07 80 0D 01 02 00 00 00 00 DB [21:00:02]Write i2c OK [21:00:02]MH_I2C_Read... [21:00:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:02]Read from MH i2c: E2 [21:00:02]MH_I2C_Read... [21:00:02]Read from MH i2c: E2 03 00 [21:00:02]MH_I2C_Read... [21:00:02]Read from MH i2c: E2 03 00 5B 07 00 90 00 D6 [21:00:02]RAPDU: 90 00 [21:00:02]wFMCommunicate OK [21:00:02]wFMCommunicate request_size=255 [21:00:02]MH_SAM_APDU [21:00:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 52 C9 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3B 14 01 00 35 04 06 00 B6 [21:00:02]Write to MH i2c: E2 02 01 5C 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 52 C9 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3B 14 01 00 35 04 06 00 B6 00 00 D7 [21:00:02]Write i2c OK [21:00:02]MH_I2C_Read... [21:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:03]Read from MH i2c: E2 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 03 00 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 03 00 5C 07 00 90 00 D7 [21:00:03]RAPDU: 90 00 [21:00:03]wFMCommunicate OK [21:00:03]wFMCommunicate request_size=10 [21:00:03]MH_SAM_APDU [21:00:03]CAPDU: 80 0D 02 02 05 8E 53 7D A5 7A [21:00:03]Write to MH i2c: E2 0D 00 5D 07 80 0D 02 02 05 00 8E 53 7D A5 7A 00 00 65 [21:00:03]Write i2c OK [21:00:03]MH_I2C_Read... [21:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:03]Read from MH i2c: E2 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 03 00 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 03 00 5D 07 00 90 00 D8 [21:00:03]RAPDU: 90 00 [21:00:03]wFMCommunicate OK [21:00:03]wFMCommunicate request_size=4 [21:00:03]MH_SAM_APDU [21:00:03]CAPDU: 80 0D 03 02 [21:00:03]Write to MH i2c: E2 08 00 5E 07 80 0D 03 02 00 00 00 00 E0 [21:00:03]Write i2c OK [21:00:03]MH_I2C_Read... [21:00:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:03]Read from MH i2c: E2 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 0B 00 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 0B 00 5E 07 00 6D 27 A7 2C DD 9B C7 11 90 00 98 [21:00:03]RAPDU: 6D 27 A7 2C DD 9B C7 11 90 00 [21:00:03]wFMCommunicate OK [21:00:03]SAM_PROTO_SignData done [21:00:03]FM_MakeSignedData done [21:00:03]CreateOFDProtocolMessage [21:00:03]wFMCommunicate request_size=4 [21:00:03]MH_SAM_APDU [21:00:03]CAPDU: 80 11 00 00 [21:00:03]Write to MH i2c: E2 08 00 5F 07 80 11 00 00 00 00 00 00 E0 [21:00:03]Write i2c OK [21:00:03]MH_I2C_Read... [21:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:03]Read from MH i2c: E2 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 17 00 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: E2 17 00 5F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 35 [21:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:00:03]wFMCommunicate OK [21:00:03]CreateOFDProtocolMessage done [21:00:03]OFDSenderStorePacket 70715 [21:00:03]StoreOFDPacket docnum=70715 [21:00:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 F6 09 07 01 31 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 52 C9 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3B 14 01 00 35 04 06 00 B6 8E 53 7D A5 7A 6D 27 A7 2C DD 9B C7 11 [21:00:03]CheckFolder [21:00:03]dirname=/storage/ofd_packets [21:00:03]CheckFolder done [21:00:03]ProducePacketName [21:00:03]name=ofd_packets/00070715 [21:00:03]NVStorageSaveData ofd_packets/00070715 [21:00:03]File name is /storage/ofd_packets/00070715 [21:00:03]Write 301 bytes [21:00:03]NVStorageSaveData done [21:00:03]OFDSenderStorePacket done [21:00:03]KKMCreateOFDPacket done [21:00:03]NVStorageSaveData kkm_last_timestamp [21:00:03]File name is /storage/kkm_last_timestamp [21:00:03]Write 4 bytes [21:00:03]NVStorageSaveData done [21:00:03]ExternCall_PrintAddStr [21:00:03]wPrintStart [21:00:03]Write to MH i2c: 01 00 00 60 07 67 [21:00:03]Write i2c OK [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: 01 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: 01 07 00 [21:00:03]MH_I2C_Read... [21:00:03]Read from MH i2c: 01 07 00 60 07 00 00 00 00 00 FF 0F 7C [21:00:03]RasterBufferAndPrint [21:00:03]line Счет N : (1)141175 [21:00:03]line ИÐÐ: 02508201610067 [21:00:03]line Контрольно-КаÑÑовый Чек [21:00:03]line ПРОДÐЖР[21:00:03]line ТРК (МРК, ГÐК) : 31 [21:00:03]line Товар: 2710124130 [21:00:03]line Ðи-92-К-5 [21:00:03]line 7.590 * 65.90 [21:00:03]line = 500.18 [21:00:03]line ÐДС 12% ÐСП 1% [21:00:03]line > о реализуемом товаре [21:00:03]line ИТОГО: 500.18 [21:00:03]line ÐСП 1% : 4.43 [21:00:03]line ÐДС 12% : 53.12 [21:00:03]line Ðаличными: 0.00 [21:00:03]line Безнал.: 500.18 [21:00:03]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [21:00:03]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [21:00:03]line СÐО: Общий режим [21:00:03]line Чек 69 13.08.2024 21:00 [21:00:03]line Смена: 466 ФФД: 1.0 [21:00:03]line ЗÐМ: 0300000140 [21:00:03]line РÐМ: 0000000000090913 [21:00:03]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [21:00:03]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [21:00:03]line ФМ: 0000000000874915 [21:00:03]line ФД: 70715 [21:00:03]line ФПД: 200722402354554 [21:00:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T210002&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70715&fm=200722402354554&tin=02508201610067®Number=0000000000090913&sum=50018 [21:00:03]OFD Sender: Processing packet 70715 [packets to send 67, broken 66] [21:00:03]ProducePacketName [21:00:03]name=ofd_packets/00070715 [21:00:03]OFD Sender: To server: ‡•öpG, [21:00:03]CommunicateWithHost lk.salyk.kg:30040 [21:00:03]ConnectInit lk.salyk.kg [21:00:03]written 0, free lines is 4095 [21:00:03]Connected sock=9 [21:00:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 F6 09 07 01 31 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 52 C9 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3B 14 01 00 35 04 06 00 B6 8E 53 7D A5 7A 6D 27 A7 2C DD 9B C7 11 [21:00:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 04 7A 47 00 2B 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 39 31 35 10 04 04 00 3B 14 01 00 F4 03 04 00 3D 70 BB 66 B6 04 01 00 00 09 80 B6 F9 65 A2 80 DD [21:00:03]CommunicateWithHost err = 0 [21:00:03]CheckOFDResponse [21:00:03]1017 (14) - 77093643461234 [21:00:03]1041 (16) - 0000000000874915 [21:00:03]1040 (4) - 70715 [21:00:03]1012 (4) - 13.08.2024 14:39 [21:00:03]1206 (1) - 0 [21:00:03]OFD Sender: Remove packet 70715 [21:00:03]ProducePacketName [21:00:03]name=ofd_packets/00070715 [21:00:03]NVStorageDeleteData [21:00:04]Write to MH i2c: 01 00 00 8A 07 91 [21:00:04]Write i2c OK [21:00:04]MH_I2C_Read... [21:00:04]Read from MH i2c: 01 [21:00:04]MH_I2C_Read... [21:00:04]Read from MH i2c: 01 07 00 [21:00:04]MH_I2C_Read... [21:00:04]Read from MH i2c: 01 07 00 8A 07 00 00 00 00 00 E8 0C 8C [21:00:04]RasterBufferAndPrint [21:00:04]line [21:00:04]line [21:00:04]line [21:00:04]line [21:00:04]line [21:00:04]written 0, free lines is 3313 [21:00:04]MH_Cut [21:00:04]Write to MH i2c: D1 01 00 91 07 01 6A [21:00:04]Write i2c OK [21:00:04]MH_I2C_Read... [21:00:04]Read from MH i2c: D1 [21:00:04]MH_I2C_Read... [21:00:04]Read from MH i2c: D1 01 00 [21:00:04]MH_I2C_Read... [21:00:04]Read from MH i2c: D1 01 00 91 07 00 69 [21:00:04]Write to MH i2c: 01 00 00 92 07 99 [21:00:04]Write i2c OK [21:00:04]MH_I2C_Read... [21:00:04]OFD Sender: No OFD packet to send [21:00:04]*** Cut start [21:00:04]*** Purtial cut [21:00:04]*** Stage 1: CUTSNS_PIN = 1 [21:00:05]Read from MH i2c: 01 [21:00:05]MH_I2C_Read... [21:00:05]*** Stop cut motor [21:00:05]*** Cut end [21:00:05]Read from MH i2c: 01 07 00 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: 01 07 00 92 07 00 00 00 00 00 FF 0F AE [21:00:05]process_action close_receipt done [21:00:05]requested_data is exist [21:00:05]produce_requested_data [21:00:05]requested_item fm.sn is exist - process it [21:00:05]wFMCommunicate request_size=4 [21:00:05]MH_SAM_APDU [21:00:05]CAPDU: 80 11 00 00 [21:00:05]Write to MH i2c: E2 08 00 93 07 80 11 00 00 00 00 00 00 14 [21:00:05]Write i2c OK [21:00:05]MH_I2C_Read... [21:00:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:05]Read from MH i2c: E2 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 17 00 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 17 00 93 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 69 [21:00:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:00:05]wFMCommunicate OK [21:00:05]requested_item fd.num is exist - process it [21:00:05]SAM_PROTO_GetFieldsCounters [21:00:05]wFMCommunicate request_size=4 [21:00:05]MH_SAM_APDU [21:00:05]CAPDU: 80 13 00 00 [21:00:05]Write to MH i2c: E2 08 00 94 07 80 13 00 00 00 00 00 00 17 [21:00:05]Write i2c OK [21:00:05]MH_I2C_Read... [21:00:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:05]Read from MH i2c: E2 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 62 00 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 62 00 94 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 3B 14 01 00 0E 04 04 00 D2 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 29 [21:00:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 3B 14 01 00 0E 04 04 00 D2 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 [21:00:05]wFMCommunicate OK [21:00:05]SAM_PROTO_GetFieldsCounters done [21:00:05]requested_item shift.num is exist - process it [21:00:05]requested_item shift.opened is exist - process it [21:00:05]req_shift_opened [21:00:05]FM_GetShiftState [21:00:05]SAM_PROTO_GetShiftState [21:00:05]wFMCommunicate request_size=4 [21:00:05]MH_SAM_APDU [21:00:05]CAPDU: 80 13 01 00 [21:00:05]Write to MH i2c: E2 08 00 95 07 80 13 01 00 00 00 00 00 19 [21:00:05]Write i2c OK [21:00:05]MH_I2C_Read... [21:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:05]Read from MH i2c: E2 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 0E 00 [21:00:05]MH_I2C_Read... [21:00:05]Read from MH i2c: E2 0E 00 95 07 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 88 [21:00:05]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [21:00:05]wFMCommunicate OK [21:00:05]SAM_PROTO_GetShiftState done [21:00:05]FM_GetShiftState done [21:00:05]req_shift_opened done [21:00:05]requested_item shift.open_date is exist - process it [21:00:05]req_shift_open_date [21:00:05]req_shift_open_date done [21:00:05]produce_requested_data done [21:00:05]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70715,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [21:00:05]process_action_free close_receipt [21:00:05]json_value_free [21:00:05]json_value_free done [21:00:05]process_json_proto returns [21:00:05]Send response to host [21:00:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70715,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [21:00:05]free response buf [21:00:05]execute_script done [21:00:05]execute_script returns [21:00:05]free content buf [21:00:05]Sock 10.Close socket [21:00:05]Sock 10.Thread stoped [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:27]int [21:02:27]Write to MH i2c: 01 00 00 96 07 9D [21:02:27]*** FLAG_PRN_KEY set [21:02:27]Write i2c OK [21:02:27]MH_I2C_Read... [21:02:27]Read from MH i2c: 01 [21:02:27]MH_I2C_Read... [21:02:27]Read from MH i2c: 01 07 00 [21:02:27]MH_I2C_Read... [21:02:27]Read from MH i2c: 01 07 00 96 07 00 08 00 00 00 FF 0F BA [21:02:27]state=0 [21:02:27]Key pressed [21:02:27]Feed [21:02:27]Write to MH i2c: D8 00 00 97 07 75 [21:02:27]Write i2c OK [21:02:27]MH_I2C_Read... [21:02:27]Read from MH i2c: D8 [21:02:27]MH_I2C_Read... [21:02:27]Read from MH i2c: D8 01 00 [21:02:27]MH_I2C_Read... [21:02:27]Read from MH i2c: D8 01 00 97 07 00 76 [21:02:27]int [21:02:27]Write to MH i2c: 01 00 00 98 07 9F [21:02:27]Write i2c OK [21:02:27]MH_I2C_Read... [21:02:27]Read from MH i2c: 01 [21:02:27]MH_I2C_Read... [21:02:27]Read from MH i2c: 01 07 00 [21:02:27]MH_I2C_Read... [21:02:27]Read from MH i2c: 01 07 00 98 07 00 48 00 00 00 3C 00 2A [21:02:27]state=2 [21:02:27]Key pressed [21:02:27]int [21:02:27]Write to MH i2c: 01 00 00 99 07 A0 [21:02:27]*** FLAG_PRN_KEY reset [21:02:27]Write i2c OK [21:02:27]MH_I2C_Read... [21:02:27]Read from MH i2c: 01 [21:02:27]MH_I2C_Read... [21:02:27]Read from MH i2c: 01 07 00 [21:02:27]MH_I2C_Read... [21:02:27]Read from MH i2c: 01 07 00 99 07 00 00 00 00 00 F5 0F AB [21:02:27]state=2 [21:02:27]Stop feed [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:08]accept exits with 7 [21:07:08]New connection [21:07:08]New thread 3067305316 created [21:07:08]Thread 3067448676 joined [21:07:08]Waiting for new connection... [21:07:08] Sock 7.Parse request [21:07:08]Sock 7.Check first char [21:07:08]Sock 7.First char is OK [21:07:08]request: POST /json_proto HTTP/1.0 [21:07:08]Method: POST [21:07:08]URL: /json_proto [21:07:08]Method is POST - this is cgi request [21:07:08]url: /json_proto [21:07:08]query_string will be loaded in cgi processing [21:07:08]execute_cgi json_proto POST (null) [21:07:08]execute_cgi path=json_proto method=POST [21:07:08]POST find Content-Length [21:07:08]Host: 172.17.58.67:8080 [21:07:08]Content-Length: 1206 [21:07:08]Content-Type: application/json [21:07:08] [21:07:08]POST finish read [21:07:08]Found Content-Length = 1206 [21:07: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141176\u000A13.08.2024 20:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.110 x 65.90\u000A\u0418\u0422\u041E\u0413: 666.25\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\u000A68999\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:08]execute_script... [21:07: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141176\u000A13.08.2024 20:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.110 x 65.90\u000A\u0418\u0422\u041E\u0413: 666.25\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\u000A68999\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:08]POST & json_proto [21:07:08]process_json_proto [21:07:08]json parsed OK: [21:07:08]protocol is kg_v1.0 [21:07:08]action value=print_text [21:07:08]process_action print_text [21:07:08]cmd_print_text [21:07:08]ExternCall_PrintAddStr [21:07:08]wPrintStart [21:07:08]Write to MH i2c: 01 00 00 9A 07 A1 [21:07:08]Write i2c OK [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: 01 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: 01 07 00 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: 01 07 00 9A 07 00 00 00 00 00 FF 0F B6 [21:07:08]RasterBufferAndPrint [21:07:08]line *****ТОВÐРÐЫЙ ЧЕК***** [21:07:08]line ÐЗС 39 [21:07:08]line Партнер нефть [21:07:08]line 02508201610067 [21:07:08]line КаÑÑир : ОваÑбекова Л. [21:07:08]line Счет N : (1)141176 [21:07:08]line 13.08.2024 20:26 [21:07:08]line ПРОДÐЖР[21:07:08]line ТРК (МРК, ГÐК): 31 [21:07:08]line Вид ГСМ : 2710124130 [21:07:08]line Ðи-92-К-5 [21:07:08]line 10.110 x 65.90 [21:07:08]line ИТОГ: 666.25 [21:07:08]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [21:07:08]line 68999 [21:07:08]line ______________________ [21:07:08]line (подпиÑÑŒ) [21:07:08]written 0, free lines is 4095 [21:07:08]Write to MH i2c: 01 00 00 AE 07 B5 [21:07:08]Write i2c OK [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: 01 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: 01 07 00 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: 01 07 00 AE 07 00 00 00 00 00 12 0E DC [21:07:08]RasterBufferAndPrint [21:07:08]line [21:07:08]line [21:07:08]line [21:07:08]line [21:07:08]line [21:07:08]written 0, free lines is 3604 [21:07:08]MH_Cut [21:07:08]Write to MH i2c: D1 01 00 B5 07 01 8E [21:07:08]Write i2c OK [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: D1 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: D1 01 00 [21:07:08]MH_I2C_Read... [21:07:08]Read from MH i2c: D1 01 00 B5 07 00 8D [21:07:08]Write to MH i2c: 01 00 00 B6 07 BD [21:07:08]Write i2c OK [21:07:08]MH_I2C_Read... [21:07:09]*** Cut start [21:07:09]*** Purtial cut [21:07:09]*** CUTSNS_PIN = 0 [21:07:09]*** Stage 1: CUTSNS_PIN = 1 [21:07:09]OFD Sender: No OFD packet to send [21:07:11]Read from MH i2c: 01 [21:07:11]MH_I2C_Read... [21:07:11]Read from MH i2c: 01 07 00 [21:07:11]MH_I2C_Read... [21:07:11]*** Stop cut motor [21:07:11]*** Cut end [21:07:11]Read from MH i2c: 01 07 00 B6 07 00 00 00 00 00 FF 0F D2 [21:07:11]process_action print_text done [21:07:11]requested_data is exist [21:07:11]produce_requested_data [21:07:11]requested_item fm.sn is exist - process it [21:07:11]wFMCommunicate request_size=4 [21:07:11]MH_SAM_APDU [21:07:11]CAPDU: 80 11 00 00 [21:07:11]Write to MH i2c: E2 08 00 B7 07 80 11 00 00 00 00 00 00 38 [21:07:11]Write i2c OK [21:07:11]MH_I2C_Read... [21:07:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:11]Read from MH i2c: E2 [21:07:11]MH_I2C_Read... [21:07:11]Read from MH i2c: E2 17 00 [21:07:11]MH_I2C_Read... [21:07:11]Read from MH i2c: E2 17 00 B7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 8D [21:07:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:07:11]wFMCommunicate OK [21:07:11]requested_item fd.num is exist - process it [21:07:11]SAM_PROTO_GetFieldsCounters [21:07:11]wFMCommunicate request_size=4 [21:07:11]MH_SAM_APDU [21:07:11]CAPDU: 80 13 00 00 [21:07:11]Write to MH i2c: E2 08 00 B8 07 80 13 00 00 00 00 00 00 3B [21:07:11]Write i2c OK [21:07:11]MH_I2C_Read... [21:07:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:11]Read from MH i2c: E2 [21:07:11]MH_I2C_Read... [21:07:11]Read from MH i2c: E2 62 00 [21:07:11]MH_I2C_Read... [21:07:11]Read from MH i2c: E2 62 00 B8 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 3B 14 01 00 0E 04 04 00 D2 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 4D [21:07: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 3B 14 01 00 0E 04 04 00 D2 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 [21:07:11]wFMCommunicate OK [21:07:11]SAM_PROTO_GetFieldsCounters done [21:07:11]requested_item shift.num is exist - process it [21:07:11]requested_item shift.opened is exist - process it [21:07:11]req_shift_opened [21:07:11]FM_GetShiftState [21:07:11]SAM_PROTO_GetShiftState [21:07:11]wFMCommunicate request_size=4 [21:07:11]MH_SAM_APDU [21:07:11]CAPDU: 80 13 01 00 [21:07:11]Write to MH i2c: E2 08 00 B9 07 80 13 01 00 00 00 00 00 3D [21:07:11]Write i2c OK [21:07:11]MH_I2C_Read... [21:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:11]Read from MH i2c: E2 [21:07:11]MH_I2C_Read... [21:07:11]Read from MH i2c: E2 0E 00 [21:07:11]MH_I2C_Read... [21:07:11]Read from MH i2c: E2 0E 00 B9 07 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 AC [21:07:11]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [21:07:11]wFMCommunicate OK [21:07:11]SAM_PROTO_GetShiftState done [21:07:11]FM_GetShiftState done [21:07:11]req_shift_opened done [21:07:11]requested_item shift.open_date is exist - process it [21:07:11]req_shift_open_date [21:07:11]req_shift_open_date done [21:07:11]produce_requested_data done [21:07:11]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70715,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [21:07:11]process_action_free print_text [21:07:11]json_value_free [21:07:11]json_value_free done [21:07:11]process_json_proto returns [21:07:11]Send response to host [21:07:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70715,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [21:07:11]free response buf [21:07:11]execute_script done [21:07:11]execute_script returns [21:07:11]free content buf [21:07:11]Sock 7.Close socket [21:07:11]Sock 7.Thread stoped [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:52]accept exits with 9 [21:09:52]New connection [21:09:52]New thread 3067448676 created [21:09:52]Thread 3067305316 joined [21:09:52]Waiting for new connection... [21:09:52] Sock 9.Parse request [21:09:52]Sock 9.Check first char [21:09:52]Sock 9.First char is OK [21:09:52]request: POST /json_proto HTTP/1.0 [21:09:52]Method: POST [21:09:52]URL: /json_proto [21:09:52]Method is POST - this is cgi request [21:09:52]url: /json_proto [21:09:52]query_string will be loaded in cgi processing [21:09:52]execute_cgi json_proto POST (null) [21:09:52]execute_cgi path=json_proto method=POST [21:09:52]POST find Content-Length [21:09:52]Host: 172.17.58.67:8080 [21:09:52]Content-Length: 1207 [21:09:52]Content-Type: application/json [21:09:52] [21:09:52]POST finish read [21:09:52]Found Content-Length = 1207 [21:09:52]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141177\u000A13.08.2024 20:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 29.890 x 65.90\u000A\u0418\u0422\u041E\u0413: 1969.75\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\u000A68999\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:52]execute_script... [21:09:52]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141177\u000A13.08.2024 20:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 29.890 x 65.90\u000A\u0418\u0422\u041E\u0413: 1969.75\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\u000A68999\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:52]POST & json_proto [21:09:52]process_json_proto [21:09:52]json parsed OK: [21:09:52]protocol is kg_v1.0 [21:09:52]action value=print_text [21:09:52]process_action print_text [21:09:52]cmd_print_text [21:09:52]ExternCall_PrintAddStr [21:09:52]wPrintStart [21:09:52]Write to MH i2c: 01 00 00 BA 07 C1 [21:09:52]Write i2c OK [21:09:52]MH_I2C_Read... [21:09:52]Read from MH i2c: 01 [21:09:52]MH_I2C_Read... [21:09:52]Read from MH i2c: 01 07 00 [21:09:52]MH_I2C_Read... [21:09:52]Read from MH i2c: 01 07 00 BA 07 00 00 00 00 00 FF 0F D6 [21:09:52]RasterBufferAndPrint [21:09:52]line *****ТОВÐРÐЫЙ ЧЕК***** [21:09:52]line ÐЗС 39 [21:09:52]line Партнер нефть [21:09:52]line 02508201610067 [21:09:52]line КаÑÑир : ОваÑбекова Л. [21:09:52]line Счет N : (1)141177 [21:09:52]line 13.08.2024 20:29 [21:09:52]line ПРОДÐЖР[21:09:52]line ТРК (МРК, ГÐК): 31 [21:09:52]line Вид ГСМ : 2710124130 [21:09:52]line Ðи-92-К-5 [21:09:52]line 29.890 x 65.90 [21:09:52]line ИТОГ: 1969.75 [21:09:52]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [21:09:52]line 68999 [21:09:52]line ______________________ [21:09:52]line (подпиÑÑŒ) [21:09:52]written 0, free lines is 4095 [21:09:52]Write to MH i2c: 01 00 00 CE 07 D5 [21:09:52]Write i2c OK [21:09:52]MH_I2C_Read... [21:09:52]Read from MH i2c: 01 [21:09:52]MH_I2C_Read... [21:09:52]Read from MH i2c: 01 07 00 [21:09:52]MH_I2C_Read... [21:09:52]Read from MH i2c: 01 07 00 CE 07 00 00 00 00 00 11 0E FB [21:09:52]RasterBufferAndPrint [21:09:52]line [21:09:52]line [21:09:52]line [21:09:52]line [21:09:52]line [21:09:52]written 0, free lines is 3602 [21:09:52]MH_Cut [21:09:52]Write to MH i2c: D1 01 00 D5 07 01 AE [21:09:52]Write i2c OK [21:09:52]MH_I2C_Read... [21:09:52]Read from MH i2c: D1 [21:09:52]MH_I2C_Read... [21:09:52]Read from MH i2c: D1 01 00 [21:09:52]MH_I2C_Read... [21:09:52]Read from MH i2c: D1 01 00 D5 07 00 AD [21:09:52]Write to MH i2c: 01 00 00 D6 07 DD [21:09:52]Write i2c OK [21:09:52]MH_I2C_Read... [21:09:53]*** Cut start [21:09:53]*** Purtial cut [21:09:53]*** Stage 1: CUTSNS_PIN = 1 [21:09:53]Read from MH i2c: 01 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: 01 07 00 [21:09:53]MH_I2C_Read... [21:09:53]*** Stop cut motor [21:09:53]*** Cut end [21:09:53]Read from MH i2c: 01 07 00 D6 07 00 00 00 00 00 FF 0F F2 [21:09:53]process_action print_text done [21:09:53]requested_data is exist [21:09:53]produce_requested_data [21:09:53]requested_item fm.sn is exist - process it [21:09:53]wFMCommunicate request_size=4 [21:09:53]MH_SAM_APDU [21:09:53]CAPDU: 80 11 00 00 [21:09:53]Write to MH i2c: E2 08 00 D7 07 80 11 00 00 00 00 00 00 58 [21:09:53]Write i2c OK [21:09:53]MH_I2C_Read... [21:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:53]Read from MH i2c: E2 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 17 00 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 17 00 D7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 AD [21:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:09:53]wFMCommunicate OK [21:09:53]requested_item fd.num is exist - process it [21:09:53]SAM_PROTO_GetFieldsCounters [21:09:53]wFMCommunicate request_size=4 [21:09:53]MH_SAM_APDU [21:09:53]CAPDU: 80 13 00 00 [21:09:53]Write to MH i2c: E2 08 00 D8 07 80 13 00 00 00 00 00 00 5B [21:09:53]Write i2c OK [21:09:53]MH_I2C_Read... [21:09:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:53]Read from MH i2c: E2 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 62 00 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 62 00 D8 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 3B 14 01 00 0E 04 04 00 D2 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 6D [21:09: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 3B 14 01 00 0E 04 04 00 D2 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 [21:09:53]wFMCommunicate OK [21:09:53]SAM_PROTO_GetFieldsCounters done [21:09:53]requested_item shift.num is exist - process it [21:09:53]requested_item shift.opened is exist - process it [21:09:53]req_shift_opened [21:09:53]FM_GetShiftState [21:09:53]SAM_PROTO_GetShiftState [21:09:53]wFMCommunicate request_size=4 [21:09:53]MH_SAM_APDU [21:09:53]CAPDU: 80 13 01 00 [21:09:53]Write to MH i2c: E2 08 00 D9 07 80 13 01 00 00 00 00 00 5D [21:09:53]Write i2c OK [21:09:53]MH_I2C_Read... [21:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:53]Read from MH i2c: E2 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 0E 00 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 0E 00 D9 07 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 CC [21:09:53]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [21:09:53]wFMCommunicate OK [21:09:53]SAM_PROTO_GetShiftState done [21:09:53]FM_GetShiftState done [21:09:53]req_shift_opened done [21:09:53]requested_item shift.open_date is exist - process it [21:09:53]req_shift_open_date [21:09:53]req_shift_open_date done [21:09:53]produce_requested_data done [21:09:53]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70715,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [21:09:53]process_action_free print_text [21:09:53]json_value_free [21:09:53]json_value_free done [21:09:53]process_json_proto returns [21:09:53]Send response to host [21:09:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70715,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [21:09:53]free response buf [21:09:53]execute_script done [21:09:53]execute_script returns [21:09:53]free content buf [21:09:53]Sock 9.Close socket [21:09:53]Sock 9.Thread stoped [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:14]accept exits with 7 [21:20:14]New connection [21:20:14]New thread 3067305316 created [21:20:14]Thread 3067448676 joined [21:20:14]Waiting for new connection... [21:20:14] Sock 7.Parse request [21:20:14]Sock 7.Check first char [21:20:14]Sock 7.First char is OK [21:20:14]request: POST /json_proto HTTP/1.0 [21:20:14]Method: POST [21:20:14]URL: /json_proto [21:20:14]Method is POST - this is cgi request [21:20:14]url: /json_proto [21:20:14]query_string will be loaded in cgi processing [21:20:14]execute_cgi json_proto POST (null) [21:20:14]execute_cgi path=json_proto method=POST [21:20:14]POST find Content-Length [21:20:14]Host: 172.17.58.67:8080 [21:20:14]Content-Length: 808 [21:20:14]Content-Type: application/json [21:20:14] [21:20:14]POST finish read [21:20:14]Found Content-Length = 808 [21:20:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:14]execute_script... [21:20:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:14]POST & json_proto [21:20:14]process_json_proto [21:20:14]json parsed OK: [21:20:14]protocol is kg_v1.0 [21:20:14]action value=close_receipt [21:20:14]process_action close_receipt [21:20:14]cmd_close_receipt [21:20:14]MH_GetDate [21:20:14]Write to MH i2c: F0 00 00 DA 07 D0 [21:20:14]Write i2c OK [21:20:14]MH_I2C_Read... [21:20:14]Read from MH i2c: F0 [21:20:14]MH_I2C_Read... [21:20:14]Read from MH i2c: F0 09 00 [21:20:14]MH_I2C_Read... [21:20:14]Read from MH i2c: F0 09 00 DA 07 00 0F CE BB 66 94 51 63 64 83 [21:20:14]GetLastDocTimeStamp 1723582802 [21:20:14]current date 1723584015 [21:20:14]FM_GetShiftState [21:20:14]SAM_PROTO_GetShiftState [21:20:14]wFMCommunicate request_size=4 [21:20:14]MH_SAM_APDU [21:20:14]CAPDU: 80 13 01 00 [21:20:14]Write to MH i2c: E2 08 00 DB 07 80 13 01 00 00 00 00 00 5F [21:20:14]Write i2c OK [21:20:14]MH_I2C_Read... [21:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:14]Read from MH i2c: E2 [21:20:14]MH_I2C_Read... [21:20:14]Read from MH i2c: E2 0E 00 [21:20:14]MH_I2C_Read... [21:20:14]Read from MH i2c: E2 0E 00 DB 07 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 CE [21:20:14]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [21:20:14]wFMCommunicate OK [21:20:14]SAM_PROTO_GetShiftState done [21:20:14]FM_GetShiftState done [21:20:14]opened in 1723509656 [21:20:14]opened+sec_in_day 1723596056 [21:20:14]quantity*price = 100036 [21:20:14]sum+1 = 100037 [21:20:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.36 ÐСП 1% : 8.85 ÐДС 12% : 106.23 Ðаличными: 0.00 Безнал.: 1000.36 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 70 13.08.2024 21:20 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70716 ФПД: 40601104844247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T212015&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70716&fm=40601104844247&tin=02508201610067®Number=0000000000090913&sum=100036 [21:20:15]StoreToDocumentArchive [21:20:15]shift 466 fd 70716 [21:20:15]save to /storage/0466/doc_00070716 [21:20:15]save last doc name /storage/0466/doc_00070716 to /storage/kkm_last_doc_name [21:20:15]save OK [21:20:15]Clear old archive folders... [21:20:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:20:15]tlvbuf is 006F65E0 [21:20:15]SAM_PROTO_ClearQueue [21:20:15]wFMCommunicate request_size=4 [21:20:15]MH_SAM_APDU [21:20:15]CAPDU: 80 09 00 00 [21:20:15]Write to MH i2c: E2 08 00 E8 07 80 09 00 00 00 00 00 00 61 [21:20:15]Write i2c OK [21:20:15]MH_I2C_Read... [21:20:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:20:15]Read from MH i2c: E2 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: E2 03 00 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: E2 03 00 E8 07 00 90 00 63 [21:20:15]RAPDU: 90 00 [21:20:15]wFMCommunicate OK [21:20:15]SAM_PROTO_ClearQueue done [21:20:15]KKMCreateOFDPacket [21:20:15]OFDProtocolAddRootSTLVToBuf [21:20:15]FM_MakeSignedData [21:20:15]FM_MakeSignedData [21:20:15]SAM_PROTO_SignData [21:20:15]wFMCommunicate request_size=4 [21:20:15]MH_SAM_APDU [21:20:15]CAPDU: 80 0D 01 02 [21:20:15]Write to MH i2c: E2 08 00 E9 07 80 0D 01 02 00 00 00 00 69 [21:20:15]Write i2c OK [21:20:15]MH_I2C_Read... [21:20:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:20:15]Read from MH i2c: E2 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: E2 03 00 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: E2 03 00 E9 07 00 90 00 64 [21:20:15]RAPDU: 90 00 [21:20:15]wFMCommunicate OK [21:20:15]wFMCommunicate request_size=255 [21:20:15]MH_SAM_APDU [21:20:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 0F CE BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3C 14 01 00 35 04 06 00 24 [21:20:15]Write to MH i2c: E2 02 01 EA 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 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 0F CE BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3C 14 01 00 35 04 06 00 24 00 00 5D [21:20:15]Write i2c OK [21:20:15]MH_I2C_Read... [21:20:15]OFD Sender: No OFD packet to send [21:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:15]Read from MH i2c: E2 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: E2 03 00 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: E2 03 00 EA 07 00 90 00 65 [21:20:15]RAPDU: 90 00 [21:20:15]wFMCommunicate OK [21:20:15]wFMCommunicate request_size=10 [21:20:15]MH_SAM_APDU [21:20:15]CAPDU: 80 0D 02 02 05 ED 2E 6E 85 D7 [21:20:15]Write to MH i2c: E2 0D 00 EB 07 80 0D 02 02 05 00 ED 2E 6E 85 D7 00 00 5B [21:20:15]Write i2c OK [21:20:15]MH_I2C_Read... [21:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:15]Read from MH i2c: E2 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: E2 03 00 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: E2 03 00 EB 07 00 90 00 66 [21:20:15]RAPDU: 90 00 [21:20:15]wFMCommunicate OK [21:20:15]wFMCommunicate request_size=4 [21:20:15]MH_SAM_APDU [21:20:15]CAPDU: 80 0D 03 02 [21:20:15]Write to MH i2c: E2 08 00 EC 07 80 0D 03 02 00 00 00 00 6E [21:20:15]Write i2c OK [21:20:15]MH_I2C_Read... [21:20:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:20:15]Read from MH i2c: E2 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: E2 0B 00 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: E2 0B 00 EC 07 00 33 92 CE 0B F4 27 C2 49 90 00 33 [21:20:15]RAPDU: 33 92 CE 0B F4 27 C2 49 90 00 [21:20:15]wFMCommunicate OK [21:20:15]SAM_PROTO_SignData done [21:20:15]FM_MakeSignedData done [21:20:15]CreateOFDProtocolMessage [21:20:15]wFMCommunicate request_size=4 [21:20:15]MH_SAM_APDU [21:20:15]CAPDU: 80 11 00 00 [21:20:15]Write to MH i2c: E2 08 00 ED 07 80 11 00 00 00 00 00 00 6E [21:20:15]Write i2c OK [21:20:15]MH_I2C_Read... [21:20:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:15]Read from MH i2c: E2 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: E2 17 00 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: E2 17 00 ED 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C3 [21:20:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:20:15]wFMCommunicate OK [21:20:15]CreateOFDProtocolMessage done [21:20:15]OFDSenderStorePacket 70716 [21:20:15]StoreOFDPacket docnum=70716 [21:20:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 AD 57 07 01 95 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 0F CE BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3C 14 01 00 35 04 06 00 24 ED 2E 6E 85 D7 33 92 CE 0B F4 27 C2 49 [21:20:15]CheckFolder [21:20:15]dirname=/storage/ofd_packets [21:20:15]CheckFolder done [21:20:15]ProducePacketName [21:20:15]name=ofd_packets/00070716 [21:20:15]NVStorageSaveData ofd_packets/00070716 [21:20:15]File name is /storage/ofd_packets/00070716 [21:20:15]Write 301 bytes [21:20:15]NVStorageSaveData done [21:20:15]OFDSenderStorePacket done [21:20:15]KKMCreateOFDPacket done [21:20:15]NVStorageSaveData kkm_last_timestamp [21:20:15]File name is /storage/kkm_last_timestamp [21:20:15]Write 4 bytes [21:20:15]NVStorageSaveData done [21:20:15]ExternCall_PrintAddStr [21:20:15]wPrintStart [21:20:15]Write to MH i2c: 01 00 00 EE 07 F5 [21:20:15]Write i2c OK [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: 01 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: 01 07 00 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: 01 07 00 EE 07 00 00 00 00 00 FF 0F 0A [21:20:15]RasterBufferAndPrint [21:20:15]line Счет N : (1)141178 [21:20:15]line ИÐÐ: 02508201610067 [21:20:15]line Контрольно-КаÑÑовый Чек [21:20:15]line ПРОДÐЖР[21:20:15]line ТРК (МРК, ГÐК) : 31 [21:20:15]line Товар: 2710124130 [21:20:15]line Ðи-92-К-5 [21:20:15]line 15.180 * 65.90 [21:20:15]line = 1000.36 [21:20:15]line ÐДС 12% ÐСП 1% [21:20:15]line > о реализуемом товаре [21:20:15]line ИТОГО: 1000.36 [21:20:15]line ÐСП 1% : 8.85 [21:20:15]line ÐДС 12% : 106.23 [21:20:15]line Ðаличными: 0.00 [21:20:15]line Безнал.: 1000.36 [21:20:15]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [21:20:15]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [21:20:15]line СÐО: Общий режим [21:20:15]line Чек 70 13.08.2024 21:20 [21:20:15]line Смена: 466 ФФД: 1.0 [21:20:15]line ЗÐМ: 0300000140 [21:20:15]line РÐМ: 0000000000090913 [21:20:15]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [21:20:15]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [21:20:15]line ФМ: 0000000000874915 [21:20:15]line ФД: 70716 [21:20:15]line ФПД: 40601104844247 [21:20:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T212015&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70716&fm=40601104844247&tin=02508201610067®Number=0000000000090913&sum=100036 [21:20:16]OFD Sender: Processing packet 70716 [packets to send 67, broken 66] [21:20:16]ProducePacketName [21:20:16]name=ofd_packets/00070716 [21:20:16]OFD Sender: To server: ‡•öpG, [21:20:16]CommunicateWithHost lk.salyk.kg:30040 [21:20:16]ConnectInit lk.salyk.kg [21:20:16]written 0, free lines is 4095 [21:20:16]Connected sock=10 [21:20: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 39 31 35 0F 01 00 00 AD 57 07 01 95 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 0F CE BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3C 14 01 00 35 04 06 00 24 ED 2E 6E 85 D7 33 92 CE 0B F4 27 C2 49 [21:20:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 61 62 47 00 6F 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3C 14 01 00 F4 03 04 00 F9 74 BB 66 B6 04 01 00 00 97 F6 36 DD F8 BE B3 CC [21:20:16]CommunicateWithHost err = 0 [21:20:16]CheckOFDResponse [21:20:16]1017 (14) - 77093643461234 [21:20:16]1041 (16) - 0000000000874915 [21:20:16]1040 (4) - 70716 [21:20:16]1012 (4) - 13.08.2024 15:00 [21:20:16]1206 (1) - 0 [21:20:16]OFD Sender: Remove packet 70716 [21:20:16]ProducePacketName [21:20:16]name=ofd_packets/00070716 [21:20:16]NVStorageDeleteData [21:20:16]Write to MH i2c: 01 00 00 18 08 20 [21:20:16]Write i2c OK [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: 01 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: 01 07 00 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: 01 07 00 18 08 00 00 00 00 00 EB 0C 1E [21:20:16]RasterBufferAndPrint [21:20:16]line [21:20:16]line [21:20:16]line [21:20:16]line [21:20:16]line [21:20:16]written 0, free lines is 3313 [21:20:16]MH_Cut [21:20:16]Write to MH i2c: D1 01 00 1F 08 01 F9 [21:20:16]Write i2c OK [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: D1 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: D1 01 00 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: D1 01 00 1F 08 00 F8 [21:20:16]Write to MH i2c: 01 00 00 20 08 28 [21:20:16]Write i2c OK [21:20:16]MH_I2C_Read... [21:20:17]OFD Sender: No OFD packet to send [21:20:17]*** Cut start [21:20:17]*** Purtial cut [21:20:17]*** CUTSNS_PIN = 0 [21:20:17]*** Stage 1: CUTSNS_PIN = 1 [21:20:19]Read from MH i2c: 01 [21:20:19]MH_I2C_Read... [21:20:19]*** Stop cut motor [21:20:19]*** Cut end [21:20:19]Read from MH i2c: 01 07 00 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: 01 07 00 20 08 00 00 00 00 00 FF 0F 3D [21:20:19]process_action close_receipt done [21:20:19]requested_data is exist [21:20:19]produce_requested_data [21:20:19]requested_item fm.sn is exist - process it [21:20:19]wFMCommunicate request_size=4 [21:20:19]MH_SAM_APDU [21:20:19]CAPDU: 80 11 00 00 [21:20:19]Write to MH i2c: E2 08 00 21 08 80 11 00 00 00 00 00 00 A3 [21:20:19]Write i2c OK [21:20:19]MH_I2C_Read... [21:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:19]Read from MH i2c: E2 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: E2 17 00 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: E2 17 00 21 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 F8 [21:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:20:19]wFMCommunicate OK [21:20:19]requested_item fd.num is exist - process it [21:20:19]SAM_PROTO_GetFieldsCounters [21:20:19]wFMCommunicate request_size=4 [21:20:19]MH_SAM_APDU [21:20:19]CAPDU: 80 13 00 00 [21:20:19]Write to MH i2c: E2 08 00 22 08 80 13 00 00 00 00 00 00 A6 [21:20:19]Write i2c OK [21:20:19]MH_I2C_Read... [21:20:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:20:19]Read from MH i2c: E2 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: E2 62 00 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: E2 62 00 22 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 3C 14 01 00 0E 04 04 00 D2 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 BC [21:20: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 3C 14 01 00 0E 04 04 00 D2 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 [21:20:19]wFMCommunicate OK [21:20:19]SAM_PROTO_GetFieldsCounters done [21:20:19]requested_item shift.num is exist - process it [21:20:19]requested_item shift.opened is exist - process it [21:20:19]req_shift_opened [21:20:19]FM_GetShiftState [21:20:19]SAM_PROTO_GetShiftState [21:20:19]wFMCommunicate request_size=4 [21:20:19]MH_SAM_APDU [21:20:19]CAPDU: 80 13 01 00 [21:20:19]Write to MH i2c: E2 08 00 23 08 80 13 01 00 00 00 00 00 A8 [21:20:19]Write i2c OK [21:20:19]MH_I2C_Read... [21:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:19]Read from MH i2c: E2 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: E2 0E 00 [21:20:19]MH_I2C_Read... [21:20:19]Read from MH i2c: E2 0E 00 23 08 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 17 [21:20:19]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [21:20:19]wFMCommunicate OK [21:20:19]SAM_PROTO_GetShiftState done [21:20:19]FM_GetShiftState done [21:20:19]req_shift_opened done [21:20:19]requested_item shift.open_date is exist - process it [21:20:19]req_shift_open_date [21:20:19]req_shift_open_date done [21:20:19]produce_requested_data done [21:20:19]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70716,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [21:20:19]process_action_free close_receipt [21:20:19]json_value_free [21:20:19]json_value_free done [21:20:19]process_json_proto returns [21:20:19]Send response to host [21:20:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70716,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [21:20:19]free response buf [21:20:19]execute_script done [21:20:19]execute_script returns [21:20:19]free content buf [21:20:19]Sock 7.Close socket [21:20:19]Sock 7.Thread stoped [21:20:22]OFD Sender: No OFD packet to send [21:20:27]OFD Sender: No OFD packet to send [21:20:32]OFD Sender: No OFD packet to send [21:20:37]OFD Sender: No OFD packet to send [21:20:42]OFD Sender: No OFD packet to send [21:20:47]OFD Sender: No OFD packet to send [21:20:52]OFD Sender: No OFD packet to send [21:20:57]OFD Sender: No OFD packet to send [21:21:02]OFD Sender: No OFD packet to send [21:21:07]OFD Sender: No OFD packet to send [21:21:12]OFD Sender: No OFD packet to send [21:21:17]OFD Sender: No OFD packet to send [21:21:22]OFD Sender: No OFD packet to send [21:21:27]OFD Sender: No OFD packet to send [21:21:32]OFD Sender: No OFD packet to send [21:21:37]OFD Sender: No OFD packet to send [21:21:42]OFD Sender: No OFD packet to send [21:21:47]OFD Sender: No OFD packet to send [21:21:52]OFD Sender: No OFD packet to send [21:21:57]OFD Sender: No OFD packet to send [21:22:02]OFD Sender: No OFD packet to send [21:22:07]OFD Sender: No OFD packet to send [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:42]OFD Sender: No OFD packet to send [21:22:47]OFD Sender: No OFD packet to send [21:22:52]OFD Sender: No OFD packet to send [21:22:57]OFD Sender: No OFD packet to send [21:23:02]OFD Sender: No OFD packet to send [21:23:07]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:17]OFD Sender: No OFD packet to send [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:57]OFD Sender: No OFD packet to send [21:24:02]OFD Sender: No OFD packet to send [21:24:07]OFD Sender: No OFD packet to send [21:24:12]OFD Sender: No OFD packet to send [21:24:12]accept exits with 9 [21:24:12]New connection [21:24:12]New thread 3067448676 created [21:24:12]Thread 3067305316 joined [21:24:12]Waiting for new connection... [21:24:12] Sock 9.Parse request [21:24:12]Sock 9.Check first char [21:24:12]Sock 9.First char is OK [21:24:12]request: POST /json_proto HTTP/1.0 [21:24:12]Method: POST [21:24:12]URL: /json_proto [21:24:12]Method is POST - this is cgi request [21:24:12]url: /json_proto [21:24:12]query_string will be loaded in cgi processing [21:24:12]execute_cgi json_proto POST (null) [21:24:12]execute_cgi path=json_proto method=POST [21:24:12]POST find Content-Length [21:24:12]Host: 172.17.58.67:8080 [21:24:12]Content-Length: 723 [21:24:12]Content-Type: application/json [21:24:12] [21:24:12]POST finish read [21:24:12]Found Content-Length = 723 [21:24:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17482", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 285.00, "quantity" : 1.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:12]execute_script... [21:24:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17482", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 285.00, "quantity" : 1.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:12]POST & json_proto [21:24:12]process_json_proto [21:24:12]json parsed OK: [21:24:12]protocol is kg_v1.0 [21:24:12]action value=close_receipt [21:24:12]process_action close_receipt [21:24:12]cmd_close_receipt [21:24:12]MH_GetDate [21:24:12]Write to MH i2c: F0 00 00 24 08 1B [21:24:12]Write i2c OK [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: F0 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: F0 09 00 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: F0 09 00 24 08 00 FD CE BB 66 94 51 63 64 BC [21:24:12]GetLastDocTimeStamp 1723584015 [21:24:12]current date 1723584253 [21:24:12]FM_GetShiftState [21:24:12]SAM_PROTO_GetShiftState [21:24:12]wFMCommunicate request_size=4 [21:24:12]MH_SAM_APDU [21:24:12]CAPDU: 80 13 01 00 [21:24:12]Write to MH i2c: E2 08 00 25 08 80 13 01 00 00 00 00 00 AA [21:24:12]Write i2c OK [21:24:12]MH_I2C_Read... [21:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:12]Read from MH i2c: E2 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: E2 0E 00 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: E2 0E 00 25 08 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 19 [21:24:12]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [21:24:12]wFMCommunicate OK [21:24:12]SAM_PROTO_GetShiftState done [21:24:12]FM_GetShiftState done [21:24:12]opened in 1723509656 [21:24:12]opened+sec_in_day 1723596056 [21:24:12]quantity*price = 28500 [21:24:12]sum+1 = 28501 [21:24:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 285.00 ÐСП 1% : 2.52 ÐДС 12% : 30.26 Ðаличными: 285.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 71 13.08.2024 21:24 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70717 ФПД: 38030974624105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T212413&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70717&fm=38030974624105&tin=02508201610067®Number=0000000000090913&sum=28500 0 [21:24:13]StoreToDocumentArchive [21:24:13]shift 466 fd 70717 [21:24:13]save to /storage/0466/doc_00070717 [21:24:13]save last doc name /storage/0466/doc_00070717 to /storage/kkm_last_doc_name [21:24:13]save OK [21:24:13]Clear old archive folders... [21:24:13]ProcessDocumentItem done err = 0, tmpTLVsize=304 [21:24:13]tlvbuf is 006AA590 [21:24:13]SAM_PROTO_ClearQueue [21:24:13]wFMCommunicate request_size=4 [21:24:13]MH_SAM_APDU [21:24:13]CAPDU: 80 09 00 00 [21:24:13]Write to MH i2c: E2 08 00 32 08 80 09 00 00 00 00 00 00 AC [21:24:13]Write i2c OK [21:24:13]MH_I2C_Read... [21:24:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:13]Read from MH i2c: E2 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 03 00 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 03 00 32 08 00 90 00 AE [21:24:13]RAPDU: 90 00 [21:24:13]wFMCommunicate OK [21:24:13]SAM_PROTO_ClearQueue done [21:24:13]KKMCreateOFDPacket [21:24:13]OFDProtocolAddRootSTLVToBuf [21:24:13]FM_MakeSignedData [21:24:13]FM_MakeSignedData [21:24:13]SAM_PROTO_SignData [21:24:13]wFMCommunicate request_size=4 [21:24:13]MH_SAM_APDU [21:24:13]CAPDU: 80 0D 01 02 [21:24:13]Write to MH i2c: E2 08 00 33 08 80 0D 01 02 00 00 00 00 B4 [21:24:13]Write i2c OK [21:24:13]MH_I2C_Read... [21:24:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:13]Read from MH i2c: E2 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 03 00 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 03 00 33 08 00 90 00 AF [21:24:13]RAPDU: 90 00 [21:24:13]wFMCommunicate OK [21:24:13]wFMCommunicate request_size=255 [21:24:13]MH_SAM_APDU [21:24:13]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 FD CE BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 [21:24:13]Write to MH i2c: E2 02 01 34 08 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 FD CE BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 00 00 FD [21:24:13]Write i2c OK [21:24:13]MH_I2C_Read... [21:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:13]Read from MH i2c: E2 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 03 00 [21:24:13]MH_I2C_Read... [21:24:13]Read from MH i2c: E2 03 00 34 08 00 90 00 B0 [21:24:13]RAPDU: 90 00 [21:24:13]wFMCommunicate OK [21:24:13]wFMCommunicate request_size=63 [21:24:13]MH_SAM_APDU [21:24:13]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3D 14 01 00 35 04 06 00 22 96 C6 BB A1 69 [21:24:13]Write to MH i2c: E2 42 00 35 08 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3D 14 01 00 35 04 06 00 22 96 C6 BB A1 69 00 00 95 [21:24:13]Write i2c OK [21:24:13]MH_I2C_Read... [21:24:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:14]Read from MH i2c: E2 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: E2 03 00 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: E2 03 00 35 08 00 90 00 B1 [21:24:14]RAPDU: 90 00 [21:24:14]wFMCommunicate OK [21:24:14]wFMCommunicate request_size=4 [21:24:14]MH_SAM_APDU [21:24:14]CAPDU: 80 0D 03 02 [21:24:14]Write to MH i2c: E2 08 00 36 08 80 0D 03 02 00 00 00 00 B9 [21:24:14]Write i2c OK [21:24:14]MH_I2C_Read... [21:24:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:14]Read from MH i2c: E2 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: E2 0B 00 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: E2 0B 00 36 08 00 A7 31 BC FB 29 12 E1 F5 90 00 5A [21:24:14]RAPDU: A7 31 BC FB 29 12 E1 F5 90 00 [21:24:14]wFMCommunicate OK [21:24:14]SAM_PROTO_SignData done [21:24:14]FM_MakeSignedData done [21:24:14]CreateOFDProtocolMessage [21:24:14]wFMCommunicate request_size=4 [21:24:14]MH_SAM_APDU [21:24:14]CAPDU: 80 11 00 00 [21:24:14]Write to MH i2c: E2 08 00 37 08 80 11 00 00 00 00 00 00 B9 [21:24:14]Write i2c OK [21:24:14]MH_I2C_Read... [21:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:14]Read from MH i2c: E2 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: E2 17 00 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: E2 17 00 37 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 0E [21:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:24:14]wFMCommunicate OK [21:24:14]CreateOFDProtocolMessage done [21:24:14]OFDSenderStorePacket 70717 [21:24:14]StoreOFDPacket docnum=70717 [21:24:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 44 01 00 00 4A 8A 3C 01 04 7B 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 FD CE BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3D 14 01 00 35 04 06 00 22 96 C6 BB A1 69 A7 31 BC FB 29 12 E1 F5 [21:24:14]CheckFolder [21:24:14]dirname=/storage/ofd_packets [21:24:14]CheckFolder done [21:24:14]ProducePacketName [21:24:14]name=ofd_packets/00070717 [21:24:14]NVStorageSaveData ofd_packets/00070717 [21:24:14]File name is /storage/ofd_packets/00070717 [21:24:14]Write 354 bytes [21:24:14]NVStorageSaveData done [21:24:14]OFDSenderStorePacket done [21:24:14]KKMCreateOFDPacket done [21:24:14]NVStorageSaveData kkm_last_timestamp [21:24:14]File name is /storage/kkm_last_timestamp [21:24:14]Write 4 bytes [21:24:14]NVStorageSaveData done [21:24:14]ExternCall_PrintAddStr [21:24:14]wPrintStart [21:24:14]Write to MH i2c: 01 00 00 38 08 40 [21:24:14]Write i2c OK [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: 01 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: 01 07 00 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: 01 07 00 38 08 00 00 00 00 00 FF 0F 55 [21:24:14]RasterBufferAndPrint [21:24:14]line Счет N : (3)17482 [21:24:14]line ИÐÐ: 02508201610067 [21:24:14]line Контрольно-КаÑÑовый Чек [21:24:14]line ПРОДÐЖР[21:24:14]line Товар: 8901086040022 [21:24:14]line ЖидкоÑть ÑÑ‚ÐµÐºÐ»Ð¾Ð¾Ð¼Ñ‹Ð²Ð°ÑŽÑ‰Ð°Ñ ÐŸÐ -20 4,5л [21:24:14]line 1.000 * 285.00 [21:24:14]line = 285.00 [21:24:14]line ÐДС 12% ÐСП 1% [21:24:14]line > о реализуемом товаре [21:24:14]line ИТОГО: 285.00 [21:24:14]line ÐСП 1% : 2.52 [21:24:14]line ÐДС 12% : 30.26 [21:24:14]line Ðаличными: 285.00 [21:24:14]line Безнал.: 0.00 [21:24:14]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [21:24:14]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [21:24:14]line СÐО: Общий режим [21:24:14]line Чек 71 13.08.2024 21:24 [21:24:14]line Смена: 466 ФФД: 1.0 [21:24:14]line ЗÐМ: 0300000140 [21:24:14]line РÐМ: 0000000000090913 [21:24:14]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [21:24:14]line ФМ: 0000000000874915 [21:24:14]line ФД: 70717 [21:24:14]line ФПД: 38030974624105 [21:24:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T212413&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70717&fm=38030974624105&tin=02508201610067®Number=0000000000090913&sum=28500 [21:24:14]line 0 [21:24:14]OFD Sender: Processing packet 70717 [packets to send 67, broken 66] [21:24:14]ProducePacketName [21:24:14]name=ofd_packets/00070717 [21:24:14]OFD Sender: To server: ‡•öpG, [21:24:14]CommunicateWithHost lk.salyk.kg:30040 [21:24:14]ConnectInit lk.salyk.kg [21:24:14]written 0, free lines is 4095 [21:24:14]Connected sock=11 [21:24: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 39 31 35 44 01 00 00 4A 8A 3C 01 04 7B 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 FD CE BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3D 14 01 00 35 04 06 00 22 96 C6 BB A1 69 A7 31 BC FB 29 12 E1 F5 [21:24:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 8A 92 47 00 DB 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3D 14 01 00 F4 03 04 00 E8 75 BB 66 B6 04 01 00 00 53 50 6F 97 E5 7A 4B 3C [21:24:14]CommunicateWithHost err = 0 [21:24:14]CheckOFDResponse [21:24:14]1017 (14) - 77093643461234 [21:24:14]1041 (16) - 0000000000874915 [21:24:14]1040 (4) - 70717 [21:24:14]1012 (4) - 13.08.2024 15:04 [21:24:14]1206 (1) - 0 [21:24:14]OFD Sender: Remove packet 70717 [21:24:14]ProducePacketName [21:24:14]name=ofd_packets/00070717 [21:24:14]NVStorageDeleteData [21:24:14]Write to MH i2c: 01 00 00 61 08 69 [21:24:14]Write i2c OK [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: 01 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: 01 07 00 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: 01 07 00 61 08 00 00 00 00 00 0A 0D 87 [21:24:14]RasterBufferAndPrint [21:24:14]line [21:24:14]line [21:24:14]line [21:24:14]line [21:24:14]line [21:24:14]written 0, free lines is 3344 [21:24:14]MH_Cut [21:24:14]Write to MH i2c: D1 01 00 68 08 01 42 [21:24:14]Write i2c OK [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: D1 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: D1 01 00 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: D1 01 00 68 08 00 41 [21:24:14]Write to MH i2c: 01 00 00 69 08 71 [21:24:14]Write i2c OK [21:24:14]MH_I2C_Read... [21:24:15]OFD Sender: No OFD packet to send [21:24:15]*** Cut start [21:24:15]*** Purtial cut [21:24:15]*** Stage 1: CUTSNS_PIN = 1 [21:24:15]Read from MH i2c: 01 [21:24:15]MH_I2C_Read... [21:24:15]*** Stop cut motor [21:24:15]*** Cut end [21:24:15]Read from MH i2c: 01 07 00 [21:24:15]MH_I2C_Read... [21:24:15]Read from MH i2c: 01 07 00 69 08 00 00 00 00 00 FF 0F 86 [21:24:15]process_action close_receipt done [21:24:15]requested_data is exist [21:24:15]produce_requested_data [21:24:15]requested_item fm.sn is exist - process it [21:24:15]wFMCommunicate request_size=4 [21:24:15]MH_SAM_APDU [21:24:15]CAPDU: 80 11 00 00 [21:24:15]Write to MH i2c: E2 08 00 6A 08 80 11 00 00 00 00 00 00 EC [21:24:15]Write i2c OK [21:24:15]MH_I2C_Read... [21:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:15]Read from MH i2c: E2 [21:24:15]MH_I2C_Read... [21:24:15]Read from MH i2c: E2 17 00 [21:24:15]MH_I2C_Read... [21:24:15]Read from MH i2c: E2 17 00 6A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 41 [21:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:24:15]wFMCommunicate OK [21:24:15]requested_item fd.num is exist - process it [21:24:15]SAM_PROTO_GetFieldsCounters [21:24:15]wFMCommunicate request_size=4 [21:24:15]MH_SAM_APDU [21:24:15]CAPDU: 80 13 00 00 [21:24:15]Write to MH i2c: E2 08 00 6B 08 80 13 00 00 00 00 00 00 EF [21:24:15]Write i2c OK [21:24:15]MH_I2C_Read... [21:24:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:16]Read from MH i2c: E2 [21:24:16]MH_I2C_Read... [21:24:16]Read from MH i2c: E2 62 00 [21:24:16]MH_I2C_Read... [21:24:16]Read from MH i2c: E2 62 00 6B 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 3D 14 01 00 0E 04 04 00 D2 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 09 [21:24: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 3D 14 01 00 0E 04 04 00 D2 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 [21:24:16]wFMCommunicate OK [21:24:16]SAM_PROTO_GetFieldsCounters done [21:24:16]requested_item shift.num is exist - process it [21:24:16]requested_item shift.opened is exist - process it [21:24:16]req_shift_opened [21:24:16]FM_GetShiftState [21:24:16]SAM_PROTO_GetShiftState [21:24:16]wFMCommunicate request_size=4 [21:24:16]MH_SAM_APDU [21:24:16]CAPDU: 80 13 01 00 [21:24:16]Write to MH i2c: E2 08 00 6C 08 80 13 01 00 00 00 00 00 F1 [21:24:16]Write i2c OK [21:24:16]MH_I2C_Read... [21:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:16]Read from MH i2c: E2 [21:24:16]MH_I2C_Read... [21:24:16]Read from MH i2c: E2 0E 00 [21:24:16]MH_I2C_Read... [21:24:16]Read from MH i2c: E2 0E 00 6C 08 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 60 [21:24:16]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [21:24:16]wFMCommunicate OK [21:24:16]SAM_PROTO_GetShiftState done [21:24:16]FM_GetShiftState done [21:24:16]req_shift_opened done [21:24:16]requested_item shift.open_date is exist - process it [21:24:16]req_shift_open_date [21:24:16]req_shift_open_date done [21:24:16]produce_requested_data done [21:24:16]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70717,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [21:24:16]process_action_free close_receipt [21:24:16]json_value_free [21:24:16]json_value_free done [21:24:16]process_json_proto returns [21:24:16]Send response to host [21:24:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70717,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [21:24:16]free response buf [21:24:16]execute_script done [21:24:16]execute_script returns [21:24:16]free content buf [21:24:16]Sock 9.Close socket [21:24:16]Sock 9.Thread stoped [21:24:20]OFD Sender: No OFD packet to send [21:24:25]OFD Sender: No OFD packet to send [21:24:30]OFD Sender: No OFD packet to send [21:24:35]OFD Sender: No OFD packet to send [21:24:40]OFD Sender: No OFD packet to send [21:24:45]OFD Sender: No OFD packet to send [21:24:50]OFD Sender: No OFD packet to send [21:24:55]OFD Sender: No OFD packet to send [21:25:00]OFD Sender: No OFD packet to send [21:25:05]OFD Sender: No OFD packet to send [21:25:10]OFD Sender: No OFD packet to send [21:25:15]OFD Sender: No OFD packet to send [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]OFD Sender: No OFD packet to send [21:25:40]OFD Sender: No OFD packet to send [21:25:45]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]OFD Sender: No OFD packet to send [21:26:20]OFD Sender: No OFD packet to send [21:26:25]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:55]accept exits with 7 [21:38:55]New connection [21:38:55]New thread 3067305316 created [21:38:55]Thread 3067448676 joined [21:38:55]Waiting for new connection... [21:38:55] Sock 7.Parse request [21:38:55]Sock 7.Check first char [21:38:55]Sock 7.First char is OK [21:38:55]request: POST /json_proto HTTP/1.0 [21:38:55]Method: POST [21:38:55]URL: /json_proto [21:38:55]Method is POST - this is cgi request [21:38:55]url: /json_proto [21:38:55]query_string will be loaded in cgi processing [21:38:55]execute_cgi json_proto POST (null) [21:38:55]execute_cgi path=json_proto method=POST [21:38:55]POST find Content-Length [21:38:55]Host: 172.17.58.67:8080 [21:38:55]Content-Length: 1202 [21:38:55]Content-Type: application/json [21:38:55] [21:38:55]POST finish read [21:38:55]Found Content-Length = 1202 [21:38: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141180\u000A13.08.2024 20:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 44\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.40\u000A\u0418\u0422\u041E\u0413: 1488.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\u000A4004379;4004380\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:55]execute_script... [21:38: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. \u000A\u0421\u0447\u0435\u0442 N : (1)141180\u000A13.08.2024 20:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 44\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.40\u000A\u0418\u0422\u041E\u0413: 1488.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\u000A4004379;4004380\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:55]POST & json_proto [21:38:55]process_json_proto [21:38:55]json parsed OK: [21:38:55]protocol is kg_v1.0 [21:38:55]action value=print_text [21:38:55]process_action print_text [21:38:55]cmd_print_text [21:38:55]ExternCall_PrintAddStr [21:38:55]wPrintStart [21:38:55]Write to MH i2c: 01 00 00 6D 08 75 [21:38:55]Write i2c OK [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: 01 [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: 01 07 00 [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: 01 07 00 6D 08 00 00 00 00 00 FF 0F 8A [21:38:55]RasterBufferAndPrint [21:38:55]line *****ТОВÐРÐЫЙ ЧЕК***** [21:38:55]line ÐЗС 39 [21:38:55]line Партнер нефть [21:38:55]line 02508201610067 [21:38:55]line КаÑÑир : ОваÑбекова Л. [21:38:55]line Счет N : (1)141180 [21:38:55]line 13.08.2024 20:58 [21:38:55]line ПРОДÐЖР[21:38:55]line ТРК (МРК, ГÐК): 44 [21:38:55]line Вид ГСМ : 2710194210 [21:38:55]line ДТ-К-5 [21:38:55]line 20.000 x 74.40 [21:38:55]line ИТОГ: 1488.00 [21:38:55]line Тип оплаты: Талоны: Партнер нефть [21:38:55]line 4004379;4004380 [21:38:55]line ______________________ [21:38:55]line (подпиÑÑŒ) [21:38:55]written 0, free lines is 4095 [21:38:56]Write to MH i2c: 01 00 00 81 08 89 [21:38:56]Write i2c OK [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: 01 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: 01 07 00 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: 01 07 00 81 08 00 00 00 00 00 12 0E B0 [21:38:56]RasterBufferAndPrint [21:38:56]line [21:38:56]line [21:38:56]line [21:38:56]line [21:38:56]line [21:38:56]written 0, free lines is 3604 [21:38:56]MH_Cut [21:38:56]Write to MH i2c: D1 01 00 88 08 01 62 [21:38:56]Write i2c OK [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: D1 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: D1 01 00 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: D1 01 00 88 08 00 61 [21:38:56]Write to MH i2c: 01 00 00 89 08 91 [21:38:56]Write i2c OK [21:38:56]MH_I2C_Read... [21:38:56]OFD Sender: No OFD packet to send [21:38:56]*** Cut start [21:38:56]*** Purtial cut [21:38:56]*** CUTSNS_PIN = 0 [21:38:56]*** Stage 1: CUTSNS_PIN = 1 [21:38:58]Read from MH i2c: 01 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: 01 07 00 [21:38:58]MH_I2C_Read... [21:38:58]*** Stop cut motor [21:38:58]*** Cut end [21:38:58]Read from MH i2c: 01 07 00 89 08 00 00 00 00 00 FF 0F A6 [21:38:58]process_action print_text done [21:38:58]requested_data is exist [21:38:58]produce_requested_data [21:38:58]requested_item fm.sn is exist - process it [21:38:58]wFMCommunicate request_size=4 [21:38:58]MH_SAM_APDU [21:38:58]CAPDU: 80 11 00 00 [21:38:58]Write to MH i2c: E2 08 00 8A 08 80 11 00 00 00 00 00 00 0C [21:38:58]Write i2c OK [21:38:58]MH_I2C_Read... [21:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:58]Read from MH i2c: E2 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 17 00 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 17 00 8A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 61 [21:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:38:58]wFMCommunicate OK [21:38:58]requested_item fd.num is exist - process it [21:38:58]SAM_PROTO_GetFieldsCounters [21:38:58]wFMCommunicate request_size=4 [21:38:58]MH_SAM_APDU [21:38:58]CAPDU: 80 13 00 00 [21:38:58]Write to MH i2c: E2 08 00 8B 08 80 13 00 00 00 00 00 00 0F [21:38:58]Write i2c OK [21:38:58]MH_I2C_Read... [21:38:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:58]Read from MH i2c: E2 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 62 00 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 62 00 8B 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 3D 14 01 00 0E 04 04 00 D2 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 29 [21:38: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 3D 14 01 00 0E 04 04 00 D2 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 [21:38:58]wFMCommunicate OK [21:38:58]SAM_PROTO_GetFieldsCounters done [21:38:58]requested_item shift.num is exist - process it [21:38:58]requested_item shift.opened is exist - process it [21:38:58]req_shift_opened [21:38:58]FM_GetShiftState [21:38:58]SAM_PROTO_GetShiftState [21:38:58]wFMCommunicate request_size=4 [21:38:58]MH_SAM_APDU [21:38:58]CAPDU: 80 13 01 00 [21:38:58]Write to MH i2c: E2 08 00 8C 08 80 13 01 00 00 00 00 00 11 [21:38:58]Write i2c OK [21:38:58]MH_I2C_Read... [21:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:58]Read from MH i2c: E2 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 0E 00 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 0E 00 8C 08 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 80 [21:38:58]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [21:38:58]wFMCommunicate OK [21:38:58]SAM_PROTO_GetShiftState done [21:38:58]FM_GetShiftState done [21:38:58]req_shift_opened done [21:38:58]requested_item shift.open_date is exist - process it [21:38:58]req_shift_open_date [21:38:58]req_shift_open_date done [21:38:58]produce_requested_data done [21:38:58]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70717,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [21:38:58]process_action_free print_text [21:38:58]json_value_free [21:38:58]json_value_free done [21:38:58]process_json_proto returns [21:38:58]Send response to host [21:38:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70717,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [21:38:58]free response buf [21:38:58]execute_script done [21:38:58]execute_script returns [21:38:58]free content buf [21:38:58]Sock 7.Close socket [21:38:58]Sock 7.Thread stoped [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:43]accept exits with 9 [21:42:43]New connection [21:42:43]New thread 3067448676 created [21:42:43]Thread 3067305316 joined [21:42:43]Waiting for new connection... [21:42:43] Sock 9.Parse request [21:42:43]Sock 9.Check first char [21:42:43]Sock 9.First char is OK [21:42:43]request: POST /json_proto HTTP/1.0 [21:42:43]Method: POST [21:42:43]URL: /json_proto [21:42:43]Method is POST - this is cgi request [21:42:43]url: /json_proto [21:42:43]query_string will be loaded in cgi processing [21:42:43]execute_cgi json_proto POST (null) [21:42:43]execute_cgi path=json_proto method=POST [21:42:43]POST find Content-Length [21:42:43]Host: 172.17.58.67:8080 [21:42:43]Content-Length: 816 [21:42:43]Content-Type: application/json [21:42:43] [21:42:43]POST finish read [21:42:43]Found Content-Length = 816 [21:42:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 9.110, "sum" : 600.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:43]execute_script... [21:42: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)141181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 9.110, "sum" : 600.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:43]POST & json_proto [21:42:43]process_json_proto [21:42:43]json parsed OK: [21:42:43]protocol is kg_v1.0 [21:42:43]action value=close_receipt [21:42:43]process_action close_receipt [21:42:43]cmd_close_receipt [21:42:43]MH_GetDate [21:42:43]Write to MH i2c: F0 00 00 8D 08 84 [21:42:43]Write i2c OK [21:42:43]MH_I2C_Read... [21:42:43]Read from MH i2c: F0 [21:42:43]MH_I2C_Read... [21:42:43]Read from MH i2c: F0 09 00 [21:42:43]MH_I2C_Read... [21:42:43]Read from MH i2c: F0 09 00 8D 08 00 54 D3 BB 66 94 51 63 64 81 [21:42:43]GetLastDocTimeStamp 1723584253 [21:42:43]current date 1723585364 [21:42:43]FM_GetShiftState [21:42:43]SAM_PROTO_GetShiftState [21:42:43]wFMCommunicate request_size=4 [21:42:43]MH_SAM_APDU [21:42:43]CAPDU: 80 13 01 00 [21:42:43]Write to MH i2c: E2 08 00 8E 08 80 13 01 00 00 00 00 00 13 [21:42:43]Write i2c OK [21:42:43]MH_I2C_Read... [21:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:43]Read from MH i2c: E2 [21:42:43]MH_I2C_Read... [21:42:43]Read from MH i2c: E2 0E 00 [21:42:43]MH_I2C_Read... [21:42:43]Read from MH i2c: E2 0E 00 8E 08 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 82 [21:42:43]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [21:42:43]wFMCommunicate OK [21:42:43]SAM_PROTO_GetShiftState done [21:42:43]FM_GetShiftState done [21:42:43]opened in 1723509656 [21:42:43]opened+sec_in_day 1723596056 [21:42:43]quantity*price = 60034 [21:42:43]sum+1 = 60036 [21:42:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.35 ÐСП 1% : 5.31 ÐДС 12% : 63.75 Ðаличными: 0.00 Безнал.: 600.35 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 72 13.08.2024 21:42 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000000874915 ФД: 70718 ФПД: 107929721305539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T214245&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70718&fm=107929721305539&tin=02508201610067®Number=0000000000090913&sum=60035 [21:42:44]StoreToDocumentArchive [21:42:44]shift 466 fd 70718 [21:42:44]save to /storage/0466/doc_00070718 [21:42:44]save last doc name /storage/0466/doc_00070718 to /storage/kkm_last_doc_name [21:42:44]save OK [21:42:44]Clear old archive folders... [21:42:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:42:44]tlvbuf is 006F6D70 [21:42:44]SAM_PROTO_ClearQueue [21:42:44]wFMCommunicate request_size=4 [21:42:44]MH_SAM_APDU [21:42:44]CAPDU: 80 09 00 00 [21:42:44]Write to MH i2c: E2 08 00 9B 08 80 09 00 00 00 00 00 00 15 [21:42:44]Write i2c OK [21:42:44]MH_I2C_Read... [21:42:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:44]Read from MH i2c: E2 [21:42:44]MH_I2C_Read... [21:42:44]Read from MH i2c: E2 03 00 [21:42:44]MH_I2C_Read... [21:42:44]Read from MH i2c: E2 03 00 9B 08 00 90 00 17 [21:42:44]RAPDU: 90 00 [21:42:44]wFMCommunicate OK [21:42:44]SAM_PROTO_ClearQueue done [21:42:44]KKMCreateOFDPacket [21:42:44]OFDProtocolAddRootSTLVToBuf [21:42:44]FM_MakeSignedData [21:42:44]FM_MakeSignedData [21:42:44]SAM_PROTO_SignData [21:42:44]wFMCommunicate request_size=4 [21:42:44]MH_SAM_APDU [21:42:44]CAPDU: 80 0D 01 02 [21:42:44]Write to MH i2c: E2 08 00 9C 08 80 0D 01 02 00 00 00 00 1D [21:42:44]Write i2c OK [21:42:44]MH_I2C_Read... [21:42:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:44]Read from MH i2c: E2 [21:42:44]MH_I2C_Read... [21:42:44]Read from MH i2c: E2 03 00 [21:42:44]MH_I2C_Read... [21:42:44]Read from MH i2c: E2 03 00 9C 08 00 90 00 18 [21:42:44]RAPDU: 90 00 [21:42:44]wFMCommunicate OK [21:42:44]wFMCommunicate request_size=255 [21:42:44]MH_SAM_APDU [21:42: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 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 55 D3 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3E 14 01 00 35 04 06 00 62 [21:42:44]Write to MH i2c: E2 02 01 9D 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 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 55 D3 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3E 14 01 00 35 04 06 00 62 00 00 2A [21:42:44]Write i2c OK [21:42:44]MH_I2C_Read... [21:42:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:45]Read from MH i2c: E2 [21:42:45]MH_I2C_Read... [21:42:45]Read from MH i2c: E2 03 00 [21:42:45]MH_I2C_Read... [21:42:45]Read from MH i2c: E2 03 00 9D 08 00 90 00 19 [21:42:45]RAPDU: 90 00 [21:42:45]wFMCommunicate OK [21:42:45]wFMCommunicate request_size=10 [21:42:45]MH_SAM_APDU [21:42:45]CAPDU: 80 0D 02 02 05 29 58 B2 F9 C3 [21:42:45]Write to MH i2c: E2 0D 00 9E 08 80 0D 02 02 05 00 29 58 B2 F9 C3 00 00 19 [21:42:45]Write i2c OK [21:42:45]MH_I2C_Read... [21:42:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:45]Read from MH i2c: E2 [21:42:45]MH_I2C_Read... [21:42:45]Read from MH i2c: E2 03 00 [21:42:45]MH_I2C_Read... [21:42:45]Read from MH i2c: E2 03 00 9E 08 00 90 00 1A [21:42:45]RAPDU: 90 00 [21:42:45]wFMCommunicate OK [21:42:45]wFMCommunicate request_size=4 [21:42:45]MH_SAM_APDU [21:42:45]CAPDU: 80 0D 03 02 [21:42:45]Write to MH i2c: E2 08 00 9F 08 80 0D 03 02 00 00 00 00 22 [21:42:45]Write i2c OK [21:42:45]MH_I2C_Read... [21:42:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:45]Read from MH i2c: E2 [21:42:45]MH_I2C_Read... [21:42:45]Read from MH i2c: E2 0B 00 [21:42:45]MH_I2C_Read... [21:42:45]Read from MH i2c: E2 0B 00 9F 08 00 31 9F 19 0F BC 31 9A 50 90 00 F2 [21:42:45]RAPDU: 31 9F 19 0F BC 31 9A 50 90 00 [21:42:45]wFMCommunicate OK [21:42:45]SAM_PROTO_SignData done [21:42:45]FM_MakeSignedData done [21:42:45]CreateOFDProtocolMessage [21:42:45]wFMCommunicate request_size=4 [21:42:45]MH_SAM_APDU [21:42:45]CAPDU: 80 11 00 00 [21:42:45]Write to MH i2c: E2 08 00 A0 08 80 11 00 00 00 00 00 00 22 [21:42:45]Write i2c OK [21:42:45]MH_I2C_Read... [21:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:45]Read from MH i2c: E2 [21:42:45]MH_I2C_Read... [21:42:45]Read from MH i2c: E2 17 00 [21:42:45]MH_I2C_Read... [21:42:45]Read from MH i2c: E2 17 00 A0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 77 [21:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:42:45]wFMCommunicate OK [21:42:45]CreateOFDProtocolMessage done [21:42:45]OFDSenderStorePacket 70718 [21:42:45]StoreOFDPacket docnum=70718 [21:42:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 32 16 07 01 49 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 55 D3 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3E 14 01 00 35 04 06 00 62 29 58 B2 F9 C3 31 9F 19 0F BC 31 9A 50 [21:42:45]CheckFolder [21:42:45]dirname=/storage/ofd_packets [21:42:45]CheckFolder done [21:42:45]ProducePacketName [21:42:45]name=ofd_packets/00070718 [21:42:45]NVStorageSaveData ofd_packets/00070718 [21:42:45]File name is /storage/ofd_packets/00070718 [21:42:45]Write 301 bytes [21:42:45]NVStorageSaveData done [21:42:45]OFDSenderStorePacket done [21:42:45]KKMCreateOFDPacket done [21:42:45]NVStorageSaveData kkm_last_timestamp [21:42:45]File name is /storage/kkm_last_timestamp [21:42:45]Write 4 bytes [21:42:45]NVStorageSaveData done [21:42:45]ExternCall_PrintAddStr [21:42:45]wPrintStart [21:42:45]Write to MH i2c: 01 00 00 A1 08 A9 [21:42:45]Write i2c OK [21:42:45]MH_I2C_Read... [21:42:45]Read from MH i2c: 01 [21:42:45]MH_I2C_Read... [21:42:45]Read from MH i2c: 01 07 00 [21:42:45]MH_I2C_Read... [21:42:45]Read from MH i2c: 01 07 00 A1 08 00 00 00 00 00 FF 0F BE [21:42:45]RasterBufferAndPrint [21:42:45]line Счет N : (1)141181 [21:42:45]line ИÐÐ: 02508201610067 [21:42:45]line Контрольно-КаÑÑовый Чек [21:42:45]line ПРОДÐЖР[21:42:45]line ТРК (МРК, ГÐК) : 41 [21:42:45]line Товар: 2710124130 [21:42:45]line Ðи-92-К-5 [21:42:45]line 9.110 * 65.90 [21:42:45]line = 600.35 [21:42:45]line ÐДС 12% ÐСП 1% [21:42:45]line > о реализуемом товаре [21:42:45]line ИТОГО: 600.35 [21:42:45]line ÐСП 1% : 5.31 [21:42:45]line ÐДС 12% : 63.75 [21:42:45]line Ðаличными: 0.00 [21:42:45]line Безнал.: 600.35 [21:42:45]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [21:42:45]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [21:42:45]line СÐО: Общий режим [21:42:45]line Чек 72 13.08.2024 21:42 [21:42:45]line Смена: 466 ФФД: 1.0 [21:42:45]line ЗÐМ: 0300000140 [21:42:45]line РÐМ: 0000000000090913 [21:42:45]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [21:42:45]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [21:42:45]line ФМ: 0000000000874915 [21:42:45]line ФД: 70718 [21:42:45]line ФПД: 107929721305539 [21:42:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T214245&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70718&fm=107929721305539&tin=02508201610067®Number=0000000000090913&sum=60035 [21:42:45]written 0, free lines is 4095 [21:42:45]OFD Sender: Processing packet 70718 [packets to send 67, broken 66] [21:42:45]ProducePacketName [21:42:45]name=ofd_packets/00070718 [21:42:45]OFD Sender: To server: ‡•öpG, [21:42:45]CommunicateWithHost lk.salyk.kg:30040 [21:42:45]ConnectInit lk.salyk.kg [21:42:45]Connected sock=10 [21:42: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 39 31 35 0F 01 00 00 32 16 07 01 49 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 55 D3 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3E 14 01 00 35 04 06 00 62 29 58 B2 F9 C3 31 9F 19 0F BC 31 9A 50 [21:42:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 86 3D 47 00 EE 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 39 31 35 10 04 04 00 3E 14 01 00 F4 03 04 00 3F 7A BB 66 B6 04 01 00 00 94 A2 07 26 BA 15 7C AF [21:42:45]CommunicateWithHost err = 0 [21:42:45]CheckOFDResponse [21:42:45]1017 (14) - 77093643461234 [21:42:45]1041 (16) - 0000000000874915 [21:42:45]1040 (4) - 70718 [21:42:45]1012 (4) - 13.08.2024 15:22 [21:42:45]1206 (1) - 0 [21:42:45]OFD Sender: Remove packet 70718 [21:42:45]ProducePacketName [21:42:45]name=ofd_packets/00070718 [21:42:45]NVStorageDeleteData [21:42:46]Write to MH i2c: 01 00 00 CB 08 D3 [21:42:46]Write i2c OK [21:42:46]MH_I2C_Read... [21:42:46]Read from MH i2c: 01 [21:42:46]MH_I2C_Read... [21:42:46]Read from MH i2c: 01 07 00 [21:42:46]MH_I2C_Read... [21:42:46]Read from MH i2c: 01 07 00 CB 08 00 00 00 00 00 EC 0C D2 [21:42:46]RasterBufferAndPrint [21:42:46]line [21:42:46]line [21:42:46]line [21:42:46]line [21:42:46]line [21:42:46]written 0, free lines is 3317 [21:42:46]MH_Cut [21:42:46]Write to MH i2c: D1 01 00 D2 08 01 AC [21:42:46]Write i2c OK [21:42:46]MH_I2C_Read... [21:42:46]Read from MH i2c: D1 [21:42:46]MH_I2C_Read... [21:42:46]Read from MH i2c: D1 01 00 [21:42:46]MH_I2C_Read... [21:42:46]Read from MH i2c: D1 01 00 D2 08 00 AB [21:42:46]Write to MH i2c: 01 00 00 D3 08 DB [21:42:46]Write i2c OK [21:42:46]MH_I2C_Read... [21:42:46]OFD Sender: No OFD packet to send [21:42:46]*** Cut start [21:42:46]*** Purtial cut [21:42:46]*** Stage 1: CUTSNS_PIN = 1 [21:42:47]Read from MH i2c: 01 [21:42:47]MH_I2C_Read... [21:42:47]*** Stop cut motor [21:42:47]*** Cut end [21:42:47]Read from MH i2c: 01 07 00 [21:42:47]MH_I2C_Read... [21:42:47]Read from MH i2c: 01 07 00 D3 08 00 00 00 00 00 FF 0F F0 [21:42:47]process_action close_receipt done [21:42:47]requested_data is exist [21:42:47]produce_requested_data [21:42:47]requested_item fm.sn is exist - process it [21:42:47]wFMCommunicate request_size=4 [21:42:47]MH_SAM_APDU [21:42:47]CAPDU: 80 11 00 00 [21:42:47]Write to MH i2c: E2 08 00 D4 08 80 11 00 00 00 00 00 00 56 [21:42:47]Write i2c OK [21:42:47]MH_I2C_Read... [21:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:47]Read from MH i2c: E2 [21:42:47]MH_I2C_Read... [21:42:47]Read from MH i2c: E2 17 00 [21:42:47]MH_I2C_Read... [21:42:47]Read from MH i2c: E2 17 00 D4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 AB [21:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:42:47]wFMCommunicate OK [21:42:47]requested_item fd.num is exist - process it [21:42:47]SAM_PROTO_GetFieldsCounters [21:42:47]wFMCommunicate request_size=4 [21:42:47]MH_SAM_APDU [21:42:47]CAPDU: 80 13 00 00 [21:42:47]Write to MH i2c: E2 08 00 D5 08 80 13 00 00 00 00 00 00 59 [21:42:47]Write i2c OK [21:42:47]MH_I2C_Read... [21:42:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:47]Read from MH i2c: E2 [21:42:47]MH_I2C_Read... [21:42:47]Read from MH i2c: E2 62 00 [21:42:47]MH_I2C_Read... [21:42:47]Read from MH i2c: E2 62 00 D5 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 3E 14 01 00 0E 04 04 00 D2 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 77 [21:42: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 3E 14 01 00 0E 04 04 00 D2 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 [21:42:47]wFMCommunicate OK [21:42:47]SAM_PROTO_GetFieldsCounters done [21:42:47]requested_item shift.num is exist - process it [21:42:47]requested_item shift.opened is exist - process it [21:42:47]req_shift_opened [21:42:47]FM_GetShiftState [21:42:47]SAM_PROTO_GetShiftState [21:42:47]wFMCommunicate request_size=4 [21:42:47]MH_SAM_APDU [21:42:47]CAPDU: 80 13 01 00 [21:42:47]Write to MH i2c: E2 08 00 D6 08 80 13 01 00 00 00 00 00 5B [21:42:47]Write i2c OK [21:42:47]MH_I2C_Read... [21:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:47]Read from MH i2c: E2 [21:42:47]MH_I2C_Read... [21:42:47]Read from MH i2c: E2 0E 00 [21:42:47]MH_I2C_Read... [21:42:47]Read from MH i2c: E2 0E 00 D6 08 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 CA [21:42:47]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [21:42:47]wFMCommunicate OK [21:42:47]SAM_PROTO_GetShiftState done [21:42:47]FM_GetShiftState done [21:42:47]req_shift_opened done [21:42:47]requested_item shift.open_date is exist - process it [21:42:47]req_shift_open_date [21:42:47]req_shift_open_date done [21:42:47]produce_requested_data done [21:42:47]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70718,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [21:42:47]process_action_free close_receipt [21:42:47]json_value_free [21:42:47]json_value_free done [21:42:47]process_json_proto returns [21:42:47]Send response to host [21:42:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70718,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [21:42:47]free response buf [21:42:47]execute_script done [21:42:47]execute_script returns [21:42:47]free content buf [21:42:47]Sock 9.Close socket [21:42:47]Sock 9.Thread stoped [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:13]accept exits with 7 [21:48:13]New connection [21:48:13]New thread 3067305316 created [21:48:13]Thread 3067448676 joined [21:48:13]Waiting for new connection... [21:48:13] Sock 7.Parse request [21:48:13]Sock 7.Check first char [21:48:13]Sock 7.First char is OK [21:48:13]request: POST /json_proto HTTP/1.0 [21:48:13]Method: POST [21:48:13]URL: /json_proto [21:48:13]Method is POST - this is cgi request [21:48:13]url: /json_proto [21:48:13]query_string will be loaded in cgi processing [21:48:13]execute_cgi json_proto POST (null) [21:48:13]execute_cgi path=json_proto method=POST [21:48:13]POST find Content-Length [21:48:13]Host: 172.17.58.67:8080 [21:48:13]Content-Length: 674 [21:48:13]Content-Type: application/json [21:48:13] [21:48:13]POST finish read [21:48:13]Found Content-Length = 674 [21:48:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 5.380, "sum" : 400.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:13]execute_script... [21:48: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)141182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 5.380, "sum" : 400.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:13]POST & json_proto [21:48:13]process_json_proto [21:48:13]json parsed OK: [21:48:13]protocol is kg_v1.0 [21:48:13]action value=close_receipt [21:48:13]process_action close_receipt [21:48:13]cmd_close_receipt [21:48:13]MH_GetDate [21:48:13]Write to MH i2c: F0 00 00 D7 08 CE [21:48:13]Write i2c OK [21:48:13]MH_I2C_Read... [21:48:13]Read from MH i2c: F0 [21:48:13]MH_I2C_Read... [21:48:13]Read from MH i2c: F0 09 00 [21:48:13]MH_I2C_Read... [21:48:13]Read from MH i2c: F0 09 00 D7 08 00 9E D4 BB 66 94 51 63 64 16 [21:48:13]GetLastDocTimeStamp 1723585365 [21:48:13]current date 1723585694 [21:48:13]FM_GetShiftState [21:48:13]SAM_PROTO_GetShiftState [21:48:13]wFMCommunicate request_size=4 [21:48:13]MH_SAM_APDU [21:48:13]CAPDU: 80 13 01 00 [21:48:13]Write to MH i2c: E2 08 00 D8 08 80 13 01 00 00 00 00 00 5D [21:48:13]Write i2c OK [21:48:13]MH_I2C_Read... [21:48:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:13]Read from MH i2c: E2 [21:48:13]MH_I2C_Read... [21:48:13]Read from MH i2c: E2 0E 00 [21:48:13]MH_I2C_Read... [21:48:13]Read from MH i2c: E2 0E 00 D8 08 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 CC [21:48:13]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [21:48:13]wFMCommunicate OK [21:48:13]SAM_PROTO_GetShiftState done [21:48:13]FM_GetShiftState done [21:48:13]opened in 1723509656 [21:48:13]opened+sec_in_day 1723596056 [21:48:13]quantity*price = 40027 [21:48:13]sum+1 = 40028 [21:48:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.27 ИТОГО: 400.00 ВнеÑено: 400.00 СДÐЧÐ: 0.00 ÐСП 1% : 3.54 ÐДС 12% : 42.51 Ðаличными: 400.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 73 13.08.2024 21:48 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70719 ФПД: 132975111790791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T214814&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70719&fm=132975111790791&tin=02508201610067®Number=0000000000090913&sum=40000 [21:48:14]StoreToDocumentArchive [21:48:14]shift 466 fd 70719 [21:48:14]save to /storage/0466/doc_00070719 [21:48:14]save last doc name /storage/0466/doc_00070719 to /storage/kkm_last_doc_name [21:48:14]save OK [21:48:14]Clear old archive folders... [21:48:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:48:14]tlvbuf is 006D89F0 [21:48:14]SAM_PROTO_ClearQueue [21:48:14]wFMCommunicate request_size=4 [21:48:14]MH_SAM_APDU [21:48:14]CAPDU: 80 09 00 00 [21:48:14]Write to MH i2c: E2 08 00 E5 08 80 09 00 00 00 00 00 00 5F [21:48:14]Write i2c OK [21:48:14]MH_I2C_Read... [21:48:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:14]Read from MH i2c: E2 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: E2 03 00 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: E2 03 00 E5 08 00 90 00 61 [21:48:14]RAPDU: 90 00 [21:48:14]wFMCommunicate OK [21:48:14]SAM_PROTO_ClearQueue done [21:48:14]KKMCreateOFDPacket [21:48:14]OFDProtocolAddRootSTLVToBuf [21:48:14]FM_MakeSignedData [21:48:14]FM_MakeSignedData [21:48:14]SAM_PROTO_SignData [21:48:14]wFMCommunicate request_size=4 [21:48:14]MH_SAM_APDU [21:48:14]CAPDU: 80 0D 01 02 [21:48:14]Write to MH i2c: E2 08 00 E6 08 80 0D 01 02 00 00 00 00 67 [21:48:14]Write i2c OK [21:48:14]MH_I2C_Read... [21:48:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:14]Read from MH i2c: E2 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: E2 03 00 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: E2 03 00 E6 08 00 90 00 62 [21:48:14]RAPDU: 90 00 [21:48:14]wFMCommunicate OK [21:48:14]wFMCommunicate request_size=255 [21:48:14]MH_SAM_APDU [21:48: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 04 15 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 5B 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 9B 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 49 00 00 00 F4 03 04 00 9E D4 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3F 14 01 00 35 04 06 00 78 F0 AE 4D [21:48:14]Write to MH i2c: E2 02 01 E7 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 15 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 5B 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 9B 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 49 00 00 00 F4 03 04 00 9E D4 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3F 14 01 00 35 04 06 00 78 F0 AE 4D 00 00 2C [21:48:14]Write i2c OK [21:48:14]MH_I2C_Read... [21:48:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:14]Read from MH i2c: E2 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: E2 03 00 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: E2 03 00 E7 08 00 90 00 63 [21:48:14]RAPDU: 90 00 [21:48:14]wFMCommunicate OK [21:48:14]wFMCommunicate request_size=7 [21:48:14]MH_SAM_APDU [21:48:14]CAPDU: 80 0D 02 02 02 60 C7 [21:48:14]Write to MH i2c: E2 0A 00 E8 08 80 0D 02 02 02 00 60 C7 00 00 95 [21:48:14]Write i2c OK [21:48:14]MH_I2C_Read... [21:48:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:14]Read from MH i2c: E2 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: E2 03 00 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: E2 03 00 E8 08 00 90 00 64 [21:48:14]RAPDU: 90 00 [21:48:14]wFMCommunicate OK [21:48:14]wFMCommunicate request_size=4 [21:48:14]MH_SAM_APDU [21:48:14]CAPDU: 80 0D 03 02 [21:48:14]Write to MH i2c: E2 08 00 E9 08 80 0D 03 02 00 00 00 00 6C [21:48:14]Write i2c OK [21:48:14]MH_I2C_Read... [21:48:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:14]Read from MH i2c: E2 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: E2 0B 00 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: E2 0B 00 E9 08 00 BC 4C E4 21 11 A4 45 FF 90 00 73 [21:48:14]RAPDU: BC 4C E4 21 11 A4 45 FF 90 00 [21:48:14]wFMCommunicate OK [21:48:14]SAM_PROTO_SignData done [21:48:14]FM_MakeSignedData done [21:48:14]CreateOFDProtocolMessage [21:48:14]wFMCommunicate request_size=4 [21:48:14]MH_SAM_APDU [21:48:14]CAPDU: 80 11 00 00 [21:48:14]Write to MH i2c: E2 08 00 EA 08 80 11 00 00 00 00 00 00 6C [21:48:14]Write i2c OK [21:48:14]MH_I2C_Read... [21:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:14]Read from MH i2c: E2 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: E2 17 00 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: E2 17 00 EA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C1 [21:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:48:14]wFMCommunicate OK [21:48:14]CreateOFDProtocolMessage done [21:48:14]OFDSenderStorePacket 70719 [21:48:14]StoreOFDPacket docnum=70719 [21:48:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 38 40 04 01 4C 66 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 04 15 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 5B 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 9B 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 49 00 00 00 F4 03 04 00 9E D4 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3F 14 01 00 35 04 06 00 78 F0 AE 4D 60 C7 BC 4C E4 21 11 A4 45 FF [21:48:14]CheckFolder [21:48:14]dirname=/storage/ofd_packets [21:48:14]CheckFolder done [21:48:14]ProducePacketName [21:48:14]name=ofd_packets/00070719 [21:48:14]NVStorageSaveData ofd_packets/00070719 [21:48:14]File name is /storage/ofd_packets/00070719 [21:48:14]Write 298 bytes [21:48:14]NVStorageSaveData done [21:48:14]OFDSenderStorePacket done [21:48:14]KKMCreateOFDPacket done [21:48:14]NVStorageSaveData kkm_last_timestamp [21:48:14]File name is /storage/kkm_last_timestamp [21:48:14]Write 4 bytes [21:48:14]NVStorageSaveData done [21:48:14]ExternCall_PrintAddStr [21:48:14]wPrintStart [21:48:14]Write to MH i2c: 01 00 00 EB 08 F3 [21:48:14]Write i2c OK [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: 01 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: 01 07 00 [21:48:14]MH_I2C_Read... [21:48:14]Read from MH i2c: 01 07 00 EB 08 00 00 00 00 00 FF 0F 08 [21:48:14]RasterBufferAndPrint [21:48:14]line Счет N : (1)141182 [21:48:14]line ИÐÐ: 02508201610067 [21:48:14]line Контрольно-КаÑÑовый Чек [21:48:14]line ПРОДÐЖР[21:48:14]line ТРК (МРК, ГÐК) : 34 [21:48:14]line Товар: 2710194210 [21:48:14]line ДТ-К-5 [21:48:14]line 5.380 * 74.40 [21:48:14]line = 400.27 [21:48:14]line ÐДС 12% ÐСП 1% [21:48:14]line > о реализуемом товаре [21:48:14]line ОКРУГЛЕÐИЕ: -0.27 [21:48:14]line ИТОГО: 400.00 [21:48:14]line ВнеÑено: 400.00 [21:48:14]line СДÐЧÐ: 0.00 [21:48:14]line ÐСП 1% : 3.54 [21:48:14]line ÐДС 12% : 42.51 [21:48:14]line Ðаличными: 400.00 [21:48:14]line Безнал.: 0.00 [21:48:14]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [21:48:14]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [21:48:14]line СÐО: Общий режим [21:48:14]line Чек 73 13.08.2024 21:48 [21:48:14]line Смена: 466 ФФД: 1.0 [21:48:14]line ЗÐМ: 0300000140 [21:48:14]line РÐМ: 0000000000090913 [21:48:14]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [21:48:14]line ФМ: 0000000000874915 [21:48:14]line ФД: 70719 [21:48:14]line ФПД: 132975111790791 [21:48:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T214814&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70719&fm=132975111790791&tin=02508201610067®Number=0000000000090913&sum=40000 [21:48:15]OFD Sender: Processing packet 70719 [packets to send 67, broken 66] [21:48:15]ProducePacketName [21:48:15]name=ofd_packets/00070719 [21:48:15]OFD Sender: To server: ‡•öpG, [21:48:15]CommunicateWithHost lk.salyk.kg:30040 [21:48:15]ConnectInit lk.salyk.kg [21:48:15]written 0, free lines is 4095 [21:48:15]Connected sock=10 [21:48: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 39 31 35 0C 01 00 00 38 40 04 01 4C 66 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 04 15 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 5B 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 9B 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 49 00 00 00 F4 03 04 00 9E D4 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3F 14 01 00 35 04 06 00 78 F0 AE 4D 60 C7 BC 4C E4 21 11 A4 45 FF [21:48:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 E7 35 47 00 01 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 3F 14 01 00 F4 03 04 00 88 7B BB 66 B6 04 01 00 00 CC 4F 46 1F 7F 0D CA 64 [21:48:15]CommunicateWithHost err = 0 [21:48:15]CheckOFDResponse [21:48:15]1017 (14) - 77093643461234 [21:48:15]1041 (16) - 0000000000874915 [21:48:15]1040 (4) - 70719 [21:48:15]1012 (4) - 13.08.2024 15:28 [21:48:15]1206 (1) - 0 [21:48:15]OFD Sender: Remove packet 70719 [21:48:15]ProducePacketName [21:48:15]name=ofd_packets/00070719 [21:48:15]NVStorageDeleteData [21:48:15]Write to MH i2c: 01 00 00 16 09 1F [21:48:15]Write i2c OK [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: 01 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: 01 07 00 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: 01 07 00 16 09 00 00 00 00 00 D7 0C 09 [21:48:15]RasterBufferAndPrint [21:48:15]line [21:48:15]line [21:48:15]line [21:48:15]line [21:48:15]line [21:48:15]written 0, free lines is 3296 [21:48:15]MH_Cut [21:48:15]Write to MH i2c: D1 01 00 1D 09 01 F8 [21:48:15]Write i2c OK [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: D1 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: D1 01 00 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: D1 01 00 1D 09 00 F7 [21:48:15]Write to MH i2c: 01 00 00 1E 09 27 [21:48:15]Write i2c OK [21:48:15]MH_I2C_Read... [21:48:15]OFD Sender: No OFD packet to send [21:48:16]*** Cut start [21:48:16]*** Purtial cut [21:48:16]*** CUTSNS_PIN = 0 [21:48:16]*** Stage 1: CUTSNS_PIN = 1 [21:48:18]Read from MH i2c: 01 [21:48:18]*** Stop cut motor [21:48:18]*** Cut end [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: 01 07 00 [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: 01 07 00 1E 09 00 00 00 00 00 FF 0F 3C [21:48:18]process_action close_receipt done [21:48:18]requested_data is exist [21:48:18]produce_requested_data [21:48:18]requested_item fm.sn is exist - process it [21:48:18]wFMCommunicate request_size=4 [21:48:18]MH_SAM_APDU [21:48:18]CAPDU: 80 11 00 00 [21:48:18]Write to MH i2c: E2 08 00 1F 09 80 11 00 00 00 00 00 00 A2 [21:48:18]Write i2c OK [21:48:18]MH_I2C_Read... [21:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:18]Read from MH i2c: E2 [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: E2 17 00 [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: E2 17 00 1F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 F7 [21:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:48:18]wFMCommunicate OK [21:48:18]requested_item fd.num is exist - process it [21:48:18]SAM_PROTO_GetFieldsCounters [21:48:18]wFMCommunicate request_size=4 [21:48:18]MH_SAM_APDU [21:48:18]CAPDU: 80 13 00 00 [21:48:18]Write to MH i2c: E2 08 00 20 09 80 13 00 00 00 00 00 00 A5 [21:48:18]Write i2c OK [21:48:18]MH_I2C_Read... [21:48:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:18]Read from MH i2c: E2 [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: E2 62 00 [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: E2 62 00 20 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 3F 14 01 00 0E 04 04 00 D2 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 C7 [21:48: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 3F 14 01 00 0E 04 04 00 D2 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 [21:48:18]wFMCommunicate OK [21:48:18]SAM_PROTO_GetFieldsCounters done [21:48:18]requested_item shift.num is exist - process it [21:48:18]requested_item shift.opened is exist - process it [21:48:18]req_shift_opened [21:48:18]FM_GetShiftState [21:48:18]SAM_PROTO_GetShiftState [21:48:18]wFMCommunicate request_size=4 [21:48:18]MH_SAM_APDU [21:48:18]CAPDU: 80 13 01 00 [21:48:18]Write to MH i2c: E2 08 00 21 09 80 13 01 00 00 00 00 00 A7 [21:48:18]Write i2c OK [21:48:18]MH_I2C_Read... [21:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:18]Read from MH i2c: E2 [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: E2 0E 00 [21:48:18]MH_I2C_Read... [21:48:18]Read from MH i2c: E2 0E 00 21 09 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 16 [21:48:18]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [21:48:18]wFMCommunicate OK [21:48:18]SAM_PROTO_GetShiftState done [21:48:18]FM_GetShiftState done [21:48:18]req_shift_opened done [21:48:18]requested_item shift.open_date is exist - process it [21:48:18]req_shift_open_date [21:48:18]req_shift_open_date done [21:48:18]produce_requested_data done [21:48:18]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70719,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [21:48:18]process_action_free close_receipt [21:48:18]json_value_free [21:48:18]json_value_free done [21:48:18]process_json_proto returns [21:48:18]Send response to host [21:48:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70719,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [21:48:18]free response buf [21:48:18]execute_script done [21:48:18]execute_script returns [21:48:18]free content buf [21:48:18]Sock 7.Close socket [21:48:18]Sock 7.Thread stoped [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]accept exits with 9 [21:49:45]New connection [21:49:45]New thread 3067448676 created [21:49:45]Thread 3067305316 joined [21:49:45]Waiting for new connection... [21:49:45] Sock 9.Parse request [21:49:45]Sock 9.Check first char [21:49:45]Sock 9.First char is OK [21:49:45]request: POST /json_proto HTTP/1.0 [21:49:45]Method: POST [21:49:45]URL: /json_proto [21:49:45]Method is POST - this is cgi request [21:49:45]url: /json_proto [21:49:45]query_string will be loaded in cgi processing [21:49:45]execute_cgi json_proto POST (null) [21:49:45]execute_cgi path=json_proto method=POST [21:49:45]POST find Content-Length [21:49:45]Host: 172.17.58.67:8080 [21:49:45]Content-Length: 805 [21:49:45]Content-Type: application/json [21:49:45] [21:49:45]POST finish read [21:49:45]Found Content-Length = 805 [21:49:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 5.320, "sum" : 350.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" : 350.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:45]execute_script... [21:49: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)141183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 5.320, "sum" : 350.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" : 350.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:45]POST & json_proto [21:49:45]process_json_proto [21:49:45]json parsed OK: [21:49:45]protocol is kg_v1.0 [21:49:45]action value=close_receipt [21:49:45]process_action close_receipt [21:49:45]cmd_close_receipt [21:49:45]MH_GetDate [21:49:45]Write to MH i2c: F0 00 00 22 09 1A [21:49:45]Write i2c OK [21:49:45]MH_I2C_Read... [21:49:45]Read from MH i2c: F0 [21:49:45]MH_I2C_Read... [21:49:45]Read from MH i2c: F0 09 00 [21:49:45]MH_I2C_Read... [21:49:45]Read from MH i2c: F0 09 00 22 09 00 FA D4 BB 66 94 51 63 64 BE [21:49:45]GetLastDocTimeStamp 1723585694 [21:49:45]current date 1723585786 [21:49:45]FM_GetShiftState [21:49:45]SAM_PROTO_GetShiftState [21:49:45]wFMCommunicate request_size=4 [21:49:45]MH_SAM_APDU [21:49:45]CAPDU: 80 13 01 00 [21:49:45]Write to MH i2c: E2 08 00 23 09 80 13 01 00 00 00 00 00 A9 [21:49:45]Write i2c OK [21:49:45]MH_I2C_Read... [21:49:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:45]Read from MH i2c: E2 [21:49:45]MH_I2C_Read... [21:49:45]Read from MH i2c: E2 0E 00 [21:49:45]MH_I2C_Read... [21:49:45]Read from MH i2c: E2 0E 00 23 09 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 18 [21:49:45]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [21:49:45]wFMCommunicate OK [21:49:45]SAM_PROTO_GetShiftState done [21:49:45]FM_GetShiftState done [21:49:45]opened in 1723509656 [21:49:45]opened+sec_in_day 1723596056 [21:49:45]quantity*price = 35058 [21:49:45]sum+1 = 35060 [21:49:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.59 ÐСП 1% : 3.10 ÐДС 12% : 37.23 Ðаличными: 0.00 Безнал.: 350.59 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 74 13.08.2024 21:49 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70720 ФПД: 164383548999110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T214946&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70720&fm=164383548999110&tin=02508201610067®Number=0000000000090913&sum=35059 [21:49:46]StoreToDocumentArchive [21:49:46]shift 466 fd 70720 [21:49:46]save to /storage/0466/doc_00070720 [21:49:46]save last doc name /storage/0466/doc_00070720 to /storage/kkm_last_doc_name [21:49:46]save OK [21:49:46]Clear old archive folders... [21:49:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:49:46]tlvbuf is 006B3A40 [21:49:46]SAM_PROTO_ClearQueue [21:49:46]wFMCommunicate request_size=4 [21:49:46]MH_SAM_APDU [21:49:46]CAPDU: 80 09 00 00 [21:49:46]Write to MH i2c: E2 08 00 30 09 80 09 00 00 00 00 00 00 AB [21:49:46]Write i2c OK [21:49:46]MH_I2C_Read... [21:49:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:46]Read from MH i2c: E2 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: E2 03 00 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: E2 03 00 30 09 00 90 00 AD [21:49:46]RAPDU: 90 00 [21:49:46]wFMCommunicate OK [21:49:46]SAM_PROTO_ClearQueue done [21:49:46]KKMCreateOFDPacket [21:49:46]OFDProtocolAddRootSTLVToBuf [21:49:46]FM_MakeSignedData [21:49:46]FM_MakeSignedData [21:49:46]SAM_PROTO_SignData [21:49:46]wFMCommunicate request_size=4 [21:49:46]MH_SAM_APDU [21:49:46]CAPDU: 80 0D 01 02 [21:49:46]Write to MH i2c: E2 08 00 31 09 80 0D 01 02 00 00 00 00 B3 [21:49:46]Write i2c OK [21:49:46]MH_I2C_Read... [21:49:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:46]Read from MH i2c: E2 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: E2 03 00 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: E2 03 00 31 09 00 90 00 AE [21:49:46]RAPDU: 90 00 [21:49:46]wFMCommunicate OK [21:49:46]wFMCommunicate request_size=255 [21:49:46]MH_SAM_APDU [21:49: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 C8 14 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 FA D4 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 40 14 01 00 35 04 06 00 95 [21:49:46]Write to MH i2c: E2 02 01 32 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 C8 14 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 FA D4 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 40 14 01 00 35 04 06 00 95 00 00 A6 [21:49:46]Write i2c OK [21:49:46]MH_I2C_Read... [21:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:47]Read from MH i2c: E2 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 32 09 00 90 00 AF [21:49:47]RAPDU: 90 00 [21:49:47]wFMCommunicate OK [21:49:47]wFMCommunicate request_size=10 [21:49:47]MH_SAM_APDU [21:49:47]CAPDU: 80 0D 02 02 05 81 87 0B 85 C6 [21:49:47]Write to MH i2c: E2 0D 00 33 09 80 0D 02 02 05 00 81 87 0B 85 C6 00 00 1E [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:47]Read from MH i2c: E2 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 03 00 33 09 00 90 00 B0 [21:49:47]RAPDU: 90 00 [21:49:47]wFMCommunicate OK [21:49:47]wFMCommunicate request_size=4 [21:49:47]MH_SAM_APDU [21:49:47]CAPDU: 80 0D 03 02 [21:49:47]Write to MH i2c: E2 08 00 34 09 80 0D 03 02 00 00 00 00 B8 [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:47]Read from MH i2c: E2 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 0B 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 0B 00 34 09 00 AF 62 B1 67 CC 5F 41 D1 90 00 1F [21:49:47]RAPDU: AF 62 B1 67 CC 5F 41 D1 90 00 [21:49:47]wFMCommunicate OK [21:49:47]SAM_PROTO_SignData done [21:49:47]FM_MakeSignedData done [21:49:47]CreateOFDProtocolMessage [21:49:47]wFMCommunicate request_size=4 [21:49:47]MH_SAM_APDU [21:49:47]CAPDU: 80 11 00 00 [21:49:47]Write to MH i2c: E2 08 00 35 09 80 11 00 00 00 00 00 00 B8 [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:47]Read from MH i2c: E2 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 17 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: E2 17 00 35 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 0D [21:49:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:49:47]wFMCommunicate OK [21:49:47]CreateOFDProtocolMessage done [21:49:47]OFDSenderStorePacket 70720 [21:49:47]StoreOFDPacket docnum=70720 [21:49:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 72 87 07 01 9B FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 FA D4 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 40 14 01 00 35 04 06 00 95 81 87 0B 85 C6 AF 62 B1 67 CC 5F 41 D1 [21:49:47]CheckFolder [21:49:47]dirname=/storage/ofd_packets [21:49:47]CheckFolder done [21:49:47]ProducePacketName [21:49:47]name=ofd_packets/00070720 [21:49:47]NVStorageSaveData ofd_packets/00070720 [21:49:47]File name is /storage/ofd_packets/00070720 [21:49:47]Write 301 bytes [21:49:47]NVStorageSaveData done [21:49:47]OFDSenderStorePacket done [21:49:47]KKMCreateOFDPacket done [21:49:47]NVStorageSaveData kkm_last_timestamp [21:49:47]File name is /storage/kkm_last_timestamp [21:49:47]Write 4 bytes [21:49:47]NVStorageSaveData done [21:49:47]ExternCall_PrintAddStr [21:49:47]wPrintStart [21:49:47]Write to MH i2c: 01 00 00 36 09 3F [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: 01 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: 01 07 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: 01 07 00 36 09 00 00 00 00 00 FF 0F 54 [21:49:47]RasterBufferAndPrint [21:49:47]line Счет N : (1)141183 [21:49:47]line ИÐÐ: 02508201610067 [21:49:47]line Контрольно-КаÑÑовый Чек [21:49:47]line ПРОДÐЖР[21:49:47]line ТРК (МРК, ГÐК) : 41 [21:49:47]line Товар: 2710124130 [21:49:47]line Ðи-92-К-5 [21:49:47]line 5.320 * 65.90 [21:49:47]line = 350.59 [21:49:47]line ÐДС 12% ÐСП 1% [21:49:47]line > о реализуемом товаре [21:49:47]line ИТОГО: 350.59 [21:49:47]line ÐСП 1% : 3.10 [21:49:47]line ÐДС 12% : 37.23 [21:49:47]line Ðаличными: 0.00 [21:49:47]line Безнал.: 350.59 [21:49:47]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [21:49:47]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [21:49:47]line СÐО: Общий режим [21:49:47]line Чек 74 13.08.2024 21:49 [21:49:47]line Смена: 466 ФФД: 1.0 [21:49:47]line ЗÐМ: 0300000140 [21:49:47]line РÐМ: 0000000000090913 [21:49:47]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [21:49:47]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [21:49:47]line ФМ: 0000000000874915 [21:49:47]line ФД: 70720 [21:49:47]line ФПД: 164383548999110 [21:49:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T214946&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70720&fm=164383548999110&tin=02508201610067®Number=0000000000090913&sum=35059 [21:49:47]OFD Sender: Processing packet 70720 [packets to send 67, broken 66] [21:49:47]ProducePacketName [21:49:47]name=ofd_packets/00070720 [21:49:47]OFD Sender: To server: ‡•öpG, [21:49:47]CommunicateWithHost lk.salyk.kg:30040 [21:49:47]ConnectInit lk.salyk.kg [21:49:47]written 0, free lines is 4095 [21:49:47]Connected sock=10 [21:49: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 39 31 35 0F 01 00 00 72 87 07 01 9B FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 14 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 FA D4 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 40 14 01 00 35 04 06 00 95 81 87 0B 85 C6 AF 62 B1 67 CC 5F 41 D1 [21:49:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 82 2E 47 00 F7 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 40 14 01 00 F4 03 04 00 E5 7B BB 66 B6 04 01 00 00 54 E2 ED 55 A6 AF 5F 6D [21:49:47]CommunicateWithHost err = 0 [21:49:47]CheckOFDResponse [21:49:47]1017 (14) - 77093643461234 [21:49:47]1041 (16) - 0000000000874915 [21:49:47]1040 (4) - 70720 [21:49:47]1012 (4) - 13.08.2024 15:29 [21:49:47]1206 (1) - 0 [21:49:47]OFD Sender: Remove packet 70720 [21:49:47]ProducePacketName [21:49:47]name=ofd_packets/00070720 [21:49:47]NVStorageDeleteData [21:49:47]Write to MH i2c: 01 00 00 60 09 69 [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: 01 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: 01 07 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: 01 07 00 60 09 00 00 00 00 00 EB 0C 67 [21:49:47]RasterBufferAndPrint [21:49:47]line [21:49:47]line [21:49:47]line [21:49:47]line [21:49:47]line [21:49:47]written 0, free lines is 3313 [21:49:47]MH_Cut [21:49:47]Write to MH i2c: D1 01 00 67 09 01 42 [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: D1 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: D1 01 00 [21:49:47]MH_I2C_Read... [21:49:47]Read from MH i2c: D1 01 00 67 09 00 41 [21:49:47]Write to MH i2c: 01 00 00 68 09 71 [21:49:47]Write i2c OK [21:49:47]MH_I2C_Read... [21:49:48]OFD Sender: No OFD packet to send [21:49:48]*** Cut start [21:49:48]*** Purtial cut [21:49:48]*** Stage 1: CUTSNS_PIN = 1 [21:49:48]Read from MH i2c: 01 [21:49:48]MH_I2C_Read... [21:49:48]*** Stop cut motor [21:49:48]*** Cut end [21:49:48]Read from MH i2c: 01 07 00 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: 01 07 00 68 09 00 00 00 00 00 FF 0F 86 [21:49:48]process_action close_receipt done [21:49:48]requested_data is exist [21:49:48]produce_requested_data [21:49:48]requested_item fm.sn is exist - process it [21:49:48]wFMCommunicate request_size=4 [21:49:48]MH_SAM_APDU [21:49:48]CAPDU: 80 11 00 00 [21:49:48]Write to MH i2c: E2 08 00 69 09 80 11 00 00 00 00 00 00 EC [21:49:48]Write i2c OK [21:49:48]MH_I2C_Read... [21:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:48]Read from MH i2c: E2 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: E2 17 00 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: E2 17 00 69 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 41 [21:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:49:48]wFMCommunicate OK [21:49:48]requested_item fd.num is exist - process it [21:49:48]SAM_PROTO_GetFieldsCounters [21:49:48]wFMCommunicate request_size=4 [21:49:48]MH_SAM_APDU [21:49:48]CAPDU: 80 13 00 00 [21:49:48]Write to MH i2c: E2 08 00 6A 09 80 13 00 00 00 00 00 00 EF [21:49:48]Write i2c OK [21:49:48]MH_I2C_Read... [21:49:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:49]Read from MH i2c: E2 [21:49:49]MH_I2C_Read... [21:49:49]Read from MH i2c: E2 62 00 [21:49:49]MH_I2C_Read... [21:49:49]Read from MH i2c: E2 62 00 6A 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 40 14 01 00 0E 04 04 00 D2 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 15 [21:49: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 40 14 01 00 0E 04 04 00 D2 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 [21:49:49]wFMCommunicate OK [21:49:49]SAM_PROTO_GetFieldsCounters done [21:49:49]requested_item shift.num is exist - process it [21:49:49]requested_item shift.opened is exist - process it [21:49:49]req_shift_opened [21:49:49]FM_GetShiftState [21:49:49]SAM_PROTO_GetShiftState [21:49:49]wFMCommunicate request_size=4 [21:49:49]MH_SAM_APDU [21:49:49]CAPDU: 80 13 01 00 [21:49:49]Write to MH i2c: E2 08 00 6B 09 80 13 01 00 00 00 00 00 F1 [21:49:49]Write i2c OK [21:49:49]MH_I2C_Read... [21:49:49]Read from MH i2c: E2 [21:49:49]MH_I2C_Read... [21:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:49]Read from MH i2c: E2 0E 00 [21:49:49]MH_I2C_Read... [21:49:49]Read from MH i2c: E2 0E 00 6B 09 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 60 [21:49:49]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [21:49:49]wFMCommunicate OK [21:49:49]SAM_PROTO_GetShiftState done [21:49:49]FM_GetShiftState done [21:49:49]req_shift_opened done [21:49:49]requested_item shift.open_date is exist - process it [21:49:49]req_shift_open_date [21:49:49]req_shift_open_date done [21:49:49]produce_requested_data done [21:49:49]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70720,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [21:49:49]process_action_free close_receipt [21:49:49]json_value_free [21:49:49]json_value_free done [21:49:49]process_json_proto returns [21:49:49]Send response to host [21:49:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70720,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [21:49:49]free response buf [21:49:49]execute_script done [21:49:49]execute_script returns [21:49:49]free content buf [21:49:49]Sock 9.Close socket [21:49:49]Sock 9.Thread stoped [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:03]OFD Sender: No OFD packet to send [21:55:08]OFD Sender: No OFD packet to send [21:55:13]OFD Sender: No OFD packet to send [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:25]OFD Sender: No OFD packet to send [22:20:30]OFD Sender: No OFD packet to send [22:20:35]OFD Sender: No OFD packet to send [22:20:40]OFD Sender: No OFD packet to send [22:20:45]OFD Sender: No OFD packet to send [22:20:50]OFD Sender: No OFD packet to send [22:20:55]OFD Sender: No OFD packet to send [22:21:00]OFD Sender: No OFD packet to send [22:21:05]OFD Sender: No OFD packet to send [22:21:10]OFD Sender: No OFD packet to send [22:21:15]OFD Sender: No OFD packet to send [22:21:20]OFD Sender: No OFD packet to send [22:21:25]OFD Sender: No OFD packet to send [22:21:30]OFD Sender: No OFD packet to send [22:21:35]OFD Sender: No OFD packet to send [22:21:40]OFD Sender: No OFD packet to send [22:21:45]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:55]OFD Sender: No OFD packet to send [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]OFD Sender: No OFD packet to send [22:22:30]OFD Sender: No OFD packet to send [22:22:35]OFD Sender: No OFD packet to send [22:22:40]OFD Sender: No OFD packet to send [22:22:45]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:16]OFD Sender: No OFD packet to send [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:11]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:21]OFD Sender: No OFD packet to send [22:39:26]OFD Sender: No OFD packet to send [22:39:31]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:46]OFD Sender: No OFD packet to send [22:39:51]OFD Sender: No OFD packet to send [22:39:56]OFD Sender: No OFD packet to send [22:40:01]OFD Sender: No OFD packet to send [22:40:06]OFD Sender: No OFD packet to send [22:40:11]OFD Sender: No OFD packet to send [22:40:16]OFD Sender: No OFD packet to send [22:40:21]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:31]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:52]OFD Sender: No OFD packet to send [22:54:57]OFD Sender: No OFD packet to send [22:55:02]OFD Sender: No OFD packet to send [22:55:07]OFD Sender: No OFD packet to send [22:55:12]OFD Sender: No OFD packet to send [22:55:17]OFD Sender: No OFD packet to send [22:55:22]OFD Sender: No OFD packet to send [22:55:27]OFD Sender: No OFD packet to send [22:55:32]OFD Sender: No OFD packet to send [22:55:37]OFD Sender: No OFD packet to send [22:55:42]OFD Sender: No OFD packet to send [22:55:47]OFD Sender: No OFD packet to send [22:55:52]OFD Sender: No OFD packet to send [22:55:57]OFD Sender: No OFD packet to send [22:56:02]OFD Sender: No OFD packet to send [22:56:07]OFD Sender: No OFD packet to send [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:51]accept exits with 7 [23:04:51]New connection [23:04:51]New thread 3067305316 created [23:04:51]Thread 3067448676 joined [23:04:51]Waiting for new connection... [23:04:51] Sock 7.Parse request [23:04:51]Sock 7.Check first char [23:04:51]Sock 7.First char is OK [23:04:51]request: POST /json_proto HTTP/1.0 [23:04:51]Method: POST [23:04:51]URL: /json_proto [23:04:51]Method is POST - this is cgi request [23:04:51]url: /json_proto [23:04:51]query_string will be loaded in cgi processing [23:04:51]execute_cgi json_proto POST (null) [23:04:51]execute_cgi path=json_proto method=POST [23:04:51]POST find Content-Length [23:04:51]Host: 172.17.58.67:8080 [23:04:51]Content-Length: 805 [23:04:51]Content-Type: application/json [23:04:51] [23:04:51]POST finish read [23:04:51]Found Content-Length = 805 [23:04:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "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.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:51]execute_script... [23:04: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)141184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "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.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:51]POST & json_proto [23:04:51]process_json_proto [23:04:51]json parsed OK: [23:04:51]protocol is kg_v1.0 [23:04:51]action value=close_receipt [23:04:51]process_action close_receipt [23:04:51]cmd_close_receipt [23:04:51]MH_GetDate [23:04:51]Write to MH i2c: F0 00 00 6C 09 64 [23:04:51]Write i2c OK [23:04:51]MH_I2C_Read... [23:04:51]Read from MH i2c: F0 [23:04:51]MH_I2C_Read... [23:04:51]Read from MH i2c: F0 09 00 [23:04:51]MH_I2C_Read... [23:04:51]Read from MH i2c: F0 09 00 6C 09 00 94 E6 BB 66 94 51 63 64 B4 [23:04:51]GetLastDocTimeStamp 1723585786 [23:04:51]current date 1723590292 [23:04:51]FM_GetShiftState [23:04:51]SAM_PROTO_GetShiftState [23:04:51]wFMCommunicate request_size=4 [23:04:51]MH_SAM_APDU [23:04:51]CAPDU: 80 13 01 00 [23:04:51]Write to MH i2c: E2 08 00 6D 09 80 13 01 00 00 00 00 00 F3 [23:04:51]Write i2c OK [23:04:51]MH_I2C_Read... [23:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:51]Read from MH i2c: E2 [23:04:51]MH_I2C_Read... [23:04:51]Read from MH i2c: E2 0E 00 [23:04:51]MH_I2C_Read... [23:04:51]Read from MH i2c: E2 0E 00 6D 09 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 62 [23:04:51]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [23:04:51]wFMCommunicate OK [23:04:51]SAM_PROTO_GetShiftState done [23:04:51]FM_GetShiftState done [23:04:51]opened in 1723509656 [23:04:51]opened+sec_in_day 1723596056 [23:04:51]quantity*price = 100068 [23:04:51]sum+1 = 100069 [23:04:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.68 ÐСП 1% : 8.86 ÐДС 12% : 106.27 Ðаличными: 0.00 Безнал.: 1000.68 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 75 13.08.2024 23:04 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70721 ФПД: 222849319158092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T230452&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70721&fm=222849319158092&tin=02508201610067®Number=0000000000090913&sum=100068 [23:04:52]StoreToDocumentArchive [23:04:52]shift 466 fd 70721 [23:04:52]save to /storage/0466/doc_00070721 [23:04:52]save last doc name /storage/0466/doc_00070721 to /storage/kkm_last_doc_name [23:04:52]save OK [23:04:52]Clear old archive folders... [23:04:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:04:52]tlvbuf is 006D89F0 [23:04:52]SAM_PROTO_ClearQueue [23:04:52]wFMCommunicate request_size=4 [23:04:52]MH_SAM_APDU [23:04:52]CAPDU: 80 09 00 00 [23:04:52]Write to MH i2c: E2 08 00 7A 09 80 09 00 00 00 00 00 00 F5 [23:04:52]Write i2c OK [23:04:52]MH_I2C_Read... [23:04:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:52]Read from MH i2c: E2 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 03 00 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 03 00 7A 09 00 90 00 F7 [23:04:52]RAPDU: 90 00 [23:04:52]wFMCommunicate OK [23:04:52]SAM_PROTO_ClearQueue done [23:04:52]KKMCreateOFDPacket [23:04:52]OFDProtocolAddRootSTLVToBuf [23:04:52]FM_MakeSignedData [23:04:52]FM_MakeSignedData [23:04:52]SAM_PROTO_SignData [23:04:52]wFMCommunicate request_size=4 [23:04:52]MH_SAM_APDU [23:04:52]CAPDU: 80 0D 01 02 [23:04:52]Write to MH i2c: E2 08 00 7B 09 80 0D 01 02 00 00 00 00 FD [23:04:52]Write i2c OK [23:04:52]MH_I2C_Read... [23:04:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:52]Read from MH i2c: E2 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 03 00 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 03 00 7B 09 00 90 00 F8 [23:04:52]RAPDU: 90 00 [23:04:52]wFMCommunicate OK [23:04:52]wFMCommunicate request_size=255 [23:04:52]MH_SAM_APDU [23:04:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 94 E6 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 41 14 01 00 35 04 06 00 CA AE 26 81 [23:04:52]Write to MH i2c: E2 02 01 7C 09 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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 94 E6 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 41 14 01 00 35 04 06 00 CA AE 26 81 00 00 D8 [23:04:52]Write i2c OK [23:04:52]MH_I2C_Read... [23:04:52]OFD Sender: No OFD packet to send [23:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:52]Read from MH i2c: E2 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 03 00 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 03 00 7C 09 00 90 00 F9 [23:04:52]RAPDU: 90 00 [23:04:52]wFMCommunicate OK [23:04:52]wFMCommunicate request_size=7 [23:04:52]MH_SAM_APDU [23:04:52]CAPDU: 80 0D 02 02 02 C1 4C [23:04:52]Write to MH i2c: E2 0A 00 7D 09 80 0D 02 02 02 00 C1 4C 00 00 11 [23:04:52]Write i2c OK [23:04:52]MH_I2C_Read... [23:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:52]Read from MH i2c: E2 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 03 00 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 03 00 7D 09 00 90 00 FA [23:04:52]RAPDU: 90 00 [23:04:52]wFMCommunicate OK [23:04:52]wFMCommunicate request_size=4 [23:04:52]MH_SAM_APDU [23:04:52]CAPDU: 80 0D 03 02 [23:04:52]Write to MH i2c: E2 08 00 7E 09 80 0D 03 02 00 00 00 00 02 [23:04:52]Write i2c OK [23:04:52]MH_I2C_Read... [23:04:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:52]Read from MH i2c: E2 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 0B 00 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 0B 00 7E 09 00 BB E2 A4 60 F1 E6 99 4F 90 00 63 [23:04:52]RAPDU: BB E2 A4 60 F1 E6 99 4F 90 00 [23:04:52]wFMCommunicate OK [23:04:52]SAM_PROTO_SignData done [23:04:52]FM_MakeSignedData done [23:04:52]CreateOFDProtocolMessage [23:04:52]wFMCommunicate request_size=4 [23:04:52]MH_SAM_APDU [23:04:52]CAPDU: 80 11 00 00 [23:04:52]Write to MH i2c: E2 08 00 7F 09 80 11 00 00 00 00 00 00 02 [23:04:52]Write i2c OK [23:04:52]MH_I2C_Read... [23:04:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:52]Read from MH i2c: E2 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 17 00 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 17 00 7F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 57 [23:04:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [23:04:52]wFMCommunicate OK [23:04:52]CreateOFDProtocolMessage done [23:04:52]OFDSenderStorePacket 70721 [23:04:52]StoreOFDPacket docnum=70721 [23:04:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 2D 4E 04 01 75 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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 94 E6 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 41 14 01 00 35 04 06 00 CA AE 26 81 C1 4C BB E2 A4 60 F1 E6 99 4F [23:04:52]CheckFolder [23:04:52]dirname=/storage/ofd_packets [23:04:52]CheckFolder done [23:04:52]ProducePacketName [23:04:52]name=ofd_packets/00070721 [23:04:52]NVStorageSaveData ofd_packets/00070721 [23:04:52]File name is /storage/ofd_packets/00070721 [23:04:52]Write 298 bytes [23:04:52]NVStorageSaveData done [23:04:52]OFDSenderStorePacket done [23:04:52]KKMCreateOFDPacket done [23:04:52]NVStorageSaveData kkm_last_timestamp [23:04:52]File name is /storage/kkm_last_timestamp [23:04:52]Write 4 bytes [23:04:52]NVStorageSaveData done [23:04:52]ExternCall_PrintAddStr [23:04:52]wPrintStart [23:04:52]Write to MH i2c: 01 00 00 80 09 89 [23:04:52]Write i2c OK [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: 01 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: 01 07 00 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: 01 07 00 80 09 00 00 00 00 00 FF 0F 9E [23:04:52]RasterBufferAndPrint [23:04:52]line Счет N : (1)141184 [23:04:52]line ИÐÐ: 02508201610067 [23:04:52]line Контрольно-КаÑÑовый Чек [23:04:52]line ПРОДÐЖР[23:04:52]line ТРК (МРК, ГÐК) : 24 [23:04:52]line Товар: 2710194210 [23:04:52]line ДТ-К-5 [23:04:52]line 13.450 * 74.40 [23:04:52]line = 1000.68 [23:04:52]line ÐДС 12% ÐСП 1% [23:04:52]line > о реализуемом товаре [23:04:52]line ИТОГО: 1000.68 [23:04:52]line ÐСП 1% : 8.86 [23:04:52]line ÐДС 12% : 106.27 [23:04:52]line Ðаличными: 0.00 [23:04:53]line Безнал.: 1000.68 [23:04:53]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [23:04:53]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [23:04:53]line СÐО: Общий режим [23:04:53]line Чек 75 13.08.2024 23:04 [23:04:53]line Смена: 466 ФФД: 1.0 [23:04:53]line ЗÐМ: 0300000140 [23:04:53]line РÐМ: 0000000000090913 [23:04:53]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [23:04:53]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [23:04:53]line ФМ: 0000000000874915 [23:04:53]line ФД: 70721 [23:04:53]line ФПД: 222849319158092 [23:04:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T230452&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70721&fm=222849319158092&tin=02508201610067®Number=0000000000090913&sum=100068 [23:04:53]OFD Sender: Processing packet 70721 [packets to send 67, broken 66] [23:04:53]ProducePacketName [23:04:53]name=ofd_packets/00070721 [23:04:53]OFD Sender: To server: ‡•öpG, [23:04:53]CommunicateWithHost lk.salyk.kg:30040 [23:04:53]ConnectInit lk.salyk.kg [23:04:53]written 0, free lines is 4095 [23:04:53]Connected sock=10 [23:04:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 2D 4E 04 01 75 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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 94 E6 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 41 14 01 00 35 04 06 00 CA AE 26 81 C1 4C BB E2 A4 60 F1 E6 99 4F [23:04:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 68 49 47 00 9F 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 41 14 01 00 F4 03 04 00 7F 8D BB 66 B6 04 01 00 00 6A B1 08 41 A5 4C E6 03 [23:04:53]CommunicateWithHost err = 0 [23:04:53]CheckOFDResponse [23:04:53]1017 (14) - 77093643461234 [23:04:53]1041 (16) - 0000000000874915 [23:04:53]1040 (4) - 70721 [23:04:53]1012 (4) - 13.08.2024 16:44 [23:04:53]1206 (1) - 0 [23:04:53]OFD Sender: Remove packet 70721 [23:04:53]ProducePacketName [23:04:53]name=ofd_packets/00070721 [23:04:53]NVStorageDeleteData [23:04:53]Write to MH i2c: 01 00 00 AA 09 B3 [23:04:53]Write i2c OK [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: 01 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: 01 07 00 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: 01 07 00 AA 09 00 00 00 00 00 EE 0C B4 [23:04:53]RasterBufferAndPrint [23:04:53]line [23:04:53]line [23:04:53]line [23:04:53]line [23:04:53]line [23:04:53]written 0, free lines is 3316 [23:04:53]MH_Cut [23:04:53]Write to MH i2c: D1 01 00 B1 09 01 8C [23:04:53]Write i2c OK [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: D1 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: D1 01 00 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: D1 01 00 B1 09 00 8B [23:04:53]Write to MH i2c: 01 00 00 B2 09 BB [23:04:53]Write i2c OK [23:04:53]MH_I2C_Read... [23:04:54]OFD Sender: No OFD packet to send [23:04:54]*** Cut start [23:04:54]*** Purtial cut [23:04:54]*** CUTSNS_PIN = 0 [23:04:54]*** Stage 1: CUTSNS_PIN = 1 [23:04:56]Read from MH i2c: 01 [23:04:56]MH_I2C_Read... [23:04:56]*** Stop cut motor [23:04:56]*** Cut end [23:04:56]Read from MH i2c: 01 07 00 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: 01 07 00 B2 09 00 00 00 00 00 FF 0F D0 [23:04:56]process_action close_receipt done [23:04:56]requested_data is exist [23:04:56]produce_requested_data [23:04:56]requested_item fm.sn is exist - process it [23:04:56]wFMCommunicate request_size=4 [23:04:56]MH_SAM_APDU [23:04:56]CAPDU: 80 11 00 00 [23:04:56]Write to MH i2c: E2 08 00 B3 09 80 11 00 00 00 00 00 00 36 [23:04:56]Write i2c OK [23:04:56]MH_I2C_Read... [23:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:56]Read from MH i2c: E2 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 17 00 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 17 00 B3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 8B [23:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [23:04:56]wFMCommunicate OK [23:04:56]requested_item fd.num is exist - process it [23:04:56]SAM_PROTO_GetFieldsCounters [23:04:56]wFMCommunicate request_size=4 [23:04:56]MH_SAM_APDU [23:04:56]CAPDU: 80 13 00 00 [23:04:56]Write to MH i2c: E2 08 00 B4 09 80 13 00 00 00 00 00 00 39 [23:04:56]Write i2c OK [23:04:56]MH_I2C_Read... [23:04:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:56]Read from MH i2c: E2 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 62 00 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 62 00 B4 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 41 14 01 00 0E 04 04 00 D2 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 63 [23:04: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 41 14 01 00 0E 04 04 00 D2 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 [23:04:56]wFMCommunicate OK [23:04:56]SAM_PROTO_GetFieldsCounters done [23:04:56]requested_item shift.num is exist - process it [23:04:56]requested_item shift.opened is exist - process it [23:04:56]req_shift_opened [23:04:56]FM_GetShiftState [23:04:56]SAM_PROTO_GetShiftState [23:04:56]wFMCommunicate request_size=4 [23:04:56]MH_SAM_APDU [23:04:56]CAPDU: 80 13 01 00 [23:04:56]Write to MH i2c: E2 08 00 B5 09 80 13 01 00 00 00 00 00 3B [23:04:56]Write i2c OK [23:04:56]MH_I2C_Read... [23:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:56]Read from MH i2c: E2 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 0E 00 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 0E 00 B5 09 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 AA [23:04:56]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [23:04:56]wFMCommunicate OK [23:04:56]SAM_PROTO_GetShiftState done [23:04:56]FM_GetShiftState done [23:04:56]req_shift_opened done [23:04:56]requested_item shift.open_date is exist - process it [23:04:56]req_shift_open_date [23:04:56]req_shift_open_date done [23:04:56]produce_requested_data done [23:04:56]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70721,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [23:04:56]process_action_free close_receipt [23:04:56]json_value_free [23:04:56]json_value_free done [23:04:56]process_json_proto returns [23:04:56]Send response to host [23:04:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70721,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [23:04:56]free response buf [23:04:56]execute_script done [23:04:56]execute_script returns [23:04:56]free content buf [23:04:56]Sock 7.Close socket [23:04:56]Sock 7.Thread stoped [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:26]accept exits with 9 [23:10:26]New connection [23:10:26]New thread 3067448676 created [23:10:26]Thread 3067305316 joined [23:10:26]Waiting for new connection... [23:10:26] Sock 9.Parse request [23:10:26]Sock 9.Check first char [23:10:26]Sock 9.First char is OK [23:10:26]request: POST /json_proto HTTP/1.0 [23:10:26]Method: POST [23:10:26]URL: /json_proto [23:10:26]Method is POST - this is cgi request [23:10:26]url: /json_proto [23:10:26]query_string will be loaded in cgi processing [23:10:26]execute_cgi json_proto POST (null) [23:10:26]execute_cgi path=json_proto method=POST [23:10:26]POST find Content-Length [23:10:26]Host: 172.17.58.67:8080 [23:10:26]Content-Length: 621 [23:10:26]Content-Type: application/json [23:10:26] [23:10:26]POST finish read [23:10:26]Found Content-Length = 621 [23:10:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17483", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:26]execute_script... [23:10:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17483", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:26]POST & json_proto [23:10:26]process_json_proto [23:10:26]json parsed OK: [23:10:26]protocol is kg_v1.0 [23:10:26]action value=close_receipt [23:10:26]process_action close_receipt [23:10:26]cmd_close_receipt [23:10:26]MH_GetDate [23:10:26]Write to MH i2c: F0 00 00 B6 09 AE [23:10:26]Write i2c OK [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: F0 [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: F0 09 00 [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: F0 09 00 B6 09 00 E3 E7 BB 66 94 51 63 64 4E [23:10:26]GetLastDocTimeStamp 1723590292 [23:10:26]current date 1723590627 [23:10:26]FM_GetShiftState [23:10:26]SAM_PROTO_GetShiftState [23:10:26]wFMCommunicate request_size=4 [23:10:26]MH_SAM_APDU [23:10:26]CAPDU: 80 13 01 00 [23:10:26]Write to MH i2c: E2 08 00 B7 09 80 13 01 00 00 00 00 00 3D [23:10:26]Write i2c OK [23:10:26]MH_I2C_Read... [23:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:26]Read from MH i2c: E2 [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: E2 0E 00 [23:10:26]MH_I2C_Read... [23:10:26]Read from MH i2c: E2 0E 00 B7 09 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 AC [23:10:26]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [23:10:26]wFMCommunicate OK [23:10:26]SAM_PROTO_GetShiftState done [23:10:26]FM_GetShiftState done [23:10:26]opened in 1723509656 [23:10:26]opened+sec_in_day 1723596056 [23:10:26]quantity*price = 15000 [23:10:26]sum+1 = 15001 [23:10:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 ÐСП 1% : 1.33 ÐДС 12% : 15.93 Ðаличными: 150.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 76 13.08.2024 23:10 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70722 ФПД: 9483810666016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T231027&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70722&fm=9483810666016&tin=02508201610067®Number=0000000000090913&sum=15000 0 [23:10:27]StoreToDocumentArchive [23:10:27]shift 466 fd 70722 [23:10:27]save to /storage/0466/doc_00070722 [23:10:27]save last doc name /storage/0466/doc_00070722 to /storage/kkm_last_doc_name [23:10:27]save OK [23:10:27]Clear old archive folders... [23:10:27]ProcessDocumentItem done err = 0, tmpTLVsize=274 [23:10:27]tlvbuf is 00690E40 [23:10:27]SAM_PROTO_ClearQueue [23:10:27]wFMCommunicate request_size=4 [23:10:27]MH_SAM_APDU [23:10:27]CAPDU: 80 09 00 00 [23:10:27]Write to MH i2c: E2 08 00 C4 09 80 09 00 00 00 00 00 00 3F [23:10:27]Write i2c OK [23:10:27]MH_I2C_Read... [23:10:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:10:27]Read from MH i2c: E2 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: E2 03 00 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: E2 03 00 C4 09 00 90 00 41 [23:10:27]RAPDU: 90 00 [23:10:27]wFMCommunicate OK [23:10:27]SAM_PROTO_ClearQueue done [23:10:27]KKMCreateOFDPacket [23:10:27]OFDProtocolAddRootSTLVToBuf [23:10:27]FM_MakeSignedData [23:10:27]FM_MakeSignedData [23:10:27]SAM_PROTO_SignData [23:10:27]wFMCommunicate request_size=4 [23:10:27]MH_SAM_APDU [23:10:27]CAPDU: 80 0D 01 02 [23:10:27]Write to MH i2c: E2 08 00 C5 09 80 0D 01 02 00 00 00 00 47 [23:10:27]Write i2c OK [23:10:27]MH_I2C_Read... [23:10:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:10:27]Read from MH i2c: E2 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: E2 03 00 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: E2 03 00 C5 09 00 90 00 42 [23:10:27]RAPDU: 90 00 [23:10:27]wFMCommunicate OK [23:10:27]wFMCommunicate request_size=255 [23:10:27]MH_SAM_APDU [23:10:27]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 E3 E7 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 [23:10:27]Write to MH i2c: E2 02 01 C6 09 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 E3 E7 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 00 00 EB [23:10:27]Write i2c OK [23:10:27]MH_I2C_Read... [23:10:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:27]Read from MH i2c: E2 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: E2 03 00 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: E2 03 00 C6 09 00 90 00 43 [23:10:27]RAPDU: 90 00 [23:10:27]wFMCommunicate OK [23:10:27]wFMCommunicate request_size=33 [23:10:27]MH_SAM_APDU [23:10:27]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 39 31 35 10 04 04 00 42 14 01 00 35 04 06 00 08 A0 1F 2A 76 20 [23:10:27]Write to MH i2c: E2 24 00 C7 09 80 0D 02 02 1C 00 30 30 30 30 38 37 34 39 31 35 10 04 04 00 42 14 01 00 35 04 06 00 08 A0 1F 2A 76 20 00 00 B9 [23:10:27]Write i2c OK [23:10:27]MH_I2C_Read... [23:10:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:27]Read from MH i2c: E2 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: E2 03 00 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: E2 03 00 C7 09 00 90 00 44 [23:10:27]RAPDU: 90 00 [23:10:27]wFMCommunicate OK [23:10:27]wFMCommunicate request_size=4 [23:10:27]MH_SAM_APDU [23:10:27]CAPDU: 80 0D 03 02 [23:10:27]Write to MH i2c: E2 08 00 C8 09 80 0D 03 02 00 00 00 00 4C [23:10:27]Write i2c OK [23:10:27]MH_I2C_Read... [23:10:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:10:27]Read from MH i2c: E2 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: E2 0B 00 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: E2 0B 00 C8 09 00 46 37 09 D4 01 39 EB DD 90 00 A9 [23:10:27]RAPDU: 46 37 09 D4 01 39 EB DD 90 00 [23:10:27]wFMCommunicate OK [23:10:27]SAM_PROTO_SignData done [23:10:27]FM_MakeSignedData done [23:10:27]CreateOFDProtocolMessage [23:10:27]wFMCommunicate request_size=4 [23:10:27]MH_SAM_APDU [23:10:27]CAPDU: 80 11 00 00 [23:10:27]Write to MH i2c: E2 08 00 C9 09 80 11 00 00 00 00 00 00 4C [23:10:27]Write i2c OK [23:10:27]MH_I2C_Read... [23:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:27]Read from MH i2c: E2 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: E2 17 00 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: E2 17 00 C9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 A1 [23:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [23:10:27]wFMCommunicate OK [23:10:27]CreateOFDProtocolMessage done [23:10:27]OFDSenderStorePacket 70722 [23:10:27]StoreOFDPacket docnum=70722 [23:10:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 26 01 00 00 D6 D7 1E 01 58 41 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 E3 E7 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 42 14 01 00 35 04 06 00 08 A0 1F 2A 76 20 46 37 09 D4 01 39 EB DD [23:10:27]CheckFolder [23:10:27]dirname=/storage/ofd_packets [23:10:27]CheckFolder done [23:10:27]ProducePacketName [23:10:27]name=ofd_packets/00070722 [23:10:27]NVStorageSaveData ofd_packets/00070722 [23:10:27]File name is /storage/ofd_packets/00070722 [23:10:27]Write 324 bytes [23:10:27]NVStorageSaveData done [23:10:27]OFDSenderStorePacket done [23:10:27]KKMCreateOFDPacket done [23:10:27]NVStorageSaveData kkm_last_timestamp [23:10:27]File name is /storage/kkm_last_timestamp [23:10:27]Write 4 bytes [23:10:27]NVStorageSaveData done [23:10:27]ExternCall_PrintAddStr [23:10:27]wPrintStart [23:10:27]Write to MH i2c: 01 00 00 CA 09 D3 [23:10:27]Write i2c OK [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: 01 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: 01 07 00 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: 01 07 00 CA 09 00 00 00 00 00 FF 0F E8 [23:10:27]RasterBufferAndPrint [23:10:27]line Счет N : (3)17483 [23:10:27]line ИÐÐ: 02508201610067 [23:10:27]line Контрольно-КаÑÑовый Чек [23:10:27]line ПРОДÐЖР[23:10:27]line Товар: 4640030091645 [23:10:27]line Сигареты ESSE Exchange M [23:10:27]line 1.000 * 150.00 [23:10:27]line = 150.00 [23:10:27]line ÐДС 12% ÐСП 1% [23:10:27]line > о реализуемом товаре [23:10:27]line ИТОГО: 150.00 [23:10:27]line ÐСП 1% : 1.33 [23:10:27]line ÐДС 12% : 15.93 [23:10:27]line Ðаличными: 150.00 [23:10:27]line Безнал.: 0.00 [23:10:27]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [23:10:27]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [23:10:27]line СÐО: Общий режим [23:10:27]line Чек 76 13.08.2024 23:10 [23:10:27]line Смена: 466 ФФД: 1.0 [23:10:27]line ЗÐМ: 0300000140 [23:10:27]line РÐМ: 0000000000090913 [23:10:27]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [23:10:27]line ФМ: 0000000000874915 [23:10:27]line ФД: 70722 [23:10:27]line ФПД: 9483810666016 [23:10:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T231027&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70722&fm=9483810666016&tin=02508201610067®Number=0000000000090913&sum=15000 [23:10:28]OFD Sender: Processing packet 70722 [packets to send 67, broken 66] [23:10:28]ProducePacketName [23:10:28]name=ofd_packets/00070722 [23:10:28]OFD Sender: To server: ‡•öpG, [23:10:28]CommunicateWithHost lk.salyk.kg:30040 [23:10:28]ConnectInit lk.salyk.kg [23:10:28]line 0 [23:10:28]written 0, free lines is 4095 [23:10:28]Connected sock=10 [23:10: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 39 31 35 26 01 00 00 D6 D7 1E 01 58 41 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 E3 E7 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 42 14 01 00 35 04 06 00 08 A0 1F 2A 76 20 46 37 09 D4 01 39 EB DD [23:10:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 E9 62 47 00 1E 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 39 31 35 10 04 04 00 42 14 01 00 F4 03 04 00 CD 8E BB 66 B6 04 01 00 00 AA 47 92 3D 8E DE 67 B1 [23:10:28]CommunicateWithHost err = 0 [23:10:28]CheckOFDResponse [23:10:28]1017 (14) - 77093643461234 [23:10:28]1041 (16) - 0000000000874915 [23:10:28]1040 (4) - 70722 [23:10:28]1012 (4) - 13.08.2024 16:50 [23:10:28]1206 (1) - 0 [23:10:28]OFD Sender: Remove packet 70722 [23:10:28]ProducePacketName [23:10:28]name=ofd_packets/00070722 [23:10:28]NVStorageDeleteData [23:10:28]Write to MH i2c: 01 00 00 F2 09 FB [23:10:28]Write i2c OK [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: 01 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: 01 07 00 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: 01 07 00 F2 09 00 00 00 00 00 12 0D 21 [23:10:28]RasterBufferAndPrint [23:10:28]line [23:10:28]line [23:10:28]line [23:10:28]line [23:10:28]line [23:10:28]written 0, free lines is 3355 [23:10:28]MH_Cut [23:10:28]Write to MH i2c: D1 01 00 F9 09 01 D4 [23:10:28]Write i2c OK [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: D1 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: D1 01 00 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: D1 01 00 F9 09 00 D3 [23:10:28]Write to MH i2c: 01 00 00 FA 09 03 [23:10:28]Write i2c OK [23:10:28]MH_I2C_Read... [23:10:28]OFD Sender: No OFD packet to send [23:10:29]*** Cut start [23:10:29]*** Purtial cut [23:10:29]*** Stage 1: CUTSNS_PIN = 1 [23:10:29]Read from MH i2c: 01 [23:10:29]MH_I2C_Read... [23:10:29]*** Stop cut motor [23:10:29]*** Cut end [23:10:29]Read from MH i2c: 01 07 00 [23:10:29]MH_I2C_Read... [23:10:29]Read from MH i2c: 01 07 00 FA 09 00 00 00 00 00 FF 0F 18 [23:10:29]process_action close_receipt done [23:10:29]requested_data is exist [23:10:29]produce_requested_data [23:10:29]requested_item fm.sn is exist - process it [23:10:29]wFMCommunicate request_size=4 [23:10:29]MH_SAM_APDU [23:10:29]CAPDU: 80 11 00 00 [23:10:29]Write to MH i2c: E2 08 00 FB 09 80 11 00 00 00 00 00 00 7E [23:10:29]Write i2c OK [23:10:29]MH_I2C_Read... [23:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:29]Read from MH i2c: E2 [23:10:29]MH_I2C_Read... [23:10:29]Read from MH i2c: E2 17 00 [23:10:29]MH_I2C_Read... [23:10:29]Read from MH i2c: E2 17 00 FB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 D3 [23:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [23:10:29]wFMCommunicate OK [23:10:29]requested_item fd.num is exist - process it [23:10:29]SAM_PROTO_GetFieldsCounters [23:10:29]wFMCommunicate request_size=4 [23:10:29]MH_SAM_APDU [23:10:29]CAPDU: 80 13 00 00 [23:10:29]Write to MH i2c: E2 08 00 FC 09 80 13 00 00 00 00 00 00 81 [23:10:29]Write i2c OK [23:10:29]MH_I2C_Read... [23:10:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:10:29]Read from MH i2c: E2 [23:10:29]MH_I2C_Read... [23:10:29]Read from MH i2c: E2 62 00 [23:10:29]MH_I2C_Read... [23:10:29]Read from MH i2c: E2 62 00 FC 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 42 14 01 00 0E 04 04 00 D2 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 AF [23:10:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 42 14 01 00 0E 04 04 00 D2 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 [23:10:29]wFMCommunicate OK [23:10:29]SAM_PROTO_GetFieldsCounters done [23:10:29]requested_item shift.num is exist - process it [23:10:29]requested_item shift.opened is exist - process it [23:10:29]req_shift_opened [23:10:29]FM_GetShiftState [23:10:29]SAM_PROTO_GetShiftState [23:10:29]wFMCommunicate request_size=4 [23:10:29]MH_SAM_APDU [23:10:29]CAPDU: 80 13 01 00 [23:10:29]Write to MH i2c: E2 08 00 FD 09 80 13 01 00 00 00 00 00 83 [23:10:29]Write i2c OK [23:10:29]MH_I2C_Read... [23:10:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:29]Read from MH i2c: E2 [23:10:29]MH_I2C_Read... [23:10:29]Read from MH i2c: E2 0E 00 [23:10:29]MH_I2C_Read... [23:10:29]Read from MH i2c: E2 0E 00 FD 09 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 F2 [23:10:29]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [23:10:29]wFMCommunicate OK [23:10:29]SAM_PROTO_GetShiftState done [23:10:29]FM_GetShiftState done [23:10:29]req_shift_opened done [23:10:29]requested_item shift.open_date is exist - process it [23:10:29]req_shift_open_date [23:10:29]req_shift_open_date done [23:10:29]produce_requested_data done [23:10:29]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70722,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [23:10:29]process_action_free close_receipt [23:10:29]json_value_free [23:10:29]json_value_free done [23:10:29]process_json_proto returns [23:10:29]Send response to host [23:10:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70722,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [23:10:29]free response buf [23:10:29]execute_script done [23:10:29]execute_script returns [23:10:29]free content buf [23:10:29]Sock 9.Close socket [23:10:29]Sock 9.Thread stoped [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:37]accept exits with 7 [23:13:37]New connection [23:13:37]New thread 3067305316 created [23:13:37]Thread 3067448676 joined [23:13:37]Waiting for new connection... [23:13:37] Sock 7.Parse request [23:13:37]Sock 7.Check first char [23:13:37]Sock 7.First char is OK [23:13:37]request: POST /json_proto HTTP/1.0 [23:13:37]Method: POST [23:13:37]URL: /json_proto [23:13:37]Method is POST - this is cgi request [23:13:37]url: /json_proto [23:13:37]query_string will be loaded in cgi processing [23:13:37]execute_cgi json_proto POST (null) [23:13:37]execute_cgi path=json_proto method=POST [23:13:37]POST find Content-Length [23:13:37]Host: 172.17.58.67:8080 [23:13:37]Content-Length: 806 [23:13:37]Content-Type: application/json [23:13:37] [23:13:37]POST finish read [23:13:37]Found Content-Length = 806 [23:13:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.630, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:37]execute_script... [23:13:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.630, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:37]POST & json_proto [23:13:37]process_json_proto [23:13:37]json parsed OK: [23:13:37]protocol is kg_v1.0 [23:13:37]action value=close_receipt [23:13:37]process_action close_receipt [23:13:37]cmd_close_receipt [23:13:37]MH_GetDate [23:13:37]Write to MH i2c: F0 00 00 FE 09 F6 [23:13:37]Write i2c OK [23:13:37]MH_I2C_Read... [23:13:37]Read from MH i2c: F0 [23:13:37]MH_I2C_Read... [23:13:37]Read from MH i2c: F0 09 00 [23:13:37]MH_I2C_Read... [23:13:37]Read from MH i2c: F0 09 00 FE 09 00 A3 E8 BB 66 94 51 63 64 57 [23:13:37]GetLastDocTimeStamp 1723590627 [23:13:37]current date 1723590819 [23:13:37]FM_GetShiftState [23:13:37]SAM_PROTO_GetShiftState [23:13:37]wFMCommunicate request_size=4 [23:13:37]MH_SAM_APDU [23:13:37]CAPDU: 80 13 01 00 [23:13:37]Write to MH i2c: E2 08 00 FF 09 80 13 01 00 00 00 00 00 85 [23:13:37]Write i2c OK [23:13:37]MH_I2C_Read... [23:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:37]Read from MH i2c: E2 [23:13:37]MH_I2C_Read... [23:13:37]Read from MH i2c: E2 0E 00 [23:13:37]MH_I2C_Read... [23:13:37]Read from MH i2c: E2 0E 00 FF 09 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 F4 [23:13:37]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [23:13:37]wFMCommunicate OK [23:13:37]SAM_PROTO_GetShiftState done [23:13:37]FM_GetShiftState done [23:13:37]opened in 1723509656 [23:13:37]opened+sec_in_day 1723596056 [23:13:37]quantity*price = 70051 [23:13:37]sum+1 = 70053 [23:13:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.52 ÐСП 1% : 6.20 ÐДС 12% : 74.39 Ðаличными: 0.00 Безнал.: 700.52 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 77 13.08.2024 23:13 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70723 ФПД: 237660309390373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T231339&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70723&fm=237660309390373&tin=02508201610067®Number=0000000000090913&sum=70052 [23:13:38]StoreToDocumentArchive [23:13:38]shift 466 fd 70723 [23:13:38]save to /storage/0466/doc_00070723 [23:13:38]save last doc name /storage/0466/doc_00070723 to /storage/kkm_last_doc_name [23:13:38]save OK [23:13:38]Clear old archive folders... [23:13:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:13:38]tlvbuf is 006AA1A0 [23:13:38]SAM_PROTO_ClearQueue [23:13:38]wFMCommunicate request_size=4 [23:13:38]MH_SAM_APDU [23:13:38]CAPDU: 80 09 00 00 [23:13:38]Write to MH i2c: E2 08 00 0C 0A 80 09 00 00 00 00 00 00 88 [23:13:38]Write i2c OK [23:13:38]MH_I2C_Read... [23:13:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:13:39]Read from MH i2c: E2 [23:13:39]MH_I2C_Read... [23:13:39]Read from MH i2c: E2 03 00 [23:13:39]MH_I2C_Read... [23:13:39]Read from MH i2c: E2 03 00 0C 0A 00 90 00 8A [23:13:39]RAPDU: 90 00 [23:13:39]wFMCommunicate OK [23:13:39]SAM_PROTO_ClearQueue done [23:13:39]KKMCreateOFDPacket [23:13:39]OFDProtocolAddRootSTLVToBuf [23:13:39]FM_MakeSignedData [23:13:39]FM_MakeSignedData [23:13:39]SAM_PROTO_SignData [23:13:39]wFMCommunicate request_size=4 [23:13:39]MH_SAM_APDU [23:13:39]CAPDU: 80 0D 01 02 [23:13:39]Write to MH i2c: E2 08 00 0D 0A 80 0D 01 02 00 00 00 00 90 [23:13:39]Write i2c OK [23:13:39]MH_I2C_Read... [23:13:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:13:39]OFD Sender: No OFD packet to send [23:13:39]Read from MH i2c: E2 [23:13:39]MH_I2C_Read... [23:13:39]Read from MH i2c: E2 03 00 [23:13:39]MH_I2C_Read... [23:13:39]Read from MH i2c: E2 03 00 0D 0A 00 90 00 8B [23:13:39]RAPDU: 90 00 [23:13:39]wFMCommunicate OK [23:13:39]wFMCommunicate request_size=255 [23:13:39]MH_SAM_APDU [23:13: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 86 29 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A3 E8 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 43 14 01 00 35 04 06 00 D8 [23:13:39]Write to MH i2c: E2 02 01 0E 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 29 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A3 E8 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 43 14 01 00 35 04 06 00 D8 00 00 D7 [23:13:39]Write i2c OK [23:13:39]MH_I2C_Read... [23:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:39]Read from MH i2c: E2 [23:13:39]MH_I2C_Read... [23:13:39]Read from MH i2c: E2 03 00 [23:13:39]MH_I2C_Read... [23:13:39]Read from MH i2c: E2 03 00 0E 0A 00 90 00 8C [23:13:39]RAPDU: 90 00 [23:13:39]wFMCommunicate OK [23:13:39]wFMCommunicate request_size=10 [23:13:39]MH_SAM_APDU [23:13:39]CAPDU: 80 0D 02 02 05 26 9A 51 84 25 [23:13:39]Write to MH i2c: E2 0D 00 0F 0A 80 0D 02 02 05 00 26 9A 51 84 25 00 00 57 [23:13:39]Write i2c OK [23:13:39]MH_I2C_Read... [23:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:39]Read from MH i2c: E2 [23:13:39]MH_I2C_Read... [23:13:39]Read from MH i2c: E2 03 00 [23:13:39]MH_I2C_Read... [23:13:39]Read from MH i2c: E2 03 00 0F 0A 00 90 00 8D [23:13:39]RAPDU: 90 00 [23:13:39]wFMCommunicate OK [23:13:39]wFMCommunicate request_size=4 [23:13:39]MH_SAM_APDU [23:13:39]CAPDU: 80 0D 03 02 [23:13:39]Write to MH i2c: E2 08 00 10 0A 80 0D 03 02 00 00 00 00 95 [23:13:39]Write i2c OK [23:13:39]MH_I2C_Read... [23:13:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:13:39]Read from MH i2c: E2 [23:13:39]MH_I2C_Read... [23:13:39]Read from MH i2c: E2 0B 00 [23:13:39]MH_I2C_Read... [23:13:39]Read from MH i2c: E2 0B 00 10 0A 00 48 70 F5 F7 8B 4E 2E 52 90 00 93 [23:13:39]RAPDU: 48 70 F5 F7 8B 4E 2E 52 90 00 [23:13:39]wFMCommunicate OK [23:13:39]SAM_PROTO_SignData done [23:13:39]FM_MakeSignedData done [23:13:39]CreateOFDProtocolMessage [23:13:39]wFMCommunicate request_size=4 [23:13:39]MH_SAM_APDU [23:13:39]CAPDU: 80 11 00 00 [23:13:39]Write to MH i2c: E2 08 00 11 0A 80 11 00 00 00 00 00 00 95 [23:13:39]Write i2c OK [23:13:39]MH_I2C_Read... [23:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:39]Read from MH i2c: E2 [23:13:39]MH_I2C_Read... [23:13:39]Read from MH i2c: E2 17 00 [23:13:39]MH_I2C_Read... [23:13:39]Read from MH i2c: E2 17 00 11 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 EA [23:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [23:13:39]wFMCommunicate OK [23:13:39]CreateOFDProtocolMessage done [23:13:39]OFDSenderStorePacket 70723 [23:13:39]StoreOFDPacket docnum=70723 [23:13:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 2C 89 07 01 86 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 29 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A3 E8 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 43 14 01 00 35 04 06 00 D8 26 9A 51 84 25 48 70 F5 F7 8B 4E 2E 52 [23:13:39]CheckFolder [23:13:39]dirname=/storage/ofd_packets [23:13:39]CheckFolder done [23:13:39]ProducePacketName [23:13:39]name=ofd_packets/00070723 [23:13:39]NVStorageSaveData ofd_packets/00070723 [23:13:39]File name is /storage/ofd_packets/00070723 [23:13:39]Write 301 bytes [23:13:39]NVStorageSaveData done [23:13:39]OFDSenderStorePacket done [23:13:39]KKMCreateOFDPacket done [23:13:39]NVStorageSaveData kkm_last_timestamp [23:13:39]File name is /storage/kkm_last_timestamp [23:13:39]Write 4 bytes [23:13:39]NVStorageSaveData done [23:13:39]ExternCall_PrintAddStr [23:13:39]wPrintStart [23:13:39]Write to MH i2c: 01 00 00 12 0A 1C [23:13:39]Write i2c OK [23:13:39]MH_I2C_Read... [23:13:39]Read from MH i2c: 01 [23:13:39]MH_I2C_Read... [23:13:39]Read from MH i2c: 01 07 00 [23:13:39]MH_I2C_Read... [23:13:39]Read from MH i2c: 01 07 00 12 0A 00 00 00 00 00 FF 0F 31 [23:13:39]RasterBufferAndPrint [23:13:39]line Счет N : (1)141185 [23:13:39]line ИÐÐ: 02508201610067 [23:13:39]line Контрольно-КаÑÑовый Чек [23:13:39]line ПРОДÐЖР[23:13:39]line ТРК (МРК, ГÐК) : 41 [23:13:39]line Товар: 2710124130 [23:13:39]line Ðи-92-К-5 [23:13:39]line 10.630 * 65.90 [23:13:39]line = 700.52 [23:13:39]line ÐДС 12% ÐСП 1% [23:13:39]line > о реализуемом товаре [23:13:39]line ИТОГО: 700.52 [23:13:39]line ÐСП 1% : 6.20 [23:13:39]line ÐДС 12% : 74.39 [23:13:39]line Ðаличными: 0.00 [23:13:39]line Безнал.: 700.52 [23:13:39]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [23:13:39]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [23:13:39]line СÐО: Общий режим [23:13:39]line Чек 77 13.08.2024 23:13 [23:13:39]line Смена: 466 ФФД: 1.0 [23:13:39]line ЗÐМ: 0300000140 [23:13:39]line РÐМ: 0000000000090913 [23:13:39]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [23:13:39]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [23:13:39]line ФМ: 0000000000874915 [23:13:39]line ФД: 70723 [23:13:39]line ФПД: 237660309390373 [23:13:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T231339&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70723&fm=237660309390373&tin=02508201610067®Number=0000000000090913&sum=70052 [23:13:39]written 0, free lines is 4095 [23:13:39]OFD Sender: Processing packet 70723 [packets to send 67, broken 66] [23:13:39]ProducePacketName [23:13:39]name=ofd_packets/00070723 [23:13:39]OFD Sender: To server: ‡•öpG, [23:13:39]CommunicateWithHost lk.salyk.kg:30040 [23:13:39]ConnectInit lk.salyk.kg [23:13:39]Connected sock=11 [23:13:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 2C 89 07 01 86 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 29 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A3 E8 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 43 14 01 00 35 04 06 00 D8 26 9A 51 84 25 48 70 F5 F7 8B 4E 2E 52 [23:13:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 7E 9F 47 00 39 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 39 31 35 10 04 04 00 43 14 01 00 F4 03 04 00 8D 8F BB 66 B6 04 01 00 00 D6 62 94 09 BA CF 00 D1 [23:13:39]CommunicateWithHost err = 0 [23:13:39]CheckOFDResponse [23:13:39]1017 (14) - 77093643461234 [23:13:39]1041 (16) - 0000000000874915 [23:13:39]1040 (4) - 70723 [23:13:39]1012 (4) - 13.08.2024 16:53 [23:13:39]1206 (1) - 0 [23:13:39]OFD Sender: Remove packet 70723 [23:13:39]ProducePacketName [23:13:39]name=ofd_packets/00070723 [23:13:39]NVStorageDeleteData [23:13:39]Write to MH i2c: 01 00 00 3C 0A 46 [23:13:39]Write i2c OK [23:13:39]MH_I2C_Read... [23:13:39]Read from MH i2c: 01 [23:13:39]MH_I2C_Read... [23:13:39]Read from MH i2c: 01 07 00 [23:13:39]MH_I2C_Read... [23:13:39]Read from MH i2c: 01 07 00 3C 0A 00 00 00 00 00 F5 0C 4E [23:13:39]RasterBufferAndPrint [23:13:39]line [23:13:39]line [23:13:39]line [23:13:39]line [23:13:39]line [23:13:39]written 0, free lines is 3323 [23:13:40]MH_Cut [23:13:40]Write to MH i2c: D1 01 00 43 0A 01 1F [23:13:40]Write i2c OK [23:13:40]MH_I2C_Read... [23:13:40]Read from MH i2c: D1 [23:13:40]MH_I2C_Read... [23:13:40]Read from MH i2c: D1 01 00 [23:13:40]MH_I2C_Read... [23:13:40]Read from MH i2c: D1 01 00 43 0A 00 1E [23:13:40]Write to MH i2c: 01 00 00 44 0A 4E [23:13:40]Write i2c OK [23:13:40]MH_I2C_Read... [23:13:40]OFD Sender: No OFD packet to send [23:13:40]*** Cut start [23:13:40]*** Purtial cut [23:13:40]*** CUTSNS_PIN = 0 [23:13:40]*** Stage 1: CUTSNS_PIN = 1 [23:13:42]Read from MH i2c: 01 [23:13:42]MH_I2C_Read... [23:13:42]*** Stop cut motor [23:13:42]*** Cut end [23:13:42]Read from MH i2c: 01 07 00 [23:13:42]MH_I2C_Read... [23:13:42]Read from MH i2c: 01 07 00 44 0A 00 00 00 00 00 FF 0F 63 [23:13:42]process_action close_receipt done [23:13:42]requested_data is exist [23:13:42]produce_requested_data [23:13:42]requested_item fm.sn is exist - process it [23:13:42]wFMCommunicate request_size=4 [23:13:42]MH_SAM_APDU [23:13:42]CAPDU: 80 11 00 00 [23:13:42]Write to MH i2c: E2 08 00 45 0A 80 11 00 00 00 00 00 00 C9 [23:13:42]Write i2c OK [23:13:42]MH_I2C_Read... [23:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:42]Read from MH i2c: E2 [23:13:42]MH_I2C_Read... [23:13:42]Read from MH i2c: E2 17 00 [23:13:42]MH_I2C_Read... [23:13:42]Read from MH i2c: E2 17 00 45 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 1E [23:13:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [23:13:42]wFMCommunicate OK [23:13:42]requested_item fd.num is exist - process it [23:13:42]SAM_PROTO_GetFieldsCounters [23:13:42]wFMCommunicate request_size=4 [23:13:42]MH_SAM_APDU [23:13:42]CAPDU: 80 13 00 00 [23:13:42]Write to MH i2c: E2 08 00 46 0A 80 13 00 00 00 00 00 00 CC [23:13:42]Write i2c OK [23:13:42]MH_I2C_Read... [23:13:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:13:42]Read from MH i2c: E2 [23:13:42]MH_I2C_Read... [23:13:42]Read from MH i2c: E2 62 00 [23:13:42]MH_I2C_Read... [23:13:42]Read from MH i2c: E2 62 00 46 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 43 14 01 00 0E 04 04 00 D2 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 FE [23:13: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 43 14 01 00 0E 04 04 00 D2 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 [23:13:42]wFMCommunicate OK [23:13:42]SAM_PROTO_GetFieldsCounters done [23:13:42]requested_item shift.num is exist - process it [23:13:42]requested_item shift.opened is exist - process it [23:13:42]req_shift_opened [23:13:42]FM_GetShiftState [23:13:42]SAM_PROTO_GetShiftState [23:13:42]wFMCommunicate request_size=4 [23:13:42]MH_SAM_APDU [23:13:42]CAPDU: 80 13 01 00 [23:13:42]Write to MH i2c: E2 08 00 47 0A 80 13 01 00 00 00 00 00 CE [23:13:42]Write i2c OK [23:13:42]MH_I2C_Read... [23:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:42]Read from MH i2c: E2 [23:13:42]MH_I2C_Read... [23:13:42]Read from MH i2c: E2 0E 00 [23:13:42]MH_I2C_Read... [23:13:42]Read from MH i2c: E2 0E 00 47 0A 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 3D [23:13:42]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [23:13:42]wFMCommunicate OK [23:13:42]SAM_PROTO_GetShiftState done [23:13:42]FM_GetShiftState done [23:13:42]req_shift_opened done [23:13:42]requested_item shift.open_date is exist - process it [23:13:42]req_shift_open_date [23:13:42]req_shift_open_date done [23:13:42]produce_requested_data done [23:13:42]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70723,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [23:13:42]process_action_free close_receipt [23:13:42]json_value_free [23:13:42]json_value_free done [23:13:42]process_json_proto returns [23:13:42]Send response to host [23:13:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70723,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [23:13:42]free response buf [23:13:42]execute_script done [23:13:42]execute_script returns [23:13:42]free content buf [23:13:42]Sock 7.Close socket [23:13:42]Sock 7.Thread stoped [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:34]accept exits with 9 [23:34:34]New connection [23:34:34]New thread 3067448676 created [23:34:34]Thread 3067305316 joined [23:34:34]Waiting for new connection... [23:34:34] Sock 9.Parse request [23:34:34]Sock 9.Check first char [23:34:34]Sock 9.First char is OK [23:34:34]request: POST /json_proto HTTP/1.0 [23:34:34]Method: POST [23:34:34]URL: /json_proto [23:34:34]Method is POST - this is cgi request [23:34:34]url: /json_proto [23:34:34]query_string will be loaded in cgi processing [23:34:34]execute_cgi json_proto POST (null) [23:34:34]execute_cgi path=json_proto method=POST [23:34:34]POST find Content-Length [23:34:34]Host: 172.17.58.67:8080 [23:34:34]Content-Length: 814 [23:34:34]Content-Type: application/json [23:34:34] [23:34:34]POST finish read [23:34:34]Found Content-Length = 814 [23:34:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 10.000, "sum" : 744.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 744.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:34]execute_script... [23:34: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)141186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 10.000, "sum" : 744.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 744.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:34]POST & json_proto [23:34:34]process_json_proto [23:34:34]json parsed OK: [23:34:34]protocol is kg_v1.0 [23:34:34]action value=close_receipt [23:34:34]process_action close_receipt [23:34:34]cmd_close_receipt [23:34:34]MH_GetDate [23:34:34]Write to MH i2c: F0 00 00 48 0A 41 [23:34:34]Write i2c OK [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: F0 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: F0 09 00 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: F0 09 00 48 0A 00 8C ED BB 66 94 51 63 64 90 [23:34:34]GetLastDocTimeStamp 1723590819 [23:34:34]current date 1723592076 [23:34:34]FM_GetShiftState [23:34:34]SAM_PROTO_GetShiftState [23:34:34]wFMCommunicate request_size=4 [23:34:34]MH_SAM_APDU [23:34:34]CAPDU: 80 13 01 00 [23:34:34]Write to MH i2c: E2 08 00 49 0A 80 13 01 00 00 00 00 00 D0 [23:34:34]Write i2c OK [23:34:34]MH_I2C_Read... [23:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:34]Read from MH i2c: E2 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 0E 00 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 0E 00 49 0A 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 3F [23:34:34]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [23:34:34]wFMCommunicate OK [23:34:34]SAM_PROTO_GetShiftState done [23:34:34]FM_GetShiftState done [23:34:34]opened in 1723509656 [23:34:34]opened+sec_in_day 1723596056 [23:34:34]quantity*price = 74400 [23:34:34]sum+1 = 74401 [23:34:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 744.00 ÐСП 1% : 6.58 ÐДС 12% : 79.01 Ðаличными: 0.00 Безнал.: 744.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 78 13.08.2024 23:34 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000000874915 ФД: 70724 ФПД: 173402445070260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T233436&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70724&fm=173402445070260&tin=02508201610067®Number=0000000000090913&sum=74400 [23:34:35]StoreToDocumentArchive [23:34:35]shift 466 fd 70724 [23:34:35]save to /storage/0466/doc_00070724 [23:34:35]save last doc name /storage/0466/doc_00070724 to /storage/kkm_last_doc_name [23:34:35]save OK [23:34:35]Clear old archive folders... [23:34:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:34:35]tlvbuf is 006F6FB0 [23:34:35]SAM_PROTO_ClearQueue [23:34:35]wFMCommunicate request_size=4 [23:34:35]MH_SAM_APDU [23:34:35]CAPDU: 80 09 00 00 [23:34:35]Write to MH i2c: E2 08 00 56 0A 80 09 00 00 00 00 00 00 D2 [23:34:35]Write i2c OK [23:34:35]MH_I2C_Read... [23:34:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:35]Read from MH i2c: E2 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 03 00 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 03 00 56 0A 00 90 00 D4 [23:34:35]RAPDU: 90 00 [23:34:35]wFMCommunicate OK [23:34:35]SAM_PROTO_ClearQueue done [23:34:35]KKMCreateOFDPacket [23:34:35]OFDProtocolAddRootSTLVToBuf [23:34:35]FM_MakeSignedData [23:34:35]FM_MakeSignedData [23:34:35]SAM_PROTO_SignData [23:34:35]wFMCommunicate request_size=4 [23:34:35]MH_SAM_APDU [23:34:35]CAPDU: 80 0D 01 02 [23:34:35]Write to MH i2c: E2 08 00 57 0A 80 0D 01 02 00 00 00 00 DA [23:34:35]Write i2c OK [23:34:35]MH_I2C_Read... [23:34:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:35]Read from MH i2c: E2 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 03 00 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 03 00 57 0A 00 90 00 D5 [23:34:35]RAPDU: 90 00 [23:34:35]wFMCommunicate OK [23:34:35]wFMCommunicate request_size=255 [23:34:35]MH_SAM_APDU [23:34:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 A0 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 22 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 8C ED BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 44 14 01 00 35 04 06 00 9D B5 67 24 [23:34:35]Write to MH i2c: E2 02 01 58 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 10 27 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 A0 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 22 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 8C ED BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 44 14 01 00 35 04 06 00 9D B5 67 24 00 00 63 [23:34:35]Write i2c OK [23:34:35]MH_I2C_Read... [23:34:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:35]Read from MH i2c: E2 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 03 00 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 03 00 58 0A 00 90 00 D6 [23:34:35]RAPDU: 90 00 [23:34:35]wFMCommunicate OK [23:34:35]wFMCommunicate request_size=7 [23:34:35]MH_SAM_APDU [23:34:35]CAPDU: 80 0D 02 02 02 3F B4 [23:34:35]Write to MH i2c: E2 0A 00 59 0A 80 0D 02 02 02 00 3F B4 00 00 D4 [23:34:35]Write i2c OK [23:34:35]MH_I2C_Read... [23:34:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:35]Read from MH i2c: E2 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 03 00 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 03 00 59 0A 00 90 00 D7 [23:34:35]RAPDU: 90 00 [23:34:35]wFMCommunicate OK [23:34:35]wFMCommunicate request_size=4 [23:34:35]MH_SAM_APDU [23:34:35]CAPDU: 80 0D 03 02 [23:34:35]Write to MH i2c: E2 08 00 5A 0A 80 0D 03 02 00 00 00 00 DF [23:34:35]Write i2c OK [23:34:35]MH_I2C_Read... [23:34:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:35]Read from MH i2c: E2 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 0B 00 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 0B 00 5A 0A 00 62 D1 9B 56 0D 46 DC 6C 90 00 9F [23:34:35]RAPDU: 62 D1 9B 56 0D 46 DC 6C 90 00 [23:34:35]wFMCommunicate OK [23:34:35]SAM_PROTO_SignData done [23:34:35]FM_MakeSignedData done [23:34:35]CreateOFDProtocolMessage [23:34:35]wFMCommunicate request_size=4 [23:34:35]MH_SAM_APDU [23:34:35]CAPDU: 80 11 00 00 [23:34:35]Write to MH i2c: E2 08 00 5B 0A 80 11 00 00 00 00 00 00 DF [23:34:35]Write i2c OK [23:34:35]MH_I2C_Read... [23:34:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:36]Read from MH i2c: E2 [23:34:36]MH_I2C_Read... [23:34:36]Read from MH i2c: E2 17 00 [23:34:36]MH_I2C_Read... [23:34:36]Read from MH i2c: E2 17 00 5B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 34 [23:34:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [23:34:36]wFMCommunicate OK [23:34:36]CreateOFDProtocolMessage done [23:34:36]OFDSenderStorePacket 70724 [23:34:36]StoreOFDPacket docnum=70724 [23:34:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 0A 84 04 01 18 2A 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 10 27 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 A0 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 22 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 8C ED BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 44 14 01 00 35 04 06 00 9D B5 67 24 3F B4 62 D1 9B 56 0D 46 DC 6C [23:34:36]CheckFolder [23:34:36]dirname=/storage/ofd_packets [23:34:36]CheckFolder done [23:34:36]ProducePacketName [23:34:36]name=ofd_packets/00070724 [23:34:36]NVStorageSaveData ofd_packets/00070724 [23:34:36]File name is /storage/ofd_packets/00070724 [23:34:36]Write 298 bytes [23:34:36]NVStorageSaveData done [23:34:36]OFDSenderStorePacket done [23:34:36]KKMCreateOFDPacket done [23:34:36]NVStorageSaveData kkm_last_timestamp [23:34:36]File name is /storage/kkm_last_timestamp [23:34:36]Write 4 bytes [23:34:36]NVStorageSaveData done [23:34:36]ExternCall_PrintAddStr [23:34:36]wPrintStart [23:34:36]Write to MH i2c: 01 00 00 5C 0A 66 [23:34:36]Write i2c OK [23:34:36]MH_I2C_Read... [23:34:36]Read from MH i2c: 01 [23:34:36]MH_I2C_Read... [23:34:36]Read from MH i2c: 01 07 00 [23:34:36]MH_I2C_Read... [23:34:36]Read from MH i2c: 01 07 00 5C 0A 00 00 00 00 00 FF 0F 7B [23:34:36]RasterBufferAndPrint [23:34:36]line Счет N : (1)141186 [23:34:36]line ИÐÐ: 02508201610067 [23:34:36]line Контрольно-КаÑÑовый Чек [23:34:36]line ПРОДÐЖР[23:34:36]line ТРК (МРК, ГÐК) : 44 [23:34:36]line Товар: 2710194210 [23:34:36]line ДТ-К-5 [23:34:36]line 10.000 * 74.40 [23:34:36]line = 744.00 [23:34:36]line ÐДС 12% ÐСП 1% [23:34:36]line > о реализуемом товаре [23:34:36]line ИТОГО: 744.00 [23:34:36]line ÐСП 1% : 6.58 [23:34:36]line ÐДС 12% : 79.01 [23:34:36]line Ðаличными: 0.00 [23:34:36]line Безнал.: 744.00 [23:34:36]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [23:34:36]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [23:34:36]line СÐО: Общий режим [23:34:36]line Чек 78 13.08.2024 23:34 [23:34:36]line Смена: 466 ФФД: 1.0 [23:34:36]line ЗÐМ: 0300000140 [23:34:36]line РÐМ: 0000000000090913 [23:34:36]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [23:34:36]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [23:34:36]line ФМ: 0000000000874915 [23:34:36]line ФД: 70724 [23:34:36]line ФПД: 173402445070260 [23:34:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T233436&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70724&fm=173402445070260&tin=02508201610067®Number=0000000000090913&sum=74400 [23:34:36]OFD Sender: Processing packet 70724 [packets to send 67, broken 66] [23:34:36]ProducePacketName [23:34:36]name=ofd_packets/00070724 [23:34:36]OFD Sender: To server: ‡•öpG, [23:34:36]CommunicateWithHost lk.salyk.kg:30040 [23:34:36]ConnectInit lk.salyk.kg [23:34:36]written 0, free lines is 4095 [23:34:36]Connected sock=10 [23:34: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 39 31 35 0C 01 00 00 0A 84 04 01 18 2A 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 10 27 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 A0 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 22 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 8C ED BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 44 14 01 00 35 04 06 00 9D B5 67 24 3F B4 62 D1 9B 56 0D 46 DC 6C [23:34:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 7C 08 47 00 62 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 39 31 35 10 04 04 00 44 14 01 00 F4 03 04 00 76 94 BB 66 B6 04 01 00 00 A0 E6 16 FF 7D DB CA C3 [23:34:36]CommunicateWithHost err = 0 [23:34:36]CheckOFDResponse [23:34:36]1017 (14) - 77093643461234 [23:34:36]1041 (16) - 0000000000874915 [23:34:36]1040 (4) - 70724 [23:34:36]1012 (4) - 13.08.2024 17:14 [23:34:36]1206 (1) - 0 [23:34:36]OFD Sender: Remove packet 70724 [23:34:36]ProducePacketName [23:34:36]name=ofd_packets/00070724 [23:34:36]NVStorageDeleteData [23:34:36]Write to MH i2c: 01 00 00 86 0A 90 [23:34:36]Write i2c OK [23:34:36]MH_I2C_Read... [23:34:36]Read from MH i2c: 01 [23:34:36]MH_I2C_Read... [23:34:36]Read from MH i2c: 01 07 00 [23:34:36]MH_I2C_Read... [23:34:36]Read from MH i2c: 01 07 00 86 0A 00 00 00 00 00 FA 0C 9D [23:34:36]RasterBufferAndPrint [23:34:36]line [23:34:36]line [23:34:36]line [23:34:36]line [23:34:36]line [23:34:36]written 0, free lines is 3331 [23:34:36]MH_Cut [23:34:36]Write to MH i2c: D1 01 00 8D 0A 01 69 [23:34:36]Write i2c OK [23:34:36]MH_I2C_Read... [23:34:36]Read from MH i2c: D1 [23:34:36]MH_I2C_Read... [23:34:36]Read from MH i2c: D1 01 00 [23:34:36]MH_I2C_Read... [23:34:36]Read from MH i2c: D1 01 00 8D 0A 00 68 [23:34:36]Write to MH i2c: 01 00 00 8E 0A 98 [23:34:36]Write i2c OK [23:34:36]MH_I2C_Read... [23:34:37]OFD Sender: No OFD packet to send [23:34:37]*** Cut start [23:34:37]*** Purtial cut [23:34:37]*** Stage 1: CUTSNS_PIN = 1 [23:34:37]Read from MH i2c: 01 [23:34:37]MH_I2C_Read... [23:34:37]*** Stop cut motor [23:34:37]*** Cut end [23:34:37]Read from MH i2c: 01 07 00 [23:34:37]MH_I2C_Read... [23:34:37]Read from MH i2c: 01 07 00 8E 0A 00 00 00 00 00 FF 0F AD [23:34:37]process_action close_receipt done [23:34:37]requested_data is exist [23:34:37]produce_requested_data [23:34:37]requested_item fm.sn is exist - process it [23:34:37]wFMCommunicate request_size=4 [23:34:37]MH_SAM_APDU [23:34:37]CAPDU: 80 11 00 00 [23:34:37]Write to MH i2c: E2 08 00 8F 0A 80 11 00 00 00 00 00 00 13 [23:34:37]Write i2c OK [23:34:37]MH_I2C_Read... [23:34:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:37]Read from MH i2c: E2 [23:34:37]MH_I2C_Read... [23:34:37]Read from MH i2c: E2 17 00 [23:34:37]MH_I2C_Read... [23:34:37]Read from MH i2c: E2 17 00 8F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 68 [23:34:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [23:34:37]wFMCommunicate OK [23:34:37]requested_item fd.num is exist - process it [23:34:37]SAM_PROTO_GetFieldsCounters [23:34:37]wFMCommunicate request_size=4 [23:34:37]MH_SAM_APDU [23:34:37]CAPDU: 80 13 00 00 [23:34:37]Write to MH i2c: E2 08 00 90 0A 80 13 00 00 00 00 00 00 16 [23:34:37]Write i2c OK [23:34:37]MH_I2C_Read... [23:34:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:37]Read from MH i2c: E2 [23:34:37]MH_I2C_Read... [23:34:37]Read from MH i2c: E2 62 00 [23:34:37]MH_I2C_Read... [23:34:37]Read from MH i2c: E2 62 00 90 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 44 14 01 00 0E 04 04 00 D2 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 4C [23:34: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 44 14 01 00 0E 04 04 00 D2 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 [23:34:37]wFMCommunicate OK [23:34:37]SAM_PROTO_GetFieldsCounters done [23:34:37]requested_item shift.num is exist - process it [23:34:37]requested_item shift.opened is exist - process it [23:34:37]req_shift_opened [23:34:37]FM_GetShiftState [23:34:37]SAM_PROTO_GetShiftState [23:34:37]wFMCommunicate request_size=4 [23:34:37]MH_SAM_APDU [23:34:37]CAPDU: 80 13 01 00 [23:34:38]Write to MH i2c: E2 08 00 91 0A 80 13 01 00 00 00 00 00 18 [23:34:38]Write i2c OK [23:34:38]MH_I2C_Read... [23:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:38]Read from MH i2c: E2 [23:34:38]MH_I2C_Read... [23:34:38]Read from MH i2c: E2 0E 00 [23:34:38]MH_I2C_Read... [23:34:38]Read from MH i2c: E2 0E 00 91 0A 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 87 [23:34:38]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [23:34:38]wFMCommunicate OK [23:34:38]SAM_PROTO_GetShiftState done [23:34:38]FM_GetShiftState done [23:34:38]req_shift_opened done [23:34:38]requested_item shift.open_date is exist - process it [23:34:38]req_shift_open_date [23:34:38]req_shift_open_date done [23:34:38]produce_requested_data done [23:34:38]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70724,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [23:34:38]process_action_free close_receipt [23:34:38]json_value_free [23:34:38]json_value_free done [23:34:38]process_json_proto returns [23:34:38]Send response to host [23:34:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70724,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [23:34:38]free response buf [23:34:38]execute_script done [23:34:38]execute_script returns [23:34:38]free content buf [23:34:38]Sock 9.Close socket [23:34:38]Sock 9.Thread stoped [23:34:42]OFD Sender: No OFD packet to send [23:34:42]accept exits with 7 [23:34:42]New connection [23:34:42]New thread 3067305316 created [23:34:42]Thread 3067448676 joined [23:34:42]Waiting for new connection... [23:34:42] Sock 7.Parse request [23:34:42]Sock 7.Check first char [23:34:42]Sock 7.First char is OK [23:34:42]request: POST /json_proto HTTP/1.0 [23:34:42]Method: POST [23:34:42]URL: /json_proto [23:34:42]Method is POST - this is cgi request [23:34:42]url: /json_proto [23:34:42]query_string will be loaded in cgi processing [23:34:42]execute_cgi json_proto POST (null) [23:34:42]execute_cgi path=json_proto method=POST [23:34:42]POST find Content-Length [23:34:42]Host: 172.17.58.67:8080 [23:34:42]Content-Length: 623 [23:34:42]Content-Type: application/json [23:34:42] [23:34:42]POST finish read [23:34:42]Found Content-Length = 623 [23:34:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17484", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:42]execute_script... [23:34:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17484", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:42]POST & json_proto [23:34:42]process_json_proto [23:34:42]json parsed OK: [23:34:42]protocol is kg_v1.0 [23:34:42]action value=close_receipt [23:34:42]process_action close_receipt [23:34:42]cmd_close_receipt [23:34:42]MH_GetDate [23:34:42]Write to MH i2c: F0 00 00 92 0A 8B [23:34:42]Write i2c OK [23:34:42]MH_I2C_Read... [23:34:42]Read from MH i2c: F0 [23:34:42]MH_I2C_Read... [23:34:42]Read from MH i2c: F0 09 00 [23:34:42]MH_I2C_Read... [23:34:42]Read from MH i2c: F0 09 00 92 0A 00 94 ED BB 66 94 51 63 64 E2 [23:34:42]GetLastDocTimeStamp 1723592076 [23:34:42]current date 1723592084 [23:34:42]FM_GetShiftState [23:34:42]SAM_PROTO_GetShiftState [23:34:42]wFMCommunicate request_size=4 [23:34:42]MH_SAM_APDU [23:34:42]CAPDU: 80 13 01 00 [23:34:42]Write to MH i2c: E2 08 00 93 0A 80 13 01 00 00 00 00 00 1A [23:34:42]Write i2c OK [23:34:42]MH_I2C_Read... [23:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:43]Read from MH i2c: E2 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 0E 00 [23:34:43]MH_I2C_Read... [23:34:43]Read from MH i2c: E2 0E 00 93 0A 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 89 [23:34:43]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [23:34:43]wFMCommunicate OK [23:34:43]SAM_PROTO_GetShiftState done [23:34:43]FM_GetShiftState done [23:34:43]opened in 1723509656 [23:34:43]opened+sec_in_day 1723596056 [23:34:43]quantity*price = 15100 [23:34:43]sum+1 = 15101 [23:34:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 ÐСП 1% : 1.34 ÐДС 12% : 16.03 Ðаличными: 151.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 79 13.08.2024 23:34 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70725 ФПД: 45646761059619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T233444&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70725&fm=45646761059619&tin=02508201610067®Number=0000000000090913&sum=15100 0 [23:34:44]StoreToDocumentArchive [23:34:44]shift 466 fd 70725 [23:34:44]save to /storage/0466/doc_00070725 [23:34:44]save last doc name /storage/0466/doc_00070725 to /storage/kkm_last_doc_name [23:34:44]save OK [23:34:44]Clear old archive folders... [23:34:44]ProcessDocumentItem done err = 0, tmpTLVsize=276 [23:34:44]tlvbuf is 006C82E0 [23:34:44]SAM_PROTO_ClearQueue [23:34:44]wFMCommunicate request_size=4 [23:34:44]MH_SAM_APDU [23:34:44]CAPDU: 80 09 00 00 [23:34:44]Write to MH i2c: E2 08 00 A0 0A 80 09 00 00 00 00 00 00 1C [23:34:44]Write i2c OK [23:34:44]MH_I2C_Read... [23:34:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:44]Read from MH i2c: E2 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: E2 03 00 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: E2 03 00 A0 0A 00 90 00 1E [23:34:44]RAPDU: 90 00 [23:34:44]wFMCommunicate OK [23:34:44]SAM_PROTO_ClearQueue done [23:34:44]KKMCreateOFDPacket [23:34:44]OFDProtocolAddRootSTLVToBuf [23:34:44]FM_MakeSignedData [23:34:44]FM_MakeSignedData [23:34:44]SAM_PROTO_SignData [23:34:44]wFMCommunicate request_size=4 [23:34:44]MH_SAM_APDU [23:34:44]CAPDU: 80 0D 01 02 [23:34:44]Write to MH i2c: E2 08 00 A1 0A 80 0D 01 02 00 00 00 00 24 [23:34:44]Write i2c OK [23:34:44]MH_I2C_Read... [23:34:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:44]Read from MH i2c: E2 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: E2 03 00 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: E2 03 00 A1 0A 00 90 00 1F [23:34:44]RAPDU: 90 00 [23:34:44]wFMCommunicate OK [23:34:44]wFMCommunicate request_size=255 [23:34:44]MH_SAM_APDU [23:34:44]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 94 ED BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 [23:34:44]Write to MH i2c: E2 02 01 A2 0A 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 94 ED BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 00 00 37 [23:34:44]Write i2c OK [23:34:44]MH_I2C_Read... [23:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:44]Read from MH i2c: E2 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: E2 03 00 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: E2 03 00 A2 0A 00 90 00 20 [23:34:44]RAPDU: 90 00 [23:34:44]wFMCommunicate OK [23:34:44]wFMCommunicate request_size=35 [23:34:44]MH_SAM_APDU [23:34:44]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 45 14 01 00 35 04 06 00 29 83 F6 FA 65 23 [23:34:44]Write to MH i2c: E2 26 00 A3 0A 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 45 14 01 00 35 04 06 00 29 83 F6 FA 65 23 00 00 9A [23:34:44]Write i2c OK [23:34:44]MH_I2C_Read... [23:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:44]Read from MH i2c: E2 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: E2 03 00 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: E2 03 00 A3 0A 00 90 00 21 [23:34:44]RAPDU: 90 00 [23:34:44]wFMCommunicate OK [23:34:44]wFMCommunicate request_size=4 [23:34:44]MH_SAM_APDU [23:34:44]CAPDU: 80 0D 03 02 [23:34:44]Write to MH i2c: E2 08 00 A4 0A 80 0D 03 02 00 00 00 00 29 [23:34:44]Write i2c OK [23:34:44]MH_I2C_Read... [23:34:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:44]Read from MH i2c: E2 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: E2 0B 00 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: E2 0B 00 A4 0A 00 B4 2C FD 0F F6 8A EA EA 90 00 6A [23:34:44]RAPDU: B4 2C FD 0F F6 8A EA EA 90 00 [23:34:44]wFMCommunicate OK [23:34:44]SAM_PROTO_SignData done [23:34:44]FM_MakeSignedData done [23:34:44]CreateOFDProtocolMessage [23:34:44]wFMCommunicate request_size=4 [23:34:44]MH_SAM_APDU [23:34:44]CAPDU: 80 11 00 00 [23:34:44]Write to MH i2c: E2 08 00 A5 0A 80 11 00 00 00 00 00 00 29 [23:34:44]Write i2c OK [23:34:44]MH_I2C_Read... [23:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:44]Read from MH i2c: E2 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: E2 17 00 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: E2 17 00 A5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 7E [23:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [23:34:44]wFMCommunicate OK [23:34:44]CreateOFDProtocolMessage done [23:34:44]OFDSenderStorePacket 70725 [23:34:44]StoreOFDPacket docnum=70725 [23:34:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 28 01 00 00 28 0C 20 01 6D 19 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 94 ED BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 45 14 01 00 35 04 06 00 29 83 F6 FA 65 23 B4 2C FD 0F F6 8A EA EA [23:34:44]CheckFolder [23:34:44]dirname=/storage/ofd_packets [23:34:44]CheckFolder done [23:34:44]ProducePacketName [23:34:44]name=ofd_packets/00070725 [23:34:44]NVStorageSaveData ofd_packets/00070725 [23:34:44]File name is /storage/ofd_packets/00070725 [23:34:44]Write 326 bytes [23:34:44]NVStorageSaveData done [23:34:44]OFDSenderStorePacket done [23:34:44]KKMCreateOFDPacket done [23:34:44]NVStorageSaveData kkm_last_timestamp [23:34:44]File name is /storage/kkm_last_timestamp [23:34:44]Write 4 bytes [23:34:44]NVStorageSaveData done [23:34:44]ExternCall_PrintAddStr [23:34:44]wPrintStart [23:34:44]Write to MH i2c: 01 00 00 A6 0A B0 [23:34:44]Write i2c OK [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: 01 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: 01 07 00 [23:34:44]MH_I2C_Read... [23:34:44]Read from MH i2c: 01 07 00 A6 0A 00 00 00 00 00 FF 0F C5 [23:34:44]RasterBufferAndPrint [23:34:44]line Счет N : (3)17484 [23:34:44]line ИÐÐ: 02508201610067 [23:34:44]line Контрольно-КаÑÑовый Чек [23:34:44]line ПРОДÐЖР[23:34:44]line Товар: 48742245 [23:34:44]line Сигареты Parliament Silver Blue [23:34:44]line 1.000 * 151.00 [23:34:44]line = 151.00 [23:34:44]line ÐДС 12% ÐСП 1% [23:34:44]line > о реализуемом товаре [23:34:44]line ИТОГО: 151.00 [23:34:44]line ÐСП 1% : 1.34 [23:34:44]line ÐДС 12% : 16.03 [23:34:44]line Ðаличными: 151.00 [23:34:44]line Безнал.: 0.00 [23:34:44]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [23:34:44]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [23:34:44]line СÐО: Общий режим [23:34:44]line Чек 79 13.08.2024 23:34 [23:34:44]line Смена: 466 ФФД: 1.0 [23:34:44]line ЗÐМ: 0300000140 [23:34:44]line РÐМ: 0000000000090913 [23:34:44]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [23:34:44]line ФМ: 0000000000874915 [23:34:44]line ФД: 70725 [23:34:44]line ФПД: 45646761059619 [23:34:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T233444&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70725&fm=45646761059619&tin=02508201610067®Number=0000000000090913&sum=15100 [23:34:44]line 0 [23:34:44]written 0, free lines is 4095 [23:34:44]OFD Sender: Processing packet 70725 [packets to send 67, broken 66] [23:34:44]ProducePacketName [23:34:44]name=ofd_packets/00070725 [23:34:44]OFD Sender: To server: ‡•öpG, [23:34:44]CommunicateWithHost lk.salyk.kg:30040 [23:34:44]ConnectInit lk.salyk.kg [23:34:44]Connected sock=10 [23:34: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 39 31 35 28 01 00 00 28 0C 20 01 6D 19 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 94 ED BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 45 14 01 00 35 04 06 00 29 83 F6 FA 65 23 B4 2C FD 0F F6 8A EA EA [23:34:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 B5 F1 47 00 F9 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 39 31 35 10 04 04 00 45 14 01 00 F4 03 04 00 7E 94 BB 66 B6 04 01 00 00 BA 15 57 39 96 8E 0F 8D [23:34:45]CommunicateWithHost err = 0 [23:34:45]CheckOFDResponse [23:34:45]1017 (14) - 77093643461234 [23:34:45]1041 (16) - 0000000000874915 [23:34:45]1040 (4) - 70725 [23:34:45]1012 (4) - 13.08.2024 17:14 [23:34:45]1206 (1) - 0 [23:34:45]OFD Sender: Remove packet 70725 [23:34:45]ProducePacketName [23:34:45]name=ofd_packets/00070725 [23:34:45]NVStorageDeleteData [23:34:45]Write to MH i2c: 01 00 00 CF 0A D9 [23:34:45]Write i2c OK [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: 01 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: 01 07 00 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: 01 07 00 CF 0A 00 00 00 00 00 FD 0C E9 [23:34:45]RasterBufferAndPrint [23:34:45]line [23:34:45]line [23:34:45]line [23:34:45]line [23:34:45]line [23:34:45]written 0, free lines is 3331 [23:34:45]MH_Cut [23:34:45]Write to MH i2c: D1 01 00 D6 0A 01 B2 [23:34:45]Write i2c OK [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: D1 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: D1 01 00 [23:34:45]MH_I2C_Read... [23:34:45]Read from MH i2c: D1 01 00 D6 0A 00 B1 [23:34:45]Write to MH i2c: 01 00 00 D7 0A E1 [23:34:45]Write i2c OK [23:34:45]MH_I2C_Read... [23:34:45]OFD Sender: No OFD packet to send [23:34:45]*** Cut start [23:34:45]*** Purtial cut [23:34:45]*** CUTSNS_PIN = 0 [23:34:46]*** Stage 1: CUTSNS_PIN = 1 [23:34:47]Read from MH i2c: 01 [23:34:47]MH_I2C_Read... [23:34:47]*** Stop cut motor [23:34:47]*** Cut end [23:34:47]Read from MH i2c: 01 07 00 [23:34:47]MH_I2C_Read... [23:34:47]Read from MH i2c: 01 07 00 D7 0A 00 00 00 00 00 FF 0F F6 [23:34:47]process_action close_receipt done [23:34:47]requested_data is exist [23:34:47]produce_requested_data [23:34:47]requested_item fm.sn is exist - process it [23:34:47]wFMCommunicate request_size=4 [23:34:47]MH_SAM_APDU [23:34:47]CAPDU: 80 11 00 00 [23:34:47]Write to MH i2c: E2 08 00 D8 0A 80 11 00 00 00 00 00 00 5C [23:34:48]Write i2c OK [23:34:48]MH_I2C_Read... [23:34:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:48]Read from MH i2c: E2 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 17 00 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 17 00 D8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 B1 [23:34:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [23:34:48]wFMCommunicate OK [23:34:48]requested_item fd.num is exist - process it [23:34:48]SAM_PROTO_GetFieldsCounters [23:34:48]wFMCommunicate request_size=4 [23:34:48]MH_SAM_APDU [23:34:48]CAPDU: 80 13 00 00 [23:34:48]Write to MH i2c: E2 08 00 D9 0A 80 13 00 00 00 00 00 00 5F [23:34:48]Write i2c OK [23:34:48]MH_I2C_Read... [23:34:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:48]Read from MH i2c: E2 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 62 00 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 62 00 D9 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 45 14 01 00 0E 04 04 00 D2 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 99 [23:34:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 45 14 01 00 0E 04 04 00 D2 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 [23:34:48]wFMCommunicate OK [23:34:48]SAM_PROTO_GetFieldsCounters done [23:34:48]requested_item shift.num is exist - process it [23:34:48]requested_item shift.opened is exist - process it [23:34:48]req_shift_opened [23:34:48]FM_GetShiftState [23:34:48]SAM_PROTO_GetShiftState [23:34:48]wFMCommunicate request_size=4 [23:34:48]MH_SAM_APDU [23:34:48]CAPDU: 80 13 01 00 [23:34:48]Write to MH i2c: E2 08 00 DA 0A 80 13 01 00 00 00 00 00 61 [23:34:48]Write i2c OK [23:34:48]MH_I2C_Read... [23:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:48]Read from MH i2c: E2 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 0E 00 [23:34:48]MH_I2C_Read... [23:34:48]Read from MH i2c: E2 0E 00 DA 0A 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 D0 [23:34:48]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [23:34:48]wFMCommunicate OK [23:34:48]SAM_PROTO_GetShiftState done [23:34:48]FM_GetShiftState done [23:34:48]req_shift_opened done [23:34:48]requested_item shift.open_date is exist - process it [23:34:48]req_shift_open_date [23:34:48]req_shift_open_date done [23:34:48]produce_requested_data done [23:34:48]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70725,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [23:34:48]process_action_free close_receipt [23:34:48]json_value_free [23:34:48]json_value_free done [23:34:48]process_json_proto returns [23:34:48]Send response to host [23:34:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70725,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [23:34:48]free response buf [23:34:48]execute_script done [23:34:48]execute_script returns [23:34:48]free content buf [23:34:48]Sock 7.Close socket [23:34:48]Sock 7.Thread stoped [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]OFD Sender: No OFD packet to send [23:55:21]OFD Sender: No OFD packet to send [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:46]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:56:01]OFD Sender: No OFD packet to send [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:41]accept exits with 9 [23:59:41]New connection [23:59:41]New thread 3067448676 created [23:59:41]Thread 3067305316 joined [23:59:41]Waiting for new connection... [23:59:41] Sock 9.Parse request [23:59:41]Sock 9.Check first char [23:59:41]Sock 9.First char is OK [23:59:41]request: POST /json_proto HTTP/1.0 [23:59:41]Method: POST [23:59:41]URL: /json_proto [23:59:41]Method is POST - this is cgi request [23:59:41]url: /json_proto [23:59:41]query_string will be loaded in cgi processing [23:59:41]execute_cgi json_proto POST (null) [23:59:41]execute_cgi path=json_proto method=POST [23:59:41]POST find Content-Length [23:59:41]Host: 172.17.58.67:8080 [23:59:41]Content-Length: 683 [23:59:41]Content-Type: application/json [23:59:41] [23:59:41]POST finish read [23:59:41]Found Content-Length = 683 [23:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70725, "base_FM": "0000000000874915", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17484", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "70725" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:41]execute_script... [23:59:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70725, "base_FM": "0000000000874915", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17484", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "70725" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:41]POST & json_proto [23:59:41]process_json_proto [23:59:41]json parsed OK: [23:59:41]protocol is kg_v1.0 [23:59:41]action value=close_receipt [23:59:41]process_action close_receipt [23:59:41]cmd_close_receipt [23:59:41]MH_GetDate [23:59:41]Write to MH i2c: F0 00 00 DB 0A D4 [23:59:41]Write i2c OK [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: F0 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: F0 09 00 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: F0 09 00 DB 0A 00 6E F3 BB 66 94 51 63 64 0B [23:59:41]GetLastDocTimeStamp 1723592084 [23:59:41]current date 1723593582 [23:59:41]FM_GetShiftState [23:59:41]SAM_PROTO_GetShiftState [23:59:41]wFMCommunicate request_size=4 [23:59:41]MH_SAM_APDU [23:59:41]CAPDU: 80 13 01 00 [23:59:41]Write to MH i2c: E2 08 00 DC 0A 80 13 01 00 00 00 00 00 63 [23:59:41]Write i2c OK [23:59:41]MH_I2C_Read... [23:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:41]Read from MH i2c: E2 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: E2 0E 00 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: E2 0E 00 DC 0A 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 D2 [23:59:41]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [23:59:41]wFMCommunicate OK [23:59:41]SAM_PROTO_GetShiftState done [23:59:41]FM_GetShiftState done [23:59:41]opened in 1723509656 [23:59:41]opened+sec_in_day 1723596056 [23:59:41]quantity*price = 15100 [23:59:41]sum+1 = 15101 [23:59:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 ÐСП 1% : 1.34 ÐДС 12% : 16.03 Ðаличными: 151.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 80 13.08.2024 23:59 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФД оÑн.: 70725 ФМ оÑн.: 0000000000874915 ФМ: 0000000000874915 ФД: 70726 ФПД: 45735911531959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T235942&type=2&operation_type=1&fn_number=0000000000874915&fd_number=70726&fm=45735911531959&tin=02508201610067®Number=0000000000090913&sum=15100 70725 [23:59:42]StoreToDocumentArchive [23:59:42]shift 466 fd 70726 [23:59:42]save to /storage/0466/doc_00070726 [23:59:42]save last doc name /storage/0466/doc_00070726 to /storage/kkm_last_doc_name [23:59:42]save OK [23:59:42]Clear old archive folders... [23:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=304 [23:59:42]tlvbuf is 006BA200 [23:59:42]SAM_PROTO_ClearQueue [23:59:42]wFMCommunicate request_size=4 [23:59:42]MH_SAM_APDU [23:59:42]CAPDU: 80 09 00 00 [23:59:42]Write to MH i2c: E2 08 00 EB 0A 80 09 00 00 00 00 00 00 67 [23:59:42]Write i2c OK [23:59:42]MH_I2C_Read... [23:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:59:42]Read from MH i2c: E2 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 03 00 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 03 00 EB 0A 00 90 00 69 [23:59:42]RAPDU: 90 00 [23:59:42]wFMCommunicate OK [23:59:42]SAM_PROTO_ClearQueue done [23:59:42]KKMCreateOFDPacket [23:59:42]OFDProtocolAddRootSTLVToBuf [23:59:42]FM_MakeSignedData [23:59:42]FM_MakeSignedData [23:59:42]SAM_PROTO_SignData [23:59:42]wFMCommunicate request_size=4 [23:59:42]MH_SAM_APDU [23:59:42]CAPDU: 80 0D 01 02 [23:59:42]Write to MH i2c: E2 08 00 EC 0A 80 0D 01 02 00 00 00 00 6F [23:59:42]Write i2c OK [23:59:42]MH_I2C_Read... [23:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:59:42]Read from MH i2c: E2 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 03 00 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 03 00 EC 0A 00 90 00 6A [23:59:42]RAPDU: 90 00 [23:59:42]wFMCommunicate OK [23:59:42]wFMCommunicate request_size=255 [23:59:42]MH_SAM_APDU [23:59:42]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 02 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 6E F3 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 45 14 01 00 [23:59:42]Write to MH i2c: E2 02 01 ED 0A 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 02 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 6E F3 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 45 14 01 00 00 00 24 [23:59:42]Write i2c OK [23:59:42]MH_I2C_Read... [23:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:42]Read from MH i2c: E2 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 03 00 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 03 00 ED 0A 00 90 00 6B [23:59:42]RAPDU: 90 00 [23:59:42]wFMCommunicate OK [23:59:42]wFMCommunicate request_size=63 [23:59:42]MH_SAM_APDU [23:59:42]CAPDU: 80 0D 02 02 3A 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 46 14 01 00 35 04 06 00 29 98 B8 C2 A5 B7 [23:59:42]Write to MH i2c: E2 42 00 EE 0A 80 0D 02 02 3A 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 46 14 01 00 35 04 06 00 29 98 B8 C2 A5 B7 00 00 D4 [23:59:42]Write i2c OK [23:59:42]MH_I2C_Read... [23:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:42]Read from MH i2c: E2 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 03 00 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 03 00 EE 0A 00 90 00 6C [23:59:42]RAPDU: 90 00 [23:59:42]wFMCommunicate OK [23:59:42]wFMCommunicate request_size=4 [23:59:42]MH_SAM_APDU [23:59:42]CAPDU: 80 0D 03 02 [23:59:42]Write to MH i2c: E2 08 00 EF 0A 80 0D 03 02 00 00 00 00 74 [23:59:42]Write i2c OK [23:59:42]MH_I2C_Read... [23:59:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:59:42]Read from MH i2c: E2 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 0B 00 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 0B 00 EF 0A 00 58 AC C7 9D 28 72 17 52 90 00 E0 [23:59:42]RAPDU: 58 AC C7 9D 28 72 17 52 90 00 [23:59:42]wFMCommunicate OK [23:59:42]SAM_PROTO_SignData done [23:59:42]FM_MakeSignedData done [23:59:42]CreateOFDProtocolMessage [23:59:42]wFMCommunicate request_size=4 [23:59:42]MH_SAM_APDU [23:59:42]CAPDU: 80 11 00 00 [23:59:42]Write to MH i2c: E2 08 00 F0 0A 80 11 00 00 00 00 00 00 74 [23:59:42]Write i2c OK [23:59:42]MH_I2C_Read... [23:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:42]Read from MH i2c: E2 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 17 00 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 17 00 F0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C9 [23:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [23:59:42]wFMCommunicate OK [23:59:42]CreateOFDProtocolMessage done [23:59:42]OFDSenderStorePacket 70726 [23:59:42]StoreOFDPacket docnum=70726 [23:59:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 44 01 00 00 55 D7 3C 01 A2 74 5A 03 01 00 03 00 30 01 1E 04 01 00 02 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 6E F3 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 45 14 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 46 14 01 00 35 04 06 00 29 98 B8 C2 A5 B7 58 AC C7 9D 28 72 17 52 [23:59:42]CheckFolder [23:59:42]dirname=/storage/ofd_packets [23:59:42]CheckFolder done [23:59:42]ProducePacketName [23:59:42]name=ofd_packets/00070726 [23:59:42]NVStorageSaveData ofd_packets/00070726 [23:59:42]File name is /storage/ofd_packets/00070726 [23:59:42]Write 354 bytes [23:59:42]NVStorageSaveData done [23:59:42]OFDSenderStorePacket done [23:59:42]KKMCreateOFDPacket done [23:59:42]NVStorageSaveData kkm_last_timestamp [23:59:42]File name is /storage/kkm_last_timestamp [23:59:42]Write 4 bytes [23:59:42]NVStorageSaveData done [23:59:42]ExternCall_PrintAddStr [23:59:42]wPrintStart [23:59:42]Write to MH i2c: 01 00 00 F1 0A FB [23:59:42]Write i2c OK [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: 01 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: 01 07 00 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: 01 07 00 F1 0A 00 00 00 00 00 FF 0F 10 [23:59:42]RasterBufferAndPrint [23:59:42]line Счет N : (3)17484 [23:59:42]line ИÐÐ: 02508201610067 [23:59:42]line Контрольно-КаÑÑовый Чек [23:59:42]line ВОЗВРÐТ ПРОДÐЖИ [23:59:42]line Товар: 48742245 [23:59:42]line Сигареты Parliament Silver Blue [23:59:42]line 1.000 * 151.00 [23:59:42]line = 151.00 [23:59:42]line ÐДС 12% ÐСП 1% [23:59:42]line > о реализуемом товаре [23:59:42]line ИТОГО: 151.00 [23:59:42]line ÐСП 1% : 1.34 [23:59:42]line ÐДС 12% : 16.03 [23:59:42]line Ðаличными: 151.00 [23:59:42]line Безнал.: 0.00 [23:59:42]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [23:59:42]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [23:59:42]line СÐО: Общий режим [23:59:42]line Чек 80 13.08.2024 23:59 [23:59:42]line Смена: 466 ФФД: 1.0 [23:59:42]line ЗÐМ: 0300000140 [23:59:42]line РÐМ: 0000000000090913 [23:59:42]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [23:59:42]line ФД оÑн.: 70725 [23:59:42]line ФМ оÑн.: 0000000000874915 [23:59:42]line ФМ: 0000000000874915 [23:59:42]line ФД: 70726 [23:59:42]line ФПД: 45735911531959 [23:59:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T235942&type=2&operation_type=1&fn_number=0000000000874915&fd_number=70726&fm=45735911531959&tin=02508201610067®Number=0000000000090913&sum=15100 [23:59:43]line 70725 [23:59:43]OFD Sender: Processing packet 70726 [packets to send 67, broken 66] [23:59:43]ProducePacketName [23:59:43]name=ofd_packets/00070726 [23:59:43]OFD Sender: To server: ‡•öpG, [23:59:43]CommunicateWithHost lk.salyk.kg:30040 [23:59:43]ConnectInit lk.salyk.kg [23:59:43]written 0, free lines is 4095 [23:59:43]Connected sock=10 [23:59: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 39 31 35 44 01 00 00 55 D7 3C 01 A2 74 5A 03 01 00 03 00 30 01 1E 04 01 00 02 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 6E F3 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 45 14 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 46 14 01 00 35 04 06 00 29 98 B8 C2 A5 B7 58 AC C7 9D 28 72 17 52 [23:59:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 89 CE 47 00 F3 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 46 14 01 00 F4 03 04 00 59 9A BB 66 B6 04 01 00 00 00 80 1B 3C DE 68 65 2C [23:59:43]CommunicateWithHost err = 0 [23:59:43]CheckOFDResponse [23:59:43]1017 (14) - 77093643461234 [23:59:43]1041 (16) - 0000000000874915 [23:59:43]1040 (4) - 70726 [23:59:43]1012 (4) - 13.08.2024 17:39 [23:59:43]1206 (1) - 0 [23:59:43]OFD Sender: Remove packet 70726 [23:59:43]ProducePacketName [23:59:43]name=ofd_packets/00070726 [23:59:43]NVStorageDeleteData [23:59:43]Write to MH i2c: 01 00 00 1C 0B 27 [23:59:43]Write i2c OK [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: 01 [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: 01 07 00 [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: 01 07 00 1C 0B 00 00 00 00 00 E3 0C 1D [23:59:43]RasterBufferAndPrint [23:59:43]line [23:59:43]line [23:59:43]line [23:59:43]line [23:59:43]line [23:59:43]written 0, free lines is 3305 [23:59:43]MH_Cut [23:59:43]Write to MH i2c: D1 01 00 23 0B 01 00 [23:59:43]Write i2c OK [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: D1 [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: D1 01 00 [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: D1 01 00 23 0B 00 FF [23:59:43]Write to MH i2c: 01 00 00 24 0B 2F [23:59:43]Write i2c OK [23:59:43]MH_I2C_Read... [23:59:44]OFD Sender: No OFD packet to send [23:59:44]*** Cut start [23:59:44]*** Purtial cut [23:59:44]*** Stage 1: CUTSNS_PIN = 1 [23:59:44]Read from MH i2c: 01 [23:59:44]MH_I2C_Read... [23:59:44]*** Stop cut motor [23:59:44]*** Cut end [23:59:44]Read from MH i2c: 01 07 00 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: 01 07 00 24 0B 00 00 00 00 00 FF 0F 44 [23:59:44]process_action close_receipt done [23:59:44]requested_data is exist [23:59:44]produce_requested_data [23:59:44]requested_item fm.sn is exist - process it [23:59:44]wFMCommunicate request_size=4 [23:59:44]MH_SAM_APDU [23:59:44]CAPDU: 80 11 00 00 [23:59:44]Write to MH i2c: E2 08 00 25 0B 80 11 00 00 00 00 00 00 AA [23:59:44]Write i2c OK [23:59:44]MH_I2C_Read... [23:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:44]Read from MH i2c: E2 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: E2 17 00 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: E2 17 00 25 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 FF [23:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [23:59:44]wFMCommunicate OK [23:59:44]requested_item fd.num is exist - process it [23:59:44]SAM_PROTO_GetFieldsCounters [23:59:44]wFMCommunicate request_size=4 [23:59:44]MH_SAM_APDU [23:59:44]CAPDU: 80 13 00 00 [23:59:44]Write to MH i2c: E2 08 00 26 0B 80 13 00 00 00 00 00 00 AD [23:59:44]Write i2c OK [23:59:44]MH_I2C_Read... [23:59:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:44]Read from MH i2c: E2 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: E2 62 00 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: E2 62 00 26 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 46 14 01 00 0E 04 04 00 D2 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 EB [23:59: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 46 14 01 00 0E 04 04 00 D2 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 [23:59:44]wFMCommunicate OK [23:59:44]SAM_PROTO_GetFieldsCounters done [23:59:44]requested_item shift.num is exist - process it [23:59:44]requested_item shift.opened is exist - process it [23:59:44]req_shift_opened [23:59:44]FM_GetShiftState [23:59:44]SAM_PROTO_GetShiftState [23:59:44]wFMCommunicate request_size=4 [23:59:44]MH_SAM_APDU [23:59:44]CAPDU: 80 13 01 00 [23:59:44]Write to MH i2c: E2 08 00 27 0B 80 13 01 00 00 00 00 00 AF [23:59:44]Write i2c OK [23:59:44]MH_I2C_Read... [23:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:44]Read from MH i2c: E2 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: E2 0E 00 [23:59:44]MH_I2C_Read... [23:59:44]Read from MH i2c: E2 0E 00 27 0B 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 1E [23:59:44]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [23:59:44]wFMCommunicate OK [23:59:44]SAM_PROTO_GetShiftState done [23:59:44]FM_GetShiftState done [23:59:44]req_shift_opened done [23:59:44]requested_item shift.open_date is exist - process it [23:59:44]req_shift_open_date [23:59:44]req_shift_open_date done [23:59:44]produce_requested_data done [23:59:44]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70726,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [23:59:44]process_action_free close_receipt [23:59:44]json_value_free [23:59:44]json_value_free done [23:59:44]process_json_proto returns [23:59:44]Send response to host [23:59:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70726,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [23:59:44]free response buf [23:59:44]execute_script done [23:59:44]execute_script returns [23:59:44]free content buf [23:59:44]Sock 9.Close socket [23:59:44]Sock 9.Thread stoped [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:58]accept exits with 7 [23:59:58]New connection [23:59:58]New thread 3067305316 created [23:59:58]Thread 3067448676 joined [23:59:58]Waiting for new connection... [23:59:58] Sock 7.Parse request [23:59:58]Sock 7.Check first char [23:59:58]Sock 7.First char is OK [23:59:58]request: POST /json_proto HTTP/1.0 [23:59:58]Method: POST [23:59:58]URL: /json_proto [23:59:58]Method is POST - this is cgi request [23:59:58]url: /json_proto [23:59:58]query_string will be loaded in cgi processing [23:59:58]execute_cgi json_proto POST (null) [23:59:58]execute_cgi path=json_proto method=POST [23:59:58]POST find Content-Length [23:59:58]Host: 172.17.58.67:8080 [23:59:58]Content-Length: 783 [23:59:58]Content-Type: application/json [23:59:58] [23:59:58]POST finish read [23:59:58]Found Content-Length = 783 [23:59:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70717, "base_FM": "0000000000874915", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17482", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 285.00, "quantity" : 1.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "70717" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:58]execute_script... [23:59:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70717, "base_FM": "0000000000874915", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17482", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 285.00, "quantity" : 1.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "70717" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:58]POST & json_proto [23:59:58]process_json_proto [23:59:58]json parsed OK: [23:59:58]protocol is kg_v1.0 [23:59:58]action value=close_receipt [23:59:58]process_action close_receipt [23:59:58]cmd_close_receipt [23:59:58]MH_GetDate [23:59:58]Write to MH i2c: F0 00 00 28 0B 22 [23:59:58]Write i2c OK [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: F0 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: F0 09 00 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: F0 09 00 28 0B 00 7F F3 BB 66 94 51 63 64 6A [23:59:58]GetLastDocTimeStamp 1723593582 [23:59:58]current date 1723593599 [23:59:58]FM_GetShiftState [23:59:58]SAM_PROTO_GetShiftState [23:59:58]wFMCommunicate request_size=4 [23:59:58]MH_SAM_APDU [23:59:58]CAPDU: 80 13 01 00 [23:59:58]Write to MH i2c: E2 08 00 29 0B 80 13 01 00 00 00 00 00 B1 [23:59:58]Write i2c OK [23:59:58]MH_I2C_Read... [23:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:58]Read from MH i2c: E2 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 0E 00 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 0E 00 29 0B 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 20 [23:59:58]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [23:59:58]wFMCommunicate OK [23:59:58]SAM_PROTO_GetShiftState done [23:59:58]FM_GetShiftState done [23:59:58]opened in 1723509656 [23:59:58]opened+sec_in_day 1723596056 [23:59:58]quantity*price = 28500 [23:59:58]sum+1 = 28501 [23:59:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 285.00 ÐСП 1% : 2.52 ÐДС 12% : 30.26 Ðаличными: 285.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 81 13.08.2024 23:59 Смена: 466 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФД оÑн.: 70717 ФМ оÑн.: 0000000000874915 ФМ: 0000000000874915 ФД: 70727 ФПД: 174360936777483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T235959&type=2&operation_type=1&fn_number=0000000000874915&fd_number=70727&fm=174360936777483&tin=02508201610067®Number=0000000000090913&sum=28500 70717 [23:59:59]StoreToDocumentArchive [23:59:59]shift 466 fd 70727 [23:59:59]save to /storage/0466/doc_00070727 [23:59:59]save last doc name /storage/0466/doc_00070727 to /storage/kkm_last_doc_name [23:59:59]save OK [23:59:59]Clear old archive folders... [23:59:59]ProcessDocumentItem done err = 0, tmpTLVsize=332 [23:59:59]tlvbuf is 006B6C80 [23:59:59]SAM_PROTO_ClearQueue [23:59:59]wFMCommunicate request_size=4 [23:59:59]MH_SAM_APDU [23:59:59]CAPDU: 80 09 00 00 [23:59:59]Write to MH i2c: E2 08 00 38 0B 80 09 00 00 00 00 00 00 B5 [23:59:59]Write i2c OK [23:59:59]MH_I2C_Read... [23:59:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:59:59]Read from MH i2c: E2 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 03 00 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 03 00 38 0B 00 90 00 B7 [23:59:59]RAPDU: 90 00 [23:59:59]wFMCommunicate OK [23:59:59]SAM_PROTO_ClearQueue done [23:59:59]KKMCreateOFDPacket [23:59:59]OFDProtocolAddRootSTLVToBuf [23:59:59]FM_MakeSignedData [23:59:59]FM_MakeSignedData [23:59:59]SAM_PROTO_SignData [23:59:59]wFMCommunicate request_size=4 [23:59:59]MH_SAM_APDU [23:59:59]CAPDU: 80 0D 01 02 [23:59:59]Write to MH i2c: E2 08 00 39 0B 80 0D 01 02 00 00 00 00 BD [23:59:59]Write i2c OK [23:59:59]MH_I2C_Read... [23:59:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:59:59]Read from MH i2c: E2 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 03 00 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 03 00 39 0B 00 90 00 B8 [23:59:59]RAPDU: 90 00 [23:59:59]wFMCommunicate OK [23:59:59]wFMCommunicate request_size=255 [23:59:59]MH_SAM_APDU [23:59:59]CAPDU: 80 0D 02 02 FA 03 00 4C 01 1E 04 01 00 02 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 7F F3 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 [23:59:59]Write to MH i2c: E2 02 01 3A 0B 80 0D 02 02 FA 00 03 00 4C 01 1E 04 01 00 02 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 7F F3 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 00 00 D4 [23:59:59]Write i2c OK [23:59:59]MH_I2C_Read... [23:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:59]Read from MH i2c: E2 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 03 00 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 03 00 3A 0B 00 90 00 B9 [23:59:59]RAPDU: 90 00 [23:59:59]wFMCommunicate OK [23:59:59]wFMCommunicate request_size=91 [23:59:59]MH_SAM_APDU [23:59:59]CAPDU: 80 0D 02 02 56 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 3D 14 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 47 14 01 00 35 04 06 00 9E 94 91 B3 07 0B [23:59:59]Write to MH i2c: E2 5E 00 3B 0B 80 0D 02 02 56 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 3D 14 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 47 14 01 00 35 04 06 00 9E 94 91 B3 07 0B 00 00 04 [23:59:59]Write i2c OK [23:59:59]MH_I2C_Read... [23:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:59]Read from MH i2c: E2 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 03 00 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 03 00 3B 0B 00 90 00 BA [23:59:59]RAPDU: 90 00 [23:59:59]wFMCommunicate OK [23:59:59]wFMCommunicate request_size=4 [23:59:59]MH_SAM_APDU [23:59:59]CAPDU: 80 0D 03 02 [23:59:59]Write to MH i2c: E2 08 00 3C 0B 80 0D 03 02 00 00 00 00 C2 [23:59:59]Write i2c OK [23:59:59]MH_I2C_Read... [23:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:59:59]Read from MH i2c: E2 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 0B 00 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 0B 00 3C 0B 00 DB EC CD F5 CD 02 97 E4 90 00 96 [23:59:59]RAPDU: DB EC CD F5 CD 02 97 E4 90 00 [23:59:59]wFMCommunicate OK [23:59:59]SAM_PROTO_SignData done [23:59:59]FM_MakeSignedData done [23:59:59]CreateOFDProtocolMessage [23:59:59]wFMCommunicate request_size=4 [23:59:59]MH_SAM_APDU [23:59:59]CAPDU: 80 11 00 00 [23:59:59]Write to MH i2c: E2 08 00 3D 0B 80 11 00 00 00 00 00 00 C2 [23:59:59]Write i2c OK [23:59:59]MH_I2C_Read... [23:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:59]Read from MH i2c: E2 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 17 00 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 17 00 3D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 17 [23:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [23:59:59]wFMCommunicate OK [23:59:59]CreateOFDProtocolMessage done [23:59:59]OFDSenderStorePacket 70727 [23:59:59]StoreOFDPacket docnum=70727 [23:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 60 01 00 00 73 4C 58 01 51 F9 5A 03 01 00 03 00 4C 01 1E 04 01 00 02 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 7F F3 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 3D 14 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 47 14 01 00 35 04 06 00 9E 94 91 B3 07 0B DB EC CD F5 CD 02 97 E4 [23:59:59]CheckFolder [23:59:59]dirname=/storage/ofd_packets [23:59:59]CheckFolder done [23:59:59]ProducePacketName [23:59:59]name=ofd_packets/00070727 [23:59:59]NVStorageSaveData ofd_packets/00070727 [23:59:59]File name is /storage/ofd_packets/00070727 [23:59:59]Write 382 bytes [23:59:59]NVStorageSaveData done [23:59:59]OFDSenderStorePacket done [23:59:59]KKMCreateOFDPacket done [23:59:59]NVStorageSaveData kkm_last_timestamp [23:59:59]File name is /storage/kkm_last_timestamp [23:59:59]Write 4 bytes [23:59:59]NVStorageSaveData done [23:59:59]ExternCall_PrintAddStr [23:59:59]wPrintStart [23:59:59]Write to MH i2c: 01 00 00 3E 0B 49 [23:59:59]Write i2c OK [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: 01 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: 01 07 00 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: 01 07 00 3E 0B 00 00 00 00 00 FF 0F 5E [23:59:59]RasterBufferAndPrint [23:59:59]line Счет N : (3)17482 [23:59:59]line ИÐÐ: 02508201610067 [23:59:59]line Контрольно-КаÑÑовый Чек [23:59:59]line ВОЗВРÐТ ПРОДÐЖИ [23:59:59]line Товар: 8901086040022 [23:59:59]line ЖидкоÑть ÑÑ‚ÐµÐºÐ»Ð¾Ð¾Ð¼Ñ‹Ð²Ð°ÑŽÑ‰Ð°Ñ ÐŸÐ -20 4,5л [23:59:59]line 1.000 * 285.00 [23:59:59]line = 285.00 [23:59:59]line ÐДС 12% ÐСП 1% [23:59:59]line > о реализуемом товаре [23:59:59]line ИТОГО: 285.00 [23:59:59]line ÐСП 1% : 2.52 [23:59:59]line ÐДС 12% : 30.26 [23:59:59]line Ðаличными: 285.00 [23:59:59]line Безнал.: 0.00 [23:59:59]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [23:59:59]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [23:59:59]line СÐО: Общий режим [23:59:59]line Чек 81 13.08.2024 23:59 [23:59:59]line Смена: 466 ФФД: 1.0 [23:59:59]line ЗÐМ: 0300000140 [23:59:59]line РÐМ: 0000000000090913 [23:59:59]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [23:59:59]line ФД оÑн.: 70717 [23:59:59]line ФМ оÑн.: 0000000000874915 [23:59:59]line ФМ: 0000000000874915 [23:59:59]line ФД: 70727 [23:59:59]line ФПД: 174360936777483 [00:00:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T235959&type=2&operation_type=1&fn_number=0000000000874915&fd_number=70727&fm=174360936777483&tin=02508201610067®Number=0000000000090913&sum=28500 [00:00:00]line 70717 [00:00:00]OFD Sender: Processing packet 70727 [packets to send 67, broken 66] [00:00:00]ProducePacketName [00:00:00]name=ofd_packets/00070727 [00:00:00]OFD Sender: To server: ‡•öpG, [00:00:00]CommunicateWithHost lk.salyk.kg:30040 [00:00:00]ConnectInit lk.salyk.kg [00:00:00]written 0, free lines is 4095 [00:00:00]Connected sock=10 [00:00: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 39 31 35 60 01 00 00 73 4C 58 01 51 F9 5A 03 01 00 03 00 4C 01 1E 04 01 00 02 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 7F F3 BB 66 0E 04 04 00 D2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 3D 14 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 47 14 01 00 35 04 06 00 9E 94 91 B3 07 0B DB EC CD F5 CD 02 97 E4 [00:00:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 E8 0C 47 00 7C 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 39 31 35 10 04 04 00 47 14 01 00 F4 03 04 00 6A 9A BB 66 B6 04 01 00 00 05 B3 B1 99 BC DB B7 08 [00:00:00]CommunicateWithHost err = 0 [00:00:00]CheckOFDResponse [00:00:00]1017 (14) - 77093643461234 [00:00:00]1041 (16) - 0000000000874915 [00:00:00]1040 (4) - 70727 [00:00:00]1012 (4) - 13.08.2024 17:39 [00:00:00]1206 (1) - 0 [00:00:00]OFD Sender: Remove packet 70727 [00:00:00]ProducePacketName [00:00:00]name=ofd_packets/00070727 [00:00:00]NVStorageDeleteData [00:00:00]Write to MH i2c: 01 00 00 69 0B 74 [00:00:00]Write i2c OK [00:00:00]MH_I2C_Read... [00:00:00]Read from MH i2c: 01 [00:00:00]MH_I2C_Read... [00:00:00]Read from MH i2c: 01 07 00 [00:00:00]MH_I2C_Read... [00:00:00]Read from MH i2c: 01 07 00 69 0B 00 00 00 00 00 09 0D 91 [00:00:00]RasterBufferAndPrint [00:00:00]line [00:00:00]line [00:00:00]line [00:00:00]line [00:00:00]line [00:00:00]written 0, free lines is 3346 [00:00:00]MH_Cut [00:00:00]Write to MH i2c: D1 01 00 70 0B 01 4D [00:00:00]Write i2c OK [00:00:00]MH_I2C_Read... [00:00:00]Read from MH i2c: D1 [00:00:00]MH_I2C_Read... [00:00:00]Read from MH i2c: D1 01 00 [00:00:00]MH_I2C_Read... [00:00:00]Read from MH i2c: D1 01 00 70 0B 00 4C [00:00:00]Write to MH i2c: 01 00 00 71 0B 7C [00:00:00]Write i2c OK [00:00:00]MH_I2C_Read... [00:00:01]OFD Sender: No OFD packet to send [00:00:01]*** Cut start [00:00:01]*** Purtial cut [00:00:01]*** CUTSNS_PIN = 0 [00:00:01]*** Stage 1: CUTSNS_PIN = 1 [00:00:03]Read from MH i2c: 01 [00:00:03]MH_I2C_Read... [00:00:03]*** Stop cut motor [00:00:03]*** Cut end [00:00:03]Read from MH i2c: 01 07 00 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: 01 07 00 71 0B 00 00 00 00 00 FF 0F 91 [00:00:03]process_action close_receipt done [00:00:03]requested_data is exist [00:00:03]produce_requested_data [00:00:03]requested_item fm.sn is exist - process it [00:00:03]wFMCommunicate request_size=4 [00:00:03]MH_SAM_APDU [00:00:03]CAPDU: 80 11 00 00 [00:00:03]Write to MH i2c: E2 08 00 72 0B 80 11 00 00 00 00 00 00 F7 [00:00:03]Write i2c OK [00:00:03]MH_I2C_Read... [00:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:03]Read from MH i2c: E2 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 17 00 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 17 00 72 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 4C [00:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:00:03]wFMCommunicate OK [00:00:03]requested_item fd.num is exist - process it [00:00:03]SAM_PROTO_GetFieldsCounters [00:00:03]wFMCommunicate request_size=4 [00:00:03]MH_SAM_APDU [00:00:03]CAPDU: 80 13 00 00 [00:00:03]Write to MH i2c: E2 08 00 73 0B 80 13 00 00 00 00 00 00 FA [00:00:03]Write i2c OK [00:00:03]MH_I2C_Read... [00:00:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:03]Read from MH i2c: E2 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 62 00 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 62 00 73 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 47 14 01 00 0E 04 04 00 D2 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 3C [00:00: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 47 14 01 00 0E 04 04 00 D2 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 [00:00:03]wFMCommunicate OK [00:00:03]SAM_PROTO_GetFieldsCounters done [00:00:03]requested_item shift.num is exist - process it [00:00:03]requested_item shift.opened is exist - process it [00:00:03]req_shift_opened [00:00:03]FM_GetShiftState [00:00:03]SAM_PROTO_GetShiftState [00:00:03]wFMCommunicate request_size=4 [00:00:03]MH_SAM_APDU [00:00:03]CAPDU: 80 13 01 00 [00:00:03]Write to MH i2c: E2 08 00 74 0B 80 13 01 00 00 00 00 00 FC [00:00:03]Write i2c OK [00:00:03]MH_I2C_Read... [00:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:03]Read from MH i2c: E2 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 0E 00 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 0E 00 74 0B 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 6B [00:00:03]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [00:00:03]wFMCommunicate OK [00:00:03]SAM_PROTO_GetShiftState done [00:00:03]FM_GetShiftState done [00:00:03]req_shift_opened done [00:00:03]requested_item shift.open_date is exist - process it [00:00:03]req_shift_open_date [00:00:03]req_shift_open_date done [00:00:03]produce_requested_data done [00:00:03]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70727,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [00:00:03]process_action_free close_receipt [00:00:03]json_value_free [00:00:03]json_value_free done [00:00:03]process_json_proto returns [00:00:03]Send response to host [00:00:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70727,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [00:00:03]free response buf [00:00:03]execute_script done [00:00:03]execute_script returns [00:00:03]free content buf [00:00:03]Sock 7.Close socket [00:00:03]Sock 7.Thread stoped [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:56]OFD Sender: No OFD packet to send [00:07:01]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:31]OFD Sender: No OFD packet to send [00:07:36]OFD Sender: No OFD packet to send [00:07:41]OFD Sender: No OFD packet to send [00:07:46]OFD Sender: No OFD packet to send [00:07:51]OFD Sender: No OFD packet to send [00:07:56]OFD Sender: No OFD packet to send [00:08:01]OFD Sender: No OFD packet to send [00:08:06]OFD Sender: No OFD packet to send [00:08:11]OFD Sender: No OFD packet to send [00:08:16]OFD Sender: No OFD packet to send [00:08:21]OFD Sender: No OFD packet to send [00:08:26]OFD Sender: No OFD packet to send [00:08:31]OFD Sender: No OFD packet to send [00:08:36]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:46]OFD Sender: No OFD packet to send [00:08:51]OFD Sender: No OFD packet to send [00:08:56]OFD Sender: No OFD packet to send [00:09:01]OFD Sender: No OFD packet to send [00:09:06]OFD Sender: No OFD packet to send [00:09:11]OFD Sender: No OFD packet to send [00:09:16]OFD Sender: No OFD packet to send [00:09:21]OFD Sender: No OFD packet to send [00:09:26]OFD Sender: No OFD packet to send [00:09:31]OFD Sender: No OFD packet to send [00:09:36]OFD Sender: No OFD packet to send [00:09:41]OFD Sender: No OFD packet to send [00:09:46]OFD Sender: No OFD packet to send [00:09:51]OFD Sender: No OFD packet to send [00:09:56]OFD Sender: No OFD packet to send [00:10:01]OFD Sender: No OFD packet to send [00:10:06]OFD Sender: No OFD packet to send [00:10:11]OFD Sender: No OFD packet to send [00:10:16]OFD Sender: No OFD packet to send [00:10:21]OFD Sender: No OFD packet to send [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:36]OFD Sender: No OFD packet to send [00:10:41]OFD Sender: No OFD packet to send [00:10:46]OFD Sender: No OFD packet to send [00:10:51]OFD Sender: No OFD packet to send [00:10:56]OFD Sender: No OFD packet to send [00:11:01]OFD Sender: No OFD packet to send [00:11:06]OFD Sender: No OFD packet to send [00:11:11]OFD Sender: No OFD packet to send [00:11:16]OFD Sender: No OFD packet to send [00:11:21]OFD Sender: No OFD packet to send [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:56]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:46]OFD Sender: No OFD packet to send [00:14:51]OFD Sender: No OFD packet to send [00:14:56]OFD Sender: No OFD packet to send [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:11]OFD Sender: No OFD packet to send [00:15:16]OFD Sender: No OFD packet to send [00:15:21]OFD Sender: No OFD packet to send [00:15:26]OFD Sender: No OFD packet to send [00:15:31]OFD Sender: No OFD packet to send [00:15:36]OFD Sender: No OFD packet to send [00:15:41]OFD Sender: No OFD packet to send [00:15:46]OFD Sender: No OFD packet to send [00:15:51]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:41]accept exits with 9 [00:25:41]New connection [00:25:41]New thread 3067448676 created [00:25:41]Thread 3067305316 joined [00:25:41]Waiting for new connection... [00:25:41] Sock 9.Parse request [00:25:41]Sock 9.Check first char [00:25:41]Sock 9.First char is OK [00:25:41]request: POST /json_proto HTTP/1.0 [00:25:41]Method: POST [00:25:41]URL: /json_proto [00:25:41]Method is POST - this is cgi request [00:25:41]url: /json_proto [00:25:41]query_string will be loaded in cgi processing [00:25:41]execute_cgi json_proto POST (null) [00:25:41]execute_cgi path=json_proto method=POST [00:25:41]POST find Content-Length [00:25:41]Host: 172.17.58.67:8080 [00:25:41]Content-Length: 215 [00:25:41]Content-Type: application/json [00:25:41] [00:25:41]POST finish read [00:25:41]Found Content-Length = 215 [00:25:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:41]execute_script... [00:25:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:41]POST & json_proto [00:25:41]process_json_proto [00:25:41]json parsed OK: [00:25:41]protocol is kg_v1.0 [00:25:41]action value=get_value [00:25:41]process_action get_value [00:25:41]cmd_get_value [00:25:41]process_action get_value done [00:25:41]requested_data is exist [00:25:41]produce_requested_data [00:25:41]requested_item kkm.sn is exist - process it [00:25:41]requested_item kkm.ver is exist - process it [00:25:41]requested_item fm.sn is exist - process it [00:25:41]wFMCommunicate request_size=4 [00:25:41]MH_SAM_APDU [00:25:41]CAPDU: 80 11 00 00 [00:25:41]Write to MH i2c: E2 08 00 75 0B 80 11 00 00 00 00 00 00 FA [00:25:41]Write i2c OK [00:25:41]MH_I2C_Read... [00:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:41]Read from MH i2c: E2 [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: E2 17 00 [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: E2 17 00 75 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 4F [00:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:25:41]wFMCommunicate OK [00:25:41]requested_item fd.num is exist - process it [00:25:41]SAM_PROTO_GetFieldsCounters [00:25:41]wFMCommunicate request_size=4 [00:25:41]MH_SAM_APDU [00:25:41]CAPDU: 80 13 00 00 [00:25:41]Write to MH i2c: E2 08 00 76 0B 80 13 00 00 00 00 00 00 FD [00:25:41]Write i2c OK [00:25:41]MH_I2C_Read... [00:25:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:41]Read from MH i2c: E2 [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: E2 62 00 [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: E2 62 00 76 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 47 14 01 00 0E 04 04 00 D2 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 3F [00:25: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 47 14 01 00 0E 04 04 00 D2 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 [00:25:41]wFMCommunicate OK [00:25:41]SAM_PROTO_GetFieldsCounters done [00:25:41]requested_item shift.num is exist - process it [00:25:41]requested_item shift.opened is exist - process it [00:25:41]req_shift_opened [00:25:41]FM_GetShiftState [00:25:41]SAM_PROTO_GetShiftState [00:25:41]wFMCommunicate request_size=4 [00:25:41]MH_SAM_APDU [00:25:41]CAPDU: 80 13 01 00 [00:25:41]Write to MH i2c: E2 08 00 77 0B 80 13 01 00 00 00 00 00 FF [00:25:41]Write i2c OK [00:25:41]MH_I2C_Read... [00:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:41]Read from MH i2c: E2 [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: E2 0E 00 [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: E2 0E 00 77 0B 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 6E [00:25:41]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [00:25:41]wFMCommunicate OK [00:25:41]SAM_PROTO_GetShiftState done [00:25:41]FM_GetShiftState done [00:25:41]req_shift_opened done [00:25:41]requested_item shift.open_date is exist - process it [00:25:41]req_shift_open_date [00:25:41]req_shift_open_date done [00:25:41]produce_requested_data done [00:25:41]produce_requested_data return {"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70727,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [00:25:41]process_action_free get_value [00:25:41]json_value_free [00:25:41]json_value_free done [00:25:41]process_json_proto returns [00:25:41]Send response to host [00:25:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70727,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [00:25:41]free response buf [00:25:41]execute_script done [00:25:41]execute_script returns [00:25:41]free content buf [00:25:41]Sock 9.Close socket [00:25:41]Sock 9.Thread stoped [00:25:41]accept exits with 7 [00:25:41]New connection [00:25:41]New thread 3067305316 created [00:25:41]Thread 3067448676 joined [00:25:41]Waiting for new connection... [00:25:41] Sock 7.Parse request [00:25:41]Sock 7.Check first char [00:25:41]Sock 7.First char is OK [00:25:41]request: POST /json_proto HTTP/1.0 [00:25:41]Method: POST [00:25:41]URL: /json_proto [00:25:41]Method is POST - this is cgi request [00:25:41]url: /json_proto [00:25:41]query_string will be loaded in cgi processing [00:25:41]execute_cgi json_proto POST (null) [00:25:41]execute_cgi path=json_proto method=POST [00:25:41]POST find Content-Length [00:25:41]Host: 172.17.58.67:8080 [00:25:41]Content-Length: 331 [00:25:41]Content-Type: application/json [00:25:41] [00:25:41]POST finish read [00:25:41]Found Content-Length = 331 [00:25:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:41]execute_script... [00:25:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:41]POST & json_proto [00:25:41]process_json_proto [00:25:41]json parsed OK: [00:25:41]protocol is kg_v1.0 [00:25:41]action value=get_value [00:25:42]process_action get_value [00:25:42]cmd_get_value [00:25:42]process_action get_value done [00:25:42]requested_data is exist [00:25:42]produce_requested_data [00:25:42]requested_item fm.sale.total is exist - process it [00:25:42]SAM_PROTO_GetFMData [00:25:42]wFMCommunicate request_size=4 [00:25:42]MH_SAM_APDU [00:25:42]CAPDU: 80 13 03 00 [00:25:42]Write to MH i2c: E2 08 00 78 0B 80 13 03 00 00 00 00 00 02 [00:25:42]Write i2c OK [00:25:42]MH_I2C_Read... [00:25:42]OFD Sender: No OFD packet to send [00:25:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:42]Read from MH i2c: E2 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 FD 00 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 FD 00 78 0B 00 C8 04 85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 90 00 2C [00:25:42]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 90 00 [00:25:42]wFMCommunicate OK [00:25:42]wFMCommunicate request_size=4 [00:25:42]MH_SAM_APDU [00:25:42]CAPDU: 80 17 00 00 [00:25:42]Write to MH i2c: E2 08 00 79 0B 80 17 00 00 00 00 00 00 04 [00:25:42]Write i2c OK [00:25:42]MH_I2C_Read... [00:25:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:42]Read from MH i2c: E2 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 FD 00 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 FD 00 79 0B 00 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 0F [00:25:42]RAPDU: 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 [00:25:42]wFMCommunicate OK [00:25:42]wFMCommunicate request_size=4 [00:25:42]MH_SAM_APDU [00:25:42]CAPDU: 80 17 00 00 [00:25:42]Write to MH i2c: E2 08 00 7A 0B 80 17 00 00 00 00 00 00 05 [00:25:42]Write i2c OK [00:25:42]MH_I2C_Read... [00:25:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:43]Read from MH i2c: E2 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 FD 00 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 FD 00 7A 0B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [00:25:43]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 [00:25:43]wFMCommunicate OK [00:25:43]wFMCommunicate request_size=4 [00:25:43]MH_SAM_APDU [00:25:43]CAPDU: 80 17 00 00 [00:25:43]Write to MH i2c: E2 08 00 7B 0B 80 17 00 00 00 00 00 00 06 [00:25:43]Write i2c OK [00:25:43]MH_I2C_Read... [00:25:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:43]Read from MH i2c: E2 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 FD 00 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 FD 00 7B 0B 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 [00:25:43]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 [00:25:43]wFMCommunicate OK [00:25:43]wFMCommunicate request_size=4 [00:25:43]MH_SAM_APDU [00:25:43]CAPDU: 80 17 00 00 [00:25:43]Write to MH i2c: E2 08 00 7C 0B 80 17 00 00 00 00 00 00 07 [00:25:43]Write i2c OK [00:25:43]MH_I2C_Read... [00:25:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:25:43]Read from MH i2c: E2 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 E5 00 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 E5 00 7C 0B 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 [00:25:43]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 [00:25:43]wFMCommunicate OK [00:25:43]SAM_PROTO_GetFMData done [00:25:43]requested_item fm.sale_refund.total is exist - process it [00:25:43]requested_item fm.buy.total is exist - process it [00:25:43]requested_item shift.sale.total is exist - process it [00:25:43]SAM_PROTO_GetShiftData [00:25:43]wFMCommunicate request_size=4 [00:25:43]MH_SAM_APDU [00:25:43]CAPDU: 80 13 02 00 [00:25:43]Write to MH i2c: E2 08 00 7D 0B 80 13 02 00 00 00 00 00 06 [00:25:43]Write i2c OK [00:25:43]MH_I2C_Read... [00:25:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:44]Read from MH i2c: E2 [00:25:44]MH_I2C_Read... [00:25:44]Read from MH i2c: E2 FD 00 [00:25:44]MH_I2C_Read... [00:25:44]Read from MH i2c: E2 FD 00 7D 0B 00 B9 04 AA 04 B5 04 6E 04 04 00 51 00 00 00 69 04 9B 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 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 A9 C7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 05 00 00 00 B1 04 03 00 00 1C 0C 70 04 03 00 00 1C 0C 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 41 49 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 3B [00:25:44]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 51 00 00 00 69 04 9B 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 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 A9 C7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 05 00 00 00 B1 04 03 00 00 1C 0C 70 04 03 00 00 1C 0C 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 41 49 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:25:44]wFMCommunicate OK [00:25:44]wFMCommunicate request_size=4 [00:25:44]MH_SAM_APDU [00:25:44]CAPDU: 80 17 00 00 [00:25:44]Write to MH i2c: E2 08 00 7E 0B 80 17 00 00 00 00 00 00 09 [00:25:44]Write i2c OK [00:25:44]MH_I2C_Read... [00:25:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:44]Read from MH i2c: E2 [00:25:44]MH_I2C_Read... [00:25:44]Read from MH i2c: E2 FD 00 [00:25:44]MH_I2C_Read... [00:25:44]Read from MH i2c: E2 FD 00 7E 0B 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 70 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 53 [00:25:44]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 70 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [00:25:44]wFMCommunicate OK [00:25:44]wFMCommunicate request_size=4 [00:25:44]MH_SAM_APDU [00:25:44]CAPDU: 80 17 00 00 [00:25:44]Write to MH i2c: E2 08 00 7F 0B 80 17 00 00 00 00 00 00 0A [00:25:44]Write i2c OK [00:25:44]MH_I2C_Read... [00:25:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:44]Read from MH i2c: E2 [00:25:44]MH_I2C_Read... [00:25:44]Read from MH i2c: E2 FD 00 [00:25:44]MH_I2C_Read... [00:25:44]Read from MH i2c: E2 FD 00 7F 0B 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 32 [00:25:44]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:25:44]wFMCommunicate OK [00:25:44]wFMCommunicate request_size=4 [00:25:44]MH_SAM_APDU [00:25:44]CAPDU: 80 17 00 00 [00:25:44]Write to MH i2c: E2 08 00 80 0B 80 17 00 00 00 00 00 00 0B [00:25:44]Write i2c OK [00:25:44]MH_I2C_Read... [00:25:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:45]Read from MH i2c: E2 [00:25:45]MH_I2C_Read... [00:25:45]Read from MH i2c: E2 FD 00 [00:25:45]MH_I2C_Read... [00:25:45]Read from MH i2c: E2 FD 00 80 0B 00 EF 03 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 90 00 83 [00:25:45]RAPDU: EF 03 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 90 00 [00:25:45]wFMCommunicate OK [00:25:45]wFMCommunicate request_size=4 [00:25:45]MH_SAM_APDU [00:25:45]CAPDU: 80 17 00 00 [00:25:45]Write to MH i2c: E2 08 00 81 0B 80 17 00 00 00 00 00 00 0C [00:25:45]Write i2c OK [00:25:45]MH_I2C_Read... [00:25:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:25:45]Read from MH i2c: E2 [00:25:45]MH_I2C_Read... [00:25:45]Read from MH i2c: E2 D6 00 [00:25:45]MH_I2C_Read... [00:25:45]Read from MH i2c: E2 D6 00 81 0B 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EE [00:25:45]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:45]wFMCommunicate OK [00:25:45]SAM_PROTO_GetShiftData done [00:25:45]requested_item shift.sale.total_cash is exist - process it [00:25:45]requested_item shift.sale_refund.total is exist - process it [00:25:45]requested_item shift.sale_refund.total_cash is exist - process it [00:25:45]requested_item shift.buy.total is exist - process it [00:25:45]requested_item shift.buy.total_cash is exist - process it [00:25:45]produce_requested_data done [00:25:45]produce_requested_data return {"fm.sale.total":76812481.06,"fm.sale_refund.total":3419000.00,"fm.buy.total":0.00,"shift.sale.total":57751.24,"shift.sale.total_cash":19947.00,"shift.sale_refund.total":7936.00,"shift.sale_refund.total_cash":7936.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:25:45]process_action_free get_value [00:25:45]json_value_free [00:25:45]json_value_free done [00:25:45]process_json_proto returns [00:25:45]Send response to host [00:25:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76812481.06,"fm.sale_refund.total":3419000.00,"fm.buy.total":0.00,"shift.sale.total":57751.24,"shift.sale.total_cash":19947.00,"shift.sale_refund.total":7936.00,"shift.sale_refund.total_cash":7936.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:25:45]free response buf [00:25:45]execute_script done [00:25:45]execute_script returns [00:25:45]free content buf [00:25:45]Sock 7.Close socket [00:25:45]Sock 7.Thread stoped [00:25:45]accept exits with 9 [00:25:45]New connection [00:25:45]New thread 3067448676 created [00:25:45]Thread 3067305316 joined [00:25:45]Waiting for new connection... [00:25:45] Sock 9.Parse request [00:25:45]Sock 9.Check first char [00:25:45]Sock 9.First char is OK [00:25:45]request: POST /json_proto HTTP/1.0 [00:25:45]Method: POST [00:25:45]URL: /json_proto [00:25:45]Method is POST - this is cgi request [00:25:45]url: /json_proto [00:25:45]query_string will be loaded in cgi processing [00:25:45]execute_cgi json_proto POST (null) [00:25:45]execute_cgi path=json_proto method=POST [00:25:45]POST find Content-Length [00:25:45]Host: 172.17.58.67:8080 [00:25:45]Content-Length: 331 [00:25:45]Content-Type: application/json [00:25:45] [00:25:45]POST finish read [00:25:45]Found Content-Length = 331 [00:25:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:45]execute_script... [00:25:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:45]POST & json_proto [00:25:45]process_json_proto [00:25:45]json parsed OK: [00:25:45]protocol is kg_v1.0 [00:25:45]action value=get_value [00:25:45]process_action get_value [00:25:45]cmd_get_value [00:25:45]process_action get_value done [00:25:45]requested_data is exist [00:25:45]produce_requested_data [00:25:45]requested_item fm.sale.total is exist - process it [00:25:45]SAM_PROTO_GetFMData [00:25:45]wFMCommunicate request_size=4 [00:25:45]MH_SAM_APDU [00:25:45]CAPDU: 80 13 03 00 [00:25:45]Write to MH i2c: E2 08 00 82 0B 80 13 03 00 00 00 00 00 0C [00:25:45]Write i2c OK [00:25:45]MH_I2C_Read... [00:25:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:46]Read from MH i2c: E2 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 FD 00 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 FD 00 82 0B 00 C8 04 85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 90 00 36 [00:25:46]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 90 00 [00:25:46]wFMCommunicate OK [00:25:46]wFMCommunicate request_size=4 [00:25:46]MH_SAM_APDU [00:25:46]CAPDU: 80 17 00 00 [00:25:46]Write to MH i2c: E2 08 00 83 0B 80 17 00 00 00 00 00 00 0E [00:25:46]Write i2c OK [00:25:46]MH_I2C_Read... [00:25:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:46]Read from MH i2c: E2 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 FD 00 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 FD 00 83 0B 00 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 [00:25:46]RAPDU: 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 [00:25:46]wFMCommunicate OK [00:25:46]wFMCommunicate request_size=4 [00:25:46]MH_SAM_APDU [00:25:46]CAPDU: 80 17 00 00 [00:25:46]Write to MH i2c: E2 08 00 84 0B 80 17 00 00 00 00 00 00 0F [00:25:46]Write i2c OK [00:25:46]MH_I2C_Read... [00:25:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:46]Read from MH i2c: E2 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 FD 00 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 FD 00 84 0B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [00:25: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 [00:25:46]wFMCommunicate OK [00:25:46]wFMCommunicate request_size=4 [00:25:46]MH_SAM_APDU [00:25:46]CAPDU: 80 17 00 00 [00:25:46]Write to MH i2c: E2 08 00 85 0B 80 17 00 00 00 00 00 00 10 [00:25:46]Write i2c OK [00:25:46]MH_I2C_Read... [00:25:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:47]Read from MH i2c: E2 [00:25:47]MH_I2C_Read... [00:25:47]Read from MH i2c: E2 FD 00 [00:25:47]MH_I2C_Read... [00:25:47]Read from MH i2c: E2 FD 00 85 0B 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 [00:25: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 [00:25:47]wFMCommunicate OK [00:25:47]wFMCommunicate request_size=4 [00:25:47]MH_SAM_APDU [00:25:47]CAPDU: 80 17 00 00 [00:25:47]Write to MH i2c: E2 08 00 86 0B 80 17 00 00 00 00 00 00 11 [00:25:47]Write i2c OK [00:25:47]MH_I2C_Read... [00:25:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:25:47]Read from MH i2c: E2 [00:25:47]MH_I2C_Read... [00:25:47]Read from MH i2c: E2 E5 00 [00:25:47]MH_I2C_Read... [00:25:47]Read from MH i2c: E2 E5 00 86 0B 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 [00:25: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 [00:25:47]wFMCommunicate OK [00:25:47]SAM_PROTO_GetFMData done [00:25:47]requested_item fm.sale_refund.total is exist - process it [00:25:47]requested_item fm.buy.total is exist - process it [00:25:47]requested_item shift.sale.total is exist - process it [00:25:47]SAM_PROTO_GetShiftData [00:25:47]wFMCommunicate request_size=4 [00:25:47]MH_SAM_APDU [00:25:47]CAPDU: 80 13 02 00 [00:25:47]Write to MH i2c: E2 08 00 87 0B 80 13 02 00 00 00 00 00 10 [00:25:47]Write i2c OK [00:25:47]MH_I2C_Read... [00:25:47]OFD Sender: No OFD packet to send [00:25:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:48]Read from MH i2c: E2 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 FD 00 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 FD 00 87 0B 00 B9 04 AA 04 B5 04 6E 04 04 00 51 00 00 00 69 04 9B 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 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 A9 C7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 05 00 00 00 B1 04 03 00 00 1C 0C 70 04 03 00 00 1C 0C 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 41 49 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 45 [00:25:48]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 51 00 00 00 69 04 9B 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 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 A9 C7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 05 00 00 00 B1 04 03 00 00 1C 0C 70 04 03 00 00 1C 0C 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 41 49 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:25:48]wFMCommunicate OK [00:25:48]wFMCommunicate request_size=4 [00:25:48]MH_SAM_APDU [00:25:48]CAPDU: 80 17 00 00 [00:25:48]Write to MH i2c: E2 08 00 88 0B 80 17 00 00 00 00 00 00 13 [00:25:48]Write i2c OK [00:25:48]MH_I2C_Read... [00:25:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:48]Read from MH i2c: E2 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 FD 00 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 FD 00 88 0B 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 70 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 5D [00:25:48]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 70 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [00:25:48]wFMCommunicate OK [00:25:48]wFMCommunicate request_size=4 [00:25:48]MH_SAM_APDU [00:25:48]CAPDU: 80 17 00 00 [00:25:48]Write to MH i2c: E2 08 00 89 0B 80 17 00 00 00 00 00 00 14 [00:25:48]Write i2c OK [00:25:48]MH_I2C_Read... [00:25:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:48]Read from MH i2c: E2 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 FD 00 [00:25:48]MH_I2C_Read... [00:25:48]Read from MH i2c: E2 FD 00 89 0B 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 3C [00:25:48]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:25:48]wFMCommunicate OK [00:25:48]wFMCommunicate request_size=4 [00:25:48]MH_SAM_APDU [00:25:48]CAPDU: 80 17 00 00 [00:25:48]Write to MH i2c: E2 08 00 8A 0B 80 17 00 00 00 00 00 00 15 [00:25:48]Write i2c OK [00:25:48]MH_I2C_Read... [00:25:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:49]Read from MH i2c: E2 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 FD 00 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 FD 00 8A 0B 00 EF 03 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 90 00 8D [00:25:49]RAPDU: EF 03 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 90 00 [00:25:49]wFMCommunicate OK [00:25:49]wFMCommunicate request_size=4 [00:25:49]MH_SAM_APDU [00:25:49]CAPDU: 80 17 00 00 [00:25:49]Write to MH i2c: E2 08 00 8B 0B 80 17 00 00 00 00 00 00 16 [00:25:49]Write i2c OK [00:25:49]MH_I2C_Read... [00:25:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:25:49]Read from MH i2c: E2 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 D6 00 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 D6 00 8B 0B 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F8 [00:25:49]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:49]wFMCommunicate OK [00:25:49]SAM_PROTO_GetShiftData done [00:25:49]requested_item shift.sale.total_cash is exist - process it [00:25:49]requested_item shift.sale_refund.total is exist - process it [00:25:49]requested_item shift.sale_refund.total_cash is exist - process it [00:25:49]requested_item shift.buy.total is exist - process it [00:25:49]requested_item shift.buy.total_cash is exist - process it [00:25:49]produce_requested_data done [00:25:49]produce_requested_data return {"fm.sale.total":76812481.06,"fm.sale_refund.total":3419000.00,"fm.buy.total":0.00,"shift.sale.total":57751.24,"shift.sale.total_cash":19947.00,"shift.sale_refund.total":7936.00,"shift.sale_refund.total_cash":7936.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:25:49]process_action_free get_value [00:25:49]json_value_free [00:25:49]json_value_free done [00:25:49]process_json_proto returns [00:25:49]Send response to host [00:25:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76812481.06,"fm.sale_refund.total":3419000.00,"fm.buy.total":0.00,"shift.sale.total":57751.24,"shift.sale.total_cash":19947.00,"shift.sale_refund.total":7936.00,"shift.sale_refund.total_cash":7936.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:25:49]free response buf [00:25:49]execute_script done [00:25:49]execute_script returns [00:25:49]free content buf [00:25:49]Sock 9.Close socket [00:25:49]Sock 9.Thread stoped [00:25:49]accept exits with 7 [00:25:49]New connection [00:25:49]New thread 3067305316 created [00:25:49]Thread 3067448676 joined [00:25:49]Waiting for new connection... [00:25:49] Sock 7.Parse request [00:25:49]Sock 7.Check first char [00:25:49]Sock 7.First char is OK [00:25:49]request: POST /json_proto HTTP/1.0 [00:25:49]Method: POST [00:25:49]URL: /json_proto [00:25:49]Method is POST - this is cgi request [00:25:49]url: /json_proto [00:25:49]query_string will be loaded in cgi processing [00:25:49]execute_cgi json_proto POST (null) [00:25:49]execute_cgi path=json_proto method=POST [00:25:49]POST find Content-Length [00:25:49]Host: 172.17.58.67:8080 [00:25:49]Content-Length: 269 [00:25:49]Content-Type: application/json [00:25:49] [00:25:49]POST finish read [00:25:49]Found Content-Length = 269 [00:25:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:49]execute_script... [00:25:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:49]POST & json_proto [00:25:49]process_json_proto [00:25:49]json parsed OK: [00:25:49]protocol is kg_v1.0 [00:25:49]action value=x_report [00:25:49]process_action x_report [00:25:49]cmd_x_report [00:25:49]MH_GetDate [00:25:49]Write to MH i2c: F0 00 00 8C 0B 86 [00:25:49]Write i2c OK [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: F0 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: F0 09 00 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: F0 09 00 8C 0B 00 8F F9 BB 66 94 51 63 64 E4 [00:25:49]GetLastDocTimeStamp 1723593599 [00:25:49]current date 1723595151 [00:25:49]FM_GetShiftState [00:25:49]SAM_PROTO_GetShiftState [00:25:49]wFMCommunicate request_size=4 [00:25:49]MH_SAM_APDU [00:25:49]CAPDU: 80 13 01 00 [00:25:49]Write to MH i2c: E2 08 00 8D 0B 80 13 01 00 00 00 00 00 15 [00:25:49]Write i2c OK [00:25:49]MH_I2C_Read... [00:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:49]Read from MH i2c: E2 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 0E 00 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 0E 00 8D 0B 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 84 [00:25:49]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [00:25:49]wFMCommunicate OK [00:25:49]SAM_PROTO_GetShiftState done [00:25:49]FM_GetShiftState done [00:25:49]KKMCreateXReportDocument [00:25:49]Load OK [00:25:49]Malloc new data [00:25:49]MH_GetDate [00:25:49]Write to MH i2c: F0 00 00 8E 0B 88 [00:25:49]Write i2c OK [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: F0 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: F0 09 00 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: F0 09 00 8E 0B 00 8F F9 BB 66 94 51 63 64 E6 [00:25:49]Malloc new data [00:25:49]Malloc new data [00:25:49]wFMCommunicate request_size=4 [00:25:49]MH_SAM_APDU [00:25:49]CAPDU: 80 11 00 00 [00:25:49]Write to MH i2c: E2 08 00 8F 0B 80 11 00 00 00 00 00 00 14 [00:25:49]Write i2c OK [00:25:49]MH_I2C_Read... [00:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:49]Read from MH i2c: E2 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 17 00 [00:25:49]MH_I2C_Read... [00:25:49]Read from MH i2c: E2 17 00 8F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 69 [00:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:25:50]wFMCommunicate OK [00:25:50]SAM_PROTO_GetFieldsCounters [00:25:50]wFMCommunicate request_size=4 [00:25:50]MH_SAM_APDU [00:25:50]CAPDU: 80 13 00 00 [00:25:50]Write to MH i2c: E2 08 00 90 0B 80 13 00 00 00 00 00 00 17 [00:25:50]Write i2c OK [00:25:50]MH_I2C_Read... [00:25:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:50]Read from MH i2c: E2 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 62 00 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 62 00 90 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 47 14 01 00 0E 04 04 00 D2 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 59 [00:25: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 47 14 01 00 0E 04 04 00 D2 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 [00:25:50]wFMCommunicate OK [00:25:50]SAM_PROTO_GetFieldsCounters done [00:25:50]Malloc new data [00:25:50]Malloc new data [00:25:50]Malloc new data [00:25:50]KKMCreateXReportDocument OK [00:25:50]KKMSetXReportData OK [00:25:50]KKMPrepareXReportFMData [00:25:50]SAM_PROTO_GetShiftData [00:25:50]wFMCommunicate request_size=4 [00:25:50]MH_SAM_APDU [00:25:50]CAPDU: 80 13 02 00 [00:25:50]Write to MH i2c: E2 08 00 91 0B 80 13 02 00 00 00 00 00 1A [00:25:50]Write i2c OK [00:25:50]MH_I2C_Read... [00:25:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:50]Read from MH i2c: E2 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 FD 00 [00:25:50]MH_I2C_Read... [00:25:50]Read from MH i2c: E2 FD 00 91 0B 00 B9 04 AA 04 B5 04 6E 04 04 00 51 00 00 00 69 04 9B 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 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 A9 C7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 05 00 00 00 B1 04 03 00 00 1C 0C 70 04 03 00 00 1C 0C 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 41 49 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 4F [00:25:50]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 51 00 00 00 69 04 9B 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 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 A9 C7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 05 00 00 00 B1 04 03 00 00 1C 0C 70 04 03 00 00 1C 0C 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 41 49 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:25:50]wFMCommunicate OK [00:25:50]wFMCommunicate request_size=4 [00:25:50]MH_SAM_APDU [00:25:50]CAPDU: 80 17 00 00 [00:25:50]Write to MH i2c: E2 08 00 92 0B 80 17 00 00 00 00 00 00 1D [00:25:50]Write i2c OK [00:25:50]MH_I2C_Read... [00:25:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:51]Read from MH i2c: E2 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 FD 00 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 FD 00 92 0B 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 70 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 67 [00:25:51]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 70 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [00:25:51]wFMCommunicate OK [00:25:51]wFMCommunicate request_size=4 [00:25:51]MH_SAM_APDU [00:25:51]CAPDU: 80 17 00 00 [00:25:51]Write to MH i2c: E2 08 00 93 0B 80 17 00 00 00 00 00 00 1E [00:25:51]Write i2c OK [00:25:51]MH_I2C_Read... [00:25:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:51]Read from MH i2c: E2 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 FD 00 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 FD 00 93 0B 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 46 [00:25:51]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:25:51]wFMCommunicate OK [00:25:51]wFMCommunicate request_size=4 [00:25:51]MH_SAM_APDU [00:25:51]CAPDU: 80 17 00 00 [00:25:51]Write to MH i2c: E2 08 00 94 0B 80 17 00 00 00 00 00 00 1F [00:25:51]Write i2c OK [00:25:51]MH_I2C_Read... [00:25:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:52]Read from MH i2c: E2 [00:25:52]MH_I2C_Read... [00:25:52]Read from MH i2c: E2 FD 00 [00:25:52]MH_I2C_Read... [00:25:52]Read from MH i2c: E2 FD 00 94 0B 00 EF 03 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 90 00 97 [00:25:52]RAPDU: EF 03 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 90 00 [00:25:52]wFMCommunicate OK [00:25:52]wFMCommunicate request_size=4 [00:25:52]MH_SAM_APDU [00:25:52]CAPDU: 80 17 00 00 [00:25:52]Write to MH i2c: E2 08 00 95 0B 80 17 00 00 00 00 00 00 20 [00:25:52]Write i2c OK [00:25:52]MH_I2C_Read... [00:25:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:25:52]Read from MH i2c: E2 [00:25:52]MH_I2C_Read... [00:25:52]Read from MH i2c: E2 D6 00 [00:25:52]MH_I2C_Read... [00:25:52]Read from MH i2c: E2 D6 00 95 0B 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 02 [00:25:52]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 OFD Sender: No OFD packet to send [00:25:52]EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:52]wFMCommunicate OK [00:25:52]SAM_PROTO_GetShiftData done [00:25:52]1194 (1205) - Ñчетчики итогов Ñмены [00:25:52] 1134 (4) - 81 - количеÑтво чеков Ñо вÑеми признаками раÑчетов [00:25:52] 1129 (155) - Ñчетчики операций «приход» [00:25:52] 1135 (4) - 76 - количеÑтво чеков по признаку раÑчетов [00:25:52] 1201 (3) - 57751.24 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [00:25:52] 1136 (3) - 19947.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [00:25:52] 1138 (3) - 37804.24 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [00:25:52] 1024 (122) - Ñуммы налогов [00:25:52] 1006 (9) - Ñуммы ÐДС [00:25:52] 1010 (1) - 0% - код Ñтавки ÐДС [00:25:52] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:25:52] 1006 (12) - Ñуммы ÐДС [00:25:52] 1010 (1) - 12% - код Ñтавки ÐДС [00:25:52] 1011 (3) - 6133.39 - Ñумма ÐДС по Ñтавке [00:25:52] 1007 (9) - Ñуммы ÐСП [00:25:52] 1014 (1) - 0% - код Ñтавки ÐСП [00:25:52] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:52] 1007 (11) - Ñуммы ÐСП [00:25:52] 1014 (1) - 1% - код Ñтавки ÐСП [00:25:52] 1015 (2) - 511.13 - Ñумма ÐСП по Ñтавке [00:25:52] 1007 (9) - Ñуммы ÐСП [00:25:52] 1014 (1) - 2% - код Ñтавки ÐСП [00:25:52] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:52] 1007 (9) - Ñуммы ÐСП [00:25:52] 1014 (1) - 3% - код Ñтавки ÐСП [00:25:52] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:52] 1007 (9) - Ñуммы ÐСП [00:25:52] 1014 (1) - 5% - код Ñтавки ÐСП [00:25:52] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:52] 1007 (9) - Ñуммы ÐСП [00:25:52] 1014 (1) - 0,50% - код Ñтавки ÐСП [00:25:52] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:52] 1007 (9) - Ñуммы ÐСП [00:25:52] 1014 (1) - 1,50% - код Ñтавки ÐСП [00:25:52] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:52] 1130 (152) - Ñчетчики операций «возврат прихода» [00:25:52] 1135 (4) - 5 - количеÑтво чеков по признаку раÑчетов [00:25:52] 1201 (3) - 7936.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [00:25:52] 1136 (3) - 7936.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [00:25:52] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [00:25:52] 1024 (122) - Ñуммы налогов [00:25:52] 1006 (9) - Ñуммы ÐДС [00:25:52] 1010 (1) - 0% - код Ñтавки ÐДС [00:25:52] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:25:52] 1006 (12) - Ñуммы ÐДС [00:25:52] 1010 (1) - 12% - код Ñтавки ÐДС [00:25:52] 1011 (3) - 842.89 - Ñумма ÐДС по Ñтавке [00:25:52] 1007 (9) - Ñуммы ÐСП [00:25:52] 1014 (1) - 0% - код Ñтавки ÐСП [00:25:52] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:52] 1007 (11) - Ñуммы ÐСП [00:25:52] 1014 (1) - 1% - код Ñтавки ÐСП [00:25:52] 1015 (2) - 70.24 - Ñумма ÐСП по Ñтавке [00:25:52] 1007 (9) - Ñуммы ÐСП [00:25:52] 1014 (1) - 2% - код Ñтавки ÐСП [00:25:52] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:52] 1007 (9) - Ñуммы ÐСП [00:25:52] 1014 (1) - 3% - код Ñтавки ÐСП [00:25:52] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:52] 1007 (9) - Ñуммы ÐСП [00:25:52] 1014 (1) - 5% - код Ñтавки ÐСП [00:25:52] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:52] 1007 (9) - Ñуммы ÐСП [00:25:52] 1014 (1) - 0,50% - код Ñтавки ÐСП [00:25:52] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:53] 1007 (9) - Ñуммы ÐСП [00:25:53] 1014 (1) - 1,50% - код Ñтавки ÐСП [00:25:53] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:53] 1131 (141) - Ñчетчики операций «раÑход» [00:25:53] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [00:25:53] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [00:25:53] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [00:25:53] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [00:25:53] 1024 (117) - Ñуммы налогов [00:25:53] 1006 (9) - Ñуммы ÐДС [00:25:53] 1010 (1) - 0% - код Ñтавки ÐДС [00:25:53] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:25:53] 1006 (9) - Ñуммы ÐДС [00:25:53] 1010 (1) - 12% - код Ñтавки ÐДС [00:25:53] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:25:53] 1007 (9) - Ñуммы ÐСП [00:25:53] 1014 (1) - 0% - код Ñтавки ÐСП [00:25:53] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:53] 1007 (9) - Ñуммы ÐСП [00:25:53] 1014 (1) - 1% - код Ñтавки ÐСП [00:25:53] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:53] 1007 (9) - Ñуммы ÐСП [00:25:53] 1014 (1) - 2% - код Ñтавки ÐСП [00:25:53] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:53] 1007 (9) - Ñуммы ÐСП [00:25:53] 1014 (1) - 3% - код Ñтавки ÐСП [00:25:53] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:53] 1007 (9) - Ñуммы ÐСП [00:25:53] 1014 (1) - 5% - код Ñтавки ÐСП [00:25:53] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:53] 1007 (9) - Ñуммы ÐСП [00:25:53] 1014 (1) - 0,50% - код Ñтавки ÐСП [00:25:53] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:53] 1007 (9) - Ñуммы ÐСП [00:25:53] 1014 (1) - 1,50% - код Ñтавки ÐСП [00:25:53] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:53] 1132 (141) - Ñчетчики операций «возврат раÑхода» [00:25:53] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [00:25:53] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [00:25:53] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [00:25:53] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [00:25:53] 1024 (117) - Ñуммы налогов [00:25:53] 1006 (9) - Ñуммы ÐДС [00:25:53] 1010 (1) - 0% - код Ñтавки ÐДС [00:25:53] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:25:53] 1006 (9) - Ñуммы ÐДС [00:25:53] 1010 (1) - 12% - код Ñтавки ÐДС [00:25:53] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:25:53] 1007 (9) - Ñуммы ÐСП [00:25:53] 1014 (1) - 0% - код Ñтавки ÐСП [00:25:53] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:53] 1007 (9) - Ñуммы ÐСП [00:25:53] 1014 (1) - 1% - код Ñтавки ÐСП [00:25:53] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:53] 1007 (9) - Ñуммы ÐСП [00:25:53] 1014 (1) - 2% - код Ñтавки ÐСП [00:25:53] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:53] 1007 (9) - Ñуммы ÐСП [00:25:53] 1014 (1) - 3% - код Ñтавки ÐСП [00:25:53] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:53] 1007 (9) - Ñуммы ÐСП [00:25:53] 1014 (1) - 5% - код Ñтавки ÐСП [00:25:53] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:53] 1007 (9) - Ñуммы ÐСП [00:25:53] 1014 (1) - 0,50% - код Ñтавки ÐСП [00:25:53] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:53] 1007 (9) - Ñуммы ÐСП [00:25:53] 1014 (1) - 1,50% - код Ñтавки ÐСП [00:25:53] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:25:53] 1133 (588) - - Ñчетчики коррекции - не иÑпользуютÑÑ [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1194 (04AA) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1134 (046E) [00:25:53]Malloc new data [00:25:53]Processing tag 1129 (0469) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1135 (046F) [00:25:53]Malloc new data [00:25:53]Processing tag 1201 (04B1) [00:25:53]Malloc new data [00:25:53]Processing tag 1136 (0470) [00:25:53]Malloc new data [00:25:53]Processing tag 1138 (0472) [00:25:53]Malloc new data [00:25:53]Processing tag 1024 (0400) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1006 (03EE) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1010 (03F2) [00:25:53]Malloc new data [00:25:53]Processing tag 1011 (03F3) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1006 (03EE) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1010 (03F2) [00:25:53]Malloc new data [00:25:53]Processing tag 1011 (03F3) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]SetTLVBufToDocument err=0 [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1130 (046A) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1135 (046F) [00:25:53]Malloc new data [00:25:53]Processing tag 1201 (04B1) [00:25:53]Malloc new data [00:25:53]Processing tag 1136 (0470) [00:25:53]Malloc new data [00:25:53]Processing tag 1138 (0472) [00:25:53]Malloc new data [00:25:53]Processing tag 1024 (0400) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1006 (03EE) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1010 (03F2) [00:25:53]Malloc new data [00:25:53]Processing tag 1011 (03F3) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1006 (03EE) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1010 (03F2) [00:25:53]Malloc new data [00:25:53]Processing tag 1011 (03F3) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]SetTLVBufToDocument err=0 [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1131 (046B) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1135 (046F) [00:25:53]Malloc new data [00:25:53]Processing tag 1201 (04B1) [00:25:53]Malloc new data [00:25:53]Processing tag 1136 (0470) [00:25:53]Malloc new data [00:25:53]Processing tag 1138 (0472) [00:25:53]Malloc new data [00:25:53]Processing tag 1024 (0400) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1006 (03EE) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1010 (03F2) [00:25:53]Malloc new data [00:25:53]Processing tag 1011 (03F3) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1006 (03EE) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1010 (03F2) [00:25:53]Malloc new data [00:25:53]Processing tag 1011 (03F3) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]SetTLVBufToDocument err=0 [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1132 (046C) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1135 (046F) [00:25:53]Malloc new data [00:25:53]Processing tag 1201 (04B1) [00:25:53]Malloc new data [00:25:53]Processing tag 1136 (0470) [00:25:53]Malloc new data [00:25:53]Processing tag 1138 (0472) [00:25:53]Malloc new data [00:25:53]Processing tag 1024 (0400) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1006 (03EE) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1010 (03F2) [00:25:53]Malloc new data [00:25:53]Processing tag 1011 (03F3) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1006 (03EE) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1010 (03F2) [00:25:53]Malloc new data [00:25:53]Processing tag 1011 (03F3) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1007 (03EF) [00:25:53]Load OK [00:25:53]SetTLVBufToDocument [00:25:53]Processing tag 1014 (03F6) [00:25:53]Malloc new data [00:25:53]Processing tag 1015 (03F7) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]SetTLVBufToDocument err=0 [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Processing tag 1133 (046D) [00:25:53]Malloc new data [00:25:53]SetTLVBufToDocument err=0 [00:25:53]SetTLVBufToDocument err=0 [00:25:53]Malloc new data [00:25:53]SAM_PROTO_GetFMData [00:25:53]wFMCommunicate request_size=4 [00:25:53]MH_SAM_APDU [00:25:53]CAPDU: 80 13 03 00 [00:25:53]Write to MH i2c: E2 08 00 96 0B 80 13 03 00 00 00 00 00 20 [00:25:53]Write i2c OK [00:25:53]MH_I2C_Read... [00:25:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:54]Read from MH i2c: E2 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 FD 00 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 FD 00 96 0B 00 C8 04 85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 90 00 4A [00:25:54]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 90 00 [00:25:54]wFMCommunicate OK [00:25:54]wFMCommunicate request_size=4 [00:25:54]MH_SAM_APDU [00:25:54]CAPDU: 80 17 00 00 [00:25:54]Write to MH i2c: E2 08 00 97 0B 80 17 00 00 00 00 00 00 22 [00:25:54]Write i2c OK [00:25:54]MH_I2C_Read... [00:25:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:54]Read from MH i2c: E2 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 FD 00 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 FD 00 97 0B 00 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 2D [00:25:55]RAPDU: 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 [00:25:55]wFMCommunicate OK [00:25:55]wFMCommunicate request_size=4 [00:25:55]MH_SAM_APDU [00:25:55]CAPDU: 80 17 00 00 [00:25:55]Write to MH i2c: E2 08 00 98 0B 80 17 00 00 00 00 00 00 23 [00:25:55]Write i2c OK [00:25:55]MH_I2C_Read... [00:25:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:55]Read from MH i2c: E2 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 FD 00 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 FD 00 98 0B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 FB [00:25:55]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 [00:25:55]wFMCommunicate OK [00:25:55]wFMCommunicate request_size=4 [00:25:55]MH_SAM_APDU [00:25:55]CAPDU: 80 17 00 00 [00:25:55]Write to MH i2c: E2 08 00 99 0B 80 17 00 00 00 00 00 00 24 [00:25:55]Write i2c OK [00:25:55]MH_I2C_Read... [00:25:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:55]Read from MH i2c: E2 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 FD 00 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 FD 00 99 0B 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 9C [00:25: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 [00:25:56]wFMCommunicate OK [00:25:56]wFMCommunicate request_size=4 [00:25:56]MH_SAM_APDU [00:25:56]CAPDU: 80 17 00 00 [00:25:56]Write to MH i2c: E2 08 00 9A 0B 80 17 00 00 00 00 00 00 25 [00:25:56]Write i2c OK [00:25:56]MH_I2C_Read... [00:25:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:25:56]Read from MH i2c: E2 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 E5 00 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 E5 00 9A 0B 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 09 [00:25: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 [00:25:56]wFMCommunicate OK [00:25:56]SAM_PROTO_GetFMData done [00:25:56]FM_GetFMData:85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:25:57]oper:6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:25:57]total:6A 8B D6 C9 01 [00:25:57]Malloc new data [00:25:57]oper:6F 04 04 00 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 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 B5 2C 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 [00:25:57]total:E0 FA 60 14 [00:25:57]Malloc new data [00:25:57]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:25:57]total: [00:25:57]Malloc new data [00:25:57]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:25:57]total: [00:25:57]Malloc new data [00:25:57]KKMPrepareXReportFMData err=0 [00:25:57]Ð¥ отчет ИÐÐ: 02508201610067 КаÑÑир: ОваÑбекова Л. 14.08.2024 00:25 Смена: 266 РÐМ: 0000000000090913 ЗÐМ: 0300000140 СÐО: Общий режим Ð’Ñего чеков: 81 ИТОГИ ПРИХОД Чеков: 76 Общий итог: 57751.24 Итого наличными: 19947.00 Итого безнал.: 37804.24 ÐДС 0% : 0.00 ÐДС 12% : 6133.39 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 511.13 ИТОГИ ВОЗВРÐТ ПРИХОДРЧеков: 5 Общий итог: 7936.00 Итого наличными: 7936.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 842.89 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 70.24 ИТОГИ РÐСХОД Чеков: 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 Ðал. в каÑÑе: 12011.00 ÐС Приход: 76812481.06 ÐС Возвр.Прихода: 3419000.00 ÐС РаÑход: 0.00 ÐС Возвр.РаÑхода: 0.00 ФМ: 0000000000874915 [00:25:57]StoreToDocumentArchive [00:25:57]MH_GetDate [00:25:57]Write to MH i2c: F0 00 00 9B 0B 95 [00:25:57]Write i2c OK [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: F0 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: F0 09 00 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: F0 09 00 9B 0B 00 97 F9 BB 66 94 51 63 64 FB [00:25:57]shift 266 fd 1723595159 [00:25:57]Create dir for shift 0266 [00:25:57]save to /storage/0266/doc_1723595159 [00:25:57]save last doc name /storage/0266/doc_1723595159 to /storage/kkm_last_doc_name [00:25:57]save OK [00:25:57]Clear old archive folders... [00:25:57]NVStorageSaveData kkm_last_timestamp [00:25:57]File name is /storage/kkm_last_timestamp [00:25:57]Write 4 bytes [00:25:57]NVStorageSaveData done [00:25:57]ExternCall_PrintAddStr [00:25:57]wPrintStart [00:25:57]Write to MH i2c: 01 00 00 9C 0B A7 [00:25:57]Write i2c OK [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: 01 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: 01 07 00 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: 01 07 00 9C 0B 00 00 00 00 00 FF 0F BC [00:25:57]RasterBufferAndPrint [00:25:57]line Ð¥ отчет [00:25:57]line ИÐÐ: 02508201610067 [00:25:57]line КаÑÑир: ОваÑбекова Л. [00:25:57]line 14.08.2024 00:25 [00:25:57]line Смена: 266 [00:25:57]line РÐМ: 0000000000090913 [00:25:57]line ЗÐМ: 0300000140 [00:25:57]line СÐО: Общий режим [00:25:57]line Ð’Ñего чеков: 81 [00:25:57]line ИТОГИ ПРИХОД [00:25:57]line Чеков: 76 [00:25:57]line Общий итог: 57751.24 [00:25:57]line Итого наличными: 19947.00 [00:25:57]line Итого безнал.: 37804.24 [00:25:57]line ÐДС 0% : 0.00 [00:25:57]line ÐДС 12% : 6133.39 [00:25:57]line ÐСП 0% : 0.00 [00:25:57]line ÐСП 1,50% : 0.00 [00:25:57]line ÐСП 0,50% : 0.00 [00:25:57]line ÐСП 5% : 0.00 [00:25:57]line ÐСП 3% : 0.00 [00:25:57]line ÐСП 2% : 0.00 [00:25:57]line ÐСП 1% : 511.13 [00:25:57]line ИТОГИ ВОЗВРÐТ ПРИХОДР[00:25:57]line Чеков: 5 [00:25:57]line Общий итог: 7936.00 [00:25:57]line Итого наличными: 7936.00 [00:25:57]line Итого безнал.: 0.00 [00:25:57]line ÐДС 0% : 0.00 [00:25:57]line ÐДС 12% : 842.89 [00:25:57]line ÐСП 0% : 0.00 [00:25:57]line ÐСП 1,50% : 0.00 [00:25:57]line ÐСП 0,50% : 0.00 [00:25:57]line ÐСП 5% : 0.00 [00:25:57]line ÐСП 3% : 0.00 [00:25:57]line ÐСП 2% : 0.00 [00:25:57]line ÐСП 1% : 70.24 [00:25:57]line ИТОГИ РÐСХОД [00:25:57]line Чеков: 0 [00:25:57]line Общий итог: 0.00 [00:25:57]line Итого наличными: 0.00 [00:25:57]line Итого безнал.: 0.00 [00:25:57]line ÐДС 0% : 0.00 [00:25:57]line ÐДС 12% : 0.00 [00:25:57]line ÐСП 0% : 0.00 [00:25:57]line ÐСП 1,50% : 0.00 [00:25:57]line ÐСП 0,50% : 0.00 [00:25:57]line ÐСП 5% : 0.00 [00:25:57]line ÐСП 3% : 0.00 [00:25:57]line ÐСП 2% : 0.00 [00:25:57]line ÐСП 1% : 0.00 [00:25:57]line ИТОГИ ВОЗВРÐТ РÐСХОДР[00:25:57]line Чеков: 0 [00:25:57]line Общий итог: 0.00 [00:25:57]line Итого наличными: 0.00 [00:25:57]line Итого безнал.: 0.00 [00:25:57]line ÐДС 0% : 0.00 [00:25:57]line ÐДС 12% : 0.00 [00:25:57]line ÐСП 0% : 0.00 [00:25:57]line ÐСП 1,50% : 0.00 [00:25:57]line ÐСП 0,50% : 0.00 [00:25:57]line ÐСП 5% : 0.00 [00:25:57]line ÐСП 3% : 0.00 [00:25:57]line ÐСП 2% : 0.00 [00:25:57]line ÐСП 1% : 0.00 [00:25:57]line Сумма внеÑений: 0.00 [00:25:57]line Сумма выплат: 0.00 [00:25:57]line Ðал. в каÑÑе: 12011.00 [00:25:57]line ÐС Приход: 76812481.06 [00:25:57]line ÐС Возвр.Прихода: 3419000.00 [00:25:57]line ÐС РаÑход: 0.00 [00:25:57]line ÐС Возвр.РаÑхода: 0.00 [00:25:57]line ФМ: 0000000000874915 [00:25:57]OFD Sender: No OFD packet to send [00:25:57]written 0, free lines is 4095 [00:25:58]Write to MH i2c: 01 00 00 E7 0B F2 [00:25:58]Write i2c OK [00:25:58]MH_I2C_Read... [00:25:58]Read from MH i2c: 01 [00:25:58]MH_I2C_Read... [00:25:58]Read from MH i2c: 01 07 00 [00:25:58]MH_I2C_Read... [00:25:58]Read from MH i2c: 01 07 00 E7 0B 00 00 00 00 00 EC 0A EF [00:25:58]RasterBufferAndPrint [00:25:58]line [00:25:58]line [00:25:58]line [00:25:58]line [00:25:58]line [00:25:58]written 0, free lines is 2832 [00:25:58]MH_Cut [00:25:58]Write to MH i2c: D1 01 00 EE 0B 01 CB [00:25:58]Write i2c OK [00:25:58]MH_I2C_Read... [00:25:58]Read from MH i2c: D1 [00:25:58]MH_I2C_Read... [00:25:58]Read from MH i2c: D1 01 00 [00:25:58]MH_I2C_Read... [00:25:58]Read from MH i2c: D1 01 00 EE 0B 00 CA [00:25:58]Write to MH i2c: 01 00 00 EF 0B FA [00:25:58]Write i2c OK [00:25:58]MH_I2C_Read... [00:25:59]*** Cut start [00:25:59]*** Purtial cut [00:25:59]*** Stage 1: CUTSNS_PIN = 1 [00:25:59]Read from MH i2c: 01 [00:25:59]MH_I2C_Read... [00:25:59]*** Stop cut motor [00:25:59]*** Cut end [00:25:59]Read from MH i2c: 01 07 00 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: 01 07 00 EF 0B 00 00 00 00 00 FF 0F 0F [00:25:59]process_action x_report done [00:25:59]requested_data is exist [00:25:59]produce_requested_data [00:25:59]requested_item fd.num is exist - process it [00:25:59]SAM_PROTO_GetFieldsCounters [00:25:59]wFMCommunicate request_size=4 [00:25:59]MH_SAM_APDU [00:25:59]CAPDU: 80 13 00 00 [00:25:59]Write to MH i2c: E2 08 00 F0 0B 80 13 00 00 00 00 00 00 77 [00:25:59]Write i2c OK [00:25:59]MH_I2C_Read... [00:26:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:00]Read from MH i2c: E2 [00:26:00]MH_I2C_Read... [00:26:00]Read from MH i2c: E2 62 00 [00:26:00]MH_I2C_Read... [00:26:00]Read from MH i2c: E2 62 00 F0 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 47 14 01 00 0E 04 04 00 D2 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 B9 [00:26: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 47 14 01 00 0E 04 04 00 D2 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 [00:26:00]wFMCommunicate OK [00:26:00]SAM_PROTO_GetFieldsCounters done [00:26:00]requested_item shift.num is exist - process it [00:26:00]requested_item shift.opened is exist - process it [00:26:00]req_shift_opened [00:26:00]FM_GetShiftState [00:26:00]SAM_PROTO_GetShiftState [00:26:00]wFMCommunicate request_size=4 [00:26:00]MH_SAM_APDU [00:26:00]CAPDU: 80 13 01 00 [00:26:00]Write to MH i2c: E2 08 00 F1 0B 80 13 01 00 00 00 00 00 79 [00:26:00]Write i2c OK [00:26:00]MH_I2C_Read... [00:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:00]Read from MH i2c: E2 [00:26:00]MH_I2C_Read... [00:26:00]Read from MH i2c: E2 0E 00 [00:26:00]MH_I2C_Read... [00:26:00]Read from MH i2c: E2 0E 00 F1 0B 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 E8 [00:26:00]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [00:26:00]wFMCommunicate OK [00:26:00]SAM_PROTO_GetShiftState done [00:26:00]FM_GetShiftState done [00:26:00]req_shift_opened done [00:26:00]requested_item shift.open_date is exist - process it [00:26:00]req_shift_open_date [00:26:00]req_shift_open_date done [00:26:00]produce_requested_data done [00:26:00]produce_requested_data return {"fd.num":70727,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [00:26:00]process_action_free x_report [00:26:00]json_value_free [00:26:00]json_value_free done [00:26:00]process_json_proto returns [00:26:00]Send response to host [00:26:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":70727,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [00:26:00]free response buf [00:26:00]execute_script done [00:26:00]execute_script returns [00:26:00]free content buf [00:26:00]Sock 7.Close socket [00:26:00]Sock 7.Thread stoped [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:08]accept exits with 9 [00:26:08]New connection [00:26:08]New thread 3067448676 created [00:26:08]Thread 3067305316 joined [00:26:08]Waiting for new connection... [00:26:08] Sock 9.Parse request [00:26:08]Sock 9.Check first char [00:26:08]Sock 9.First char is OK [00:26:08]request: POST /json_proto HTTP/1.0 [00:26:08]Method: POST [00:26:08]URL: /json_proto [00:26:08]Method is POST - this is cgi request [00:26:08]url: /json_proto [00:26:08]query_string will be loaded in cgi processing [00:26:08]execute_cgi json_proto POST (null) [00:26:08]execute_cgi path=json_proto method=POST [00:26:08]POST find Content-Length [00:26:08]Host: 172.17.58.67:8080 [00:26:08]Content-Length: 215 [00:26:08]Content-Type: application/json [00:26:08] [00:26:08]POST finish read [00:26:08]Found Content-Length = 215 [00:26:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:08]execute_script... [00:26:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:08]POST & json_proto [00:26:08]process_json_proto [00:26:08]json parsed OK: [00:26:08]protocol is kg_v1.0 [00:26:08]action value=get_value [00:26:08]process_action get_value [00:26:08]cmd_get_value [00:26:08]process_action get_value done [00:26:08]requested_data is exist [00:26:08]produce_requested_data [00:26:08]requested_item kkm.sn is exist - process it [00:26:08]requested_item kkm.ver is exist - process it [00:26:08]requested_item fm.sn is exist - process it [00:26:08]wFMCommunicate request_size=4 [00:26:08]MH_SAM_APDU [00:26:08]CAPDU: 80 11 00 00 [00:26:08]Write to MH i2c: E2 08 00 F2 0B 80 11 00 00 00 00 00 00 77 [00:26:08]Write i2c OK [00:26:08]MH_I2C_Read... [00:26:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:08]Read from MH i2c: E2 [00:26:08]MH_I2C_Read... [00:26:08]Read from MH i2c: E2 17 00 [00:26:08]MH_I2C_Read... [00:26:08]Read from MH i2c: E2 17 00 F2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 CC [00:26:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:26:08]wFMCommunicate OK [00:26:08]requested_item fd.num is exist - process it [00:26:08]SAM_PROTO_GetFieldsCounters [00:26:08]wFMCommunicate request_size=4 [00:26:08]MH_SAM_APDU [00:26:08]CAPDU: 80 13 00 00 [00:26:08]Write to MH i2c: E2 08 00 F3 0B 80 13 00 00 00 00 00 00 7A [00:26:08]Write i2c OK [00:26:08]MH_I2C_Read... [00:26:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:08]Read from MH i2c: E2 [00:26:08]MH_I2C_Read... [00:26:08]Read from MH i2c: E2 62 00 [00:26:08]MH_I2C_Read... [00:26:08]Read from MH i2c: E2 62 00 F3 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 47 14 01 00 0E 04 04 00 D2 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 BC [00:26:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 47 14 01 00 0E 04 04 00 D2 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 [00:26:08]wFMCommunicate OK [00:26:08]SAM_PROTO_GetFieldsCounters done [00:26:08]requested_item shift.num is exist - process it [00:26:08]requested_item shift.opened is exist - process it [00:26:08]req_shift_opened [00:26:08]FM_GetShiftState [00:26:08]SAM_PROTO_GetShiftState [00:26:08]wFMCommunicate request_size=4 [00:26:08]MH_SAM_APDU [00:26:08]CAPDU: 80 13 01 00 [00:26:08]Write to MH i2c: E2 08 00 F4 0B 80 13 01 00 00 00 00 00 7C [00:26:08]Write i2c OK [00:26:08]MH_I2C_Read... [00:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:09]Read from MH i2c: E2 [00:26:09]MH_I2C_Read... [00:26:09]Read from MH i2c: E2 0E 00 [00:26:09]MH_I2C_Read... [00:26:09]Read from MH i2c: E2 0E 00 F4 0B 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 EB [00:26:09]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [00:26:09]wFMCommunicate OK [00:26:09]SAM_PROTO_GetShiftState done [00:26:09]FM_GetShiftState done [00:26:09]req_shift_opened done [00:26:09]requested_item shift.open_date is exist - process it [00:26:09]req_shift_open_date [00:26:09]req_shift_open_date done [00:26:09]produce_requested_data done [00:26:09]produce_requested_data return {"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70727,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [00:26:09]process_action_free get_value [00:26:09]json_value_free [00:26:09]json_value_free done [00:26:09]process_json_proto returns [00:26:09]Send response to host [00:26:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70727,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [00:26:09]free response buf [00:26:09]execute_script done [00:26:09]execute_script returns [00:26:09]free content buf [00:26:09]Sock 9.Close socket [00:26:09]Sock 9.Thread stoped [00:26:09]accept exits with 10 [00:26:09]New connection [00:26:09]New thread 3067305316 created [00:26:09]Thread 3067448676 joined [00:26:09]Waiting for new connection... [00:26:09] Sock 10.Parse request [00:26:09]Sock 10.Check first char [00:26:09]Sock 10.First char is OK [00:26:09]request: POST /json_proto HTTP/1.0 [00:26:09]Method: POST [00:26:09]URL: /json_proto [00:26:09]Method is POST - this is cgi request [00:26:09]url: /json_proto [00:26:09]query_string will be loaded in cgi processing [00:26:09]execute_cgi json_proto POST (null) [00:26:09]execute_cgi path=json_proto method=POST [00:26:09]POST find Content-Length [00:26:09]Host: 172.17.58.67:8080 [00:26:09]Content-Length: 331 [00:26:09]Content-Type: application/json [00:26:09] [00:26:09]POST finish read [00:26:09]Found Content-Length = 331 [00:26:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:09]execute_script... [00:26:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:09]POST & json_proto [00:26:09]process_json_proto [00:26:09]json parsed OK: [00:26:09]protocol is kg_v1.0 [00:26:09]action value=get_value [00:26:09]process_action get_value [00:26:09]cmd_get_value [00:26:09]process_action get_value done [00:26:09]requested_data is exist [00:26:09]produce_requested_data [00:26:09]requested_item fm.sale.total is exist - process it [00:26:09]SAM_PROTO_GetFMData [00:26:09]wFMCommunicate request_size=4 [00:26:09]MH_SAM_APDU [00:26:09]CAPDU: 80 13 03 00 [00:26:09]Write to MH i2c: E2 08 00 F5 0B 80 13 03 00 00 00 00 00 7F [00:26:09]Write i2c OK [00:26:09]MH_I2C_Read... [00:26:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:09]Read from MH i2c: E2 [00:26:09]MH_I2C_Read... [00:26:09]Read from MH i2c: E2 FD 00 [00:26:09]MH_I2C_Read... [00:26:09]Read from MH i2c: E2 FD 00 F5 0B 00 C8 04 85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 90 00 A9 [00:26:09]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 90 00 [00:26:09]wFMCommunicate OK [00:26:09]wFMCommunicate request_size=4 [00:26:09]MH_SAM_APDU [00:26:09]CAPDU: 80 17 00 00 [00:26:09]Write to MH i2c: E2 08 00 F6 0B 80 17 00 00 00 00 00 00 81 [00:26:09]Write i2c OK [00:26:09]MH_I2C_Read... [00:26:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:09]Read from MH i2c: E2 [00:26:09]MH_I2C_Read... [00:26:09]Read from MH i2c: E2 FD 00 [00:26:09]MH_I2C_Read... [00:26:10]Read from MH i2c: E2 FD 00 F6 0B 00 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 8C [00:26:10]RAPDU: 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 [00:26:10]wFMCommunicate OK [00:26:10]wFMCommunicate request_size=4 [00:26:10]MH_SAM_APDU [00:26:10]CAPDU: 80 17 00 00 [00:26:10]Write to MH i2c: E2 08 00 F7 0B 80 17 00 00 00 00 00 00 82 [00:26:10]Write i2c OK [00:26:10]MH_I2C_Read... [00:26:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:10]Read from MH i2c: E2 [00:26:10]MH_I2C_Read... [00:26:10]Read from MH i2c: E2 FD 00 [00:26:10]MH_I2C_Read... [00:26:10]Read from MH i2c: E2 FD 00 F7 0B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 5A [00:26:10]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 [00:26:10]wFMCommunicate OK [00:26:10]wFMCommunicate request_size=4 [00:26:10]MH_SAM_APDU [00:26:10]CAPDU: 80 17 00 00 [00:26:10]Write to MH i2c: E2 08 00 F8 0B 80 17 00 00 00 00 00 00 83 [00:26:10]Write i2c OK [00:26:10]MH_I2C_Read... [00:26:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:11]Read from MH i2c: E2 [00:26:11]MH_I2C_Read... [00:26:11]Read from MH i2c: E2 FD 00 [00:26:11]MH_I2C_Read... [00:26:11]Read from MH i2c: E2 FD 00 F8 0B 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 FB [00:26:11]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 [00:26:11]wFMCommunicate OK [00:26:11]wFMCommunicate request_size=4 [00:26:11]MH_SAM_APDU [00:26:11]CAPDU: 80 17 00 00 [00:26:11]Write to MH i2c: E2 08 00 F9 0B 80 17 00 00 00 00 00 00 84 [00:26:11]Write i2c OK [00:26:11]MH_I2C_Read... [00:26:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:26:11]Read from MH i2c: E2 [00:26:11]MH_I2C_Read... [00:26:11]Read from MH i2c: E2 E5 00 [00:26:11]MH_I2C_Read... [00:26:11]Read from MH i2c: E2 E5 00 F9 0B 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 68 [00:26:11]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 [00:26:11]wFMCommunicate OK [00:26:11]SAM_PROTO_GetFMData done [00:26:11]requested_item fm.sale_refund.total is exist - process it [00:26:11]requested_item fm.buy.total is exist - process it [00:26:11]requested_item shift.sale.total is exist - process it [00:26:11]SAM_PROTO_GetShiftData [00:26:11]wFMCommunicate request_size=4 [00:26:11]MH_SAM_APDU [00:26:11]CAPDU: 80 13 02 00 [00:26:11]Write to MH i2c: E2 08 00 FA 0B 80 13 02 00 00 00 00 00 83 [00:26:11]Write i2c OK [00:26:11]MH_I2C_Read... [00:26:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:26:12]Read from MH i2c: E2 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 FD 00 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 FD 00 FA 0B 00 B9 04 AA 04 B5 04 6E 04 04 00 51 00 00 00 69 04 9B 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 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 A9 C7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 05 00 00 00 B1 04 03 00 00 1C 0C 70 04 03 00 00 1C 0C 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 41 49 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 B8 [00:26:12]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 51 00 00 00 69 04 9B 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 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 A9 C7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 05 00 00 00 B1 04 03 00 00 1C 0C 70 04 03 00 00 1C 0C 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 41 49 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:26:12]wFMCommunicate OK [00:26:12]wFMCommunicate request_size=4 [00:26:12]MH_SAM_APDU [00:26:12]CAPDU: 80 17 00 00 [00:26:12]Write to MH i2c: E2 08 00 FB 0B 80 17 00 00 00 00 00 00 86 [00:26:12]Write i2c OK [00:26:12]MH_I2C_Read... [00:26:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:12]Read from MH i2c: E2 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 FD 00 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 FD 00 FB 0B 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 70 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 D0 [00:26:12]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 70 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 OFD Sender: No OFD packet to send [00:26:13]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 90 00 [00:26:13]wFMCommunicate OK [00:26:13]wFMCommunicate request_size=4 [00:26:13]MH_SAM_APDU [00:26:13]CAPDU: 80 17 00 00 [00:26:13]Write to MH i2c: E2 08 00 FC 0B 80 17 00 00 00 00 00 00 87 [00:26:13]Write i2c OK [00:26:13]MH_I2C_Read... [00:26:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:13]Read from MH i2c: E2 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 FD 00 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 FD 00 FC 0B 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 AF [00:26:13]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:26:13]wFMCommunicate OK [00:26:13]wFMCommunicate request_size=4 [00:26:13]MH_SAM_APDU [00:26:13]CAPDU: 80 17 00 00 [00:26:13]Write to MH i2c: E2 08 00 FD 0B 80 17 00 00 00 00 00 00 88 [00:26:13]Write i2c OK [00:26:13]MH_I2C_Read... [00:26:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:13]Read from MH i2c: E2 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 FD 00 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 FD 00 FD 0B 00 EF 03 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 90 00 00 [00:26:14]RAPDU: EF 03 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 90 00 [00:26:14]wFMCommunicate OK [00:26:14]wFMCommunicate request_size=4 [00:26:14]MH_SAM_APDU [00:26:14]CAPDU: 80 17 00 00 [00:26:14]Write to MH i2c: E2 08 00 FE 0B 80 17 00 00 00 00 00 00 89 [00:26:14]Write i2c OK [00:26:14]MH_I2C_Read... [00:26:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:26:14]Read from MH i2c: E2 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 D6 00 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 D6 00 FE 0B 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6B [00:26:14]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:26:14]wFMCommunicate OK [00:26:14]SAM_PROTO_GetShiftData done [00:26:14]requested_item shift.sale.total_cash is exist - process it [00:26:14]requested_item shift.sale_refund.total is exist - process it [00:26:14]requested_item shift.sale_refund.total_cash is exist - process it [00:26:14]requested_item shift.buy.total is exist - process it [00:26:14]requested_item shift.buy.total_cash is exist - process it [00:26:14]produce_requested_data done [00:26:14]produce_requested_data return {"fm.sale.total":76812481.06,"fm.sale_refund.total":3419000.00,"fm.buy.total":0.00,"shift.sale.total":57751.24,"shift.sale.total_cash":19947.00,"shift.sale_refund.total":7936.00,"shift.sale_refund.total_cash":7936.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:26:14]process_action_free get_value [00:26:14]json_value_free [00:26:14]json_value_free done [00:26:14]process_json_proto returns [00:26:14]Send response to host [00:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76812481.06,"fm.sale_refund.total":3419000.00,"fm.buy.total":0.00,"shift.sale.total":57751.24,"shift.sale.total_cash":19947.00,"shift.sale_refund.total":7936.00,"shift.sale_refund.total_cash":7936.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:26:14]free response buf [00:26:14]execute_script done [00:26:14]execute_script returns [00:26:14]free content buf [00:26:14]Sock 10.Close socket [00:26:14]Sock 10.Thread stoped [00:26:14]accept exits with 7 [00:26:14]New connection [00:26:14]New thread 3067448676 created [00:26:14]Thread 3067305316 joined [00:26:14]Waiting for new connection... [00:26:14] Sock 7.Parse request [00:26:14]Sock 7.Check first char [00:26:14]Sock 7.First char is OK [00:26:14]request: POST /json_proto HTTP/1.0 [00:26:14]Method: POST [00:26:14]URL: /json_proto [00:26:14]Method is POST - this is cgi request [00:26:14]url: /json_proto [00:26:14]query_string will be loaded in cgi processing [00:26:14]execute_cgi json_proto POST (null) [00:26:14]execute_cgi path=json_proto method=POST [00:26:14]POST find Content-Length [00:26:14]Host: 172.17.58.67:8080 [00:26:14]Content-Length: 331 [00:26:14]Content-Type: application/json [00:26:14] [00:26:14]POST finish read [00:26:14]Found Content-Length = 331 [00:26:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:14]execute_script... [00:26:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:14]POST & json_proto [00:26:14]process_json_proto [00:26:14]json parsed OK: [00:26:14]protocol is kg_v1.0 [00:26:14]action value=get_value [00:26:14]process_action get_value [00:26:14]cmd_get_value [00:26:14]process_action get_value done [00:26:14]requested_data is exist [00:26:14]produce_requested_data [00:26:14]requested_item fm.sale.total is exist - process it [00:26:14]SAM_PROTO_GetFMData [00:26:14]wFMCommunicate request_size=4 [00:26:14]MH_SAM_APDU [00:26:14]CAPDU: 80 13 03 00 [00:26:14]Write to MH i2c: E2 08 00 FF 0B 80 13 03 00 00 00 00 00 89 [00:26:14]Write i2c OK [00:26:14]MH_I2C_Read... [00:26:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:15]Read from MH i2c: E2 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 FD 00 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 FD 00 FF 0B 00 C8 04 85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 90 00 B3 [00:26:15]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 90 00 [00:26:15]wFMCommunicate OK [00:26:15]wFMCommunicate request_size=4 [00:26:15]MH_SAM_APDU [00:26:15]CAPDU: 80 17 00 00 [00:26:15]Write to MH i2c: E2 08 00 00 0C 80 17 00 00 00 00 00 00 8C [00:26:15]Write i2c OK [00:26:15]MH_I2C_Read... [00:26:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:15]Read from MH i2c: E2 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 FD 00 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 FD 00 00 0C 00 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 97 [00:26:15]RAPDU: 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 [00:26:16]wFMCommunicate OK [00:26:16]wFMCommunicate request_size=4 [00:26:16]MH_SAM_APDU [00:26:16]CAPDU: 80 17 00 00 [00:26:16]Write to MH i2c: E2 08 00 01 0C 80 17 00 00 00 00 00 00 8D [00:26:16]Write i2c OK [00:26:16]MH_I2C_Read... [00:26:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:16]Read from MH i2c: E2 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 FD 00 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 FD 00 01 0C 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 65 [00:26:16]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 [00:26:16]wFMCommunicate OK [00:26:16]wFMCommunicate request_size=4 [00:26:16]MH_SAM_APDU [00:26:16]CAPDU: 80 17 00 00 [00:26:16]Write to MH i2c: E2 08 00 02 0C 80 17 00 00 00 00 00 00 8E [00:26:16]Write i2c OK [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 [00:26:16]MH_I2C_Read... [00:26:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:16]Read from MH i2c: E2 FD 00 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 FD 00 02 0C 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 06 [00:26:17]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 [00:26:17]wFMCommunicate OK [00:26:17]wFMCommunicate request_size=4 [00:26:17]MH_SAM_APDU [00:26:17]CAPDU: 80 17 00 00 [00:26:17]Write to MH i2c: E2 08 00 03 0C 80 17 00 00 00 00 00 00 8F [00:26:17]Write i2c OK [00:26:17]MH_I2C_Read... [00:26:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:26:17]Read from MH i2c: E2 [00:26:17]MH_I2C_Read... [00:26:17]Read from MH i2c: E2 E5 00 [00:26:17]MH_I2C_Read... [00:26:17]Read from MH i2c: E2 E5 00 03 0C 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 73 [00:26:17]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 [00:26:17]wFMCommunicate OK [00:26:17]SAM_PROTO_GetFMData done [00:26:17]requested_item fm.sale_refund.total is exist - process it [00:26:17]requested_item fm.buy.total is exist - process it [00:26:17]requested_item shift.sale.total is exist - process it [00:26:17]SAM_PROTO_GetShiftData [00:26:17]wFMCommunicate request_size=4 [00:26:17]MH_SAM_APDU [00:26:17]CAPDU: 80 13 02 00 [00:26:17]Write to MH i2c: E2 08 00 04 0C 80 13 02 00 00 00 00 00 8E [00:26:17]Write i2c OK [00:26:17]MH_I2C_Read... [00:26:18]OFD Sender: No OFD packet to send [00:26:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:26:18]Read from MH i2c: E2 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 FD 00 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 FD 00 04 0C 00 B9 04 AA 04 B5 04 6E 04 04 00 51 00 00 00 69 04 9B 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 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 A9 C7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 05 00 00 00 B1 04 03 00 00 1C 0C 70 04 03 00 00 1C 0C 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 41 49 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 C3 [00:26:18]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 51 00 00 00 69 04 9B 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 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 A9 C7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 05 00 00 00 B1 04 03 00 00 1C 0C 70 04 03 00 00 1C 0C 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 41 49 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:26:18]wFMCommunicate OK [00:26:18]wFMCommunicate request_size=4 [00:26:18]MH_SAM_APDU [00:26:18]CAPDU: 80 17 00 00 [00:26:18]Write to MH i2c: E2 08 00 05 0C 80 17 00 00 00 00 00 00 91 [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:18]Read from MH i2c: E2 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 FD 00 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 FD 00 05 0C 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 70 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 DB [00:26:19]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 70 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [00:26:19]wFMCommunicate OK [00:26:19]wFMCommunicate request_size=4 [00:26:19]MH_SAM_APDU [00:26:19]CAPDU: 80 17 00 00 [00:26:19]Write to MH i2c: E2 08 00 06 0C 80 17 00 00 00 00 00 00 92 [00:26:19]Write i2c OK [00:26:19]MH_I2C_Read... [00:26:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:19]Read from MH i2c: E2 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 FD 00 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 FD 00 06 0C 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 BA [00:26:19]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:26:20]wFMCommunicate OK [00:26:20]wFMCommunicate request_size=4 [00:26:20]MH_SAM_APDU [00:26:20]CAPDU: 80 17 00 00 [00:26:20]Write to MH i2c: E2 08 00 07 0C 80 17 00 00 00 00 00 00 93 [00:26:20]Write i2c OK [00:26:20]MH_I2C_Read... [00:26:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:20]Read from MH i2c: E2 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 FD 00 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 FD 00 07 0C 00 EF 03 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 90 00 0B [00:26:20]RAPDU: EF 03 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 90 00 [00:26:20]wFMCommunicate OK [00:26:20]wFMCommunicate request_size=4 [00:26:20]MH_SAM_APDU [00:26:20]CAPDU: 80 17 00 00 [00:26:20]Write to MH i2c: E2 08 00 08 0C 80 17 00 00 00 00 00 00 94 [00:26:20]Write i2c OK [00:26:20]MH_I2C_Read... [00:26:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:26:20]Read from MH i2c: E2 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 D6 00 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 D6 00 08 0C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [00:26:21]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:26:21]wFMCommunicate OK [00:26:21]SAM_PROTO_GetShiftData done [00:26:21]requested_item shift.sale.total_cash is exist - process it [00:26:21]requested_item shift.sale_refund.total is exist - process it [00:26:21]requested_item shift.sale_refund.total_cash is exist - process it [00:26:21]requested_item shift.buy.total is exist - process it [00:26:21]requested_item shift.buy.total_cash is exist - process it [00:26:21]produce_requested_data done [00:26:21]produce_requested_data return {"fm.sale.total":76812481.06,"fm.sale_refund.total":3419000.00,"fm.buy.total":0.00,"shift.sale.total":57751.24,"shift.sale.total_cash":19947.00,"shift.sale_refund.total":7936.00,"shift.sale_refund.total_cash":7936.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:26:21]process_action_free get_value [00:26:21]json_value_free [00:26:21]json_value_free done [00:26:21]process_json_proto returns [00:26:21]Send response to host [00:26:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76812481.06,"fm.sale_refund.total":3419000.00,"fm.buy.total":0.00,"shift.sale.total":57751.24,"shift.sale.total_cash":19947.00,"shift.sale_refund.total":7936.00,"shift.sale_refund.total_cash":7936.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:26:21]free response buf [00:26:21]execute_script done [00:26:21]execute_script returns [00:26:21]free content buf [00:26:21]Sock 7.Close socket [00:26:21]Sock 7.Thread stoped [00:26:21]accept exits with 9 [00:26:21]New connection [00:26:21]New thread 3067305316 created [00:26:21]Thread 3067448676 joined [00:26:21]Waiting for new connection... [00:26:21] Sock 9.Parse request [00:26:21]Sock 9.Check first char [00:26:21]Sock 9.First char is OK [00:26:21]request: POST /json_proto HTTP/1.0 [00:26:21]Method: POST [00:26:21]URL: /json_proto [00:26:21]Method is POST - this is cgi request [00:26:21]url: /json_proto [00:26:21]query_string will be loaded in cgi processing [00:26:21]execute_cgi json_proto POST (null) [00:26:21]execute_cgi path=json_proto method=POST [00:26:21]POST find Content-Length [00:26:21]Host: 172.17.58.67:8080 [00:26:21]Content-Length: 272 [00:26:21]Content-Type: application/json [00:26:21] [00:26:21]POST finish read [00:26:21]Found Content-Length = 272 [00:26:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:21]execute_script... [00:26:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:21]POST & json_proto [00:26:21]process_json_proto [00:26:21]json parsed OK: [00:26:21]protocol is kg_v1.0 [00:26:21]action value=close_shift [00:26:21]process_action close_shift [00:26:21]cmd_close_shift [00:26:21]MH_GetDate [00:26:21]Write to MH i2c: F0 00 00 09 0C 04 [00:26:21]Write i2c OK [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: F0 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: F0 09 00 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: F0 09 00 09 0C 00 AF F9 BB 66 94 51 63 64 82 [00:26:21]GetLastDocTimeStamp 1723595151 [00:26:21]current date 1723595183 [00:26:21]FM_GetShiftState [00:26:21]SAM_PROTO_GetShiftState [00:26:21]wFMCommunicate request_size=4 [00:26:21]MH_SAM_APDU [00:26:21]CAPDU: 80 13 01 00 [00:26:21]Write to MH i2c: E2 08 00 0A 0C 80 13 01 00 00 00 00 00 93 [00:26:21]Write i2c OK [00:26:21]MH_I2C_Read... [00:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:21]Read from MH i2c: E2 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 0E 00 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 0E 00 0A 0C 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 02 [00:26:21]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [00:26:21]wFMCommunicate OK [00:26:21]SAM_PROTO_GetShiftState done [00:26:21]FM_GetShiftState done [00:26:21]KKMCreateCloseShiftDocument [00:26:21]Load OK [00:26:21]Malloc new data [00:26:21]MH_GetDate [00:26:21]Write to MH i2c: F0 00 00 0B 0C 06 [00:26:21]Write i2c OK [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: F0 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: F0 09 00 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: F0 09 00 0B 0C 00 AF F9 BB 66 94 51 63 64 84 [00:26:21]Malloc new data [00:26:21]Malloc new data [00:26:21]Malloc new data [00:26:21]Malloc new data [00:26:21]KKMCreateCloseShiftDocument OK [00:26:21]KKMSetCloseShiftData OK [00:26:21]ProcessDocumentItem done err = 0, tmpTLVsize=75 [00:26:21]tlvbuf is 007E7C50 [00:26:21]KKMLoadAndSignCloseShiftData [00:26:21]SAM_PROTO_ProcessDocument [00:26:21]wFMCommunicate request_size=9 [00:26:21]MH_SAM_APDU [00:26:21]CAPDU: 80 15 01 00 04 05 00 4B 00 [00:26:21]Write to MH i2c: E2 0C 00 0C 0C 80 15 01 00 04 00 05 00 4B 00 00 00 EF [00:26:21]Write i2c OK [00:26:21]MH_I2C_Read... [00:26:21]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:26:21]Read from MH i2c: E2 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 03 00 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 03 00 0C 0C 00 90 00 8C [00:26:21]RAPDU: 90 00 [00:26:21]wFMCommunicate OK [00:26:21]wFMCommunicate request_size=23 [00:26:21]MH_SAM_APDU [00:26:21]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:26:21]Write to MH i2c: E2 1A 00 0D 0C 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 8E [00:26:21]Write i2c OK [00:26:21]MH_I2C_Read... [00:26:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:21]Read from MH i2c: E2 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 03 00 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 03 00 0D 0C 00 90 00 8D [00:26:21]RAPDU: 90 00 [00:26:21]wFMCommunicate OK [00:26:21]wFMCommunicate request_size=34 [00:26:21]MH_SAM_APDU [00:26:21]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 9E D0 B2 D0 B0 D1 81 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 9B 2E 20 [00:26:21]Write to MH i2c: E2 25 00 0E 0C 80 15 02 00 1D 00 FD 03 19 00 D0 9E D0 B2 D0 B0 D1 81 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 9B 2E 20 00 00 A8 [00:26:21]Write i2c OK [00:26:21]MH_I2C_Read... [00:26:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:21]Read from MH i2c: E2 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 03 00 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 03 00 0E 0C 00 90 00 8E [00:26:21]RAPDU: 90 00 [00:26:21]wFMCommunicate OK [00:26:21]wFMCommunicate request_size=13 [00:26:21]MH_SAM_APDU [00:26:21]CAPDU: 80 15 02 00 08 F4 03 04 00 AF F9 BB 66 [00:26:21]Write to MH i2c: E2 10 00 0F 0C 80 15 02 00 08 00 F4 03 04 00 AF F9 BB 66 00 00 6F [00:26:21]Write i2c OK [00:26:21]MH_I2C_Read... [00:26:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:21]Read from MH i2c: E2 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 03 00 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 03 00 0F 0C 00 90 00 8F [00:26:21]RAPDU: 90 00 [00:26:21]wFMCommunicate OK [00:26:21]wFMCommunicate request_size=25 [00:26:21]MH_SAM_APDU [00:26:21]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 [00:26:21]Write to MH i2c: E2 1C 00 10 0C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 00 00 FB [00:26:21]Write i2c OK [00:26:21]MH_I2C_Read... [00:26:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:22]Read from MH i2c: E2 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 03 00 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 03 00 10 0C 00 90 00 90 [00:26:22]RAPDU: 90 00 [00:26:22]wFMCommunicate OK [00:26:22]wFMCommunicate request_size=4 [00:26:22]MH_SAM_APDU [00:26:22]CAPDU: 80 15 03 00 [00:26:22]Write to MH i2c: E2 08 00 11 0C 80 15 03 00 00 00 00 00 9E [00:26:22]Write i2c OK [00:26:22]MH_I2C_Read... [00:26:22]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:26:22]Read from MH i2c: E2 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 FD 00 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 FD 00 11 0C 00 FC 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 48 14 01 00 0E 04 04 00 D2 01 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 53 00 00 00 AA 04 B5 04 6E 04 04 00 51 00 00 00 69 04 9B 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 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 A9 C7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 05 00 00 00 B1 04 03 00 00 1C 0C 70 90 00 81 [00:26:22]RAPDU: FC 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 48 14 01 00 0E 04 04 00 D2 01 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 53 00 00 00 AA 04 B5 04 6E 04 04 00 51 00 00 00 69 04 9B 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 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 A9 C7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 05 00 00 00 B1 04 03 00 00 1C 0C 70 90 00 [00:26:22]wFMCommunicate OK [00:26:22]SAM_PROTO_ProcessDocument answer len = 1276 [00:26:22]SAM_PROTO_ProcessDocument remain to read = 1028 [00:26:22]wFMCommunicate request_size=4 [00:26:22]MH_SAM_APDU [00:26:22]CAPDU: 80 17 00 00 [00:26:22]Write to MH i2c: E2 08 00 12 0C 80 17 00 00 00 00 00 00 9E [00:26:22]Write i2c OK [00:26:22]MH_I2C_Read... [00:26:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:23]Read from MH i2c: E2 [00:26:23]MH_I2C_Read... [00:26:23]Read from MH i2c: E2 FD 00 [00:26:23]MH_I2C_Read... [00:26:23]Read from MH i2c: E2 FD 00 12 0C 00 04 03 00 00 1C 0C 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 41 49 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 70 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 OFD Sender: No OFD packet to send [00:26:23]F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 49 [00:26:23]RAPDU: 04 03 00 00 1C 0C 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 41 49 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 70 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:26:23]wFMCommunicate OK [00:26:23]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:26:23]SAM_PROTO_ProcessDocument remain to read = 778 [00:26:23]wFMCommunicate request_size=4 [00:26:23]MH_SAM_APDU [00:26:23]CAPDU: 80 17 00 00 [00:26:23]Write to MH i2c: E2 08 00 13 0C 80 17 00 00 00 00 00 00 9F [00:26:23]Write i2c OK [00:26:23]MH_I2C_Read... [00:26:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:23]Read from MH i2c: E2 [00:26:23]MH_I2C_Read... [00:26:23]Read from MH i2c: E2 FD 00 [00:26:23]MH_I2C_Read... [00:26:23]Read from MH i2c: E2 FD 00 13 0C 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 05 [00:26:24]RAPDU: 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [00:26:24]wFMCommunicate OK [00:26:24]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:26:24]SAM_PROTO_ProcessDocument remain to read = 528 [00:26:24]wFMCommunicate request_size=4 [00:26:24]MH_SAM_APDU [00:26:24]CAPDU: 80 17 00 00 [00:26:24]Write to MH i2c: E2 08 00 14 0C 80 17 00 00 00 00 00 00 A0 [00:26:24]Write i2c OK [00:26:24]MH_I2C_Read... [00:26:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:24]Read from MH i2c: E2 [00:26:24]MH_I2C_Read... [00:26:24]Read from MH i2c: E2 FD 00 [00:26:24]MH_I2C_Read... [00:26:24]Read from MH i2c: E2 FD 00 14 0C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B3 [00:26:24]RAPDU: 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:25]wFMCommunicate OK [00:26:25]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:26:25]SAM_PROTO_ProcessDocument remain to read = 278 [00:26:25]wFMCommunicate request_size=4 [00:26:25]MH_SAM_APDU [00:26:25]CAPDU: 80 17 00 00 [00:26:25]Write to MH i2c: E2 08 00 15 0C 80 17 00 00 00 00 00 00 A1 [00:26:25]Write i2c OK [00:26:25]MH_I2C_Read... [00:26:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:25]Read from MH i2c: E2 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: E2 FD 00 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: E2 FD 00 15 0C 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 DB [00:26:25]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:26:25]wFMCommunicate OK [00:26:25]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:26:25]SAM_PROTO_ProcessDocument remain to read = 28 [00:26:25]wFMCommunicate request_size=4 [00:26:25]MH_SAM_APDU [00:26:25]CAPDU: 80 17 00 00 [00:26:25]Write to MH i2c: E2 08 00 16 0C 80 17 00 00 00 00 00 00 A2 [00:26:25]Write i2c OK [00:26:25]MH_I2C_Read... [00:26:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 28! [00:26:25]Read from MH i2c: E2 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: E2 1F 00 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: E2 1F 00 16 0C 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 38 67 B6 7A 3E 43 90 00 35 [00:26:25]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 38 67 B6 7A 3E 43 90 00 [00:26:25]wFMCommunicate OK [00:26:25]SAM_PROTO_ProcessDocument received (without SW) 28 bytes [00:26:25]SAM_PROTO_ProcessDocument done [00:26:25]1209 (1) - 1.0 - номер верÑии ФФД [00:26:25]1041 (16) - 0000000000874915 - номер ФМ [00:26:25]1040 (4) - 70728 - номер ФД [00:26:25]1038 (4) - 466 - номер Ñмены [00:26:25]1118 (4) - 81 - количеÑтво каÑÑовых чеков за Ñмену [00:26:25]1111 (4) - 83 - общее количеÑтво ФД за Ñмену [00:26:25]1194 (1205) - Ñчетчики итогов Ñмены [00:26:25] 1134 (4) - 81 - количеÑтво чеков Ñо вÑеми признаками раÑчетов [00:26:25] 1129 (155) - Ñчетчики операций «приход» [00:26:25] 1135 (4) - 76 - количеÑтво чеков по признаку раÑчетов [00:26:25] 1201 (3) - 57751.24 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [00:26:25] 1136 (3) - 19947.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [00:26:25] 1138 (3) - 37804.24 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [00:26:25] 1024 (122) - Ñуммы налогов [00:26:25] 1006 (9) - Ñуммы ÐДС [00:26:25] 1010 (1) - 0% - код Ñтавки ÐДС [00:26:25] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:26:25] 1006 (12) - Ñуммы ÐДС [00:26:25] 1010 (1) - 12% - код Ñтавки ÐДС [00:26:26] 1011 (3) - 6133.39 - Ñумма ÐДС по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 0% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (11) - Ñуммы ÐСП [00:26:26] 1014 (1) - 1% - код Ñтавки ÐСП [00:26:26] 1015 (2) - 511.13 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 2% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 3% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 5% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 0,50% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 1,50% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1130 (152) - Ñчетчики операций «возврат прихода» [00:26:26] 1135 (4) - 5 - количеÑтво чеков по признаку раÑчетов [00:26:26] 1201 (3) - 7936.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [00:26:26] 1136 (3) - 7936.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [00:26:26] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [00:26:26] 1024 (122) - Ñуммы налогов [00:26:26] 1006 (9) - Ñуммы ÐДС [00:26:26] 1010 (1) - 0% - код Ñтавки ÐДС [00:26:26] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:26:26] 1006 (12) - Ñуммы ÐДС [00:26:26] 1010 (1) - 12% - код Ñтавки ÐДС [00:26:26] 1011 (3) - 842.89 - Ñумма ÐДС по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 0% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (11) - Ñуммы ÐСП [00:26:26] 1014 (1) - 1% - код Ñтавки ÐСП [00:26:26] 1015 (2) - 70.24 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 2% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 3% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 5% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 0,50% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 1,50% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1131 (141) - Ñчетчики операций «раÑход» [00:26:26] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [00:26:26] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [00:26:26] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [00:26:26] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [00:26:26] 1024 (117) - Ñуммы налогов [00:26:26] 1006 (9) - Ñуммы ÐДС [00:26:26] 1010 (1) - 0% - код Ñтавки ÐДС [00:26:26] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:26:26] 1006 (9) - Ñуммы ÐДС [00:26:26] 1010 (1) - 12% - код Ñтавки ÐДС [00:26:26] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 0% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 1% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 2% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 3% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 5% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 0,50% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 1,50% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1132 (141) - Ñчетчики операций «возврат раÑхода» [00:26:26] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [00:26:26] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [00:26:26] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [00:26:26] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [00:26:26] 1024 (117) - Ñуммы налогов [00:26:26] 1006 (9) - Ñуммы ÐДС [00:26:26] 1010 (1) - 0% - код Ñтавки ÐДС [00:26:26] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:26:26] 1006 (9) - Ñуммы ÐДС [00:26:26] 1010 (1) - 12% - код Ñтавки ÐДС [00:26:26] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 0% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 1% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 2% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 3% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 5% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 0,50% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1007 (9) - Ñуммы ÐСП [00:26:26] 1014 (1) - 1,50% - код Ñтавки ÐСП [00:26:26] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:26:26] 1133 (588) - - Ñчетчики коррекции - не иÑпользуютÑÑ [00:26:26]1077 (6) - 62018094251587 - ФПД [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1209 (04B9) [00:26:26]Malloc new data [00:26:26]Processing tag 1041 (0411) [00:26:26]Processing tag 1040 (0410) [00:26:26]Malloc new data [00:26:26]Processing tag 1038 (040E) [00:26:26]Malloc new data [00:26:26]Processing tag 1118 (045E) [00:26:26]Malloc new data [00:26:26]Processing tag 1111 (0457) [00:26:26]Malloc new data [00:26:26]Processing tag 1194 (04AA) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1134 (046E) [00:26:26]Malloc new data [00:26:26]Processing tag 1129 (0469) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1135 (046F) [00:26:26]Malloc new data [00:26:26]Processing tag 1201 (04B1) [00:26:26]Malloc new data [00:26:26]Processing tag 1136 (0470) [00:26:26]Malloc new data [00:26:26]Processing tag 1138 (0472) [00:26:26]Malloc new data [00:26:26]Processing tag 1024 (0400) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1006 (03EE) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1010 (03F2) [00:26:26]Malloc new data [00:26:26]Processing tag 1011 (03F3) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1006 (03EE) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1010 (03F2) [00:26:26]Malloc new data [00:26:26]Processing tag 1011 (03F3) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]SetTLVBufToDocument err=0 [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1130 (046A) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1135 (046F) [00:26:26]Malloc new data [00:26:26]Processing tag 1201 (04B1) [00:26:26]Malloc new data [00:26:26]Processing tag 1136 (0470) [00:26:26]Malloc new data [00:26:26]Processing tag 1138 (0472) [00:26:26]Malloc new data [00:26:26]Processing tag 1024 (0400) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1006 (03EE) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1010 (03F2) [00:26:26]Malloc new data [00:26:26]Processing tag 1011 (03F3) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1006 (03EE) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1010 (03F2) [00:26:26]Malloc new data [00:26:26]Processing tag 1011 (03F3) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]SetTLVBufToDocument err=0 [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1131 (046B) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1135 (046F) [00:26:26]Malloc new data [00:26:26]Processing tag 1201 (04B1) [00:26:26]Malloc new data [00:26:26]Processing tag 1136 (0470) [00:26:26]Malloc new data [00:26:26]Processing tag 1138 (0472) [00:26:26]Malloc new data [00:26:26]Processing tag 1024 (0400) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1006 (03EE) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1010 (03F2) [00:26:26]Malloc new data [00:26:26]Processing tag 1011 (03F3) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1006 (03EE) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1010 (03F2) [00:26:26]Malloc new data [00:26:26]Processing tag 1011 (03F3) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]SetTLVBufToDocument err=0 [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1132 (046C) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1135 (046F) [00:26:26]Malloc new data [00:26:26]Processing tag 1201 (04B1) [00:26:26]Malloc new data [00:26:26]Processing tag 1136 (0470) [00:26:26]Malloc new data [00:26:26]Processing tag 1138 (0472) [00:26:26]Malloc new data [00:26:26]Processing tag 1024 (0400) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1006 (03EE) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1010 (03F2) [00:26:26]Malloc new data [00:26:26]Processing tag 1011 (03F3) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1006 (03EE) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1010 (03F2) [00:26:26]Malloc new data [00:26:26]Processing tag 1011 (03F3) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:26]SetTLVBufToDocument [00:26:26]Processing tag 1014 (03F6) [00:26:26]Malloc new data [00:26:26]Processing tag 1015 (03F7) [00:26:26]Malloc new data [00:26:26]SetTLVBufToDocument err=0 [00:26:26]Processing tag 1007 (03EF) [00:26:26]Load OK [00:26:27]SetTLVBufToDocument [00:26:27]Processing tag 1014 (03F6) [00:26:27]Malloc new data [00:26:27]Processing tag 1015 (03F7) [00:26:27]Malloc new data [00:26:27]SetTLVBufToDocument err=0 [00:26:27]Processing tag 1007 (03EF) [00:26:27]Load OK [00:26:27]SetTLVBufToDocument [00:26:27]Processing tag 1014 (03F6) [00:26:27]Malloc new data [00:26:27]Processing tag 1015 (03F7) [00:26:27]Malloc new data [00:26:27]SetTLVBufToDocument err=0 [00:26:27]SetTLVBufToDocument err=0 [00:26:27]SetTLVBufToDocument err=0 [00:26:27]Processing tag 1133 (046D) [00:26:27]Malloc new data [00:26:27]SetTLVBufToDocument err=0 [00:26:27]Processing tag 1077 (0435) [00:26:27]Malloc new data [00:26:27]SetTLVBufToDocument err=0 [00:26:27]Malloc new data [00:26:27]SAM_PROTO_GetFMData [00:26:27]wFMCommunicate request_size=4 [00:26:27]MH_SAM_APDU [00:26:27]CAPDU: 80 13 03 00 [00:26:27]Write to MH i2c: E2 08 00 17 0C 80 13 03 00 00 00 00 00 A2 [00:26:27]Write i2c OK [00:26:27]MH_I2C_Read... [00:26:27]Read from MH i2c: E2 [00:26:27]MH_I2C_Read... [00:26:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:27]Read from MH i2c: E2 FD 00 [00:26:27]MH_I2C_Read... [00:26:27]Read from MH i2c: E2 FD 00 17 0C 00 C8 04 85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 90 00 CC [00:26:27]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 90 00 [00:26:28]wFMCommunicate OK [00:26:28]wFMCommunicate request_size=4 [00:26:28]MH_SAM_APDU [00:26:28]CAPDU: 80 17 00 00 [00:26:28]Write to MH i2c: E2 08 00 18 0C 80 17 00 00 00 00 00 00 A4 [00:26:28]Write i2c OK [00:26:28]MH_I2C_Read... [00:26:28]OFD Sender: No OFD packet to send [00:26:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:28]Read from MH i2c: E2 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: E2 FD 00 [00:26:28]MH_I2C_Read... [00:26:28]Read from MH i2c: E2 FD 00 18 0C 00 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 AF [00:26:28]RAPDU: 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 [00:26:28]wFMCommunicate OK [00:26:28]wFMCommunicate request_size=4 [00:26:28]MH_SAM_APDU [00:26:28]CAPDU: 80 17 00 00 [00:26:28]Write to MH i2c: E2 08 00 19 0C 80 17 00 00 00 00 00 00 A5 [00:26:28]Write i2c OK [00:26:28]MH_I2C_Read... [00:26:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:29]Read from MH i2c: E2 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: E2 FD 00 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: E2 FD 00 19 0C 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [00:26:29]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 [00:26:29]wFMCommunicate OK [00:26:29]wFMCommunicate request_size=4 [00:26:29]MH_SAM_APDU [00:26:29]CAPDU: 80 17 00 00 [00:26:29]Write to MH i2c: E2 08 00 1A 0C 80 17 00 00 00 00 00 00 A6 [00:26:29]Write i2c OK [00:26:29]MH_I2C_Read... [00:26:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:29]Read from MH i2c: E2 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: E2 FD 00 [00:26:29]MH_I2C_Read... [00:26:29]Read from MH i2c: E2 FD 00 1A 0C 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 [00:26:30]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 [00:26:30]wFMCommunicate OK [00:26:30]wFMCommunicate request_size=4 [00:26:30]MH_SAM_APDU [00:26:30]CAPDU: 80 17 00 00 [00:26:30]Write to MH i2c: E2 08 00 1B 0C 80 17 00 00 00 00 00 00 A7 [00:26:30]Write i2c OK [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: *** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:26:30]E2 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: E2 E5 00 [00:26:30]MH_I2C_Read... [00:26:30]Read from MH i2c: E2 E5 00 1B 0C 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 [00:26:31]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 [00:26:31]wFMCommunicate OK [00:26:31]SAM_PROTO_GetFMData done [00:26:31]Malloc new data [00:26:31]Malloc new data [00:26:31]Malloc new data [00:26:31]Malloc new data [00:26:31]KKMLoadAndSignCloseShiftData err=0 [00:26:31]Отчет о закрытии Ñмены ФФД: 1.0 ИÐÐ: 02508201610067 КаÑÑир: ОваÑбекова Л. 14.08.2024 00:26 Смена: 466 РÐМ: 0000000000090913 ЗÐМ: 0300000140 СÐО: Общий режим Чеков за Ñмену: 81 ФД за Ñмену: 83 Ð’Ñего чеков: 81 ИТОГИ ПРИХОД Чеков: 76 Общий итог: 57751.24 Итого наличными: 19947.00 Итого безнал.: 37804.24 ÐДС 0% : 0.00 ÐДС 12% : 6133.39 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 511.13 ИТОГИ ВОЗВРÐТ ПРИХОДРЧеков: 5 Общий итог: 7936.00 Итого наличными: 7936.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 842.89 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 70.24 ИТОГИ РÐСХОД Чеков: 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 Ðал. в каÑÑе: 12011.00 ÐС Приход: 76812481.06 ÐС Возвр.Прихода: 3419000.00 ÐС РаÑход: 0.00 ÐС Возвр.РаÑхода: 0.00 ФД: 70728 ФМ: 0000000000874915 ФПД: 62018094251587 [00:26:31]StoreToDocumentArchive [00:26:31]shift 466 fd 70728 [00:26:31]save to /storage/0466/doc_00070728 [00:26:31]save last doc name /storage/0466/doc_00070728 to /storage/kkm_last_doc_name [00:26:31]save OK [00:26:31]Clear old archive folders... [00:26:31]Remove dir /storage/0266 [00:26:31]opendir ok [00:26:31]file . [00:26:31]file .. [00:26:31]file doc_1723595159 [00:26:31]remove file /storage/0266/doc_1723595159 [00:26:31]remove dir /storage/0266 [00:26:31]NVStorageSaveData kkm_registers [00:26:31]File name is /storage/kkm_registers [00:26:31]Write 24 bytes [00:26:31]NVStorageSaveData done [00:26:31]NVStorageSaveData kkm_registers [00:26:31]File name is /storage/kkm_registers [00:26:31]Write 24 bytes [00:26:31]NVStorageSaveData done [00:26:31]ProcessDocumentItem done err = 0, tmpTLVsize=1390 [00:26:31]tlvbuf is 0077A480 [00:26:31]SAM_PROTO_ClearQueue [00:26:31]wFMCommunicate request_size=4 [00:26:31]MH_SAM_APDU [00:26:31]CAPDU: 80 09 00 00 [00:26:31]Write to MH i2c: E2 08 00 1C 0C 80 09 00 00 00 00 00 00 9A [00:26:31]Write i2c OK [00:26:31]MH_I2C_Read... [00:26:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:26:31]Read from MH i2c: E2 [00:26:31]MH_I2C_Read... [00:26:31]Read from MH i2c: E2 03 00 [00:26:31]MH_I2C_Read... [00:26:31]Read from MH i2c: E2 03 00 1C 0C 00 90 00 9C [00:26:31]RAPDU: 90 00 [00:26:31]wFMCommunicate OK [00:26:31]SAM_PROTO_ClearQueue done [00:26:31]KKMCreateOFDPacket [00:26:31]OFDProtocolAddRootSTLVToBuf [00:26:31]FM_MakeSignedData [00:26:31]FM_MakeSignedData [00:26:31]SAM_PROTO_SignData [00:26:31]wFMCommunicate request_size=4 [00:26:31]MH_SAM_APDU [00:26:31]CAPDU: 80 0D 01 02 [00:26:31]Write to MH i2c: E2 08 00 1D 0C 80 0D 01 02 00 00 00 00 A2 [00:26:31]Write i2c OK [00:26:31]MH_I2C_Read... [00:26:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:26:31]Read from MH i2c: E2 [00:26:31]MH_I2C_Read... [00:26:31]Read from MH i2c: E2 03 00 [00:26:31]MH_I2C_Read... [00:26:31]Read from MH i2c: E2 03 00 1D 0C 00 90 00 9D [00:26:31]RAPDU: 90 00 [00:26:31]wFMCommunicate OK [00:26:31]wFMCommunicate request_size=255 [00:26:31]MH_SAM_APDU [00:26:31]CAPDU: 80 0D 02 02 FA 05 00 6E 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 19 00 D0 9E D0 B2 D0 B0 D1 81 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 9B 2E 20 F4 03 04 00 AF F9 BB 66 0E 04 04 00 D2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 5E 04 04 00 51 00 00 00 57 04 04 00 53 00 00 00 AA 04 DC 04 6E 04 04 00 51 00 00 00 69 04 A2 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 09 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:26:31]Write to MH i2c: E2 02 01 1E 0C 80 0D 02 02 FA 00 05 00 6E 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 19 00 D0 9E D0 B2 D0 B0 D1 81 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 9B 2E 20 F4 03 04 00 AF F9 BB 66 0E 04 04 00 D2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 5E 04 04 00 51 00 00 00 57 04 04 00 53 00 00 00 AA 04 DC 04 6E 04 04 00 51 00 00 00 69 04 A2 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 09 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 00 07 [00:26:32]Write i2c OK [00:26:32]MH_I2C_Read... [00:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:32]Read from MH i2c: E2 [00:26:32]MH_I2C_Read... [00:26:32]Read from MH i2c: E2 03 00 [00:26:32]MH_I2C_Read... [00:26:32]Read from MH i2c: E2 03 00 1E 0C 00 90 00 9E [00:26:32]RAPDU: 90 00 [00:26:32]wFMCommunicate OK [00:26:32]wFMCommunicate request_size=255 [00:26:32]MH_SAM_APDU [00:26:32]CAPDU: 80 0D 02 02 FA 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 A9 C7 6A 04 A0 00 6F 04 04 00 05 00 00 00 B1 04 03 00 00 1C 0C 70 04 03 00 00 1C 0C 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 41 49 01 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 70 1B 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 [00:26:32]Write to MH i2c: E2 02 01 1F 0C 80 0D 02 02 FA 00 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 A9 C7 6A 04 A0 00 6F 04 04 00 05 00 00 00 B1 04 03 00 00 1C 0C 70 04 03 00 00 1C 0C 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 41 49 01 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 70 1B 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 00 00 05 [00:26:32]Write i2c OK [00:26:32]MH_I2C_Read... [00:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:33]Read from MH i2c: E2 [00:26:33]MH_I2C_Read... [00:26:33]Read from MH i2c: E2 03 00 [00:26:33]MH_I2C_Read... [00:26:33]Read from MH i2c: E2 03 00 1F 0C 00 90 00 9F [00:26:33]RAPDU: 90 00 [00:26:33]wFMCommunicate OK [00:26:33]wFMCommunicate request_size=255 [00:26:33]MH_SAM_APDU [00:26:33]CAPDU: 80 0D 02 02 FA 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 [00:26:33]Write to MH i2c: E2 02 01 20 0C 80 0D 02 02 FA 00 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 OFD Sender: No OFD packet to send [00:26:33]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 00 00 72 [00:26:33]Write i2c OK [00:26:33]MH_I2C_Read... [00:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:33]Read from MH i2c: E2 [00:26:33]MH_I2C_Read... [00:26:33]Read from MH i2c: E2 03 00 [00:26:33]MH_I2C_Read... [00:26:33]Read from MH i2c: E2 03 00 20 0C 00 90 00 A0 [00:26:33]RAPDU: 90 00 [00:26:33]wFMCommunicate OK [00:26:33]wFMCommunicate request_size=255 [00:26:33]MH_SAM_APDU [00:26:33]CAPDU: 80 0D 02 02 FA 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:26:34]Write to MH i2c: E2 02 01 21 0C 80 0D 02 02 FA 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 00 6D [00:26:34]Write i2c OK [00:26:34]MH_I2C_Read... [00:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:34]Read from MH i2c: E2 [00:26:34]MH_I2C_Read... [00:26:34]Read from MH i2c: E2 03 00 [00:26:34]MH_I2C_Read... [00:26:34]Read from MH i2c: E2 03 00 21 0C 00 90 00 A1 [00:26:34]RAPDU: 90 00 [00:26:34]wFMCommunicate OK [00:26:34]wFMCommunicate request_size=255 [00:26:34]MH_SAM_APDU [00:26:34]CAPDU: 80 0D 02 02 FA 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 [00:26:35]Write to MH i2c: E2 02 01 22 0C 80 0D 02 02 FA 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 38 [00:26:35]Write i2c OK [00:26:35]MH_I2C_Read... [00:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:35]Read from MH i2c: E2 [00:26:35]MH_I2C_Read... [00:26:35]Read from MH i2c: E2 03 00 [00:26:35]MH_I2C_Read... [00:26:35]Read from MH i2c: E2 03 00 22 0C 00 90 00 A2 [00:26:35]RAPDU: 90 00 [00:26:35]wFMCommunicate OK [00:26:35]wFMCommunicate request_size=149 [00:26:35]MH_SAM_APDU [00:26:35]CAPDU: 80 0D 02 02 90 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 48 14 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 35 04 06 00 38 67 B6 7A 3E 43 [00:26:35]Write to MH i2c: E2 98 00 23 0C 80 0D 02 02 90 00 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 48 14 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 35 04 06 00 38 67 B6 7A 3E 43 00 00 99 [00:26:35]Write i2c OK [00:26:35]MH_I2C_Read... [00:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:36]Read from MH i2c: E2 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: E2 03 00 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: E2 03 00 23 0C 00 90 00 A3 [00:26:36]RAPDU: 90 00 [00:26:36]wFMCommunicate OK [00:26:36]wFMCommunicate request_size=4 [00:26:36]MH_SAM_APDU [00:26:36]CAPDU: 80 0D 03 02 [00:26:36]Write to MH i2c: E2 08 00 24 0C 80 0D 03 02 00 00 00 00 AB [00:26:36]Write i2c OK [00:26:36]MH_I2C_Read... [00:26:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:26:36]Read from MH i2c: E2 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: E2 0B 00 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: E2 0B 00 24 0C 00 76 A2 81 B5 7B 2E 01 24 90 00 C8 [00:26:36]RAPDU: 76 A2 81 B5 7B 2E 01 24 90 00 [00:26:36]wFMCommunicate OK [00:26:36]SAM_PROTO_SignData done [00:26:36]FM_MakeSignedData done [00:26:36]CreateOFDProtocolMessage [00:26:36]wFMCommunicate request_size=4 [00:26:36]MH_SAM_APDU [00:26:36]CAPDU: 80 11 00 00 [00:26:36]Write to MH i2c: E2 08 00 25 0C 80 11 00 00 00 00 00 00 AB [00:26:36]Write i2c OK [00:26:36]MH_I2C_Read... [00:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:36]Read from MH i2c: E2 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: E2 17 00 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: E2 17 00 25 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 00 [00:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:26:36]wFMCommunicate OK [00:26:36]CreateOFDProtocolMessage done [00:26:36]OFDSenderStorePacket 70728 [00:26:36]StoreOFDPacket docnum=70728 [00:26:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 82 05 00 00 5C A7 7A 05 85 6F 5A 05 01 00 05 00 6E 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 19 00 D0 9E D0 B2 D0 B0 D1 81 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 9B 2E 20 F4 03 04 00 AF F9 BB 66 0E 04 04 00 D2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 5E 04 04 00 51 00 00 00 57 04 04 00 53 00 00 00 AA 04 DC 04 6E 04 04 00 51 00 00 00 69 04 A2 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 09 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 A9 C7 6A 04 A0 00 6F 04 04 00 05 00 00 00 B1 04 03 00 00 1C 0C 70 04 03 00 00 1C 0C 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 41 49 01 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 70 1B 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 48 14 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 35 04 06 00 38 67 B6 7A 3E 43 76 A2 81 B5 7B 2E 01 24 [00:26:36]CheckFolder [00:26:36]dirname=/storage/ofd_packets [00:26:36]CheckFolder done [00:26:36]ProducePacketName [00:26:36]name=ofd_packets/00070728 [00:26:36]NVStorageSaveData ofd_packets/00070728 [00:26:36]File name is /storage/ofd_packets/00070728 [00:26:36]Write 1440 bytes [00:26:36]NVStorageSaveData done [00:26:36]OFDSenderStorePacket done [00:26:36]KKMCreateOFDPacket done [00:26:36]NVStorageSaveData kkm_last_timestamp [00:26:36]File name is /storage/kkm_last_timestamp [00:26:36]Write 4 bytes [00:26:36]NVStorageSaveData done [00:26:36]ExternCall_PrintAddStr [00:26:36]wPrintStart [00:26:36]Write to MH i2c: 01 00 00 26 0C 32 [00:26:36]Write i2c OK [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: 01 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: 01 07 00 [00:26:36]MH_I2C_Read... [00:26:36]Read from MH i2c: 01 07 00 26 0C 00 00 00 00 00 FF 0F 47 [00:26:36]RasterBufferAndPrint [00:26:36]line Отчет о закрытии Ñмены [00:26:36]line ФФД: 1.0 [00:26:36]line ИÐÐ: 02508201610067 [00:26:36]line КаÑÑир: ОваÑбекова Л. [00:26:36]line 14.08.2024 00:26 [00:26:36]line Смена: 466 [00:26:36]line РÐМ: 0000000000090913 [00:26:36]line ЗÐМ: 0300000140 [00:26:36]line СÐО: Общий режим [00:26:36]line Чеков за Ñмену: 81 [00:26:36]line ФД за Ñмену: 83 [00:26:36]line Ð’Ñего чеков: 81 [00:26:36]line ИТОГИ ПРИХОД [00:26:36]line Чеков: 76 [00:26:36]line Общий итог: 57751.24 [00:26:36]line Итого наличными: 19947.00 [00:26:36]line Итого безнал.: 37804.24 [00:26:36]line ÐДС 0% : 0.00 [00:26:36]line ÐДС 12% : 6133.39 [00:26:36]line ÐСП 0% : 0.00 [00:26:36]line ÐСП 1,50% : 0.00 [00:26:36]line ÐСП 0,50% : 0.00 [00:26:36]line ÐСП 5% : 0.00 [00:26:36]line ÐСП 3% : 0.00 [00:26:36]line ÐСП 2% : 0.00 [00:26:36]line ÐСП 1% : 511.13 [00:26:36]line ИТОГИ ВОЗВРÐТ ПРИХОДР[00:26:36]line Чеков: 5 [00:26:36]line Общий итог: 7936.00 [00:26:36]OFD Sender: Processing packet 70728 [packets to send 67, broken 66] [00:26:36]line Итого наличными: 7936.00 [00:26:36]ProducePacketName [00:26:36]line Итого безнал.: 0.00 [00:26:36]name=ofd_packets/00070728 [00:26:36]line ÐДС 0% : 0.00 [00:26:36]OFD Sender: To server: ‡•öpG, [00:26:36]line ÐДС 12% : 842.89 [00:26:36]CommunicateWithHost lk.salyk.kg:30040 [00:26:36]line ÐСП 0% : 0.00 [00:26:36]ConnectInit lk.salyk.kg [00:26:36]line ÐСП 1,50% : 0.00 [00:26:36]line ÐСП 0,50% : 0.00 [00:26:36]line ÐСП 5% : 0.00 [00:26:36]line ÐСП 3% : 0.00 [00:26:36]line ÐСП 2% : 0.00 [00:26:36]line ÐСП 1% : 70.24 [00:26:36]line ИТОГИ РÐСХОД [00:26:36]line Чеков: 0 [00:26:36]line Общий итог: 0.00 [00:26:36]line Итого наличными: 0.00 [00:26:36]line Итого безнал.: 0.00 [00:26:36]line ÐДС 0% : 0.00 [00:26:36]line ÐДС 12% : 0.00 [00:26:36]line ÐСП 0% : 0.00 [00:26:36]line ÐСП 1,50% : 0.00 [00:26:36]line ÐСП 0,50% : 0.00 [00:26:36]line ÐСП 5% : 0.00 [00:26:36]line ÐСП 3% : 0.00 [00:26:36]line ÐСП 2% : 0.00 [00:26:36]line ÐСП 1% : 0.00 [00:26:36]line ИТОГИ ВОЗВРÐТ РÐСХОДР[00:26:36]line Чеков: 0 [00:26:36]line Общий итог: 0.00 [00:26:36]line Итого наличными: 0.00 [00:26:36]line Итого безнал.: 0.00 [00:26:36]line ÐДС 0% : 0.00 [00:26:36]line ÐДС 12% : 0.00 [00:26:36]line ÐСП 0% : 0.00 [00:26:36]line ÐСП 1,50% : 0.00 [00:26:36]line ÐСП 0,50% : 0.00 [00:26:36]line ÐСП 5% : 0.00 [00:26:36]line ÐСП 3% : 0.00 [00:26:36]line ÐСП 2% : 0.00 [00:26:36]line ÐСП 1% : 0.00 [00:26:36]line Сумма внеÑений: 0.00 [00:26:36]line Сумма выплат: 0.00 [00:26:36]line Ðал. в каÑÑе: 12011.00 [00:26:36]line ÐС Приход: 76812481.06 [00:26:36]line ÐС Возвр.Прихода: 3419000.00 [00:26:36]line ÐС РаÑход: 0.00 [00:26:36]line ÐС Возвр.РаÑхода: 0.00 [00:26:36]line ФД: 70728 [00:26:36]line ФМ: 0000000000874915 [00:26:36]line ФПД: 62018094251587 [00:26:36]written 0, free lines is 4095 [00:26:36]Connected sock=10 [00:26: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 39 31 35 82 05 00 00 5C A7 7A 05 85 6F 5A 05 01 00 05 00 6E 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 19 00 D0 9E D0 B2 D0 B0 D1 81 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 9B 2E 20 F4 03 04 00 AF F9 BB 66 0E 04 04 00 D2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 5E 04 04 00 51 00 00 00 57 04 04 00 53 00 00 00 AA 04 DC 04 6E 04 04 00 51 00 00 00 69 04 A2 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 09 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 A9 C7 6A 04 A0 00 6F 04 04 00 05 00 00 00 B1 04 03 00 00 1C 0C 70 04 03 00 00 1C 0C 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 41 49 01 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 70 1B 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 Write to MH i2c: 00 01 00 00 00 00 00 76 0C 00 82 B1 [00:26:37]04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE Write i2c OK [00:26:37]03 MH_I2C_Read... [00:26:37]09 Read from MH i2c: 00 01 F2 [00:26:37]MH_I2C_Read... [00:26:37]03 01 00 00 F3 03 00 00 EE Read from MH i2c: 03 01 09 07 00 00 F2 [00:26:37]03 01 00 01 F3 03 00 00 EF 03 09 MH_I2C_Read... [00:26:37]00 F6 03 01 00 00 F7 03 Read from MH i2c: 00 01 00 07 EF 00 03 76 09 00 F6 03 01 00 01 F7 03 00 00 0C EF 00 03 00 09 00 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 00 09 DF 00 0B F6 73 03 [00:26:38]01 00 03 F7 03 00 00 EF 03 09 RasterBufferAndPrint [00:26:38]00 line [00:26:38]F6 line [00:26:38]03 line [00:26:38]01 line [00:26:38]00 line [00:26:38]04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 written 0, free lines is 3267 [00:26:38]00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 MH_Cut [00:26:38]00 Write to MH i2c: D0 D1 04 01 8D 00 00 7D 6F 0C 04 01 04 5B 00 [00:26:38]00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 Write i2c OK [00:26:38]03 MH_I2C_Read... [00:26:38]01 Read from MH i2c: D1 00 [00:26:38]01 MH_I2C_Read... [00:26:38]F7 03 00 00 EF 03 09 00 F6 Read from MH i2c: 03 D1 01 01 00 00 02 [00:26:38]F7 03 00 00 EF 03 09 00 F6 03 MH_I2C_Read... [00:26:38]01 Read from MH i2c: 00 D1 03 01 F7 00 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 7D 0C 00 5A [00:26:38]Write to MH i2c: 01 00 00 7E 00 0C 70 8A 04 [00:26:38]00 Write i2c OK [00:26:38]00 MH_I2C_Read... [00:26:38]72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 48 14 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 35 04 06 00 38 67 B6 7A 3E 43 76 A2 81 B5 7B 2E 01 24 [00:26:38]*** Cut start [00:26:38]*** Purtial cut [00:26:38]*** CUTSNS_PIN = 0 [00:26:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 D6 C8 47 00 8B 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 *** Stage 1: CUTSNS_PIN = 1 [00:26:39]38 37 34 39 31 35 10 04 04 00 48 14 01 00 F4 03 04 00 A8 A0 BB 66 B6 04 01 00 00 43 D1 8F 4C D8 9F 02 40 [00:26:39]CommunicateWithHost err = 0 [00:26:39]CheckOFDResponse [00:26:39]1017 (14) - 77093643461234 [00:26:39]1041 (16) - 0000000000874915 [00:26:39]1040 (4) - 70728 [00:26:39]1012 (4) - 13.08.2024 18:06 [00:26:39]1206 (1) - 0 [00:26:39]OFD Sender: Remove packet 70728 [00:26:39]ProducePacketName [00:26:39]name=ofd_packets/00070728 [00:26:39]NVStorageDeleteData [00:26:39]OFD Sender: No OFD packet to send [00:26:40]Read from MH i2c: *** Stop cut motor [00:26:40]01 *** Cut end [00:26:40] [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: 01 07 00 [00:26:40]MH_I2C_Read... [00:26:40]Read from MH i2c: 01 07 00 7E 0C 00 00 00 00 00 FF 0F 9F [00:26:40]process_action close_shift done [00:26:40]requested_data is exist [00:26:40]produce_requested_data [00:26:40]requested_item fd.num is exist - process it [00:26:40]SAM_PROTO_GetFieldsCounters [00:26:40]wFMCommunicate request_size=4 [00:26:40]MH_SAM_APDU [00:26:40]CAPDU: 80 13 00 00 [00:26:40]Write to MH i2c: E2 08 00 7F 0C 80 13 00 00 00 00 00 00 07 [00:26:40]Write i2c OK [00:26:40]MH_I2C_Read... [00:26:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:40]Read from MH i2c: E2 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: E2 62 00 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: E2 62 00 7F 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 48 14 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [00:26: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 48 14 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:41]wFMCommunicate OK [00:26:41]SAM_PROTO_GetFieldsCounters done [00:26:41]requested_item shift.num is exist - process it [00:26:41]requested_item shift.opened is exist - process it [00:26:41]req_shift_opened [00:26:41]FM_GetShiftState [00:26:41]SAM_PROTO_GetShiftState [00:26:41]wFMCommunicate request_size=4 [00:26:41]MH_SAM_APDU [00:26:41]CAPDU: 80 13 01 00 [00:26:41]Write to MH i2c: E2 08 00 80 0C 80 13 01 00 00 00 00 00 09 [00:26:41]Write i2c OK [00:26:41]MH_I2C_Read... [00:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:41]Read from MH i2c: E2 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: E2 0E 00 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: E2 0E 00 80 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 14 [00:26:41]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:26:41]wFMCommunicate OK [00:26:41]SAM_PROTO_GetShiftState done [00:26:41]FM_GetShiftState done [00:26:41]req_shift_opened done [00:26:41]requested_item shift.open_date is exist - process it [00:26:41]req_shift_open_date [00:26:41]FM_GetShiftState [00:26:41]SAM_PROTO_GetShiftState [00:26:41]wFMCommunicate request_size=4 [00:26:41]MH_SAM_APDU [00:26:41]CAPDU: 80 13 01 00 [00:26:41]Write to MH i2c: E2 08 00 81 0C 80 13 01 00 00 00 00 00 0A [00:26:41]Write i2c OK [00:26:41]MH_I2C_Read... [00:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:41]Read from MH i2c: E2 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: E2 0E 00 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: E2 0E 00 81 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 15 [00:26:41]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:26:41]wFMCommunicate OK [00:26:41]SAM_PROTO_GetShiftState done [00:26:41]FM_GetShiftState done [00:26:41]req_shift_open_date done [00:26:41]produce_requested_data done [00:26:41]produce_requested_data return {"fd.num":70728,"shift.num":466,"shift.opened":0,"shift.open_date":0} [00:26:41]process_action_free close_shift [00:26:41]json_value_free [00:26:41]json_value_free done [00:26:41]process_json_proto returns [00:26:41]Send response to host [00:26:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":70728,"shift.num":466,"shift.opened":0,"shift.open_date":0}}} [00:26:41]free response buf [00:26:41]execute_script done [00:26:41]execute_script returns [00:26:41]free content buf [00:26:41]Sock 9.Close socket [00:26:41]Sock 9.Thread stoped [00:26:41]int [00:26:41]Write to MH i2c: 01 00 00 82 0C 8E [00:26:41]*** FLAG_PRN_KEY set [00:26:41]Write i2c OK [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: 01 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: 01 07 00 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: 01 07 00 82 0C 00 08 00 00 00 FF 0F AB [00:26:41]state=0 [00:26:41]Key pressed [00:26:41]Feed [00:26:41]Write to MH i2c: D8 00 00 83 0C 66 [00:26:41]Write i2c OK [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: D8 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: D8 01 00 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: D8 01 00 83 0C 00 67 [00:26:41]int line is 0 - check status [00:26:41]Write to MH i2c: 01 00 00 84 0C 90 [00:26:41]Write i2c OK [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: 01 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: 01 07 00 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: 01 07 00 84 0C 00 48 00 00 00 3C 00 1B [00:26:41]state=2 [00:26:41]Key pressed [00:26:41]int [00:26:41]Write to MH i2c: 01 00 00 85 0C 91 [00:26:41]Write i2c OK [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: 01 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: 01 07 00 [00:26:41]MH_I2C_Read... [00:26:41]Read from MH i2c: 01 07 00 85 0C 00 48 00 00 00 3C 00 1C [00:26:41]state=2 [00:26:41]Key pressed [00:26:42]int [00:26:42]Write to MH i2c: 01 00 00 86 0C 92 [00:26:42]*** FLAG_PRN_KEY reset [00:26:42]Write i2c OK [00:26:42]MH_I2C_Read... [00:26:42]Read from MH i2c: 01 [00:26:42]MH_I2C_Read... [00:26:42]Read from MH i2c: 01 07 00 [00:26:42]MH_I2C_Read... [00:26:42]Read from MH i2c: 01 07 00 86 0C 00 00 00 00 00 FF 0F A7 [00:26:42]state=2 [00:26:42]Stop feed [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:46]accept exits with 7 [00:27:46]New connection [00:27:46]New thread 3067448676 created [00:27:46]Thread 3067305316 joined [00:27:46]Waiting for new connection... [00:27:46] Sock 7.Parse request [00:27:46]Sock 7.Check first char [00:27:46]Sock 7.First char is OK [00:27:46]request: POST /json_proto HTTP/1.0 [00:27:46]Method: POST [00:27:46]URL: /json_proto [00:27:46]Method is POST - this is cgi request [00:27:46]url: /json_proto [00:27:46]query_string will be loaded in cgi processing [00:27:46]execute_cgi json_proto POST (null) [00:27:46]execute_cgi path=json_proto method=POST [00:27:46]POST find Content-Length [00:27:46]Host: 172.17.58.67:8080 [00:27:46]Content-Length: 215 [00:27:46]Content-Type: application/json [00:27:46] [00:27:46]POST finish read [00:27:46]Found Content-Length = 215 [00:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:46]execute_script... [00:27:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:46]POST & json_proto [00:27:46]process_json_proto [00:27:46]json parsed OK: [00:27:46]protocol is kg_v1.0 [00:27:46]action value=get_value [00:27:46]process_action get_value [00:27:46]cmd_get_value [00:27:46]process_action get_value done [00:27:46]requested_data is exist [00:27:46]produce_requested_data [00:27:46]requested_item kkm.sn is exist - process it [00:27:46]requested_item kkm.ver is exist - process it [00:27:46]requested_item fm.sn is exist - process it [00:27:46]wFMCommunicate request_size=4 [00:27:46]MH_SAM_APDU [00:27:46]CAPDU: 80 11 00 00 [00:27:46]Write to MH i2c: E2 08 00 87 0C 80 11 00 00 00 00 00 00 0D [00:27:46]Write i2c OK [00:27:46]MH_I2C_Read... [00:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:46]Read from MH i2c: E2 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 17 00 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 17 00 87 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 62 [00:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:27:46]wFMCommunicate OK [00:27:46]requested_item fd.num is exist - process it [00:27:46]SAM_PROTO_GetFieldsCounters [00:27:46]wFMCommunicate request_size=4 [00:27:46]MH_SAM_APDU [00:27:46]CAPDU: 80 13 00 00 [00:27:46]Write to MH i2c: E2 08 00 88 0C 80 13 00 00 00 00 00 00 10 [00:27:46]Write i2c OK [00:27:46]MH_I2C_Read... [00:27:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:46]Read from MH i2c: E2 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 62 00 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 62 00 88 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 48 14 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [00:27: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 48 14 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:46]wFMCommunicate OK [00:27:46]SAM_PROTO_GetFieldsCounters done [00:27:46]requested_item shift.num is exist - process it [00:27:46]requested_item shift.opened is exist - process it [00:27:46]req_shift_opened [00:27:46]FM_GetShiftState [00:27:46]SAM_PROTO_GetShiftState [00:27:46]wFMCommunicate request_size=4 [00:27:46]MH_SAM_APDU [00:27:46]CAPDU: 80 13 01 00 [00:27:46]Write to MH i2c: E2 08 00 89 0C 80 13 01 00 00 00 00 00 12 [00:27:46]Write i2c OK [00:27:46]MH_I2C_Read... [00:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:46]Read from MH i2c: E2 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 0E 00 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 0E 00 89 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 1D [00:27:46]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:27:46]wFMCommunicate OK [00:27:46]SAM_PROTO_GetShiftState done [00:27:46]FM_GetShiftState done [00:27:46]req_shift_opened done [00:27:46]requested_item shift.open_date is exist - process it [00:27:46]req_shift_open_date [00:27:46]FM_GetShiftState [00:27:46]SAM_PROTO_GetShiftState [00:27:46]wFMCommunicate request_size=4 [00:27:46]MH_SAM_APDU [00:27:46]CAPDU: 80 13 01 00 [00:27:46]Write to MH i2c: E2 08 00 8A 0C 80 13 01 00 00 00 00 00 13 [00:27:46]Write i2c OK [00:27:46]MH_I2C_Read... [00:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:46]Read from MH i2c: E2 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 0E 00 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 0E 00 8A 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 1E [00:27:46]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:27:46]wFMCommunicate OK [00:27:46]SAM_PROTO_GetShiftState done [00:27:46]FM_GetShiftState done [00:27:46]req_shift_open_date done [00:27:46]produce_requested_data done [00:27:46]produce_requested_data return {"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70728,"shift.num":466,"shift.opened":0,"shift.open_date":0} [00:27:46]process_action_free get_value [00:27:46]json_value_free [00:27:46]json_value_free done [00:27:46]process_json_proto returns [00:27:46]Send response to host [00:27:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70728,"shift.num":466,"shift.opened":0,"shift.open_date":0}}} [00:27:46]free response buf [00:27:46]execute_script done [00:27:46]execute_script returns [00:27:46]free content buf [00:27:46]Sock 7.Close socket [00:27:46]Sock 7.Thread stoped [00:27:46]accept exits with 9 [00:27:46]New connection [00:27:46]New thread 3067305316 created [00:27:46]Thread 3067448676 joined [00:27:46]Waiting for new connection... [00:27:46] Sock 9.Parse request [00:27:46]Sock 9.Check first char [00:27:46]Sock 9.First char is OK [00:27:46]request: POST /json_proto HTTP/1.0 [00:27:46]Method: POST [00:27:46]URL: /json_proto [00:27:46]Method is POST - this is cgi request [00:27:46]url: /json_proto [00:27:46]query_string will be loaded in cgi processing [00:27:46]execute_cgi json_proto POST (null) [00:27:46]execute_cgi path=json_proto method=POST [00:27:46]POST find Content-Length [00:27:46]Host: 172.17.58.67:8080 [00:27:46]Content-Length: 331 [00:27:46]Content-Type: application/json [00:27:46] [00:27:46]POST finish read [00:27:46]Found Content-Length = 331 [00:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:46]execute_script... [00:27:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:46]POST & json_proto [00:27:46]process_json_proto [00:27:46]json parsed OK: [00:27:46]protocol is kg_v1.0 [00:27:46]action value=get_value [00:27:46]process_action get_value [00:27:46]cmd_get_value [00:27:46]process_action get_value done [00:27:46]requested_data is exist [00:27:46]produce_requested_data [00:27:46]requested_item fm.sale.total is exist - process it [00:27:46]SAM_PROTO_GetFMData [00:27:46]wFMCommunicate request_size=4 [00:27:46]MH_SAM_APDU [00:27:46]CAPDU: 80 13 03 00 [00:27:46]Write to MH i2c: E2 08 00 8B 0C 80 13 03 00 00 00 00 00 16 [00:27:46]Write i2c OK [00:27:46]MH_I2C_Read... [00:27:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:47]Read from MH i2c: E2 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 FD 00 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 FD 00 8B 0C 00 C8 04 85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 90 00 40 [00:27:47]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 90 00 [00:27:47]wFMCommunicate OK [00:27:47]wFMCommunicate request_size=4 [00:27:47]MH_SAM_APDU [00:27:47]CAPDU: 80 17 00 00 [00:27:47]Write to MH i2c: E2 08 00 8C 0C 80 17 00 00 00 00 00 00 18 [00:27:47]Write i2c OK [00:27:47]MH_I2C_Read... [00:27:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:47]Read from MH i2c: E2 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 FD 00 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 FD 00 8C 0C 00 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 23 [00:27:47]RAPDU: 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 [00:27:47]wFMCommunicate OK [00:27:47]wFMCommunicate request_size=4 [00:27:47]MH_SAM_APDU [00:27:47]CAPDU: 80 17 00 00 [00:27:47]Write to MH i2c: E2 08 00 8D 0C 80 17 00 00 00 00 00 00 19 [00:27:47]Write i2c OK [00:27:47]MH_I2C_Read... [00:27:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:47]Read from MH i2c: E2 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 FD 00 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 FD 00 8D 0C 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 F1 [00:27:47]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 [00:27:47]wFMCommunicate OK [00:27:47]wFMCommunicate request_size=4 [00:27:47]MH_SAM_APDU [00:27:47]CAPDU: 80 17 00 00 [00:27:47]Write to MH i2c: E2 08 00 8E 0C 80 17 00 00 00 00 00 00 1A [00:27:47]Write i2c OK [00:27:47]MH_I2C_Read... [00:27:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:48]Read from MH i2c: E2 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 FD 00 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 FD 00 8E 0C 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 92 [00:27:48]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 [00:27:48]wFMCommunicate OK [00:27:48]wFMCommunicate request_size=4 [00:27:48]MH_SAM_APDU [00:27:48]CAPDU: 80 17 00 00 [00:27:48]Write to MH i2c: E2 08 00 8F 0C 80 17 00 00 00 00 00 00 1B [00:27:48]Write i2c OK [00:27:48]MH_I2C_Read... [00:27:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:27:48]Read from MH i2c: E2 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 E5 00 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 E5 00 8F 0C 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 FF [00:27:48]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 [00:27:48]wFMCommunicate OK [00:27:48]SAM_PROTO_GetFMData done [00:27:48]requested_item fm.sale_refund.total is exist - process it [00:27:48]requested_item fm.buy.total is exist - process it [00:27:48]requested_item shift.sale.total is exist - process it [00:27:48]SAM_PROTO_GetShiftData [00:27:48]wFMCommunicate request_size=4 [00:27:48]MH_SAM_APDU [00:27:48]CAPDU: 80 13 02 00 [00:27:48]Write to MH i2c: E2 08 00 90 0C 80 13 02 00 00 00 00 00 1A [00:27:48]Write i2c OK [00:27:48]MH_I2C_Read... [00:27:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:49]Read from MH i2c: E2 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: E2 FD 00 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: E2 FD 00 90 0C 00 B9 04 AA 04 B5 04 6E 04 04 00 51 00 00 00 69 04 9B 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 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 A9 C7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 05 00 00 00 B1 04 03 00 00 1C 0C 70 04 03 00 00 1C 0C 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 41 49 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 4F [00:27:49]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 51 00 00 00 69 04 9B 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 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 A9 C7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 05 00 00 00 B1 04 03 00 00 1C 0C 70 04 03 00 00 1C 0C 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 41 49 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:27:49]wFMCommunicate OK [00:27:49]wFMCommunicate request_size=4 [00:27:49]MH_SAM_APDU [00:27:49]CAPDU: 80 17 00 00 [00:27:49]Write to MH i2c: E2 08 00 91 0C 80 17 00 00 00 00 00 00 1D [00:27:49]Write i2c OK [00:27:49]MH_I2C_Read... [00:27:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:49]Read from MH i2c: E2 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: E2 FD 00 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: E2 FD 00 91 0C 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 70 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 67 [00:27:49]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 70 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [00:27:49]wFMCommunicate OK [00:27:49]wFMCommunicate request_size=4 [00:27:49]MH_SAM_APDU [00:27:49]CAPDU: 80 17 00 00 [00:27:49]Write to MH i2c: E2 08 00 92 0C 80 17 00 00 00 00 00 00 1E [00:27:49]Write i2c OK [00:27:49]MH_I2C_Read... [00:27:49]OFD Sender: No OFD packet to send [00:27:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:49]Read from MH i2c: E2 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: E2 FD 00 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: E2 FD 00 92 0C 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 46 [00:27:49]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:27:49]wFMCommunicate OK [00:27:49]wFMCommunicate request_size=4 [00:27:49]MH_SAM_APDU [00:27:49]CAPDU: 80 17 00 00 [00:27:49]Write to MH i2c: E2 08 00 93 0C 80 17 00 00 00 00 00 00 1F [00:27:49]Write i2c OK [00:27:49]MH_I2C_Read... [00:27:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:50]Read from MH i2c: E2 [00:27:50]MH_I2C_Read... [00:27:50]Read from MH i2c: E2 FD 00 [00:27:50]MH_I2C_Read... [00:27:50]Read from MH i2c: E2 FD 00 93 0C 00 EF 03 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 90 00 97 [00:27:50]RAPDU: EF 03 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 90 00 [00:27:50]wFMCommunicate OK [00:27:50]wFMCommunicate request_size=4 [00:27:50]MH_SAM_APDU [00:27:50]CAPDU: 80 17 00 00 [00:27:50]Write to MH i2c: E2 08 00 94 0C 80 17 00 00 00 00 00 00 20 [00:27:50]Write i2c OK [00:27:50]MH_I2C_Read... [00:27:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:27:50]Read from MH i2c: E2 [00:27:50]MH_I2C_Read... [00:27:50]Read from MH i2c: E2 D6 00 [00:27:50]MH_I2C_Read... [00:27:50]Read from MH i2c: E2 D6 00 94 0C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 02 [00:27:50]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:50]wFMCommunicate OK [00:27:50]SAM_PROTO_GetShiftData done [00:27:50]requested_item shift.sale.total_cash is exist - process it [00:27:50]requested_item shift.sale_refund.total is exist - process it [00:27:50]requested_item shift.sale_refund.total_cash is exist - process it [00:27:50]requested_item shift.buy.total is exist - process it [00:27:50]requested_item shift.buy.total_cash is exist - process it [00:27:50]produce_requested_data done [00:27:50]produce_requested_data return {"fm.sale.total":76812481.06,"fm.sale_refund.total":3419000.00,"fm.buy.total":0.00,"shift.sale.total":57751.24,"shift.sale.total_cash":19947.00,"shift.sale_refund.total":7936.00,"shift.sale_refund.total_cash":7936.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:27:50]process_action_free get_value [00:27:50]json_value_free [00:27:50]json_value_free done [00:27:50]process_json_proto returns [00:27:50]Send response to host [00:27:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76812481.06,"fm.sale_refund.total":3419000.00,"fm.buy.total":0.00,"shift.sale.total":57751.24,"shift.sale.total_cash":19947.00,"shift.sale_refund.total":7936.00,"shift.sale_refund.total_cash":7936.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:27:50]free response buf [00:27:50]execute_script done [00:27:50]execute_script returns [00:27:50]free content buf [00:27:50]Sock 9.Close socket [00:27:50]Sock 9.Thread stoped [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:09]OFD Sender: No OFD packet to send [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:15]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:40]OFD Sender: No OFD packet to send [00:41:45]OFD Sender: No OFD packet to send [00:41:50]OFD Sender: No OFD packet to send [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:05]OFD Sender: No OFD packet to send [00:42:10]OFD Sender: No OFD packet to send [00:42:15]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42:30]OFD Sender: No OFD packet to send [00:42:35]OFD Sender: No OFD packet to send [00:42:40]OFD Sender: No OFD packet to send [00:42:45]OFD Sender: No OFD packet to send [00:42:50]OFD Sender: No OFD packet to send [00:42:55]OFD Sender: No OFD packet to send [00:43:00]OFD Sender: No OFD packet to send [00:43:05]OFD Sender: No OFD packet to send [00:43:10]OFD Sender: No OFD packet to send [00:43:15]OFD Sender: No OFD packet to send [00:43:20]OFD Sender: No OFD packet to send [00:43:25]OFD Sender: No OFD packet to send [00:43:30]OFD Sender: No OFD packet to send [00:43:35]OFD Sender: No OFD packet to send [00:43:40]OFD Sender: No OFD packet to send [00:43:45]OFD Sender: No OFD packet to send [00:43:50]OFD Sender: No OFD packet to send [00:43:55]OFD Sender: No OFD packet to send [00:44:00]OFD Sender: No OFD packet to send [00:44:05]OFD Sender: No OFD packet to send [00:44:10]OFD Sender: No OFD packet to send [00:44:15]OFD Sender: No OFD packet to send [00:44:20]OFD Sender: No OFD packet to send [00:44:25]OFD Sender: No OFD packet to send [00:44:30]OFD Sender: No OFD packet to send [00:44:35]OFD Sender: No OFD packet to send [00:44:40]OFD Sender: No OFD packet to send [00:44:45]OFD Sender: No OFD packet to send [00:44:50]OFD Sender: No OFD packet to send [00:44:55]OFD Sender: No OFD packet to send [00:45:00]OFD Sender: No OFD packet to send [00:45:05]OFD Sender: No OFD packet to send [00:45:10]OFD Sender: No OFD packet to send [00:45:15]OFD Sender: No OFD packet to send [00:45:20]OFD Sender: No OFD packet to send [00:45:25]OFD Sender: No OFD packet to send [00:45:30]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:45]OFD Sender: No OFD packet to send [00:45:50]OFD Sender: No OFD packet to send [00:45:55]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:34]accept exits with 7 [00:49:34]New connection [00:49:34]New thread 3067448676 created [00:49:34]Thread 3067305316 joined [00:49:34]Waiting for new connection... [00:49:34] Sock 7.Parse request [00:49:34]Sock 7.Check first char [00:49:34]Sock 7.First char is OK [00:49:34]request: POST /json_proto HTTP/1.0 [00:49:34]Method: POST [00:49:34]URL: /json_proto [00:49:34]Method is POST - this is cgi request [00:49:34]url: /json_proto [00:49:34]query_string will be loaded in cgi processing [00:49:34]execute_cgi json_proto POST (null) [00:49:34]execute_cgi path=json_proto method=POST [00:49:34]POST find Content-Length [00:49:34]Host: 172.17.58.67:8080 [00:49:34]Content-Length: 215 [00:49:34]Content-Type: application/json [00:49:34] [00:49:34]POST finish read [00:49:34]Found Content-Length = 215 [00:49:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:49:34]execute_script... [00:49:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:49:34]POST & json_proto [00:49:34]process_json_proto [00:49:34]json parsed OK: [00:49:34]protocol is kg_v1.0 [00:49:34]action value=get_value [00:49:34]process_action get_value [00:49:34]cmd_get_value [00:49:34]process_action get_value done [00:49:34]requested_data is exist [00:49:34]produce_requested_data [00:49:34]requested_item kkm.sn is exist - process it [00:49:34]requested_item kkm.ver is exist - process it [00:49:34]requested_item fm.sn is exist - process it [00:49:34]wFMCommunicate request_size=4 [00:49:34]MH_SAM_APDU [00:49:34]CAPDU: 80 11 00 00 [00:49:34]Write to MH i2c: E2 08 00 95 0C 80 11 00 00 00 00 00 00 1B [00:49:34]Write i2c OK [00:49:34]MH_I2C_Read... [00:49:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:34]Read from MH i2c: E2 [00:49:34]MH_I2C_Read... [00:49:34]Read from MH i2c: E2 17 00 [00:49:34]MH_I2C_Read... [00:49:34]Read from MH i2c: E2 17 00 95 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 70 [00:49:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:49:34]wFMCommunicate OK [00:49:34]requested_item fd.num is exist - process it [00:49:34]SAM_PROTO_GetFieldsCounters [00:49:34]wFMCommunicate request_size=4 [00:49:34]MH_SAM_APDU [00:49:34]CAPDU: 80 13 00 00 [00:49:34]Write to MH i2c: E2 08 00 96 0C 80 13 00 00 00 00 00 00 1E [00:49:34]Write i2c OK [00:49:34]MH_I2C_Read... [00:49:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:49:34]Read from MH i2c: E2 [00:49:34]MH_I2C_Read... [00:49:34]Read from MH i2c: E2 62 00 [00:49:34]MH_I2C_Read... [00:49:34]Read from MH i2c: E2 62 00 96 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 48 14 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [00:49:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 48 14 01 00 0E 04 04 00 D2 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:49:34]wFMCommunicate OK [00:49:34]SAM_PROTO_GetFieldsCounters done [00:49:34]requested_item shift.num is exist - process it [00:49:34]requested_item shift.opened is exist - process it [00:49:34]req_shift_opened [00:49:34]FM_GetShiftState [00:49:34]SAM_PROTO_GetShiftState [00:49:34]wFMCommunicate request_size=4 [00:49:34]MH_SAM_APDU [00:49:34]CAPDU: 80 13 01 00 [00:49:34]Write to MH i2c: E2 08 00 97 0C 80 13 01 00 00 00 00 00 20 [00:49:34]Write i2c OK [00:49:34]MH_I2C_Read... [00:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:34]Read from MH i2c: E2 [00:49:34]MH_I2C_Read... [00:49:34]Read from MH i2c: E2 0E 00 [00:49:34]MH_I2C_Read... [00:49:34]Read from MH i2c: E2 0E 00 97 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 2B [00:49:34]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:49:34]wFMCommunicate OK [00:49:34]SAM_PROTO_GetShiftState done [00:49:34]FM_GetShiftState done [00:49:34]req_shift_opened done [00:49:34]requested_item shift.open_date is exist - process it [00:49:34]req_shift_open_date [00:49:34]FM_GetShiftState [00:49:34]SAM_PROTO_GetShiftState [00:49:34]wFMCommunicate request_size=4 [00:49:34]MH_SAM_APDU [00:49:34]CAPDU: 80 13 01 00 [00:49:34]Write to MH i2c: E2 08 00 98 0C 80 13 01 00 00 00 00 00 21 [00:49:34]Write i2c OK [00:49:34]MH_I2C_Read... [00:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:34]Read from MH i2c: E2 [00:49:34]MH_I2C_Read... [00:49:34]Read from MH i2c: E2 0E 00 [00:49:34]MH_I2C_Read... [00:49:34]Read from MH i2c: E2 0E 00 98 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 2C [00:49:34]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:49:34]wFMCommunicate OK [00:49:34]SAM_PROTO_GetShiftState done [00:49:34]FM_GetShiftState done [00:49:34]req_shift_open_date done [00:49:34]produce_requested_data done [00:49:34]produce_requested_data return {"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70728,"shift.num":466,"shift.opened":0,"shift.open_date":0} [00:49:34]process_action_free get_value [00:49:34]json_value_free [00:49:34]json_value_free done [00:49:34]process_json_proto returns [00:49:34]Send response to host [00:49:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70728,"shift.num":466,"shift.opened":0,"shift.open_date":0}}} [00:49:34]free response buf [00:49:34]execute_script done [00:49:34]execute_script returns [00:49:34]free content buf [00:49:34]Sock 7.Close socket [00:49:34]Sock 7.Thread stoped [00:49:34]accept exits with 9 [00:49:34]New connection [00:49:34]New thread 3067305316 created [00:49:34]Thread 3067448676 joined [00:49:34]Waiting for new connection... [00:49:34] Sock 9.Parse request [00:49:34]Sock 9.Check first char [00:49:34]Sock 9.First char is OK [00:49:34]request: POST /json_proto HTTP/1.0 [00:49:34]Method: POST [00:49:34]URL: /json_proto [00:49:34]Method is POST - this is cgi request [00:49:34]url: /json_proto [00:49:34]query_string will be loaded in cgi processing [00:49:34]execute_cgi json_proto POST (null) [00:49:34]execute_cgi path=json_proto method=POST [00:49:34]POST find Content-Length [00:49:34]Host: 172.17.58.67:8080 [00:49:34]Content-Length: 331 [00:49:34]Content-Type: application/json [00:49:34] [00:49:34]POST finish read [00:49:34]Found Content-Length = 331 [00:49:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:49:34]execute_script... [00:49:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:49:35]POST & json_proto [00:49:35]process_json_proto [00:49:35]json parsed OK: [00:49:35]protocol is kg_v1.0 [00:49:35]action value=get_value [00:49:35]process_action get_value [00:49:35]cmd_get_value [00:49:35]process_action get_value done [00:49:35]requested_data is exist [00:49:35]produce_requested_data [00:49:35]requested_item fm.sale.total is exist - process it [00:49:35]SAM_PROTO_GetFMData [00:49:35]wFMCommunicate request_size=4 [00:49:35]MH_SAM_APDU [00:49:35]CAPDU: 80 13 03 00 [00:49:35]Write to MH i2c: E2 08 00 99 0C 80 13 03 00 00 00 00 00 24 [00:49:35]Write i2c OK [00:49:35]MH_I2C_Read... [00:49:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:49:35]Read from MH i2c: E2 [00:49:35]MH_I2C_Read... [00:49:35]Read from MH i2c: E2 FD 00 [00:49:35]MH_I2C_Read... [00:49:35]Read from MH i2c: E2 FD 00 99 0C 00 C8 04 85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 90 00 4E [00:49:35]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 90 00 [00:49:35]wFMCommunicate OK [00:49:35]wFMCommunicate request_size=4 [00:49:35]MH_SAM_APDU [00:49:35]CAPDU: 80 17 00 00 [00:49:35]Write to MH i2c: E2 08 00 9A 0C 80 17 00 00 00 00 00 00 26 [00:49:35]Write i2c OK [00:49:35]MH_I2C_Read... [00:49:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:49:35]Read from MH i2c: E2 [00:49:35]MH_I2C_Read... [00:49:35]Read from MH i2c: E2 FD 00 [00:49:35]MH_I2C_Read... [00:49:35]Read from MH i2c: E2 FD 00 9A 0C 00 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 31 [00:49:35]RAPDU: 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 [00:49:35]wFMCommunicate OK [00:49:35]wFMCommunicate request_size=4 [00:49:35]MH_SAM_APDU [00:49:35]CAPDU: 80 17 00 00 [00:49:35]Write to MH i2c: E2 08 00 9B 0C 80 17 00 00 00 00 00 00 27 [00:49:35]Write i2c OK [00:49:35]MH_I2C_Read... [00:49:36]OFD Sender: No OFD packet to send [00:49:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:49:36]Read from MH i2c: E2 [00:49:36]MH_I2C_Read... [00:49:36]Read from MH i2c: E2 FD 00 [00:49:36]MH_I2C_Read... [00:49:36]Read from MH i2c: E2 FD 00 9B 0C 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [00:49:36]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 [00:49:36]wFMCommunicate OK [00:49:36]wFMCommunicate request_size=4 [00:49:36]MH_SAM_APDU [00:49:36]CAPDU: 80 17 00 00 [00:49:36]Write to MH i2c: E2 08 00 9C 0C 80 17 00 00 00 00 00 00 28 [00:49:36]Write i2c OK [00:49:36]MH_I2C_Read... [00:49:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:49:36]Read from MH i2c: E2 [00:49:36]MH_I2C_Read... [00:49:36]Read from MH i2c: E2 FD 00 [00:49:36]MH_I2C_Read... [00:49:36]Read from MH i2c: E2 FD 00 9C 0C 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 [00:49:36]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 [00:49:36]wFMCommunicate OK [00:49:36]wFMCommunicate request_size=4 [00:49:36]MH_SAM_APDU [00:49:36]CAPDU: 80 17 00 00 [00:49:36]Write to MH i2c: E2 08 00 9D 0C 80 17 00 00 00 00 00 00 29 [00:49:36]Write i2c OK [00:49:36]MH_I2C_Read... [00:49:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:49:36]Read from MH i2c: E2 [00:49:36]MH_I2C_Read... [00:49:36]Read from MH i2c: E2 E5 00 [00:49:36]MH_I2C_Read... [00:49:36]Read from MH i2c: E2 E5 00 9D 0C 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 [00:49:36]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 [00:49:36]wFMCommunicate OK [00:49:36]SAM_PROTO_GetFMData done [00:49:36]requested_item fm.sale_refund.total is exist - process it [00:49:36]requested_item fm.buy.total is exist - process it [00:49:36]requested_item shift.sale.total is exist - process it [00:49:36]SAM_PROTO_GetShiftData [00:49:36]wFMCommunicate request_size=4 [00:49:36]MH_SAM_APDU [00:49:36]CAPDU: 80 13 02 00 [00:49:36]Write to MH i2c: E2 08 00 9E 0C 80 13 02 00 00 00 00 00 28 [00:49:36]Write i2c OK [00:49:36]MH_I2C_Read... [00:49:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:49:37]Read from MH i2c: E2 [00:49:37]MH_I2C_Read... [00:49:37]Read from MH i2c: E2 FD 00 [00:49:37]MH_I2C_Read... [00:49:37]Read from MH i2c: E2 FD 00 9E 0C 00 B9 04 AA 04 B5 04 6E 04 04 00 51 00 00 00 69 04 9B 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 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 A9 C7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 05 00 00 00 B1 04 03 00 00 1C 0C 70 04 03 00 00 1C 0C 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 41 49 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 5D [00:49:37]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 51 00 00 00 69 04 9B 00 6F 04 04 00 4C 00 00 00 B1 04 03 00 14 1F 58 70 04 03 00 CC 6F 1E 72 04 03 00 48 AF 39 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 DB 5B 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 A9 C7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 05 00 00 00 B1 04 03 00 00 1C 0C 70 04 03 00 00 1C 0C 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 41 49 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:49:37]wFMCommunicate OK [00:49:37]wFMCommunicate request_size=4 [00:49:37]MH_SAM_APDU [00:49:37]CAPDU: 80 17 00 00 [00:49:37]Write to MH i2c: E2 08 00 9F 0C 80 17 00 00 00 00 00 00 2B [00:49:37]Write i2c OK [00:49:37]MH_I2C_Read... [00:49:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:49:37]Read from MH i2c: E2 [00:49:37]MH_I2C_Read... [00:49:37]Read from MH i2c: E2 FD 00 [00:49:37]MH_I2C_Read... [00:49:37]Read from MH i2c: E2 FD 00 9F 0C 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 70 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 75 [00:49:37]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 70 1B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [00:49:37]wFMCommunicate OK [00:49:37]wFMCommunicate request_size=4 [00:49:37]MH_SAM_APDU [00:49:37]CAPDU: 80 17 00 00 [00:49:37]Write to MH i2c: E2 08 00 A0 0C 80 17 00 00 00 00 00 00 2C [00:49:37]Write i2c OK [00:49:37]MH_I2C_Read... [00:49:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:49:37]Read from MH i2c: E2 [00:49:37]MH_I2C_Read... [00:49:37]Read from MH i2c: E2 FD 00 [00:49:37]MH_I2C_Read... [00:49:37]Read from MH i2c: E2 FD 00 A0 0C 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 54 [00:49:37]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:49:37]wFMCommunicate OK [00:49:37]wFMCommunicate request_size=4 [00:49:37]MH_SAM_APDU [00:49:37]CAPDU: 80 17 00 00 [00:49:37]Write to MH i2c: E2 08 00 A1 0C 80 17 00 00 00 00 00 00 2D [00:49:37]Write i2c OK [00:49:37]MH_I2C_Read... [00:49:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:49:37]Read from MH i2c: E2 [00:49:37]MH_I2C_Read... [00:49:37]Read from MH i2c: E2 FD 00 [00:49:37]MH_I2C_Read... [00:49:37]Read from MH i2c: E2 FD 00 A1 0C 00 EF 03 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 90 00 A5 [00:49:38]RAPDU: EF 03 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 90 00 [00:49:38]wFMCommunicate OK [00:49:38]wFMCommunicate request_size=4 [00:49:38]MH_SAM_APDU [00:49:38]CAPDU: 80 17 00 00 [00:49:38]Write to MH i2c: E2 08 00 A2 0C 80 17 00 00 00 00 00 00 2E [00:49:38]Write i2c OK [00:49:38]MH_I2C_Read... [00:49:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:49:38]Read from MH i2c: E2 [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: E2 D6 00 [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: E2 D6 00 A2 0C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 10 [00:49:38]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:49:38]wFMCommunicate OK [00:49:38]SAM_PROTO_GetShiftData done [00:49:38]requested_item shift.sale.total_cash is exist - process it [00:49:38]requested_item shift.sale_refund.total is exist - process it [00:49:38]requested_item shift.sale_refund.total_cash is exist - process it [00:49:38]requested_item shift.buy.total is exist - process it [00:49:38]requested_item shift.buy.total_cash is exist - process it [00:49:38]produce_requested_data done [00:49:38]produce_requested_data return {"fm.sale.total":76812481.06,"fm.sale_refund.total":3419000.00,"fm.buy.total":0.00,"shift.sale.total":57751.24,"shift.sale.total_cash":19947.00,"shift.sale_refund.total":7936.00,"shift.sale_refund.total_cash":7936.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:49:38]process_action_free get_value [00:49:38]json_value_free [00:49:38]json_value_free done [00:49:38]process_json_proto returns [00:49:38]Send response to host [00:49:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76812481.06,"fm.sale_refund.total":3419000.00,"fm.buy.total":0.00,"shift.sale.total":57751.24,"shift.sale.total_cash":19947.00,"shift.sale_refund.total":7936.00,"shift.sale_refund.total_cash":7936.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:49:38]free response buf [00:49:38]execute_script done [00:49:38]execute_script returns [00:49:38]free content buf [00:49:38]Sock 9.Close socket [00:49:38]Sock 9.Thread stoped [00:49:38]accept exits with 7 [00:49:38]New connection [00:49:38]New thread 3067448676 created [00:49:38]Thread 3067305316 joined [00:49:38]Waiting for new connection... [00:49:38] Sock 7.Parse request [00:49:38]Sock 7.Check first char [00:49:38]Sock 7.First char is OK [00:49:38]request: POST /json_proto HTTP/1.0 [00:49:38]Method: POST [00:49:38]URL: /json_proto [00:49:38]Method is POST - this is cgi request [00:49:38]url: /json_proto [00:49:38]query_string will be loaded in cgi processing [00:49:38]execute_cgi json_proto POST (null) [00:49:38]execute_cgi path=json_proto method=POST [00:49:38]POST find Content-Length [00:49:38]Host: 172.17.58.67:8080 [00:49:38]Content-Length: 271 [00:49:38]Content-Type: application/json [00:49:38] [00:49:38]POST finish read [00:49:38]Found Content-Length = 271 [00:49:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:49:38]execute_script... [00:49:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041E\u0432\u0430\u0441\u0431\u0435\u043A\u043E\u0432\u0430 \u041B. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:49:38]POST & json_proto [00:49:38]process_json_proto [00:49:38]json parsed OK: [00:49:38]protocol is kg_v1.0 [00:49:38]action value=open_shift [00:49:38]process_action open_shift [00:49:38]cmd_open_shift [00:49:38]MH_GetDate [00:49:38]Write to MH i2c: F0 00 00 A3 0C 9E [00:49:38]Write i2c OK [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: F0 [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: F0 09 00 [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: F0 09 00 A3 0C 00 24 FF BB 66 94 51 63 64 97 [00:49:38]GetLastDocTimeStamp 1723595183 [00:49:38]current date 1723596580 [00:49:38]FM_GetShiftState [00:49:38]SAM_PROTO_GetShiftState [00:49:38]wFMCommunicate request_size=4 [00:49:38]MH_SAM_APDU [00:49:38]CAPDU: 80 13 01 00 [00:49:38]Write to MH i2c: E2 08 00 A4 0C 80 13 01 00 00 00 00 00 2D [00:49:38]Write i2c OK [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: E2 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:38] [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: E2 0E 00 [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: E2 0E 00 A4 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 38 [00:49:38]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:49:38]wFMCommunicate OK [00:49:38]SAM_PROTO_GetShiftState done [00:49:38]FM_GetShiftState done [00:49:38]KKMCreateOpenShiftDocument [00:49:38]Load OK [00:49:38]Malloc new data [00:49:38]MH_GetDate [00:49:38]Write to MH i2c: F0 00 00 A5 0C A0 [00:49:38]Write i2c OK [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: F0 [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: F0 09 00 [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: F0 09 00 A5 0C 00 24 FF BB 66 94 51 63 64 99 [00:49:38]Malloc new data [00:49:38]KKMCreateOpenShiftDocument OK [00:49:38]KKMSetOpenShiftData OK [00:49:38]ProcessDocumentItem done err = 0, tmpTLVsize=203 [00:49:38]tlvbuf is 007111B0 [00:49:38]KKMLoadAndSignOpenShiftData [00:49:38]SAM_PROTO_ProcessDocument [00:49:38]wFMCommunicate request_size=9 [00:49:38]MH_SAM_APDU [00:49:38]CAPDU: 80 15 01 00 04 02 00 CB 00 [00:49:38]Write to MH i2c: E2 0C 00 A6 0C 80 15 01 00 04 00 02 00 CB 00 00 00 06 [00:49:38]Write i2c OK [00:49:38]MH_I2C_Read... [00:49:38]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:49:38]Read from MH i2c: E2 [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: E2 03 00 [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: E2 03 00 A6 0C 00 90 00 26 [00:49:38]RAPDU: 90 00 [00:49:38]wFMCommunicate OK [00:49:38]wFMCommunicate request_size=23 [00:49:38]MH_SAM_APDU [00:49:38]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:49:38]Write to MH i2c: E2 1A 00 A7 0C 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 28 [00:49:38]Write i2c OK [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: E2 [00:49:38]MH_I2C_Read... [00:49:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:49:38]Read from MH i2c: E2 03 00 [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: E2 03 00 A7 0C 00 90 00 27 [00:49:38]RAPDU: 90 00 [00:49:38]wFMCommunicate OK [00:49:38]wFMCommunicate request_size=34 [00:49:38]MH_SAM_APDU [00:49:38]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 9E D0 B2 D0 B0 D1 81 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 9B 2E 20 [00:49:38]Write to MH i2c: E2 25 00 A8 0C 80 15 02 00 1D 00 FD 03 19 00 D0 9E D0 B2 D0 B0 D1 81 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 9B 2E 20 00 00 42 [00:49:38]Write i2c OK [00:49:38]MH_I2C_Read... [00:49:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:49:38]Read from MH i2c: E2 [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: E2 03 00 [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: E2 03 00 A8 0C 00 90 00 28 [00:49:38]RAPDU: 90 00 [00:49:38]wFMCommunicate OK [00:49:38]wFMCommunicate request_size=88 [00:49:38]MH_SAM_APDU [00:49:38]CAPDU: 80 15 02 00 53 F1 03 4F 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D0 BD D1 82 2C 20 D1 83 D0 BB 2E 20 D0 A6 D0 B5 D0 BC D0 B7 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 39 20 D0 90 2C 20 34 32 2E 38 38 39 33 35 37 2C 20 37 34 2E 38 34 30 33 31 33 [00:49:38]Write to MH i2c: E2 5B 00 A9 0C 80 15 02 00 53 00 F1 03 4F 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D0 BD D1 82 2C 20 D1 83 D0 BB 2E 20 D0 A6 D0 B5 D0 BC D0 B7 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 39 20 D0 90 2C 20 34 32 2E 38 38 39 33 35 37 2C 20 37 34 2E 38 34 30 33 31 33 00 00 9F [00:49:38]Write i2c OK [00:49:38]MH_I2C_Read... [00:49:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:49:38]Read from MH i2c: E2 [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: E2 03 00 [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: E2 03 00 A9 0C 00 90 00 29 [00:49:38]RAPDU: 90 00 [00:49:38]wFMCommunicate OK [00:49:38]wFMCommunicate request_size=50 [00:49:38]MH_SAM_APDU [00:49:38]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 33 39 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:49:38]Write to MH i2c: E2 35 00 AA 0C 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 33 39 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 B1 [00:49:38]Write i2c OK [00:49:38]MH_I2C_Read... [00:49:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:49:38]Read from MH i2c: E2 [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: E2 03 00 [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: E2 03 00 AA 0C 00 90 00 2A [00:49:38]RAPDU: 90 00 [00:49:38]wFMCommunicate OK [00:49:38]wFMCommunicate request_size=13 [00:49:38]MH_SAM_APDU [00:49:38]CAPDU: 80 15 02 00 08 F4 03 04 00 24 FF BB 66 [00:49:38]Write to MH i2c: E2 10 00 AB 0C 80 15 02 00 08 00 F4 03 04 00 24 FF BB 66 00 00 86 [00:49:38]Write i2c OK [00:49:38]MH_I2C_Read... [00:49:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:49:38]Read from MH i2c: E2 [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: E2 03 00 [00:49:38]MH_I2C_Read... [00:49:38]Read from MH i2c: E2 03 00 AB 0C 00 90 00 2B [00:49:38]RAPDU: 90 00 [00:49:38]wFMCommunicate OK [00:49:38]wFMCommunicate request_size=25 [00:49:38]MH_SAM_APDU [00:49:38]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 [00:49:38]Write to MH i2c: E2 1C 00 AC 0C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 00 00 97 [00:49:38]Write i2c OK [00:49:38]MH_I2C_Read... [00:49:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:49:39]Read from MH i2c: E2 [00:49:39]MH_I2C_Read... [00:49:39]Read from MH i2c: E2 03 00 [00:49:39]MH_I2C_Read... [00:49:39]Read from MH i2c: E2 03 00 AC 0C 00 90 00 2C [00:49:39]RAPDU: 90 00 [00:49:39]wFMCommunicate OK [00:49:39]wFMCommunicate request_size=4 [00:49:39]MH_SAM_APDU [00:49:39]CAPDU: 80 15 03 00 [00:49:39]Write to MH i2c: E2 08 00 AD 0C 80 15 03 00 00 00 00 00 3A [00:49:39]Write i2c OK [00:49:39]MH_I2C_Read... [00:49:39]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:49:39]Read from MH i2c: E2 [00:49:39]MH_I2C_Read... [00:49:39]Read from MH i2c: E2 38 00 [00:49:39]MH_I2C_Read... [00:49:39]Read from MH i2c: E2 38 00 AD 0C 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 49 14 01 00 0E 04 04 00 D3 01 00 00 35 04 06 00 61 02 5E 44 D4 3D 90 00 50 [00:49:39]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 49 14 01 00 0E 04 04 00 D3 01 00 00 35 04 06 00 61 02 5E 44 D4 3D 90 00 [00:49:39]wFMCommunicate OK [00:49:39]SAM_PROTO_ProcessDocument answer len = 51 [00:49:39]SAM_PROTO_ProcessDocument done [00:49:39]SetTLVBufToDocument [00:49:39]Processing tag 1209 (04B9) [00:49:39]Malloc new data [00:49:39]Processing tag 1041 (0411) [00:49:39]Processing tag 1040 (0410) [00:49:39]Malloc new data [00:49:39]Processing tag 1038 (040E) [00:49:39]Malloc new data [00:49:39]Processing tag 1077 (0435) [00:49:39]Malloc new data [00:49:39]SetTLVBufToDocument err=0 [00:49:39]KKMLoadAndSignOpenShiftData store KKM data [00:49:39]KKMLoadAndSignOpenShiftData err=0 [00:49:39]Отчет об открытии Ñмены ФФД: 1.0 ИÐÐ: 02508201610067 КаÑÑир: ОваÑбекова Л. ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" 14.08.2024 00:49 Смена: 467 РÐМ: 0000000000090913 ЗÐМ: 0300000140 ФД: 70729 ФМ: 0000000000874915 ФПД: 106662799397949 [00:49:39]StoreToDocumentArchive [00:49:39]shift 467 fd 70729 [00:49:39]Create dir for shift 0467 [00:49:39]save to /storage/0467/doc_00070729 [00:49:39]save last doc name /storage/0467/doc_00070729 to /storage/kkm_last_doc_name [00:49:39]save OK [00:49:39]Clear old archive folders... [00:49:39]Remove dir /storage/0466 [00:49:39]opendir ok [00:49:39]file . [00:49:39]file .. [00:49:39]file doc_00070646 [00:49:39]remove file /storage/0466/doc_00070646 [00:49:39]file doc_00070647 [00:49:39]remove file /storage/0466/doc_00070647 [00:49:39]file doc_00070648 [00:49:39]remove file /storage/0466/doc_00070648 [00:49:39]file doc_00070649 [00:49:39]remove file /storage/0466/doc_00070649 [00:49:39]file doc_00070650 [00:49:39]remove file /storage/0466/doc_00070650 [00:49:39]file doc_00070651 [00:49:39]remove file /storage/0466/doc_00070651 [00:49:39]file doc_00070652 [00:49:39]remove file /storage/0466/doc_00070652 [00:49:39]file doc_00070653 [00:49:39]remove file /storage/0466/doc_00070653 [00:49:39]file doc_00070654 [00:49:39]remove file /storage/0466/doc_00070654 [00:49:39]file doc_00070655 [00:49:39]remove file /storage/0466/doc_00070655 [00:49:39]file doc_00070656 [00:49:39]remove file /storage/0466/doc_00070656 [00:49:39]file doc_00070657 [00:49:39]remove file /storage/0466/doc_00070657 [00:49:39]file doc_00070658 [00:49:39]remove file /storage/0466/doc_00070658 [00:49:39]file doc_00070659 [00:49:39]remove file /storage/0466/doc_00070659 [00:49:39]file doc_00070660 [00:49:39]remove file /storage/0466/doc_00070660 [00:49:39]file doc_00070661 [00:49:39]remove file /storage/0466/doc_00070661 [00:49:39]file doc_00070662 [00:49:39]remove file /storage/0466/doc_00070662 [00:49:39]file doc_00070663 [00:49:39]remove file /storage/0466/doc_00070663 [00:49:39]file doc_00070664 [00:49:39]remove file /storage/0466/doc_00070664 [00:49:39]file doc_00070665 [00:49:39]remove file /storage/0466/doc_00070665 [00:49:39]file doc_00070666 [00:49:39]remove file /storage/0466/doc_00070666 [00:49:39]file doc_00070667 [00:49:39]remove file /storage/0466/doc_00070667 [00:49:39]file doc_00070668 [00:49:39]remove file /storage/0466/doc_00070668 [00:49:39]file doc_00070669 [00:49:39]remove file /storage/0466/doc_00070669 [00:49:39]file doc_00070670 [00:49:39]remove file /storage/0466/doc_00070670 [00:49:39]file doc_00070671 [00:49:39]remove file /storage/0466/doc_00070671 [00:49:39]file doc_00070672 [00:49:39]remove file /storage/0466/doc_00070672 [00:49:39]file doc_00070673 [00:49:39]remove file /storage/0466/doc_00070673 [00:49:39]file doc_00070674 [00:49:39]remove file /storage/0466/doc_00070674 [00:49:39]file doc_00070675 [00:49:39]remove file /storage/0466/doc_00070675 [00:49:39]file doc_00070676 [00:49:39]remove file /storage/0466/doc_00070676 [00:49:39]file doc_00070677 [00:49:39]remove file /storage/0466/doc_00070677 [00:49:39]file doc_00070678 [00:49:39]remove file /storage/0466/doc_00070678 [00:49:39]file doc_00070679 [00:49:39]remove file /storage/0466/doc_00070679 [00:49:39]file doc_00070680 [00:49:39]remove file /storage/0466/doc_00070680 [00:49:39]file doc_00070681 [00:49:39]remove file /storage/0466/doc_00070681 [00:49:39]file doc_00070682 [00:49:39]remove file /storage/0466/doc_00070682 [00:49:39]file doc_00070683 [00:49:39]remove file /storage/0466/doc_00070683 [00:49:39]file doc_00070684 [00:49:39]remove file /storage/0466/doc_00070684 [00:49:39]file doc_00070685 [00:49:39]remove file /storage/0466/doc_00070685 [00:49:39]file doc_00070686 [00:49:39]remove file /storage/0466/doc_00070686 [00:49:39]file doc_00070687 [00:49:39]remove file /storage/0466/doc_00070687 [00:49:39]file doc_00070688 [00:49:39]remove file /storage/0466/doc_00070688 [00:49:39]file doc_00070689 [00:49:39]remove file /storage/0466/doc_00070689 [00:49:39]file doc_00070690 [00:49:39]remove file /storage/0466/doc_00070690 [00:49:39]file doc_00070691 [00:49:39]remove file /storage/0466/doc_00070691 [00:49:39]file doc_00070692 [00:49:39]remove file /storage/0466/doc_00070692 [00:49:39]file doc_00070693 [00:49:39]remove file /storage/0466/doc_00070693 [00:49:39]file doc_00070694 [00:49:39]remove file /storage/0466/doc_00070694 [00:49:39]file doc_00070695 [00:49:39]remove file /storage/0466/doc_00070695 [00:49:39]file doc_00070696 [00:49:39]remove file /storage/0466/doc_00070696 [00:49:39]file doc_00070697 [00:49:39]remove file /storage/0466/doc_00070697 [00:49:39]file doc_00070698 [00:49:39]remove file /storage/0466/doc_00070698 [00:49:39]file doc_00070699 [00:49:39]remove file /storage/0466/doc_00070699 [00:49:39]file doc_00070700 [00:49:39]remove file /storage/0466/doc_00070700 [00:49:39]file doc_00070701 [00:49:39]remove file /storage/0466/doc_00070701 [00:49:39]file doc_00070702 [00:49:39]remove file /storage/0466/doc_00070702 [00:49:39]file doc_00070703 [00:49:39]remove file /storage/0466/doc_00070703 [00:49:39]file doc_00070704 [00:49:39]remove file /storage/0466/doc_00070704 [00:49:39]file doc_00070705 [00:49:39]remove file /storage/0466/doc_00070705 [00:49:39]file doc_00070706 [00:49:39]remove file /storage/0466/doc_00070706 [00:49:39]file doc_00070707 [00:49:39]remove file /storage/0466/doc_00070707 [00:49:39]file doc_00070708 [00:49:39]remove file /storage/0466/doc_00070708 [00:49:39]file doc_00070709 [00:49:39]remove file /storage/0466/doc_00070709 [00:49:39]file doc_00070710 [00:49:39]remove file /storage/0466/doc_00070710 [00:49:39]file doc_00070711 [00:49:39]remove file /storage/0466/doc_00070711 [00:49:39]file doc_00070712 [00:49:39]remove file /storage/0466/doc_00070712 [00:49:39]file doc_00070713 [00:49:39]remove file /storage/0466/doc_00070713 [00:49:39]file doc_00070714 [00:49:39]remove file /storage/0466/doc_00070714 [00:49:39]file doc_00070715 [00:49:39]remove file /storage/0466/doc_00070715 [00:49:39]file doc_00070716 [00:49:39]remove file /storage/0466/doc_00070716 [00:49:39]file doc_00070717 [00:49:39]remove file /storage/0466/doc_00070717 [00:49:39]file doc_00070718 [00:49:39]remove file /storage/0466/doc_00070718 [00:49:39]file doc_00070719 [00:49:39]remove file /storage/0466/doc_00070719 [00:49:39]file doc_00070720 [00:49:39]remove file /storage/0466/doc_00070720 [00:49:39]file doc_00070721 [00:49:39]remove file /storage/0466/doc_00070721 [00:49:39]file doc_00070722 [00:49:39]remove file /storage/0466/doc_00070722 [00:49:39]file doc_00070723 [00:49:39]remove file /storage/0466/doc_00070723 [00:49:39]file doc_00070724 [00:49:39]remove file /storage/0466/doc_00070724 [00:49:39]file doc_00070725 [00:49:39]remove file /storage/0466/doc_00070725 [00:49:39]file doc_00070726 [00:49:39]remove file /storage/0466/doc_00070726 [00:49:39]file doc_00070727 [00:49:39]remove file /storage/0466/doc_00070727 [00:49:39]file doc_00070728 [00:49:39]remove file /storage/0466/doc_00070728 [00:49:39]remove dir /storage/0466 [00:49:39]ProcessDocumentItem done err = 0, tmpTLVsize=254 [00:49:39]tlvbuf is 00716020 [00:49:39]SAM_PROTO_ClearQueue [00:49:39]wFMCommunicate request_size=4 [00:49:39]MH_SAM_APDU [00:49:39]CAPDU: 80 09 00 00 [00:49:39]Write to MH i2c: E2 08 00 AE 0C 80 09 00 00 00 00 00 00 2C [00:49:39]Write i2c OK [00:49:39]MH_I2C_Read... [00:49:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:49:39]Read from MH i2c: E2 [00:49:39]MH_I2C_Read... [00:49:39]Read from MH i2c: E2 03 00 [00:49:39]MH_I2C_Read... [00:49:39]Read from MH i2c: E2 03 00 AE 0C 00 90 00 2E [00:49:39]RAPDU: 90 00 [00:49:39]wFMCommunicate OK [00:49:39]SAM_PROTO_ClearQueue done [00:49:39]KKMCreateOFDPacket [00:49:39]OFDProtocolAddRootSTLVToBuf [00:49:39]FM_MakeSignedData [00:49:39]FM_MakeSignedData [00:49:39]SAM_PROTO_SignData [00:49:39]wFMCommunicate request_size=4 [00:49:39]MH_SAM_APDU [00:49:39]CAPDU: 80 0D 01 02 [00:49:39]Write to MH i2c: E2 08 00 AF 0C 80 0D 01 02 00 00 00 00 34 [00:49:39]Write i2c OK [00:49:39]MH_I2C_Read... [00:49:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:49:39]Read from MH i2c: E2 [00:49:39]MH_I2C_Read... [00:49:39]Read from MH i2c: E2 03 00 [00:49:39]MH_I2C_Read... [00:49:39]Read from MH i2c: E2 03 00 AF 0C 00 90 00 2F [00:49:39]RAPDU: 90 00 [00:49:39]wFMCommunicate OK [00:49:39]wFMCommunicate request_size=255 [00:49:39]MH_SAM_APDU [00:49:39]CAPDU: 80 0D 02 02 FA 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9E D0 B2 D0 B0 D1 81 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 9B 2E 20 F1 03 4F 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D0 BD D1 82 2C 20 D1 83 D0 BB 2E 20 D0 A6 D0 B5 D0 BC D0 B7 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 39 20 D0 90 2C 20 34 32 2E 38 38 39 33 35 37 2C 20 37 34 2E 38 34 30 33 31 33 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 33 39 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 24 FF BB 66 0E 04 04 00 D3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 49 14 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 35 04 [00:49:39]Write to MH i2c: E2 02 01 B0 0C 80 0D 02 02 FA 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9E D0 B2 D0 B0 D1 81 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 9B 2E 20 F1 03 4F 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D0 BD D1 82 2C 20 D1 83 D0 BB 2E 20 D0 A6 D0 B5 D0 BC D0 B7 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 39 20 D0 90 2C 20 34 32 2E 38 38 39 33 35 37 2C 20 37 34 2E 38 34 30 33 31 33 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 33 39 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 24 FF BB 66 0E 04 04 00 D3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 49 14 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 35 04 00 00 CA [00:49:40]Write i2c OK [00:49:40]MH_I2C_Read... [00:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:40]Read from MH i2c: E2 [00:49:40]MH_I2C_Read... [00:49:40]Read from MH i2c: E2 03 00 [00:49:40]MH_I2C_Read... [00:49:40]Read from MH i2c: E2 03 00 B0 0C 00 90 00 30 [00:49:40]RAPDU: 90 00 [00:49:40]wFMCommunicate OK [00:49:40]wFMCommunicate request_size=13 [00:49:40]MH_SAM_APDU [00:49:40]CAPDU: 80 0D 02 02 08 06 00 61 02 5E 44 D4 3D [00:49:40]Write to MH i2c: E2 10 00 B1 0C 80 0D 02 02 08 00 06 00 61 02 5E 44 D4 3D 00 00 63 [00:49:40]Write i2c OK [00:49:40]MH_I2C_Read... [00:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:40]Read from MH i2c: E2 [00:49:40]MH_I2C_Read... [00:49:40]Read from MH i2c: E2 03 00 [00:49:40]MH_I2C_Read... [00:49:40]Read from MH i2c: E2 03 00 B1 0C 00 90 00 31 [00:49:40]RAPDU: 90 00 [00:49:40]wFMCommunicate OK [00:49:40]wFMCommunicate request_size=4 [00:49:40]MH_SAM_APDU [00:49:40]CAPDU: 80 0D 03 02 [00:49:40]Write to MH i2c: E2 08 00 B2 0C 80 0D 03 02 00 00 00 00 39 [00:49:40]Write i2c OK [00:49:40]MH_I2C_Read... [00:49:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:49:40]Read from MH i2c: E2 [00:49:40]MH_I2C_Read... [00:49:40]Read from MH i2c: E2 0B 00 [00:49:40]MH_I2C_Read... [00:49:40]Read from MH i2c: E2 0B 00 B2 0C 00 8B 09 22 64 87 E3 BB F4 90 00 6D [00:49:40]RAPDU: 8B 09 22 64 87 E3 BB F4 90 00 [00:49:40]wFMCommunicate OK [00:49:40]SAM_PROTO_SignData done [00:49:40]FM_MakeSignedData done [00:49:40]CreateOFDProtocolMessage [00:49:40]wFMCommunicate request_size=4 [00:49:40]MH_SAM_APDU [00:49:40]CAPDU: 80 11 00 00 [00:49:40]Write to MH i2c: E2 08 00 B3 0C 80 11 00 00 00 00 00 00 39 [00:49:40]Write i2c OK [00:49:40]MH_I2C_Read... [00:49:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:40]Read from MH i2c: E2 [00:49:40]MH_I2C_Read... [00:49:40]Read from MH i2c: E2 17 00 [00:49:40]MH_I2C_Read... [00:49:40]Read from MH i2c: E2 17 00 B3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 8E [00:49:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:49:40]wFMCommunicate OK [00:49:40]CreateOFDProtocolMessage done [00:49:40]OFDSenderStorePacket 70729 [00:49:40]StoreOFDPacket docnum=70729 [00:49:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 12 01 00 00 E9 52 0A 01 0A 9C 5A 02 01 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9E D0 B2 D0 B0 D1 81 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 9B 2E 20 F1 03 4F 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D0 BD D1 82 2C 20 D1 83 D0 BB 2E 20 D0 A6 D0 B5 D0 BC D0 B7 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 39 20 D0 90 2C 20 34 32 2E 38 38 39 33 35 37 2C 20 37 34 2E 38 34 30 33 31 33 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 33 39 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 24 FF BB 66 0E 04 04 00 D3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 49 14 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 35 04 06 00 61 02 5E 44 D4 3D 8B 09 22 64 87 E3 BB F4 [00:49:40]CheckFolder [00:49:40]dirname=/storage/ofd_packets [00:49:40]CheckFolder done [00:49:40]ProducePacketName [00:49:40]name=ofd_packets/00070729 [00:49:40]NVStorageSaveData ofd_packets/00070729 [00:49:40]File name is /storage/ofd_packets/00070729 [00:49:40]Write 304 bytes [00:49:40]NVStorageSaveData done [00:49:40]OFDSenderStorePacket done [00:49:40]KKMCreateOFDPacket done [00:49:40]NVStorageSaveData kkm_last_timestamp [00:49:40]File name is /storage/kkm_last_timestamp [00:49:40]Write 4 bytes [00:49:40]NVStorageSaveData done [00:49:40]ExternCall_PrintAddStr [00:49:40]wPrintStart [00:49:40]Write to MH i2c: 01 00 00 B4 0C C0 [00:49:40]Write i2c OK [00:49:40]MH_I2C_Read... [00:49:40]Read from MH i2c: 01 [00:49:40]MH_I2C_Read... [00:49:40]Read from MH i2c: 01 07 00 [00:49:40]MH_I2C_Read... [00:49:40]Read from MH i2c: 01 07 00 B4 0C 00 00 00 00 00 FF 0F D5 [00:49:40]RasterBufferAndPrint [00:49:40]line Отчет об открытии Ñмены [00:49:40]line ФФД: 1.0 [00:49:40]line ИÐÐ: 02508201610067 [00:49:40]line КаÑÑир: ОваÑбекова Л. [00:49:40]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [00:49:40]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [00:49:40]line 14.08.2024 00:49 [00:49:40]line Смена: 467 [00:49:40]line РÐМ: 0000000000090913 [00:49:40]line ЗÐМ: 0300000140 [00:49:40]line ФД: 70729 [00:49:40]line ФМ: 0000000000874915 [00:49:40]line ФПД: 106662799397949 [00:49:40]written 0, free lines is 4095 [00:49:40]OFD Sender: Processing packet 70729 [packets to send 67, broken 66] [00:49:40]ProducePacketName [00:49:40]name=ofd_packets/00070729 [00:49:40]OFD Sender: To server: ‡•öpG, [00:49:40]CommunicateWithHost lk.salyk.kg:30040 [00:49:40]ConnectInit lk.salyk.kg [00:49:40]Connected sock=10 [00:49: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 39 31 35 12 01 00 00 E9 52 0A 01 0A 9C 5A 02 01 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9E D0 B2 D0 B0 D1 81 D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 9B 2E 20 F1 03 4F 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D0 BD D1 82 2C 20 D1 83 D0 BB 2E 20 D0 A6 D0 B5 D0 BC D0 B7 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 39 20 D0 90 2C 20 34 32 2E 38 38 39 33 35 37 2C 20 37 34 2E 38 34 30 33 31 33 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 33 39 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 24 FF BB 66 0E 04 04 00 D3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 49 14 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 35 04 06 00 61 02 5E 44 D4 3D 8B 09 22 64 87 E3 BB F4 [00:49:40]Write to MH i2c: 01 00 00 C6 0C D2 [00:49:40]Write i2c OK [00:49:40]MH_I2C_Read... [00:49:40]Read from MH i2c: 01 [00:49:40]MH_I2C_Read... [00:49:40]Read from MH i2c: 01 07 00 [00:49:40]MH_I2C_Read... [00:49:40]Read from MH i2c: 01 07 00 C6 0C 00 00 00 00 00 69 0E 50 [00:49:40]RasterBufferAndPrint [00:49:40]line [00:49:40]line [00:49:40]line [00:49:40]line [00:49:40]line [00:49:40]written 0, free lines is 3705 [00:49:40]MH_Cut [00:49:40]Write to MH i2c: D1 01 00 CD 0C 01 AB [00:49:40]Write i2c OK [00:49:40]MH_I2C_Read... [00:49:40]Read from MH i2c: D1 [00:49:40]MH_I2C_Read... [00:49:40]Read from MH i2c: D1 01 00 [00:49:40]MH_I2C_Read... [00:49:40]Read from MH i2c: D1 01 00 CD 0C 00 AA [00:49:40]Write to MH i2c: 01 00 00 CE 0C DA [00:49:40]Write i2c OK [00:49:40]MH_I2C_Read... [00:49:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 EA 8C 47 00 B8 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 39 31 35 10 04 04 00 49 14 01 00 F4 03 04 00 0E A6 BB 66 B6 04 01 00 00 79 01 5D AE DC 8B BF 08 [00:49:40]CommunicateWithHost err = 0 [00:49:40]CheckOFDResponse [00:49:40]1017 (14) - 77093643461234 [00:49:40]1041 (16) - 0000000000874915 [00:49:40]1040 (4) - 70729 [00:49:40]1012 (4) - 13.08.2024 18:29 [00:49:40]1206 (1) - 0 [00:49:40]OFD Sender: Remove packet 70729 [00:49:40]ProducePacketName [00:49:40]name=ofd_packets/00070729 [00:49:40]NVStorageDeleteData [00:49:41]*** Cut start [00:49:41]*** Purtial cut [00:49:41]*** Stage 1: CUTSNS_PIN = 1 [00:49:41]OFD Sender: No OFD packet to send [00:49:41]*** Stop cut motor [00:49:41]*** Cut end [00:49:41]Read from MH i2c: 01 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: 01 07 00 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: 01 07 00 CE 0C 00 00 00 00 00 FF 0F EF [00:49:41]process_action open_shift done [00:49:41]requested_data is exist [00:49:41]produce_requested_data [00:49:41]requested_item fd.num is exist - process it [00:49:41]SAM_PROTO_GetFieldsCounters [00:49:41]wFMCommunicate request_size=4 [00:49:41]MH_SAM_APDU [00:49:41]CAPDU: 80 13 00 00 [00:49:41]Write to MH i2c: E2 08 00 CF 0C 80 13 00 00 00 00 00 00 57 [00:49:41]Write i2c OK [00:49:41]MH_I2C_Read... [00:49:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:49:41]Read from MH i2c: E2 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: E2 62 00 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: E2 62 00 CF 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 49 14 01 00 0E 04 04 00 D3 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [00:49: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 49 14 01 00 0E 04 04 00 D3 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:49:41]wFMCommunicate OK [00:49:41]SAM_PROTO_GetFieldsCounters done [00:49:41]requested_item shift.num is exist - process it [00:49:41]requested_item shift.opened is exist - process it [00:49:41]req_shift_opened [00:49:41]FM_GetShiftState [00:49:41]SAM_PROTO_GetShiftState [00:49:41]wFMCommunicate request_size=4 [00:49:41]MH_SAM_APDU [00:49:41]CAPDU: 80 13 01 00 [00:49:41]Write to MH i2c: E2 08 00 D0 0C 80 13 01 00 00 00 00 00 59 [00:49:41]Write i2c OK [00:49:41]MH_I2C_Read... [00:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:41]Read from MH i2c: E2 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: E2 0E 00 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: E2 0E 00 D0 0C 00 09 00 01 24 FF BB 66 00 00 00 00 90 00 A9 [00:49:41]RAPDU: 09 00 01 24 FF BB 66 00 00 00 00 90 00 [00:49:41]wFMCommunicate OK [00:49:41]SAM_PROTO_GetShiftState done [00:49:41]FM_GetShiftState done [00:49:41]req_shift_opened done [00:49:41]requested_item shift.open_date is exist - process it [00:49:41]req_shift_open_date [00:49:41]req_shift_open_date done [00:49:41]produce_requested_data done [00:49:41]produce_requested_data return {"fd.num":70729,"shift.num":467,"shift.opened":1,"shift.open_date":1723596580} [00:49:41]process_action_free open_shift [00:49:41]json_value_free [00:49:41]json_value_free done [00:49:41]process_json_proto returns [00:49:41]Send response to host [00:49:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":70729,"shift.num":467,"shift.opened":1,"shift.open_date":1723596580}}} [00:49:41]free response buf [00:49:41]execute_script done [00:49:41]execute_script returns [00:49:41]free content buf [00:49:41]Sock 7.Close socket [00:49:41]Sock 7.Thread stoped [00:49:41]accept exits with 9 [00:49:41]New connection [00:49:41]New thread 3067305316 created [00:49:41]Thread 3067448676 joined [00:49:41]Waiting for new connection... [00:49:41] Sock 9.Parse request [00:49:41]Sock 9.Check first char [00:49:42]Sock 9.First char is OK [00:49:42]request: POST /json_proto HTTP/1.0 [00:49:42]Method: POST [00:49:42]URL: /json_proto [00:49:42]Method is POST - this is cgi request [00:49:42]url: /json_proto [00:49:42]query_string will be loaded in cgi processing [00:49:42]execute_cgi json_proto POST (null) [00:49:42]execute_cgi path=json_proto method=POST [00:49:42]POST find Content-Length [00:49:42]Host: 172.17.58.67:8080 [00:49:42]Content-Length: 331 [00:49:42]Content-Type: application/json [00:49:42] [00:49:42]POST finish read [00:49:42]Found Content-Length = 331 [00:49:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:49:42]execute_script... [00:49:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:49:42]POST & json_proto [00:49:42]process_json_proto [00:49:42]json parsed OK: [00:49:42]protocol is kg_v1.0 [00:49:42]action value=get_value [00:49:42]process_action get_value [00:49:42]cmd_get_value [00:49:42]process_action get_value done [00:49:42]requested_data is exist [00:49:42]produce_requested_data [00:49:42]requested_item fm.sale.total is exist - process it [00:49:42]SAM_PROTO_GetFMData [00:49:42]wFMCommunicate request_size=4 [00:49:42]MH_SAM_APDU [00:49:42]CAPDU: 80 13 03 00 [00:49:42]Write to MH i2c: E2 08 00 D1 0C 80 13 03 00 00 00 00 00 5C [00:49:42]Write i2c OK [00:49:42]MH_I2C_Read... [00:49:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:49:43]Read from MH i2c: E2 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 FD 00 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 FD 00 D1 0C 00 C8 04 85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 90 00 86 [00:49:43]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 A3 10 01 00 69 04 A3 00 6F 04 04 00 6C 07 01 00 B1 04 05 00 6A 8B D6 C9 01 70 04 05 00 B8 DD B8 5F 01 72 04 04 00 B2 AD 1D 6A 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 6C 58 A0 30 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 7F 51 0D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 37 09 00 00 B1 04 04 00 E0 FA 60 14 70 04 04 00 44 C2 5D 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0A 1E 2A 02 90 00 [00:49:43]wFMCommunicate OK [00:49:43]wFMCommunicate request_size=4 [00:49:43]MH_SAM_APDU [00:49:43]CAPDU: 80 17 00 00 [00:49:43]Write to MH i2c: E2 08 00 D2 0C 80 17 00 00 00 00 00 00 5E [00:49:43]Write i2c OK [00:49:43]MH_I2C_Read... [00:49:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:49:43]Read from MH i2c: E2 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 FD 00 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 FD 00 D2 0C 00 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 69 [00:49:43]RAPDU: 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 B5 2C 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 [00:49:43]wFMCommunicate OK [00:49:43]wFMCommunicate request_size=4 [00:49:43]MH_SAM_APDU [00:49:43]CAPDU: 80 17 00 00 [00:49:43]Write to MH i2c: E2 08 00 D3 0C 80 17 00 00 00 00 00 00 5F [00:49:43]Write i2c OK [00:49:43]MH_I2C_Read... [00:49:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:49:43]Read from MH i2c: E2 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 FD 00 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 FD 00 D3 0C 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 37 [00:49:43]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 [00:49:44]wFMCommunicate OK [00:49:44]wFMCommunicate request_size=4 [00:49:44]MH_SAM_APDU [00:49:44]CAPDU: 80 17 00 00 [00:49:44]Write to MH i2c: E2 08 00 D4 0C 80 17 00 00 00 00 00 00 60 [00:49:44]Write i2c OK [00:49:44]MH_I2C_Read... [00:49:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:49:44]Read from MH i2c: E2 [00:49:44]MH_I2C_Read... [00:49:44]Read from MH i2c: E2 FD 00 [00:49:44]MH_I2C_Read... [00:49:44]Read from MH i2c: E2 FD 00 D4 0C 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 D8 [00:49: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 [00:49:44]wFMCommunicate OK [00:49:44]wFMCommunicate request_size=4 [00:49:44]MH_SAM_APDU [00:49:44]CAPDU: 80 17 00 00 [00:49:44]Write to MH i2c: E2 08 00 D5 0C 80 17 00 00 00 00 00 00 61 [00:49:44]Write i2c OK [00:49:44]MH_I2C_Read... [00:49:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:49:44]Read from MH i2c: E2 [00:49:44]MH_I2C_Read... [00:49:44]Read from MH i2c: E2 E5 00 [00:49:44]MH_I2C_Read... [00:49:44]Read from MH i2c: E2 E5 00 D5 0C 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 45 [00:49: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 [00:49:44]wFMCommunicate OK [00:49:44]SAM_PROTO_GetFMData done [00:49:44]requested_item fm.sale_refund.total is exist - process it [00:49:44]requested_item fm.buy.total is exist - process it [00:49:44]requested_item shift.sale.total is exist - process it [00:49:44]SAM_PROTO_GetShiftData [00:49:44]wFMCommunicate request_size=4 [00:49:44]MH_SAM_APDU [00:49:44]CAPDU: 80 13 02 00 [00:49:44]Write to MH i2c: E2 08 00 D6 0C 80 13 02 00 00 00 00 00 60 [00:49:44]Write i2c OK [00:49:44]MH_I2C_Read... [00:49:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:49:45]Read from MH i2c: E2 [00:49:45]MH_I2C_Read... [00:49:45]Read from MH i2c: E2 FD 00 [00:49:45]MH_I2C_Read... [00:49:45]Read from MH i2c: E2 FD 00 D6 0C 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 D3 [00:49:45]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:49:45]wFMCommunicate OK [00:49:45]wFMCommunicate request_size=4 [00:49:45]MH_SAM_APDU [00:49:45]CAPDU: 80 17 00 00 [00:49:45]Write to MH i2c: E2 08 00 D7 0C 80 17 00 00 00 00 00 00 63 [00:49:45]Write i2c OK [00:49:45]MH_I2C_Read... [00:49:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:49:45]Read from MH i2c: E2 [00:49:45]MH_I2C_Read... [00:49:45]Read from MH i2c: E2 FD 00 [00:49:45]MH_I2C_Read... [00:49:45]Read from MH i2c: E2 FD 00 D7 0C 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 6B [00:49:45]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:49:45]wFMCommunicate OK [00:49:45]wFMCommunicate request_size=4 [00:49:45]MH_SAM_APDU [00:49:45]CAPDU: 80 17 00 00 [00:49:45]Write to MH i2c: E2 08 00 D8 0C 80 17 00 00 00 00 00 00 64 [00:49:45]Write i2c OK [00:49:45]MH_I2C_Read... [00:49:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:49:46]Read from MH i2c: E2 [00:49:46]MH_I2C_Read... [00:49:46]Read from MH i2c: E2 FD 00 [00:49:46]MH_I2C_Read... [00:49:46]Read from MH i2c: E2 FD 00 D8 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 36 [00:49:46]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:49:46]wFMCommunicate OK [00:49:46]wFMCommunicate request_size=4 [00:49:46]MH_SAM_APDU [00:49:46]CAPDU: 80 17 00 00 [00:49:46]Write to MH i2c: E2 08 00 D9 0C 80 17 00 00 00 00 00 00 65 [00:49:46]Write i2c OK [00:49:46]MH_I2C_Read... [00:49:46]OFD Sender: No OFD packet to send [00:49:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:49:46]Read from MH i2c: E2 [00:49:46]MH_I2C_Read... [00:49:46]Read from MH i2c: E2 FD 00 [00:49:46]MH_I2C_Read... [00:49:46]Read from MH i2c: E2 FD 00 D9 0C 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 D7 [00:49:46]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:49:46]wFMCommunicate OK [00:49:46]wFMCommunicate request_size=4 [00:49:46]MH_SAM_APDU [00:49:46]CAPDU: 80 17 00 00 [00:49:46]Write to MH i2c: E2 08 00 DA 0C 80 17 00 00 00 00 00 00 66 [00:49:46]Write i2c OK [00:49:46]MH_I2C_Read... [00:49:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:49:46]Read from MH i2c: E2 [00:49:46]MH_I2C_Read... [00:49:46]Read from MH i2c: E2 BD 00 [00:49:46]MH_I2C_Read... [00:49:46]Read from MH i2c: E2 BD 00 DA 0C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4C [00: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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:49:47]wFMCommunicate OK [00:49:47]SAM_PROTO_GetShiftData done [00:49:47]requested_item shift.sale.total_cash is exist - process it [00:49:47]requested_item shift.sale_refund.total is exist - process it [00:49:47]requested_item shift.sale_refund.total_cash is exist - process it [00:49:47]requested_item shift.buy.total is exist - process it [00:49:47]requested_item shift.buy.total_cash is exist - process it [00:49:47]produce_requested_data done [00:49:47]produce_requested_data return {"fm.sale.total":76812481.06,"fm.sale_refund.total":3419000.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:49:47]process_action_free get_value [00:49:47]json_value_free [00:49:47]json_value_free done [00:49:47]process_json_proto returns [00:49:47]Send response to host [00:49:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76812481.06,"fm.sale_refund.total":3419000.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:49:47]free response buf [00:49:47]execute_script done [00:49:47]execute_script returns [00:49:47]free content buf [00:49:47]Sock 9.Close socket [00:49:47]Sock 9.Thread stoped [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]OFD Sender: No OFD packet to send [00:55:11]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:26]OFD Sender: No OFD packet to send [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:22]OFD Sender: No OFD packet to send [01:06:27]OFD Sender: No OFD packet to send [01:06:32]OFD Sender: No OFD packet to send [01:06:37]OFD Sender: No OFD packet to send [01:06:42]OFD Sender: No OFD packet to send [01:06:47]OFD Sender: No OFD packet to send [01:06:52]OFD Sender: No OFD packet to send [01:06:57]OFD Sender: No OFD packet to send [01:07:02]OFD Sender: No OFD packet to send [01:07:07]OFD Sender: No OFD packet to send [01:07:12]OFD Sender: No OFD packet to send [01:07:17]OFD Sender: No OFD packet to send [01:07:22]OFD Sender: No OFD packet to send [01:07:27]OFD Sender: No OFD packet to send [01:07:32]OFD Sender: No OFD packet to send [01:07:37]OFD Sender: No OFD packet to send [01:07:42]OFD Sender: No OFD packet to send [01:07:47]OFD Sender: No OFD packet to send [01:07:52]OFD Sender: No OFD packet to send [01:07:57]OFD Sender: No OFD packet to send [01:08:02]OFD Sender: No OFD packet to send [01:08:07]OFD Sender: No OFD packet to send [01:08:12]OFD Sender: No OFD packet to send [01:08:17]OFD Sender: No OFD packet to send [01:08:22]OFD Sender: No OFD packet to send [01:08:27]OFD Sender: No OFD packet to send [01:08:32]OFD Sender: No OFD packet to send [01:08:37]OFD Sender: No OFD packet to send [01:08:42]OFD Sender: No OFD packet to send [01:08:47]OFD Sender: No OFD packet to send [01:08:52]OFD Sender: No OFD packet to send [01:08:57]OFD Sender: No OFD packet to send [01:09:02]OFD Sender: No OFD packet to send [01:09:07]OFD Sender: No OFD packet to send [01:09:12]OFD Sender: No OFD packet to send [01:09:17]OFD Sender: No OFD packet to send [01:09:22]OFD Sender: No OFD packet to send [01:09:27]OFD Sender: No OFD packet to send [01:09:32]OFD Sender: No OFD packet to send [01:09:37]OFD Sender: No OFD packet to send [01:09:42]OFD Sender: No OFD packet to send [01:09:47]OFD Sender: No OFD packet to send [01:09:52]OFD Sender: No OFD packet to send [01:09:57]OFD Sender: No OFD packet to send [01:10:02]OFD Sender: No OFD packet to send [01:10:07]OFD Sender: No OFD packet to send [01:10:12]OFD Sender: No OFD packet to send [01:10:17]OFD Sender: No OFD packet to send [01:10:22]OFD Sender: No OFD packet to send [01:10:27]OFD Sender: No OFD packet to send [01:10:32]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:57]OFD Sender: No OFD packet to send [01:13:02]OFD Sender: No OFD packet to send [01:13:07]OFD Sender: No OFD packet to send [01:13:12]OFD Sender: No OFD packet to send [01:13:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:12]OFD Sender: No OFD packet to send [01:14:17]OFD Sender: No OFD packet to send [01:14:22]OFD Sender: No OFD packet to send [01:14:27]OFD Sender: No OFD packet to send [01:14:32]OFD Sender: No OFD packet to send [01:14:37]OFD Sender: No OFD packet to send [01:14:42]OFD Sender: No OFD packet to send [01:14:47]OFD Sender: No OFD packet to send [01:14:52]OFD Sender: No OFD packet to send [01:14:57]OFD Sender: No OFD packet to send [01:15:02]OFD Sender: No OFD packet to send [01:15:07]OFD Sender: No OFD packet to send [01:15:12]OFD Sender: No OFD packet to send [01:15:17]OFD Sender: No OFD packet to send [01:15:22]OFD Sender: No OFD packet to send [01:15:27]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:13]OFD Sender: No OFD packet to send [01:22:18]OFD Sender: No OFD packet to send [01:22:23]OFD Sender: No OFD packet to send [01:22:28]OFD Sender: No OFD packet to send [01:22:33]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:43]OFD Sender: No OFD packet to send [01:22:48]OFD Sender: No OFD packet to send [01:22:53]OFD Sender: No OFD packet to send [01:22:58]OFD Sender: No OFD packet to send [01:23:03]OFD Sender: No OFD packet to send [01:23:08]OFD Sender: No OFD packet to send [01:23:13]OFD Sender: No OFD packet to send [01:23:18]OFD Sender: No OFD packet to send [01:23:23]OFD Sender: No OFD packet to send [01:23:28]OFD Sender: No OFD packet to send [01:23:33]OFD Sender: No OFD packet to send [01:23:38]OFD Sender: No OFD packet to send [01:23:43]OFD Sender: No OFD packet to send [01:23:48]OFD Sender: No OFD packet to send [01:23:53]OFD Sender: No OFD packet to send [01:23:58]OFD Sender: No OFD packet to send [01:24:03]OFD Sender: No OFD packet to send [01:24:08]OFD Sender: No OFD packet to send [01:24:13]OFD Sender: No OFD packet to send [01:24:18]OFD Sender: No OFD packet to send [01:24:23]OFD Sender: No OFD packet to send [01:24:28]OFD Sender: No OFD packet to send [01:24:33]OFD Sender: No OFD packet to send [01:24:38]OFD Sender: No OFD packet to send [01:24:43]OFD Sender: No OFD packet to send [01:24:48]OFD Sender: No OFD packet to send [01:24:53]OFD Sender: No OFD packet to send [01:24:58]OFD Sender: No OFD packet to send [01:25:03]OFD Sender: No OFD packet to send [01:25:08]OFD Sender: No OFD packet to send [01:25:13]OFD Sender: No OFD packet to send [01:25:18]OFD Sender: No OFD packet to send [01:25:23]OFD Sender: No OFD packet to send [01:25:28]OFD Sender: No OFD packet to send [01:25:33]OFD Sender: No OFD packet to send [01:25:38]OFD Sender: No OFD packet to send [01:25:43]OFD Sender: No OFD packet to send [01:25:48]OFD Sender: No OFD packet to send [01:25:53]OFD Sender: No OFD packet to send [01:25:58]OFD Sender: No OFD packet to send [01:26:03]OFD Sender: No OFD packet to send [01:26:08]OFD Sender: No OFD packet to send [01:26:13]OFD Sender: No OFD packet to send [01:26:18]OFD Sender: No OFD packet to send [01:26:23]OFD Sender: No OFD packet to send [01:26:28]OFD Sender: No OFD packet to send [01:26:33]OFD Sender: No OFD packet to send [01:26:38]OFD Sender: No OFD packet to send [01:26:43]OFD Sender: No OFD packet to send [01:26:48]OFD Sender: No OFD packet to send [01:26:53]OFD Sender: No OFD packet to send [01:26:58]OFD Sender: No OFD packet to send [01:27:03]OFD Sender: No OFD packet to send [01:27:08]OFD Sender: No OFD packet to send [01:27:13]OFD Sender: No OFD packet to send [01:27:18]OFD Sender: No OFD packet to send [01:27:23]OFD Sender: No OFD packet to send [01:27:28]OFD Sender: No OFD packet to send [01:27:33]OFD Sender: No OFD packet to send [01:27:38]OFD Sender: No OFD packet to send [01:27:43]OFD Sender: No OFD packet to send [01:27:48]OFD Sender: No OFD packet to send [01:27:53]OFD Sender: No OFD packet to send [01:27:58]OFD Sender: No OFD packet to send [01:28:03]OFD Sender: No OFD packet to send [01:28:08]OFD Sender: No OFD packet to send [01:28:13]OFD Sender: No OFD packet to send [01:28:18]OFD Sender: No OFD packet to send [01:28:23]OFD Sender: No OFD packet to send [01:28:28]OFD Sender: No OFD packet to send [01:28:33]OFD Sender: No OFD packet to send [01:28:38]OFD Sender: No OFD packet to send [01:28:43]OFD Sender: No OFD packet to send [01:28:48]OFD Sender: No OFD packet to send [01:28:53]OFD Sender: No OFD packet to send [01:28:58]OFD Sender: No OFD packet to send [01:29:03]OFD Sender: No OFD packet to send [01:29:08]OFD Sender: No OFD packet to send [01:29:13]OFD Sender: No OFD packet to send [01:29:18]OFD Sender: No OFD packet to send [01:29:23]OFD Sender: No OFD packet to send [01:29:28]OFD Sender: No OFD packet to send [01:29:33]OFD Sender: No OFD packet to send [01:29:38]OFD Sender: No OFD packet to send [01:29:43]OFD Sender: No OFD packet to send [01:29:48]OFD Sender: No OFD packet to send [01:29:53]OFD Sender: No OFD packet to send [01:29:58]OFD Sender: No OFD packet to send [01:30:03]OFD Sender: No OFD packet to send [01:30:08]OFD Sender: No OFD packet to send [01:30:13]OFD Sender: No OFD packet to send [01:30:18]OFD Sender: No OFD packet to send [01:30:23]OFD Sender: No OFD packet to send [01:30:28]OFD Sender: No OFD packet to send [01:30:33]OFD Sender: No OFD packet to send [01:30:38]OFD Sender: No OFD packet to send [01:30:43]OFD Sender: No OFD packet to send [01:30:48]OFD Sender: No OFD packet to send [01:30:53]OFD Sender: No OFD packet to send [01:30:58]OFD Sender: No OFD packet to send [01:31:03]OFD Sender: No OFD packet to send [01:31:08]OFD Sender: No OFD packet to send [01:31:13]OFD Sender: No OFD packet to send [01:31:18]OFD Sender: No OFD packet to send [01:31:23]OFD Sender: No OFD packet to send [01:31:28]OFD Sender: No OFD packet to send [01:31:33]OFD Sender: No OFD packet to send [01:31:38]OFD Sender: No OFD packet to send [01:31:43]OFD Sender: No OFD packet to send [01:31:48]OFD Sender: No OFD packet to send [01:31:53]OFD Sender: No OFD packet to send [01:31:58]OFD Sender: No OFD packet to send [01:32:03]OFD Sender: No OFD packet to send [01:32:08]OFD Sender: No OFD packet to send [01:32:13]OFD Sender: No OFD packet to send [01:32:18]OFD Sender: No OFD packet to send [01:32:23]OFD Sender: No OFD packet to send [01:32:28]OFD Sender: No OFD packet to send [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:34]OFD Sender: No OFD packet to send [01:33:39]OFD Sender: No OFD packet to send [01:33:44]OFD Sender: No OFD packet to send [01:33:49]OFD Sender: No OFD packet to send [01:33:54]OFD Sender: No OFD packet to send [01:33:59]OFD Sender: No OFD packet to send [01:34:04]OFD Sender: No OFD packet to send [01:34:09]OFD Sender: No OFD packet to send [01:34:14]OFD Sender: No OFD packet to send [01:34:19]OFD Sender: No OFD packet to send [01:34:24]OFD Sender: No OFD packet to send [01:34:29]OFD Sender: No OFD packet to send [01:34:34]OFD Sender: No OFD packet to send [01:34:39]OFD Sender: No OFD packet to send [01:34:44]OFD Sender: No OFD packet to send [01:34:49]OFD Sender: No OFD packet to send [01:34:54]OFD Sender: No OFD packet to send [01:34:59]OFD Sender: No OFD packet to send [01:35:04]OFD Sender: No OFD packet to send [01:35:09]OFD Sender: No OFD packet to send [01:35:14]OFD Sender: No OFD packet to send [01:35:19]OFD Sender: No OFD packet to send [01:35:24]OFD Sender: No OFD packet to send [01:35:29]OFD Sender: No OFD packet to send [01:35:34]OFD Sender: No OFD packet to send [01:35:39]OFD Sender: No OFD packet to send [01:35:44]OFD Sender: No OFD packet to send [01:35:49]OFD Sender: No OFD packet to send [01:35:54]OFD Sender: No OFD packet to send [01:35:59]OFD Sender: No OFD packet to send [01:36:04]OFD Sender: No OFD packet to send [01:36:09]OFD Sender: No OFD packet to send [01:36:14]OFD Sender: No OFD packet to send [01:36:19]OFD Sender: No OFD packet to send [01:36:24]OFD Sender: No OFD packet to send [01:36:29]OFD Sender: No OFD packet to send [01:36:34]OFD Sender: No OFD packet to send [01:36:39]OFD Sender: No OFD packet to send [01:36:44]OFD Sender: No OFD packet to send [01:36:49]OFD Sender: No OFD packet to send [01:36:54]OFD Sender: No OFD packet to send [01:36:59]OFD Sender: No OFD packet to send [01:37:04]OFD Sender: No OFD packet to send [01:37:09]OFD Sender: No OFD packet to send [01:37:14]OFD Sender: No OFD packet to send [01:37:19]OFD Sender: No OFD packet to send [01:37:24]OFD Sender: No OFD packet to send [01:37:29]OFD Sender: No OFD packet to send [01:37:34]OFD Sender: No OFD packet to send [01:37:39]OFD Sender: No OFD packet to send [01:37:44]OFD Sender: No OFD packet to send [01:37:49]OFD Sender: No OFD packet to send [01:37:54]OFD Sender: No OFD packet to send [01:37:59]OFD Sender: No OFD packet to send [01:38:04]OFD Sender: No OFD packet to send [01:38:09]OFD Sender: No OFD packet to send [01:38:14]OFD Sender: No OFD packet to send [01:38:19]OFD Sender: No OFD packet to send [01:38:24]OFD Sender: No OFD packet to send [01:38:29]OFD Sender: No OFD packet to send [01:38:34]OFD Sender: No OFD packet to send [01:38:39]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:34]OFD Sender: No OFD packet to send [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:20]OFD Sender: No OFD packet to send [01:50:25]OFD Sender: No OFD packet to send [01:50:30]OFD Sender: No OFD packet to send [01:50:35]OFD Sender: No OFD packet to send [01:50:40]OFD Sender: No OFD packet to send [01:50:45]OFD Sender: No OFD packet to send [01:50:50]OFD Sender: No OFD packet to send [01:50:55]OFD Sender: No OFD packet to send [01:51:00]OFD Sender: No OFD packet to send [01:51:05]OFD Sender: No OFD packet to send [01:51:10]OFD Sender: No OFD packet to send [01:51:15]OFD Sender: No OFD packet to send [01:51:20]OFD Sender: No OFD packet to send [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:15]OFD Sender: No OFD packet to send [01:52:20]OFD Sender: No OFD packet to send [01:52:25]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:20]OFD Sender: No OFD packet to send [01:53:25]OFD Sender: No OFD packet to send [01:53:30]OFD Sender: No OFD packet to send [01:53:35]OFD Sender: No OFD packet to send [01:53:40]OFD Sender: No OFD packet to send [01:53:45]OFD Sender: No OFD packet to send [01:53:50]OFD Sender: No OFD packet to send [01:53:55]OFD Sender: No OFD packet to send [01:54:00]OFD Sender: No OFD packet to send [01:54:05]OFD Sender: No OFD packet to send [01:54:10]OFD Sender: No OFD packet to send [01:54:15]OFD Sender: No OFD packet to send [01:54:20]OFD Sender: No OFD packet to send [01:54:25]OFD Sender: No OFD packet to send [01:54:30]OFD Sender: No OFD packet to send [01:54:35]OFD Sender: No OFD packet to send [01:54:40]OFD Sender: No OFD packet to send [01:54:45]OFD Sender: No OFD packet to send [01:54:50]OFD Sender: No OFD packet to send [01:54:55]OFD Sender: No OFD packet to send [01:55:00]OFD Sender: No OFD packet to send [01:55:05]OFD Sender: No OFD packet to send [01:55:10]OFD Sender: No OFD packet to send [01:55:15]OFD Sender: No OFD packet to send [01:55:20]OFD Sender: No OFD packet to send [01:55:25]OFD Sender: No OFD packet to send [01:55:30]OFD Sender: No OFD packet to send [01:55:35]OFD Sender: No OFD packet to send [01:55:40]OFD Sender: No OFD packet to send [01:55:45]OFD Sender: No OFD packet to send [01:55:50]OFD Sender: No OFD packet to send [01:55:55]OFD Sender: No OFD packet to send [01:56:00]OFD Sender: No OFD packet to send [01:56:05]OFD Sender: No OFD packet to send [01:56:10]OFD Sender: No OFD packet to send [01:56:15]OFD Sender: No OFD packet to send [01:56:20]OFD Sender: No OFD packet to send [01:56:25]OFD Sender: No OFD packet to send [01:56:30]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:17]OFD Sender: No OFD packet to send [02:24:22]OFD Sender: No OFD packet to send [02:24:27]OFD Sender: No OFD packet to send [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:23]OFD Sender: No OFD packet to send [02:46:28]OFD Sender: No OFD packet to send [02:46:33]OFD Sender: No OFD packet to send [02:46:38]OFD Sender: No OFD packet to send [02:46:43]OFD Sender: No OFD packet to send [02:46:48]OFD Sender: No OFD packet to send [02:46:53]OFD Sender: No OFD packet to send [02:46:58]OFD Sender: No OFD packet to send [02:47:03]OFD Sender: No OFD packet to send [02:47:08]OFD Sender: No OFD packet to send [02:47:13]OFD Sender: No OFD packet to send [02:47:18]OFD Sender: No OFD packet to send [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:58]OFD Sender: No OFD packet to send [02:48:03]OFD Sender: No OFD packet to send [02:48:08]OFD Sender: No OFD packet to send [02:48:13]OFD Sender: No OFD packet to send [02:48:18]OFD Sender: No OFD packet to send [02:48:23]OFD Sender: No OFD packet to send [02:48:28]OFD Sender: No OFD packet to send [02:48:33]OFD Sender: No OFD packet to send [02:48:38]OFD Sender: No OFD packet to send [02:48:43]OFD Sender: No OFD packet to send [02:48:48]OFD Sender: No OFD packet to send [02:48:53]OFD Sender: No OFD packet to send [02:48:58]OFD Sender: No OFD packet to send [02:49:03]OFD Sender: No OFD packet to send [02:49:08]OFD Sender: No OFD packet to send [02:49:13]OFD Sender: No OFD packet to send [02:49:18]OFD Sender: No OFD packet to send [02:49:23]OFD Sender: No OFD packet to send [02:49:28]OFD Sender: No OFD packet to send [02:49:33]OFD Sender: No OFD packet to send [02:49:38]OFD Sender: No OFD packet to send [02:49:43]OFD Sender: No OFD packet to send [02:49:48]OFD Sender: No OFD packet to send [02:49:53]OFD Sender: No OFD packet to send [02:49:58]OFD Sender: No OFD packet to send [02:50:03]OFD Sender: No OFD packet to send [02:50:08]OFD Sender: No OFD packet to send [02:50:13]OFD Sender: No OFD packet to send [02:50:18]OFD Sender: No OFD packet to send [02:50:23]OFD Sender: No OFD packet to send [02:50:28]OFD Sender: No OFD packet to send [02:50:33]OFD Sender: No OFD packet to send [02:50:38]OFD Sender: No OFD packet to send [02:50:43]OFD Sender: No OFD packet to send [02:50:48]OFD Sender: No OFD packet to send [02:50:53]OFD Sender: No OFD packet to send [02:50:58]OFD Sender: No OFD packet to send [02:51:03]OFD Sender: No OFD packet to send [02:51:08]OFD Sender: No OFD packet to send [02:51:13]OFD Sender: No OFD packet to send [02:51:18]OFD Sender: No OFD packet to send [02:51:23]OFD Sender: No OFD packet to send [02:51:28]OFD Sender: No OFD packet to send [02:51:33]OFD Sender: No OFD packet to send [02:51:38]OFD Sender: No OFD packet to send [02:51:43]OFD Sender: No OFD packet to send [02:51:48]OFD Sender: No OFD packet to send [02:51:53]OFD Sender: No OFD packet to send [02:51:58]OFD Sender: No OFD packet to send [02:52:03]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send