[03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:24]accept exits with 9 [04:22:24]New connection [04:22:24]New thread 3067313508 created [04:22:24]Thread 3067170148 joined [04:22:24]Waiting for new connection... [04:22:24] Sock 9.Parse request [04:22:24]Sock 9.Check first char [04:22:24]Sock 9.First char is OK [04:22:24]request: POST /json_proto HTTP/1.0 [04:22:24]Method: POST [04:22:24]URL: /json_proto [04:22:24]Method is POST - this is cgi request [04:22:24]url: /json_proto [04:22:24]query_string will be loaded in cgi processing [04:22:24]execute_cgi json_proto POST (null) [04:22:24]execute_cgi path=json_proto method=POST [04:22:24]POST find Content-Length [04:22:24]Host: 172.17.52.196:8080 [04:22:24]Content-Length: 647 [04:22:24]Content-Type: application/json [04:22:24] [04:22:24]POST finish read [04:22:24]Found Content-Length = 647 [04:22:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127122", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 3.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:24]execute_script... [04:22:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127122", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 3.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:24]POST & json_proto [04:22:24]process_json_proto [04:22:24]json parsed OK: [04:22:24]protocol is kg_v1.0 [04:22:24]action value=close_receipt [04:22:24]process_action close_receipt [04:22:24]cmd_close_receipt [04:22:24]MH_GetDate [04:22:24]Write to MH i2c: F0 00 00 A9 65 FD [04:22:24]Write i2c OK [04:22:24]MH_I2C_Read... [04:22:24]Read from MH i2c: F0 [04:22:24]MH_I2C_Read... [04:22:24]Read from MH i2c: F0 09 00 [04:22:24]MH_I2C_Read... [04:22:24]Read from MH i2c: F0 09 00 A9 65 00 8F 85 14 67 60 05 E4 66 44 [04:22:24]GetLastDocTimeStamp 1729394322 [04:22:24]current date 1729398159 [04:22:24]FM_GetShiftState [04:22:24]SAM_PROTO_GetShiftState [04:22:24]wFMCommunicate request_size=4 [04:22:24]MH_SAM_APDU [04:22:24]CAPDU: 80 13 01 00 [04:22:24]Write to MH i2c: E2 08 00 AA 65 80 13 01 00 00 00 00 00 8C [04:22:24]Write i2c OK [04:22:24]MH_I2C_Read... [04:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:24]Read from MH i2c: E2 [04:22:24]MH_I2C_Read... [04:22:24]Read from MH i2c: E2 0E 00 [04:22:24]MH_I2C_Read... [04:22:24]Read from MH i2c: E2 0E 00 AA 65 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 1E [04:22:24]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [04:22:24]wFMCommunicate OK [04:22:24]SAM_PROTO_GetShiftState done [04:22:24]FM_GetShiftState done [04:22:24]opened in 1729384380 [04:22:24]opened+sec_in_day 1729470780 [04:22:24]quantity*price = 19500 [04:22:24]sum+1 = 19501 [04:22:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.73 НДС 12% : 20.71 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 6 20.10.2024 04:22 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69716 ФПД: 240083515063344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T042239&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69716&fm=240083515063344&tin=02508201610067®Number=0000000000091770&sum=19500 0 [04:22:25]StoreToDocumentArchive [04:22:25]shift 526 fd 69716 [04:22:25]save to /storage/0526/doc_00069716 [04:22:25]save last doc name /storage/0526/doc_00069716 to /storage/kkm_last_doc_name [04:22:25]save OK [04:22:25]Clear old archive folders... [04:22:25]ProcessDocumentItem done err = 0, tmpTLVsize=272 [04:22:25]tlvbuf is 01AE1110 [04:22:25]SAM_PROTO_ClearQueue [04:22:25]wFMCommunicate request_size=4 [04:22:25]MH_SAM_APDU [04:22:25]CAPDU: 80 09 00 00 [04:22:25]Write to MH i2c: E2 08 00 B7 65 80 09 00 00 00 00 00 00 8E [04:22:25]Write i2c OK [04:22:25]MH_I2C_Read... [04:22:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:22:25]Read from MH i2c: E2 [04:22:25]MH_I2C_Read... [04:22:25]Read from MH i2c: E2 03 00 [04:22:25]MH_I2C_Read... [04:22:25]Read from MH i2c: E2 03 00 B7 65 00 90 00 90 [04:22:25]RAPDU: 90 00 [04:22:25]wFMCommunicate OK [04:22:25]SAM_PROTO_ClearQueue done [04:22:25]KKMCreateOFDPacket [04:22:25]OFDProtocolAddRootSTLVToBuf [04:22:25]FM_MakeSignedData [04:22:25]FM_MakeSignedData [04:22:25]SAM_PROTO_SignData [04:22:25]wFMCommunicate request_size=4 [04:22:25]MH_SAM_APDU [04:22:25]CAPDU: 80 0D 01 02 [04:22:25]Write to MH i2c: E2 08 00 B8 65 80 0D 01 02 00 00 00 00 96 [04:22:25]Write i2c OK [04:22:25]MH_I2C_Read... [04:22:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:22:25]Read from MH i2c: E2 [04:22:25]MH_I2C_Read... [04:22:25]Read from MH i2c: E2 03 00 [04:22:25]MH_I2C_Read... [04:22:25]Read from MH i2c: E2 03 00 B8 65 00 90 00 91 [04:22:25]RAPDU: 90 00 [04:22:25]wFMCommunicate OK [04:22:25]wFMCommunicate request_size=255 [04:22:25]MH_SAM_APDU [04:22:25]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 8F 85 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 [04:22:25]Write to MH i2c: E2 02 01 B9 65 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 8F 85 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 2E [04:22:25]Write i2c OK [04:22:25]MH_I2C_Read... [04:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:26]Read from MH i2c: E2 [04:22:26]MH_I2C_Read... [04:22:26]Read from MH i2c: E2 03 00 [04:22:26]MH_I2C_Read... [04:22:26]Read from MH i2c: E2 03 00 B9 65 00 90 00 92 [04:22:26]RAPDU: 90 00 [04:22:26]wFMCommunicate OK [04:22:26]wFMCommunicate request_size=31 [04:22:26]MH_SAM_APDU [04:22:26]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 37 34 39 10 04 04 00 54 10 01 00 35 04 06 00 DA 5A CC A1 BC 30 [04:22:26]Write to MH i2c: E2 22 00 BA 65 80 0D 02 02 1A 00 30 30 38 37 31 37 34 39 10 04 04 00 54 10 01 00 35 04 06 00 DA 5A CC A1 BC 30 00 00 BA [04:22:26]Write i2c OK [04:22:26]MH_I2C_Read... [04:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:26]Read from MH i2c: E2 [04:22:26]MH_I2C_Read... [04:22:26]Read from MH i2c: E2 03 00 [04:22:26]MH_I2C_Read... [04:22:26]Read from MH i2c: E2 03 00 BA 65 00 90 00 93 [04:22:26]RAPDU: 90 00 [04:22:26]wFMCommunicate OK [04:22:26]wFMCommunicate request_size=4 [04:22:26]MH_SAM_APDU [04:22:26]CAPDU: 80 0D 03 02 [04:22:26]Write to MH i2c: E2 08 00 BB 65 80 0D 03 02 00 00 00 00 9B [04:22:26]Write i2c OK [04:22:26]MH_I2C_Read... [04:22:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:22:26]Read from MH i2c: E2 [04:22:26]MH_I2C_Read... [04:22:26]Read from MH i2c: E2 0B 00 [04:22:26]MH_I2C_Read... [04:22:26]Read from MH i2c: E2 0B 00 BB 65 00 79 1B 50 92 FE CD 33 91 90 00 A1 [04:22:26]RAPDU: 79 1B 50 92 FE CD 33 91 90 00 [04:22:26]wFMCommunicate OK [04:22:26]SAM_PROTO_SignData done [04:22:26]FM_MakeSignedData done [04:22:26]CreateOFDProtocolMessage [04:22:26]wFMCommunicate request_size=4 [04:22:26]MH_SAM_APDU [04:22:26]CAPDU: 80 11 00 00 [04:22:26]Write to MH i2c: E2 08 00 BC 65 80 11 00 00 00 00 00 00 9B [04:22:26]Write i2c OK [04:22:26]MH_I2C_Read... [04:22:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:26]Read from MH i2c: E2 [04:22:26]MH_I2C_Read... [04:22:26]Read from MH i2c: E2 17 00 [04:22:26]MH_I2C_Read... [04:22:26]Read from MH i2c: E2 17 00 BC 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 F2 [04:22:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [04:22:26]wFMCommunicate OK [04:22:26]CreateOFDProtocolMessage done [04:22:26]OFDSenderStorePacket 69716 [04:22:26]StoreOFDPacket docnum=69716 [04:22:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 3B E4 1C 01 1C 01 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 8F 85 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 54 10 01 00 35 04 06 00 DA 5A CC A1 BC 30 79 1B 50 92 FE CD 33 91 [04:22:26]CheckFolder [04:22:26]dirname=/storage/ofd_packets [04:22:26]CheckFolder done [04:22:26]ProducePacketName [04:22:26]name=ofd_packets/00069716 [04:22:26]NVStorageSaveData ofd_packets/00069716 [04:22:26]File name is /storage/ofd_packets/00069716 [04:22:26]Write 322 bytes [04:22:26]NVStorageSaveData done [04:22:26]OFDSenderStorePacket done [04:22:26]KKMCreateOFDPacket done [04:22:26]NVStorageSaveData kkm_last_timestamp [04:22:26]File name is /storage/kkm_last_timestamp [04:22:26]Write 4 bytes [04:22:26]NVStorageSaveData done [04:22:26]ExternCall_PrintAddStr [04:22:26]wPrintStart [04:22:26]Write to MH i2c: 01 00 00 BD 65 22 [04:22:26]Write i2c OK [04:22:26]MH_I2C_Read... [04:22:26]Read from MH i2c: 01 [04:22:26]MH_I2C_Read... [04:22:26]Read from MH i2c: 01 07 00 [04:22:26]MH_I2C_Read... [04:22:26]Read from MH i2c: 01 07 00 BD 65 00 00 00 00 00 FF 0F 37 [04:22:26]RasterBufferAndPrint [04:22:26]line Счет N : (3)127122 [04:22:26]line ИНН: 02508201610067 [04:22:26]line Контрольно-Кассовый Чек [04:22:26]line ПРОДАЖА [04:22:26]line Товар: 47011656 [04:22:26]line Водка Пшеничная 0,1л [04:22:26]line 3.000 * 65.00 [04:22:26]line = 195.00 [04:22:26]line НДС 12% НСП 1% [04:22:26]line > о реализуемом товаре [04:22:26]line ИТОГО: 195.00 [04:22:26]line НСП 1% : 1.73 [04:22:26]line НДС 12% : 20.71 [04:22:26]line Наличными: 195.00 [04:22:26]line Безнал.: 0.00 [04:22:26]line Место: АЗС № 163 "Партнер Нефть" [04:22:26]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [04:22:26]line СНО: Общий режим [04:22:26]line Чек 6 20.10.2024 04:22 [04:22:26]line Смена: 526 ФФД: 1.0 [04:22:26]line ЗНМ: 0300000101 [04:22:26]line РНМ: 0000000000091770 [04:22:26]line Версия ККМ: 001 [04:22:26]line ФМ: 0000000000871749 [04:22:26]line ФД: 69716 [04:22:26]line ФПД: 240083515063344 [04:22:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T042239&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69716&fm=240083515063344&tin=02508201610067®Number=0000000000091770&sum=19500 [04:22:26]line 0 [04:22:26]OFD Sender: Processing packet 69716 [packets to send 32, broken 31] [04:22:26]ProducePacketName [04:22:26]name=ofd_packets/00069716 [04:22:26]OFD Sender: To server: pG, [04:22:26]CommunicateWithHost lk.salyk.kg:30040 [04:22:26]ConnectInit lk.salyk.kg [04:22:26]written 0, free lines is 4095 [04:22:26]Connected sock=10 [04:22:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 3B E4 1C 01 1C 01 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 8F 85 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 54 10 01 00 35 04 06 00 DA 5A CC A1 BC 30 79 1B 50 92 FE CD 33 91 [04:22:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 BD B0 47 00 E3 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 31 37 34 39 10 04 04 00 54 10 01 00 F4 03 04 00 13 2B 14 67 B6 04 01 00 00 64 56 C4 F4 B3 EB 38 74 [04:22:27]CommunicateWithHost err = 0 [04:22:27]CheckOFDResponse [04:22:27]1017 (14) - 77093643461234 [04:22:27]1041 (16) - 0000000000871749 [04:22:27]1040 (4) - 69716 [04:22:27]1012 (4) - 19.10.2024 21:56 [04:22:27]1206 (1) - 0 [04:22:27]OFD Sender: Remove packet 69716 [04:22:27]ProducePacketName [04:22:27]name=ofd_packets/00069716 [04:22:27]NVStorageDeleteData [04:22:27]Write to MH i2c: 01 00 00 E5 65 4A [04:22:27]Write i2c OK [04:22:27]MH_I2C_Read... [04:22:27]Read from MH i2c: 01 [04:22:27]MH_I2C_Read... [04:22:27]Read from MH i2c: 01 07 00 [04:22:27]MH_I2C_Read... [04:22:27]Read from MH i2c: 01 07 00 E5 65 00 00 00 00 00 04 0D 62 [04:22:27]RasterBufferAndPrint [04:22:27]line [04:22:27]line [04:22:27]line [04:22:27]line [04:22:27]line [04:22:27]written 0, free lines is 3340 [04:22:27]MH_Cut [04:22:27]Write to MH i2c: D1 01 00 EC 65 01 23 [04:22:27]Write i2c OK [04:22:27]MH_I2C_Read... [04:22:27]Read from MH i2c: D1 [04:22:27]MH_I2C_Read... [04:22:27]Read from MH i2c: D1 01 00 [04:22:27]MH_I2C_Read... [04:22:27]Read from MH i2c: D1 01 00 EC 65 00 22 [04:22:27]Write to MH i2c: 01 00 00 ED 65 52 [04:22:27]Write i2c OK [04:22:27]MH_I2C_Read... [04:22:27]OFD Sender: No OFD packet to send [04:22:27]*** Cut start [04:22:27]*** Partial cut [04:22:27]*** CUTSNS_PIN = 1 [04:22:27]*** CUTSNS_PIN = 0 [04:22:28]*** Brake cut motor [04:22:28]Read from MH i2c: 01 [04:22:28]MH_I2C_Read... [04:22:28]*** Stop cut motor [04:22:28]*** Cut end [04:22:28]Read from MH i2c: 01 07 00 [04:22:28]MH_I2C_Read... [04:22:28]Read from MH i2c: 01 07 00 ED 65 00 00 00 00 00 FF 0F 67 [04:22:28]process_action close_receipt done [04:22:28]requested_data is exist [04:22:28]produce_requested_data [04:22:28]requested_item fm.sn is exist - process it [04:22:28]wFMCommunicate request_size=4 [04:22:28]MH_SAM_APDU [04:22:28]CAPDU: 80 11 00 00 [04:22:28]Write to MH i2c: E2 08 00 EE 65 80 11 00 00 00 00 00 00 CD [04:22:28]Write i2c OK [04:22:28]MH_I2C_Read... [04:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:28]Read from MH i2c: E2 [04:22:28]MH_I2C_Read... [04:22:28]Read from MH i2c: E2 17 00 [04:22:28]MH_I2C_Read... [04:22:28]Read from MH i2c: E2 17 00 EE 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 24 [04:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [04:22:28]wFMCommunicate OK [04:22:28]requested_item fd.num is exist - process it [04:22:28]SAM_PROTO_GetFieldsCounters [04:22:28]wFMCommunicate request_size=4 [04:22:28]MH_SAM_APDU [04:22:28]CAPDU: 80 13 00 00 [04:22:28]Write to MH i2c: E2 08 00 EF 65 80 13 00 00 00 00 00 00 D0 [04:22:28]Write i2c OK [04:22:28]MH_I2C_Read... [04:22:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:22:28]Read from MH i2c: E2 [04:22:28]MH_I2C_Read... [04:22:28]Read from MH i2c: E2 62 00 [04:22:28]MH_I2C_Read... [04:22:28]Read from MH i2c: E2 62 00 EF 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 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 7B [04:22:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 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 [04:22:28]wFMCommunicate OK [04:22:28]SAM_PROTO_GetFieldsCounters done [04:22:28]requested_item shift.num is exist - process it [04:22:28]requested_item shift.opened is exist - process it [04:22:28]req_shift_opened [04:22:28]FM_GetShiftState [04:22:28]SAM_PROTO_GetShiftState [04:22:28]wFMCommunicate request_size=4 [04:22:28]MH_SAM_APDU [04:22:28]CAPDU: 80 13 01 00 [04:22:28]Write to MH i2c: E2 08 00 F0 65 80 13 01 00 00 00 00 00 D2 [04:22:28]Write i2c OK [04:22:28]MH_I2C_Read... [04:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:28]Read from MH i2c: E2 [04:22:28]MH_I2C_Read... [04:22:28]Read from MH i2c: E2 0E 00 [04:22:28]MH_I2C_Read... [04:22:28]Read from MH i2c: E2 0E 00 F0 65 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 64 [04:22:28]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [04:22:28]wFMCommunicate OK [04:22:28]SAM_PROTO_GetShiftState done [04:22:28]FM_GetShiftState done [04:22:28]req_shift_opened done [04:22:28]requested_item shift.open_date is exist - process it [04:22:28]req_shift_open_date [04:22:28]req_shift_open_date done [04:22:28]produce_requested_data done [04:22:28]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [04:22:28]process_action_free close_receipt [04:22:28]json_value_free [04:22:28]json_value_free done [04:22:28]process_json_proto returns [04:22:28]Send response to host [04:22:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [04:22:28]free response buf [04:22:28]execute_script done [04:22:28]execute_script returns [04:22:28]free content buf [04:22:28]Sock 9.Close socket [04:22:28]Sock 9.Thread stoped [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:34]OFD Sender: No OFD packet to send [05:03:39]OFD Sender: No OFD packet to send [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:21:33]ConnectInit Can't connect to host [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:56]accept exits with 7 [05:21:56]New connection [05:21:56]New thread 3066932580 created [05:21:56]Waiting for new connection... [05:21:56] Sock 7.Parse request [05:21:56]Sock 7.Check first char [05:21:56]Sock 7.First char is OK [05:21:56]request: POST /json_proto HTTP/1.0 [05:21:56]Method: POST [05:21:56]URL: /json_proto [05:21:56]Method is POST - this is cgi request [05:21:56]url: /json_proto [05:21:56]query_string will be loaded in cgi processing [05:21:56]execute_cgi json_proto POST (null) [05:21:56]execute_cgi path=json_proto method=POST [05:21:56]POST find Content-Length [05:21:56]Host: 172.17.52.196:8080 [05:21:56]Content-Length: 215 [05:21:56]Content-Type: application/json [05:21:56] [05:21:56]POST finish read [05:21:56]Found Content-Length = 215 [05:21:56]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" ] } } [05:21:56]execute_script... [05:21:56]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" ] } } [05:21:56]POST & json_proto [05:21:56]process_json_proto [05:21:56]json parsed OK: [05:21:56]protocol is kg_v1.0 [05:21:56]action value=get_value [05:21:56]process_action get_value [05:21:56]cmd_get_value [05:21:56]process_action get_value done [05:21:56]requested_data is exist [05:21:56]produce_requested_data [05:21:56]requested_item kkm.sn is exist - process it [05:21:56]requested_item kkm.ver is exist - process it [05:21:56]requested_item fm.sn is exist - process it [05:21:56]wFMCommunicate request_size=4 [05:21:56]MH_SAM_APDU [05:21:56]CAPDU: 80 11 00 00 [05:21:56]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [05:21:56]Write i2c OK [05:21:56]MH_I2C_Read... [05:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:21:56]Read from MH i2c: E2 [05:21:56]MH_I2C_Read... [05:21:56]Read from MH i2c: E2 17 00 [05:21:56]MH_I2C_Read... [05:21:56]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 31 37 34 39 90 00 E1 [05:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [05:21:56]wFMCommunicate OK [05:21:56]requested_item fd.num is exist - process it [05:21:56]SAM_PROTO_GetFieldsCounters [05:21:56]wFMCommunicate request_size=4 [05:21:56]MH_SAM_APDU [05:21:56]CAPDU: 80 13 00 00 [05:21:56]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [05:21:56]Write i2c OK [05:21:56]MH_I2C_Read... [05:21:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:21:56]Read from MH i2c: E2 [05:21:56]MH_I2C_Read... [05:21:56]Read from MH i2c: E2 62 00 [05:21:56]MH_I2C_Read... [05:21:56]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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 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 38 [05:21:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:21:56]wFMCommunicate OK [05:21:56]SAM_PROTO_GetFieldsCounters done [05:21:56]requested_item shift.num is exist - process it [05:21:56]requested_item shift.opened is exist - process it [05:21:56]req_shift_opened [05:21:56]FM_GetShiftState [05:21:56]SAM_PROTO_GetShiftState [05:21:56]wFMCommunicate request_size=4 [05:21:56]MH_SAM_APDU [05:21:56]CAPDU: 80 13 01 00 [05:21:56]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [05:21:56]Write i2c OK [05:21:56]MH_I2C_Read... [05:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:21:56]Read from MH i2c: E2 [05:21:56]MH_I2C_Read... [05:21:56]Read from MH i2c: E2 0E 00 [05:21:56]MH_I2C_Read... [05:21:56]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 21 [05:21:56]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [05:21:56]wFMCommunicate OK [05:21:56]SAM_PROTO_GetShiftState done [05:21:56]FM_GetShiftState done [05:21:56]req_shift_opened done [05:21:56]requested_item shift.open_date is exist - process it [05:21:56]req_shift_open_date [05:21:56]req_shift_open_date done [05:21:56]produce_requested_data done [05:21:56]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [05:21:56]process_action_free get_value [05:21:56]json_value_free [05:21:56]json_value_free done [05:21:56]process_json_proto returns [05:21:56]Send response to host [05:21:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [05:21:56]free response buf [05:21:56]execute_script done [05:21:56]execute_script returns [05:21:56]free content buf [05:21:56]Sock 7.Close socket [05:21:56]Sock 7.Thread stoped [05:21:57]OFD Sender: No OFD packet to send [05:21:59]accept exits with 9 [05:21:59]New connection [05:21:59]New thread 3066789220 created [05:21:59]Thread 3066932580 joined [05:21:59]Waiting for new connection... [05:21:59] Sock 9.Parse request [05:21:59]Sock 9.Check first char [05:21:59]Sock 9.First char is OK [05:21:59]request: POST /json_proto HTTP/1.0 [05:21:59]Method: POST [05:21:59]URL: /json_proto [05:21:59]Method is POST - this is cgi request [05:21:59]url: /json_proto [05:21:59]query_string will be loaded in cgi processing [05:21:59]execute_cgi json_proto POST (null) [05:21:59]execute_cgi path=json_proto method=POST [05:21:59]POST find Content-Length [05:21:59]Host: 172.17.52.196:8080 [05:21:59]Content-Length: 331 [05:21:59]Content-Type: application/json [05:21:59] [05:21:59]POST finish read [05:21:59]Found Content-Length = 331 [05:21: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" ] } } [05:21:59]execute_script... [05:21: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" ] } } [05:21:59]POST & json_proto [05:21:59]process_json_proto [05:21:59]json parsed OK: [05:21:59]protocol is kg_v1.0 [05:21:59]action value=get_value [05:21:59]process_action get_value [05:21:59]cmd_get_value [05:21:59]process_action get_value done [05:21:59]requested_data is exist [05:21:59]produce_requested_data [05:21:59]requested_item fm.sale.total is exist - process it [05:21:59]SAM_PROTO_GetFMData [05:21:59]wFMCommunicate request_size=4 [05:21:59]MH_SAM_APDU [05:21:59]CAPDU: 80 13 03 00 [05:21:59]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [05:21:59]Write i2c OK [05:21:59]MH_I2C_Read... [05:22:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [05:22:00]Read from MH i2c: E2 [05:22:00]MH_I2C_Read... [05:22:00]Read from MH i2c: E2 FD 00 [05:22:00]MH_I2C_Read... [05:22:00]Read from MH i2c: E2 FD 00 13 00 00 C3 04 85 04 BF 04 6E 04 04 00 38 0C 01 00 69 04 A1 00 6F 04 04 00 DA 0B 01 00 B1 04 04 00 84 3E 5E 78 70 04 04 00 0C 66 7B 67 72 04 04 00 78 D8 E2 10 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 CF C8 0C 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 1E 9F 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 01 [05:22:00]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 38 0C 01 00 69 04 A1 00 6F 04 04 00 DA 0B 01 00 B1 04 04 00 84 3E 5E 78 70 04 04 00 0C 66 7B 67 72 04 04 00 78 D8 E2 10 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 CF C8 0C 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 1E 9F 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [05:22:00]wFMCommunicate OK [05:22:00]wFMCommunicate request_size=4 [05:22:00]MH_SAM_APDU [05:22:00]CAPDU: 80 17 00 00 [05:22:00]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [05:22:00]Write i2c OK [05:22:00]MH_I2C_Read... [05:22:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:22:00]Read from MH i2c: E2 [05:22:00]MH_I2C_Read... [05:22:00]Read from MH i2c: E2 FD 00 [05:22:00]MH_I2C_Read... [05:22:00]Read from MH i2c: E2 FD 00 14 00 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 98 [05:22:00]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [05:22:00]wFMCommunicate OK [05:22:00]wFMCommunicate request_size=4 [05:22:00]MH_SAM_APDU [05:22:00]CAPDU: 80 17 00 00 [05:22:00]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [05:22:00]Write i2c OK [05:22:00]MH_I2C_Read... [05:22:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:22:00]Read from MH i2c: E2 [05:22:00]MH_I2C_Read... [05:22:00]Read from MH i2c: E2 FD 00 [05:22:00]MH_I2C_Read... [05:22:00]Read from MH i2c: E2 FD 00 15 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 B3 [05:22:00]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [05:22:00]wFMCommunicate OK [05:22:00]wFMCommunicate request_size=4 [05:22:00]MH_SAM_APDU [05:22:00]CAPDU: 80 17 00 00 [05:22:00]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [05:22:00]Write i2c OK [05:22:00]MH_I2C_Read... [05:22:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:22:01]Read from MH i2c: E2 [05:22:01]MH_I2C_Read... [05:22:01]Read from MH i2c: E2 FD 00 [05:22:01]MH_I2C_Read... [05:22:01]Read from MH i2c: E2 FD 00 16 00 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 08 [05:22:01]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [05:22:01]wFMCommunicate OK [05:22:01]wFMCommunicate request_size=4 [05:22:01]MH_SAM_APDU [05:22:01]CAPDU: 80 17 00 00 [05:22:01]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [05:22:01]Write i2c OK [05:22:01]MH_I2C_Read... [05:22:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [05:22:01]Read from MH i2c: E2 [05:22:01]MH_I2C_Read... [05:22:01]Read from MH i2c: E2 E0 00 [05:22:01]MH_I2C_Read... [05:22:01]Read from MH i2c: E2 E0 00 17 00 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [05:22:01]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [05:22:01]wFMCommunicate OK [05:22:01]SAM_PROTO_GetFMData done [05:22:01]requested_item fm.sale_refund.total is exist - process it [05:22:01]requested_item fm.buy.total is exist - process it [05:22:01]requested_item shift.sale.total is exist - process it [05:22:01]SAM_PROTO_GetShiftData [05:22:01]wFMCommunicate request_size=4 [05:22:01]MH_SAM_APDU [05:22:01]CAPDU: 80 13 02 00 [05:22:01]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [05:22:01]Write i2c OK [05:22:01]MH_I2C_Read... [05:22:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [05:22:01]Read from MH i2c: E2 [05:22:01]MH_I2C_Read... [05:22:01]Read from MH i2c: E2 FD 00 [05:22:01]MH_I2C_Read... [05:22:01]Read from MH i2c: E2 FD 00 18 00 00 AB 04 AA 04 A7 04 6E 04 04 00 06 00 00 00 69 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 E4 CE 01 70 04 02 00 20 E4 72 04 02 00 C4 EA 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 27 31 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 19 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 32 [05:22:01]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 06 00 00 00 69 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 E4 CE 01 70 04 02 00 20 E4 72 04 02 00 C4 EA 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 27 31 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 19 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [05:22:01]wFMCommunicate OK [05:22:01]wFMCommunicate request_size=4 [05:22:01]MH_SAM_APDU [05:22:01]CAPDU: 80 17 00 00 [05:22:01]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [05:22:01]Write i2c OK [05:22:01]MH_I2C_Read... [05:22:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:22:02]Read from MH i2c: E2 [05:22:02]MH_I2C_Read... [05:22:02]Read from MH i2c: E2 FD 00 [05:22:02]MH_I2C_Read... [05:22:02]Read from MH i2c: E2 FD 00 19 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 AE [05:22:02]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [05:22:02]wFMCommunicate OK [05:22:02]wFMCommunicate request_size=4 [05:22:02]MH_SAM_APDU [05:22:02]CAPDU: 80 17 00 00 [05:22:02]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [05:22:02]Write i2c OK [05:22:02]MH_I2C_Read... [05:22:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:22:02]Read from MH i2c: E2 [05:22:02]MH_I2C_Read... [05:22:02]Read from MH i2c: E2 FD 00 [05:22:02]MH_I2C_Read... [05:22:02]Read from MH i2c: E2 FD 00 1A 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 90 00 4A [05:22:02]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 90 00 [05:22:02]wFMCommunicate OK [05:22:02]wFMCommunicate request_size=4 [05:22:02]MH_SAM_APDU [05:22:02]CAPDU: 80 17 00 00 [05:22:02]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [05:22:02]Write i2c OK [05:22:02]MH_I2C_Read... [05:22:02]OFD Sender: No OFD packet to send [05:22:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:22:02]Read from MH i2c: E2 [05:22:02]MH_I2C_Read... [05:22:02]Read from MH i2c: E2 FD 00 [05:22:02]MH_I2C_Read... [05:22:02]Read from MH i2c: E2 FD 00 1B 00 00 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 90 00 21 [05:22:02]RAPDU: 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 90 00 [05:22:02]wFMCommunicate OK [05:22:02]wFMCommunicate request_size=4 [05:22:02]MH_SAM_APDU [05:22:02]CAPDU: 80 17 00 00 [05:22:02]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [05:22:02]Write i2c OK [05:22:02]MH_I2C_Read... [05:22:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [05:22:02]Read from MH i2c: E2 [05:22:02]MH_I2C_Read... [05:22:02]Read from MH i2c: E2 C8 00 [05:22:02]MH_I2C_Read... [05:22:02]Read from MH i2c: E2 C8 00 1C 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7F [05:22:02]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [05:22:02]wFMCommunicate OK [05:22:02]SAM_PROTO_GetShiftData done [05:22:02]requested_item shift.sale.total_cash is exist - process it [05:22:02]requested_item shift.sale_refund.total is exist - process it [05:22:02]requested_item shift.sale_refund.total_cash is exist - process it [05:22:02]requested_item shift.buy.total is exist - process it [05:22:02]requested_item shift.buy.total_cash is exist - process it [05:22:02]produce_requested_data done [05:22:02]produce_requested_data return {"fm.sale.total":20194423.08,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":1185.00,"shift.sale.total_cash":584.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} [05:22:02]process_action_free get_value [05:22:02]json_value_free [05:22:02]json_value_free done [05:22:02]process_json_proto returns [05:22:02]Send response to host [05:22:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20194423.08,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":1185.00,"shift.sale.total_cash":584.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}}} [05:22:02]free response buf [05:22:02]execute_script done [05:22:02]execute_script returns [05:22:02]free content buf [05:22:02]Sock 9.Close socket [05:22:02]Sock 9.Thread stoped [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:38:39]ConnectInit Can't connect to host [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:15]accept exits with 9 [05:39:15]New connection [05:39:15]New thread 3066764644 created [05:39:15]Waiting for new connection... [05:39:15] Sock 9.Parse request [05:39:15]Sock 9.Check first char [05:39:15]Sock 9.First char is OK [05:39:15]request: POST /json_proto HTTP/1.0 [05:39:15]Method: POST [05:39:15]URL: /json_proto [05:39:15]Method is POST - this is cgi request [05:39:15]url: /json_proto [05:39:15]query_string will be loaded in cgi processing [05:39:15]execute_cgi json_proto POST (null) [05:39:15]execute_cgi path=json_proto method=POST [05:39:15]POST find Content-Length [05:39:15]Host: 172.17.52.196:8080 [05:39:15]Content-Length: 215 [05:39:15]Content-Type: application/json [05:39:15] [05:39:15]POST finish read [05:39:15]Found Content-Length = 215 [05:39:15]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" ] } } [05:39:15]execute_script... [05:39:15]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" ] } } [05:39:15]POST & json_proto [05:39:15]process_json_proto [05:39:15]json parsed OK: [05:39:15]protocol is kg_v1.0 [05:39:15]action value=get_value [05:39:15]process_action get_value [05:39:15]cmd_get_value [05:39:15]process_action get_value done [05:39:15]requested_data is exist [05:39:15]produce_requested_data [05:39:15]requested_item kkm.sn is exist - process it [05:39:15]requested_item kkm.ver is exist - process it [05:39:15]requested_item fm.sn is exist - process it [05:39:15]wFMCommunicate request_size=4 [05:39:15]MH_SAM_APDU [05:39:15]CAPDU: 80 11 00 00 [05:39:15]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [05:39:15]Write i2c OK [05:39:15]MH_I2C_Read... [05:39:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:39:15]Read from MH i2c: E2 [05:39:15]MH_I2C_Read... [05:39:15]Read from MH i2c: E2 17 00 [05:39:15]MH_I2C_Read... [05:39:15]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 31 37 34 39 90 00 E1 [05:39:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [05:39:15]wFMCommunicate OK [05:39:15]requested_item fd.num is exist - process it [05:39:15]SAM_PROTO_GetFieldsCounters [05:39:15]wFMCommunicate request_size=4 [05:39:15]MH_SAM_APDU [05:39:15]CAPDU: 80 13 00 00 [05:39:15]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [05:39:15]Write i2c OK [05:39:15]MH_I2C_Read... [05:39:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:39:15]Read from MH i2c: E2 [05:39:15]MH_I2C_Read... [05:39:15]Read from MH i2c: E2 62 00 [05:39:15]MH_I2C_Read... [05:39:15]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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 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 38 [05:39: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:39:15]wFMCommunicate OK [05:39:15]SAM_PROTO_GetFieldsCounters done [05:39:15]requested_item shift.num is exist - process it [05:39:15]requested_item shift.opened is exist - process it [05:39:15]req_shift_opened [05:39:15]FM_GetShiftState [05:39:15]SAM_PROTO_GetShiftState [05:39:15]wFMCommunicate request_size=4 [05:39:15]MH_SAM_APDU [05:39:15]CAPDU: 80 13 01 00 [05:39:15]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [05:39:15]Write i2c OK [05:39:15]MH_I2C_Read... [05:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:39:15]Read from MH i2c: E2 [05:39:15]MH_I2C_Read... [05:39:15]Read from MH i2c: E2 0E 00 [05:39:15]MH_I2C_Read... [05:39:15]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 21 [05:39:15]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [05:39:15]wFMCommunicate OK [05:39:15]SAM_PROTO_GetShiftState done [05:39:15]FM_GetShiftState done [05:39:15]req_shift_opened done [05:39:15]requested_item shift.open_date is exist - process it [05:39:15]req_shift_open_date [05:39:15]req_shift_open_date done [05:39:15]produce_requested_data done [05:39:15]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [05:39:15]process_action_free get_value [05:39:15]json_value_free [05:39:15]json_value_free done [05:39:15]process_json_proto returns [05:39:15]Send response to host [05:39:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [05:39:15]free response buf [05:39:15]execute_script done [05:39:15]execute_script returns [05:39:15]free content buf [05:39:15]Sock 9.Close socket [05:39:15]Sock 9.Thread stoped [05:39:17]OFD Sender: No OFD packet to send [05:39:18]accept exits with 7 [05:39:18]New connection [05:39:18]New thread 3066621284 created [05:39:18]Thread 3066764644 joined [05:39:18]Waiting for new connection... [05:39:18] Sock 7.Parse request [05:39:18]Sock 7.Check first char [05:39:18]Sock 7.First char is OK [05:39:18]request: POST /json_proto HTTP/1.0 [05:39:18]Method: POST [05:39:18]URL: /json_proto [05:39:18]Method is POST - this is cgi request [05:39:18]url: /json_proto [05:39:18]query_string will be loaded in cgi processing [05:39:18]execute_cgi json_proto POST (null) [05:39:18]execute_cgi path=json_proto method=POST [05:39:18]POST find Content-Length [05:39:18]Host: 172.17.52.196:8080 [05:39:18]Content-Length: 331 [05:39:18]Content-Type: application/json [05:39:18] [05:39:18]POST finish read [05:39:18]Found Content-Length = 331 [05:39:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [05:39:18]execute_script... [05:39:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [05:39:18]POST & json_proto [05:39:18]process_json_proto [05:39:18]json parsed OK: [05:39:18]protocol is kg_v1.0 [05:39:18]action value=get_value [05:39:18]process_action get_value [05:39:18]cmd_get_value [05:39:18]process_action get_value done [05:39:18]requested_data is exist [05:39:18]produce_requested_data [05:39:18]requested_item fm.sale.total is exist - process it [05:39:18]SAM_PROTO_GetFMData [05:39:18]wFMCommunicate request_size=4 [05:39:18]MH_SAM_APDU [05:39:18]CAPDU: 80 13 03 00 [05:39:18]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [05:39:18]Write i2c OK [05:39:18]MH_I2C_Read... [05:39:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [05:39:18]Read from MH i2c: E2 [05:39:18]MH_I2C_Read... [05:39:18]Read from MH i2c: E2 FD 00 [05:39:18]MH_I2C_Read... [05:39:18]Read from MH i2c: E2 FD 00 13 00 00 C3 04 85 04 BF 04 6E 04 04 00 38 0C 01 00 69 04 A1 00 6F 04 04 00 DA 0B 01 00 B1 04 04 00 84 3E 5E 78 70 04 04 00 0C 66 7B 67 72 04 04 00 78 D8 E2 10 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 CF C8 0C 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 1E 9F 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 01 [05:39:18]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 38 0C 01 00 69 04 A1 00 6F 04 04 00 DA 0B 01 00 B1 04 04 00 84 3E 5E 78 70 04 04 00 0C 66 7B 67 72 04 04 00 78 D8 E2 10 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 CF C8 0C 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 1E 9F 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [05:39:18]wFMCommunicate OK [05:39:18]wFMCommunicate request_size=4 [05:39:18]MH_SAM_APDU [05:39:18]CAPDU: 80 17 00 00 [05:39:18]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [05:39:18]Write i2c OK [05:39:18]MH_I2C_Read... [05:39:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:39:19]Read from MH i2c: E2 [05:39:19]MH_I2C_Read... [05:39:19]Read from MH i2c: E2 FD 00 [05:39:19]MH_I2C_Read... [05:39:19]Read from MH i2c: E2 FD 00 14 00 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 98 [05:39:19]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [05:39:19]wFMCommunicate OK [05:39:19]wFMCommunicate request_size=4 [05:39:19]MH_SAM_APDU [05:39:19]CAPDU: 80 17 00 00 [05:39:19]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [05:39:19]Write i2c OK [05:39:19]MH_I2C_Read... [05:39:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:39:19]Read from MH i2c: E2 [05:39:19]MH_I2C_Read... [05:39:19]Read from MH i2c: E2 FD 00 [05:39:19]MH_I2C_Read... [05:39:19]Read from MH i2c: E2 FD 00 15 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 B3 [05:39:19]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [05:39:19]wFMCommunicate OK [05:39:19]wFMCommunicate request_size=4 [05:39:19]MH_SAM_APDU [05:39:19]CAPDU: 80 17 00 00 [05:39:19]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [05:39:19]Write i2c OK [05:39:19]MH_I2C_Read... [05:39:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:39:19]Read from MH i2c: E2 [05:39:19]MH_I2C_Read... [05:39:19]Read from MH i2c: E2 FD 00 [05:39:19]MH_I2C_Read... [05:39:19]Read from MH i2c: E2 FD 00 16 00 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 08 [05:39:19]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [05:39:19]wFMCommunicate OK [05:39:19]wFMCommunicate request_size=4 [05:39:19]MH_SAM_APDU [05:39:19]CAPDU: 80 17 00 00 [05:39:19]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [05:39:19]Write i2c OK [05:39:19]MH_I2C_Read... [05:39:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [05:39:19]Read from MH i2c: E2 [05:39:19]MH_I2C_Read... [05:39:19]Read from MH i2c: E2 E0 00 [05:39:19]MH_I2C_Read... [05:39:19]Read from MH i2c: E2 E0 00 17 00 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [05:39:19]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [05:39:19]wFMCommunicate OK [05:39:19]SAM_PROTO_GetFMData done [05:39:19]requested_item fm.sale_refund.total is exist - process it [05:39:19]requested_item fm.buy.total is exist - process it [05:39:19]requested_item shift.sale.total is exist - process it [05:39:19]SAM_PROTO_GetShiftData [05:39:19]wFMCommunicate request_size=4 [05:39:19]MH_SAM_APDU [05:39:19]CAPDU: 80 13 02 00 [05:39:19]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [05:39:19]Write i2c OK [05:39:19]MH_I2C_Read... [05:39:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [05:39:20]Read from MH i2c: E2 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: E2 FD 00 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: E2 FD 00 18 00 00 AB 04 AA 04 A7 04 6E 04 04 00 06 00 00 00 69 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 E4 CE 01 70 04 02 00 20 E4 72 04 02 00 C4 EA 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 27 31 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 19 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 32 [05:39:20]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 06 00 00 00 69 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 E4 CE 01 70 04 02 00 20 E4 72 04 02 00 C4 EA 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 27 31 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 19 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [05:39:20]wFMCommunicate OK [05:39:20]wFMCommunicate request_size=4 [05:39:20]MH_SAM_APDU [05:39:20]CAPDU: 80 17 00 00 [05:39:20]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [05:39:20]Write i2c OK [05:39:20]MH_I2C_Read... [05:39:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:39:20]Read from MH i2c: E2 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: E2 FD 00 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: E2 FD 00 19 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 AE [05:39:20]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [05:39:20]wFMCommunicate OK [05:39:20]wFMCommunicate request_size=4 [05:39:20]MH_SAM_APDU [05:39:20]CAPDU: 80 17 00 00 [05:39:20]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [05:39:20]Write i2c OK [05:39:20]MH_I2C_Read... [05:39:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:39:20]Read from MH i2c: E2 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: E2 FD 00 [05:39:20]MH_I2C_Read... [05:39:20]Read from MH i2c: E2 FD 00 1A 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 90 00 4A [05:39:20]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 90 00 [05:39:20]wFMCommunicate OK [05:39:20]wFMCommunicate request_size=4 [05:39:20]MH_SAM_APDU [05:39:20]CAPDU: 80 17 00 00 [05:39:20]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [05:39:20]Write i2c OK [05:39:20]MH_I2C_Read... [05:39:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:39:21]Read from MH i2c: E2 [05:39:21]MH_I2C_Read... [05:39:21]Read from MH i2c: E2 FD 00 [05:39:21]MH_I2C_Read... [05:39:21]Read from MH i2c: E2 FD 00 1B 00 00 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 90 00 21 [05:39:21]RAPDU: 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 90 00 [05:39:21]wFMCommunicate OK [05:39:21]wFMCommunicate request_size=4 [05:39:21]MH_SAM_APDU [05:39:21]CAPDU: 80 17 00 00 [05:39:21]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [05:39:21]Write i2c OK [05:39:21]MH_I2C_Read... [05:39:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [05:39:21]Read from MH i2c: E2 [05:39:21]MH_I2C_Read... [05:39:21]Read from MH i2c: E2 C8 00 [05:39:21]MH_I2C_Read... [05:39:21]Read from MH i2c: E2 C8 00 1C 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7F [05:39:21]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [05:39:21]wFMCommunicate OK [05:39:21]SAM_PROTO_GetShiftData done [05:39:21]requested_item shift.sale.total_cash is exist - process it [05:39:21]requested_item shift.sale_refund.total is exist - process it [05:39:21]requested_item shift.sale_refund.total_cash is exist - process it [05:39:21]requested_item shift.buy.total is exist - process it [05:39:21]requested_item shift.buy.total_cash is exist - process it [05:39:21]produce_requested_data done [05:39:21]produce_requested_data return {"fm.sale.total":20194423.08,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":1185.00,"shift.sale.total_cash":584.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} [05:39:21]process_action_free get_value [05:39:21]json_value_free [05:39:21]json_value_free done [05:39:21]process_json_proto returns [05:39:21]Send response to host [05:39:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20194423.08,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":1185.00,"shift.sale.total_cash":584.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}}} [05:39:21]free response buf [05:39:21]execute_script done [05:39:21]execute_script returns [05:39:21]free content buf [05:39:21]Sock 7.Close socket [05:39:21]Sock 7.Thread stoped [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:57:01]ConnectInit Can't connect to host [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]accept exits with 9 [06:00:00]New connection [06:00:00]New thread 3066731876 created [06:00:00]Waiting for new connection... [06:00:00] Sock 9.Parse request [06:00:00]Sock 9.Check first char [06:00:00]Sock 9.First char is OK [06:00:00]request: POST /json_proto HTTP/1.0 [06:00:00]Method: POST [06:00:00]URL: /json_proto [06:00:00]Method is POST - this is cgi request [06:00:00]url: /json_proto [06:00:00]query_string will be loaded in cgi processing [06:00:00]execute_cgi json_proto POST (null) [06:00:00]execute_cgi path=json_proto method=POST [06:00:00]POST find Content-Length [06:00:00]Host: 172.17.52.196:8080 [06:00:00]Content-Length: 215 [06:00:00]Content-Type: application/json [06:00:00] [06:00:00]POST finish read [06:00:00]Found Content-Length = 215 [06:00:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:00:00]execute_script... [06:00:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:00:00]POST & json_proto [06:00:00]process_json_proto [06:00:00]json parsed OK: [06:00:00]protocol is kg_v1.0 [06:00:00]action value=get_value [06:00:00]process_action get_value [06:00:00]cmd_get_value [06:00:00]process_action get_value done [06:00:00]requested_data is exist [06:00:00]produce_requested_data [06:00:00]requested_item kkm.sn is exist - process it [06:00:00]requested_item kkm.ver is exist - process it [06:00:00]requested_item fm.sn is exist - process it [06:00:00]wFMCommunicate request_size=4 [06:00:00]MH_SAM_APDU [06:00:00]CAPDU: 80 11 00 00 [06:00:00]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [06:00:00]Write i2c OK [06:00:00]MH_I2C_Read... [06:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:00:00]Read from MH i2c: E2 [06:00:00]MH_I2C_Read... [06:00:00]Read from MH i2c: E2 17 00 [06:00:00]MH_I2C_Read... [06:00:00]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 31 37 34 39 90 00 E1 [06:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [06:00:00]wFMCommunicate OK [06:00:00]requested_item fd.num is exist - process it [06:00:00]SAM_PROTO_GetFieldsCounters [06:00:00]wFMCommunicate request_size=4 [06:00:00]MH_SAM_APDU [06:00:00]CAPDU: 80 13 00 00 [06:00:00]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [06:00:00]Write i2c OK [06:00:00]MH_I2C_Read... [06:00:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:00:00]Read from MH i2c: E2 [06:00:00]MH_I2C_Read... [06:00:00]Read from MH i2c: E2 62 00 [06:00:00]MH_I2C_Read... [06:00:00]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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 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 38 [06:00: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 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 [06:00:00]wFMCommunicate OK [06:00:00]SAM_PROTO_GetFieldsCounters done [06:00:00]requested_item shift.num is exist - process it [06:00:00]requested_item shift.opened is exist - process it [06:00:00]req_shift_opened [06:00:00]FM_GetShiftState [06:00:00]SAM_PROTO_GetShiftState [06:00:00]wFMCommunicate request_size=4 [06:00:00]MH_SAM_APDU [06:00:00]CAPDU: 80 13 01 00 [06:00:00]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [06:00:00]Write i2c OK [06:00:00]MH_I2C_Read... [06:00:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:00:00]Read from MH i2c: E2 [06:00:00]MH_I2C_Read... [06:00:00]Read from MH i2c: E2 0E 00 [06:00:00]MH_I2C_Read... [06:00:00]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 21 [06:00:00]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [06:00:00]wFMCommunicate OK [06:00:00]SAM_PROTO_GetShiftState done [06:00:00]FM_GetShiftState done [06:00:00]req_shift_opened done [06:00:00]requested_item shift.open_date is exist - process it [06:00:00]req_shift_open_date [06:00:00]req_shift_open_date done [06:00:00]produce_requested_data done [06:00:00]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [06:00:00]process_action_free get_value [06:00:00]json_value_free [06:00:00]json_value_free done [06:00:00]process_json_proto returns [06:00:00]Send response to host [06:00:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [06:00:00]free response buf [06:00:00]execute_script done [06:00:00]execute_script returns [06:00:00]free content buf [06:00:00]Sock 9.Close socket [06:00:00]Sock 9.Thread stoped [06:00:00]OFD Sender: No OFD packet to send [06:00:03]accept exits with 7 [06:00:03]New connection [06:00:03]New thread 3066588516 created [06:00:03]Thread 3066731876 joined [06:00:03]Waiting for new connection... [06:00:03] Sock 7.Parse request [06:00:03]Sock 7.Check first char [06:00:03]Sock 7.First char is OK [06:00:03]request: POST /json_proto HTTP/1.0 [06:00:03]Method: POST [06:00:03]URL: /json_proto [06:00:03]Method is POST - this is cgi request [06:00:03]url: /json_proto [06:00:03]query_string will be loaded in cgi processing [06:00:03]execute_cgi json_proto POST (null) [06:00:03]execute_cgi path=json_proto method=POST [06:00:03]POST find Content-Length [06:00:03]Host: 172.17.52.196:8080 [06:00:03]Content-Length: 331 [06:00:03]Content-Type: application/json [06:00:03] [06:00:03]POST finish read [06:00:03]Found Content-Length = 331 [06:00:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [06:00:03]execute_script... [06:00:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [06:00:03]POST & json_proto [06:00:03]process_json_proto [06:00:03]json parsed OK: [06:00:03]protocol is kg_v1.0 [06:00:03]action value=get_value [06:00:03]process_action get_value [06:00:03]cmd_get_value [06:00:03]process_action get_value done [06:00:03]requested_data is exist [06:00:03]produce_requested_data [06:00:03]requested_item fm.sale.total is exist - process it [06:00:03]SAM_PROTO_GetFMData [06:00:03]wFMCommunicate request_size=4 [06:00:03]MH_SAM_APDU [06:00:03]CAPDU: 80 13 03 00 [06:00:03]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [06:00:03]Write i2c OK [06:00:03]MH_I2C_Read... [06:00:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [06:00:03]Read from MH i2c: E2 [06:00:03]MH_I2C_Read... [06:00:03]Read from MH i2c: E2 FD 00 [06:00:03]MH_I2C_Read... [06:00:03]Read from MH i2c: E2 FD 00 13 00 00 C3 04 85 04 BF 04 6E 04 04 00 38 0C 01 00 69 04 A1 00 6F 04 04 00 DA 0B 01 00 B1 04 04 00 84 3E 5E 78 70 04 04 00 0C 66 7B 67 72 04 04 00 78 D8 E2 10 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 CF C8 0C 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 1E 9F 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 01 [06:00:03]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 38 0C 01 00 69 04 A1 00 6F 04 04 00 DA 0B 01 00 B1 04 04 00 84 3E 5E 78 70 04 04 00 0C 66 7B 67 72 04 04 00 78 D8 E2 10 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 CF C8 0C 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 1E 9F 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [06:00:03]wFMCommunicate OK [06:00:03]wFMCommunicate request_size=4 [06:00:03]MH_SAM_APDU [06:00:03]CAPDU: 80 17 00 00 [06:00:03]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [06:00:03]Write i2c OK [06:00:03]MH_I2C_Read... [06:00:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:00:04]Read from MH i2c: E2 [06:00:04]MH_I2C_Read... [06:00:04]Read from MH i2c: E2 FD 00 [06:00:04]MH_I2C_Read... [06:00:04]Read from MH i2c: E2 FD 00 14 00 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 98 [06:00:04]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [06:00:04]wFMCommunicate OK [06:00:04]wFMCommunicate request_size=4 [06:00:04]MH_SAM_APDU [06:00:04]CAPDU: 80 17 00 00 [06:00:04]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [06:00:04]Write i2c OK [06:00:04]MH_I2C_Read... [06:00:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:00:04]Read from MH i2c: E2 [06:00:04]MH_I2C_Read... [06:00:04]Read from MH i2c: E2 FD 00 [06:00:04]MH_I2C_Read... [06:00:04]Read from MH i2c: E2 FD 00 15 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 B3 [06:00:04]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [06:00:04]wFMCommunicate OK [06:00:04]wFMCommunicate request_size=4 [06:00:04]MH_SAM_APDU [06:00:04]CAPDU: 80 17 00 00 [06:00:04]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [06:00:04]Write i2c OK [06:00:04]MH_I2C_Read... [06:00:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:00:04]Read from MH i2c: E2 [06:00:04]MH_I2C_Read... [06:00:04]Read from MH i2c: E2 FD 00 [06:00:04]MH_I2C_Read... [06:00:04]Read from MH i2c: E2 FD 00 16 00 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 08 [06:00:04]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:00:04]wFMCommunicate OK [06:00:04]wFMCommunicate request_size=4 [06:00:04]MH_SAM_APDU [06:00:04]CAPDU: 80 17 00 00 [06:00:04]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [06:00:04]Write i2c OK [06:00:04]MH_I2C_Read... [06:00:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [06:00:04]Read from MH i2c: E2 [06:00:04]MH_I2C_Read... [06:00:04]Read from MH i2c: E2 E0 00 [06:00:04]MH_I2C_Read... [06:00:04]Read from MH i2c: E2 E0 00 17 00 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [06:00:04]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:00:04]wFMCommunicate OK [06:00:04]SAM_PROTO_GetFMData done [06:00:04]requested_item fm.sale_refund.total is exist - process it [06:00:04]requested_item fm.buy.total is exist - process it [06:00:04]requested_item shift.sale.total is exist - process it [06:00:04]SAM_PROTO_GetShiftData [06:00:04]wFMCommunicate request_size=4 [06:00:04]MH_SAM_APDU [06:00:04]CAPDU: 80 13 02 00 [06:00:04]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [06:00:04]Write i2c OK [06:00:04]MH_I2C_Read... [06:00:05]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [06:00:05]Read from MH i2c: E2 [06:00:05]MH_I2C_Read... [06:00:05]Read from MH i2c: E2 FD 00 [06:00:05]MH_I2C_Read... [06:00:05]Read from MH i2c: E2 FD 00 18 00 00 AB 04 AA 04 A7 04 6E 04 04 00 06 00 00 00 69 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 E4 CE 01 70 04 02 00 20 E4 72 04 02 00 C4 EA 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 27 31 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 19 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 32 [06:00:05]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 06 00 00 00 69 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 E4 CE 01 70 04 02 00 20 E4 72 04 02 00 C4 EA 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 27 31 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 19 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [06:00:05]wFMCommunicate OK [06:00:05]wFMCommunicate request_size=4 [06:00:05]MH_SAM_APDU [06:00:05]CAPDU: 80 17 00 00 [06:00:05]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [06:00:05]Write i2c OK [06:00:05]MH_I2C_Read... [06:00:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:00:05]Read from MH i2c: E2 [06:00:05]MH_I2C_Read... [06:00:05]Read from MH i2c: E2 FD 00 [06:00:05]MH_I2C_Read... [06:00:05]Read from MH i2c: E2 FD 00 19 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 AE [06:00:05]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [06:00:05]wFMCommunicate OK [06:00:05]wFMCommunicate request_size=4 [06:00:05]MH_SAM_APDU [06:00:05]CAPDU: 80 17 00 00 [06:00:05]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [06:00:05]Write i2c OK [06:00:05]MH_I2C_Read... [06:00:05]OFD Sender: No OFD packet to send [06:00:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:00:05]Read from MH i2c: E2 [06:00:05]MH_I2C_Read... [06:00:05]Read from MH i2c: E2 FD 00 [06:00:05]MH_I2C_Read... [06:00:05]Read from MH i2c: E2 FD 00 1A 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 90 00 4A [06:00:05]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 90 00 [06:00:05]wFMCommunicate OK [06:00:05]wFMCommunicate request_size=4 [06:00:05]MH_SAM_APDU [06:00:05]CAPDU: 80 17 00 00 [06:00:05]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [06:00:05]Write i2c OK [06:00:05]MH_I2C_Read... [06:00:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:00:06]Read from MH i2c: E2 [06:00:06]MH_I2C_Read... [06:00:06]Read from MH i2c: E2 FD 00 [06:00:06]MH_I2C_Read... [06:00:06]Read from MH i2c: E2 FD 00 1B 00 00 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 90 00 21 [06:00:06]RAPDU: 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 90 00 [06:00:06]wFMCommunicate OK [06:00:06]wFMCommunicate request_size=4 [06:00:06]MH_SAM_APDU [06:00:06]CAPDU: 80 17 00 00 [06:00:06]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [06:00:06]Write i2c OK [06:00:06]MH_I2C_Read... [06:00:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [06:00:06]Read from MH i2c: E2 [06:00:06]MH_I2C_Read... [06:00:06]Read from MH i2c: E2 C8 00 [06:00:06]MH_I2C_Read... [06:00:06]Read from MH i2c: E2 C8 00 1C 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7F [06:00:06]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:00:06]wFMCommunicate OK [06:00:06]SAM_PROTO_GetShiftData done [06:00:06]requested_item shift.sale.total_cash is exist - process it [06:00:06]requested_item shift.sale_refund.total is exist - process it [06:00:06]requested_item shift.sale_refund.total_cash is exist - process it [06:00:06]requested_item shift.buy.total is exist - process it [06:00:06]requested_item shift.buy.total_cash is exist - process it [06:00:06]produce_requested_data done [06:00:06]produce_requested_data return {"fm.sale.total":20194423.08,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":1185.00,"shift.sale.total_cash":584.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [06:00:06]process_action_free get_value [06:00:06]json_value_free [06:00:06]json_value_free done [06:00:06]process_json_proto returns [06:00:06]Send response to host [06:00:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20194423.08,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":1185.00,"shift.sale.total_cash":584.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [06:00:06]free response buf [06:00:06]execute_script done [06:00:06]execute_script returns [06:00:06]free content buf [06:00:06]Sock 7.Close socket [06:00:06]Sock 7.Thread stoped [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:46]accept exits with 9 [06:04:46]New connection [06:04:46]New thread 3066731876 created [06:04:46]Thread 3066588516 joined [06:04:46]Waiting for new connection... [06:04:46] Sock 9.Parse request [06:04:46]Sock 9.Check first char [06:04:46]Sock 9.First char is OK [06:04:46]request: POST /json_proto HTTP/1.0 [06:04:46]Method: POST [06:04:46]URL: /json_proto [06:04:46]Method is POST - this is cgi request [06:04:46]url: /json_proto [06:04:46]query_string will be loaded in cgi processing [06:04:46]execute_cgi json_proto POST (null) [06:04:46]execute_cgi path=json_proto method=POST [06:04:46]POST find Content-Length [06:04:46]Host: 172.17.52.196:8080 [06:04:46]Content-Length: 215 [06:04:46]Content-Type: application/json [06:04:46] [06:04:46]POST finish read [06:04:46]Found Content-Length = 215 [06:04: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" ] } } [06:04:46]execute_script... [06:04: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" ] } } [06:04:46]POST & json_proto [06:04:46]process_json_proto [06:04:46]json parsed OK: [06:04:46]protocol is kg_v1.0 [06:04:46]action value=get_value [06:04:46]process_action get_value [06:04:46]cmd_get_value [06:04:46]process_action get_value done [06:04:46]requested_data is exist [06:04:46]produce_requested_data [06:04:46]requested_item kkm.sn is exist - process it [06:04:46]requested_item kkm.ver is exist - process it [06:04:46]requested_item fm.sn is exist - process it [06:04:46]wFMCommunicate request_size=4 [06:04:46]MH_SAM_APDU [06:04:46]CAPDU: 80 11 00 00 [06:04:46]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [06:04:46]Write i2c OK [06:04:46]MH_I2C_Read... [06:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:46]Read from MH i2c: E2 [06:04:46]MH_I2C_Read... [06:04:46]Read from MH i2c: E2 17 00 [06:04:46]MH_I2C_Read... [06:04:46]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 EE [06:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [06:04:46]wFMCommunicate OK [06:04:46]requested_item fd.num is exist - process it [06:04:46]SAM_PROTO_GetFieldsCounters [06:04:46]wFMCommunicate request_size=4 [06:04:46]MH_SAM_APDU [06:04:46]CAPDU: 80 13 00 00 [06:04:46]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [06:04:46]Write i2c OK [06:04:46]MH_I2C_Read... [06:04:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:04:46]Read from MH i2c: E2 [06:04:46]MH_I2C_Read... [06:04:46]Read from MH i2c: E2 62 00 [06:04:46]MH_I2C_Read... [06:04:46]Read from MH i2c: E2 62 00 1E 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 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 45 [06:04: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 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 [06:04:46]wFMCommunicate OK [06:04:46]SAM_PROTO_GetFieldsCounters done [06:04:46]requested_item shift.num is exist - process it [06:04:46]requested_item shift.opened is exist - process it [06:04:46]req_shift_opened [06:04:46]FM_GetShiftState [06:04:46]SAM_PROTO_GetShiftState [06:04:46]wFMCommunicate request_size=4 [06:04:46]MH_SAM_APDU [06:04:46]CAPDU: 80 13 01 00 [06:04:46]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [06:04:46]Write i2c OK [06:04:46]MH_I2C_Read... [06:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:46]Read from MH i2c: E2 [06:04:46]MH_I2C_Read... [06:04:46]Read from MH i2c: E2 0E 00 [06:04:46]MH_I2C_Read... [06:04:46]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 2E [06:04:46]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [06:04:46]wFMCommunicate OK [06:04:46]SAM_PROTO_GetShiftState done [06:04:46]FM_GetShiftState done [06:04:46]req_shift_opened done [06:04:46]requested_item shift.open_date is exist - process it [06:04:46]req_shift_open_date [06:04:46]req_shift_open_date done [06:04:46]produce_requested_data done [06:04:46]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [06:04:46]process_action_free get_value [06:04:46]json_value_free [06:04:46]json_value_free done [06:04:46]process_json_proto returns [06:04:46]Send response to host [06:04:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [06:04:46]free response buf [06:04:46]execute_script done [06:04:46]execute_script returns [06:04:46]free content buf [06:04:46]Sock 9.Close socket [06:04:46]Sock 9.Thread stoped [06:04:46]accept exits with 7 [06:04:46]New connection [06:04:46]New thread 3066588516 created [06:04:46]Thread 3066731876 joined [06:04:46]Waiting for new connection... [06:04:46] Sock 7.Parse request [06:04:46]Sock 7.Check first char [06:04:46]Sock 7.First char is OK [06:04:46]request: POST /json_proto HTTP/1.0 [06:04:46]Method: POST [06:04:46]URL: /json_proto [06:04:46]Method is POST - this is cgi request [06:04:46]url: /json_proto [06:04:46]query_string will be loaded in cgi processing [06:04:46]execute_cgi json_proto POST (null) [06:04:46]execute_cgi path=json_proto method=POST [06:04:46]POST find Content-Length [06:04:46]Host: 172.17.52.196:8080 [06:04:46]Content-Length: 331 [06:04:46]Content-Type: application/json [06:04:46] [06:04:46]POST finish read [06:04:46]Found Content-Length = 331 [06:04: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" ] } } [06:04:46]execute_script... [06:04: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" ] } } [06:04:46]POST & json_proto [06:04:46]process_json_proto [06:04:46]json parsed OK: [06:04:46]protocol is kg_v1.0 [06:04:46]action value=get_value [06:04:46]process_action get_value [06:04:46]cmd_get_value [06:04:46]process_action get_value done [06:04:46]requested_data is exist [06:04:46]produce_requested_data [06:04:46]requested_item fm.sale.total is exist - process it [06:04:46]SAM_PROTO_GetFMData [06:04:46]wFMCommunicate request_size=4 [06:04:46]MH_SAM_APDU [06:04:46]CAPDU: 80 13 03 00 [06:04:46]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [06:04:46]Write i2c OK [06:04:46]MH_I2C_Read... [06:04:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [06:04:47]Read from MH i2c: E2 [06:04:47]MH_I2C_Read... [06:04:47]Read from MH i2c: E2 FD 00 [06:04:47]MH_I2C_Read... [06:04:47]Read from MH i2c: E2 FD 00 20 00 00 C3 04 85 04 BF 04 6E 04 04 00 38 0C 01 00 69 04 A1 00 6F 04 04 00 DA 0B 01 00 B1 04 04 00 84 3E 5E 78 70 04 04 00 0C 66 7B 67 72 04 04 00 78 D8 E2 10 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 CF C8 0C 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 1E 9F 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 0E [06:04:47]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 38 0C 01 00 69 04 A1 00 6F 04 04 00 DA 0B 01 00 B1 04 04 00 84 3E 5E 78 70 04 04 00 0C 66 7B 67 72 04 04 00 78 D8 E2 10 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 CF C8 0C 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 1E 9F 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [06:04:47]wFMCommunicate OK [06:04:47]wFMCommunicate request_size=4 [06:04:47]MH_SAM_APDU [06:04:47]CAPDU: 80 17 00 00 [06:04:47]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [06:04:47]Write i2c OK [06:04:47]MH_I2C_Read... [06:04:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:04:47]Read from MH i2c: E2 [06:04:47]MH_I2C_Read... [06:04:47]Read from MH i2c: E2 FD 00 [06:04:47]MH_I2C_Read... [06:04:47]Read from MH i2c: E2 FD 00 21 00 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 A5 [06:04:47]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [06:04:47]wFMCommunicate OK [06:04:47]wFMCommunicate request_size=4 [06:04:47]MH_SAM_APDU [06:04:47]CAPDU: 80 17 00 00 [06:04:47]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [06:04:47]Write i2c OK [06:04:47]MH_I2C_Read... [06:04:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:04:47]Read from MH i2c: E2 [06:04:47]MH_I2C_Read... [06:04:47]Read from MH i2c: E2 FD 00 [06:04:47]MH_I2C_Read... [06:04:47]Read from MH i2c: E2 FD 00 22 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 C0 [06:04:47]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [06:04:47]wFMCommunicate OK [06:04:47]wFMCommunicate request_size=4 [06:04:47]MH_SAM_APDU [06:04:47]CAPDU: 80 17 00 00 [06:04:47]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [06:04:47]Write i2c OK [06:04:47]MH_I2C_Read... [06:04:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:04:48]Read from MH i2c: E2 [06:04:48]MH_I2C_Read... [06:04:48]Read from MH i2c: E2 FD 00 [06:04:48]MH_I2C_Read... [06:04:48]Read from MH i2c: E2 FD 00 23 00 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 15 [06:04:48]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:04:48]wFMCommunicate OK [06:04:48]wFMCommunicate request_size=4 [06:04:48]MH_SAM_APDU [06:04:48]CAPDU: 80 17 00 00 [06:04:48]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [06:04:48]Write i2c OK [06:04:48]MH_I2C_Read... [06:04:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [06:04:48]Read from MH i2c: E2 [06:04:48]MH_I2C_Read... [06:04:48]Read from MH i2c: E2 E0 00 [06:04:48]MH_I2C_Read... [06:04:48]Read from MH i2c: E2 E0 00 24 00 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8E [06:04:48]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:04:48]wFMCommunicate OK [06:04:48]SAM_PROTO_GetFMData done [06:04:48]requested_item fm.sale_refund.total is exist - process it [06:04:48]requested_item fm.buy.total is exist - process it [06:04:48]requested_item shift.sale.total is exist - process it [06:04:48]SAM_PROTO_GetShiftData [06:04:48]wFMCommunicate request_size=4 [06:04:48]MH_SAM_APDU [06:04:48]CAPDU: 80 13 02 00 [06:04:48]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [06:04:48]Write i2c OK [06:04:48]MH_I2C_Read... [06:04:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [06:04:48]Read from MH i2c: E2 [06:04:48]MH_I2C_Read... [06:04:48]Read from MH i2c: E2 FD 00 [06:04:48]MH_I2C_Read... [06:04:48]Read from MH i2c: E2 FD 00 25 00 00 AB 04 AA 04 A7 04 6E 04 04 00 06 00 00 00 69 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 E4 CE 01 70 04 02 00 20 E4 72 04 02 00 C4 EA 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 27 31 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 19 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 3F [06:04:48]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 06 00 00 00 69 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 E4 CE 01 70 04 02 00 20 E4 72 04 02 00 C4 EA 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 27 31 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 19 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [06:04:48]wFMCommunicate OK [06:04:48]wFMCommunicate request_size=4 [06:04:48]MH_SAM_APDU [06:04:48]CAPDU: 80 17 00 00 [06:04:48]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [06:04:48]Write i2c OK [06:04:48]MH_I2C_Read... [06:04:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:04:49]Read from MH i2c: E2 [06:04:49]MH_I2C_Read... [06:04:49]Read from MH i2c: E2 FD 00 [06:04:49]MH_I2C_Read... [06:04:49]Read from MH i2c: E2 FD 00 26 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 BB [06:04:49]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [06:04:49]wFMCommunicate OK [06:04:49]wFMCommunicate request_size=4 [06:04:49]MH_SAM_APDU [06:04:49]CAPDU: 80 17 00 00 [06:04:49]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [06:04:49]Write i2c OK [06:04:49]MH_I2C_Read... [06:04:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:04:49]Read from MH i2c: E2 [06:04:49]MH_I2C_Read... [06:04:49]Read from MH i2c: E2 FD 00 [06:04:49]MH_I2C_Read... [06:04:49]Read from MH i2c: E2 FD 00 27 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 90 00 57 [06:04:49]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 90 00 [06:04:49]wFMCommunicate OK [06:04:49]wFMCommunicate request_size=4 [06:04:49]MH_SAM_APDU [06:04:49]CAPDU: 80 17 00 00 [06:04:49]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [06:04:49]Write i2c OK [06:04:49]MH_I2C_Read... [06:04:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:04:49]Read from MH i2c: E2 [06:04:49]MH_I2C_Read... [06:04:49]Read from MH i2c: E2 FD 00 [06:04:49]MH_I2C_Read... [06:04:49]Read from MH i2c: E2 FD 00 28 00 00 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 90 00 2E [06:04:49]RAPDU: 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 90 00 [06:04:49]wFMCommunicate OK [06:04:49]wFMCommunicate request_size=4 [06:04:49]MH_SAM_APDU [06:04:49]CAPDU: 80 17 00 00 [06:04:49]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [06:04:49]Write i2c OK [06:04:49]MH_I2C_Read... [06:04:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [06:04:49]Read from MH i2c: E2 [06:04:49]MH_I2C_Read... [06:04:49]Read from MH i2c: E2 C8 00 [06:04:49]MH_I2C_Read... [06:04:49]Read from MH i2c: E2 C8 00 29 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8C [06:04:49]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:04:49]wFMCommunicate OK [06:04:49]SAM_PROTO_GetShiftData done [06:04:49]requested_item shift.sale.total_cash is exist - process it [06:04:49]requested_item shift.sale_refund.total is exist - process it [06:04:49]requested_item shift.sale_refund.total_cash is exist - process it [06:04:49]requested_item shift.buy.total is exist - process it [06:04:49]requested_item shift.buy.total_cash is exist - process it [06:04:49]produce_requested_data done [06:04:49]produce_requested_data return {"fm.sale.total":20194423.08,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":1185.00,"shift.sale.total_cash":584.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [06:04:49]process_action_free get_value [06:04:49]json_value_free [06:04:49]json_value_free done [06:04:49]process_json_proto returns [06:04:49]Send response to host [06:04:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20194423.08,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":1185.00,"shift.sale.total_cash":584.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [06:04:49]free response buf [06:04:49]execute_script done [06:04:49]execute_script returns [06:04:49]free content buf [06:04:49]Sock 7.Close socket [06:04:49]Sock 7.Thread stoped [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:04]accept exits with 9 [06:05:04]New connection [06:05:04]New thread 3066731876 created [06:05:04]Thread 3066588516 joined [06:05:04]Waiting for new connection... [06:05:04] Sock 9.Parse request [06:05:04]Sock 9.Check first char [06:05:04]Sock 9.First char is OK [06:05:04]request: POST /json_proto HTTP/1.0 [06:05:04]Method: POST [06:05:04]URL: /json_proto [06:05:04]Method is POST - this is cgi request [06:05:04]url: /json_proto [06:05:04]query_string will be loaded in cgi processing [06:05:04]execute_cgi json_proto POST (null) [06:05:04]execute_cgi path=json_proto method=POST [06:05:04]POST find Content-Length [06:05:04]Host: 172.17.52.196:8080 [06:05:04]Content-Length: 215 [06:05:04]Content-Type: application/json [06:05:04] [06:05:04]POST finish read [06:05:04]Found Content-Length = 215 [06:05:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:05:04]execute_script... [06:05:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:05:04]POST & json_proto [06:05:04]process_json_proto [06:05:04]json parsed OK: [06:05:04]protocol is kg_v1.0 [06:05:04]action value=get_value [06:05:04]process_action get_value [06:05:04]cmd_get_value [06:05:04]process_action get_value done [06:05:04]requested_data is exist [06:05:04]produce_requested_data [06:05:04]requested_item kkm.sn is exist - process it [06:05:04]requested_item kkm.ver is exist - process it [06:05:04]requested_item fm.sn is exist - process it [06:05:04]wFMCommunicate request_size=4 [06:05:04]MH_SAM_APDU [06:05:04]CAPDU: 80 11 00 00 [06:05:04]Write to MH i2c: E2 08 00 2A 00 80 11 00 00 00 00 00 00 A4 [06:05:04]Write i2c OK [06:05:04]MH_I2C_Read... [06:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:05:04]Read from MH i2c: E2 [06:05:04]MH_I2C_Read... [06:05:04]Read from MH i2c: E2 17 00 [06:05:04]MH_I2C_Read... [06:05:04]Read from MH i2c: E2 17 00 2A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 FB [06:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [06:05:04]wFMCommunicate OK [06:05:04]requested_item fd.num is exist - process it [06:05:04]SAM_PROTO_GetFieldsCounters [06:05:04]wFMCommunicate request_size=4 [06:05:04]MH_SAM_APDU [06:05:04]CAPDU: 80 13 00 00 [06:05:04]Write to MH i2c: E2 08 00 2B 00 80 13 00 00 00 00 00 00 A7 [06:05:04]Write i2c OK [06:05:04]MH_I2C_Read... [06:05:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:05:04]Read from MH i2c: E2 [06:05:04]MH_I2C_Read... [06:05:04]Read from MH i2c: E2 62 00 [06:05:04]MH_I2C_Read... [06:05:04]Read from MH i2c: E2 62 00 2B 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 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 52 [06:05: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 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 [06:05:04]wFMCommunicate OK [06:05:04]SAM_PROTO_GetFieldsCounters done [06:05:04]requested_item shift.num is exist - process it [06:05:04]requested_item shift.opened is exist - process it [06:05:04]req_shift_opened [06:05:04]FM_GetShiftState [06:05:04]SAM_PROTO_GetShiftState [06:05:04]wFMCommunicate request_size=4 [06:05:04]MH_SAM_APDU [06:05:04]CAPDU: 80 13 01 00 [06:05:04]Write to MH i2c: E2 08 00 2C 00 80 13 01 00 00 00 00 00 A9 [06:05:04]Write i2c OK [06:05:04]MH_I2C_Read... [06:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:05:04]Read from MH i2c: E2 [06:05:04]MH_I2C_Read... [06:05:04]Read from MH i2c: E2 0E 00 [06:05:04]MH_I2C_Read... [06:05:04]Read from MH i2c: E2 0E 00 2C 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 3B [06:05:04]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [06:05:04]wFMCommunicate OK [06:05:04]SAM_PROTO_GetShiftState done [06:05:04]FM_GetShiftState done [06:05:04]req_shift_opened done [06:05:04]requested_item shift.open_date is exist - process it [06:05:04]req_shift_open_date [06:05:04]req_shift_open_date done [06:05:04]produce_requested_data done [06:05:04]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [06:05:04]process_action_free get_value [06:05:04]json_value_free [06:05:04]json_value_free done [06:05:04]process_json_proto returns [06:05:04]Send response to host [06:05:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [06:05:04]free response buf [06:05:04]execute_script done [06:05:04]execute_script returns [06:05:04]free content buf [06:05:04]Sock 9.Close socket [06:05:04]Sock 9.Thread stoped [06:05:04]accept exits with 7 [06:05:04]New connection [06:05:04]New thread 3066588516 created [06:05:04]Thread 3066731876 joined [06:05:04]Waiting for new connection... [06:05:04] Sock 7.Parse request [06:05:04]Sock 7.Check first char [06:05:04]Sock 7.First char is OK [06:05:04]request: POST /json_proto HTTP/1.0 [06:05:04]Method: POST [06:05:04]URL: /json_proto [06:05:04]Method is POST - this is cgi request [06:05:04]url: /json_proto [06:05:04]query_string will be loaded in cgi processing [06:05:04]execute_cgi json_proto POST (null) [06:05:05]execute_cgi path=json_proto method=POST [06:05:05]POST find Content-Length [06:05:05]Host: 172.17.52.196:8080 [06:05:05]Content-Length: 331 [06:05:05]Content-Type: application/json [06:05:05] [06:05:05]POST finish read [06:05:05]Found Content-Length = 331 [06:05:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [06:05:05]execute_script... [06:05:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [06:05:05]POST & json_proto [06:05:05]process_json_proto [06:05:05]json parsed OK: [06:05:05]protocol is kg_v1.0 [06:05:05]action value=get_value [06:05:05]process_action get_value [06:05:05]cmd_get_value [06:05:05]process_action get_value done [06:05:05]requested_data is exist [06:05:05]produce_requested_data [06:05:05]requested_item fm.sale.total is exist - process it [06:05:05]SAM_PROTO_GetFMData [06:05:05]wFMCommunicate request_size=4 [06:05:05]MH_SAM_APDU [06:05:05]CAPDU: 80 13 03 00 [06:05:05]Write to MH i2c: E2 08 00 2D 00 80 13 03 00 00 00 00 00 AC [06:05:05]Write i2c OK [06:05:05]MH_I2C_Read... [06:05:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [06:05:05]Read from MH i2c: E2 [06:05:05]MH_I2C_Read... [06:05:05]Read from MH i2c: E2 FD 00 [06:05:05]MH_I2C_Read... [06:05:05]Read from MH i2c: E2 FD 00 2D 00 00 C3 04 85 04 BF 04 6E 04 04 00 38 0C 01 00 69 04 A1 00 6F 04 04 00 DA 0B 01 00 B1 04 04 00 84 3E 5E 78 70 04 04 00 0C 66 7B 67 72 04 04 00 78 D8 E2 10 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 CF C8 0C 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 1E 9F 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 1B [06:05:05]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 38 0C 01 00 69 04 A1 00 6F 04 04 00 DA 0B 01 00 B1 04 04 00 84 3E 5E 78 70 04 04 00 0C 66 7B 67 72 04 04 00 78 D8 E2 10 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 CF C8 0C 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 1E 9F 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [06:05:05]wFMCommunicate OK [06:05:05]wFMCommunicate request_size=4 [06:05:05]MH_SAM_APDU [06:05:05]CAPDU: 80 17 00 00 [06:05:05]Write to MH i2c: E2 08 00 2E 00 80 17 00 00 00 00 00 00 AE [06:05:05]Write i2c OK [06:05:05]MH_I2C_Read... [06:05:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:05:06]Read from MH i2c: E2 [06:05:06]MH_I2C_Read... [06:05:06]Read from MH i2c: E2 FD 00 [06:05:06]MH_I2C_Read... [06:05:06]Read from MH i2c: E2 FD 00 2E 00 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 B2 [06:05:06]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [06:05:06]wFMCommunicate OK [06:05:06]wFMCommunicate request_size=4 [06:05:06]MH_SAM_APDU [06:05:06]CAPDU: 80 17 00 00 [06:05:06]Write to MH i2c: E2 08 00 2F 00 80 17 00 00 00 00 00 00 AF [06:05:06]Write i2c OK [06:05:06]MH_I2C_Read... [06:05:06]OFD Sender: No OFD packet to send [06:05:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:05:06]Read from MH i2c: E2 [06:05:06]MH_I2C_Read... [06:05:06]Read from MH i2c: E2 FD 00 [06:05:06]MH_I2C_Read... [06:05:06]Read from MH i2c: E2 FD 00 2F 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 CD [06:05:06]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [06:05:06]wFMCommunicate OK [06:05:06]wFMCommunicate request_size=4 [06:05:06]MH_SAM_APDU [06:05:06]CAPDU: 80 17 00 00 [06:05:06]Write to MH i2c: E2 08 00 30 00 80 17 00 00 00 00 00 00 B0 [06:05:06]Write i2c OK [06:05:06]MH_I2C_Read... [06:05:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:05:06]Read from MH i2c: E2 [06:05:06]MH_I2C_Read... [06:05:06]Read from MH i2c: E2 FD 00 [06:05:06]MH_I2C_Read... [06:05:06]Read from MH i2c: E2 FD 00 30 00 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [06:05:06]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:05:06]wFMCommunicate OK [06:05:06]wFMCommunicate request_size=4 [06:05:06]MH_SAM_APDU [06:05:06]CAPDU: 80 17 00 00 [06:05:06]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [06:05:06]Write i2c OK [06:05:06]MH_I2C_Read... [06:05:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [06:05:06]Read from MH i2c: E2 [06:05:06]MH_I2C_Read... [06:05:06]Read from MH i2c: E2 E0 00 [06:05:06]MH_I2C_Read... [06:05:06]Read from MH i2c: E2 E0 00 31 00 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9B [06:05:06]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:05:06]wFMCommunicate OK [06:05:06]SAM_PROTO_GetFMData done [06:05:06]requested_item fm.sale_refund.total is exist - process it [06:05:06]requested_item fm.buy.total is exist - process it [06:05:06]requested_item shift.sale.total is exist - process it [06:05:06]SAM_PROTO_GetShiftData [06:05:06]wFMCommunicate request_size=4 [06:05:06]MH_SAM_APDU [06:05:06]CAPDU: 80 13 02 00 [06:05:06]Write to MH i2c: E2 08 00 32 00 80 13 02 00 00 00 00 00 B0 [06:05:06]Write i2c OK [06:05:06]MH_I2C_Read... [06:05:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [06:05:07]Read from MH i2c: E2 [06:05:07]MH_I2C_Read... [06:05:07]Read from MH i2c: E2 FD 00 [06:05:07]MH_I2C_Read... [06:05:07]Read from MH i2c: E2 FD 00 32 00 00 AB 04 AA 04 A7 04 6E 04 04 00 06 00 00 00 69 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 E4 CE 01 70 04 02 00 20 E4 72 04 02 00 C4 EA 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 27 31 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 19 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 4C [06:05:07]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 06 00 00 00 69 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 E4 CE 01 70 04 02 00 20 E4 72 04 02 00 C4 EA 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 27 31 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 19 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [06:05:07]wFMCommunicate OK [06:05:07]wFMCommunicate request_size=4 [06:05:07]MH_SAM_APDU [06:05:07]CAPDU: 80 17 00 00 [06:05:07]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [06:05:07]Write i2c OK [06:05:07]MH_I2C_Read... [06:05:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:05:07]Read from MH i2c: E2 [06:05:07]MH_I2C_Read... [06:05:07]Read from MH i2c: E2 FD 00 [06:05:07]MH_I2C_Read... [06:05:07]Read from MH i2c: E2 FD 00 33 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 C8 [06:05:07]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [06:05:07]wFMCommunicate OK [06:05:07]wFMCommunicate request_size=4 [06:05:07]MH_SAM_APDU [06:05:07]CAPDU: 80 17 00 00 [06:05:07]Write to MH i2c: E2 08 00 34 00 80 17 00 00 00 00 00 00 B4 [06:05:07]Write i2c OK [06:05:07]MH_I2C_Read... [06:05:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:05:07]Read from MH i2c: E2 [06:05:07]MH_I2C_Read... [06:05:07]Read from MH i2c: E2 FD 00 [06:05:07]MH_I2C_Read... [06:05:07]Read from MH i2c: E2 FD 00 34 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 90 00 64 [06:05:07]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 90 00 [06:05:07]wFMCommunicate OK [06:05:07]wFMCommunicate request_size=4 [06:05:07]MH_SAM_APDU [06:05:07]CAPDU: 80 17 00 00 [06:05:07]Write to MH i2c: E2 08 00 35 00 80 17 00 00 00 00 00 00 B5 [06:05:07]Write i2c OK [06:05:07]MH_I2C_Read... [06:05:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:05:08]Read from MH i2c: E2 [06:05:08]MH_I2C_Read... [06:05:08]Read from MH i2c: E2 FD 00 [06:05:08]MH_I2C_Read... [06:05:08]Read from MH i2c: E2 FD 00 35 00 00 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 90 00 3B [06:05:08]RAPDU: 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 90 00 [06:05:08]wFMCommunicate OK [06:05:08]wFMCommunicate request_size=4 [06:05:08]MH_SAM_APDU [06:05:08]CAPDU: 80 17 00 00 [06:05:08]Write to MH i2c: E2 08 00 36 00 80 17 00 00 00 00 00 00 B6 [06:05:08]Write i2c OK [06:05:08]MH_I2C_Read... [06:05:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [06:05:08]Read from MH i2c: E2 [06:05:08]MH_I2C_Read... [06:05:08]Read from MH i2c: E2 C8 00 [06:05:08]MH_I2C_Read... [06:05:08]Read from MH i2c: E2 C8 00 36 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 99 [06:05:08]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:05:08]wFMCommunicate OK [06:05:08]SAM_PROTO_GetShiftData done [06:05:08]requested_item shift.sale.total_cash is exist - process it [06:05:08]requested_item shift.sale_refund.total is exist - process it [06:05:08]requested_item shift.sale_refund.total_cash is exist - process it [06:05:08]requested_item shift.buy.total is exist - process it [06:05:08]requested_item shift.buy.total_cash is exist - process it [06:05:08]produce_requested_data done [06:05:08]produce_requested_data return {"fm.sale.total":20194423.08,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":1185.00,"shift.sale.total_cash":584.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [06:05:08]process_action_free get_value [06:05:08]json_value_free [06:05:08]json_value_free done [06:05:08]process_json_proto returns [06:05:08]Send response to host [06:05:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20194423.08,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":1185.00,"shift.sale.total_cash":584.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [06:05:08]free response buf [06:05:08]execute_script done [06:05:08]execute_script returns [06:05:08]free content buf [06:05:08]Sock 7.Close socket [06:05:08]Sock 7.Thread stoped [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:09:00]ConnectInit Can't connect to host [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:19]accept exits with 9 [06:09:19]New connection [06:09:19]New thread 3067370852 created [06:09:19]Waiting for new connection... [06:09:19] Sock 9.Parse request [06:09:19]Sock 9.Check first char [06:09:19]Sock 9.First char is OK [06:09:19]request: POST /json_proto HTTP/1.0 [06:09:19]Method: POST [06:09:19]URL: /json_proto [06:09:19]Method is POST - this is cgi request [06:09:19]url: /json_proto [06:09:19]query_string will be loaded in cgi processing [06:09:19]execute_cgi json_proto POST (null) [06:09:19]execute_cgi path=json_proto method=POST [06:09:19]POST find Content-Length [06:09:19]Host: 172.17.52.196:8080 [06:09:19]Content-Length: 215 [06:09:19]Content-Type: application/json [06:09:19] [06:09:19]POST finish read [06:09:19]Found Content-Length = 215 [06:09:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:09:19]execute_script... [06:09:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:09:19]POST & json_proto [06:09:19]process_json_proto [06:09:19]json parsed OK: [06:09:19]protocol is kg_v1.0 [06:09:19]action value=get_value [06:09:19]process_action get_value [06:09:19]cmd_get_value [06:09:19]process_action get_value done [06:09:19]requested_data is exist [06:09:19]produce_requested_data [06:09:19]requested_item kkm.sn is exist - process it [06:09:19]requested_item kkm.ver is exist - process it [06:09:19]requested_item fm.sn is exist - process it [06:09:19]wFMCommunicate request_size=4 [06:09:19]MH_SAM_APDU [06:09:19]CAPDU: 80 11 00 00 [06:09:19]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [06:09:19]Write i2c OK [06:09:19]MH_I2C_Read... [06:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:09:19]Read from MH i2c: E2 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: E2 17 00 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 E1 [06:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [06:09:19]wFMCommunicate OK [06:09:19]requested_item fd.num is exist - process it [06:09:19]SAM_PROTO_GetFieldsCounters [06:09:19]wFMCommunicate request_size=4 [06:09:19]MH_SAM_APDU [06:09:19]CAPDU: 80 13 00 00 [06:09:19]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [06:09:19]Write i2c OK [06:09:19]MH_I2C_Read... [06:09:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:09:19]Read from MH i2c: E2 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: E2 62 00 [06:09:19]MH_I2C_Read... [06:09:19]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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 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 38 [06:09: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 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 [06:09:19]wFMCommunicate OK [06:09:19]SAM_PROTO_GetFieldsCounters done [06:09:19]requested_item shift.num is exist - process it [06:09:19]requested_item shift.opened is exist - process it [06:09:19]req_shift_opened [06:09:19]FM_GetShiftState [06:09:19]SAM_PROTO_GetShiftState [06:09:19]wFMCommunicate request_size=4 [06:09:19]MH_SAM_APDU [06:09:19]CAPDU: 80 13 01 00 [06:09:19]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [06:09:19]Write i2c OK [06:09:19]MH_I2C_Read... [06:09:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:09:19]Read from MH i2c: E2 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: E2 0E 00 [06:09:19]MH_I2C_Read... [06:09:19]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 21 [06:09:19]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [06:09:19]wFMCommunicate OK [06:09:19]SAM_PROTO_GetShiftState done [06:09:19]FM_GetShiftState done [06:09:19]req_shift_opened done [06:09:19]requested_item shift.open_date is exist - process it [06:09:19]req_shift_open_date [06:09:19]req_shift_open_date done [06:09:19]produce_requested_data done [06:09:19]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [06:09:19]process_action_free get_value [06:09:19]json_value_free [06:09:19]json_value_free done [06:09:19]process_json_proto returns [06:09:19]Send response to host [06:09:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [06:09:19]free response buf [06:09:19]execute_script done [06:09:19]execute_script returns [06:09:19]free content buf [06:09:19]Sock 9.Close socket [06:09:19]Sock 9.Thread stoped [06:09:22]accept exits with 7 [06:09:22]New connection [06:09:22]New thread 3067227492 created [06:09:22]Thread 3067370852 joined [06:09:22]Waiting for new connection... [06:09:22] Sock 7.Parse request [06:09:22]Sock 7.Check first char [06:09:22]Sock 7.First char is OK [06:09:22]request: POST /json_proto HTTP/1.0 [06:09:22]Method: POST [06:09:22]URL: /json_proto [06:09:22]Method is POST - this is cgi request [06:09:22]url: /json_proto [06:09:22]query_string will be loaded in cgi processing [06:09:22]execute_cgi json_proto POST (null) [06:09:22]execute_cgi path=json_proto method=POST [06:09:22]POST find Content-Length [06:09:22]Host: 172.17.52.196:8080 [06:09:22]Content-Length: 331 [06:09:22]Content-Type: application/json [06:09:22] [06:09:22]POST finish read [06:09:22]Found Content-Length = 331 [06:09:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [06:09:22]execute_script... [06:09:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [06:09:22]POST & json_proto [06:09:22]process_json_proto [06:09:22]json parsed OK: [06:09:22]protocol is kg_v1.0 [06:09:22]action value=get_value [06:09:22]process_action get_value [06:09:22]cmd_get_value [06:09:22]process_action get_value done [06:09:22]requested_data is exist [06:09:22]produce_requested_data [06:09:22]requested_item fm.sale.total is exist - process it [06:09:22]SAM_PROTO_GetFMData [06:09:22]wFMCommunicate request_size=4 [06:09:22]MH_SAM_APDU [06:09:22]CAPDU: 80 13 03 00 [06:09:22]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [06:09:22]Write i2c OK [06:09:22]MH_I2C_Read... [06:09:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [06:09:22]Read from MH i2c: E2 [06:09:22]MH_I2C_Read... [06:09:22]Read from MH i2c: E2 FD 00 [06:09:22]MH_I2C_Read... [06:09:22]Read from MH i2c: E2 FD 00 13 00 00 C3 04 85 04 BF 04 6E 04 04 00 38 0C 01 00 69 04 A1 00 6F 04 04 00 DA 0B 01 00 B1 04 04 00 84 3E 5E 78 70 04 04 00 0C 66 7B 67 72 04 04 00 78 D8 E2 10 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 CF C8 0C 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 1E 9F 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 01 [06:09:22]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 38 0C 01 00 69 04 A1 00 6F 04 04 00 DA 0B 01 00 B1 04 04 00 84 3E 5E 78 70 04 04 00 0C 66 7B 67 72 04 04 00 78 D8 E2 10 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 CF C8 0C 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 1E 9F 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [06:09:22]wFMCommunicate OK [06:09:22]wFMCommunicate request_size=4 [06:09:22]MH_SAM_APDU [06:09:22]CAPDU: 80 17 00 00 [06:09:22]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [06:09:22]Write i2c OK [06:09:22]MH_I2C_Read... [06:09:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:09:23]Read from MH i2c: E2 [06:09:23]MH_I2C_Read... [06:09:23]Read from MH i2c: E2 FD 00 [06:09:23]MH_I2C_Read... [06:09:23]Read from MH i2c: E2 FD 00 14 00 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 98 [06:09:23]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [06:09:23]wFMCommunicate OK [06:09:23]wFMCommunicate request_size=4 [06:09:23]MH_SAM_APDU [06:09:23]CAPDU: 80 17 00 00 [06:09:23]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [06:09:23]Write i2c OK [06:09:23]MH_I2C_Read... [06:09:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:09:23]Read from MH i2c: E2 [06:09:23]MH_I2C_Read... [06:09:23]Read from MH i2c: E2 FD 00 [06:09:23]MH_I2C_Read... [06:09:23]Read from MH i2c: E2 FD 00 15 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 B3 [06:09:23]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [06:09:23]wFMCommunicate OK [06:09:23]wFMCommunicate request_size=4 [06:09:23]MH_SAM_APDU [06:09:23]CAPDU: 80 17 00 00 [06:09:23]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [06:09:23]Write i2c OK [06:09:23]MH_I2C_Read... [06:09:23]OFD Sender: No OFD packet to send [06:09:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:09:23]Read from MH i2c: E2 [06:09:23]MH_I2C_Read... [06:09:23]Read from MH i2c: E2 FD 00 [06:09:23]MH_I2C_Read... [06:09:23]Read from MH i2c: E2 FD 00 16 00 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 08 [06:09:23]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:09:23]wFMCommunicate OK [06:09:23]wFMCommunicate request_size=4 [06:09:23]MH_SAM_APDU [06:09:23]CAPDU: 80 17 00 00 [06:09:23]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [06:09:23]Write i2c OK [06:09:23]MH_I2C_Read... [06:09:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [06:09:24]Read from MH i2c: E2 [06:09:24]MH_I2C_Read... [06:09:24]Read from MH i2c: E2 E0 00 [06:09:24]MH_I2C_Read... [06:09:24]Read from MH i2c: E2 E0 00 17 00 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [06:09:24]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:09:24]wFMCommunicate OK [06:09:24]SAM_PROTO_GetFMData done [06:09:24]requested_item fm.sale_refund.total is exist - process it [06:09:24]requested_item fm.buy.total is exist - process it [06:09:24]requested_item shift.sale.total is exist - process it [06:09:24]SAM_PROTO_GetShiftData [06:09:24]wFMCommunicate request_size=4 [06:09:24]MH_SAM_APDU [06:09:24]CAPDU: 80 13 02 00 [06:09:24]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [06:09:24]Write i2c OK [06:09:24]MH_I2C_Read... [06:09:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [06:09:24]Read from MH i2c: E2 [06:09:24]MH_I2C_Read... [06:09:24]Read from MH i2c: E2 FD 00 [06:09:24]MH_I2C_Read... [06:09:24]Read from MH i2c: E2 FD 00 18 00 00 AB 04 AA 04 A7 04 6E 04 04 00 06 00 00 00 69 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 E4 CE 01 70 04 02 00 20 E4 72 04 02 00 C4 EA 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 27 31 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 19 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 32 [06:09:24]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 06 00 00 00 69 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 E4 CE 01 70 04 02 00 20 E4 72 04 02 00 C4 EA 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 27 31 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 19 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [06:09:24]wFMCommunicate OK [06:09:24]wFMCommunicate request_size=4 [06:09:24]MH_SAM_APDU [06:09:24]CAPDU: 80 17 00 00 [06:09:24]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [06:09:24]Write i2c OK [06:09:24]MH_I2C_Read... [06:09:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:09:24]Read from MH i2c: E2 [06:09:24]MH_I2C_Read... [06:09:24]Read from MH i2c: E2 FD 00 [06:09:24]MH_I2C_Read... [06:09:24]Read from MH i2c: E2 FD 00 19 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 AE [06:09:24]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [06:09:24]wFMCommunicate OK [06:09:24]wFMCommunicate request_size=4 [06:09:24]MH_SAM_APDU [06:09:24]CAPDU: 80 17 00 00 [06:09:24]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [06:09:24]Write i2c OK [06:09:24]MH_I2C_Read... [06:09:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:09:25]Read from MH i2c: E2 [06:09:25]MH_I2C_Read... [06:09:25]Read from MH i2c: E2 FD 00 [06:09:25]MH_I2C_Read... [06:09:25]Read from MH i2c: E2 FD 00 1A 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 90 00 4A [06:09:25]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 90 00 [06:09:25]wFMCommunicate OK [06:09:25]wFMCommunicate request_size=4 [06:09:25]MH_SAM_APDU [06:09:25]CAPDU: 80 17 00 00 [06:09:25]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [06:09:25]Write i2c OK [06:09:25]MH_I2C_Read... [06:09:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:09:25]Read from MH i2c: E2 [06:09:25]MH_I2C_Read... [06:09:25]Read from MH i2c: E2 FD 00 [06:09:25]MH_I2C_Read... [06:09:25]Read from MH i2c: E2 FD 00 1B 00 00 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 90 00 21 [06:09:25]RAPDU: 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 90 00 [06:09:25]wFMCommunicate OK [06:09:25]wFMCommunicate request_size=4 [06:09:25]MH_SAM_APDU [06:09:25]CAPDU: 80 17 00 00 [06:09:25]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [06:09:25]Write i2c OK [06:09:25]MH_I2C_Read... [06:09:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [06:09:25]Read from MH i2c: E2 [06:09:25]MH_I2C_Read... [06:09:25]Read from MH i2c: E2 C8 00 [06:09:25]MH_I2C_Read... [06:09:25]Read from MH i2c: E2 C8 00 1C 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7F [06:09:25]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:09:25]wFMCommunicate OK [06:09:25]SAM_PROTO_GetShiftData done [06:09:25]requested_item shift.sale.total_cash is exist - process it [06:09:25]requested_item shift.sale_refund.total is exist - process it [06:09:25]requested_item shift.sale_refund.total_cash is exist - process it [06:09:25]requested_item shift.buy.total is exist - process it [06:09:25]requested_item shift.buy.total_cash is exist - process it [06:09:25]produce_requested_data done [06:09:25]produce_requested_data return {"fm.sale.total":20194423.08,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":1185.00,"shift.sale.total_cash":584.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [06:09:25]process_action_free get_value [06:09:25]json_value_free [06:09:25]json_value_free done [06:09:25]process_json_proto returns [06:09:25]Send response to host [06:09:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20194423.08,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":1185.00,"shift.sale.total_cash":584.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [06:09:25]free response buf [06:09:25]execute_script done [06:09:25]execute_script returns [06:09:25]free content buf [06:09:25]Sock 7.Close socket [06:09:25]Sock 7.Thread stoped [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:01]accept exits with 9 [06:12:01]New connection [06:12:01]New thread 3067370852 created [06:12:01]Thread 3067227492 joined [06:12:01]Waiting for new connection... [06:12:01] Sock 9.Parse request [06:12:01]Sock 9.Check first char [06:12:01]Sock 9.First char is OK [06:12:01]request: POST /json_proto HTTP/1.0 [06:12:01]Method: POST [06:12:01]URL: /json_proto [06:12:01]Method is POST - this is cgi request [06:12:01]url: /json_proto [06:12:01]query_string will be loaded in cgi processing [06:12:01]execute_cgi json_proto POST (null) [06:12:01]execute_cgi path=json_proto method=POST [06:12:01]POST find Content-Length [06:12:01]Host: 172.17.52.196:8080 [06:12:01]Content-Length: 215 [06:12:01]Content-Type: application/json [06:12:01] [06:12:01]POST finish read [06:12:01]Found Content-Length = 215 [06:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:12:01]execute_script... [06:12:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:12:01]POST & json_proto [06:12:01]process_json_proto [06:12:01]json parsed OK: [06:12:01]protocol is kg_v1.0 [06:12:01]action value=get_value [06:12:01]process_action get_value [06:12:01]cmd_get_value [06:12:01]process_action get_value done [06:12:01]requested_data is exist [06:12:01]produce_requested_data [06:12:01]requested_item kkm.sn is exist - process it [06:12:01]requested_item kkm.ver is exist - process it [06:12:01]requested_item fm.sn is exist - process it [06:12:01]wFMCommunicate request_size=4 [06:12:01]MH_SAM_APDU [06:12:01]CAPDU: 80 11 00 00 [06:12:01]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [06:12:01]Write i2c OK [06:12:01]MH_I2C_Read... [06:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:12:01]Read from MH i2c: E2 [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: E2 17 00 [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 EE [06:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [06:12:01]wFMCommunicate OK [06:12:01]requested_item fd.num is exist - process it [06:12:01]SAM_PROTO_GetFieldsCounters [06:12:01]wFMCommunicate request_size=4 [06:12:01]MH_SAM_APDU [06:12:01]CAPDU: 80 13 00 00 [06:12:01]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [06:12:01]Write i2c OK [06:12:01]MH_I2C_Read... [06:12:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:12:01]Read from MH i2c: E2 [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: E2 62 00 [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: E2 62 00 1E 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 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 45 [06:12: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 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 [06:12:01]wFMCommunicate OK [06:12:01]SAM_PROTO_GetFieldsCounters done [06:12:01]requested_item shift.num is exist - process it [06:12:01]requested_item shift.opened is exist - process it [06:12:01]req_shift_opened [06:12:01]FM_GetShiftState [06:12:01]SAM_PROTO_GetShiftState [06:12:01]wFMCommunicate request_size=4 [06:12:01]MH_SAM_APDU [06:12:01]CAPDU: 80 13 01 00 [06:12:01]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [06:12:01]Write i2c OK [06:12:01]MH_I2C_Read... [06:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:12:01]Read from MH i2c: E2 [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: E2 0E 00 [06:12:01]MH_I2C_Read... [06:12:01]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 2E [06:12:01]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [06:12:01]wFMCommunicate OK [06:12:01]SAM_PROTO_GetShiftState done [06:12:01]FM_GetShiftState done [06:12:01]req_shift_opened done [06:12:01]requested_item shift.open_date is exist - process it [06:12:01]req_shift_open_date [06:12:01]req_shift_open_date done [06:12:01]produce_requested_data done [06:12:01]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [06:12:01]process_action_free get_value [06:12:01]json_value_free [06:12:01]json_value_free done [06:12:01]process_json_proto returns [06:12:01]Send response to host [06:12:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [06:12:01]free response buf [06:12:01]execute_script done [06:12:01]execute_script returns [06:12:01]free content buf [06:12:01]Sock 9.Close socket [06:12:01]Sock 9.Thread stoped [06:12:01]accept exits with 7 [06:12:01]New connection [06:12:01]New thread 3067227492 created [06:12:01]Thread 3067370852 joined [06:12:01]Waiting for new connection... [06:12:01] Sock 7.Parse request [06:12:01]Sock 7.Check first char [06:12:01]Sock 7.First char is OK [06:12:01]request: POST /json_proto HTTP/1.0 [06:12:01]Method: POST [06:12:01]URL: /json_proto [06:12:01]Method is POST - this is cgi request [06:12:01]url: /json_proto [06:12:01]query_string will be loaded in cgi processing [06:12:01]execute_cgi json_proto POST (null) [06:12:01]execute_cgi path=json_proto method=POST [06:12:01]POST find Content-Length [06:12:01]Host: 172.17.52.196:8080 [06:12:01]Content-Length: 331 [06:12:01]Content-Type: application/json [06:12:01] [06:12:01]POST finish read [06:12:01]Found Content-Length = 331 [06:12:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [06:12:01]execute_script... [06:12: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" ] } } [06:12:02]POST & json_proto [06:12:02]process_json_proto [06:12:02]json parsed OK: [06:12:02]protocol is kg_v1.0 [06:12:02]action value=get_value [06:12:02]process_action get_value [06:12:02]cmd_get_value [06:12:02]process_action get_value done [06:12:02]requested_data is exist [06:12:02]produce_requested_data [06:12:02]requested_item fm.sale.total is exist - process it [06:12:02]SAM_PROTO_GetFMData [06:12:02]wFMCommunicate request_size=4 [06:12:02]MH_SAM_APDU [06:12:02]CAPDU: 80 13 03 00 [06:12:02]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [06:12:02]Write i2c OK [06:12:02]MH_I2C_Read... [06:12:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [06:12:02]Read from MH i2c: E2 [06:12:02]MH_I2C_Read... [06:12:02]Read from MH i2c: E2 FD 00 [06:12:02]MH_I2C_Read... [06:12:02]Read from MH i2c: E2 FD 00 20 00 00 C3 04 85 04 BF 04 6E 04 04 00 38 0C 01 00 69 04 A1 00 6F 04 04 00 DA 0B 01 00 B1 04 04 00 84 3E 5E 78 70 04 04 00 0C 66 7B 67 72 04 04 00 78 D8 E2 10 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 CF C8 0C 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 1E 9F 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 0E [06:12:02]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 38 0C 01 00 69 04 A1 00 6F 04 04 00 DA 0B 01 00 B1 04 04 00 84 3E 5E 78 70 04 04 00 0C 66 7B 67 72 04 04 00 78 D8 E2 10 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 CF C8 0C 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 1E 9F 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [06:12:02]wFMCommunicate OK [06:12:02]wFMCommunicate request_size=4 [06:12:02]MH_SAM_APDU [06:12:02]CAPDU: 80 17 00 00 [06:12:02]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [06:12:02]Write i2c OK [06:12:02]MH_I2C_Read... [06:12:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:12:02]Read from MH i2c: E2 [06:12:02]MH_I2C_Read... [06:12:02]Read from MH i2c: E2 FD 00 [06:12:02]MH_I2C_Read... [06:12:02]Read from MH i2c: E2 FD 00 21 00 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 A5 [06:12:02]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [06:12:02]wFMCommunicate OK [06:12:02]wFMCommunicate request_size=4 [06:12:02]MH_SAM_APDU [06:12:02]CAPDU: 80 17 00 00 [06:12:02]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [06:12:02]Write i2c OK [06:12:02]MH_I2C_Read... [06:12:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:12:03]Read from MH i2c: E2 [06:12:03]MH_I2C_Read... [06:12:03]Read from MH i2c: E2 FD 00 [06:12:03]MH_I2C_Read... [06:12:03]Read from MH i2c: E2 FD 00 22 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 C0 [06:12:03]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [06:12:03]wFMCommunicate OK [06:12:03]wFMCommunicate request_size=4 [06:12:03]MH_SAM_APDU [06:12:03]CAPDU: 80 17 00 00 [06:12:03]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [06:12:03]Write i2c OK [06:12:03]MH_I2C_Read... [06:12:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:12:03]Read from MH i2c: E2 [06:12:03]MH_I2C_Read... [06:12:03]Read from MH i2c: E2 FD 00 [06:12:03]MH_I2C_Read... [06:12:03]Read from MH i2c: E2 FD 00 23 00 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 15 [06:12:03]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:12:03]wFMCommunicate OK [06:12:03]wFMCommunicate request_size=4 [06:12:03]MH_SAM_APDU [06:12:03]CAPDU: 80 17 00 00 [06:12:03]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [06:12:03]Write i2c OK [06:12:03]MH_I2C_Read... [06:12:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [06:12:03]Read from MH i2c: E2 [06:12:03]MH_I2C_Read... [06:12:03]Read from MH i2c: E2 E0 00 [06:12:03]MH_I2C_Read... [06:12:03]Read from MH i2c: E2 E0 00 24 00 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8E [06:12:03]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:12:03]wFMCommunicate OK [06:12:03]SAM_PROTO_GetFMData done [06:12:03]requested_item fm.sale_refund.total is exist - process it [06:12:03]requested_item fm.buy.total is exist - process it [06:12:03]requested_item shift.sale.total is exist - process it [06:12:03]SAM_PROTO_GetShiftData [06:12:03]wFMCommunicate request_size=4 [06:12:03]MH_SAM_APDU [06:12:03]CAPDU: 80 13 02 00 [06:12:03]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [06:12:03]Write i2c OK [06:12:03]MH_I2C_Read... [06:12:03]OFD Sender: No OFD packet to send [06:12:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [06:12:04]Read from MH i2c: E2 [06:12:04]MH_I2C_Read... [06:12:04]Read from MH i2c: E2 FD 00 [06:12:04]MH_I2C_Read... [06:12:04]Read from MH i2c: E2 FD 00 25 00 00 AB 04 AA 04 A7 04 6E 04 04 00 06 00 00 00 69 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 E4 CE 01 70 04 02 00 20 E4 72 04 02 00 C4 EA 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 27 31 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 19 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 3F [06:12:04]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 06 00 00 00 69 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 E4 CE 01 70 04 02 00 20 E4 72 04 02 00 C4 EA 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 27 31 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 19 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [06:12:04]wFMCommunicate OK [06:12:04]wFMCommunicate request_size=4 [06:12:04]MH_SAM_APDU [06:12:04]CAPDU: 80 17 00 00 [06:12:04]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [06:12:04]Write i2c OK [06:12:04]MH_I2C_Read... [06:12:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:12:04]Read from MH i2c: E2 [06:12:04]MH_I2C_Read... [06:12:04]Read from MH i2c: E2 FD 00 [06:12:04]MH_I2C_Read... [06:12:04]Read from MH i2c: E2 FD 00 26 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 BB [06:12:04]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [06:12:04]wFMCommunicate OK [06:12:04]wFMCommunicate request_size=4 [06:12:04]MH_SAM_APDU [06:12:04]CAPDU: 80 17 00 00 [06:12:04]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [06:12:04]Write i2c OK [06:12:04]MH_I2C_Read... [06:12:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:12:04]Read from MH i2c: E2 [06:12:04]MH_I2C_Read... [06:12:04]Read from MH i2c: E2 FD 00 [06:12:04]MH_I2C_Read... [06:12:04]Read from MH i2c: E2 FD 00 27 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 90 00 57 [06:12:04]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 90 00 [06:12:04]wFMCommunicate OK [06:12:04]wFMCommunicate request_size=4 [06:12:04]MH_SAM_APDU [06:12:04]CAPDU: 80 17 00 00 [06:12:04]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [06:12:04]Write i2c OK [06:12:04]MH_I2C_Read... [06:12:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:12:04]Read from MH i2c: E2 [06:12:04]MH_I2C_Read... [06:12:04]Read from MH i2c: E2 FD 00 [06:12:04]MH_I2C_Read... [06:12:04]Read from MH i2c: E2 FD 00 28 00 00 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 90 00 2E [06:12:04]RAPDU: 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 90 00 [06:12:04]wFMCommunicate OK [06:12:04]wFMCommunicate request_size=4 [06:12:04]MH_SAM_APDU [06:12:04]CAPDU: 80 17 00 00 [06:12:04]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [06:12:04]Write i2c OK [06:12:04]MH_I2C_Read... [06:12:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [06:12:05]Read from MH i2c: E2 [06:12:05]MH_I2C_Read... [06:12:05]Read from MH i2c: E2 C8 00 [06:12:05]MH_I2C_Read... [06:12:05]Read from MH i2c: E2 C8 00 29 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8C [06:12:05]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:12:05]wFMCommunicate OK [06:12:05]SAM_PROTO_GetShiftData done [06:12:05]requested_item shift.sale.total_cash is exist - process it [06:12:05]requested_item shift.sale_refund.total is exist - process it [06:12:05]requested_item shift.sale_refund.total_cash is exist - process it [06:12:05]requested_item shift.buy.total is exist - process it [06:12:05]requested_item shift.buy.total_cash is exist - process it [06:12:05]produce_requested_data done [06:12:05]produce_requested_data return {"fm.sale.total":20194423.08,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":1185.00,"shift.sale.total_cash":584.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [06:12:05]process_action_free get_value [06:12:05]json_value_free [06:12:05]json_value_free done [06:12:05]process_json_proto returns [06:12:05]Send response to host [06:12:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20194423.08,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":1185.00,"shift.sale.total_cash":584.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [06:12:05]free response buf [06:12:05]execute_script done [06:12:05]execute_script returns [06:12:05]free content buf [06:12:05]Sock 7.Close socket [06:12:05]Sock 7.Thread stoped [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:26]accept exits with 9 [06:21:26]New connection [06:21:26]New thread 3067370852 created [06:21:26]Thread 3067227492 joined [06:21:26]Waiting for new connection... [06:21:26] Sock 9.Parse request [06:21:26]Sock 9.Check first char [06:21:26]Sock 9.First char is OK [06:21:26]request: POST /json_proto HTTP/1.0 [06:21:26]Method: POST [06:21:26]URL: /json_proto [06:21:26]Method is POST - this is cgi request [06:21:26]url: /json_proto [06:21:26]query_string will be loaded in cgi processing [06:21:26]execute_cgi json_proto POST (null) [06:21:26]execute_cgi path=json_proto method=POST [06:21:26]POST find Content-Length [06:21:26]Host: 172.17.52.196:8080 [06:21:26]Content-Length: 215 [06:21:26]Content-Type: application/json [06:21:26] [06:21:26]POST finish read [06:21:26]Found Content-Length = 215 [06:21:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:21:26]execute_script... [06:21:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:21:26]POST & json_proto [06:21:26]process_json_proto [06:21:26]json parsed OK: [06:21:26]protocol is kg_v1.0 [06:21:26]action value=get_value [06:21:26]process_action get_value [06:21:26]cmd_get_value [06:21:26]process_action get_value done [06:21:26]requested_data is exist [06:21:26]produce_requested_data [06:21:26]requested_item kkm.sn is exist - process it [06:21:26]requested_item kkm.ver is exist - process it [06:21:26]requested_item fm.sn is exist - process it [06:21:26]wFMCommunicate request_size=4 [06:21:26]MH_SAM_APDU [06:21:26]CAPDU: 80 11 00 00 [06:21:26]Write to MH i2c: E2 08 00 2A 00 80 11 00 00 00 00 00 00 A4 [06:21:26]Write i2c OK [06:21:26]MH_I2C_Read... [06:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:21:26]Read from MH i2c: E2 [06:21:26]MH_I2C_Read... [06:21:26]Read from MH i2c: E2 17 00 [06:21:26]MH_I2C_Read... [06:21:26]Read from MH i2c: E2 17 00 2A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 FB [06:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [06:21:26]wFMCommunicate OK [06:21:26]requested_item fd.num is exist - process it [06:21:26]SAM_PROTO_GetFieldsCounters [06:21:26]wFMCommunicate request_size=4 [06:21:26]MH_SAM_APDU [06:21:26]CAPDU: 80 13 00 00 [06:21:26]Write to MH i2c: E2 08 00 2B 00 80 13 00 00 00 00 00 00 A7 [06:21:26]Write i2c OK [06:21:26]MH_I2C_Read... [06:21:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:21:26]Read from MH i2c: E2 [06:21:26]MH_I2C_Read... [06:21:26]Read from MH i2c: E2 62 00 [06:21:26]MH_I2C_Read... [06:21:26]Read from MH i2c: E2 62 00 2B 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 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 52 [06:21: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 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 [06:21:26]wFMCommunicate OK [06:21:26]SAM_PROTO_GetFieldsCounters done [06:21:26]requested_item shift.num is exist - process it [06:21:26]requested_item shift.opened is exist - process it [06:21:26]req_shift_opened [06:21:26]FM_GetShiftState [06:21:26]SAM_PROTO_GetShiftState [06:21:26]wFMCommunicate request_size=4 [06:21:26]MH_SAM_APDU [06:21:26]CAPDU: 80 13 01 00 [06:21:26]Write to MH i2c: E2 08 00 2C 00 80 13 01 00 00 00 00 00 A9 [06:21:26]Write i2c OK [06:21:26]MH_I2C_Read... [06:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:21:27]Read from MH i2c: E2 [06:21:27]MH_I2C_Read... [06:21:27]Read from MH i2c: E2 0E 00 [06:21:27]MH_I2C_Read... [06:21:27]Read from MH i2c: E2 0E 00 2C 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 3B [06:21:27]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [06:21:27]wFMCommunicate OK [06:21:27]SAM_PROTO_GetShiftState done [06:21:27]FM_GetShiftState done [06:21:27]req_shift_opened done [06:21:27]requested_item shift.open_date is exist - process it [06:21:27]req_shift_open_date [06:21:27]req_shift_open_date done [06:21:27]produce_requested_data done [06:21:27]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [06:21:27]process_action_free get_value [06:21:27]json_value_free [06:21:27]json_value_free done [06:21:27]process_json_proto returns [06:21:27]Send response to host [06:21:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [06:21:27]free response buf [06:21:27]execute_script done [06:21:27]execute_script returns [06:21:27]free content buf [06:21:27]Sock 9.Close socket [06:21:27]Sock 9.Thread stoped [06:21:27]accept exits with 7 [06:21:27]New connection [06:21:27]New thread 3067227492 created [06:21:27]Thread 3067370852 joined [06:21:27]Waiting for new connection... [06:21:27] Sock 7.Parse request [06:21:27]Sock 7.Check first char [06:21:27]Sock 7.First char is OK [06:21:27]request: POST /json_proto HTTP/1.0 [06:21:27]Method: POST [06:21:27]URL: /json_proto [06:21:27]Method is POST - this is cgi request [06:21:27]url: /json_proto [06:21:27]query_string will be loaded in cgi processing [06:21:27]execute_cgi json_proto POST (null) [06:21:27]execute_cgi path=json_proto method=POST [06:21:27]POST find Content-Length [06:21:27]Host: 172.17.52.196:8080 [06:21:27]Content-Length: 331 [06:21:27]Content-Type: application/json [06:21:27] [06:21:27]POST finish read [06:21:27]Found Content-Length = 331 [06:21:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [06:21:27]execute_script... [06:21:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [06:21:27]POST & json_proto [06:21:27]process_json_proto [06:21:27]json parsed OK: [06:21:27]protocol is kg_v1.0 [06:21:27]action value=get_value [06:21:27]process_action get_value [06:21:27]cmd_get_value [06:21:27]process_action get_value done [06:21:27]requested_data is exist [06:21:27]produce_requested_data [06:21:27]requested_item fm.sale.total is exist - process it [06:21:27]SAM_PROTO_GetFMData [06:21:27]wFMCommunicate request_size=4 [06:21:27]MH_SAM_APDU [06:21:27]CAPDU: 80 13 03 00 [06:21:27]Write to MH i2c: E2 08 00 2D 00 80 13 03 00 00 00 00 00 AC [06:21:27]Write i2c OK [06:21:27]MH_I2C_Read... [06:21:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [06:21:27]Read from MH i2c: E2 [06:21:27]MH_I2C_Read... [06:21:27]Read from MH i2c: E2 FD 00 [06:21:27]MH_I2C_Read... [06:21:27]Read from MH i2c: E2 FD 00 2D 00 00 C3 04 85 04 BF 04 6E 04 04 00 38 0C 01 00 69 04 A1 00 6F 04 04 00 DA 0B 01 00 B1 04 04 00 84 3E 5E 78 70 04 04 00 0C 66 7B 67 72 04 04 00 78 D8 E2 10 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 CF C8 0C 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 1E 9F 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 1B [06:21:27]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 38 0C 01 00 69 04 A1 00 6F 04 04 00 DA 0B 01 00 B1 04 04 00 84 3E 5E 78 70 04 04 00 0C 66 7B 67 72 04 04 00 78 D8 E2 10 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 CF C8 0C 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 1E 9F 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [06:21:27]wFMCommunicate OK [06:21:27]wFMCommunicate request_size=4 [06:21:27]MH_SAM_APDU [06:21:27]CAPDU: 80 17 00 00 [06:21:27]Write to MH i2c: E2 08 00 2E 00 80 17 00 00 00 00 00 00 AE [06:21:27]Write i2c OK [06:21:27]MH_I2C_Read... [06:21:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:21:28]Read from MH i2c: E2 [06:21:28]MH_I2C_Read... [06:21:28]Read from MH i2c: E2 FD 00 [06:21:28]MH_I2C_Read... [06:21:28]Read from MH i2c: E2 FD 00 2E 00 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 B2 [06:21:28]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [06:21:28]wFMCommunicate OK [06:21:28]wFMCommunicate request_size=4 [06:21:28]MH_SAM_APDU [06:21:28]CAPDU: 80 17 00 00 [06:21:28]Write to MH i2c: E2 08 00 2F 00 80 17 00 00 00 00 00 00 AF [06:21:28]Write i2c OK [06:21:28]MH_I2C_Read... [06:21:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:21:28]Read from MH i2c: E2 [06:21:28]MH_I2C_Read... [06:21:28]Read from MH i2c: E2 FD 00 [06:21:28]MH_I2C_Read... [06:21:28]Read from MH i2c: E2 FD 00 2F 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 CD [06:21:28]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [06:21:28]wFMCommunicate OK [06:21:28]wFMCommunicate request_size=4 [06:21:28]MH_SAM_APDU [06:21:28]CAPDU: 80 17 00 00 [06:21:28]Write to MH i2c: E2 08 00 30 00 80 17 00 00 00 00 00 00 B0 [06:21:28]Write i2c OK [06:21:28]MH_I2C_Read... [06:21:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:21:28]Read from MH i2c: E2 [06:21:28]MH_I2C_Read... [06:21:28]Read from MH i2c: E2 FD 00 [06:21:28]MH_I2C_Read... [06:21:28]Read from MH i2c: E2 FD 00 30 00 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [06:21:28]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:21:28]wFMCommunicate OK [06:21:28]wFMCommunicate request_size=4 [06:21:28]MH_SAM_APDU [06:21:28]CAPDU: 80 17 00 00 [06:21:28]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [06:21:28]Write i2c OK [06:21:28]MH_I2C_Read... [06:21:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [06:21:28]Read from MH i2c: E2 [06:21:28]MH_I2C_Read... [06:21:28]Read from MH i2c: E2 E0 00 [06:21:28]MH_I2C_Read... [06:21:28]Read from MH i2c: E2 E0 00 31 00 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9B [06:21:28]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:21:28]wFMCommunicate OK [06:21:28]SAM_PROTO_GetFMData done [06:21:28]requested_item fm.sale_refund.total is exist - process it [06:21:28]requested_item fm.buy.total is exist - process it [06:21:28]requested_item shift.sale.total is exist - process it [06:21:28]SAM_PROTO_GetShiftData [06:21:28]wFMCommunicate request_size=4 [06:21:28]MH_SAM_APDU [06:21:28]CAPDU: 80 13 02 00 [06:21:28]Write to MH i2c: E2 08 00 32 00 80 13 02 00 00 00 00 00 B0 [06:21:28]Write i2c OK [06:21:28]MH_I2C_Read... [06:21:29]OFD Sender: No OFD packet to send [06:21:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [06:21:29]Read from MH i2c: E2 [06:21:29]MH_I2C_Read... [06:21:29]Read from MH i2c: E2 FD 00 [06:21:29]MH_I2C_Read... [06:21:29]Read from MH i2c: E2 FD 00 32 00 00 AB 04 AA 04 A7 04 6E 04 04 00 06 00 00 00 69 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 E4 CE 01 70 04 02 00 20 E4 72 04 02 00 C4 EA 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 27 31 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 19 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 4C [06:21:29]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 06 00 00 00 69 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 E4 CE 01 70 04 02 00 20 E4 72 04 02 00 C4 EA 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 27 31 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 19 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [06:21:29]wFMCommunicate OK [06:21:29]wFMCommunicate request_size=4 [06:21:29]MH_SAM_APDU [06:21:29]CAPDU: 80 17 00 00 [06:21:29]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [06:21:29]Write i2c OK [06:21:29]MH_I2C_Read... [06:21:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:21:29]Read from MH i2c: E2 [06:21:29]MH_I2C_Read... [06:21:29]Read from MH i2c: E2 FD 00 [06:21:29]MH_I2C_Read... [06:21:29]Read from MH i2c: E2 FD 00 33 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 C8 [06:21:29]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [06:21:29]wFMCommunicate OK [06:21:29]wFMCommunicate request_size=4 [06:21:29]MH_SAM_APDU [06:21:29]CAPDU: 80 17 00 00 [06:21:29]Write to MH i2c: E2 08 00 34 00 80 17 00 00 00 00 00 00 B4 [06:21:29]Write i2c OK [06:21:29]MH_I2C_Read... [06:21:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:21:29]Read from MH i2c: E2 [06:21:29]MH_I2C_Read... [06:21:29]Read from MH i2c: E2 FD 00 [06:21:29]MH_I2C_Read... [06:21:29]Read from MH i2c: E2 FD 00 34 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 90 00 64 [06:21:29]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 90 00 [06:21:29]wFMCommunicate OK [06:21:29]wFMCommunicate request_size=4 [06:21:29]MH_SAM_APDU [06:21:29]CAPDU: 80 17 00 00 [06:21:29]Write to MH i2c: E2 08 00 35 00 80 17 00 00 00 00 00 00 B5 [06:21:29]Write i2c OK [06:21:29]MH_I2C_Read... [06:21:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:21:30]Read from MH i2c: E2 [06:21:30]MH_I2C_Read... [06:21:30]Read from MH i2c: E2 FD 00 [06:21:30]MH_I2C_Read... [06:21:30]Read from MH i2c: E2 FD 00 35 00 00 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 90 00 3B [06:21:30]RAPDU: 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 90 00 [06:21:30]wFMCommunicate OK [06:21:30]wFMCommunicate request_size=4 [06:21:30]MH_SAM_APDU [06:21:30]CAPDU: 80 17 00 00 [06:21:30]Write to MH i2c: E2 08 00 36 00 80 17 00 00 00 00 00 00 B6 [06:21:30]Write i2c OK [06:21:30]MH_I2C_Read... [06:21:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [06:21:30]Read from MH i2c: E2 [06:21:30]MH_I2C_Read... [06:21:30]Read from MH i2c: E2 C8 00 [06:21:30]MH_I2C_Read... [06:21:30]Read from MH i2c: E2 C8 00 36 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 99 [06:21:30]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:21:30]wFMCommunicate OK [06:21:30]SAM_PROTO_GetShiftData done [06:21:30]requested_item shift.sale.total_cash is exist - process it [06:21:30]requested_item shift.sale_refund.total is exist - process it [06:21:30]requested_item shift.sale_refund.total_cash is exist - process it [06:21:30]requested_item shift.buy.total is exist - process it [06:21:30]requested_item shift.buy.total_cash is exist - process it [06:21:30]produce_requested_data done [06:21:30]produce_requested_data return {"fm.sale.total":20194423.08,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":1185.00,"shift.sale.total_cash":584.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [06:21:30]process_action_free get_value [06:21:30]json_value_free [06:21:30]json_value_free done [06:21:30]process_json_proto returns [06:21:30]Send response to host [06:21:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20194423.08,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":1185.00,"shift.sale.total_cash":584.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [06:21:30]free response buf [06:21:30]execute_script done [06:21:30]execute_script returns [06:21:30]free content buf [06:21:30]Sock 7.Close socket [06:21:30]Sock 7.Thread stoped [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:42:57]accept exits with 9 [06:42:57]New connection [06:42:57]New thread 3067370852 created [06:42:57]Thread 3067227492 joined [06:42:57]Waiting for new connection... [06:42:57] Sock 9.Parse request [06:42:57]Sock 9.Check first char [06:42:57]Sock 9.First char is OK [06:42:57]request: POST /json_proto HTTP/1.0 [06:42:57]Method: POST [06:42:57]URL: /json_proto [06:42:57]Method is POST - this is cgi request [06:42:57]url: /json_proto [06:42:57]query_string will be loaded in cgi processing [06:42:57]execute_cgi json_proto POST (null) [06:42:57]execute_cgi path=json_proto method=POST [06:42:57]POST find Content-Length [06:42:57]Host: 172.17.52.196:8080 [06:42:57]Content-Length: 215 [06:42:57]Content-Type: application/json [06:42:57] [06:42:57]POST finish read [06:42:57]Found Content-Length = 215 [06:42:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:42:57]execute_script... [06:42:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:42:57]POST & json_proto [06:42:57]process_json_proto [06:42:57]json parsed OK: [06:42:57]protocol is kg_v1.0 [06:42:57]action value=get_value [06:42:57]process_action get_value [06:42:57]cmd_get_value [06:42:57]process_action get_value done [06:42:57]requested_data is exist [06:42:57]produce_requested_data [06:42:57]requested_item kkm.sn is exist - process it [06:42:57]requested_item kkm.ver is exist - process it [06:42:57]requested_item fm.sn is exist - process it [06:42:57]wFMCommunicate request_size=4 [06:42:57]MH_SAM_APDU [06:42:57]CAPDU: 80 11 00 00 [06:42:57]Write to MH i2c: E2 08 00 37 00 80 11 00 00 00 00 00 00 B1 [06:42:57]Write i2c OK [06:42:57]MH_I2C_Read... [06:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:57]Read from MH i2c: E2 [06:42:57]MH_I2C_Read... [06:42:57]Read from MH i2c: E2 17 00 [06:42:57]MH_I2C_Read... [06:42:57]Read from MH i2c: E2 17 00 37 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 08 [06:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [06:42:57]wFMCommunicate OK [06:42:57]requested_item fd.num is exist - process it [06:42:57]SAM_PROTO_GetFieldsCounters [06:42:57]wFMCommunicate request_size=4 [06:42:57]MH_SAM_APDU [06:42:57]CAPDU: 80 13 00 00 [06:42:57]Write to MH i2c: E2 08 00 38 00 80 13 00 00 00 00 00 00 B4 [06:42:57]Write i2c OK [06:42:57]MH_I2C_Read... [06:42:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:42:57]Read from MH i2c: E2 [06:42:57]MH_I2C_Read... [06:42:57]Read from MH i2c: E2 62 00 [06:42:57]MH_I2C_Read... [06:42:57]Read from MH i2c: E2 62 00 38 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 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 5F [06:42:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 54 10 01 00 0E 04 04 00 0E 02 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 [06:42:57]wFMCommunicate OK [06:42:57]SAM_PROTO_GetFieldsCounters done [06:42:57]requested_item shift.num is exist - process it [06:42:57]requested_item shift.opened is exist - process it [06:42:57]req_shift_opened [06:42:57]FM_GetShiftState [06:42:57]SAM_PROTO_GetShiftState [06:42:57]wFMCommunicate request_size=4 [06:42:57]MH_SAM_APDU [06:42:57]CAPDU: 80 13 01 00 [06:42:57]Write to MH i2c: E2 08 00 39 00 80 13 01 00 00 00 00 00 B6 [06:42:57]Write i2c OK [06:42:57]MH_I2C_Read... [06:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:57]Read from MH i2c: E2 [06:42:57]MH_I2C_Read... [06:42:57]Read from MH i2c: E2 0E 00 [06:42:57]MH_I2C_Read... [06:42:57]Read from MH i2c: E2 0E 00 39 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 48 [06:42:57]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [06:42:57]wFMCommunicate OK [06:42:57]SAM_PROTO_GetShiftState done [06:42:57]FM_GetShiftState done [06:42:57]req_shift_opened done [06:42:57]requested_item shift.open_date is exist - process it [06:42:57]req_shift_open_date [06:42:57]req_shift_open_date done [06:42:57]produce_requested_data done [06:42:57]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [06:42:57]process_action_free get_value [06:42:57]json_value_free [06:42:57]json_value_free done [06:42:57]process_json_proto returns [06:42:57]Send response to host [06:42:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69716,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [06:42:57]free response buf [06:42:57]execute_script done [06:42:57]execute_script returns [06:42:57]free content buf [06:42:57]Sock 9.Close socket [06:42:57]Sock 9.Thread stoped [06:42:57]accept exits with 7 [06:42:57]New connection [06:42:57]New thread 3067227492 created [06:42:57]Thread 3067370852 joined [06:42:57]Waiting for new connection... [06:42:57] Sock 7.Parse request [06:42:57]Sock 7.Check first char [06:42:57]Sock 7.First char is OK [06:42:57]request: POST /json_proto HTTP/1.0 [06:42:57]Method: POST [06:42:57]URL: /json_proto [06:42:57]Method is POST - this is cgi request [06:42:57]url: /json_proto [06:42:57]query_string will be loaded in cgi processing [06:42:57]execute_cgi json_proto POST (null) [06:42:57]execute_cgi path=json_proto method=POST [06:42:57]POST find Content-Length [06:42:57]Host: 172.17.52.196:8080 [06:42:57]Content-Length: 331 [06:42:57]Content-Type: application/json [06:42:57] [06:42:57]POST finish read [06:42:57]Found Content-Length = 331 [06:42:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [06:42:57]execute_script... [06:42:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [06:42:58]POST & json_proto [06:42:58]process_json_proto [06:42:58]json parsed OK: [06:42:58]protocol is kg_v1.0 [06:42:58]action value=get_value [06:42:58]process_action get_value [06:42:58]cmd_get_value [06:42:58]process_action get_value done [06:42:58]requested_data is exist [06:42:58]produce_requested_data [06:42:58]requested_item fm.sale.total is exist - process it [06:42:58]SAM_PROTO_GetFMData [06:42:58]wFMCommunicate request_size=4 [06:42:58]MH_SAM_APDU [06:42:58]CAPDU: 80 13 03 00 [06:42:58]Write to MH i2c: E2 08 00 3A 00 80 13 03 00 00 00 00 00 B9 [06:42:58]Write i2c OK [06:42:58]MH_I2C_Read... [06:42:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [06:42:58]Read from MH i2c: E2 [06:42:58]MH_I2C_Read... [06:42:58]Read from MH i2c: E2 FD 00 [06:42:58]MH_I2C_Read... [06:42:58]Read from MH i2c: E2 FD 00 3A 00 00 C3 04 85 04 BF 04 6E 04 04 00 38 0C 01 00 69 04 A1 00 6F 04 04 00 DA 0B 01 00 B1 04 04 00 84 3E 5E 78 70 04 04 00 0C 66 7B 67 72 04 04 00 78 D8 E2 10 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 CF C8 0C 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 1E 9F 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 28 [06:42:58]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 38 0C 01 00 69 04 A1 00 6F 04 04 00 DA 0B 01 00 B1 04 04 00 84 3E 5E 78 70 04 04 00 0C 66 7B 67 72 04 04 00 78 D8 E2 10 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 CF C8 0C 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 1E 9F 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [06:42:58]wFMCommunicate OK [06:42:58]wFMCommunicate request_size=4 [06:42:58]MH_SAM_APDU [06:42:58]CAPDU: 80 17 00 00 [06:42:58]Write to MH i2c: E2 08 00 3B 00 80 17 00 00 00 00 00 00 BB [06:42:58]Write i2c OK [06:42:58]MH_I2C_Read... [06:42:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:42:58]Read from MH i2c: E2 [06:42:58]MH_I2C_Read... [06:42:58]Read from MH i2c: E2 FD 00 [06:42:58]MH_I2C_Read... [06:42:58]Read from MH i2c: E2 FD 00 3B 00 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 BF [06:42:58]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [06:42:58]wFMCommunicate OK [06:42:58]wFMCommunicate request_size=4 [06:42:58]MH_SAM_APDU [06:42:58]CAPDU: 80 17 00 00 [06:42:58]Write to MH i2c: E2 08 00 3C 00 80 17 00 00 00 00 00 00 BC [06:42:58]Write i2c OK [06:42:58]MH_I2C_Read... [06:42:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:42:59]Read from MH i2c: E2 [06:42:59]MH_I2C_Read... [06:42:59]Read from MH i2c: E2 FD 00 [06:42:59]MH_I2C_Read... [06:42:59]Read from MH i2c: E2 FD 00 3C 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 DA [06:42:59]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [06:42:59]wFMCommunicate OK [06:42:59]wFMCommunicate request_size=4 [06:42:59]MH_SAM_APDU [06:42:59]CAPDU: 80 17 00 00 [06:42:59]Write to MH i2c: E2 08 00 3D 00 80 17 00 00 00 00 00 00 BD [06:42:59]Write i2c OK [06:42:59]MH_I2C_Read... [06:42:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:42:59]Read from MH i2c: E2 [06:42:59]MH_I2C_Read... [06:42:59]Read from MH i2c: E2 FD 00 [06:42:59]MH_I2C_Read... [06:42:59]Read from MH i2c: E2 FD 00 3D 00 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2F [06:42:59]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:42:59]wFMCommunicate OK [06:42:59]wFMCommunicate request_size=4 [06:42:59]MH_SAM_APDU [06:42:59]CAPDU: 80 17 00 00 [06:42:59]Write to MH i2c: E2 08 00 3E 00 80 17 00 00 00 00 00 00 BE [06:42:59]Write i2c OK [06:42:59]MH_I2C_Read... [06:42:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [06:42:59]Read from MH i2c: E2 [06:42:59]MH_I2C_Read... [06:42:59]Read from MH i2c: E2 E0 00 [06:42:59]MH_I2C_Read... [06:42:59]Read from MH i2c: E2 E0 00 3E 00 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A8 [06:42:59]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:42:59]wFMCommunicate OK [06:42:59]SAM_PROTO_GetFMData done [06:42:59]requested_item fm.sale_refund.total is exist - process it [06:42:59]requested_item fm.buy.total is exist - process it [06:42:59]requested_item shift.sale.total is exist - process it [06:42:59]SAM_PROTO_GetShiftData [06:42:59]wFMCommunicate request_size=4 [06:42:59]MH_SAM_APDU [06:42:59]CAPDU: 80 13 02 00 [06:42:59]Write to MH i2c: E2 08 00 3F 00 80 13 02 00 00 00 00 00 BD [06:42:59]Write i2c OK [06:42:59]MH_I2C_Read... [06:43:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [06:43:00]Read from MH i2c: E2 [06:43:00]MH_I2C_Read... [06:43:00]Read from MH i2c: E2 FD 00 [06:43:00]MH_I2C_Read... [06:43:00]Read from MH i2c: E2 FD 00 3F 00 00 AB 04 AA 04 A7 04 6E 04 04 00 06 00 00 00 69 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 E4 CE 01 70 04 02 00 20 E4 72 04 02 00 C4 EA 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 27 31 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 19 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 59 [06:43:00]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 06 00 00 00 69 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 E4 CE 01 70 04 02 00 20 E4 72 04 02 00 C4 EA 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 27 31 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 19 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [06:43:00]wFMCommunicate OK [06:43:00]wFMCommunicate request_size=4 [06:43:00]MH_SAM_APDU [06:43:00]CAPDU: 80 17 00 00 [06:43:00]Write to MH i2c: E2 08 00 40 00 80 17 00 00 00 00 00 00 C0 [06:43:00]Write i2c OK [06:43:00]MH_I2C_Read... [06:43:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:43:00]Read from MH i2c: E2 [06:43:00]MH_I2C_Read... [06:43:00]Read from MH i2c: E2 FD 00 [06:43:00]MH_I2C_Read... [06:43:00]Read from MH i2c: E2 FD 00 40 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 D5 [06:43:00]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [06:43:00]wFMCommunicate OK [06:43:00]wFMCommunicate request_size=4 [06:43:00]MH_SAM_APDU [06:43:00]CAPDU: 80 17 00 00 [06:43:00]Write to MH i2c: E2 08 00 41 00 80 17 00 00 00 00 00 00 C1 [06:43:00]Write i2c OK [06:43:00]MH_I2C_Read... [06:43:00]OFD Sender: No OFD packet to send [06:43:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:43:00]Read from MH i2c: E2 [06:43:00]MH_I2C_Read... [06:43:00]Read from MH i2c: E2 FD 00 [06:43:00]MH_I2C_Read... [06:43:00]Read from MH i2c: E2 FD 00 41 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 90 00 71 [06:43:00]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 90 00 [06:43:00]wFMCommunicate OK [06:43:00]wFMCommunicate request_size=4 [06:43:00]MH_SAM_APDU [06:43:00]CAPDU: 80 17 00 00 [06:43:00]Write to MH i2c: E2 08 00 42 00 80 17 00 00 00 00 00 00 C2 [06:43:00]Write i2c OK [06:43:00]MH_I2C_Read... [06:43:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:43:00]Read from MH i2c: E2 [06:43:00]MH_I2C_Read... [06:43:00]Read from MH i2c: E2 FD 00 [06:43:00]MH_I2C_Read... [06:43:00]Read from MH i2c: E2 FD 00 42 00 00 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 90 00 48 [06:43:01]RAPDU: 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 90 00 [06:43:01]wFMCommunicate OK [06:43:01]wFMCommunicate request_size=4 [06:43:01]MH_SAM_APDU [06:43:01]CAPDU: 80 17 00 00 [06:43:01]Write to MH i2c: E2 08 00 43 00 80 17 00 00 00 00 00 00 C3 [06:43:01]Write i2c OK [06:43:01]MH_I2C_Read... [06:43:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [06:43:01]Read from MH i2c: E2 [06:43:01]MH_I2C_Read... [06:43:01]Read from MH i2c: E2 C8 00 [06:43:01]MH_I2C_Read... [06:43:01]Read from MH i2c: E2 C8 00 43 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A6 [06:43:01]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [06:43:01]wFMCommunicate OK [06:43:01]SAM_PROTO_GetShiftData done [06:43:01]requested_item shift.sale.total_cash is exist - process it [06:43:01]requested_item shift.sale_refund.total is exist - process it [06:43:01]requested_item shift.sale_refund.total_cash is exist - process it [06:43:01]requested_item shift.buy.total is exist - process it [06:43:01]requested_item shift.buy.total_cash is exist - process it [06:43:01]produce_requested_data done [06:43:01]produce_requested_data return {"fm.sale.total":20194423.08,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":1185.00,"shift.sale.total_cash":584.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [06:43:01]process_action_free get_value [06:43:01]json_value_free [06:43:01]json_value_free done [06:43:01]process_json_proto returns [06:43:01]Send response to host [06:43:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20194423.08,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":1185.00,"shift.sale.total_cash":584.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [06:43:01]free response buf [06:43:01]execute_script done [06:43:01]execute_script returns [06:43:01]free content buf [06:43:01]Sock 7.Close socket [06:43:01]Sock 7.Thread stoped [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:54]accept exits with 9 [06:43:54]New connection [06:43:54]New thread 3067370852 created [06:43:54]Thread 3067227492 joined [06:43:54]Waiting for new connection... [06:43:54] Sock 9.Parse request [06:43:54]Sock 9.Check first char [06:43:54]Sock 9.First char is OK [06:43:54]request: POST /json_proto HTTP/1.0 [06:43:54]Method: POST [06:43:54]URL: /json_proto [06:43:54]Method is POST - this is cgi request [06:43:54]url: /json_proto [06:43:54]query_string will be loaded in cgi processing [06:43:54]execute_cgi json_proto POST (null) [06:43:54]execute_cgi path=json_proto method=POST [06:43:54]POST find Content-Length [06:43:54]Host: 172.17.52.196:8080 [06:43:54]Content-Length: 644 [06:43:54]Content-Type: application/json [06:43:54] [06:43:54]POST finish read [06:43:54]Found Content-Length = 644 [06:43:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127123", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:43:54]execute_script... [06:43:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127123", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:43:54]POST & json_proto [06:43:54]process_json_proto [06:43:54]json parsed OK: [06:43:54]protocol is kg_v1.0 [06:43:54]action value=close_receipt [06:43:54]process_action close_receipt [06:43:54]cmd_close_receipt [06:43:54]MH_GetDate [06:43:54]Write to MH i2c: F0 00 00 44 00 33 [06:43:54]Write i2c OK [06:43:54]MH_I2C_Read... [06:43:54]Read from MH i2c: F0 [06:43:54]MH_I2C_Read... [06:43:54]Read from MH i2c: F0 09 00 [06:43:54]MH_I2C_Read... [06:43:54]Read from MH i2c: F0 09 00 44 00 00 AB A6 14 67 60 05 E4 66 B7 [06:43:54]GetLastDocTimeStamp 1729398159 [06:43:54]current date 1729406635 [06:43:54]FM_GetShiftState [06:43:54]SAM_PROTO_GetShiftState [06:43:54]wFMCommunicate request_size=4 [06:43:54]MH_SAM_APDU [06:43:54]CAPDU: 80 13 01 00 [06:43:54]Write to MH i2c: E2 08 00 45 00 80 13 01 00 00 00 00 00 C2 [06:43:54]Write i2c OK [06:43:54]MH_I2C_Read... [06:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:43:54]Read from MH i2c: E2 [06:43:54]MH_I2C_Read... [06:43:54]Read from MH i2c: E2 0E 00 [06:43:54]MH_I2C_Read... [06:43:54]Read from MH i2c: E2 0E 00 45 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 54 [06:43:54]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [06:43:54]wFMCommunicate OK [06:43:54]SAM_PROTO_GetShiftState done [06:43:54]FM_GetShiftState done [06:43:54]opened in 1729384380 [06:43:54]opened+sec_in_day 1729470780 [06:43:54]quantity*price = 5000 [06:43:54]sum+1 = 5001 [06:43:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 7 20.10.2024 06:43 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69717 ФПД: 198784559329016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T064355&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69717&fm=198784559329016&tin=02508201610067®Number=0000000000091770&sum=5000 0 [06:43:56]StoreToDocumentArchive [06:43:56]shift 526 fd 69717 [06:43:56]save to /storage/0526/doc_00069717 [06:43:56]save last doc name /storage/0526/doc_00069717 to /storage/kkm_last_doc_name [06:43:56]save OK [06:43:56]Clear old archive folders... [06:43:56]ProcessDocumentItem done err = 0, tmpTLVsize=275 [06:43:56]tlvbuf is 01B69CE0 [06:43:56]SAM_PROTO_ClearQueue [06:43:56]wFMCommunicate request_size=4 [06:43:56]MH_SAM_APDU [06:43:56]CAPDU: 80 09 00 00 [06:43:56]Write to MH i2c: E2 08 00 52 00 80 09 00 00 00 00 00 00 C4 [06:43:56]Write i2c OK [06:43:56]MH_I2C_Read... [06:43:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:43:56]Read from MH i2c: E2 [06:43:56]MH_I2C_Read... [06:43:56]Read from MH i2c: E2 03 00 [06:43:56]MH_I2C_Read... [06:43:56]Read from MH i2c: E2 03 00 52 00 00 90 00 C6 [06:43:56]RAPDU: 90 00 [06:43:56]wFMCommunicate OK [06:43:56]SAM_PROTO_ClearQueue done [06:43:56]KKMCreateOFDPacket [06:43:56]OFDProtocolAddRootSTLVToBuf [06:43:56]FM_MakeSignedData [06:43:56]FM_MakeSignedData [06:43:56]SAM_PROTO_SignData [06:43:56]wFMCommunicate request_size=4 [06:43:56]MH_SAM_APDU [06:43:56]CAPDU: 80 0D 01 02 [06:43:56]Write to MH i2c: E2 08 00 53 00 80 0D 01 02 00 00 00 00 CC [06:43:56]Write i2c OK [06:43:56]MH_I2C_Read... [06:43:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:43:56]Read from MH i2c: E2 [06:43:56]MH_I2C_Read... [06:43:56]Read from MH i2c: E2 03 00 [06:43:56]MH_I2C_Read... [06:43:56]Read from MH i2c: E2 03 00 53 00 00 90 00 C7 [06:43:56]RAPDU: 90 00 [06:43:56]wFMCommunicate OK [06:43:56]wFMCommunicate request_size=255 [06:43:56]MH_SAM_APDU [06:43:56]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 AB A6 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 [06:43:56]Write to MH i2c: E2 02 01 54 00 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 AB A6 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 00 00 0F [06:43:56]Write i2c OK [06:43:56]MH_I2C_Read... [06:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:43:56]Read from MH i2c: E2 [06:43:56]MH_I2C_Read... [06:43:56]Read from MH i2c: E2 03 00 [06:43:56]MH_I2C_Read... [06:43:56]Read from MH i2c: E2 03 00 54 00 00 90 00 C8 [06:43:56]RAPDU: 90 00 [06:43:56]wFMCommunicate OK [06:43:56]wFMCommunicate request_size=34 [06:43:56]MH_SAM_APDU [06:43:56]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 55 10 01 00 35 04 06 00 B4 CB 23 0B AE F8 [06:43:56]Write to MH i2c: E2 25 00 55 00 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 55 10 01 00 35 04 06 00 B4 CB 23 0B AE F8 00 00 4D [06:43:56]Write i2c OK [06:43:56]MH_I2C_Read... [06:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:43:56]Read from MH i2c: E2 [06:43:56]MH_I2C_Read... [06:43:56]Read from MH i2c: E2 03 00 [06:43:56]MH_I2C_Read... [06:43:56]Read from MH i2c: E2 03 00 55 00 00 90 00 C9 [06:43:56]RAPDU: 90 00 [06:43:56]wFMCommunicate OK [06:43:56]wFMCommunicate request_size=4 [06:43:56]MH_SAM_APDU [06:43:56]CAPDU: 80 0D 03 02 [06:43:56]Write to MH i2c: E2 08 00 56 00 80 0D 03 02 00 00 00 00 D1 [06:43:56]Write i2c OK [06:43:56]MH_I2C_Read... [06:43:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:43:56]Read from MH i2c: E2 [06:43:56]MH_I2C_Read... [06:43:56]Read from MH i2c: E2 0B 00 [06:43:56]MH_I2C_Read... [06:43:56]Read from MH i2c: E2 0B 00 56 00 00 B3 AE 3A 74 66 5B E1 4B 90 00 CE [06:43:56]RAPDU: B3 AE 3A 74 66 5B E1 4B 90 00 [06:43:56]wFMCommunicate OK [06:43:56]SAM_PROTO_SignData done [06:43:56]FM_MakeSignedData done [06:43:56]CreateOFDProtocolMessage [06:43:56]wFMCommunicate request_size=4 [06:43:56]MH_SAM_APDU [06:43:56]CAPDU: 80 11 00 00 [06:43:56]Write to MH i2c: E2 08 00 57 00 80 11 00 00 00 00 00 00 D1 [06:43:56]Write i2c OK [06:43:56]MH_I2C_Read... [06:43:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:43:56]Read from MH i2c: E2 [06:43:56]MH_I2C_Read... [06:43:56]Read from MH i2c: E2 17 00 [06:43:56]MH_I2C_Read... [06:43:56]Read from MH i2c: E2 17 00 57 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 28 [06:43:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [06:43:56]wFMCommunicate OK [06:43:56]CreateOFDProtocolMessage done [06:43:56]OFDSenderStorePacket 69717 [06:43:56]StoreOFDPacket docnum=69717 [06:43:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 FA 23 1F 01 39 89 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 AB A6 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 55 10 01 00 35 04 06 00 B4 CB 23 0B AE F8 B3 AE 3A 74 66 5B E1 4B [06:43:56]CheckFolder [06:43:56]dirname=/storage/ofd_packets [06:43:56]CheckFolder done [06:43:56]ProducePacketName [06:43:56]name=ofd_packets/00069717 [06:43:56]NVStorageSaveData ofd_packets/00069717 [06:43:56]File name is /storage/ofd_packets/00069717 [06:43:56]Write 325 bytes [06:43:56]NVStorageSaveData done [06:43:56]OFDSenderStorePacket done [06:43:56]KKMCreateOFDPacket done [06:43:56]NVStorageSaveData kkm_last_timestamp [06:43:56]File name is /storage/kkm_last_timestamp [06:43:56]Write 4 bytes [06:43:56]NVStorageSaveData done [06:43:56]ExternCall_PrintAddStr [06:43:56]wPrintStart [06:43:56]Write to MH i2c: 01 00 00 58 00 58 [06:43:56]Write i2c OK [06:43:56]MH_I2C_Read... [06:43:56]Read from MH i2c: 01 [06:43:56]MH_I2C_Read... [06:43:56]Read from MH i2c: 01 07 00 [06:43:56]MH_I2C_Read... [06:43:56]Read from MH i2c: 01 07 00 58 00 00 00 00 00 00 FF 0F 6D [06:43:56]RasterBufferAndPrint [06:43:56]line Счет N : (3)127123 [06:43:56]line ИНН: 02508201610067 [06:43:56]line Контрольно-Кассовый Чек [06:43:56]line ПРОДАЖА [06:43:56]line Товар: 5449000005489 [06:43:56]line Вода Бонаква 1л б/г [06:43:56]line 1.000 * 50.00 [06:43:56]line = 50.00 [06:43:56]line НДС 12% НСП 1% [06:43:56]line > о реализуемом товаре [06:43:56]line ИТОГО: 50.00 [06:43:56]line НСП 1% : 0.44 [06:43:56]line НДС 12% : 5.31 [06:43:56]line Наличными: 50.00 [06:43:56]line Безнал.: 0.00 [06:43:56]line Место: АЗС № 163 "Партнер Нефть" [06:43:56]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [06:43:56]line СНО: Общий режим [06:43:56]line Чек 7 20.10.2024 06:43 [06:43:56]line Смена: 526 ФФД: 1.0 [06:43:56]line ЗНМ: 0300000101 [06:43:56]line РНМ: 0000000000091770 [06:43:56]line Версия ККМ: 001 [06:43:56]line ФМ: 0000000000871749 [06:43:56]line ФД: 69717 [06:43:56]line ФПД: 198784559329016 [06:43:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T064355&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69717&fm=198784559329016&tin=02508201610067®Number=0000000000091770&sum=5000 [06:43:56]line 0 [06:43:56]OFD Sender: Processing packet 69717 [packets to send 32, broken 31] [06:43:56]written 0, free lines is 4095 [06:43:56]ProducePacketName [06:43:56]name=ofd_packets/00069717 [06:43:56]OFD Sender: To server: pG, [06:43:56]CommunicateWithHost lk.salyk.kg:30040 [06:43:56]ConnectInit lk.salyk.kg [06:43:57]Connected sock=10 [06:43:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 FA 23 1F 01 39 89 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 AB A6 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 55 10 01 00 35 04 06 00 B4 CB 23 0B AE F8 B3 AE 3A 74 66 5B E1 4B [06:43:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 23 9C 47 00 38 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 55 10 01 00 F4 03 04 00 2F 4C 14 67 B6 04 01 00 00 42 47 62 5B D5 51 70 90 [06:43:57]CommunicateWithHost err = 0 [06:43:57]CheckOFDResponse [06:43:57]1017 (14) - 77093643461234 [06:43:57]1041 (16) - 0000000000871749 [06:43:57]1040 (4) - 69717 [06:43:57]1012 (4) - 20.10.2024 00:17 [06:43:57]1206 (1) - 0 [06:43:57]OFD Sender: Remove packet 69717 [06:43:57]ProducePacketName [06:43:57]name=ofd_packets/00069717 [06:43:57]NVStorageDeleteData [06:43:57]Write to MH i2c: 01 00 00 80 00 80 [06:43:57]Write i2c OK [06:43:57]MH_I2C_Read... [06:43:57]Read from MH i2c: 01 [06:43:57]MH_I2C_Read... [06:43:57]Read from MH i2c: 01 07 00 [06:43:57]MH_I2C_Read... [06:43:57]Read from MH i2c: 01 07 00 80 00 00 00 00 00 00 0D 0D A1 [06:43:57]RasterBufferAndPrint [06:43:57]line [06:43:57]line [06:43:57]line [06:43:57]line [06:43:57]line [06:43:57]written 0, free lines is 3347 [06:43:57]MH_Cut [06:43:57]Write to MH i2c: D1 01 00 87 00 01 59 [06:43:57]Write i2c OK [06:43:57]MH_I2C_Read... [06:43:57]Read from MH i2c: D1 [06:43:57]MH_I2C_Read... [06:43:57]Read from MH i2c: D1 01 00 [06:43:57]MH_I2C_Read... [06:43:57]Read from MH i2c: D1 01 00 87 00 00 58 [06:43:57]Write to MH i2c: 01 00 00 88 00 88 [06:43:57]Write i2c OK [06:43:57]MH_I2C_Read... [06:43:57]OFD Sender: No OFD packet to send [06:43:58]*** Cut start [06:43:58]*** Partial cut [06:43:58]*** CUTSNS_PIN = 1 [06:43:58]*** CUTSNS_PIN = 0 [06:43:58]*** Brake cut motor [06:43:58]Read from MH i2c: 01 [06:43:58]MH_I2C_Read... [06:43:58]*** Stop cut motor [06:43:58]Read from MH i2c: *** Cut end [06:43:58]01 07 00 [06:43:58]MH_I2C_Read... [06:43:58]Read from MH i2c: 01 07 00 88 00 00 00 00 00 00 FF 0F 9D [06:43:58]process_action close_receipt done [06:43:58]requested_data is exist [06:43:58]produce_requested_data [06:43:58]requested_item fm.sn is exist - process it [06:43:58]wFMCommunicate request_size=4 [06:43:58]MH_SAM_APDU [06:43:58]CAPDU: 80 11 00 00 [06:43:58]Write to MH i2c: E2 08 00 89 00 80 11 00 00 00 00 00 00 03 [06:43:58]Write i2c OK [06:43:58]MH_I2C_Read... [06:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:43:58]Read from MH i2c: E2 [06:43:58]MH_I2C_Read... [06:43:58]Read from MH i2c: E2 17 00 [06:43:58]MH_I2C_Read... [06:43:58]Read from MH i2c: E2 17 00 89 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 5A [06:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [06:43:58]wFMCommunicate OK [06:43:58]requested_item fd.num is exist - process it [06:43:58]SAM_PROTO_GetFieldsCounters [06:43:58]wFMCommunicate request_size=4 [06:43:58]MH_SAM_APDU [06:43:58]CAPDU: 80 13 00 00 [06:43:58]Write to MH i2c: E2 08 00 8A 00 80 13 00 00 00 00 00 00 06 [06:43:58]Write i2c OK [06:43:58]MH_I2C_Read... [06:43:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:43:59]Read from MH i2c: E2 [06:43:59]MH_I2C_Read... [06:43:59]Read from MH i2c: E2 62 00 [06:43:59]MH_I2C_Read... [06:43:59]Read from MH i2c: E2 62 00 8A 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 55 10 01 00 0E 04 04 00 0E 02 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 B5 [06:43: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 55 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:43:59]wFMCommunicate OK [06:43:59]SAM_PROTO_GetFieldsCounters done [06:43:59]requested_item shift.num is exist - process it [06:43:59]requested_item shift.opened is exist - process it [06:43:59]req_shift_opened [06:43:59]FM_GetShiftState [06:43:59]SAM_PROTO_GetShiftState [06:43:59]wFMCommunicate request_size=4 [06:43:59]MH_SAM_APDU [06:43:59]CAPDU: 80 13 01 00 [06:43:59]Write to MH i2c: E2 08 00 8B 00 80 13 01 00 00 00 00 00 08 [06:43:59]Write i2c OK [06:43:59]MH_I2C_Read... [06:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:43:59]Read from MH i2c: E2 [06:43:59]MH_I2C_Read... [06:43:59]Read from MH i2c: E2 0E 00 [06:43:59]MH_I2C_Read... [06:43:59]Read from MH i2c: E2 0E 00 8B 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 9A [06:43:59]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [06:43:59]wFMCommunicate OK [06:43:59]SAM_PROTO_GetShiftState done [06:43:59]FM_GetShiftState done [06:43:59]req_shift_opened done [06:43:59]requested_item shift.open_date is exist - process it [06:43:59]req_shift_open_date [06:43:59]req_shift_open_date done [06:43:59]produce_requested_data done [06:43:59]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69717,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [06:43:59]process_action_free close_receipt [06:43:59]json_value_free [06:43:59]json_value_free done [06:43:59]process_json_proto returns [06:43:59]Send response to host [06:43:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69717,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [06:43:59]free response buf [06:43:59]execute_script done [06:43:59]execute_script returns [06:43:59]free content buf [06:43:59]Sock 9.Close socket [06:43:59]Sock 9.Thread stoped [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:43]OFD Sender: No OFD packet to send [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:08]OFD Sender: No OFD packet to send [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:28]OFD Sender: No OFD packet to send [06:48:33]OFD Sender: No OFD packet to send [06:48:38]OFD Sender: No OFD packet to send [06:48:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:49]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:59]OFD Sender: No OFD packet to send [07:08:04]OFD Sender: No OFD packet to send [07:08:09]OFD Sender: No OFD packet to send [07:08:14]OFD Sender: No OFD packet to send [07:08:19]OFD Sender: No OFD packet to send [07:08:24]OFD Sender: No OFD packet to send [07:08:29]OFD Sender: No OFD packet to send [07:08:34]OFD Sender: No OFD packet to send [07:08:39]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:44]OFD Sender: No OFD packet to send [07:11:49]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:11:59]OFD Sender: No OFD packet to send [07:12:04]OFD Sender: No OFD packet to send [07:12:09]OFD Sender: No OFD packet to send [07:12:14]OFD Sender: No OFD packet to send [07:12:19]OFD Sender: No OFD packet to send [07:12:24]OFD Sender: No OFD packet to send [07:12:29]OFD Sender: No OFD packet to send [07:12:34]OFD Sender: No OFD packet to send [07:12:39]OFD Sender: No OFD packet to send [07:12:44]OFD Sender: No OFD packet to send [07:12:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [08:19:54]ConnectInit Can't connect to host [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:33]OFD Sender: No OFD packet to send [08:25:38]OFD Sender: No OFD packet to send [08:25:43]OFD Sender: No OFD packet to send [08:25:48]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:39]accept exits with 9 [08:26:39]New connection [08:26:39]New thread 3066629476 created [08:26:39]Thread 3066486116 joined [08:26:39]Waiting for new connection... [08:26:39] Sock 9.Parse request [08:26:39]Sock 9.Check first char [08:26:39]Sock 9.First char is OK [08:26:39]request: POST /json_proto HTTP/1.0 [08:26:39]Method: POST [08:26:39]URL: /json_proto [08:26:39]Method is POST - this is cgi request [08:26:39]url: /json_proto [08:26:39]query_string will be loaded in cgi processing [08:26:39]execute_cgi json_proto POST (null) [08:26:39]execute_cgi path=json_proto method=POST [08:26:39]POST find Content-Length [08:26:39]Host: 172.17.52.196:8080 [08:26:39]Content-Length: 1033 [08:26:39]Content-Type: application/json [08:26:39] [08:26:39]POST finish read [08:26:39]Found Content-Length = 1033 [08:26:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127124", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:39]execute_script... [08:26:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127124", "tax_sys" : 0, "items" : [ { "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:39]POST & json_proto [08:26:39]process_json_proto [08:26:39]json parsed OK: [08:26:39]protocol is kg_v1.0 [08:26:39]action value=close_receipt [08:26:39]process_action close_receipt [08:26:39]cmd_close_receipt [08:26:39]MH_GetDate [08:26:39]Write to MH i2c: F0 00 00 1D 00 0C [08:26:39]Write i2c OK [08:26:39]MH_I2C_Read... [08:26:39]Read from MH i2c: F0 [08:26:39]MH_I2C_Read... [08:26:39]Read from MH i2c: F0 09 00 [08:26:39]MH_I2C_Read... [08:26:39]Read from MH i2c: F0 09 00 1D 00 00 C0 BE 14 67 60 05 E4 66 BD [08:26:39]GetLastDocTimeStamp 1729406635 [08:26:39]current date 1729412800 [08:26:39]FM_GetShiftState [08:26:39]SAM_PROTO_GetShiftState [08:26:39]wFMCommunicate request_size=4 [08:26:39]MH_SAM_APDU [08:26:39]CAPDU: 80 13 01 00 [08:26:39]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [08:26:39]Write i2c OK [08:26:39]MH_I2C_Read... [08:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:39]Read from MH i2c: E2 [08:26:39]MH_I2C_Read... [08:26:39]Read from MH i2c: E2 0E 00 [08:26:39]MH_I2C_Read... [08:26:39]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 2D [08:26:39]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:26:39]wFMCommunicate OK [08:26:39]SAM_PROTO_GetShiftState done [08:26:39]FM_GetShiftState done [08:26:39]opened in 1729384380 [08:26:39]opened+sec_in_day 1729470780 [08:26:39]quantity*price = 1000 [08:26:39]sum+1 = 1001 [08:26:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 8 20.10.2024 08:26 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69718 ФПД: 175944294159990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082640&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69718&fm=175944294159990&tin=02508201610067®Number=0000000000091770&sum=12500 0 [08:26:40]StoreToDocumentArchive [08:26:40]shift 526 fd 69718 [08:26:40]save to /storage/0526/doc_00069718 [08:26:40]save last doc name /storage/0526/doc_00069718 to /storage/kkm_last_doc_name [08:26:40]save OK [08:26:40]Clear old archive folders... [08:26:40]ProcessDocumentItem done err = 0, tmpTLVsize=390 [08:26:40]tlvbuf is 009729B0 [08:26:40]SAM_PROTO_ClearQueue [08:26:40]wFMCommunicate request_size=4 [08:26:40]MH_SAM_APDU [08:26:40]CAPDU: 80 09 00 00 [08:26:40]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [08:26:40]Write i2c OK [08:26:40]MH_I2C_Read... [08:26:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:40]Read from MH i2c: E2 [08:26:40]MH_I2C_Read... [08:26:40]Read from MH i2c: E2 03 00 [08:26:40]MH_I2C_Read... [08:26:40]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [08:26:40]RAPDU: 90 00 [08:26:40]wFMCommunicate OK [08:26:40]SAM_PROTO_ClearQueue done [08:26:40]KKMCreateOFDPacket [08:26:40]OFDProtocolAddRootSTLVToBuf [08:26:40]FM_MakeSignedData [08:26:40]FM_MakeSignedData [08:26:40]SAM_PROTO_SignData [08:26:40]wFMCommunicate request_size=4 [08:26:40]MH_SAM_APDU [08:26:40]CAPDU: 80 0D 01 02 [08:26:40]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [08:26:40]Write i2c OK [08:26:40]MH_I2C_Read... [08:26:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:40]Read from MH i2c: E2 [08:26:40]MH_I2C_Read... [08:26:40]Read from MH i2c: E2 03 00 [08:26:40]MH_I2C_Read... [08:26:40]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [08:26:40]RAPDU: 90 00 [08:26:40]wFMCommunicate OK [08:26:40]wFMCommunicate request_size=255 [08:26:40]MH_SAM_APDU [08:26:40]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [08:26:40]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 3A [08:26:40]Write i2c OK [08:26:40]MH_I2C_Read... [08:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:40]Read from MH i2c: E2 [08:26:40]MH_I2C_Read... [08:26:40]Read from MH i2c: E2 03 00 [08:26:40]MH_I2C_Read... [08:26:40]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [08:26:40]RAPDU: 90 00 [08:26:40]wFMCommunicate OK [08:26:40]wFMCommunicate request_size=149 [08:26:40]MH_SAM_APDU [08:26:40]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 C0 BE 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 56 10 01 00 35 04 06 00 A0 05 39 27 56 76 [08:26:40]Write to MH i2c: E2 98 00 2E 00 80 0D 02 02 90 00 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 C0 BE 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 56 10 01 00 35 04 06 00 A0 05 39 27 56 76 00 00 E9 [08:26:40]Write i2c OK [08:26:40]MH_I2C_Read... [08:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:41]Read from MH i2c: E2 [08:26:41]MH_I2C_Read... [08:26:41]Read from MH i2c: E2 03 00 [08:26:41]MH_I2C_Read... [08:26:41]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [08:26:41]RAPDU: 90 00 [08:26:41]wFMCommunicate OK [08:26:41]wFMCommunicate request_size=4 [08:26:41]MH_SAM_APDU [08:26:41]CAPDU: 80 0D 03 02 [08:26:41]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [08:26:41]Write i2c OK [08:26:41]MH_I2C_Read... [08:26:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:41]Read from MH i2c: E2 [08:26:41]MH_I2C_Read... [08:26:41]Read from MH i2c: E2 0B 00 [08:26:41]MH_I2C_Read... [08:26:41]Read from MH i2c: E2 0B 00 2F 00 00 8B 0B B6 D4 89 EA 88 11 90 00 D7 [08:26:41]RAPDU: 8B 0B B6 D4 89 EA 88 11 90 00 [08:26:41]wFMCommunicate OK [08:26:41]SAM_PROTO_SignData done [08:26:41]FM_MakeSignedData done [08:26:41]CreateOFDProtocolMessage [08:26:41]wFMCommunicate request_size=4 [08:26:41]MH_SAM_APDU [08:26:41]CAPDU: 80 11 00 00 [08:26:41]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [08:26:41]Write i2c OK [08:26:41]MH_I2C_Read... [08:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:41]Read from MH i2c: E2 [08:26:41]MH_I2C_Read... [08:26:41]Read from MH i2c: E2 17 00 [08:26:41]MH_I2C_Read... [08:26:41]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 31 37 34 39 90 00 01 [08:26:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:26:41]wFMCommunicate OK [08:26:41]CreateOFDProtocolMessage done [08:26:41]OFDSenderStorePacket 69718 [08:26:41]StoreOFDPacket docnum=69718 [08:26:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 9A 01 00 00 9D 2D 92 01 DB B2 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 C0 BE 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 56 10 01 00 35 04 06 00 A0 05 39 27 56 76 8B 0B B6 D4 89 EA 88 11 [08:26:41]CheckFolder [08:26:41]dirname=/storage/ofd_packets [08:26:41]CheckFolder done [08:26:41]ProducePacketName [08:26:41]name=ofd_packets/00069718 [08:26:41]NVStorageSaveData ofd_packets/00069718 [08:26:41]File name is /storage/ofd_packets/00069718 [08:26:41]Write 440 bytes [08:26:41]NVStorageSaveData done [08:26:41]OFDSenderStorePacket done [08:26:41]KKMCreateOFDPacket done [08:26:41]NVStorageSaveData kkm_last_timestamp [08:26:41]File name is /storage/kkm_last_timestamp [08:26:41]Write 4 bytes [08:26:41]NVStorageSaveData done [08:26:41]ExternCall_PrintAddStr [08:26:41]wPrintStart [08:26:41]Write to MH i2c: 01 00 00 31 00 31 [08:26:41]Write i2c OK [08:26:41]MH_I2C_Read... [08:26:41]Read from MH i2c: 01 [08:26:41]MH_I2C_Read... [08:26:41]Read from MH i2c: 01 07 00 [08:26:41]MH_I2C_Read... [08:26:41]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [08:26:41]RasterBufferAndPrint [08:26:41]line Счет N : (3)127124 [08:26:41]line ИНН: 02508201610067 [08:26:41]line Контрольно-Кассовый Чек [08:26:41]line ПРОДАЖА [08:26:41]line Товар: 46226617 [08:26:41]line Mentos ПВ Нежная Мята 6*100*2г [08:26:41]line 1.000 * 10.00 [08:26:41]line = 10.00 [08:26:41]line НДС 12% НСП 1% [08:26:41]line > о реализуемом товаре [08:26:41]line Товар: 2000036210013 [08:26:41]line Кофе Капучино (GABB TRADE) [08:26:41]line 1.000 * 115.00 [08:26:41]line = 115.00 [08:26:41]line НДС 12% НСП 1% [08:26:41]line > о реализуемом товаре [08:26:41]line ИТОГО: 125.00 [08:26:41]line НСП 1% : 1.11 [08:26:41]line НДС 12% : 13.27 [08:26:41]line Наличными: 0.00 [08:26:41]line Безнал.: 125.00 [08:26:41]line Место: АЗС № 163 "Партнер Нефть" [08:26:41]OFD Sender: Processing packet 69718 [packets to send 32, broken 31] [08:26:41]ProducePacketName [08:26:41]name=ofd_packets/00069718 [08:26:41]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [08:26:41]line СНО: Общий режим [08:26:41]line Чек 8 20.10.2024 08:26 [08:26:41]line Смена: 526 ФФД: 1.0 [08:26:41]line ЗНМ: 0300000101 [08:26:41]line РНМ: 0000000000091770 [08:26:41]line Версия ККМ: 001 [08:26:41]line Платежная система: Mbank [08:26:41]line ФМ: 0000000000871749 [08:26:41]line ФД: 69718 [08:26:41]line ФПД: 175944294159990 [08:26:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082640&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69718&fm=175944294159990&tin=02508201610067®Number=0000000000091770&sum=12500 [08:26:41]OFD Sender: To server: pG, [08:26:41]CommunicateWithHost lk.salyk.kg:30040 [08:26:41]ConnectInit lk.salyk.kg [08:26:41]line 0 [08:26:41]written 0, free lines is 4095 [08:26:41]Connected sock=10 [08:26:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 9A 01 00 00 9D 2D 92 01 DB B2 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 C0 BE 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 56 10 01 00 35 04 06 00 A0 05 39 27 56 76 8B 0B B6 D4 89 EA 88 11 [08:26:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 7D 94 47 00 D9 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 31 37 34 39 10 04 04 00 56 10 01 00 F4 03 04 00 44 64 14 67 B6 04 01 00 00 26 B0 8C 5B 2B 52 33 87 [08:26:41]CommunicateWithHost err = 0 [08:26:41]CheckOFDResponse [08:26:41]1017 (14) - 77093643461234 [08:26:41]1041 (16) - 0000000000871749 [08:26:41]1040 (4) - 69718 [08:26:41]1012 (4) - 20.10.2024 02:00 [08:26:41]1206 (1) - 0 [08:26:41]OFD Sender: Remove packet 69718 [08:26:41]ProducePacketName [08:26:41]name=ofd_packets/00069718 [08:26:41]NVStorageDeleteData [08:26:42]Write to MH i2c: 01 00 00 61 00 61 [08:26:42]Write i2c OK [08:26:42]MH_I2C_Read... [08:26:42]Read from MH i2c: 01 [08:26:42]MH_I2C_Read... [08:26:42]Read from MH i2c: 01 07 00 [08:26:42]MH_I2C_Read... [08:26:42]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 96 0C 0A [08:26:42]RasterBufferAndPrint [08:26:42]line [08:26:42]line [08:26:42]line [08:26:42]line [08:26:42]line [08:26:42]written 0, free lines is 3226 [08:26:42]MH_Cut [08:26:42]Write to MH i2c: D1 01 00 68 00 01 3A [08:26:42]Write i2c OK [08:26:42]MH_I2C_Read... [08:26:42]Read from MH i2c: D1 [08:26:42]MH_I2C_Read... [08:26:42]Read from MH i2c: D1 01 00 [08:26:42]MH_I2C_Read... [08:26:42]Read from MH i2c: D1 01 00 68 00 00 39 [08:26:42]Write to MH i2c: 01 00 00 69 00 69 [08:26:42]Write i2c OK [08:26:42]MH_I2C_Read... [08:26:42]OFD Sender: No OFD packet to send [08:26:42]*** Cut start [08:26:42]*** Partial cut [08:26:42]*** CUTSNS_PIN = 1 [08:26:43]*** CUTSNS_PIN = 0 [08:26:43]*** Brake cut motor [08:26:43]Read from MH i2c: 01 [08:26:43]MH_I2C_Read... [08:26:43]*** Stop cut motor [08:26:43]*** Cut end [08:26:43]Read from MH i2c: 01 07 00 [08:26:43]MH_I2C_Read... [08:26:43]Read from MH i2c: 01 07 00 69 00 00 00 00 00 00 FF 0F 7E [08:26:43]process_action close_receipt done [08:26:43]requested_data is exist [08:26:43]produce_requested_data [08:26:43]requested_item fm.sn is exist - process it [08:26:43]wFMCommunicate request_size=4 [08:26:43]MH_SAM_APDU [08:26:43]CAPDU: 80 11 00 00 [08:26:43]Write to MH i2c: E2 08 00 6A 00 80 11 00 00 00 00 00 00 E4 [08:26:43]Write i2c OK [08:26:43]MH_I2C_Read... [08:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:43]Read from MH i2c: E2 [08:26:43]MH_I2C_Read... [08:26:43]Read from MH i2c: E2 17 00 [08:26:43]MH_I2C_Read... [08:26:43]Read from MH i2c: E2 17 00 6A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 3B [08:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:26:43]wFMCommunicate OK [08:26:43]requested_item fd.num is exist - process it [08:26:43]SAM_PROTO_GetFieldsCounters [08:26:43]wFMCommunicate request_size=4 [08:26:43]MH_SAM_APDU [08:26:43]CAPDU: 80 13 00 00 [08:26:43]Write to MH i2c: E2 08 00 6B 00 80 13 00 00 00 00 00 00 E7 [08:26:43]Write i2c OK [08:26:43]MH_I2C_Read... [08:26:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:43]Read from MH i2c: E2 [08:26:43]MH_I2C_Read... [08:26:43]Read from MH i2c: E2 62 00 [08:26:43]MH_I2C_Read... [08:26:43]Read from MH i2c: E2 62 00 6B 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 56 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [08:26: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 56 10 01 00 0E 04 04 00 0E 02 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:26:43]wFMCommunicate OK [08:26:43]SAM_PROTO_GetFieldsCounters done [08:26:43]requested_item shift.num is exist - process it [08:26:43]requested_item shift.opened is exist - process it [08:26:43]req_shift_opened [08:26:43]FM_GetShiftState [08:26:43]SAM_PROTO_GetShiftState [08:26:43]wFMCommunicate request_size=4 [08:26:43]MH_SAM_APDU [08:26:43]CAPDU: 80 13 01 00 [08:26:43]Write to MH i2c: E2 08 00 6C 00 80 13 01 00 00 00 00 00 E9 [08:26:43]Write i2c OK [08:26:43]MH_I2C_Read... [08:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:44]Read from MH i2c: E2 [08:26:44]MH_I2C_Read... [08:26:44]Read from MH i2c: E2 0E 00 [08:26:44]MH_I2C_Read... [08:26:44]Read from MH i2c: E2 0E 00 6C 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 7B [08:26:44]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:26:44]wFMCommunicate OK [08:26:44]SAM_PROTO_GetShiftState done [08:26:44]FM_GetShiftState done [08:26:44]req_shift_opened done [08:26:44]requested_item shift.open_date is exist - process it [08:26:44]req_shift_open_date [08:26:44]req_shift_open_date done [08:26:44]produce_requested_data done [08:26:44]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69718,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [08:26:44]process_action_free close_receipt [08:26:44]json_value_free [08:26:44]json_value_free done [08:26:44]process_json_proto returns [08:26:44]Send response to host [08:26:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69718,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [08:26:44]free response buf [08:26:44]execute_script done [08:26:44]execute_script returns [08:26:44]free content buf [08:26:44]Sock 9.Close socket [08:26:44]Sock 9.Thread stoped [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]accept exits with 7 [08:28:37]New connection [08:28:37]New thread 3066486116 created [08:28:37]Thread 3066629476 joined [08:28:37]Waiting for new connection... [08:28:37] Sock 7.Parse request [08:28:37]Sock 7.Check first char [08:28:37]Sock 7.First char is OK [08:28:37]request: POST /json_proto HTTP/1.0 [08:28:37]Method: POST [08:28:37]URL: /json_proto [08:28:37]Method is POST - this is cgi request [08:28:37]url: /json_proto [08:28:37]query_string will be loaded in cgi processing [08:28:37]execute_cgi json_proto POST (null) [08:28:37]execute_cgi path=json_proto method=POST [08:28:37]POST find Content-Length [08:28:37]Host: 172.17.52.196:8080 [08:28:37]Content-Length: 585 [08:28:37]Content-Type: application/json [08:28:37] [08:28:37]POST finish read [08:28:37]Found Content-Length = 585 [08:28:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127125", "tax_sys" : 0, "items" : [ { "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:37]execute_script... [08:28: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 : (3)127125", "tax_sys" : 0, "items" : [ { "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:37]POST & json_proto [08:28:37]process_json_proto [08:28:37]json parsed OK: [08:28:37]protocol is kg_v1.0 [08:28:37]action value=close_receipt [08:28:37]process_action close_receipt [08:28:37]cmd_close_receipt [08:28:37]MH_GetDate [08:28:37]Write to MH i2c: F0 00 00 6D 00 5C [08:28:37]Write i2c OK [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: F0 [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: F0 09 00 [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: F0 09 00 6D 00 00 36 BF 14 67 60 05 E4 66 84 [08:28:37]GetLastDocTimeStamp 1729412800 [08:28:37]current date 1729412918 [08:28:37]FM_GetShiftState [08:28:37]SAM_PROTO_GetShiftState [08:28:37]wFMCommunicate request_size=4 [08:28:37]MH_SAM_APDU [08:28:37]CAPDU: 80 13 01 00 [08:28:37]Write to MH i2c: E2 08 00 6E 00 80 13 01 00 00 00 00 00 EB [08:28:37]Write i2c OK [08:28:37]MH_I2C_Read... [08:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:37]Read from MH i2c: E2 [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: E2 0E 00 [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: E2 0E 00 6E 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 7D [08:28:37]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:28:37]wFMCommunicate OK [08:28:37]SAM_PROTO_GetShiftState done [08:28:37]FM_GetShiftState done [08:28:37]opened in 1729384380 [08:28:37]opened+sec_in_day 1729470780 [08:28:37]quantity*price = 4500 [08:28:37]sum+1 = 4501 [08:28:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 9 20.10.2024 08:28 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69719 ФПД: 3474814417901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082838&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69719&fm=3474814417901&tin=02508201610067®Number=0000000000091770&sum=4500 0 [08:28:38]StoreToDocumentArchive [08:28:38]shift 526 fd 69719 [08:28:38]save to /storage/0526/doc_00069719 [08:28:38]save last doc name /storage/0526/doc_00069719 to /storage/kkm_last_doc_name [08:28:38]save OK [08:28:38]Clear old archive folders... [08:28:38]ProcessDocumentItem done err = 0, tmpTLVsize=260 [08:28:38]tlvbuf is 0096C840 [08:28:38]SAM_PROTO_ClearQueue [08:28:38]wFMCommunicate request_size=4 [08:28:38]MH_SAM_APDU [08:28:38]CAPDU: 80 09 00 00 [08:28:38]Write to MH i2c: E2 08 00 7B 00 80 09 00 00 00 00 00 00 ED [08:28:38]Write i2c OK [08:28:38]MH_I2C_Read... [08:28:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:38]Read from MH i2c: E2 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 03 00 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [08:28:38]RAPDU: 90 00 [08:28:38]wFMCommunicate OK [08:28:38]SAM_PROTO_ClearQueue done [08:28:38]KKMCreateOFDPacket [08:28:38]OFDProtocolAddRootSTLVToBuf [08:28:38]FM_MakeSignedData [08:28:38]FM_MakeSignedData [08:28:38]SAM_PROTO_SignData [08:28:38]wFMCommunicate request_size=4 [08:28:38]MH_SAM_APDU [08:28:38]CAPDU: 80 0D 01 02 [08:28:38]Write to MH i2c: E2 08 00 7C 00 80 0D 01 02 00 00 00 00 F5 [08:28:38]Write i2c OK [08:28:38]MH_I2C_Read... [08:28:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:38]Read from MH i2c: E2 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 03 00 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 03 00 7C 00 00 90 00 F0 [08:28:38]RAPDU: 90 00 [08:28:38]wFMCommunicate OK [08:28:38]wFMCommunicate request_size=255 [08:28:38]MH_SAM_APDU [08:28:38]CAPDU: 80 0D 02 02 FA 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 36 BF 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 [08:28:38]Write to MH i2c: E2 02 01 7D 00 80 0D 02 02 FA 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 36 BF 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 00 00 8D [08:28:38]Write i2c OK [08:28:38]MH_I2C_Read... [08:28:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:38]Read from MH i2c: E2 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 03 00 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 03 00 7D 00 00 90 00 F1 [08:28:38]RAPDU: 90 00 [08:28:38]wFMCommunicate OK [08:28:38]wFMCommunicate request_size=19 [08:28:38]MH_SAM_APDU [08:28:38]CAPDU: 80 0D 02 02 0E 57 10 01 00 35 04 06 00 03 29 0B 14 3B ED [08:28:38]Write to MH i2c: E2 16 00 7E 00 80 0D 02 02 0E 00 57 10 01 00 35 04 06 00 03 29 0B 14 3B ED 00 00 2E [08:28:38]Write i2c OK [08:28:38]MH_I2C_Read... [08:28:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:38]Read from MH i2c: E2 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 03 00 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 03 00 7E 00 00 90 00 F2 [08:28:38]RAPDU: 90 00 [08:28:38]wFMCommunicate OK [08:28:38]wFMCommunicate request_size=4 [08:28:38]MH_SAM_APDU [08:28:38]CAPDU: 80 0D 03 02 [08:28:38]Write to MH i2c: E2 08 00 7F 00 80 0D 03 02 00 00 00 00 FA [08:28:38]Write i2c OK [08:28:38]MH_I2C_Read... [08:28:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:38]Read from MH i2c: E2 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 0B 00 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 0B 00 7F 00 00 0C 3C A8 26 C3 1B F8 98 90 00 7F [08:28:38]RAPDU: 0C 3C A8 26 C3 1B F8 98 90 00 [08:28:38]wFMCommunicate OK [08:28:38]SAM_PROTO_SignData done [08:28:38]FM_MakeSignedData done [08:28:38]CreateOFDProtocolMessage [08:28:38]wFMCommunicate request_size=4 [08:28:38]MH_SAM_APDU [08:28:38]CAPDU: 80 11 00 00 [08:28:38]Write to MH i2c: E2 08 00 80 00 80 11 00 00 00 00 00 00 FA [08:28:38]Write i2c OK [08:28:38]MH_I2C_Read... [08:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:38]Read from MH i2c: E2 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 17 00 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 17 00 80 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 51 [08:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:28:38]wFMCommunicate OK [08:28:38]CreateOFDProtocolMessage done [08:28:38]OFDSenderStorePacket 69719 [08:28:38]StoreOFDPacket docnum=69719 [08:28:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 18 01 00 00 0B DD 10 01 01 E9 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 36 BF 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 57 10 01 00 35 04 06 00 03 29 0B 14 3B ED 0C 3C A8 26 C3 1B F8 98 [08:28:38]CheckFolder [08:28:38]dirname=/storage/ofd_packets [08:28:38]CheckFolder done [08:28:38]ProducePacketName [08:28:38]name=ofd_packets/00069719 [08:28:38]NVStorageSaveData ofd_packets/00069719 [08:28:38]File name is /storage/ofd_packets/00069719 [08:28:38]Write 310 bytes [08:28:38]NVStorageSaveData done [08:28:38]OFDSenderStorePacket done [08:28:38]KKMCreateOFDPacket done [08:28:38]NVStorageSaveData kkm_last_timestamp [08:28:38]File name is /storage/kkm_last_timestamp [08:28:38]Write 4 bytes [08:28:38]NVStorageSaveData done [08:28:38]ExternCall_PrintAddStr [08:28:38]wPrintStart [08:28:38]Write to MH i2c: 01 00 00 81 00 81 [08:28:38]Write i2c OK [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: 01 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: 01 07 00 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: 01 07 00 81 00 00 00 00 00 00 FF 0F 96 [08:28:38]RasterBufferAndPrint [08:28:38]line Счет N : (3)127125 [08:28:38]line ИНН: 02508201610067 [08:28:38]line Контрольно-Кассовый Чек [08:28:38]line ПРОДАЖА [08:28:38]line Товар: 50173808 [08:28:38]line Жев Orbit Sweet Mint [08:28:38]line 1.000 * 45.00 [08:28:38]line = 45.00 [08:28:38]line НДС 12% НСП 1% [08:28:38]line > о реализуемом товаре [08:28:38]line ИТОГО: 45.00 [08:28:38]line НСП 1% : 0.40 [08:28:38]line НДС 12% : 4.78 [08:28:38]line Наличными: 45.00 [08:28:38]line Безнал.: 0.00 [08:28:38]line Место: АЗС № 163 "Партнер Нефть" [08:28:38]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [08:28:38]line СНО: Общий режим [08:28:38]line Чек 9 20.10.2024 08:28 [08:28:38]line Смена: 526 ФФД: 1.0 [08:28:38]line ЗНМ: 0300000101 [08:28:38]line РНМ: 0000000000091770 [08:28:38]line Версия ККМ: 001 [08:28:38]line ФМ: 0000000000871749 [08:28:38]line ФД: 69719 [08:28:38]line ФПД: 3474814417901 [08:28:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T082838&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69719&fm=3474814417901&tin=02508201610067®Number=0000000000091770&sum=4500 [08:28:39]line 0 [08:28:39]OFD Sender: Processing packet 69719 [packets to send 32, broken 31] [08:28:39]ProducePacketName [08:28:39]name=ofd_packets/00069719 [08:28:39]OFD Sender: To server: pG, [08:28:39]CommunicateWithHost lk.salyk.kg:30040 [08:28:39]ConnectInit lk.salyk.kg [08:28:39]written 0, free lines is 4095 [08:28:39]Connected sock=10 [08:28:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 18 01 00 00 0B DD 10 01 01 E9 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 36 BF 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 57 10 01 00 35 04 06 00 03 29 0B 14 3B ED 0C 3C A8 26 C3 1B F8 98 [08:28:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 C7 B7 47 00 E8 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 31 37 34 39 10 04 04 00 57 10 01 00 F4 03 04 00 B9 64 14 67 B6 04 01 00 00 06 59 BF 54 86 A1 29 E9 [08:28:39]CommunicateWithHost err = 0 [08:28:39]CheckOFDResponse [08:28:39]1017 (14) - 77093643461234 [08:28:39]1041 (16) - 0000000000871749 [08:28:39]1040 (4) - 69719 [08:28:39]1012 (4) - 20.10.2024 02:02 [08:28:39]1206 (1) - 0 [08:28:39]OFD Sender: Remove packet 69719 [08:28:39]ProducePacketName [08:28:39]name=ofd_packets/00069719 [08:28:39]NVStorageDeleteData [08:28:39]Write to MH i2c: 01 00 00 A9 00 A9 [08:28:39]Write i2c OK [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: 01 [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: 01 07 00 [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 F8 0C B4 [08:28:39]RasterBufferAndPrint [08:28:39]line [08:28:39]line [08:28:39]line [08:28:39]line [08:28:39]line [08:28:39]written 0, free lines is 3327 [08:28:39]MH_Cut [08:28:39]Write to MH i2c: D1 01 00 B0 00 01 82 [08:28:39]Write i2c OK [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: D1 [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: D1 01 00 [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: D1 01 00 B0 00 00 81 [08:28:39]Write to MH i2c: 01 00 00 B1 00 B1 [08:28:39]Write i2c OK [08:28:39]MH_I2C_Read... [08:28:40]OFD Sender: No OFD packet to send [08:28:40]*** Cut start [08:28:40]*** Partial cut [08:28:40]*** CUTSNS_PIN = 1 [08:28:40]*** CUTSNS_PIN = 0 [08:28:40]*** Brake cut motor [08:28:41]Read from MH i2c: 01 [08:28:41]MH_I2C_Read... [08:28:41]*** Stop cut motor [08:28:41]*** Cut end [08:28:41]Read from MH i2c: 01 07 00 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: 01 07 00 B1 00 00 00 00 00 00 FF 0F C6 [08:28:41]process_action close_receipt done [08:28:41]requested_data is exist [08:28:41]produce_requested_data [08:28:41]requested_item fm.sn is exist - process it [08:28:41]wFMCommunicate request_size=4 [08:28:41]MH_SAM_APDU [08:28:41]CAPDU: 80 11 00 00 [08:28:41]Write to MH i2c: E2 08 00 B2 00 80 11 00 00 00 00 00 00 2C [08:28:41]Write i2c OK [08:28:41]MH_I2C_Read... [08:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:41]Read from MH i2c: E2 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: E2 17 00 [08:28:41]MH_I2C_Read... [08:28:41]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 31 37 34 39 90 00 83 [08:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:28:41]wFMCommunicate OK [08:28:41]requested_item fd.num is exist - process it [08:28:41]SAM_PROTO_GetFieldsCounters [08:28:41]wFMCommunicate request_size=4 [08:28:41]MH_SAM_APDU [08:28:41]CAPDU: 80 13 00 00 [08:28:41]Write to MH i2c: E2 08 00 B3 00 80 13 00 00 00 00 00 00 2F [08:28:41]Write i2c OK [08:28:41]MH_I2C_Read... [08:28:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:41]Read from MH i2c: E2 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: E2 62 00 [08:28:41]MH_I2C_Read... [08:28:41]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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 57 10 01 00 0E 04 04 00 0E 02 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 E6 [08:28: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 57 10 01 00 0E 04 04 00 0E 02 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:28:41]wFMCommunicate OK [08:28:41]SAM_PROTO_GetFieldsCounters done [08:28:41]requested_item shift.num is exist - process it [08:28:41]requested_item shift.opened is exist - process it [08:28:41]req_shift_opened [08:28:41]FM_GetShiftState [08:28:41]SAM_PROTO_GetShiftState [08:28:41]wFMCommunicate request_size=4 [08:28:41]MH_SAM_APDU [08:28:41]CAPDU: 80 13 01 00 [08:28:41]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [08:28:41]Write i2c OK [08:28:41]MH_I2C_Read... [08:28:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:41]Read from MH i2c: E2 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: E2 0E 00 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 C3 [08:28:41]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:28:41]wFMCommunicate OK [08:28:41]SAM_PROTO_GetShiftState done [08:28:41]FM_GetShiftState done [08:28:41]req_shift_opened done [08:28:41]requested_item shift.open_date is exist - process it [08:28:41]req_shift_open_date [08:28:41]req_shift_open_date done [08:28:41]produce_requested_data done [08:28:41]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69719,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [08:28:41]process_action_free close_receipt [08:28:41]json_value_free [08:28:41]json_value_free done [08:28:41]process_json_proto returns [08:28:41]Send response to host [08:28:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69719,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [08:28:41]free response buf [08:28:41]execute_script done [08:28:41]execute_script returns [08:28:41]free content buf [08:28:41]Sock 7.Close socket [08:28:41]Sock 7.Thread stoped [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]accept exits with 9 [08:30:15]New connection [08:30:15]New thread 3066629476 created [08:30:15]Thread 3066486116 joined [08:30:15]Waiting for new connection... [08:30:15] Sock 9.Parse request [08:30:15]Sock 9.Check first char [08:30:15]Sock 9.First char is OK [08:30:15]request: POST /json_proto HTTP/1.0 [08:30:15]Method: POST [08:30:15]URL: /json_proto [08:30:15]Method is POST - this is cgi request [08:30:15]url: /json_proto [08:30:15]query_string will be loaded in cgi processing [08:30:15]execute_cgi json_proto POST (null) [08:30:15]execute_cgi path=json_proto method=POST [08:30:15]POST find Content-Length [08:30:15]Host: 172.17.52.196:8080 [08:30:15]Content-Length: 621 [08:30:15]Content-Type: application/json [08:30:15] [08:30:15]POST finish read [08:30:15]Found Content-Length = 621 [08:30:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127126", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:15]execute_script... [08:30:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127126", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:15]POST & json_proto [08:30:15]process_json_proto [08:30:15]json parsed OK: [08:30:15]protocol is kg_v1.0 [08:30:15]action value=close_receipt [08:30:15]process_action close_receipt [08:30:15]cmd_close_receipt [08:30:15]MH_GetDate [08:30:15]Write to MH i2c: F0 00 00 B5 00 A4 [08:30:15]Write i2c OK [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: F0 [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: F0 09 00 [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: F0 09 00 B5 00 00 98 BF 14 67 60 05 E4 66 2E [08:30:15]GetLastDocTimeStamp 1729412918 [08:30:15]current date 1729413016 [08:30:15]FM_GetShiftState [08:30:15]SAM_PROTO_GetShiftState [08:30:15]wFMCommunicate request_size=4 [08:30:15]MH_SAM_APDU [08:30:15]CAPDU: 80 13 01 00 [08:30:15]Write to MH i2c: E2 08 00 B6 00 80 13 01 00 00 00 00 00 33 [08:30:15]Write i2c OK [08:30:15]MH_I2C_Read... [08:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:15]Read from MH i2c: E2 [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: E2 0E 00 [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: E2 0E 00 B6 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 C5 [08:30:15]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:30:15]wFMCommunicate OK [08:30:15]SAM_PROTO_GetShiftState done [08:30:15]FM_GetShiftState done [08:30:15]opened in 1729384380 [08:30:15]opened+sec_in_day 1729470780 [08:30:15]quantity*price = 14400 [08:30:15]sum+1 = 14401 [08:30:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 10 20.10.2024 08:30 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69720 ФПД: 144490791182216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083016&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69720&fm=144490791182216&tin=02508201610067®Number=0000000000091770&sum=14400 0 [08:30:16]StoreToDocumentArchive [08:30:16]shift 526 fd 69720 [08:30:16]save to /storage/0526/doc_00069720 [08:30:16]save last doc name /storage/0526/doc_00069720 to /storage/kkm_last_doc_name [08:30:16]save OK [08:30:16]Clear old archive folders... [08:30:16]ProcessDocumentItem done err = 0, tmpTLVsize=273 [08:30:16]tlvbuf is 0096FBE0 [08:30:16]SAM_PROTO_ClearQueue [08:30:16]wFMCommunicate request_size=4 [08:30:16]MH_SAM_APDU [08:30:16]CAPDU: 80 09 00 00 [08:30:16]Write to MH i2c: E2 08 00 C3 00 80 09 00 00 00 00 00 00 35 [08:30:16]Write i2c OK [08:30:16]MH_I2C_Read... [08:30:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:16]Read from MH i2c: E2 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 03 00 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [08:30:16]RAPDU: 90 00 [08:30:16]wFMCommunicate OK [08:30:16]SAM_PROTO_ClearQueue done [08:30:16]KKMCreateOFDPacket [08:30:16]OFDProtocolAddRootSTLVToBuf [08:30:16]FM_MakeSignedData [08:30:16]FM_MakeSignedData [08:30:16]SAM_PROTO_SignData [08:30:16]wFMCommunicate request_size=4 [08:30:16]MH_SAM_APDU [08:30:16]CAPDU: 80 0D 01 02 [08:30:16]Write to MH i2c: E2 08 00 C4 00 80 0D 01 02 00 00 00 00 3D [08:30:16]Write i2c OK [08:30:16]MH_I2C_Read... [08:30:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:16]Read from MH i2c: E2 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 03 00 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [08:30:16]RAPDU: 90 00 [08:30:16]wFMCommunicate OK [08:30:16]wFMCommunicate request_size=255 [08:30:16]MH_SAM_APDU [08:30:16]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 98 BF 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [08:30:16]Write to MH i2c: E2 02 01 C5 00 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 98 BF 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 92 [08:30:16]Write i2c OK [08:30:16]MH_I2C_Read... [08:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:16]Read from MH i2c: E2 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 03 00 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [08:30:16]RAPDU: 90 00 [08:30:16]wFMCommunicate OK [08:30:16]wFMCommunicate request_size=32 [08:30:16]MH_SAM_APDU [08:30:16]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 58 10 01 00 35 04 06 00 83 69 E2 48 1F 88 [08:30:16]Write to MH i2c: E2 23 00 C6 00 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 58 10 01 00 35 04 06 00 83 69 E2 48 1F 88 00 00 C7 [08:30:16]Write i2c OK [08:30:16]MH_I2C_Read... [08:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:16]Read from MH i2c: E2 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 03 00 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [08:30:16]RAPDU: 90 00 [08:30:16]wFMCommunicate OK [08:30:16]wFMCommunicate request_size=4 [08:30:16]MH_SAM_APDU [08:30:16]CAPDU: 80 0D 03 02 [08:30:16]Write to MH i2c: E2 08 00 C7 00 80 0D 03 02 00 00 00 00 42 [08:30:16]Write i2c OK [08:30:16]MH_I2C_Read... [08:30:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:16]Read from MH i2c: E2 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 0B 00 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 0B 00 C7 00 00 3A B7 60 1A D9 97 BC 40 90 00 1A [08:30:16]RAPDU: 3A B7 60 1A D9 97 BC 40 90 00 [08:30:16]wFMCommunicate OK [08:30:16]SAM_PROTO_SignData done [08:30:16]FM_MakeSignedData done [08:30:16]CreateOFDProtocolMessage [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 C8 00 80 11 00 00 00 00 00 00 42 [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 C8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 99 [08:30:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:30:16]wFMCommunicate OK [08:30:16]CreateOFDProtocolMessage done [08:30:16]OFDSenderStorePacket 69720 [08:30:16]StoreOFDPacket docnum=69720 [08:30:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 29 B0 1D 01 26 A4 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 98 BF 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 58 10 01 00 35 04 06 00 83 69 E2 48 1F 88 3A B7 60 1A D9 97 BC 40 [08:30:16]CheckFolder [08:30:16]dirname=/storage/ofd_packets [08:30:16]CheckFolder done [08:30:16]ProducePacketName [08:30:16]name=ofd_packets/00069720 [08:30:16]NVStorageSaveData ofd_packets/00069720 [08:30:16]File name is /storage/ofd_packets/00069720 [08:30:16]Write 323 bytes [08:30:16]NVStorageSaveData done [08:30:16]OFDSenderStorePacket done [08:30:16]KKMCreateOFDPacket done [08:30:16]NVStorageSaveData kkm_last_timestamp [08:30:16]File name is /storage/kkm_last_timestamp [08:30:16]Write 4 bytes [08:30:16]NVStorageSaveData done [08:30:16]ExternCall_PrintAddStr [08:30:16]wPrintStart [08:30:16]Write to MH i2c: 01 00 00 C9 00 C9 [08:30:16]Write i2c OK [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: 01 [08:30:16]MH_I2C_Read... [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 C9 00 00 00 00 00 00 FF 0F DE [08:30:16]RasterBufferAndPrint [08:30:16]line Счет N : (3)127126 [08:30:16]line ИНН: 02508201610067 [08:30:16]line Контрольно-Кассовый Чек [08:30:16]line ПРОДАЖА [08:30:16]line Товар: 48743570 [08:30:16]line Сигареты Winston XStyle Blue [08:30:16]line 1.000 * 144.00 [08:30:16]line = 144.00 [08:30:16]line НДС 12% НСП 1% [08:30:16]line > о реализуемом товаре [08:30:16]line ИТОГО: 144.00 [08:30:16]line НСП 1% : 1.27 [08:30:16]line НДС 12% : 15.29 [08:30:16]line Наличными: 144.00 [08:30:16]line Безнал.: 0.00 [08:30:16]line Место: АЗС № 163 "Партнер Нефть" [08:30:16]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [08:30:16]line СНО: Общий режим [08:30:16]line Чек 10 20.10.2024 08:30 [08:30:16]line Смена: 526 ФФД: 1.0 [08:30:16]line ЗНМ: 0300000101 [08:30:16]line РНМ: 0000000000091770 [08:30:16]line Версия ККМ: 001 [08:30:16]line ФМ: 0000000000871749 [08:30:16]line ФД: 69720 [08:30:16]line ФПД: 144490791182216 [08:30:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083016&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69720&fm=144490791182216&tin=02508201610067®Number=0000000000091770&sum=14400 [08:30:17]line 0 [08:30:17]OFD Sender: Processing packet 69720 [packets to send 32, broken 31] [08:30:17]ProducePacketName [08:30:17]name=ofd_packets/00069720 [08:30:17]OFD Sender: To server: pG, [08:30:17]CommunicateWithHost lk.salyk.kg:30040 [08:30:17]ConnectInit lk.salyk.kg [08:30:17]written 0, free lines is 4095 [08:30:17]Connected sock=10 [08:30:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 29 B0 1D 01 26 A4 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 98 BF 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 58 10 01 00 35 04 06 00 83 69 E2 48 1F 88 3A B7 60 1A D9 97 BC 40 [08:30:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 8F 42 47 00 01 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 31 37 34 39 10 04 04 00 58 10 01 00 F4 03 04 00 1B 65 14 67 B6 04 01 00 00 BA A3 C6 3C 1A 7E 5F 69 [08:30:17]CommunicateWithHost err = 0 [08:30:17]CheckOFDResponse [08:30:17]1017 (14) - 77093643461234 [08:30:17]1041 (16) - 0000000000871749 [08:30:17]1040 (4) - 69720 [08:30:17]1012 (4) - 20.10.2024 02:04 [08:30:17]1206 (1) - 0 [08:30:17]OFD Sender: Remove packet 69720 [08:30:17]ProducePacketName [08:30:17]name=ofd_packets/00069720 [08:30:17]NVStorageDeleteData [08:30:17]Write to MH i2c: 01 00 00 F1 00 F1 [08:30:17]Write i2c OK [08:30:17]MH_I2C_Read... [08:30:17]Read from MH i2c: 01 [08:30:17]MH_I2C_Read... [08:30:17]Read from MH i2c: 01 07 00 [08:30:17]MH_I2C_Read... [08:30:17]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 DE 0C E2 [08:30:17]RasterBufferAndPrint [08:30:17]line [08:30:17]line [08:30:17]line [08:30:17]line [08:30:17]line [08:30:17]written 0, free lines is 3300 [08:30:17]MH_Cut [08:30:17]Write to MH i2c: D1 01 00 F8 00 01 CA [08:30:17]Write i2c OK [08:30:17]MH_I2C_Read... [08:30:17]Read from MH i2c: D1 [08:30:17]MH_I2C_Read... [08:30:17]Read from MH i2c: D1 01 00 [08:30:17]MH_I2C_Read... [08:30:17]Read from MH i2c: D1 01 00 F8 00 00 C9 [08:30:17]Write to MH i2c: 01 00 00 F9 00 F9 [08:30:17]Write i2c OK [08:30:17]MH_I2C_Read... [08:30:17]OFD Sender: No OFD packet to send [08:30:18]*** Cut start [08:30:18]*** Partial cut [08:30:18]*** CUTSNS_PIN = 1 [08:30:18]*** CUTSNS_PIN = 0 [08:30:18]*** Brake cut motor [08:30:19]Read from MH i2c: 01 [08:30:19]MH_I2C_Read... [08:30:19]*** Stop cut motor [08:30:19]*** Cut end [08:30:19]Read from MH i2c: 01 07 00 [08:30:19]MH_I2C_Read... [08:30:19]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [08:30:19]process_action close_receipt done [08:30:19]requested_data is exist [08:30:19]produce_requested_data [08:30:19]requested_item fm.sn is exist - process it [08:30:19]wFMCommunicate request_size=4 [08:30:19]MH_SAM_APDU [08:30:19]CAPDU: 80 11 00 00 [08:30:19]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [08:30:19]Write i2c OK [08:30:19]MH_I2C_Read... [08:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:19]Read from MH i2c: E2 [08:30:19]MH_I2C_Read... [08:30:19]Read from MH i2c: E2 17 00 [08:30:19]MH_I2C_Read... [08:30:19]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 CB [08:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:30:19]wFMCommunicate OK [08:30:19]requested_item fd.num is exist - process it [08:30:19]SAM_PROTO_GetFieldsCounters [08:30:19]wFMCommunicate request_size=4 [08:30:19]MH_SAM_APDU [08:30:19]CAPDU: 80 13 00 00 [08:30:19]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [08:30:19]Write i2c OK [08:30:19]MH_I2C_Read... [08:30:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:19]Read from MH i2c: E2 [08:30:19]MH_I2C_Read... [08:30:19]Read from MH i2c: E2 62 00 [08:30:19]MH_I2C_Read... [08:30:19]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 58 10 01 00 0E 04 04 00 0E 02 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 32 [08:30: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 58 10 01 00 0E 04 04 00 0E 02 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:19]wFMCommunicate OK [08:30:19]SAM_PROTO_GetFieldsCounters done [08:30:19]requested_item shift.num is exist - process it [08:30:19]requested_item shift.opened is exist - process it [08:30:19]req_shift_opened [08:30:19]FM_GetShiftState [08:30:19]SAM_PROTO_GetShiftState [08:30:19]wFMCommunicate request_size=4 [08:30:19]MH_SAM_APDU [08:30:19]CAPDU: 80 13 01 00 [08:30:19]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [08:30:19]Write i2c OK [08:30:19]MH_I2C_Read... [08:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:19]Read from MH i2c: E2 [08:30:19]MH_I2C_Read... [08:30:19]Read from MH i2c: E2 0E 00 [08:30:19]MH_I2C_Read... [08:30:19]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 0B [08:30:19]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:30:19]wFMCommunicate OK [08:30:19]SAM_PROTO_GetShiftState done [08:30:19]FM_GetShiftState done [08:30:19]req_shift_opened done [08:30:19]requested_item shift.open_date is exist - process it [08:30:19]req_shift_open_date [08:30:19]req_shift_open_date done [08:30:19]produce_requested_data done [08:30:19]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69720,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [08:30:19]process_action_free close_receipt [08:30:19]json_value_free [08:30:19]json_value_free done [08:30:19]process_json_proto returns [08:30:19]Send response to host [08:30:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69720,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [08:30:19]free response buf [08:30:19]execute_script done [08:30:19]execute_script returns [08:30:19]free content buf [08:30:19]Sock 9.Close socket [08:30:19]Sock 9.Thread stoped [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:32]accept exits with 7 [08:39:32]New connection [08:39:32]New thread 3066486116 created [08:39:32]Thread 3066629476 joined [08:39:32]Waiting for new connection... [08:39:32] Sock 7.Parse request [08:39:32]Sock 7.Check first char [08:39:32]Sock 7.First char is OK [08:39:32]request: POST /json_proto HTTP/1.0 [08:39:32]Method: POST [08:39:32]URL: /json_proto [08:39:32]Method is POST - this is cgi request [08:39:32]url: /json_proto [08:39:32]query_string will be loaded in cgi processing [08:39:32]execute_cgi json_proto POST (null) [08:39:32]execute_cgi path=json_proto method=POST [08:39:32]POST find Content-Length [08:39:32]Host: 172.17.52.196:8080 [08:39:32]Content-Length: 622 [08:39:32]Content-Type: application/json [08:39:32] [08:39:32]POST finish read [08:39:32]Found Content-Length = 622 [08:39:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127127", "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" ] } } [08:39:32]execute_script... [08:39:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127127", "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" ] } } [08:39:32]POST & json_proto [08:39:32]process_json_proto [08:39:32]json parsed OK: [08:39:32]protocol is kg_v1.0 [08:39:32]action value=close_receipt [08:39:32]process_action close_receipt [08:39:32]cmd_close_receipt [08:39:32]MH_GetDate [08:39:32]Write to MH i2c: F0 00 00 FD 00 EC [08:39:32]Write i2c OK [08:39:32]MH_I2C_Read... [08:39:32]Read from MH i2c: F0 [08:39:32]MH_I2C_Read... [08:39:32]Read from MH i2c: F0 09 00 [08:39:32]MH_I2C_Read... [08:39:32]Read from MH i2c: F0 09 00 FD 00 00 C5 C1 14 67 60 05 E4 66 A5 [08:39:32]GetLastDocTimeStamp 1729413016 [08:39:32]current date 1729413573 [08:39:32]FM_GetShiftState [08:39:32]SAM_PROTO_GetShiftState [08:39:32]wFMCommunicate request_size=4 [08:39:32]MH_SAM_APDU [08:39:32]CAPDU: 80 13 01 00 [08:39:32]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [08:39:32]Write i2c OK [08:39:32]MH_I2C_Read... [08:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:32]Read from MH i2c: E2 [08:39:32]MH_I2C_Read... [08:39:32]Read from MH i2c: E2 0E 00 [08:39:32]MH_I2C_Read... [08:39:32]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 0D [08:39:32]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:39:32]wFMCommunicate OK [08:39:32]SAM_PROTO_GetShiftState done [08:39:32]FM_GetShiftState done [08:39:32]opened in 1729384380 [08:39:32]opened+sec_in_day 1729470780 [08:39:32]quantity*price = 15000 [08:39:32]sum+1 = 15001 [08:39:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 11 20.10.2024 08:39 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69721 ФПД: 47621467582690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083933&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69721&fm=47621467582690&tin=02508201610067®Number=0000000000091770&sum=15000 0 [08:39:33]StoreToDocumentArchive [08:39:33]shift 526 fd 69721 [08:39:33]save to /storage/0526/doc_00069721 [08:39:33]save last doc name /storage/0526/doc_00069721 to /storage/kkm_last_doc_name [08:39:33]save OK [08:39:33]Clear old archive folders... [08:39:33]ProcessDocumentItem done err = 0, tmpTLVsize=274 [08:39:33]tlvbuf is 00974A10 [08:39:33]SAM_PROTO_ClearQueue [08:39:33]wFMCommunicate request_size=4 [08:39:33]MH_SAM_APDU [08:39:33]CAPDU: 80 09 00 00 [08:39:33]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [08:39:33]Write i2c OK [08:39:33]MH_I2C_Read... [08:39:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:39:33]Read from MH i2c: E2 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 03 00 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [08:39:33]RAPDU: 90 00 [08:39:33]wFMCommunicate OK [08:39:33]SAM_PROTO_ClearQueue done [08:39:33]KKMCreateOFDPacket [08:39:33]OFDProtocolAddRootSTLVToBuf [08:39:33]FM_MakeSignedData [08:39:33]FM_MakeSignedData [08:39:33]SAM_PROTO_SignData [08:39:33]wFMCommunicate request_size=4 [08:39:33]MH_SAM_APDU [08:39:33]CAPDU: 80 0D 01 02 [08:39:33]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [08:39:33]Write i2c OK [08:39:33]MH_I2C_Read... [08:39:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:39:33]Read from MH i2c: E2 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 03 00 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [08:39:33]RAPDU: 90 00 [08:39:33]wFMCommunicate OK [08:39:33]wFMCommunicate request_size=255 [08:39:33]MH_SAM_APDU [08:39:33]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 0B 00 00 00 F4 03 04 00 C5 C1 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 [08:39:33]Write to MH i2c: E2 02 01 0D 01 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 0B 00 00 00 F4 03 04 00 C5 C1 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 00 00 3E [08:39:33]Write i2c OK [08:39:33]MH_I2C_Read... [08:39:33]OFD Sender: No OFD packet to send [08:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:33]Read from MH i2c: E2 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 03 00 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [08:39:33]RAPDU: 90 00 [08:39:33]wFMCommunicate OK [08:39:33]wFMCommunicate request_size=33 [08:39:33]MH_SAM_APDU [08:39:33]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 37 34 39 10 04 04 00 59 10 01 00 35 04 06 00 2B 4F BC A8 B0 E2 [08:39:33]Write to MH i2c: E2 24 00 0E 01 80 0D 02 02 1C 00 30 30 30 30 38 37 31 37 34 39 10 04 04 00 59 10 01 00 35 04 06 00 2B 4F BC A8 B0 E2 00 00 F6 [08:39:33]Write i2c OK [08:39:33]MH_I2C_Read... [08:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:33]Read from MH i2c: E2 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 03 00 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [08:39:33]RAPDU: 90 00 [08:39:33]wFMCommunicate OK [08:39:33]wFMCommunicate request_size=4 [08:39:33]MH_SAM_APDU [08:39:33]CAPDU: 80 0D 03 02 [08:39:33]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [08:39:33]Write i2c OK [08:39:33]MH_I2C_Read... [08:39:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:39:33]Read from MH i2c: E2 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 0B 00 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 0B 00 0F 01 00 EE 9F 2E 19 AD 99 3D A5 90 00 88 [08:39:33]RAPDU: EE 9F 2E 19 AD 99 3D A5 90 00 [08:39:33]wFMCommunicate OK [08:39:33]SAM_PROTO_SignData done [08:39:33]FM_MakeSignedData done [08:39:33]CreateOFDProtocolMessage [08:39:33]wFMCommunicate request_size=4 [08:39:33]MH_SAM_APDU [08:39:33]CAPDU: 80 11 00 00 [08:39:33]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [08:39:33]Write i2c OK [08:39:33]MH_I2C_Read... [08:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:33]Read from MH i2c: E2 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 17 00 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 E2 [08:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:39:33]wFMCommunicate OK [08:39:33]CreateOFDProtocolMessage done [08:39:33]OFDSenderStorePacket 69721 [08:39:33]StoreOFDPacket docnum=69721 [08:39:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 58 86 1E 01 4A 9E 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 0B 00 00 00 F4 03 04 00 C5 C1 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 59 10 01 00 35 04 06 00 2B 4F BC A8 B0 E2 EE 9F 2E 19 AD 99 3D A5 [08:39:33]CheckFolder [08:39:33]dirname=/storage/ofd_packets [08:39:33]CheckFolder done [08:39:33]ProducePacketName [08:39:33]name=ofd_packets/00069721 [08:39:33]NVStorageSaveData ofd_packets/00069721 [08:39:33]File name is /storage/ofd_packets/00069721 [08:39:33]Write 324 bytes [08:39:33]NVStorageSaveData done [08:39:33]OFDSenderStorePacket done [08:39:33]KKMCreateOFDPacket done [08:39:33]NVStorageSaveData kkm_last_timestamp [08:39:33]File name is /storage/kkm_last_timestamp [08:39:33]Write 4 bytes [08:39:33]NVStorageSaveData done [08:39:33]ExternCall_PrintAddStr [08:39:33]wPrintStart [08:39:33]Write to MH i2c: 01 00 00 11 01 12 [08:39:33]Write i2c OK [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: 01 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: 01 07 00 [08:39:33]MH_I2C_Read... [08:39:33]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [08:39:33]RasterBufferAndPrint [08:39:33]line Счет N : (3)127127 [08:39:33]line ИНН: 02508201610067 [08:39:33]line Контрольно-Кассовый Чек [08:39:33]line ПРОДАЖА [08:39:33]line Товар: 4640030091645 [08:39:33]line Сигареты ESSE Exchange M [08:39:33]line 1.000 * 150.00 [08:39:33]line = 150.00 [08:39:33]line НДС 12% НСП 1% [08:39:33]line > о реализуемом товаре [08:39:33]line ИТОГО: 150.00 [08:39:33]line НСП 1% : 1.33 [08:39:33]line НДС 12% : 15.93 [08:39:33]line Наличными: 150.00 [08:39:33]line Безнал.: 0.00 [08:39:33]line Место: АЗС № 163 "Партнер Нефть" [08:39:33]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [08:39:33]line СНО: Общий режим [08:39:33]line Чек 11 20.10.2024 08:39 [08:39:33]line Смена: 526 ФФД: 1.0 [08:39:33]line ЗНМ: 0300000101 [08:39:33]line РНМ: 0000000000091770 [08:39:33]line Версия ККМ: 001 [08:39:33]line ФМ: 0000000000871749 [08:39:33]line ФД: 69721 [08:39:33]line ФПД: 47621467582690 [08:39:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T083933&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69721&fm=47621467582690&tin=02508201610067®Number=0000000000091770&sum=15000 [08:39:34]line 0 [08:39:34]OFD Sender: Processing packet 69721 [packets to send 32, broken 31] [08:39:34]ProducePacketName [08:39:34]name=ofd_packets/00069721 [08:39:34]OFD Sender: To server: pG, [08:39:34]CommunicateWithHost lk.salyk.kg:30040 [08:39:34]ConnectInit lk.salyk.kg [08:39:34]written 0, free lines is 4095 [08:39:34]Connected sock=10 [08:39:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 58 86 1E 01 4A 9E 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 0B 00 00 00 F4 03 04 00 C5 C1 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 59 10 01 00 35 04 06 00 2B 4F BC A8 B0 E2 EE 9F 2E 19 AD 99 3D A5 [08:39:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 28 92 47 00 1D 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 31 37 34 39 10 04 04 00 59 10 01 00 F4 03 04 00 48 67 14 67 B6 04 01 00 00 11 15 30 76 5E BE 28 14 [08:39:34]CommunicateWithHost err = 0 [08:39:34]CheckOFDResponse [08:39:34]1017 (14) - 77093643461234 [08:39:34]1041 (16) - 0000000000871749 [08:39:34]1040 (4) - 69721 [08:39:34]1012 (4) - 20.10.2024 02:13 [08:39:34]1206 (1) - 0 [08:39:34]OFD Sender: Remove packet 69721 [08:39:34]ProducePacketName [08:39:34]name=ofd_packets/00069721 [08:39:34]NVStorageDeleteData [08:39:34]Write to MH i2c: 01 00 00 39 01 3A [08:39:34]Write i2c OK [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: 01 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: 01 07 00 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 F7 0C 44 [08:39:34]RasterBufferAndPrint [08:39:34]line [08:39:34]line [08:39:34]line [08:39:34]line [08:39:34]line [08:39:34]written 0, free lines is 3323 [08:39:34]MH_Cut [08:39:34]Write to MH i2c: D1 01 00 40 01 01 13 [08:39:34]Write i2c OK [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: D1 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: D1 01 00 [08:39:34]MH_I2C_Read... [08:39:34]Read from MH i2c: D1 01 00 40 01 00 12 [08:39:34]Write to MH i2c: 01 00 00 41 01 42 [08:39:34]Write i2c OK [08:39:34]MH_I2C_Read... [08:39:34]OFD Sender: No OFD packet to send [08:39:35]*** Cut start [08:39:35]*** Partial cut [08:39:35]*** CUTSNS_PIN = 1 [08:39:35]*** CUTSNS_PIN = 0 [08:39:35]*** Brake cut motor [08:39:36]Read from MH i2c: 01 [08:39:36]MH_I2C_Read... [08:39:36]*** Stop cut motor [08:39:36]*** Cut end [08:39:36]Read from MH i2c: 01 07 00 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [08:39:36]process_action close_receipt done [08:39:36]requested_data is exist [08:39:36]produce_requested_data [08:39:36]requested_item fm.sn is exist - process it [08:39:36]wFMCommunicate request_size=4 [08:39:36]MH_SAM_APDU [08:39:36]CAPDU: 80 11 00 00 [08:39:36]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [08:39:36]Write i2c OK [08:39:36]MH_I2C_Read... [08:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:36]Read from MH i2c: E2 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E2 17 00 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 14 [08:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:39:36]wFMCommunicate OK [08:39:36]requested_item fd.num is exist - process it [08:39:36]SAM_PROTO_GetFieldsCounters [08:39:36]wFMCommunicate request_size=4 [08:39:36]MH_SAM_APDU [08:39:36]CAPDU: 80 13 00 00 [08:39:36]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [08:39:36]Write i2c OK [08:39:36]MH_I2C_Read... [08:39:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:36]Read from MH i2c: E2 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E2 62 00 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E2 62 00 43 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 59 10 01 00 0E 04 04 00 0E 02 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 7F [08:39:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 59 10 01 00 0E 04 04 00 0E 02 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:39:36]wFMCommunicate OK [08:39:36]SAM_PROTO_GetFieldsCounters done [08:39:36]requested_item shift.num is exist - process it [08:39:36]requested_item shift.opened is exist - process it [08:39:36]req_shift_opened [08:39:36]FM_GetShiftState [08:39:36]SAM_PROTO_GetShiftState [08:39:36]wFMCommunicate request_size=4 [08:39:36]MH_SAM_APDU [08:39:36]CAPDU: 80 13 01 00 [08:39:36]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [08:39:36]Write i2c OK [08:39:36]MH_I2C_Read... [08:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:36]Read from MH i2c: E2 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E2 0E 00 [08:39:36]MH_I2C_Read... [08:39:36]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 54 [08:39:36]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:39:36]wFMCommunicate OK [08:39:36]SAM_PROTO_GetShiftState done [08:39:36]FM_GetShiftState done [08:39:36]req_shift_opened done [08:39:36]requested_item shift.open_date is exist - process it [08:39:36]req_shift_open_date [08:39:36]req_shift_open_date done [08:39:36]produce_requested_data done [08:39:36]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69721,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [08:39:36]process_action_free close_receipt [08:39:36]json_value_free [08:39:36]json_value_free done [08:39:36]process_json_proto returns [08:39:36]Send response to host [08:39:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69721,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [08:39:36]free response buf [08:39:36]execute_script done [08:39:36]execute_script returns [08:39:36]free content buf [08:39:36]Sock 7.Close socket [08:39:36]Sock 7.Thread stoped [08:39:39]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:18]accept exits with 9 [08:40:18]New connection [08:40:18]New thread 3066629476 created [08:40:18]Thread 3066486116 joined [08:40:18]Waiting for new connection... [08:40:18] Sock 9.Parse request [08:40:18]Sock 9.Check first char [08:40:18]Sock 9.First char is OK [08:40:18]request: POST /json_proto HTTP/1.0 [08:40:18]Method: POST [08:40:18]URL: /json_proto [08:40:18]Method is POST - this is cgi request [08:40:18]url: /json_proto [08:40:18]query_string will be loaded in cgi processing [08:40:18]execute_cgi json_proto POST (null) [08:40:18]execute_cgi path=json_proto method=POST [08:40:18]POST find Content-Length [08:40:18]Host: 172.17.52.196:8080 [08:40:18]Content-Length: 646 [08:40:18]Content-Type: application/json [08:40:18] [08:40:18]POST finish read [08:40:18]Found Content-Length = 646 [08:40:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127128", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:18]execute_script... [08:40:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127128", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:18]POST & json_proto [08:40:18]process_json_proto [08:40:18]json parsed OK: [08:40:18]protocol is kg_v1.0 [08:40:18]action value=close_receipt [08:40:18]process_action close_receipt [08:40:18]cmd_close_receipt [08:40:18]MH_GetDate [08:40:18]Write to MH i2c: F0 00 00 45 01 35 [08:40:18]Write i2c OK [08:40:18]MH_I2C_Read... [08:40:18]Read from MH i2c: F0 [08:40:18]MH_I2C_Read... [08:40:18]Read from MH i2c: F0 09 00 [08:40:18]MH_I2C_Read... [08:40:18]Read from MH i2c: F0 09 00 45 01 00 F3 C1 14 67 60 05 E4 66 1C [08:40:18]GetLastDocTimeStamp 1729413573 [08:40:18]current date 1729413619 [08:40:18]FM_GetShiftState [08:40:18]SAM_PROTO_GetShiftState [08:40:18]wFMCommunicate request_size=4 [08:40:18]MH_SAM_APDU [08:40:18]CAPDU: 80 13 01 00 [08:40:18]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [08:40:18]Write i2c OK [08:40:18]MH_I2C_Read... [08:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:18]Read from MH i2c: E2 [08:40:18]MH_I2C_Read... [08:40:18]Read from MH i2c: E2 0E 00 [08:40:18]MH_I2C_Read... [08:40:18]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 56 [08:40:18]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:40:18]wFMCommunicate OK [08:40:18]SAM_PROTO_GetShiftState done [08:40:18]FM_GetShiftState done [08:40:18]opened in 1729384380 [08:40:18]opened+sec_in_day 1729470780 [08:40:18]quantity*price = 26000 [08:40:18]sum+1 = 26001 [08:40:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 12 20.10.2024 08:40 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69722 ФПД: 45889957990571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084019&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69722&fm=45889957990571&tin=02508201610067®Number=0000000000091770&sum=26000 0 [08:40:19]StoreToDocumentArchive [08:40:19]shift 526 fd 69722 [08:40:19]save to /storage/0526/doc_00069722 [08:40:19]save last doc name /storage/0526/doc_00069722 to /storage/kkm_last_doc_name [08:40:19]save OK [08:40:19]Clear old archive folders... [08:40:19]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:40:19]tlvbuf is 00978190 [08:40:19]SAM_PROTO_ClearQueue [08:40:19]wFMCommunicate request_size=4 [08:40:19]MH_SAM_APDU [08:40:19]CAPDU: 80 09 00 00 [08:40:19]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [08:40:19]Write i2c OK [08:40:19]MH_I2C_Read... [08:40:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:19]Read from MH i2c: E2 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 03 00 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [08:40:19]RAPDU: 90 00 [08:40:19]wFMCommunicate OK [08:40:19]SAM_PROTO_ClearQueue done [08:40:19]KKMCreateOFDPacket [08:40:19]OFDProtocolAddRootSTLVToBuf [08:40:19]FM_MakeSignedData [08:40:19]FM_MakeSignedData [08:40:19]SAM_PROTO_SignData [08:40:19]wFMCommunicate request_size=4 [08:40:19]MH_SAM_APDU [08:40:19]CAPDU: 80 0D 01 02 [08:40:19]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [08:40:19]Write i2c OK [08:40:19]MH_I2C_Read... [08:40:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:19]Read from MH i2c: E2 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 03 00 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [08:40:19]RAPDU: 90 00 [08:40:19]wFMCommunicate OK [08:40:19]wFMCommunicate request_size=255 [08:40:19]MH_SAM_APDU [08:40:19]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F3 C1 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 [08:40:19]Write to MH i2c: E2 02 01 55 01 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F3 C1 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 00 00 E1 [08:40:19]Write i2c OK [08:40:19]MH_I2C_Read... [08:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:19]Read from MH i2c: E2 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 03 00 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [08:40:19]RAPDU: 90 00 [08:40:19]wFMCommunicate OK [08:40:19]wFMCommunicate request_size=41 [08:40:19]MH_SAM_APDU [08:40:19]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5A 10 01 00 35 04 06 00 29 BC 96 A5 10 AB [08:40:19]Write to MH i2c: E2 2C 00 56 01 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5A 10 01 00 35 04 06 00 29 BC 96 A5 10 AB 00 00 EA [08:40:19]Write i2c OK [08:40:19]MH_I2C_Read... [08:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:19]Read from MH i2c: E2 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 03 00 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [08:40:19]RAPDU: 90 00 [08:40:19]wFMCommunicate OK [08:40:19]wFMCommunicate request_size=4 [08:40:19]MH_SAM_APDU [08:40:19]CAPDU: 80 0D 03 02 [08:40:19]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [08:40:19]Write i2c OK [08:40:19]MH_I2C_Read... [08:40:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:19]Read from MH i2c: E2 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 0B 00 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 0B 00 57 01 00 BE AA 6B A9 E0 67 EF C7 90 00 4D [08:40:19]RAPDU: BE AA 6B A9 E0 67 EF C7 90 00 [08:40:19]wFMCommunicate OK [08:40:19]SAM_PROTO_SignData done [08:40:19]FM_MakeSignedData done [08:40:19]CreateOFDProtocolMessage [08:40:19]wFMCommunicate request_size=4 [08:40:19]MH_SAM_APDU [08:40:19]CAPDU: 80 11 00 00 [08:40:19]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [08:40:19]Write i2c OK [08:40:19]MH_I2C_Read... [08:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:19]Read from MH i2c: E2 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 17 00 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 2A [08:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:40:19]wFMCommunicate OK [08:40:19]CreateOFDProtocolMessage done [08:40:19]OFDSenderStorePacket 69722 [08:40:19]StoreOFDPacket docnum=69722 [08:40:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2E 01 00 00 C9 7A 26 01 DA 02 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F3 C1 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5A 10 01 00 35 04 06 00 29 BC 96 A5 10 AB BE AA 6B A9 E0 67 EF C7 [08:40:19]CheckFolder [08:40:19]dirname=/storage/ofd_packets [08:40:19]CheckFolder done [08:40:19]ProducePacketName [08:40:19]name=ofd_packets/00069722 [08:40:19]NVStorageSaveData ofd_packets/00069722 [08:40:19]File name is /storage/ofd_packets/00069722 [08:40:19]Write 332 bytes [08:40:19]NVStorageSaveData done [08:40:19]OFDSenderStorePacket done [08:40:19]KKMCreateOFDPacket done [08:40:19]NVStorageSaveData kkm_last_timestamp [08:40:19]File name is /storage/kkm_last_timestamp [08:40:19]Write 4 bytes [08:40:19]NVStorageSaveData done [08:40:19]ExternCall_PrintAddStr [08:40:19]wPrintStart [08:40:19]Write to MH i2c: 01 00 00 59 01 5A [08:40:19]Write i2c OK [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: 01 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: 01 07 00 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [08:40:19]RasterBufferAndPrint [08:40:19]line Счет N : (3)127128 [08:40:19]line ИНН: 02508201610067 [08:40:19]line Контрольно-Кассовый Чек [08:40:19]line ПРОДАЖА [08:40:19]line Товар: 2000036220012 [08:40:19]line Кофе Капучино XL(GABB TRADE) [08:40:19]line 2.000 * 130.00 [08:40:19]line = 260.00 [08:40:19]line НДС 12% НСП 1% [08:40:19]line > о реализуемом товаре [08:40:19]line ИТОГО: 260.00 [08:40:19]line НСП 1% : 2.30 [08:40:19]line НДС 12% : 27.61 [08:40:19]line Наличными: 260.00 [08:40:19]line Безнал.: 0.00 [08:40:19]line Место: АЗС № 163 "Партнер Нефть" [08:40:19]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [08:40:19]line СНО: Общий режим [08:40:19]line Чек 12 20.10.2024 08:40 [08:40:19]line Смена: 526 ФФД: 1.0 [08:40:19]line ЗНМ: 0300000101 [08:40:19]line РНМ: 0000000000091770 [08:40:19]line Версия ККМ: 001 [08:40:19]line ФМ: 0000000000871749 [08:40:19]line ФД: 69722 [08:40:19]line ФПД: 45889957990571 [08:40:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084019&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69722&fm=45889957990571&tin=02508201610067®Number=0000000000091770&sum=26000 [08:40:20]line 0 [08:40:20]OFD Sender: Processing packet 69722 [packets to send 32, broken 31] [08:40:20]ProducePacketName [08:40:20]name=ofd_packets/00069722 [08:40:20]OFD Sender: To server: pG, [08:40:20]CommunicateWithHost lk.salyk.kg:30040 [08:40:20]ConnectInit lk.salyk.kg [08:40:20]written 0, free lines is 4095 [08:40:20]Connected sock=10 [08:40:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2E 01 00 00 C9 7A 26 01 DA 02 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F3 C1 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5A 10 01 00 35 04 06 00 29 BC 96 A5 10 AB BE AA 6B A9 E0 67 EF C7 [08:40:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 83 3C 47 00 96 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5A 10 01 00 F4 03 04 00 76 67 14 67 B6 04 01 00 00 99 16 5C E0 F9 F1 C1 D0 [08:40:20]CommunicateWithHost err = 0 [08:40:20]CheckOFDResponse [08:40:20]1017 (14) - 77093643461234 [08:40:20]1041 (16) - 0000000000871749 [08:40:20]1040 (4) - 69722 [08:40:20]1012 (4) - 20.10.2024 02:14 [08:40:20]1206 (1) - 0 [08:40:20]OFD Sender: Remove packet 69722 [08:40:20]ProducePacketName [08:40:20]name=ofd_packets/00069722 [08:40:20]NVStorageDeleteData [08:40:20]Write to MH i2c: 01 00 00 82 01 83 [08:40:20]Write i2c OK [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: 01 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: 01 07 00 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 ED 0C 83 [08:40:20]RasterBufferAndPrint [08:40:20]line [08:40:20]line [08:40:20]line [08:40:20]line [08:40:20]line [08:40:20]written 0, free lines is 3315 [08:40:20]MH_Cut [08:40:20]Write to MH i2c: D1 01 00 89 01 01 5C [08:40:20]Write i2c OK [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: D1 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: D1 01 00 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: D1 01 00 89 01 00 5B [08:40:20]Write to MH i2c: 01 00 00 8A 01 8B [08:40:20]Write i2c OK [08:40:20]MH_I2C_Read... [08:40:21]OFD Sender: No OFD packet to send [08:40:21]*** Cut start [08:40:21]*** Partial cut [08:40:21]*** CUTSNS_PIN = 1 [08:40:21]*** CUTSNS_PIN = 0 [08:40:21]*** Brake cut motor [08:40:22]Read from MH i2c: 01 [08:40:22]MH_I2C_Read... [08:40:22]*** Stop cut motor [08:40:22]*** Cut end [08:40:22]Read from MH i2c: 01 07 00 [08:40:22]MH_I2C_Read... [08:40:22]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 FF 0F A0 [08:40:22]process_action close_receipt done [08:40:22]requested_data is exist [08:40:22]produce_requested_data [08:40:22]requested_item fm.sn is exist - process it [08:40:22]wFMCommunicate request_size=4 [08:40:22]MH_SAM_APDU [08:40:22]CAPDU: 80 11 00 00 [08:40:22]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [08:40:22]Write i2c OK [08:40:22]MH_I2C_Read... [08:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:22]Read from MH i2c: E2 [08:40:22]MH_I2C_Read... [08:40:22]Read from MH i2c: E2 17 00 [08:40:22]MH_I2C_Read... [08:40:22]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 5D [08:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:40:22]wFMCommunicate OK [08:40:22]requested_item fd.num is exist - process it [08:40:22]SAM_PROTO_GetFieldsCounters [08:40:22]wFMCommunicate request_size=4 [08:40:22]MH_SAM_APDU [08:40:22]CAPDU: 80 13 00 00 [08:40:22]Write to MH i2c: E2 08 00 8C 01 80 13 00 00 00 00 00 00 09 [08:40:22]Write i2c OK [08:40:22]MH_I2C_Read... [08:40:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:22]Read from MH i2c: E2 [08:40:22]MH_I2C_Read... [08:40:22]Read from MH i2c: E2 62 00 [08:40:22]MH_I2C_Read... [08:40:22]Read from MH i2c: E2 62 00 8C 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 5A 10 01 00 0E 04 04 00 0E 02 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 CC [08:40: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 5A 10 01 00 0E 04 04 00 0E 02 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:40:22]wFMCommunicate OK [08:40:22]SAM_PROTO_GetFieldsCounters done [08:40:22]requested_item shift.num is exist - process it [08:40:22]requested_item shift.opened is exist - process it [08:40:22]req_shift_opened [08:40:22]FM_GetShiftState [08:40:22]SAM_PROTO_GetShiftState [08:40:22]wFMCommunicate request_size=4 [08:40:22]MH_SAM_APDU [08:40:22]CAPDU: 80 13 01 00 [08:40:22]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [08:40:22]Write i2c OK [08:40:22]MH_I2C_Read... [08:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:22]Read from MH i2c: E2 [08:40:22]MH_I2C_Read... [08:40:22]Read from MH i2c: E2 0E 00 [08:40:22]MH_I2C_Read... [08:40:22]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 9D [08:40:22]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:40:22]wFMCommunicate OK [08:40:22]SAM_PROTO_GetShiftState done [08:40:22]FM_GetShiftState done [08:40:22]req_shift_opened done [08:40:22]requested_item shift.open_date is exist - process it [08:40:22]req_shift_open_date [08:40:22]req_shift_open_date done [08:40:22]produce_requested_data done [08:40:22]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69722,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [08:40:22]process_action_free close_receipt [08:40:22]json_value_free [08:40:22]json_value_free done [08:40:22]process_json_proto returns [08:40:22]Send response to host [08:40:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69722,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [08:40:22]free response buf [08:40:22]execute_script done [08:40:22]execute_script returns [08:40:22]free content buf [08:40:22]Sock 9.Close socket [08:40:22]Sock 9.Thread stoped [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:08]accept exits with 7 [08:44:08]New connection [08:44:08]New thread 3066486116 created [08:44:08]Thread 3066629476 joined [08:44:08]Waiting for new connection... [08:44:08] Sock 7.Parse request [08:44:08]Sock 7.Check first char [08:44:08]Sock 7.First char is OK [08:44:08]request: POST /json_proto HTTP/1.0 [08:44:08]Method: POST [08:44:08]URL: /json_proto [08:44:08]Method is POST - this is cgi request [08:44:08]url: /json_proto [08:44:08]query_string will be loaded in cgi processing [08:44:08]execute_cgi json_proto POST (null) [08:44:08]execute_cgi path=json_proto method=POST [08:44:08]POST find Content-Length [08:44:08]Host: 172.17.52.196:8080 [08:44:08]Content-Length: 644 [08:44:08]Content-Type: application/json [08:44:08] [08:44:08]POST finish read [08:44:08]Found Content-Length = 644 [08:44:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127129", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:08]execute_script... [08:44:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127129", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:08]POST & json_proto [08:44:08]process_json_proto [08:44:08]json parsed OK: [08:44:08]protocol is kg_v1.0 [08:44:08]action value=close_receipt [08:44:08]process_action close_receipt [08:44:08]cmd_close_receipt [08:44:08]MH_GetDate [08:44:08]Write to MH i2c: F0 00 00 8E 01 7E [08:44:08]Write i2c OK [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: F0 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: F0 09 00 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: F0 09 00 8E 01 00 D9 C2 14 67 60 05 E4 66 4C [08:44:08]GetLastDocTimeStamp 1729413619 [08:44:08]current date 1729413849 [08:44:08]FM_GetShiftState [08:44:08]SAM_PROTO_GetShiftState [08:44:08]wFMCommunicate request_size=4 [08:44:08]MH_SAM_APDU [08:44:08]CAPDU: 80 13 01 00 [08:44:08]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [08:44:08]Write i2c OK [08:44:08]MH_I2C_Read... [08:44:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:08]Read from MH i2c: E2 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: E2 0E 00 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 9F [08:44:08]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:44:08]wFMCommunicate OK [08:44:08]SAM_PROTO_GetShiftState done [08:44:08]FM_GetShiftState done [08:44:08]opened in 1729384380 [08:44:08]opened+sec_in_day 1729470780 [08:44:08]quantity*price = 23000 [08:44:08]sum+1 = 23001 [08:44:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 13 20.10.2024 08:44 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69723 ФПД: 241055977738638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084409&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69723&fm=241055977738638&tin=02508201610067®Number=0000000000091770&sum=23000 0 [08:44:09]StoreToDocumentArchive [08:44:09]shift 526 fd 69723 [08:44:09]save to /storage/0526/doc_00069723 [08:44:09]save last doc name /storage/0526/doc_00069723 to /storage/kkm_last_doc_name [08:44:09]save OK [08:44:09]Clear old archive folders... [08:44:09]ProcessDocumentItem done err = 0, tmpTLVsize=280 [08:44:09]tlvbuf is 00974D80 [08:44:09]SAM_PROTO_ClearQueue [08:44:09]wFMCommunicate request_size=4 [08:44:09]MH_SAM_APDU [08:44:09]CAPDU: 80 09 00 00 [08:44:09]Write to MH i2c: E2 08 00 9C 01 80 09 00 00 00 00 00 00 0F [08:44:09]Write i2c OK [08:44:09]MH_I2C_Read... [08:44:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:09]Read from MH i2c: E2 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 03 00 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [08:44:09]RAPDU: 90 00 [08:44:09]wFMCommunicate OK [08:44:09]SAM_PROTO_ClearQueue done [08:44:09]KKMCreateOFDPacket [08:44:09]OFDProtocolAddRootSTLVToBuf [08:44:09]FM_MakeSignedData [08:44:09]FM_MakeSignedData [08:44:09]SAM_PROTO_SignData [08:44:09]wFMCommunicate request_size=4 [08:44:09]MH_SAM_APDU [08:44:09]CAPDU: 80 0D 01 02 [08:44:09]Write to MH i2c: E2 08 00 9D 01 80 0D 01 02 00 00 00 00 17 [08:44:09]Write i2c OK [08:44:09]MH_I2C_Read... [08:44:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:09]Read from MH i2c: E2 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 03 00 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [08:44:09]RAPDU: 90 00 [08:44:09]wFMCommunicate OK [08:44:09]wFMCommunicate request_size=255 [08:44:09]MH_SAM_APDU [08:44:09]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 D9 C2 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 [08:44:09]Write to MH i2c: E2 02 01 9E 01 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 D9 C2 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 00 00 EF [08:44:09]Write i2c OK [08:44:09]MH_I2C_Read... [08:44:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:09]Read from MH i2c: E2 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 03 00 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [08:44:09]RAPDU: 90 00 [08:44:09]wFMCommunicate OK [08:44:09]wFMCommunicate request_size=39 [08:44:09]MH_SAM_APDU [08:44:09]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5B 10 01 00 35 04 06 00 DB 3D 37 EC 91 8E [08:44:09]Write to MH i2c: E2 2A 00 9F 01 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5B 10 01 00 35 04 06 00 DB 3D 37 EC 91 8E 00 00 9F [08:44:09]Write i2c OK [08:44:09]MH_I2C_Read... [08:44:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:09]Read from MH i2c: E2 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 03 00 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [08:44:09]RAPDU: 90 00 [08:44:09]wFMCommunicate OK [08:44:09]wFMCommunicate request_size=4 [08:44:09]MH_SAM_APDU [08:44:09]CAPDU: 80 0D 03 02 [08:44:09]Write to MH i2c: E2 08 00 A0 01 80 0D 03 02 00 00 00 00 1C [08:44:09]Write i2c OK [08:44:09]MH_I2C_Read... [08:44:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:09]Read from MH i2c: E2 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 0B 00 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 0B 00 A0 01 00 11 3E F8 C6 D9 4E 48 E2 90 00 7B [08:44:09]RAPDU: 11 3E F8 C6 D9 4E 48 E2 90 00 [08:44:09]wFMCommunicate OK [08:44:09]SAM_PROTO_SignData done [08:44:09]FM_MakeSignedData done [08:44:09]CreateOFDProtocolMessage [08:44:09]wFMCommunicate request_size=4 [08:44:09]MH_SAM_APDU [08:44:09]CAPDU: 80 11 00 00 [08:44:09]Write to MH i2c: E2 08 00 A1 01 80 11 00 00 00 00 00 00 1C [08:44:09]Write i2c OK [08:44:09]MH_I2C_Read... [08:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:09]Read from MH i2c: E2 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 17 00 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 17 00 A1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 73 [08:44:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:44:09]wFMCommunicate OK [08:44:09]CreateOFDProtocolMessage done [08:44:09]OFDSenderStorePacket 69723 [08:44:09]StoreOFDPacket docnum=69723 [08:44:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2C 01 00 00 14 BB 24 01 4B B2 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 D9 C2 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5B 10 01 00 35 04 06 00 DB 3D 37 EC 91 8E 11 3E F8 C6 D9 4E 48 E2 [08:44:09]CheckFolder [08:44:09]dirname=/storage/ofd_packets [08:44:09]CheckFolder done [08:44:09]ProducePacketName [08:44:09]name=ofd_packets/00069723 [08:44:09]NVStorageSaveData ofd_packets/00069723 [08:44:09]File name is /storage/ofd_packets/00069723 [08:44:09]Write 330 bytes [08:44:09]NVStorageSaveData done [08:44:09]OFDSenderStorePacket done [08:44:09]KKMCreateOFDPacket done [08:44:09]NVStorageSaveData kkm_last_timestamp [08:44:09]File name is /storage/kkm_last_timestamp [08:44:09]Write 4 bytes [08:44:09]NVStorageSaveData done [08:44:09]ExternCall_PrintAddStr [08:44:09]wPrintStart [08:44:09]Write to MH i2c: 01 00 00 A2 01 A3 [08:44:09]Write i2c OK [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: 01 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: 01 07 00 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: 01 07 00 A2 01 00 00 00 00 00 FF 0F B8 [08:44:09]RasterBufferAndPrint [08:44:09]line Счет N : (3)127129 [08:44:09]line ИНН: 02508201610067 [08:44:09]line Контрольно-Кассовый Чек [08:44:09]line ПРОДАЖА [08:44:09]line Товар: 2000036210013 [08:44:09]line Кофе Капучино (GABB TRADE) [08:44:09]line 2.000 * 115.00 [08:44:09]line = 230.00 [08:44:09]line НДС 12% НСП 1% [08:44:09]line > о реализуемом товаре [08:44:09]line ИТОГО: 230.00 [08:44:09]line НСП 1% : 2.03 [08:44:09]line НДС 12% : 24.42 [08:44:09]line Наличными: 230.00 [08:44:09]line Безнал.: 0.00 [08:44:09]line Место: АЗС № 163 "Партнер Нефть" [08:44:09]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [08:44:09]line СНО: Общий режим [08:44:09]line Чек 13 20.10.2024 08:44 [08:44:09]line Смена: 526 ФФД: 1.0 [08:44:09]line ЗНМ: 0300000101 [08:44:09]line РНМ: 0000000000091770 [08:44:09]line Версия ККМ: 001 [08:44:09]line ФМ: 0000000000871749 [08:44:09]line ФД: 69723 [08:44:09]line ФПД: 241055977738638 [08:44:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084409&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69723&fm=241055977738638&tin=02508201610067®Number=0000000000091770&sum=23000 [08:44:10]line 0 [08:44:10]OFD Sender: Processing packet 69723 [packets to send 32, broken 31] [08:44:10]ProducePacketName [08:44:10]name=ofd_packets/00069723 [08:44:10]OFD Sender: To server: pG, [08:44:10]CommunicateWithHost lk.salyk.kg:30040 [08:44:10]ConnectInit lk.salyk.kg [08:44:10]written 0, free lines is 4095 [08:44:10]Connected sock=10 [08:44:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2C 01 00 00 14 BB 24 01 4B B2 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 D9 C2 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5B 10 01 00 35 04 06 00 DB 3D 37 EC 91 8E 11 3E F8 C6 D9 4E 48 E2 [08:44:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 CC EA 47 00 AE D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5B 10 01 00 F4 03 04 00 5C 68 14 67 B6 04 01 00 00 46 A8 6D 60 70 26 83 1E [08:44:10]CommunicateWithHost err = 0 [08:44:10]CheckOFDResponse [08:44:10]1017 (14) - 77093643461234 [08:44:10]1041 (16) - 0000000000871749 [08:44:10]1040 (4) - 69723 [08:44:10]1012 (4) - 20.10.2024 02:18 [08:44:10]1206 (1) - 0 [08:44:10]OFD Sender: Remove packet 69723 [08:44:10]ProducePacketName [08:44:10]name=ofd_packets/00069723 [08:44:10]NVStorageDeleteData [08:44:10]Write to MH i2c: 01 00 00 CA 01 CB [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 07 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 07 00 CA 01 00 00 00 00 00 06 0D E5 [08:44:10]RasterBufferAndPrint [08:44:10]line [08:44:10]line [08:44:10]line [08:44:10]line [08:44:10]line [08:44:10]written 0, free lines is 3340 [08:44:10]MH_Cut [08:44:10]Write to MH i2c: D1 01 00 D1 01 01 A4 [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: D1 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: D1 01 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: D1 01 00 D1 01 00 A3 [08:44:10]Write to MH i2c: 01 00 00 D2 01 D3 [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]OFD Sender: No OFD packet to send [08:44:11]*** Cut start [08:44:11]*** Partial cut [08:44:11]*** CUTSNS_PIN = 1 [08:44:11]*** CUTSNS_PIN = 0 [08:44:11]*** Brake cut motor [08:44:12]Read from MH i2c: 01 [08:44:12]MH_I2C_Read... [08:44:12]*** Stop cut motor [08:44:12]*** Cut end [08:44:12]Read from MH i2c: 01 07 00 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 FF 0F E8 [08:44:12]process_action close_receipt done [08:44:12]requested_data is exist [08:44:12]produce_requested_data [08:44:12]requested_item fm.sn is exist - process it [08:44:12]wFMCommunicate request_size=4 [08:44:12]MH_SAM_APDU [08:44:12]CAPDU: 80 11 00 00 [08:44:12]Write to MH i2c: E2 08 00 D3 01 80 11 00 00 00 00 00 00 4E [08:44:12]Write i2c OK [08:44:12]MH_I2C_Read... [08:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:12]Read from MH i2c: E2 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 17 00 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 17 00 D3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 A5 [08:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:44:12]wFMCommunicate OK [08:44:12]requested_item fd.num is exist - process it [08:44:12]SAM_PROTO_GetFieldsCounters [08:44:12]wFMCommunicate request_size=4 [08:44:12]MH_SAM_APDU [08:44:12]CAPDU: 80 13 00 00 [08:44:12]Write to MH i2c: E2 08 00 D4 01 80 13 00 00 00 00 00 00 51 [08:44:12]Write i2c OK [08:44:12]MH_I2C_Read... [08:44:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:12]Read from MH i2c: E2 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 62 00 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 62 00 D4 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 5B 10 01 00 0E 04 04 00 0E 02 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 18 [08:44:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 5B 10 01 00 0E 04 04 00 0E 02 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:44:12]wFMCommunicate OK [08:44:12]SAM_PROTO_GetFieldsCounters done [08:44:12]requested_item shift.num is exist - process it [08:44:12]requested_item shift.opened is exist - process it [08:44:12]req_shift_opened [08:44:12]FM_GetShiftState [08:44:12]SAM_PROTO_GetShiftState [08:44:12]wFMCommunicate request_size=4 [08:44:12]MH_SAM_APDU [08:44:12]CAPDU: 80 13 01 00 [08:44:12]Write to MH i2c: E2 08 00 D5 01 80 13 01 00 00 00 00 00 53 [08:44:12]Write i2c OK [08:44:12]MH_I2C_Read... [08:44:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:12]Read from MH i2c: E2 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 0E 00 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 0E 00 D5 01 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 E5 [08:44:12]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:44:12]wFMCommunicate OK [08:44:12]SAM_PROTO_GetShiftState done [08:44:12]FM_GetShiftState done [08:44:12]req_shift_opened done [08:44:12]requested_item shift.open_date is exist - process it [08:44:12]req_shift_open_date [08:44:12]req_shift_open_date done [08:44:12]produce_requested_data done [08:44:12]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69723,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [08:44:12]process_action_free close_receipt [08:44:12]json_value_free [08:44:12]json_value_free done [08:44:12]process_json_proto returns [08:44:12]Send response to host [08:44:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69723,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [08:44:12]free response buf [08:44:12]execute_script done [08:44:12]execute_script returns [08:44:12]free content buf [08:44:12]Sock 7.Close socket [08:44:12]Sock 7.Thread stoped [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]accept exits with 9 [08:44:25]New connection [08:44:25]New thread 3066629476 created [08:44:25]Thread 3066486116 joined [08:44:25]Waiting for new connection... [08:44:25] Sock 9.Parse request [08:44:25]Sock 9.Check first char [08:44:25]Sock 9.First char is OK [08:44:25]request: POST /json_proto HTTP/1.0 [08:44:25]Method: POST [08:44:25]URL: /json_proto [08:44:25]Method is POST - this is cgi request [08:44:25]url: /json_proto [08:44:25]query_string will be loaded in cgi processing [08:44:25]execute_cgi json_proto POST (null) [08:44:25]execute_cgi path=json_proto method=POST [08:44:25]POST find Content-Length [08:44:25]Host: 172.17.52.196:8080 [08:44:25]Content-Length: 810 [08:44:25]Content-Type: application/json [08:44:25] [08:44:25]POST finish read [08:44:25]Found Content-Length = 810 [08:44:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1003719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:25]execute_script... [08:44:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1003719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:25]POST & json_proto [08:44:25]process_json_proto [08:44:25]json parsed OK: [08:44:25]protocol is kg_v1.0 [08:44:25]action value=close_receipt [08:44:25]process_action close_receipt [08:44:25]cmd_close_receipt [08:44:25]MH_GetDate [08:44:25]Write to MH i2c: F0 00 00 D6 01 C6 [08:44:25]Write i2c OK [08:44:25]MH_I2C_Read... [08:44:25]Read from MH i2c: F0 [08:44:25]MH_I2C_Read... [08:44:25]Read from MH i2c: F0 09 00 [08:44:25]MH_I2C_Read... [08:44:25]Read from MH i2c: F0 09 00 D6 01 00 EA C2 14 67 60 05 E4 66 A5 [08:44:25]GetLastDocTimeStamp 1729413849 [08:44:25]current date 1729413866 [08:44:25]FM_GetShiftState [08:44:25]SAM_PROTO_GetShiftState [08:44:25]wFMCommunicate request_size=4 [08:44:25]MH_SAM_APDU [08:44:25]CAPDU: 80 13 01 00 [08:44:25]Write to MH i2c: E2 08 00 D7 01 80 13 01 00 00 00 00 00 55 [08:44:25]Write i2c OK [08:44:25]MH_I2C_Read... [08:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:25]Read from MH i2c: E2 [08:44:25]MH_I2C_Read... [08:44:25]Read from MH i2c: E2 0E 00 [08:44:25]MH_I2C_Read... [08:44:25]Read from MH i2c: E2 0E 00 D7 01 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 E7 [08:44:25]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:44:25]wFMCommunicate OK [08:44:25]SAM_PROTO_GetShiftState done [08:44:25]FM_GetShiftState done [08:44:25]opened in 1729384380 [08:44:25]opened+sec_in_day 1729470780 [08:44:25]quantity*price = 150001 [08:44:25]sum+1 = 150002 [08:44:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.01 НСП 1% : 13.27 НДС 12% : 159.29 Наличными: 0.00 Безнал.: 1500.01 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 14 20.10.2024 08:44 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871749 ФД: 69724 ФПД: 215168080889863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084426&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69724&fm=215168080889863&tin=02508201610067®Number=0000000000091770&sum=150001 [08:44:26]StoreToDocumentArchive [08:44:26]shift 526 fd 69724 [08:44:26]save to /storage/0526/doc_00069724 [08:44:26]save last doc name /storage/0526/doc_00069724 to /storage/kkm_last_doc_name [08:44:26]save OK [08:44:26]Clear old archive folders... [08:44:26]ProcessDocumentItem done err = 0, tmpTLVsize=249 [08:44:26]tlvbuf is 00974680 [08:44:26]SAM_PROTO_ClearQueue [08:44:26]wFMCommunicate request_size=4 [08:44:26]MH_SAM_APDU [08:44:26]CAPDU: 80 09 00 00 [08:44:26]Write to MH i2c: E2 08 00 E4 01 80 09 00 00 00 00 00 00 57 [08:44:26]Write i2c OK [08:44:26]MH_I2C_Read... [08:44:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:26]Read from MH i2c: E2 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 E4 01 00 90 00 59 [08:44:26]RAPDU: 90 00 [08:44:26]wFMCommunicate OK [08:44:26]SAM_PROTO_ClearQueue done [08:44:26]KKMCreateOFDPacket [08:44:26]OFDProtocolAddRootSTLVToBuf [08:44:26]FM_MakeSignedData [08:44:26]FM_MakeSignedData [08:44:26]SAM_PROTO_SignData [08:44:26]wFMCommunicate request_size=4 [08:44:26]MH_SAM_APDU [08:44:26]CAPDU: 80 0D 01 02 [08:44:26]Write to MH i2c: E2 08 00 E5 01 80 0D 01 02 00 00 00 00 5F [08:44:26]Write i2c OK [08:44:26]MH_I2C_Read... [08:44:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:26]Read from MH i2c: E2 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 E5 01 00 90 00 5A [08:44:26]RAPDU: 90 00 [08:44:26]wFMCommunicate OK [08:44:26]wFMCommunicate request_size=255 [08:44:26]MH_SAM_APDU [08:44:26]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F1 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F1 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 EA C2 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5C 10 01 00 35 04 06 00 C3 B1 B9 [08:44:26]Write to MH i2c: E2 02 01 E6 01 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F1 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F1 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 EA C2 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5C 10 01 00 35 04 06 00 C3 B1 B9 00 00 35 [08:44:26]Write i2c OK [08:44:26]MH_I2C_Read... [08:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:27]Read from MH i2c: E2 [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: E2 03 00 [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [08:44:27]RAPDU: 90 00 [08:44:27]wFMCommunicate OK [08:44:27]wFMCommunicate request_size=8 [08:44:27]MH_SAM_APDU [08:44:27]CAPDU: 80 0D 02 02 03 07 48 07 [08:44:27]Write to MH i2c: E2 0B 00 E7 01 80 0D 02 02 03 00 07 48 07 00 00 BE [08:44:27]Write i2c OK [08:44:27]MH_I2C_Read... [08:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:27]Read from MH i2c: E2 [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: E2 03 00 [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [08:44:27]RAPDU: 90 00 [08:44:27]wFMCommunicate OK [08:44:27]wFMCommunicate request_size=4 [08:44:27]MH_SAM_APDU [08:44:27]CAPDU: 80 0D 03 02 [08:44:27]Write to MH i2c: E2 08 00 E8 01 80 0D 03 02 00 00 00 00 64 [08:44:27]Write i2c OK [08:44:27]MH_I2C_Read... [08:44:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:27]Read from MH i2c: E2 [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: E2 0B 00 [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: E2 0B 00 E8 01 00 D3 66 BC CD 50 89 8E 44 90 00 D2 [08:44:27]RAPDU: D3 66 BC CD 50 89 8E 44 90 00 [08:44:27]wFMCommunicate OK [08:44:27]SAM_PROTO_SignData done [08:44:27]FM_MakeSignedData done [08:44:27]CreateOFDProtocolMessage [08:44:27]wFMCommunicate request_size=4 [08:44:27]MH_SAM_APDU [08:44:27]CAPDU: 80 11 00 00 [08:44:27]Write to MH i2c: E2 08 00 E9 01 80 11 00 00 00 00 00 00 64 [08:44:27]Write i2c OK [08:44:27]MH_I2C_Read... [08:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:27]Read from MH i2c: E2 [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: E2 17 00 [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: E2 17 00 E9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 BB [08:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:44:27]wFMCommunicate OK [08:44:27]CreateOFDProtocolMessage done [08:44:27]OFDSenderStorePacket 69724 [08:44:27]StoreOFDPacket docnum=69724 [08:44:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 01 00 00 71 27 05 01 3F B6 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F1 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F1 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 EA C2 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5C 10 01 00 35 04 06 00 C3 B1 B9 07 48 07 D3 66 BC CD 50 89 8E 44 [08:44:27]CheckFolder [08:44:27]dirname=/storage/ofd_packets [08:44:27]CheckFolder done [08:44:27]ProducePacketName [08:44:27]name=ofd_packets/00069724 [08:44:27]NVStorageSaveData ofd_packets/00069724 [08:44:27]File name is /storage/ofd_packets/00069724 [08:44:27]Write 299 bytes [08:44:27]NVStorageSaveData done [08:44:27]OFDSenderStorePacket done [08:44:27]KKMCreateOFDPacket done [08:44:27]NVStorageSaveData kkm_last_timestamp [08:44:27]File name is /storage/kkm_last_timestamp [08:44:27]Write 4 bytes [08:44:27]NVStorageSaveData done [08:44:27]ExternCall_PrintAddStr [08:44:27]wPrintStart [08:44:27]Write to MH i2c: 01 00 00 EA 01 EB [08:44:27]Write i2c OK [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: 01 [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: 01 07 00 [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: 01 07 00 EA 01 00 00 00 00 00 FF 0F 00 [08:44:27]RasterBufferAndPrint [08:44:27]line Счет N : (1)1003719 [08:44:27]line ИНН: 02508201610067 [08:44:27]line Контрольно-Кассовый Чек [08:44:27]line ПРОДАЖА [08:44:27]line ТРК (МРК, ГНК) : 52 [08:44:27]line Товар: 2710124130 [08:44:27]line SU-92-К-5 [08:44:27]line 21.930 * 68.40 [08:44:27]line = 1500.01 [08:44:27]line НДС 12% НСП 1% [08:44:27]line > о реализуемом товаре [08:44:27]line ИТОГО: 1500.01 [08:44:27]line НСП 1% : 13.27 [08:44:27]line НДС 12% : 159.29 [08:44:27]line Наличными: 0.00 [08:44:27]line Безнал.: 1500.01 [08:44:27]line Место: АЗС № 163 "Партнер Нефть" [08:44:27]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [08:44:27]line СНО: Общий режим [08:44:27]line Чек 14 20.10.2024 08:44 [08:44:27]line Смена: 526 ФФД: 1.0 [08:44:27]line ЗНМ: 0300000101 [08:44:27]line РНМ: 0000000000091770 [08:44:27]line Версия ККМ: 001 [08:44:27]line Платежная система: Бакай Банк [08:44:27]line ФМ: 0000000000871749 [08:44:27]line ФД: 69724 [08:44:27]line ФПД: 215168080889863 [08:44:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084426&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69724&fm=215168080889863&tin=02508201610067®Number=0000000000091770&sum=150001 [08:44:27]OFD Sender: Processing packet 69724 [packets to send 32, broken 31] [08:44:27]ProducePacketName [08:44:27]name=ofd_packets/00069724 [08:44:27]OFD Sender: To server: pG, [08:44:27]CommunicateWithHost lk.salyk.kg:30040 [08:44:27]ConnectInit lk.salyk.kg [08:44:27]written 0, free lines is 4095 [08:44:27]Connected sock=10 [08:44:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 01 00 00 71 27 05 01 3F B6 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F1 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F1 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 EA C2 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5C 10 01 00 35 04 06 00 C3 B1 B9 07 48 07 D3 66 BC CD 50 89 8E 44 [08:44:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 8F 06 47 00 98 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5C 10 01 00 F4 03 04 00 6E 68 14 67 B6 04 01 00 00 4E 99 C6 5C 65 B7 F2 F6 [08:44:27]CommunicateWithHost err = 0 [08:44:27]CheckOFDResponse [08:44:27]1017 (14) - 77093643461234 [08:44:27]1041 (16) - 0000000000871749 [08:44:27]1040 (4) - 69724 [08:44:27]1012 (4) - 20.10.2024 02:18 [08:44:27]1206 (1) - 0 [08:44:27]OFD Sender: Remove packet 69724 [08:44:27]ProducePacketName [08:44:27]name=ofd_packets/00069724 [08:44:27]NVStorageDeleteData [08:44:28]Write to MH i2c: 01 00 00 14 02 16 [08:44:28]Write i2c OK [08:44:28]MH_I2C_Read... [08:44:28]Read from MH i2c: 01 [08:44:28]MH_I2C_Read... [08:44:28]Read from MH i2c: 01 07 00 [08:44:28]MH_I2C_Read... [08:44:28]Read from MH i2c: 01 07 00 14 02 00 00 00 00 00 F2 0C 1B [08:44:28]RasterBufferAndPrint [08:44:28]line [08:44:28]line [08:44:28]line [08:44:28]line [08:44:28]line [08:44:28]written 0, free lines is 3320 [08:44:28]MH_Cut [08:44:28]Write to MH i2c: D1 01 00 1B 02 01 EF [08:44:28]Write i2c OK [08:44:28]MH_I2C_Read... [08:44:28]Read from MH i2c: D1 [08:44:28]MH_I2C_Read... [08:44:28]Read from MH i2c: D1 01 00 [08:44:28]MH_I2C_Read... [08:44:28]Read from MH i2c: D1 01 00 1B 02 00 EE [08:44:28]Write to MH i2c: 01 00 00 1C 02 1E [08:44:28]Write i2c OK [08:44:28]MH_I2C_Read... [08:44:28]OFD Sender: No OFD packet to send [08:44:28]*** Cut start [08:44:28]*** Partial cut [08:44:28]*** CUTSNS_PIN = 1 [08:44:28]*** CUTSNS_PIN = 0 [08:44:29]*** Brake cut motor [08:44:29]Read from MH i2c: 01 [08:44:29]MH_I2C_Read... [08:44:29]*** Stop cut motor [08:44:29]*** Cut end [08:44:29]Read from MH i2c: 01 07 00 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 FF 0F 33 [08:44:29]process_action close_receipt done [08:44:29]requested_data is exist [08:44:29]produce_requested_data [08:44:29]requested_item fm.sn is exist - process it [08:44:29]wFMCommunicate request_size=4 [08:44:29]MH_SAM_APDU [08:44:29]CAPDU: 80 11 00 00 [08:44:29]Write to MH i2c: E2 08 00 1D 02 80 11 00 00 00 00 00 00 99 [08:44:29]Write i2c OK [08:44:29]MH_I2C_Read... [08:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:29]Read from MH i2c: E2 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 17 00 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 17 00 1D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 F0 [08:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:44:29]wFMCommunicate OK [08:44:29]requested_item fd.num is exist - process it [08:44:29]SAM_PROTO_GetFieldsCounters [08:44:29]wFMCommunicate request_size=4 [08:44:29]MH_SAM_APDU [08:44:29]CAPDU: 80 13 00 00 [08:44:29]Write to MH i2c: E2 08 00 1E 02 80 13 00 00 00 00 00 00 9C [08:44:29]Write i2c OK [08:44:29]MH_I2C_Read... [08:44:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:29]Read from MH i2c: E2 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 62 00 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 62 00 1E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 5C 10 01 00 0E 04 04 00 0E 02 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 67 [08:44: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 5C 10 01 00 0E 04 04 00 0E 02 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:44:29]wFMCommunicate OK [08:44:29]SAM_PROTO_GetFieldsCounters done [08:44:29]requested_item shift.num is exist - process it [08:44:29]requested_item shift.opened is exist - process it [08:44:29]req_shift_opened [08:44:29]FM_GetShiftState [08:44:29]SAM_PROTO_GetShiftState [08:44:29]wFMCommunicate request_size=4 [08:44:29]MH_SAM_APDU [08:44:29]CAPDU: 80 13 01 00 [08:44:29]Write to MH i2c: E2 08 00 1F 02 80 13 01 00 00 00 00 00 9E [08:44:29]Write i2c OK [08:44:29]MH_I2C_Read... [08:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:29]Read from MH i2c: E2 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 0E 00 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 0E 00 1F 02 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 30 [08:44:29]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:44:29]wFMCommunicate OK [08:44:29]SAM_PROTO_GetShiftState done [08:44:29]FM_GetShiftState done [08:44:29]req_shift_opened done [08:44:29]requested_item shift.open_date is exist - process it [08:44:29]req_shift_open_date [08:44:29]req_shift_open_date done [08:44:29]produce_requested_data done [08:44:29]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69724,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [08:44:29]process_action_free close_receipt [08:44:29]json_value_free [08:44:29]json_value_free done [08:44:29]process_json_proto returns [08:44:29]Send response to host [08:44:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69724,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [08:44:29]free response buf [08:44:29]execute_script done [08:44:29]execute_script returns [08:44:29]free content buf [08:44:29]Sock 9.Close socket [08:44:29]Sock 9.Thread stoped [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:29]accept exits with 7 [08:45:29]New connection [08:45:29]New thread 3066486116 created [08:45:29]Thread 3066629476 joined [08:45:29]Waiting for new connection... [08:45:29] Sock 7.Parse request [08:45:29]Sock 7.Check first char [08:45:29]Sock 7.First char is OK [08:45:29]request: POST /json_proto HTTP/1.0 [08:45:29]Method: POST [08:45:29]URL: /json_proto [08:45:29]Method is POST - this is cgi request [08:45:29]url: /json_proto [08:45:29]query_string will be loaded in cgi processing [08:45:29]execute_cgi json_proto POST (null) [08:45:29]execute_cgi path=json_proto method=POST [08:45:29]POST find Content-Length [08:45:29]Host: 172.17.52.196:8080 [08:45:29]Content-Length: 622 [08:45:29]Content-Type: application/json [08:45:29] [08:45:29]POST finish read [08:45:29]Found Content-Length = 622 [08:45:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127130", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:29]execute_script... [08:45:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127130", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:29]POST & json_proto [08:45:29]process_json_proto [08:45:29]json parsed OK: [08:45:29]protocol is kg_v1.0 [08:45:29]action value=close_receipt [08:45:29]process_action close_receipt [08:45:29]cmd_close_receipt [08:45:29]MH_GetDate [08:45:29]Write to MH i2c: F0 00 00 20 02 11 [08:45:29]Write i2c OK [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: F0 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: F0 09 00 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: F0 09 00 20 02 00 2B C3 14 67 60 05 E4 66 32 [08:45:29]GetLastDocTimeStamp 1729413866 [08:45:29]current date 1729413931 [08:45:29]FM_GetShiftState [08:45:29]SAM_PROTO_GetShiftState [08:45:29]wFMCommunicate request_size=4 [08:45:29]MH_SAM_APDU [08:45:29]CAPDU: 80 13 01 00 [08:45:29]Write to MH i2c: E2 08 00 21 02 80 13 01 00 00 00 00 00 A0 [08:45:30]Write i2c OK [08:45:30]MH_I2C_Read... [08:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:30]Read from MH i2c: E2 [08:45:30]MH_I2C_Read... [08:45:30]Read from MH i2c: E2 0E 00 [08:45:30]MH_I2C_Read... [08:45:30]Read from MH i2c: E2 0E 00 21 02 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 32 [08:45:30]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:45:30]wFMCommunicate OK [08:45:30]SAM_PROTO_GetShiftState done [08:45:30]FM_GetShiftState done [08:45:30]opened in 1729384380 [08:45:30]opened+sec_in_day 1729470780 [08:45:30]quantity*price = 16000 [08:45:30]sum+1 = 16001 [08:45:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 15 20.10.2024 08:45 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69725 ФПД: 114538475641293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084531&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69725&fm=114538475641293&tin=02508201610067®Number=0000000000091770&sum=16000 0 [08:45:31]StoreToDocumentArchive [08:45:31]shift 526 fd 69725 [08:45:31]save to /storage/0526/doc_00069725 [08:45:31]save last doc name /storage/0526/doc_00069725 to /storage/kkm_last_doc_name [08:45:31]save OK [08:45:31]Clear old archive folders... [08:45:31]ProcessDocumentItem done err = 0, tmpTLVsize=274 [08:45:31]tlvbuf is 0095D710 [08:45:31]SAM_PROTO_ClearQueue [08:45:31]wFMCommunicate request_size=4 [08:45:31]MH_SAM_APDU [08:45:31]CAPDU: 80 09 00 00 [08:45:31]Write to MH i2c: E2 08 00 2E 02 80 09 00 00 00 00 00 00 A2 [08:45:31]Write i2c OK [08:45:31]MH_I2C_Read... [08:45:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:31]Read from MH i2c: E2 [08:45:31]MH_I2C_Read... [08:45:31]Read from MH i2c: E2 03 00 [08:45:31]MH_I2C_Read... [08:45:31]Read from MH i2c: E2 03 00 2E 02 00 90 00 A4 [08:45:31]RAPDU: 90 00 [08:45:31]wFMCommunicate OK [08:45:31]SAM_PROTO_ClearQueue done [08:45:31]KKMCreateOFDPacket [08:45:31]OFDProtocolAddRootSTLVToBuf [08:45:31]FM_MakeSignedData [08:45:31]FM_MakeSignedData [08:45:31]SAM_PROTO_SignData [08:45:31]wFMCommunicate request_size=4 [08:45:31]MH_SAM_APDU [08:45:31]CAPDU: 80 0D 01 02 [08:45:31]Write to MH i2c: E2 08 00 2F 02 80 0D 01 02 00 00 00 00 AA [08:45:31]Write i2c OK [08:45:31]MH_I2C_Read... [08:45:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:31]Read from MH i2c: E2 [08:45:31]MH_I2C_Read... [08:45:31]Read from MH i2c: E2 03 00 [08:45:31]MH_I2C_Read... [08:45:31]Read from MH i2c: E2 03 00 2F 02 00 90 00 A5 [08:45:31]RAPDU: 90 00 [08:45:31]wFMCommunicate OK [08:45:31]wFMCommunicate request_size=255 [08:45:31]MH_SAM_APDU [08:45:31]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 2B C3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 [08:45:31]Write to MH i2c: E2 02 01 30 02 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 2B C3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 00 00 82 [08:45:31]Write i2c OK [08:45:31]MH_I2C_Read... [08:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:31]Read from MH i2c: E2 [08:45:31]MH_I2C_Read... [08:45:31]Read from MH i2c: E2 03 00 [08:45:31]MH_I2C_Read... [08:45:31]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [08:45:31]RAPDU: 90 00 [08:45:31]wFMCommunicate OK [08:45:31]wFMCommunicate request_size=33 [08:45:31]MH_SAM_APDU [08:45:31]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5D 10 01 00 35 04 06 00 68 2C 11 27 59 CD [08:45:31]Write to MH i2c: E2 24 00 31 02 80 0D 02 02 1C 00 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5D 10 01 00 35 04 06 00 68 2C 11 27 59 CD 00 00 A0 [08:45:31]Write i2c OK [08:45:31]MH_I2C_Read... [08:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:31]Read from MH i2c: E2 [08:45:31]MH_I2C_Read... [08:45:31]Read from MH i2c: E2 03 00 [08:45:31]MH_I2C_Read... [08:45:31]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [08:45:31]RAPDU: 90 00 [08:45:31]wFMCommunicate OK [08:45:31]wFMCommunicate request_size=4 [08:45:31]MH_SAM_APDU [08:45:31]CAPDU: 80 0D 03 02 [08:45:31]Write to MH i2c: E2 08 00 32 02 80 0D 03 02 00 00 00 00 AF [08:45:31]Write i2c OK [08:45:31]MH_I2C_Read... [08:45:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:31]Read from MH i2c: E2 [08:45:31]MH_I2C_Read... [08:45:31]Read from MH i2c: E2 0B 00 [08:45:31]MH_I2C_Read... [08:45:31]Read from MH i2c: E2 0B 00 32 02 00 30 4C 41 39 A6 61 99 05 90 00 4B [08:45:31]RAPDU: 30 4C 41 39 A6 61 99 05 90 00 [08:45:31]wFMCommunicate OK [08:45:31]SAM_PROTO_SignData done [08:45:31]FM_MakeSignedData done [08:45:31]CreateOFDProtocolMessage [08:45:31]wFMCommunicate request_size=4 [08:45:31]MH_SAM_APDU [08:45:31]CAPDU: 80 11 00 00 [08:45:31]Write to MH i2c: E2 08 00 33 02 80 11 00 00 00 00 00 00 AF [08:45:31]Write i2c OK [08:45:31]MH_I2C_Read... [08:45:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:31]Read from MH i2c: E2 [08:45:31]MH_I2C_Read... [08:45:31]Read from MH i2c: E2 17 00 [08:45:31]MH_I2C_Read... [08:45:31]Read from MH i2c: E2 17 00 33 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 06 [08:45:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:45:31]wFMCommunicate OK [08:45:31]CreateOFDProtocolMessage done [08:45:31]OFDSenderStorePacket 69725 [08:45:31]StoreOFDPacket docnum=69725 [08:45:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 CB BC 1E 01 8F F8 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 2B C3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5D 10 01 00 35 04 06 00 68 2C 11 27 59 CD 30 4C 41 39 A6 61 99 05 [08:45:31]CheckFolder [08:45:31]dirname=/storage/ofd_packets [08:45:31]CheckFolder done [08:45:31]ProducePacketName [08:45:31]name=ofd_packets/00069725 [08:45:31]NVStorageSaveData ofd_packets/00069725 [08:45:31]File name is /storage/ofd_packets/00069725 [08:45:31]Write 324 bytes [08:45:31]NVStorageSaveData done [08:45:31]OFDSenderStorePacket done [08:45:31]KKMCreateOFDPacket done [08:45:31]NVStorageSaveData kkm_last_timestamp [08:45:31]File name is /storage/kkm_last_timestamp [08:45:31]Write 4 bytes [08:45:31]NVStorageSaveData done [08:45:31]ExternCall_PrintAddStr [08:45:31]wPrintStart [08:45:31]Write to MH i2c: 01 00 00 34 02 36 [08:45:31]Write i2c OK [08:45:31]MH_I2C_Read... [08:45:31]Read from MH i2c: 01 [08:45:31]MH_I2C_Read... [08:45:31]Read from MH i2c: 01 07 00 [08:45:31]MH_I2C_Read... [08:45:31]Read from MH i2c: 01 07 00 34 02 00 00 00 00 00 FF 0F 4B [08:45:31]RasterBufferAndPrint [08:45:31]line Счет N : (3)127130 [08:45:31]line ИНН: 02508201610067 [08:45:31]line Контрольно-Кассовый Чек [08:45:31]line ПРОДАЖА [08:45:31]line Товар: 48741958 [08:45:31]line Сигареты Parliament Aqua Blue [08:45:31]line 1.000 * 160.00 [08:45:31]line = 160.00 [08:45:31]line НДС 12% НСП 1% [08:45:31]line > о реализуемом товаре [08:45:31]line ИТОГО: 160.00 [08:45:31]line НСП 1% : 1.42 [08:45:31]line НДС 12% : 16.99 [08:45:31]line Наличными: 160.00 [08:45:31]line Безнал.: 0.00 [08:45:31]line Место: АЗС № 163 "Партнер Нефть" [08:45:31]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [08:45:31]line СНО: Общий режим [08:45:31]line Чек 15 20.10.2024 08:45 [08:45:31]line Смена: 526 ФФД: 1.0 [08:45:31]line ЗНМ: 0300000101 [08:45:31]line РНМ: 0000000000091770 [08:45:31]line Версия ККМ: 001 [08:45:31]line ФМ: 0000000000871749 [08:45:31]line ФД: 69725 [08:45:31]line ФПД: 114538475641293 [08:45:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084531&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69725&fm=114538475641293&tin=02508201610067®Number=0000000000091770&sum=16000 [08:45:32]OFD Sender: Processing packet 69725 [packets to send 32, broken 31] [08:45:32]ProducePacketName [08:45:32]name=ofd_packets/00069725 [08:45:32]OFD Sender: To server: pG, [08:45:32]CommunicateWithHost lk.salyk.kg:30040 [08:45:32]ConnectInit lk.salyk.kg [08:45:32]line 0 [08:45:32]written 0, free lines is 4095 [08:45:32]Connected sock=10 [08:45:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 CB BC 1E 01 8F F8 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 2B C3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5D 10 01 00 35 04 06 00 68 2C 11 27 59 CD 30 4C 41 39 A6 61 99 05 [08:45:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 31 90 47 00 30 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5D 10 01 00 F4 03 04 00 AE 68 14 67 B6 04 01 00 00 C5 18 06 ED 59 86 B9 5D [08:45:32]CommunicateWithHost err = 0 [08:45:32]CheckOFDResponse [08:45:32]1017 (14) - 77093643461234 [08:45:32]1041 (16) - 0000000000871749 [08:45:32]1040 (4) - 69725 [08:45:32]1012 (4) - 20.10.2024 02:19 [08:45:32]1206 (1) - 0 [08:45:32]OFD Sender: Remove packet 69725 [08:45:32]ProducePacketName [08:45:32]name=ofd_packets/00069725 [08:45:32]NVStorageDeleteData [08:45:32]Write to MH i2c: 01 00 00 5D 02 5F [08:45:32]Write i2c OK [08:45:32]MH_I2C_Read... [08:45:32]Read from MH i2c: 01 [08:45:32]MH_I2C_Read... [08:45:32]Read from MH i2c: 01 07 00 [08:45:32]MH_I2C_Read... [08:45:32]Read from MH i2c: 01 07 00 5D 02 00 00 00 00 00 CD 0C 3F [08:45:32]RasterBufferAndPrint [08:45:32]line [08:45:32]line [08:45:32]line [08:45:32]line [08:45:32]line [08:45:32]written 0, free lines is 3285 [08:45:32]MH_Cut [08:45:32]Write to MH i2c: D1 01 00 64 02 01 38 [08:45:32]Write i2c OK [08:45:32]MH_I2C_Read... [08:45:32]Read from MH i2c: D1 [08:45:32]MH_I2C_Read... [08:45:32]Read from MH i2c: D1 01 00 [08:45:32]MH_I2C_Read... [08:45:32]Read from MH i2c: D1 01 00 64 02 00 37 [08:45:32]Write to MH i2c: 01 00 00 65 02 67 [08:45:32]Write i2c OK [08:45:32]MH_I2C_Read... [08:45:32]OFD Sender: No OFD packet to send [08:45:33]*** Cut start [08:45:33]*** Partial cut [08:45:33]*** CUTSNS_PIN = 1 [08:45:33]*** CUTSNS_PIN = 0 [08:45:33]*** Brake cut motor [08:45:34]Read from MH i2c: 01 [08:45:34]MH_I2C_Read... [08:45:34]*** Stop cut motor [08:45:34]*** Cut end [08:45:34]Read from MH i2c: 01 07 00 [08:45:34]MH_I2C_Read... [08:45:34]Read from MH i2c: 01 07 00 65 02 00 00 00 00 00 FF 0F 7C [08:45:34]process_action close_receipt done [08:45:34]requested_data is exist [08:45:34]produce_requested_data [08:45:34]requested_item fm.sn is exist - process it [08:45:34]wFMCommunicate request_size=4 [08:45:34]MH_SAM_APDU [08:45:34]CAPDU: 80 11 00 00 [08:45:34]Write to MH i2c: E2 08 00 66 02 80 11 00 00 00 00 00 00 E2 [08:45:34]Write i2c OK [08:45:34]MH_I2C_Read... [08:45:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:34]Read from MH i2c: E2 [08:45:34]MH_I2C_Read... [08:45:34]Read from MH i2c: E2 17 00 [08:45:34]MH_I2C_Read... [08:45:34]Read from MH i2c: E2 17 00 66 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 39 [08:45:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:45:34]wFMCommunicate OK [08:45:34]requested_item fd.num is exist - process it [08:45:34]SAM_PROTO_GetFieldsCounters [08:45:34]wFMCommunicate request_size=4 [08:45:34]MH_SAM_APDU [08:45:34]CAPDU: 80 13 00 00 [08:45:34]Write to MH i2c: E2 08 00 67 02 80 13 00 00 00 00 00 00 E5 [08:45:34]Write i2c OK [08:45:34]MH_I2C_Read... [08:45:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:34]Read from MH i2c: E2 [08:45:34]MH_I2C_Read... [08:45:34]Read from MH i2c: E2 62 00 [08:45:34]MH_I2C_Read... [08:45:34]Read from MH i2c: E2 62 00 67 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 5D 10 01 00 0E 04 04 00 0E 02 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 B4 [08:45: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 5D 10 01 00 0E 04 04 00 0E 02 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:45:34]wFMCommunicate OK [08:45:34]SAM_PROTO_GetFieldsCounters done [08:45:34]requested_item shift.num is exist - process it [08:45:34]requested_item shift.opened is exist - process it [08:45:34]req_shift_opened [08:45:34]FM_GetShiftState [08:45:34]SAM_PROTO_GetShiftState [08:45:34]wFMCommunicate request_size=4 [08:45:34]MH_SAM_APDU [08:45:34]CAPDU: 80 13 01 00 [08:45:34]Write to MH i2c: E2 08 00 68 02 80 13 01 00 00 00 00 00 E7 [08:45:34]Write i2c OK [08:45:34]MH_I2C_Read... [08:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:34]Read from MH i2c: E2 [08:45:34]MH_I2C_Read... [08:45:34]Read from MH i2c: E2 0E 00 [08:45:34]MH_I2C_Read... [08:45:34]Read from MH i2c: E2 0E 00 68 02 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 79 [08:45:34]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:45:34]wFMCommunicate OK [08:45:34]SAM_PROTO_GetShiftState done [08:45:34]FM_GetShiftState done [08:45:34]req_shift_opened done [08:45:34]requested_item shift.open_date is exist - process it [08:45:34]req_shift_open_date [08:45:34]req_shift_open_date done [08:45:34]produce_requested_data done [08:45:34]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69725,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [08:45:34]process_action_free close_receipt [08:45:34]json_value_free [08:45:34]json_value_free done [08:45:34]process_json_proto returns [08:45:34]Send response to host [08:45:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69725,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [08:45:34]free response buf [08:45:34]execute_script done [08:45:34]execute_script returns [08:45:34]free content buf [08:45:34]Sock 7.Close socket [08:45:34]Sock 7.Thread stoped [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]accept exits with 9 [08:46:12]New connection [08:46:12]New thread 3066629476 created [08:46:12]Thread 3066486116 joined [08:46:12]Waiting for new connection... [08:46:12] Sock 9.Parse request [08:46:12]Sock 9.Check first char [08:46:12]Sock 9.First char is OK [08:46:12]request: POST /json_proto HTTP/1.0 [08:46:12]Method: POST [08:46:12]URL: /json_proto [08:46:12]Method is POST - this is cgi request [08:46:12]url: /json_proto [08:46:12]query_string will be loaded in cgi processing [08:46:12]execute_cgi json_proto POST (null) [08:46:12]execute_cgi path=json_proto method=POST [08:46:12]POST find Content-Length [08:46:12]Host: 172.17.52.196:8080 [08:46:12]Content-Length: 215 [08:46:12]Content-Type: application/json [08:46:12] [08:46:12]POST finish read [08:46:12]Found Content-Length = 215 [08:46:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:12]execute_script... [08:46:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:12]POST & json_proto [08:46:12]process_json_proto [08:46:12]json parsed OK: [08:46:12]protocol is kg_v1.0 [08:46:12]action value=get_value [08:46:12]process_action get_value [08:46:12]cmd_get_value [08:46:12]process_action get_value done [08:46:12]requested_data is exist [08:46:12]produce_requested_data [08:46:12]requested_item kkm.sn is exist - process it [08:46:12]requested_item kkm.ver is exist - process it [08:46:12]requested_item fm.sn is exist - process it [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 11 00 00 [08:46:12]Write to MH i2c: E2 08 00 69 02 80 11 00 00 00 00 00 00 E5 [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 17 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 17 00 69 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 3C [08:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:46:12]wFMCommunicate OK [08:46:12]requested_item fd.num is exist - process it [08:46:12]SAM_PROTO_GetFieldsCounters [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 13 00 00 [08:46:12]Write to MH i2c: E2 08 00 6A 02 80 13 00 00 00 00 00 00 E8 [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 62 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 62 00 6A 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 5D 10 01 00 0E 04 04 00 0E 02 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 B7 [08:46:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 5D 10 01 00 0E 04 04 00 0E 02 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:46:12]wFMCommunicate OK [08:46:12]SAM_PROTO_GetFieldsCounters done [08:46:12]requested_item shift.num is exist - process it [08:46:12]requested_item shift.opened is exist - process it [08:46:12]req_shift_opened [08:46:12]FM_GetShiftState [08:46:12]SAM_PROTO_GetShiftState [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 13 01 00 [08:46:12]Write to MH i2c: E2 08 00 6B 02 80 13 01 00 00 00 00 00 EA [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 0E 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 0E 00 6B 02 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 7C [08:46:12]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:46:12]wFMCommunicate OK [08:46:12]SAM_PROTO_GetShiftState done [08:46:12]FM_GetShiftState done [08:46:12]req_shift_opened done [08:46:12]requested_item shift.open_date is exist - process it [08:46:12]req_shift_open_date [08:46:12]req_shift_open_date done [08:46:12]produce_requested_data done [08:46:12]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69725,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [08:46:12]process_action_free get_value [08:46:12]json_value_free [08:46:12]json_value_free done [08:46:12]process_json_proto returns [08:46:12]Send response to host [08:46:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69725,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [08:46:12]free response buf [08:46:12]execute_script done [08:46:12]execute_script returns [08:46:12]free content buf [08:46:12]Sock 9.Close socket [08:46:12]Sock 9.Thread stoped [08:46:12]accept exits with 7 [08:46:12]New connection [08:46:12]New thread 3066486116 created [08:46:12]Thread 3066629476 joined [08:46:12]Waiting for new connection... [08:46:12] Sock 7.Parse request [08:46:12]Sock 7.Check first char [08:46:12]Sock 7.First char is OK [08:46:12]request: POST /json_proto HTTP/1.0 [08:46:12]Method: POST [08:46:12]URL: /json_proto [08:46:12]Method is POST - this is cgi request [08:46:12]url: /json_proto [08:46:12]query_string will be loaded in cgi processing [08:46:12]execute_cgi json_proto POST (null) [08:46:12]execute_cgi path=json_proto method=POST [08:46:12]POST find Content-Length [08:46:12]Host: 172.17.52.196:8080 [08:46:12]Content-Length: 331 [08:46:12]Content-Type: application/json [08:46:12] [08:46:12]POST finish read [08:46:12]Found Content-Length = 331 [08:46:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:46:12]execute_script... [08:46:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:46:13]POST & json_proto [08:46:13]process_json_proto [08:46:13]json parsed OK: [08:46:13]protocol is kg_v1.0 [08:46:13]action value=get_value [08:46:13]process_action get_value [08:46:13]cmd_get_value [08:46:13]process_action get_value done [08:46:13]requested_data is exist [08:46:13]produce_requested_data [08:46:13]requested_item fm.sale.total is exist - process it [08:46:13]SAM_PROTO_GetFMData [08:46:13]wFMCommunicate request_size=4 [08:46:13]MH_SAM_APDU [08:46:13]CAPDU: 80 13 03 00 [08:46:13]Write to MH i2c: E2 08 00 6C 02 80 13 03 00 00 00 00 00 ED [08:46:13]OFD Sender: No OFD packet to send [08:46:13]Write i2c OK [08:46:13]MH_I2C_Read... [08:46:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:46:13]Read from MH i2c: E2 [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: E2 FD 00 [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: E2 FD 00 6C 02 00 C3 04 85 04 BF 04 6E 04 04 00 41 0C 01 00 69 04 A1 00 6F 04 04 00 E3 0B 01 00 B1 04 04 00 25 4F 62 78 70 04 04 00 E8 FB 7C 67 72 04 04 00 3D 53 E5 10 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 39 3E C9 0C 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 53 A8 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 08 [08:46:13]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 41 0C 01 00 69 04 A1 00 6F 04 04 00 E3 0B 01 00 B1 04 04 00 25 4F 62 78 70 04 04 00 E8 FB 7C 67 72 04 04 00 3D 53 E5 10 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 39 3E C9 0C 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 53 A8 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [08:46:13]wFMCommunicate OK [08:46:13]wFMCommunicate request_size=4 [08:46:13]MH_SAM_APDU [08:46:13]CAPDU: 80 17 00 00 [08:46:13]Write to MH i2c: E2 08 00 6D 02 80 17 00 00 00 00 00 00 EF [08:46:13]Write i2c OK [08:46:13]MH_I2C_Read... [08:46:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:46:13]Read from MH i2c: E2 [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: E2 FD 00 [08:46:13]MH_I2C_Read... [08:46:13]Read from MH i2c: E2 FD 00 6D 02 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 F3 [08:46:13]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [08:46:13]wFMCommunicate OK [08:46:13]wFMCommunicate request_size=4 [08:46:13]MH_SAM_APDU [08:46:13]CAPDU: 80 17 00 00 [08:46:13]Write to MH i2c: E2 08 00 6E 02 80 17 00 00 00 00 00 00 F0 [08:46:13]Write i2c OK [08:46:13]MH_I2C_Read... [08:46:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:46:14]Read from MH i2c: E2 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 FD 00 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 FD 00 6E 02 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 0E [08:46:14]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [08:46:14]wFMCommunicate OK [08:46:14]wFMCommunicate request_size=4 [08:46:14]MH_SAM_APDU [08:46:14]CAPDU: 80 17 00 00 [08:46:14]Write to MH i2c: E2 08 00 6F 02 80 17 00 00 00 00 00 00 F1 [08:46:14]Write i2c OK [08:46:14]MH_I2C_Read... [08:46:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:46:14]Read from MH i2c: E2 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 FD 00 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 FD 00 6F 02 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 63 [08:46:14]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:46:14]wFMCommunicate OK [08:46:14]wFMCommunicate request_size=4 [08:46:14]MH_SAM_APDU [08:46:14]CAPDU: 80 17 00 00 [08:46:14]Write to MH i2c: E2 08 00 70 02 80 17 00 00 00 00 00 00 F2 [08:46:14]Write i2c OK [08:46:14]MH_I2C_Read... [08:46:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [08:46:14]Read from MH i2c: E2 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 E0 00 [08:46:14]MH_I2C_Read... [08:46:14]Read from MH i2c: E2 E0 00 70 02 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [08:46:14]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:46:14]wFMCommunicate OK [08:46:14]SAM_PROTO_GetFMData done [08:46:14]requested_item fm.sale_refund.total is exist - process it [08:46:14]requested_item fm.buy.total is exist - process it [08:46:14]requested_item shift.sale.total is exist - process it [08:46:14]SAM_PROTO_GetShiftData [08:46:14]wFMCommunicate request_size=4 [08:46:14]MH_SAM_APDU [08:46:14]CAPDU: 80 13 02 00 [08:46:14]Write to MH i2c: E2 08 00 71 02 80 13 02 00 00 00 00 00 F1 [08:46:14]Write i2c OK [08:46:14]MH_I2C_Read... [08:46:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:46:15]Read from MH i2c: E2 [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: E2 FD 00 [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: E2 FD 00 71 02 00 AD 04 AA 04 A9 04 6E 04 04 00 0F 00 00 00 69 04 9A 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 85 DF 05 70 04 03 00 FC 79 02 72 04 03 00 89 65 03 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A8 9F 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 4E 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 40 [08:46:15]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 0F 00 00 00 69 04 9A 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 85 DF 05 70 04 03 00 FC 79 02 72 04 03 00 89 65 03 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 A8 9F 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 4E 0D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [08:46:15]wFMCommunicate OK [08:46:15]wFMCommunicate request_size=4 [08:46:15]MH_SAM_APDU [08:46:15]CAPDU: 80 17 00 00 [08:46:15]Write to MH i2c: E2 08 00 72 02 80 17 00 00 00 00 00 00 F4 [08:46:15]Write i2c OK [08:46:15]MH_I2C_Read... [08:46:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:46:15]Read from MH i2c: E2 [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: E2 FD 00 [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: E2 FD 00 72 02 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 90 00 06 [08:46:15]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 90 00 [08:46:15]wFMCommunicate OK [08:46:15]wFMCommunicate request_size=4 [08:46:15]MH_SAM_APDU [08:46:15]CAPDU: 80 17 00 00 [08:46:15]Write to MH i2c: E2 08 00 73 02 80 17 00 00 00 00 00 00 F5 [08:46:15]Write i2c OK [08:46:15]MH_I2C_Read... [08:46:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:46:15]Read from MH i2c: E2 [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: E2 FD 00 [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: E2 FD 00 73 02 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 B9 [08:46:15]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 [08:46:15]wFMCommunicate OK [08:46:15]wFMCommunicate request_size=4 [08:46:15]MH_SAM_APDU [08:46:15]CAPDU: 80 17 00 00 [08:46:15]Write to MH i2c: E2 08 00 74 02 80 17 00 00 00 00 00 00 F6 [08:46:15]Write i2c OK [08:46:15]MH_I2C_Read... [08:46:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:46:15]Read from MH i2c: E2 [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: E2 FD 00 [08:46:15]MH_I2C_Read... [08:46:15]Read from MH i2c: E2 FD 00 74 02 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 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 6B [08:46:15]RAPDU: 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [08:46:15]wFMCommunicate OK [08:46:15]wFMCommunicate request_size=4 [08:46:15]MH_SAM_APDU [08:46:15]CAPDU: 80 17 00 00 [08:46:15]Write to MH i2c: E2 08 00 75 02 80 17 00 00 00 00 00 00 F7 [08:46:15]Write i2c OK [08:46:15]MH_I2C_Read... [08:46:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [08:46:16]Read from MH i2c: E2 [08:46:16]MH_I2C_Read... [08:46:16]Read from MH i2c: E2 CA 00 [08:46:16]MH_I2C_Read... [08:46:16]Read from MH i2c: E2 CA 00 75 02 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DC [08:46:16]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:46:16]wFMCommunicate OK [08:46:16]SAM_PROTO_GetShiftData done [08:46:16]requested_item shift.sale.total_cash is exist - process it [08:46:16]requested_item shift.sale_refund.total is exist - process it [08:46:16]requested_item shift.sale_refund.total_cash is exist - process it [08:46:16]requested_item shift.buy.total is exist - process it [08:46:16]requested_item shift.buy.total_cash is exist - process it [08:46:16]produce_requested_data done [08:46:16]produce_requested_data return {"fm.sale.total":20197087.09,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":3849.01,"shift.sale.total_cash":1623.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:46:16]process_action_free get_value [08:46:16]json_value_free [08:46:16]json_value_free done [08:46:16]process_json_proto returns [08:46:16]Send response to host [08:46:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20197087.09,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":3849.01,"shift.sale.total_cash":1623.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:46:16]free response buf [08:46:16]execute_script done [08:46:16]execute_script returns [08:46:16]free content buf [08:46:16]Sock 7.Close socket [08:46:16]Sock 7.Thread stoped [08:46:18]OFD Sender: No OFD packet to send [08:46:18]accept exits with 9 [08:46:18]New connection [08:46:18]New thread 3066629476 created [08:46:18]Thread 3066486116 joined [08:46:18]Waiting for new connection... [08:46:18] Sock 9.Parse request [08:46:18]Sock 9.Check first char [08:46:18]Sock 9.First char is OK [08:46:18]request: POST /json_proto HTTP/1.0 [08:46:18]Method: POST [08:46:18]URL: /json_proto [08:46:18]Method is POST - this is cgi request [08:46:18]url: /json_proto [08:46:18]query_string will be loaded in cgi processing [08:46:18]execute_cgi json_proto POST (null) [08:46:18]execute_cgi path=json_proto method=POST [08:46:18]POST find Content-Length [08:46:18]Host: 172.17.52.196:8080 [08:46:18]Content-Length: 630 [08:46:18]Content-Type: application/json [08:46:18] [08:46:18]POST finish read [08:46:18]Found Content-Length = 630 [08:46:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1003723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:18]execute_script... [08:46:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1003723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:18]POST & json_proto [08:46:18]process_json_proto [08:46:18]json parsed OK: [08:46:18]protocol is kg_v1.0 [08:46:18]action value=close_receipt [08:46:18]process_action close_receipt [08:46:18]cmd_close_receipt [08:46:18]MH_GetDate [08:46:18]Write to MH i2c: F0 00 00 76 02 67 [08:46:18]Write i2c OK [08:46:18]MH_I2C_Read... [08:46:18]Read from MH i2c: F0 [08:46:18]MH_I2C_Read... [08:46:18]Read from MH i2c: F0 09 00 [08:46:18]MH_I2C_Read... [08:46:18]Read from MH i2c: F0 09 00 76 02 00 5B C3 14 67 60 05 E4 66 B8 [08:46:18]GetLastDocTimeStamp 1729413931 [08:46:18]current date 1729413979 [08:46:18]FM_GetShiftState [08:46:18]SAM_PROTO_GetShiftState [08:46:18]wFMCommunicate request_size=4 [08:46:18]MH_SAM_APDU [08:46:18]CAPDU: 80 13 01 00 [08:46:18]Write to MH i2c: E2 08 00 77 02 80 13 01 00 00 00 00 00 F6 [08:46:18]Write i2c OK [08:46:18]MH_I2C_Read... [08:46:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:18]Read from MH i2c: E2 [08:46:18]MH_I2C_Read... [08:46:18]Read from MH i2c: E2 0E 00 [08:46:18]MH_I2C_Read... [08:46:18]Read from MH i2c: E2 0E 00 77 02 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 88 [08:46:18]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:46:18]wFMCommunicate OK [08:46:18]SAM_PROTO_GetShiftState done [08:46:18]FM_GetShiftState done [08:46:18]opened in 1729384380 [08:46:18]opened+sec_in_day 1729470780 [08:46:18]quantity*price = 50000 [08:46:18]sum+1 = 50001 [08:46:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 16 20.10.2024 08:46 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69726 ФПД: 172542494278299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084619&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69726&fm=172542494278299&tin=02508201610067®Number=0000000000091770&sum=50000 [08:46:19]StoreToDocumentArchive [08:46:19]shift 526 fd 69726 [08:46:19]save to /storage/0526/doc_00069726 [08:46:19]save last doc name /storage/0526/doc_00069726 to /storage/kkm_last_doc_name [08:46:19]save OK [08:46:19]Clear old archive folders... [08:46:19]ProcessDocumentItem done err = 0, tmpTLVsize=249 [08:46:19]tlvbuf is 009BB810 [08:46:19]SAM_PROTO_ClearQueue [08:46:19]wFMCommunicate request_size=4 [08:46:19]MH_SAM_APDU [08:46:19]CAPDU: 80 09 00 00 [08:46:19]Write to MH i2c: E2 08 00 84 02 80 09 00 00 00 00 00 00 F8 [08:46:19]Write i2c OK [08:46:19]MH_I2C_Read... [08:46:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:19]Read from MH i2c: E2 [08:46:19]MH_I2C_Read... [08:46:19]Read from MH i2c: E2 03 00 [08:46:19]MH_I2C_Read... [08:46:19]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [08:46:19]RAPDU: 90 00 [08:46:19]wFMCommunicate OK [08:46:19]SAM_PROTO_ClearQueue done [08:46:19]KKMCreateOFDPacket [08:46:19]OFDProtocolAddRootSTLVToBuf [08:46:19]FM_MakeSignedData [08:46:19]FM_MakeSignedData [08:46:19]SAM_PROTO_SignData [08:46:19]wFMCommunicate request_size=4 [08:46:19]MH_SAM_APDU [08:46:19]CAPDU: 80 0D 01 02 [08:46:19]Write to MH i2c: E2 08 00 85 02 80 0D 01 02 00 00 00 00 00 [08:46:19]Write i2c OK [08:46:19]MH_I2C_Read... [08:46:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:19]Read from MH i2c: E2 [08:46:19]MH_I2C_Read... [08:46:19]Read from MH i2c: E2 03 00 [08:46:19]MH_I2C_Read... [08:46:19]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [08:46:19]RAPDU: 90 00 [08:46:19]wFMCommunicate OK [08:46:19]wFMCommunicate request_size=255 [08:46:19]MH_SAM_APDU [08:46:19]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 5B C3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5E 10 01 00 35 04 06 00 9C ED 2E [08:46:19]Write to MH i2c: E2 02 01 86 02 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 5B C3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5E 10 01 00 35 04 06 00 9C ED 2E 00 00 E8 [08:46:19]Write i2c OK [08:46:19]MH_I2C_Read... [08:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:19]Read from MH i2c: E2 [08:46:19]MH_I2C_Read... [08:46:19]Read from MH i2c: E2 03 00 [08:46:19]MH_I2C_Read... [08:46:19]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [08:46:19]RAPDU: 90 00 [08:46:19]wFMCommunicate OK [08:46:19]wFMCommunicate request_size=8 [08:46:19]MH_SAM_APDU [08:46:19]CAPDU: 80 0D 02 02 03 14 82 9B [08:46:19]Write to MH i2c: E2 0B 00 87 02 80 0D 02 02 03 00 14 82 9B 00 00 3A [08:46:19]Write i2c OK [08:46:19]MH_I2C_Read... [08:46:19]Read from MH i2c: E2 [08:46:19]MH_I2C_Read... [08:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:19]Read from MH i2c: E2 03 00 [08:46:19]MH_I2C_Read... [08:46:19]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [08:46:19]RAPDU: 90 00 [08:46:19]wFMCommunicate OK [08:46:19]wFMCommunicate request_size=4 [08:46:19]MH_SAM_APDU [08:46:19]CAPDU: 80 0D 03 02 [08:46:19]Write to MH i2c: E2 08 00 88 02 80 0D 03 02 00 00 00 00 05 [08:46:19]Write i2c OK [08:46:19]MH_I2C_Read... [08:46:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:19]Read from MH i2c: E2 [08:46:19]MH_I2C_Read... [08:46:19]Read from MH i2c: E2 0B 00 [08:46:19]MH_I2C_Read... [08:46:19]Read from MH i2c: E2 0B 00 88 02 00 E5 F2 A4 38 1D 3A 29 BE 90 00 F7 [08:46:19]RAPDU: E5 F2 A4 38 1D 3A 29 BE 90 00 [08:46:19]wFMCommunicate OK [08:46:19]SAM_PROTO_SignData done [08:46:19]FM_MakeSignedData done [08:46:19]CreateOFDProtocolMessage [08:46:19]wFMCommunicate request_size=4 [08:46:19]MH_SAM_APDU [08:46:19]CAPDU: 80 11 00 00 [08:46:19]Write to MH i2c: E2 08 00 89 02 80 11 00 00 00 00 00 00 05 [08:46:19]Write i2c OK [08:46:19]MH_I2C_Read... [08:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:19]Read from MH i2c: E2 [08:46:19]MH_I2C_Read... [08:46:19]Read from MH i2c: E2 17 00 [08:46:19]MH_I2C_Read... [08:46:19]Read from MH i2c: E2 17 00 89 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 5C [08:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:46:19]wFMCommunicate OK [08:46:19]CreateOFDProtocolMessage done [08:46:19]OFDSenderStorePacket 69726 [08:46:19]StoreOFDPacket docnum=69726 [08:46:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 01 00 00 16 5E 05 01 E4 60 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 5B C3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5E 10 01 00 35 04 06 00 9C ED 2E 14 82 9B E5 F2 A4 38 1D 3A 29 BE [08:46:19]CheckFolder [08:46:19]dirname=/storage/ofd_packets [08:46:19]CheckFolder done [08:46:19]ProducePacketName [08:46:19]name=ofd_packets/00069726 [08:46:19]NVStorageSaveData ofd_packets/00069726 [08:46:19]File name is /storage/ofd_packets/00069726 [08:46:19]Write 299 bytes [08:46:19]NVStorageSaveData done [08:46:19]OFDSenderStorePacket done [08:46:19]KKMCreateOFDPacket done [08:46:19]NVStorageSaveData kkm_last_timestamp [08:46:19]File name is /storage/kkm_last_timestamp [08:46:19]Write 4 bytes [08:46:19]NVStorageSaveData done [08:46:19]ExternCall_PrintAddStr [08:46:19]wPrintStart [08:46:19]Write to MH i2c: 01 00 00 8A 02 8C [08:46:19]Write i2c OK [08:46:19]MH_I2C_Read... [08:46:19]Read from MH i2c: 01 [08:46:19]MH_I2C_Read... [08:46:19]Read from MH i2c: 01 07 00 [08:46:19]MH_I2C_Read... [08:46:19]Read from MH i2c: 01 07 00 8A 02 00 00 00 00 00 FF 0F A1 [08:46:19]RasterBufferAndPrint [08:46:19]line Счет N : (1)1003723 [08:46:19]line ИНН: 02508201610067 [08:46:19]line Контрольно-Кассовый Чек [08:46:19]line ПРОДАЖА [08:46:19]line ТРК (МРК, ГНК) : 42 [08:46:19]line Товар: 2710124130 [08:46:19]line SU-92-К-5 [08:46:19]line 7.310 * 68.40 [08:46:19]line = 500.00 [08:46:19]line НДС 12% НСП 1% [08:46:19]line > о реализуемом товаре [08:46:19]line ИТОГО: 500.00 [08:46:19]line НСП 1% : 4.42 [08:46:19]line НДС 12% : 53.10 [08:46:19]line Наличными: 500.00 [08:46:19]line Безнал.: 0.00 [08:46:19]line Место: АЗС № 163 "Партнер Нефть" [08:46:19]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [08:46:19]line СНО: Общий режим [08:46:19]line Чек 16 20.10.2024 08:46 [08:46:19]line Смена: 526 ФФД: 1.0 [08:46:19]line ЗНМ: 0300000101 [08:46:19]line РНМ: 0000000000091770 [08:46:19]line Версия ККМ: 001 [08:46:19]line ФМ: 0000000000871749 [08:46:19]line ФД: 69726 [08:46:19]line ФПД: 172542494278299 [08:46:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084619&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69726&fm=172542494278299&tin=02508201610067®Number=0000000000091770&sum=50000 [08:46:19]written 0, free lines is 4095 [08:46:19]OFD Sender: Processing packet 69726 [packets to send 32, broken 31] [08:46:19]ProducePacketName [08:46:19]name=ofd_packets/00069726 [08:46:19]OFD Sender: To server: pG, [08:46:19]CommunicateWithHost lk.salyk.kg:30040 [08:46:19]ConnectInit lk.salyk.kg [08:46:20]Connected sock=10 [08:46:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 01 00 00 16 5E 05 01 E4 60 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 5B C3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5E 10 01 00 35 04 06 00 9C ED 2E 14 82 9B E5 F2 A4 38 1D 3A 29 BE [08:46:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 BF 47 47 00 26 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5E 10 01 00 F4 03 04 00 DE 68 14 67 B6 04 01 00 00 7A B4 C4 18 09 A2 75 7C [08:46:20]CommunicateWithHost err = 0 [08:46:20]CheckOFDResponse [08:46:20]1017 (14) - 77093643461234 [08:46:20]1041 (16) - 0000000000871749 [08:46:20]1040 (4) - 69726 [08:46:20]1012 (4) - 20.10.2024 02:20 [08:46:20]1206 (1) - 0 [08:46:20]OFD Sender: Remove packet 69726 [08:46:20]ProducePacketName [08:46:20]name=ofd_packets/00069726 [08:46:20]NVStorageDeleteData [08:46:20]Write to MH i2c: 01 00 00 B2 02 B4 [08:46:20]Write i2c OK [08:46:20]MH_I2C_Read... [08:46:20]Read from MH i2c: 01 [08:46:20]MH_I2C_Read... [08:46:20]Read from MH i2c: 01 07 00 [08:46:20]MH_I2C_Read... [08:46:20]Read from MH i2c: 01 07 00 B2 02 00 00 00 00 00 20 0D E8 [08:46:20]RasterBufferAndPrint [08:46:20]line [08:46:20]line [08:46:20]line [08:46:20]line [08:46:20]line [08:46:20]written 0, free lines is 3379 [08:46:20]MH_Cut [08:46:20]Write to MH i2c: D1 01 00 B9 02 01 8D [08:46:20]Write i2c OK [08:46:20]MH_I2C_Read... [08:46:20]Read from MH i2c: D1 [08:46:20]MH_I2C_Read... [08:46:20]Read from MH i2c: D1 01 00 [08:46:20]MH_I2C_Read... [08:46:20]Read from MH i2c: D1 01 00 B9 02 00 8C [08:46:20]Write to MH i2c: 01 00 00 BA 02 BC [08:46:20]Write i2c OK [08:46:20]MH_I2C_Read... [08:46:20]OFD Sender: No OFD packet to send [08:46:21]*** Cut start [08:46:21]*** Partial cut [08:46:21]*** CUTSNS_PIN = 1 [08:46:21]*** CUTSNS_PIN = 0 [08:46:21]*** Brake cut motor [08:46:21]Read from MH i2c: 01 [08:46:21]MH_I2C_Read... [08:46:21]*** Stop cut motor [08:46:21]*** Cut end [08:46:21]Read from MH i2c: 01 07 00 [08:46:21]MH_I2C_Read... [08:46:21]Read from MH i2c: 01 07 00 BA 02 00 00 00 00 00 FF 0F D1 [08:46:21]process_action close_receipt done [08:46:21]requested_data is exist [08:46:21]produce_requested_data [08:46:21]requested_item fm.sn is exist - process it [08:46:21]wFMCommunicate request_size=4 [08:46:21]MH_SAM_APDU [08:46:21]CAPDU: 80 11 00 00 [08:46:21]Write to MH i2c: E2 08 00 BB 02 80 11 00 00 00 00 00 00 37 [08:46:21]Write i2c OK [08:46:21]MH_I2C_Read... [08:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:22]Read from MH i2c: E2 [08:46:22]MH_I2C_Read... [08:46:22]Read from MH i2c: E2 17 00 [08:46:22]MH_I2C_Read... [08:46:22]Read from MH i2c: E2 17 00 BB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 8E [08:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:46:22]wFMCommunicate OK [08:46:22]requested_item fd.num is exist - process it [08:46:22]SAM_PROTO_GetFieldsCounters [08:46:22]wFMCommunicate request_size=4 [08:46:22]MH_SAM_APDU [08:46:22]CAPDU: 80 13 00 00 [08:46:22]Write to MH i2c: E2 08 00 BC 02 80 13 00 00 00 00 00 00 3A [08:46:22]Write i2c OK [08:46:22]MH_I2C_Read... [08:46:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:22]Read from MH i2c: E2 [08:46:22]MH_I2C_Read... [08:46:22]Read from MH i2c: E2 62 00 [08:46:22]MH_I2C_Read... [08:46:22]Read from MH i2c: E2 62 00 BC 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 5E 10 01 00 0E 04 04 00 0E 02 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 0D [08:46: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 5E 10 01 00 0E 04 04 00 0E 02 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 [08:46:22]wFMCommunicate OK [08:46:22]SAM_PROTO_GetFieldsCounters done [08:46:22]requested_item shift.num is exist - process it [08:46:22]requested_item shift.opened is exist - process it [08:46:22]req_shift_opened [08:46:22]FM_GetShiftState [08:46:22]SAM_PROTO_GetShiftState [08:46:22]wFMCommunicate request_size=4 [08:46:22]MH_SAM_APDU [08:46:22]CAPDU: 80 13 01 00 [08:46:22]Write to MH i2c: E2 08 00 BD 02 80 13 01 00 00 00 00 00 3C [08:46:22]Write i2c OK [08:46:22]MH_I2C_Read... [08:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:22]Read from MH i2c: E2 [08:46:22]MH_I2C_Read... [08:46:22]Read from MH i2c: E2 0E 00 [08:46:22]MH_I2C_Read... [08:46:22]Read from MH i2c: E2 0E 00 BD 02 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 CE [08:46:22]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:46:22]wFMCommunicate OK [08:46:22]SAM_PROTO_GetShiftState done [08:46:22]FM_GetShiftState done [08:46:22]req_shift_opened done [08:46:22]requested_item shift.open_date is exist - process it [08:46:22]req_shift_open_date [08:46:22]req_shift_open_date done [08:46:22]produce_requested_data done [08:46:22]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69726,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [08:46:22]process_action_free close_receipt [08:46:22]json_value_free [08:46:22]json_value_free done [08:46:22]process_json_proto returns [08:46:22]Send response to host [08:46:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69726,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [08:46:22]free response buf [08:46:22]execute_script done [08:46:22]execute_script returns [08:46:22]free content buf [08:46:22]Sock 9.Close socket [08:46:22]Sock 9.Thread stoped [08:46:25]OFD Sender: No OFD packet to send [08:46:29]accept exits with 7 [08:46:29]New connection [08:46:29]New thread 3066486116 created [08:46:29]Thread 3066629476 joined [08:46:29]Waiting for new connection... [08:46:29] Sock 7.Parse request [08:46:29]Sock 7.Check first char [08:46:29]Sock 7.First char is OK [08:46:29]request: POST /json_proto HTTP/1.0 [08:46:29]Method: POST [08:46:29]URL: /json_proto [08:46:29]Method is POST - this is cgi request [08:46:29]url: /json_proto [08:46:29]query_string will be loaded in cgi processing [08:46:29]execute_cgi json_proto POST (null) [08:46:29]execute_cgi path=json_proto method=POST [08:46:29]POST find Content-Length [08:46:29]Host: 172.17.52.196:8080 [08:46:29]Content-Length: 683 [08:46:29]Content-Type: application/json [08:46:29] [08:46:29]POST finish read [08:46:29]Found Content-Length = 683 [08:46:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1003722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:29]execute_script... [08:46:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1003722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:29]POST & json_proto [08:46:29]process_json_proto [08:46:29]json parsed OK: [08:46:29]protocol is kg_v1.0 [08:46:29]action value=close_receipt [08:46:29]process_action close_receipt [08:46:29]cmd_close_receipt [08:46:29]MH_GetDate [08:46:29]Write to MH i2c: F0 00 00 BE 02 AF [08:46:29]Write i2c OK [08:46:29]MH_I2C_Read... [08:46:29]Read from MH i2c: F0 [08:46:29]MH_I2C_Read... [08:46:29]Read from MH i2c: F0 09 00 [08:46:29]MH_I2C_Read... [08:46:29]Read from MH i2c: F0 09 00 BE 02 00 66 C3 14 67 60 05 E4 66 0B [08:46:29]GetLastDocTimeStamp 1729413979 [08:46:29]current date 1729413990 [08:46:29]FM_GetShiftState [08:46:29]SAM_PROTO_GetShiftState [08:46:29]wFMCommunicate request_size=4 [08:46:29]MH_SAM_APDU [08:46:29]CAPDU: 80 13 01 00 [08:46:29]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [08:46:29]Write i2c OK [08:46:29]MH_I2C_Read... [08:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:29]Read from MH i2c: E2 [08:46:29]MH_I2C_Read... [08:46:29]Read from MH i2c: E2 0E 00 [08:46:29]MH_I2C_Read... [08:46:29]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 D0 [08:46:29]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:46:29]wFMCommunicate OK [08:46:29]SAM_PROTO_GetShiftState done [08:46:29]FM_GetShiftState done [08:46:29]opened in 1729384380 [08:46:29]opened+sec_in_day 1729470780 [08:46:29]quantity*price = 150032 [08:46:29]sum+1 = 150033 [08:46:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 17 20.10.2024 08:46 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69727 ФПД: 95172221823064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084630&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69727&fm=95172221823064&tin=02508201610067®Number=0000000000091770&sum=150000 [08:46:30]StoreToDocumentArchive [08:46:30]shift 526 fd 69727 [08:46:30]save to /storage/0526/doc_00069727 [08:46:30]save last doc name /storage/0526/doc_00069727 to /storage/kkm_last_doc_name [08:46:30]save OK [08:46:30]Clear old archive folders... [08:46:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:30]tlvbuf is 00977540 [08:46:30]SAM_PROTO_ClearQueue [08:46:30]wFMCommunicate request_size=4 [08:46:30]MH_SAM_APDU [08:46:30]CAPDU: 80 09 00 00 [08:46:30]Write to MH i2c: E2 08 00 CC 02 80 09 00 00 00 00 00 00 40 [08:46:30]Write i2c OK [08:46:30]MH_I2C_Read... [08:46:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:30]Read from MH i2c: E2 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 03 00 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [08:46:30]RAPDU: 90 00 [08:46:30]wFMCommunicate OK [08:46:30]SAM_PROTO_ClearQueue done [08:46:30]KKMCreateOFDPacket [08:46:30]OFDProtocolAddRootSTLVToBuf [08:46:30]FM_MakeSignedData [08:46:30]FM_MakeSignedData [08:46:30]SAM_PROTO_SignData [08:46:30]wFMCommunicate request_size=4 [08:46:30]MH_SAM_APDU [08:46:30]CAPDU: 80 0D 01 02 [08:46:30]Write to MH i2c: E2 08 00 CD 02 80 0D 01 02 00 00 00 00 48 [08:46:30]Write i2c OK [08:46:30]MH_I2C_Read... [08:46:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:30]Read from MH i2c: E2 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 03 00 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [08:46:30]RAPDU: 90 00 [08:46:30]wFMCommunicate OK [08:46:30]wFMCommunicate request_size=255 [08:46:30]MH_SAM_APDU [08:46:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 66 C3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5F 10 01 00 35 04 06 00 56 [08:46:30]Write to MH i2c: E2 02 01 CE 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 66 C3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5F 10 01 00 35 04 06 00 56 00 00 C6 [08:46:30]Write i2c OK [08:46:30]MH_I2C_Read... [08:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:30]Read from MH i2c: E2 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 03 00 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [08:46:30]RAPDU: 90 00 [08:46:30]wFMCommunicate OK [08:46:30]wFMCommunicate request_size=10 [08:46:30]MH_SAM_APDU [08:46:30]CAPDU: 80 0D 02 02 05 8F 02 79 68 58 [08:46:30]Write to MH i2c: E2 0D 00 CF 02 80 0D 02 02 05 00 8F 02 79 68 58 00 00 1F [08:46:30]Write i2c OK [08:46:30]MH_I2C_Read... [08:46:30]OFD Sender: No OFD packet to send [08:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:30]Read from MH i2c: E2 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 03 00 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [08:46:30]RAPDU: 90 00 [08:46:30]wFMCommunicate OK [08:46:30]wFMCommunicate request_size=4 [08:46:30]MH_SAM_APDU [08:46:30]CAPDU: 80 0D 03 02 [08:46:30]Write to MH i2c: E2 08 00 D0 02 80 0D 03 02 00 00 00 00 4D [08:46:30]Write i2c OK [08:46:30]MH_I2C_Read... [08:46:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:30]Read from MH i2c: E2 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 0B 00 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 0B 00 D0 02 00 B7 A0 E7 91 5C D1 76 C3 90 00 83 [08:46:30]RAPDU: B7 A0 E7 91 5C D1 76 C3 90 00 [08:46:30]wFMCommunicate OK [08:46:30]SAM_PROTO_SignData done [08:46:30]FM_MakeSignedData done [08:46:30]CreateOFDProtocolMessage [08:46:30]wFMCommunicate request_size=4 [08:46:30]MH_SAM_APDU [08:46:30]CAPDU: 80 11 00 00 [08:46:30]Write to MH i2c: E2 08 00 D1 02 80 11 00 00 00 00 00 00 4D [08:46:30]Write i2c OK [08:46:30]MH_I2C_Read... [08:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:31]Read from MH i2c: E2 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 17 00 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 17 00 D1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 A4 [08:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:46:31]wFMCommunicate OK [08:46:31]CreateOFDProtocolMessage done [08:46:31]OFDSenderStorePacket 69727 [08:46:31]StoreOFDPacket docnum=69727 [08:46:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0F 01 00 00 FD 66 07 01 96 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 66 C3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5F 10 01 00 35 04 06 00 56 8F 02 79 68 58 B7 A0 E7 91 5C D1 76 C3 [08:46:31]CheckFolder [08:46:31]dirname=/storage/ofd_packets [08:46:31]CheckFolder done [08:46:31]ProducePacketName [08:46:31]name=ofd_packets/00069727 [08:46:31]NVStorageSaveData ofd_packets/00069727 [08:46:31]File name is /storage/ofd_packets/00069727 [08:46:31]Write 301 bytes [08:46:31]NVStorageSaveData done [08:46:31]OFDSenderStorePacket done [08:46:31]KKMCreateOFDPacket done [08:46:31]NVStorageSaveData kkm_last_timestamp [08:46:31]File name is /storage/kkm_last_timestamp [08:46:31]Write 4 bytes [08:46:31]NVStorageSaveData done [08:46:31]ExternCall_PrintAddStr [08:46:31]wPrintStart [08:46:31]Write to MH i2c: 01 00 00 D2 02 D4 [08:46:31]Write i2c OK [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: 01 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: 01 07 00 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: 01 07 00 D2 02 00 00 00 00 00 FF 0F E9 [08:46:31]RasterBufferAndPrint [08:46:31]line Счет N : (1)1003722 [08:46:31]line ИНН: 02508201610067 [08:46:31]line Контрольно-Кассовый Чек [08:46:31]line ПРОДАЖА [08:46:31]line ТРК (МРК, ГНК) : 64 [08:46:31]line Товар: 2710124500 [08:46:31]line Аи-95-К-3 [08:46:31]line 20.220 * 74.20 [08:46:31]line = 1500.32 [08:46:31]line НДС 12% НСП 1% [08:46:31]line > о реализуемом товаре [08:46:31]line ОКРУГЛЕНИЕ: -0.32 [08:46:31]line ИТОГО: 1500.00 [08:46:31]line Внесено: 1500.00 [08:46:31]line СДАЧА: 0.00 [08:46:31]line НСП 1% : 13.28 [08:46:31]line НДС 12% : 159.33 [08:46:31]line Наличными: 1500.00 [08:46:31]line Безнал.: 0.00 [08:46:31]line Место: АЗС № 163 "Партнер Нефть" [08:46:31]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [08:46:31]line СНО: Общий режим [08:46:31]line Чек 17 20.10.2024 08:46 [08:46:31]line Смена: 526 ФФД: 1.0 [08:46:31]line ЗНМ: 0300000101 [08:46:31]line РНМ: 0000000000091770 [08:46:31]line Версия ККМ: 001 [08:46:31]line ФМ: 0000000000871749 [08:46:31]line ФД: 69727 [08:46:31]line ФПД: 95172221823064 [08:46:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084630&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69727&fm=95172221823064&tin=02508201610067®Number=0000000000091770&sum=150000 [08:46:31]written 0, free lines is 4095 [08:46:31]OFD Sender: Processing packet 69727 [packets to send 32, broken 31] [08:46:31]ProducePacketName [08:46:31]name=ofd_packets/00069727 [08:46:31]OFD Sender: To server: pG, [08:46:31]CommunicateWithHost lk.salyk.kg:30040 [08:46:31]ConnectInit lk.salyk.kg [08:46:31]Connected sock=11 [08:46:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0F 01 00 00 FD 66 07 01 96 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 66 C3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5F 10 01 00 35 04 06 00 56 8F 02 79 68 58 B7 A0 E7 91 5C D1 76 C3 [08:46:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 AC 16 47 00 B1 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 5F 10 01 00 F4 03 04 00 E9 68 14 67 B6 04 01 00 00 13 6C AC 06 16 80 FF 9A [08:46:31]CommunicateWithHost err = 0 [08:46:31]CheckOFDResponse [08:46:31]1017 (14) - 77093643461234 [08:46:31]1041 (16) - 0000000000871749 [08:46:31]1040 (4) - 69727 [08:46:31]1012 (4) - 20.10.2024 02:20 [08:46:31]1206 (1) - 0 [08:46:31]OFD Sender: Remove packet 69727 [08:46:31]ProducePacketName [08:46:31]name=ofd_packets/00069727 [08:46:31]NVStorageDeleteData [08:46:31]Write to MH i2c: 01 00 00 FD 02 FF [08:46:31]Write i2c OK [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: 01 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: 01 07 00 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 EF 0C 01 [08:46:31]RasterBufferAndPrint [08:46:31]line [08:46:31]line [08:46:31]line [08:46:31]line [08:46:31]line [08:46:31]written 0, free lines is 3326 [08:46:31]MH_Cut [08:46:31]Write to MH i2c: D1 01 00 04 03 01 D9 [08:46:31]Write i2c OK [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: D1 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: D1 01 00 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: D1 01 00 04 03 00 D8 [08:46:31]Write to MH i2c: 01 00 00 05 03 08 [08:46:31]Write i2c OK [08:46:31]MH_I2C_Read... [08:46:32]OFD Sender: No OFD packet to send [08:46:32]*** Cut start [08:46:32]*** Partial cut [08:46:32]*** CUTSNS_PIN = 1 [08:46:32]*** CUTSNS_PIN = 0 [08:46:32]*** Brake cut motor [08:46:33]Read from MH i2c: 01 [08:46:33]MH_I2C_Read... [08:46:33]*** Stop cut motor [08:46:33]*** Cut end [08:46:33]Read from MH i2c: 01 07 00 [08:46:33]MH_I2C_Read... [08:46:33]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FF 0F 1D [08:46:33]process_action close_receipt done [08:46:33]requested_data is exist [08:46:33]produce_requested_data [08:46:33]requested_item fm.sn is exist - process it [08:46:33]wFMCommunicate request_size=4 [08:46:33]MH_SAM_APDU [08:46:33]CAPDU: 80 11 00 00 [08:46:33]Write to MH i2c: E2 08 00 06 03 80 11 00 00 00 00 00 00 83 [08:46:33]Write i2c OK [08:46:33]MH_I2C_Read... [08:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:33]Read from MH i2c: E2 [08:46:33]MH_I2C_Read... [08:46:33]Read from MH i2c: E2 17 00 [08:46:33]MH_I2C_Read... [08:46:33]Read from MH i2c: E2 17 00 06 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 DA [08:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:46:33]wFMCommunicate OK [08:46:33]requested_item fd.num is exist - process it [08:46:33]SAM_PROTO_GetFieldsCounters [08:46:33]wFMCommunicate request_size=4 [08:46:33]MH_SAM_APDU [08:46:33]CAPDU: 80 13 00 00 [08:46:33]Write to MH i2c: E2 08 00 07 03 80 13 00 00 00 00 00 00 86 [08:46:33]Write i2c OK [08:46:33]MH_I2C_Read... [08:46:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:33]Read from MH i2c: E2 [08:46:33]MH_I2C_Read... [08:46:33]Read from MH i2c: E2 62 00 [08:46:33]MH_I2C_Read... [08:46:33]Read from MH i2c: E2 62 00 07 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 5F 10 01 00 0E 04 04 00 0E 02 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 5D [08:46:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 5F 10 01 00 0E 04 04 00 0E 02 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 [08:46:33]wFMCommunicate OK [08:46:33]SAM_PROTO_GetFieldsCounters done [08:46:33]requested_item shift.num is exist - process it [08:46:33]requested_item shift.opened is exist - process it [08:46:33]req_shift_opened [08:46:33]FM_GetShiftState [08:46:33]SAM_PROTO_GetShiftState [08:46:33]wFMCommunicate request_size=4 [08:46:33]MH_SAM_APDU [08:46:33]CAPDU: 80 13 01 00 [08:46:33]Write to MH i2c: E2 08 00 08 03 80 13 01 00 00 00 00 00 88 [08:46:33]Write i2c OK [08:46:33]MH_I2C_Read... [08:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:33]Read from MH i2c: E2 [08:46:33]MH_I2C_Read... [08:46:33]Read from MH i2c: E2 0E 00 [08:46:33]MH_I2C_Read... [08:46:33]Read from MH i2c: E2 0E 00 08 03 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 1A [08:46:33]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:46:33]wFMCommunicate OK [08:46:33]SAM_PROTO_GetShiftState done [08:46:33]FM_GetShiftState done [08:46:33]req_shift_opened done [08:46:33]requested_item shift.open_date is exist - process it [08:46:33]req_shift_open_date [08:46:33]req_shift_open_date done [08:46:33]produce_requested_data done [08:46:33]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69727,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [08:46:33]process_action_free close_receipt [08:46:33]json_value_free [08:46:33]json_value_free done [08:46:33]process_json_proto returns [08:46:33]Send response to host [08:46:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69727,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [08:46:33]free response buf [08:46:33]execute_script done [08:46:33]execute_script returns [08:46:33]free content buf [08:46:33]Sock 7.Close socket [08:46:33]Sock 7.Thread stoped [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]accept exits with 9 [08:48:52]New connection [08:48:52]New thread 3066629476 created [08:48:52]Thread 3066486116 joined [08:48:52]Waiting for new connection... [08:48:52] Sock 9.Parse request [08:48:52]Sock 9.Check first char [08:48:52]Sock 9.First char is OK [08:48:52]request: POST /json_proto HTTP/1.0 [08:48:52]Method: POST [08:48:52]URL: /json_proto [08:48:52]Method is POST - this is cgi request [08:48:52]url: /json_proto [08:48:52]query_string will be loaded in cgi processing [08:48:52]execute_cgi json_proto POST (null) [08:48:52]execute_cgi path=json_proto method=POST [08:48:52]POST find Content-Length [08:48:52]Host: 172.17.52.196:8080 [08:48:52]Content-Length: 625 [08:48:52]Content-Type: application/json [08:48:52] [08:48:52]POST finish read [08:48:52]Found Content-Length = 625 [08:48:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127131", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:52]execute_script... [08:48:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127131", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:52]POST & json_proto [08:48:52]process_json_proto [08:48:52]json parsed OK: [08:48:52]protocol is kg_v1.0 [08:48:52]action value=close_receipt [08:48:52]process_action close_receipt [08:48:52]cmd_close_receipt [08:48:52]MH_GetDate [08:48:52]Write to MH i2c: F0 00 00 09 03 FB [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: F0 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: F0 09 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: F0 09 00 09 03 00 F5 C3 14 67 60 05 E4 66 E6 [08:48:52]GetLastDocTimeStamp 1729413990 [08:48:52]current date 1729414133 [08:48:52]FM_GetShiftState [08:48:52]SAM_PROTO_GetShiftState [08:48:52]wFMCommunicate request_size=4 [08:48:52]MH_SAM_APDU [08:48:52]CAPDU: 80 13 01 00 [08:48:52]Write to MH i2c: E2 08 00 0A 03 80 13 01 00 00 00 00 00 8A [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:52]Read from MH i2c: E2 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 0E 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 0E 00 0A 03 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 1C [08:48:52]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:48:52]wFMCommunicate OK [08:48:52]SAM_PROTO_GetShiftState done [08:48:52]FM_GetShiftState done [08:48:52]opened in 1729384380 [08:48:52]opened+sec_in_day 1729470780 [08:48:52]quantity*price = 15400 [08:48:52]sum+1 = 15401 [08:48:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 18 20.10.2024 08:48 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69728 ФПД: 218540750593263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084853&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69728&fm=218540750593263&tin=02508201610067®Number=0000000000091770&sum=15400 0 [08:48:53]StoreToDocumentArchive [08:48:53]shift 526 fd 69728 [08:48:53]save to /storage/0526/doc_00069728 [08:48:53]save last doc name /storage/0526/doc_00069728 to /storage/kkm_last_doc_name [08:48:53]save OK [08:48:53]Clear old archive folders... [08:48:53]ProcessDocumentItem done err = 0, tmpTLVsize=277 [08:48:53]tlvbuf is 0095CEA0 [08:48:53]SAM_PROTO_ClearQueue [08:48:53]wFMCommunicate request_size=4 [08:48:53]MH_SAM_APDU [08:48:53]CAPDU: 80 09 00 00 [08:48:53]Write to MH i2c: E2 08 00 17 03 80 09 00 00 00 00 00 00 8C [08:48:53]Write i2c OK [08:48:53]MH_I2C_Read... [08:48:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:53]Read from MH i2c: E2 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: E2 03 00 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [08:48:53]RAPDU: 90 00 [08:48:53]wFMCommunicate OK [08:48:53]SAM_PROTO_ClearQueue done [08:48:53]KKMCreateOFDPacket [08:48:53]OFDProtocolAddRootSTLVToBuf [08:48:53]FM_MakeSignedData [08:48:53]FM_MakeSignedData [08:48:53]SAM_PROTO_SignData [08:48:53]wFMCommunicate request_size=4 [08:48:53]MH_SAM_APDU [08:48:53]CAPDU: 80 0D 01 02 [08:48:53]Write to MH i2c: E2 08 00 18 03 80 0D 01 02 00 00 00 00 94 [08:48:53]Write i2c OK [08:48:53]MH_I2C_Read... [08:48:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:53]Read from MH i2c: E2 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: E2 03 00 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [08:48:53]RAPDU: 90 00 [08:48:53]wFMCommunicate OK [08:48:53]wFMCommunicate request_size=255 [08:48:53]MH_SAM_APDU [08:48:53]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F5 C3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 [08:48:53]Write to MH i2c: E2 02 01 19 03 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F5 C3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 00 00 45 [08:48:53]Write i2c OK [08:48:53]MH_I2C_Read... [08:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:53]Read from MH i2c: E2 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: E2 03 00 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [08:48:53]RAPDU: 90 00 [08:48:53]wFMCommunicate OK [08:48:53]wFMCommunicate request_size=36 [08:48:53]MH_SAM_APDU [08:48:53]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 60 10 01 00 35 04 06 00 C6 C2 FB CE DC EF [08:48:53]Write to MH i2c: E2 27 00 1A 03 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 60 10 01 00 35 04 06 00 C6 C2 FB CE DC EF 00 00 4D [08:48:53]Write i2c OK [08:48:53]MH_I2C_Read... [08:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:53]Read from MH i2c: E2 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: E2 03 00 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [08:48:53]RAPDU: 90 00 [08:48:53]wFMCommunicate OK [08:48:53]wFMCommunicate request_size=4 [08:48:53]MH_SAM_APDU [08:48:53]CAPDU: 80 0D 03 02 [08:48:53]Write to MH i2c: E2 08 00 1B 03 80 0D 03 02 00 00 00 00 99 [08:48:53]Write i2c OK [08:48:53]MH_I2C_Read... [08:48:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:53]Read from MH i2c: E2 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: E2 0B 00 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: E2 0B 00 1B 03 00 10 37 78 18 46 38 23 0F 90 00 21 [08:48:53]RAPDU: 10 37 78 18 46 38 23 0F 90 00 [08:48:53]wFMCommunicate OK [08:48:53]SAM_PROTO_SignData done [08:48:53]FM_MakeSignedData done [08:48:53]CreateOFDProtocolMessage [08:48:53]wFMCommunicate request_size=4 [08:48:53]MH_SAM_APDU [08:48:53]CAPDU: 80 11 00 00 [08:48:53]Write to MH i2c: E2 08 00 1C 03 80 11 00 00 00 00 00 00 99 [08:48:53]Write i2c OK [08:48:53]MH_I2C_Read... [08:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:53]Read from MH i2c: E2 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: E2 17 00 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: E2 17 00 1C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 F0 [08:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:48:53]wFMCommunicate OK [08:48:53]CreateOFDProtocolMessage done [08:48:53]OFDSenderStorePacket 69728 [08:48:53]StoreOFDPacket docnum=69728 [08:48:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 29 01 00 00 C8 D3 21 01 DD 1D 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F5 C3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 60 10 01 00 35 04 06 00 C6 C2 FB CE DC EF 10 37 78 18 46 38 23 0F [08:48:53]CheckFolder [08:48:53]dirname=/storage/ofd_packets [08:48:53]CheckFolder done [08:48:53]ProducePacketName [08:48:53]name=ofd_packets/00069728 [08:48:53]NVStorageSaveData ofd_packets/00069728 [08:48:53]File name is /storage/ofd_packets/00069728 [08:48:53]Write 327 bytes [08:48:53]NVStorageSaveData done [08:48:53]OFDSenderStorePacket done [08:48:53]KKMCreateOFDPacket done [08:48:53]NVStorageSaveData kkm_last_timestamp [08:48:53]File name is /storage/kkm_last_timestamp [08:48:53]Write 4 bytes [08:48:53]NVStorageSaveData done [08:48:53]ExternCall_PrintAddStr [08:48:53]wPrintStart [08:48:53]Write to MH i2c: 01 00 00 1D 03 20 [08:48:53]Write i2c OK [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: 01 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: 01 07 00 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: 01 07 00 1D 03 00 00 00 00 00 FF 0F 35 [08:48:53]RasterBufferAndPrint [08:48:53]line Счет N : (3)127131 [08:48:53]line ИНН: 02508201610067 [08:48:53]line Контрольно-Кассовый Чек [08:48:53]line ПРОДАЖА [08:48:53]line Товар: 46230607 [08:48:53]line Сигареты Richmond Bronze Edition [08:48:53]line 1.000 * 154.00 [08:48:53]line = 154.00 [08:48:53]line НДС 12% НСП 1% [08:48:53]line > о реализуемом товаре [08:48:53]line ИТОГО: 154.00 [08:48:53]line НСП 1% : 1.36 [08:48:53]line НДС 12% : 16.35 [08:48:53]line Наличными: 154.00 [08:48:53]line Безнал.: 0.00 [08:48:53]line Место: АЗС № 163 "Партнер Нефть" [08:48:53]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [08:48:53]line СНО: Общий режим [08:48:53]line Чек 18 20.10.2024 08:48 [08:48:53]line Смена: 526 ФФД: 1.0 [08:48:53]line ЗНМ: 0300000101 [08:48:53]line РНМ: 0000000000091770 [08:48:53]line Версия ККМ: 001 [08:48:53]line ФМ: 0000000000871749 [08:48:53]line ФД: 69728 [08:48:53]line ФПД: 218540750593263 [08:48:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T084853&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69728&fm=218540750593263&tin=02508201610067®Number=0000000000091770&sum=15400 [08:48:54]line 0 [08:48:54]OFD Sender: Processing packet 69728 [packets to send 32, broken 31] [08:48:54]ProducePacketName [08:48:54]name=ofd_packets/00069728 [08:48:54]OFD Sender: To server: pG, [08:48:54]CommunicateWithHost lk.salyk.kg:30040 [08:48:54]ConnectInit lk.salyk.kg [08:48:54]written 0, free lines is 4095 [08:48:54]Connected sock=11 [08:48:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 29 01 00 00 C8 D3 21 01 DD 1D 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F5 C3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 60 10 01 00 35 04 06 00 C6 C2 FB CE DC EF 10 37 78 18 46 38 23 0F [08:48:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 A1 E8 47 00 46 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 60 10 01 00 F4 03 04 00 78 69 14 67 B6 04 01 00 00 C4 AC 9E CB 93 63 35 85 [08:48:54]CommunicateWithHost err = 0 [08:48:54]CheckOFDResponse [08:48:54]1017 (14) - 77093643461234 [08:48:54]1041 (16) - 0000000000871749 [08:48:54]1040 (4) - 69728 [08:48:54]1012 (4) - 20.10.2024 02:22 [08:48:54]1206 (1) - 0 [08:48:54]OFD Sender: Remove packet 69728 [08:48:54]ProducePacketName [08:48:54]name=ofd_packets/00069728 [08:48:54]NVStorageDeleteData [08:48:54]Write to MH i2c: 01 00 00 46 03 49 [08:48:54]Write i2c OK [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: 01 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: 01 07 00 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: 01 07 00 46 03 00 00 00 00 00 CD 0C 29 [08:48:54]RasterBufferAndPrint [08:48:54]line [08:48:54]line [08:48:54]line [08:48:54]line [08:48:54]line [08:48:54]written 0, free lines is 3281 [08:48:54]MH_Cut [08:48:54]Write to MH i2c: D1 01 00 4D 03 01 22 [08:48:54]Write i2c OK [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: D1 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: D1 01 00 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: D1 01 00 4D 03 00 21 [08:48:54]Write to MH i2c: 01 00 00 4E 03 51 [08:48:54]Write i2c OK [08:48:54]MH_I2C_Read... [08:48:54]OFD Sender: No OFD packet to send [08:48:55]*** Cut start [08:48:55]*** Partial cut [08:48:55]*** CUTSNS_PIN = 1 [08:48:55]*** CUTSNS_PIN = 0 [08:48:55]*** Brake cut motor [08:48:56]Read from MH i2c: 01 [08:48:56]MH_I2C_Read... [08:48:56]*** Stop cut motor [08:48:56]*** Cut end [08:48:56]Read from MH i2c: 01 07 00 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: 01 07 00 4E 03 00 00 00 00 00 FF 0F 66 [08:48:56]process_action close_receipt done [08:48:56]requested_data is exist [08:48:56]produce_requested_data [08:48:56]requested_item fm.sn is exist - process it [08:48:56]wFMCommunicate request_size=4 [08:48:56]MH_SAM_APDU [08:48:56]CAPDU: 80 11 00 00 [08:48:56]Write to MH i2c: E2 08 00 4F 03 80 11 00 00 00 00 00 00 CC [08:48:56]Write i2c OK [08:48:56]MH_I2C_Read... [08:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:56]Read from MH i2c: E2 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: E2 17 00 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: E2 17 00 4F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 23 [08:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:48:56]wFMCommunicate OK [08:48:56]requested_item fd.num is exist - process it [08:48:56]SAM_PROTO_GetFieldsCounters [08:48:56]wFMCommunicate request_size=4 [08:48:56]MH_SAM_APDU [08:48:56]CAPDU: 80 13 00 00 [08:48:56]Write to MH i2c: E2 08 00 50 03 80 13 00 00 00 00 00 00 CF [08:48:56]Write i2c OK [08:48:56]MH_I2C_Read... [08:48:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:56]Read from MH i2c: E2 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: E2 62 00 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: E2 62 00 50 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 60 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [08:48: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 60 10 01 00 0E 04 04 00 0E 02 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 [08:48:56]wFMCommunicate OK [08:48:56]SAM_PROTO_GetFieldsCounters done [08:48:56]requested_item shift.num is exist - process it [08:48:56]requested_item shift.opened is exist - process it [08:48:56]req_shift_opened [08:48:56]FM_GetShiftState [08:48:56]SAM_PROTO_GetShiftState [08:48:56]wFMCommunicate request_size=4 [08:48:56]MH_SAM_APDU [08:48:56]CAPDU: 80 13 01 00 [08:48:56]Write to MH i2c: E2 08 00 51 03 80 13 01 00 00 00 00 00 D1 [08:48:56]Write i2c OK [08:48:56]MH_I2C_Read... [08:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:56]Read from MH i2c: E2 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: E2 0E 00 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: E2 0E 00 51 03 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 63 [08:48:56]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:48:56]wFMCommunicate OK [08:48:56]SAM_PROTO_GetShiftState done [08:48:56]FM_GetShiftState done [08:48:56]req_shift_opened done [08:48:56]requested_item shift.open_date is exist - process it [08:48:56]req_shift_open_date [08:48:56]req_shift_open_date done [08:48:56]produce_requested_data done [08:48:56]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69728,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [08:48:56]process_action_free close_receipt [08:48:56]json_value_free [08:48:56]json_value_free done [08:48:56]process_json_proto returns [08:48:56]Send response to host [08:48:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69728,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [08:48:56]free response buf [08:48:56]execute_script done [08:48:56]execute_script returns [08:48:56]free content buf [08:48:56]Sock 9.Close socket [08:48:56]Sock 9.Thread stoped [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50: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:52:57]accept exits with 7 [08:52:57]New connection [08:52:57]New thread 3066486116 created [08:52:57]Thread 3066629476 joined [08:52:57]Waiting for new connection... [08:52:57] Sock 7.Parse request [08:52:57]Sock 7.Check first char [08:52:57]Sock 7.First char is OK [08:52:57]request: POST /json_proto HTTP/1.0 [08:52:57]Method: POST [08:52:57]URL: /json_proto [08:52:57]Method is POST - this is cgi request [08:52:57]url: /json_proto [08:52:57]query_string will be loaded in cgi processing [08:52:57]execute_cgi json_proto POST (null) [08:52:57]execute_cgi path=json_proto method=POST [08:52:57]POST find Content-Length [08:52:57]Host: 172.17.52.196:8080 [08:52:57]Content-Length: 906 [08:52:57]Content-Type: application/json [08:52:57] [08:52:57]POST finish read [08:52:57]Found Content-Length = 906 [08:52:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127132", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036200014", "name": "\u041A\u043E\u0444\u0435 \u042D\u0441\u043F\u0440\u0435\u0441\u0441\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:57]execute_script... [08:52: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 : (3)127132", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036200014", "name": "\u041A\u043E\u0444\u0435 \u042D\u0441\u043F\u0440\u0435\u0441\u0441\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:57]POST & json_proto [08:52:57]process_json_proto [08:52:57]json parsed OK: [08:52:57]protocol is kg_v1.0 [08:52:57]action value=close_receipt [08:52:57]process_action close_receipt [08:52:57]cmd_close_receipt [08:52:57]MH_GetDate [08:52:57]Write to MH i2c: F0 00 00 52 03 44 [08:52:57]Write i2c OK [08:52:57]MH_I2C_Read... [08:52:57]Read from MH i2c: F0 [08:52:57]MH_I2C_Read... [08:52:57]Read from MH i2c: F0 09 00 [08:52:57]MH_I2C_Read... [08:52:57]Read from MH i2c: F0 09 00 52 03 00 EA C4 14 67 60 05 E4 66 25 [08:52:57]GetLastDocTimeStamp 1729414133 [08:52:57]current date 1729414378 [08:52:57]FM_GetShiftState [08:52:57]SAM_PROTO_GetShiftState [08:52:57]wFMCommunicate request_size=4 [08:52:57]MH_SAM_APDU [08:52:57]CAPDU: 80 13 01 00 [08:52:57]Write to MH i2c: E2 08 00 53 03 80 13 01 00 00 00 00 00 D3 [08:52:57]Write i2c OK [08:52:57]MH_I2C_Read... [08:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:57]Read from MH i2c: E2 [08:52:57]MH_I2C_Read... [08:52:57]Read from MH i2c: E2 0E 00 [08:52:57]MH_I2C_Read... [08:52:57]Read from MH i2c: E2 0E 00 53 03 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 65 [08:52:57]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:52:57]wFMCommunicate OK [08:52:57]SAM_PROTO_GetShiftState done [08:52:57]FM_GetShiftState done [08:52:57]opened in 1729384380 [08:52:57]opened+sec_in_day 1729470780 [08:52:57]quantity*price = 15900 [08:52:57]sum+1 = 15901 [08:52:57]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036200014 Кофе Эспрессо (GABB TRADE) 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 264.00 НСП 1% : 2.34 НДС 12% : 28.03 Наличными: 264.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 19 20.10.2024 08:52 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69729 ФПД: 19783577286374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085258&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69729&fm=19783577286374&tin=02508201610067®Number=0000000000091770&sum=26400 0 [08:52:58]StoreToDocumentArchive [08:52:58]shift 526 fd 69729 [08:52:58]save to /storage/0526/doc_00069729 [08:52:58]save last doc name /storage/0526/doc_00069729 to /storage/kkm_last_doc_name [08:52:58]save OK [08:52:58]Clear old archive folders... [08:52:58]ProcessDocumentItem done err = 0, tmpTLVsize=388 [08:52:58]tlvbuf is 009810F0 [08:52:58]SAM_PROTO_ClearQueue [08:52:58]wFMCommunicate request_size=4 [08:52:58]MH_SAM_APDU [08:52:58]CAPDU: 80 09 00 00 [08:52:58]Write to MH i2c: E2 08 00 60 03 80 09 00 00 00 00 00 00 D5 [08:52:58]Write i2c OK [08:52:58]MH_I2C_Read... [08:52:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:58]Read from MH i2c: E2 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 03 00 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [08:52:58]RAPDU: 90 00 [08:52:58]wFMCommunicate OK [08:52:58]SAM_PROTO_ClearQueue done [08:52:58]KKMCreateOFDPacket [08:52:58]OFDProtocolAddRootSTLVToBuf [08:52:58]FM_MakeSignedData [08:52:58]FM_MakeSignedData [08:52:58]SAM_PROTO_SignData [08:52:58]wFMCommunicate request_size=4 [08:52:58]MH_SAM_APDU [08:52:58]CAPDU: 80 0D 01 02 [08:52:58]Write to MH i2c: E2 08 00 61 03 80 0D 01 02 00 00 00 00 DD [08:52:58]Write i2c OK [08:52:58]MH_I2C_Read... [08:52:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:58]Read from MH i2c: E2 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 03 00 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [08:52:58]RAPDU: 90 00 [08:52:58]wFMCommunicate OK [08:52:58]wFMCommunicate request_size=255 [08:52:58]MH_SAM_APDU [08:52:58]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [08:52:58]Write to MH i2c: E2 02 01 62 03 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 FD [08:52:58]Write i2c OK [08:52:58]MH_I2C_Read... [08:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:58]Read from MH i2c: E2 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 03 00 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [08:52:58]RAPDU: 90 00 [08:52:58]wFMCommunicate OK [08:52:58]wFMCommunicate request_size=147 [08:52:58]MH_SAM_APDU [08:52:58]CAPDU: 80 0D 02 02 8E F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 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 EA C4 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 61 10 01 00 35 04 06 00 11 FE 39 18 B6 E6 [08:52:58]Write to MH i2c: E2 96 00 63 03 80 0D 02 02 8E 00 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 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 EA C4 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 61 10 01 00 35 04 06 00 11 FE 39 18 B6 E6 00 00 54 [08:52:58]Write i2c OK [08:52:58]MH_I2C_Read... [08:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:58]Read from MH i2c: E2 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 03 00 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [08:52:58]RAPDU: 90 00 [08:52:58]wFMCommunicate OK [08:52:58]wFMCommunicate request_size=4 [08:52:58]MH_SAM_APDU [08:52:58]CAPDU: 80 0D 03 02 [08:52:58]Write to MH i2c: E2 08 00 64 03 80 0D 03 02 00 00 00 00 E2 [08:52:58]Write i2c OK [08:52:58]MH_I2C_Read... [08:52:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:59]Read from MH i2c: E2 [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: E2 0B 00 [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: E2 0B 00 64 03 00 59 BD 4B 93 D2 89 13 2F 90 00 74 [08:52:59]RAPDU: 59 BD 4B 93 D2 89 13 2F 90 00 [08:52:59]wFMCommunicate OK [08:52:59]SAM_PROTO_SignData done [08:52:59]FM_MakeSignedData done [08:52:59]CreateOFDProtocolMessage [08:52:59]wFMCommunicate request_size=4 [08:52:59]MH_SAM_APDU [08:52:59]CAPDU: 80 11 00 00 [08:52:59]Write to MH i2c: E2 08 00 65 03 80 11 00 00 00 00 00 00 E2 [08:52:59]Write i2c OK [08:52:59]MH_I2C_Read... [08:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:59]Read from MH i2c: E2 [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: E2 17 00 [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: E2 17 00 65 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 39 [08:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:52:59]wFMCommunicate OK [08:52:59]CreateOFDProtocolMessage done [08:52:59]OFDSenderStorePacket 69729 [08:52:59]StoreOFDPacket docnum=69729 [08:52:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 98 01 00 00 8F D3 90 01 22 65 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 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 EA C4 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 61 10 01 00 35 04 06 00 11 FE 39 18 B6 E6 59 BD 4B 93 D2 89 13 2F [08:52:59]CheckFolder [08:52:59]dirname=/storage/ofd_packets [08:52:59]CheckFolder done [08:52:59]ProducePacketName [08:52:59]name=ofd_packets/00069729 [08:52:59]NVStorageSaveData ofd_packets/00069729 [08:52:59]File name is /storage/ofd_packets/00069729 [08:52:59]Write 438 bytes [08:52:59]NVStorageSaveData done [08:52:59]OFDSenderStorePacket done [08:52:59]KKMCreateOFDPacket done [08:52:59]NVStorageSaveData kkm_last_timestamp [08:52:59]File name is /storage/kkm_last_timestamp [08:52:59]Write 4 bytes [08:52:59]NVStorageSaveData done [08:52:59]ExternCall_PrintAddStr [08:52:59]wPrintStart [08:52:59]Write to MH i2c: 01 00 00 66 03 69 [08:52:59]Write i2c OK [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: 01 [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: 01 07 00 [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: 01 07 00 66 03 00 00 00 00 00 FF 0F 7E [08:52:59]RasterBufferAndPrint [08:52:59]line Счет N : (3)127132 [08:52:59]line ИНН: 02508201610067 [08:52:59]line Контрольно-Кассовый Чек [08:52:59]line ПРОДАЖА [08:52:59]line Товар: 90162602 [08:52:59]line Энерг напиток Red bull 0,25л [08:52:59]line 1.000 * 159.00 [08:52:59]line = 159.00 [08:52:59]line НДС 12% НСП 1% [08:52:59]line > о реализуемом товаре [08:52:59]line Товар: 2000036200014 [08:52:59]line Кофе Эспрессо (GABB TRADE) [08:52:59]line 1.000 * 105.00 [08:52:59]line = 105.00 [08:52:59]line НДС 12% НСП 1% [08:52:59]line > о реализуемом товаре [08:52:59]line ИТОГО: 264.00 [08:52:59]line НСП 1% : 2.34 [08:52:59]line НДС 12% : 28.03 [08:52:59]line Наличными: 264.00 [08:52:59]line Безнал.: 0.00 [08:52:59]line Место: АЗС № 163 "Партнер Нефть" [08:52:59]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [08:52:59]line СНО: Общий режим [08:52:59]line Чек 19 20.10.2024 08:52 [08:52:59]line Смена: 526 ФФД: 1.0 [08:52:59]line ЗНМ: 0300000101 [08:52:59]line РНМ: 0000000000091770 [08:52:59]line Версия ККМ: 001 [08:52:59]line ФМ: 0000000000871749 [08:52:59]line ФД: 69729 [08:52:59]line ФПД: 19783577286374 [08:52:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085258&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69729&fm=19783577286374&tin=02508201610067®Number=0000000000091770&sum=26400 [08:52:59]line 0 [08:52:59]OFD Sender: Processing packet 69729 [packets to send 32, broken 31] [08:52:59]ProducePacketName [08:52:59]name=ofd_packets/00069729 [08:52:59]OFD Sender: To server: pG, [08:52:59]CommunicateWithHost lk.salyk.kg:30040 [08:52:59]ConnectInit lk.salyk.kg [08:52:59]written 0, free lines is 4095 [08:52:59]Connected sock=9 [08:52:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 98 01 00 00 8F D3 90 01 22 65 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 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 EA C4 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 61 10 01 00 35 04 06 00 11 FE 39 18 B6 E6 59 BD 4B 93 D2 89 13 2F [08:52:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 38 56 47 00 53 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 61 10 01 00 F4 03 04 00 6D 6A 14 67 B6 04 01 00 00 9C 46 98 8B D4 5D 3A 7C [08:52:59]CommunicateWithHost err = 0 [08:52:59]CheckOFDResponse [08:52:59]1017 (14) - 77093643461234 [08:52:59]1041 (16) - 0000000000871749 [08:52:59]1040 (4) - 69729 [08:52:59]1012 (4) - 20.10.2024 02:26 [08:52:59]1206 (1) - 0 [08:52:59]OFD Sender: Remove packet 69729 [08:52:59]ProducePacketName [08:52:59]name=ofd_packets/00069729 [08:52:59]NVStorageDeleteData [08:52:59]Write to MH i2c: 01 00 00 94 03 97 [08:52:59]Write i2c OK [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: 01 [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: 01 07 00 [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: 01 07 00 94 03 00 00 00 00 00 A1 0C 4B [08:52:59]RasterBufferAndPrint [08:52:59]line [08:52:59]line [08:52:59]line [08:52:59]line [08:52:59]line [08:52:59]written 0, free lines is 3240 [08:52:59]MH_Cut [08:52:59]Write to MH i2c: D1 01 00 9B 03 01 70 [08:52:59]Write i2c OK [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: D1 [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: D1 01 00 [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: D1 01 00 9B 03 00 6F [08:52:59]Write to MH i2c: 01 00 00 9C 03 9F [08:52:59]Write i2c OK [08:52:59]MH_I2C_Read... [08:53:00]OFD Sender: No OFD packet to send [08:53:00]*** Cut start [08:53:00]*** Partial cut [08:53:00]*** CUTSNS_PIN = 1 [08:53:00]*** CUTSNS_PIN = 0 [08:53:01]*** Brake cut motor [08:53:01]Read from MH i2c: 01 [08:53:01]MH_I2C_Read... [08:53:01]*** Stop cut motor [08:53:01]*** Cut end [08:53:01]Read from MH i2c: 01 07 00 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: 01 07 00 9C 03 00 00 00 00 00 FF 0F B4 [08:53:01]process_action close_receipt done [08:53:01]requested_data is exist [08:53:01]produce_requested_data [08:53:01]requested_item fm.sn is exist - process it [08:53:01]wFMCommunicate request_size=4 [08:53:01]MH_SAM_APDU [08:53:01]CAPDU: 80 11 00 00 [08:53:01]Write to MH i2c: E2 08 00 9D 03 80 11 00 00 00 00 00 00 1A [08:53:01]Write i2c OK [08:53:01]MH_I2C_Read... [08:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:01]Read from MH i2c: E2 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: E2 17 00 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: E2 17 00 9D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 71 [08:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:53:01]wFMCommunicate OK [08:53:01]requested_item fd.num is exist - process it [08:53:01]SAM_PROTO_GetFieldsCounters [08:53:01]wFMCommunicate request_size=4 [08:53:01]MH_SAM_APDU [08:53:01]CAPDU: 80 13 00 00 [08:53:01]Write to MH i2c: E2 08 00 9E 03 80 13 00 00 00 00 00 00 1D [08:53:01]Write i2c OK [08:53:01]MH_I2C_Read... [08:53:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:01]Read from MH i2c: E2 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: E2 62 00 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: E2 62 00 9E 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 61 10 01 00 0E 04 04 00 0E 02 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 FC [08:53: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 61 10 01 00 0E 04 04 00 0E 02 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 [08:53:01]wFMCommunicate OK [08:53:01]SAM_PROTO_GetFieldsCounters done [08:53:01]requested_item shift.num is exist - process it [08:53:01]requested_item shift.opened is exist - process it [08:53:01]req_shift_opened [08:53:01]FM_GetShiftState [08:53:01]SAM_PROTO_GetShiftState [08:53:01]wFMCommunicate request_size=4 [08:53:01]MH_SAM_APDU [08:53:01]CAPDU: 80 13 01 00 [08:53:01]Write to MH i2c: E2 08 00 9F 03 80 13 01 00 00 00 00 00 1F [08:53:01]Write i2c OK [08:53:01]MH_I2C_Read... [08:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:01]Read from MH i2c: E2 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: E2 0E 00 [08:53:01]MH_I2C_Read... [08:53:01]Read from MH i2c: E2 0E 00 9F 03 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 B1 [08:53:01]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:53:01]wFMCommunicate OK [08:53:01]SAM_PROTO_GetShiftState done [08:53:01]FM_GetShiftState done [08:53:01]req_shift_opened done [08:53:01]requested_item shift.open_date is exist - process it [08:53:01]req_shift_open_date [08:53:01]req_shift_open_date done [08:53:01]produce_requested_data done [08:53:01]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69729,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [08:53:01]process_action_free close_receipt [08:53:01]json_value_free [08:53:01]json_value_free done [08:53:01]process_json_proto returns [08:53:01]Send response to host [08:53:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69729,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [08:53:01]free response buf [08:53:01]execute_script done [08:53:01]execute_script returns [08:53:01]free content buf [08:53:01]Sock 7.Close socket [08:53:01]Sock 7.Thread stoped [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:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:54:57]accept exits with 10 [08:54:57]New connection [08:54:57]New thread 3066629476 created [08:54:57]Thread 3066486116 joined [08:54:57]Waiting for new connection... [08:54:57] Sock 10.Parse request [08:54:57]Sock 10.Check first char [08:54:57]Sock 10.First char is OK [08:54:57]request: POST /json_proto HTTP/1.0 [08:54:57]Method: POST [08:54:57]URL: /json_proto [08:54:57]Method is POST - this is cgi request [08:54:57]url: /json_proto [08:54:57]query_string will be loaded in cgi processing [08:54:57]execute_cgi json_proto POST (null) [08:54:57]execute_cgi path=json_proto method=POST [08:54:57]POST find Content-Length [08:54:57]Host: 172.17.52.196:8080 [08:54:57]Content-Length: 622 [08:54:57]Content-Type: application/json [08:54:57] [08:54:57]POST finish read [08:54:57]Found Content-Length = 622 [08:54:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127133", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:57]execute_script... [08:54: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 : (3)127133", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:57]POST & json_proto [08:54:57]process_json_proto [08:54:57]json parsed OK: [08:54:57]protocol is kg_v1.0 [08:54:57]action value=close_receipt [08:54:57]process_action close_receipt [08:54:57]cmd_close_receipt [08:54:57]MH_GetDate [08:54:57]Write to MH i2c: F0 00 00 A0 03 92 [08:54:57]Write i2c OK [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: F0 [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: F0 09 00 [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: F0 09 00 A0 03 00 62 C5 14 67 60 05 E4 66 EC [08:54:57]GetLastDocTimeStamp 1729414378 [08:54:57]current date 1729414498 [08:54:57]FM_GetShiftState [08:54:57]SAM_PROTO_GetShiftState [08:54:57]wFMCommunicate request_size=4 [08:54:57]MH_SAM_APDU [08:54:57]CAPDU: 80 13 01 00 [08:54:57]Write to MH i2c: E2 08 00 A1 03 80 13 01 00 00 00 00 00 21 [08:54:57]Write i2c OK [08:54:57]MH_I2C_Read... [08:54:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:57]Read from MH i2c: E2 [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: E2 0E 00 [08:54:57]MH_I2C_Read... [08:54:57]Read from MH i2c: E2 0E 00 A1 03 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 B3 [08:54:57]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:54:57]wFMCommunicate OK [08:54:57]SAM_PROTO_GetShiftState done [08:54:57]FM_GetShiftState done [08:54:57]opened in 1729384380 [08:54:57]opened+sec_in_day 1729470780 [08:54:57]quantity*price = 16000 [08:54:57]sum+1 = 16001 [08:54:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 20 20.10.2024 08:54 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69730 ФПД: 161656196620227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085458&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69730&fm=161656196620227&tin=02508201610067®Number=0000000000091770&sum=16000 0 [08:54:58]StoreToDocumentArchive [08:54:58]shift 526 fd 69730 [08:54:58]save to /storage/0526/doc_00069730 [08:54:58]save last doc name /storage/0526/doc_00069730 to /storage/kkm_last_doc_name [08:54:58]save OK [08:54:58]Clear old archive folders... [08:54:58]ProcessDocumentItem done err = 0, tmpTLVsize=274 [08:54:58]tlvbuf is 0097D4A0 [08:54:58]SAM_PROTO_ClearQueue [08:54:58]wFMCommunicate request_size=4 [08:54:58]MH_SAM_APDU [08:54:58]CAPDU: 80 09 00 00 [08:54:58]Write to MH i2c: E2 08 00 AE 03 80 09 00 00 00 00 00 00 23 [08:54:58]Write i2c OK [08:54:58]MH_I2C_Read... [08:54:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:58]Read from MH i2c: E2 [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: E2 03 00 [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [08:54:58]RAPDU: 90 00 [08:54:58]wFMCommunicate OK [08:54:58]SAM_PROTO_ClearQueue done [08:54:58]KKMCreateOFDPacket [08:54:58]OFDProtocolAddRootSTLVToBuf [08:54:58]FM_MakeSignedData [08:54:58]FM_MakeSignedData [08:54:58]SAM_PROTO_SignData [08:54:58]wFMCommunicate request_size=4 [08:54:58]MH_SAM_APDU [08:54:58]CAPDU: 80 0D 01 02 [08:54:58]Write to MH i2c: E2 08 00 AF 03 80 0D 01 02 00 00 00 00 2B [08:54:58]Write i2c OK [08:54:58]MH_I2C_Read... [08:54:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:58]Read from MH i2c: E2 [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: E2 03 00 [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [08:54:58]RAPDU: 90 00 [08:54:58]wFMCommunicate OK [08:54:58]wFMCommunicate request_size=255 [08:54:58]MH_SAM_APDU [08:54:58]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 62 C5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 [08:54:58]Write to MH i2c: E2 02 01 B0 03 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 62 C5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 00 00 41 [08:54:58]Write i2c OK [08:54:58]MH_I2C_Read... [08:54:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:58]Read from MH i2c: E2 [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: E2 03 00 [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [08:54:58]RAPDU: 90 00 [08:54:58]wFMCommunicate OK [08:54:58]wFMCommunicate request_size=33 [08:54:58]MH_SAM_APDU [08:54:58]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 37 34 39 10 04 04 00 62 10 01 00 35 04 06 00 93 06 84 2C DF C3 [08:54:58]Write to MH i2c: E2 24 00 B1 03 80 0D 02 02 1C 00 30 30 30 30 38 37 31 37 34 39 10 04 04 00 62 10 01 00 35 04 06 00 93 06 84 2C DF C3 00 00 1F [08:54:58]Write i2c OK [08:54:58]MH_I2C_Read... [08:54:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:58]Read from MH i2c: E2 [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: E2 03 00 [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [08:54:58]RAPDU: 90 00 [08:54:58]wFMCommunicate OK [08:54:58]wFMCommunicate request_size=4 [08:54:58]MH_SAM_APDU [08:54:58]CAPDU: 80 0D 03 02 [08:54:58]Write to MH i2c: E2 08 00 B2 03 80 0D 03 02 00 00 00 00 30 [08:54:58]Write i2c OK [08:54:58]MH_I2C_Read... [08:54:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:58]Read from MH i2c: E2 [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: E2 0B 00 [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: E2 0B 00 B2 03 00 05 3C 7F 26 66 2D 11 28 90 00 E3 [08:54:58]RAPDU: 05 3C 7F 26 66 2D 11 28 90 00 [08:54:58]wFMCommunicate OK [08:54:58]SAM_PROTO_SignData done [08:54:58]FM_MakeSignedData done [08:54:58]CreateOFDProtocolMessage [08:54:58]wFMCommunicate request_size=4 [08:54:58]MH_SAM_APDU [08:54:58]CAPDU: 80 11 00 00 [08:54:58]Write to MH i2c: E2 08 00 B3 03 80 11 00 00 00 00 00 00 30 [08:54:58]Write i2c OK [08:54:58]MH_I2C_Read... [08:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:58]Read from MH i2c: E2 [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: E2 17 00 [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: E2 17 00 B3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 87 [08:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:54:58]wFMCommunicate OK [08:54:58]CreateOFDProtocolMessage done [08:54:58]OFDSenderStorePacket 69730 [08:54:58]StoreOFDPacket docnum=69730 [08:54:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 C6 78 1E 01 22 63 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 62 C5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 62 10 01 00 35 04 06 00 93 06 84 2C DF C3 05 3C 7F 26 66 2D 11 28 [08:54:58]CheckFolder [08:54:58]dirname=/storage/ofd_packets [08:54:58]CheckFolder done [08:54:58]ProducePacketName [08:54:58]name=ofd_packets/00069730 [08:54:58]NVStorageSaveData ofd_packets/00069730 [08:54:58]File name is /storage/ofd_packets/00069730 [08:54:58]Write 324 bytes [08:54:58]NVStorageSaveData done [08:54:58]OFDSenderStorePacket done [08:54:58]KKMCreateOFDPacket done [08:54:58]NVStorageSaveData kkm_last_timestamp [08:54:58]File name is /storage/kkm_last_timestamp [08:54:58]Write 4 bytes [08:54:58]NVStorageSaveData done [08:54:58]ExternCall_PrintAddStr [08:54:58]wPrintStart [08:54:58]Write to MH i2c: 01 00 00 B4 03 B7 [08:54:58]Write i2c OK [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: 01 [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: 01 07 00 [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: 01 07 00 B4 03 00 00 00 00 00 FF 0F CC [08:54:58]RasterBufferAndPrint [08:54:58]line Счет N : (3)127133 [08:54:58]line ИНН: 02508201610067 [08:54:58]line Контрольно-Кассовый Чек [08:54:58]line ПРОДАЖА [08:54:58]line Товар: 48741958 [08:54:58]line Сигареты Parliament Aqua Blue [08:54:58]line 1.000 * 160.00 [08:54:58]line = 160.00 [08:54:58]line НДС 12% НСП 1% [08:54:58]line > о реализуемом товаре [08:54:58]line ИТОГО: 160.00 [08:54:58]line НСП 1% : 1.42 [08:54:58]line НДС 12% : 16.99 [08:54:58]line Наличными: 160.00 [08:54:58]line Безнал.: 0.00 [08:54:58]line Место: АЗС № 163 "Партнер Нефть" [08:54:58]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [08:54:58]line СНО: Общий режим [08:54:58]line Чек 20 20.10.2024 08:54 [08:54:58]line Смена: 526 ФФД: 1.0 [08:54:58]line ЗНМ: 0300000101 [08:54:58]line РНМ: 0000000000091770 [08:54:58]line Версия ККМ: 001 [08:54:58]line ФМ: 0000000000871749 [08:54:58]line ФД: 69730 [08:54:58]line ФПД: 161656196620227 [08:54:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085458&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69730&fm=161656196620227&tin=02508201610067®Number=0000000000091770&sum=16000 [08:54:59]OFD Sender: Processing packet 69730 [packets to send 32, broken 31] [08:54:59]ProducePacketName [08:54:59]name=ofd_packets/00069730 [08:54:59]OFD Sender: To server: pG, [08:54:59]CommunicateWithHost lk.salyk.kg:30040 [08:54:59]ConnectInit lk.salyk.kg [08:54:59]line 0 [08:54:59]written 0, free lines is 4095 [08:54:59]Connected sock=9 [08:54:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 C6 78 1E 01 22 63 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 62 C5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 62 10 01 00 35 04 06 00 93 06 84 2C DF C3 05 3C 7F 26 66 2D 11 28 [08:54:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 FC 94 47 00 B0 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 62 10 01 00 F4 03 04 00 E5 6A 14 67 B6 04 01 00 00 1D EC 62 69 5E 5B E5 BF [08:54:59]CommunicateWithHost err = 0 [08:54:59]CheckOFDResponse [08:54:59]1017 (14) - 77093643461234 [08:54:59]1041 (16) - 0000000000871749 [08:54:59]1040 (4) - 69730 [08:54:59]1012 (4) - 20.10.2024 02:28 [08:54:59]1206 (1) - 0 [08:54:59]OFD Sender: Remove packet 69730 [08:54:59]ProducePacketName [08:54:59]name=ofd_packets/00069730 [08:54:59]NVStorageDeleteData [08:54:59]Write to MH i2c: 01 00 00 DD 03 E0 [08:54:59]Write i2c OK [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: 01 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: 01 07 00 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: 01 07 00 DD 03 00 00 00 00 00 E1 0C D4 [08:54:59]RasterBufferAndPrint [08:54:59]line [08:54:59]line [08:54:59]line [08:54:59]line [08:54:59]line [08:54:59]written 0, free lines is 3303 [08:54:59]MH_Cut [08:54:59]Write to MH i2c: D1 01 00 E4 03 01 B9 [08:54:59]Write i2c OK [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: D1 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: D1 01 00 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: D1 01 00 E4 03 00 B8 [08:54:59]Write to MH i2c: 01 00 00 E5 03 E8 [08:54:59]Write i2c OK [08:54:59]MH_I2C_Read... [08:55:00]OFD Sender: No OFD packet to send [08:55:00]*** Cut start [08:55:00]*** Partial cut [08:55:00]*** CUTSNS_PIN = 1 [08:55:00]*** CUTSNS_PIN = 0 [08:55:00]*** Brake cut motor [08:55:01]Read from MH i2c: 01 [08:55:01]MH_I2C_Read... [08:55:01]*** Stop cut motor [08:55:01]*** Cut end [08:55:01]Read from MH i2c: 01 07 00 [08:55:01]MH_I2C_Read... [08:55:01]Read from MH i2c: 01 07 00 E5 03 00 00 00 00 00 FF 0F FD [08:55:01]process_action close_receipt done [08:55:01]requested_data is exist [08:55:01]produce_requested_data [08:55:01]requested_item fm.sn is exist - process it [08:55:01]wFMCommunicate request_size=4 [08:55:01]MH_SAM_APDU [08:55:01]CAPDU: 80 11 00 00 [08:55:01]Write to MH i2c: E2 08 00 E6 03 80 11 00 00 00 00 00 00 63 [08:55:01]Write i2c OK [08:55:01]MH_I2C_Read... [08:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:01]Read from MH i2c: E2 [08:55:01]MH_I2C_Read... [08:55:01]Read from MH i2c: E2 17 00 [08:55:01]MH_I2C_Read... [08:55:01]Read from MH i2c: E2 17 00 E6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 BA [08:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:55:01]wFMCommunicate OK [08:55:01]requested_item fd.num is exist - process it [08:55:01]SAM_PROTO_GetFieldsCounters [08:55:01]wFMCommunicate request_size=4 [08:55:01]MH_SAM_APDU [08:55:01]CAPDU: 80 13 00 00 [08:55:01]Write to MH i2c: E2 08 00 E7 03 80 13 00 00 00 00 00 00 66 [08:55:01]Write i2c OK [08:55:01]MH_I2C_Read... [08:55:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:01]Read from MH i2c: E2 [08:55:01]MH_I2C_Read... [08:55:01]Read from MH i2c: E2 62 00 [08:55:01]MH_I2C_Read... [08:55:01]Read from MH i2c: E2 62 00 E7 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 62 10 01 00 0E 04 04 00 0E 02 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 49 [08:55: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 62 10 01 00 0E 04 04 00 0E 02 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 [08:55:01]wFMCommunicate OK [08:55:01]SAM_PROTO_GetFieldsCounters done [08:55:01]requested_item shift.num is exist - process it [08:55:01]requested_item shift.opened is exist - process it [08:55:01]req_shift_opened [08:55:01]FM_GetShiftState [08:55:01]SAM_PROTO_GetShiftState [08:55:01]wFMCommunicate request_size=4 [08:55:01]MH_SAM_APDU [08:55:01]CAPDU: 80 13 01 00 [08:55:01]Write to MH i2c: E2 08 00 E8 03 80 13 01 00 00 00 00 00 68 [08:55:01]Write i2c OK [08:55:01]MH_I2C_Read... [08:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:01]Read from MH i2c: E2 [08:55:01]MH_I2C_Read... [08:55:01]Read from MH i2c: E2 0E 00 [08:55:01]MH_I2C_Read... [08:55:01]Read from MH i2c: E2 0E 00 E8 03 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 FA [08:55:01]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:55:01]wFMCommunicate OK [08:55:01]SAM_PROTO_GetShiftState done [08:55:01]FM_GetShiftState done [08:55:01]req_shift_opened done [08:55:01]requested_item shift.open_date is exist - process it [08:55:01]req_shift_open_date [08:55:01]req_shift_open_date done [08:55:01]produce_requested_data done [08:55:01]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69730,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [08:55:01]process_action_free close_receipt [08:55:01]json_value_free [08:55:01]json_value_free done [08:55:01]process_json_proto returns [08:55:01]Send response to host [08:55:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69730,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [08:55:01]free response buf [08:55:01]execute_script done [08:55:01]execute_script returns [08:55:01]free content buf [08:55:01]Sock 10.Close socket [08:55:01]Sock 10.Thread stoped [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:37]accept exits with 7 [08:56:37]New connection [08:56:37]New thread 3066486116 created [08:56:37]Thread 3066629476 joined [08:56:37]Waiting for new connection... [08:56:37] Sock 7.Parse request [08:56:37]Sock 7.Check first char [08:56:37]Sock 7.First char is OK [08:56:37]request: POST /json_proto HTTP/1.0 [08:56:37]Method: POST [08:56:37]URL: /json_proto [08:56:37]Method is POST - this is cgi request [08:56:37]url: /json_proto [08:56:37]query_string will be loaded in cgi processing [08:56:37]execute_cgi json_proto POST (null) [08:56:37]execute_cgi path=json_proto method=POST [08:56:37]POST find Content-Length [08:56:37]Host: 172.17.52.196:8080 [08:56:37]Content-Length: 678 [08:56:37]Content-Type: application/json [08:56:37] [08:56:37]POST finish read [08:56:37]Found Content-Length = 678 [08:56:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1003734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:37]execute_script... [08:56: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)1003734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:37]POST & json_proto [08:56:37]process_json_proto [08:56:37]json parsed OK: [08:56:37]protocol is kg_v1.0 [08:56:37]action value=close_receipt [08:56:37]process_action close_receipt [08:56:37]cmd_close_receipt [08:56:37]MH_GetDate [08:56:37]Write to MH i2c: F0 00 00 E9 03 DB [08:56:37]Write i2c OK [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: F0 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: F0 09 00 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: F0 09 00 E9 03 00 C6 C5 14 67 60 05 E4 66 99 [08:56:37]GetLastDocTimeStamp 1729414498 [08:56:37]current date 1729414598 [08:56:37]FM_GetShiftState [08:56:37]SAM_PROTO_GetShiftState [08:56:37]wFMCommunicate request_size=4 [08:56:37]MH_SAM_APDU [08:56:37]CAPDU: 80 13 01 00 [08:56:37]Write to MH i2c: E2 08 00 EA 03 80 13 01 00 00 00 00 00 6A [08:56:37]Write i2c OK [08:56:37]MH_I2C_Read... [08:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:37]Read from MH i2c: E2 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: E2 0E 00 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: E2 0E 00 EA 03 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 FC [08:56:37]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:56:37]wFMCommunicate OK [08:56:37]SAM_PROTO_GetShiftState done [08:56:37]FM_GetShiftState done [08:56:37]opened in 1729384380 [08:56:37]opened+sec_in_day 1729470780 [08:56:37]quantity*price = 40006 [08:56:37]sum+1 = 40007 [08:56:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 21 20.10.2024 08:56 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69731 ФПД: 39357499190188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085639&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69731&fm=39357499190188&tin=02508201610067®Number=0000000000091770&sum=40000 [08:56:39]StoreToDocumentArchive [08:56:39]shift 526 fd 69731 [08:56:39]save to /storage/0526/doc_00069731 [08:56:39]save last doc name /storage/0526/doc_00069731 to /storage/kkm_last_doc_name [08:56:39]save OK [08:56:39]Clear old archive folders... [08:56:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:56:39]tlvbuf is 0095D6B0 [08:56:39]SAM_PROTO_ClearQueue [08:56:39]wFMCommunicate request_size=4 [08:56:39]MH_SAM_APDU [08:56:39]CAPDU: 80 09 00 00 [08:56:39]Write to MH i2c: E2 08 00 F7 03 80 09 00 00 00 00 00 00 6C [08:56:39]Write i2c OK [08:56:39]MH_I2C_Read... [08:56:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:39]Read from MH i2c: E2 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 03 00 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [08:56:39]RAPDU: 90 00 [08:56:39]wFMCommunicate OK [08:56:39]SAM_PROTO_ClearQueue done [08:56:39]KKMCreateOFDPacket [08:56:39]OFDProtocolAddRootSTLVToBuf [08:56:39]FM_MakeSignedData [08:56:39]FM_MakeSignedData [08:56:39]SAM_PROTO_SignData [08:56:39]wFMCommunicate request_size=4 [08:56:39]MH_SAM_APDU [08:56:39]CAPDU: 80 0D 01 02 [08:56:39]Write to MH i2c: E2 08 00 F8 03 80 0D 01 02 00 00 00 00 74 [08:56:39]Write i2c OK [08:56:39]MH_I2C_Read... [08:56:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:39]Read from MH i2c: E2 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 03 00 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [08:56:39]RAPDU: 90 00 [08:56:39]wFMCommunicate OK [08:56:39]wFMCommunicate request_size=255 [08:56:39]MH_SAM_APDU [08:56:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 C7 C5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 63 10 01 00 35 04 06 00 23 [08:56:39]Write to MH i2c: E2 02 01 F9 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 C7 C5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 63 10 01 00 35 04 06 00 23 00 00 95 [08:56:39]Write i2c OK [08:56:39]MH_I2C_Read... [08:56:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:39]Read from MH i2c: E2 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 03 00 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [08:56:39]RAPDU: 90 00 [08:56:39]wFMCommunicate OK [08:56:39]wFMCommunicate request_size=10 [08:56:39]MH_SAM_APDU [08:56:39]CAPDU: 80 0D 02 02 05 CB A1 C2 2B AC [08:56:39]Write to MH i2c: E2 0D 00 FA 03 80 0D 02 02 05 00 CB A1 C2 2B AC 00 00 86 [08:56:39]Write i2c OK [08:56:39]MH_I2C_Read... [08:56:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:39]Read from MH i2c: E2 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 03 00 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [08:56:39]RAPDU: 90 00 [08:56:39]wFMCommunicate OK [08:56:39]wFMCommunicate request_size=4 [08:56:39]MH_SAM_APDU [08:56:39]CAPDU: 80 0D 03 02 [08:56:39]Write to MH i2c: E2 08 00 FB 03 80 0D 03 02 00 00 00 00 79 [08:56:39]Write i2c OK [08:56:39]MH_I2C_Read... [08:56:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:39]Read from MH i2c: E2 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 0B 00 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 0B 00 FB 03 00 5A 34 00 E2 0E F4 74 BD 90 00 1D [08:56:39]RAPDU: 5A 34 00 E2 0E F4 74 BD 90 00 [08:56:39]wFMCommunicate OK [08:56:39]SAM_PROTO_SignData done [08:56:39]FM_MakeSignedData done [08:56:39]CreateOFDProtocolMessage [08:56:39]wFMCommunicate request_size=4 [08:56:39]MH_SAM_APDU [08:56:39]CAPDU: 80 11 00 00 [08:56:39]Write to MH i2c: E2 08 00 FC 03 80 11 00 00 00 00 00 00 79 [08:56:39]Write i2c OK [08:56:39]MH_I2C_Read... [08:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:39]Read from MH i2c: E2 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 17 00 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 17 00 FC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 D0 [08:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:56:39]wFMCommunicate OK [08:56:39]CreateOFDProtocolMessage done [08:56:39]OFDSenderStorePacket 69731 [08:56:39]StoreOFDPacket docnum=69731 [08:56:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0F 01 00 00 D7 C2 07 01 BC C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 C7 C5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 63 10 01 00 35 04 06 00 23 CB A1 C2 2B AC 5A 34 00 E2 0E F4 74 BD [08:56:39]CheckFolder [08:56:39]dirname=/storage/ofd_packets [08:56:39]CheckFolder done [08:56:39]ProducePacketName [08:56:39]name=ofd_packets/00069731 [08:56:39]NVStorageSaveData ofd_packets/00069731 [08:56:39]File name is /storage/ofd_packets/00069731 [08:56:39]Write 301 bytes [08:56:39]NVStorageSaveData done [08:56:39]OFDSenderStorePacket done [08:56:39]KKMCreateOFDPacket done [08:56:39]NVStorageSaveData kkm_last_timestamp [08:56:39]File name is /storage/kkm_last_timestamp [08:56:39]Write 4 bytes [08:56:39]NVStorageSaveData done [08:56:39]ExternCall_PrintAddStr [08:56:39]wPrintStart [08:56:39]Write to MH i2c: 01 00 00 FD 03 00 [08:56:39]Write i2c OK [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: 01 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: 01 07 00 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: 01 07 00 FD 03 00 00 00 00 00 FF 0F 15 [08:56:39]RasterBufferAndPrint [08:56:39]line Счет N : (1)1003734 [08:56:39]line ИНН: 02508201610067 [08:56:39]line Контрольно-Кассовый Чек [08:56:39]line ПРОДАЖА [08:56:39]line ТРК (МРК, ГНК) : 53 [08:56:39]line Товар: 2710124130 [08:56:39]line Аи-92-К-2 [08:56:39]line 5.980 * 66.90 [08:56:39]line = 400.06 [08:56:39]line НДС 12% НСП 1% [08:56:39]line > о реализуемом товаре [08:56:39]line ОКРУГЛЕНИЕ: -0.06 [08:56:39]line ИТОГО: 400.00 [08:56:39]line Внесено: 400.00 [08:56:39]line СДАЧА: 0.00 [08:56:39]line НСП 1% : 3.54 [08:56:39]line НДС 12% : 42.48 [08:56:39]line Наличными: 400.00 [08:56:39]line Безнал.: 0.00 [08:56:39]line Место: АЗС № 163 "Партнер Нефть" [08:56:39]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [08:56:39]line СНО: Общий режим [08:56:39]line Чек 21 20.10.2024 08:56 [08:56:39]line Смена: 526 ФФД: 1.0 [08:56:39]line ЗНМ: 0300000101 [08:56:39]line РНМ: 0000000000091770 [08:56:39]line Версия ККМ: 001 [08:56:39]line ФМ: 0000000000871749 [08:56:39]line ФД: 69731 [08:56:39]line ФПД: 39357499190188 [08:56:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T085639&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69731&fm=39357499190188&tin=02508201610067®Number=0000000000091770&sum=40000 [08:56:39]OFD Sender: Processing packet 69731 [packets to send 32, broken 31] [08:56:39]ProducePacketName [08:56:39]name=ofd_packets/00069731 [08:56:39]OFD Sender: To server: pG, [08:56:39]CommunicateWithHost lk.salyk.kg:30040 [08:56:39]ConnectInit lk.salyk.kg [08:56:39]written 0, free lines is 4095 [08:56:40]Connected sock=10 [08:56:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0F 01 00 00 D7 C2 07 01 BC C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 C7 C5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 63 10 01 00 35 04 06 00 23 CB A1 C2 2B AC 5A 34 00 E2 0E F4 74 BD [08:56:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 4C 90 47 00 AB 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 31 37 34 39 10 04 04 00 63 10 01 00 F4 03 04 00 4A 6B 14 67 B6 04 01 00 00 E3 14 D8 B7 B2 64 90 60 [08:56:40]CommunicateWithHost err = 0 [08:56:40]CheckOFDResponse [08:56:40]1017 (14) - 77093643461234 [08:56:40]1041 (16) - 0000000000871749 [08:56:40]1040 (4) - 69731 [08:56:40]1012 (4) - 20.10.2024 02:30 [08:56:40]1206 (1) - 0 [08:56:40]OFD Sender: Remove packet 69731 [08:56:40]ProducePacketName [08:56:40]name=ofd_packets/00069731 [08:56:40]NVStorageDeleteData [08:56:40]Write to MH i2c: 01 00 00 28 04 2C [08:56:40]Write i2c OK [08:56:40]MH_I2C_Read... [08:56:40]Read from MH i2c: 01 [08:56:40]MH_I2C_Read... [08:56:40]Read from MH i2c: 01 07 00 [08:56:40]MH_I2C_Read... [08:56:40]Read from MH i2c: 01 07 00 28 04 00 00 00 00 00 D8 0C 17 [08:56:40]RasterBufferAndPrint [08:56:40]line [08:56:40]line [08:56:40]line [08:56:40]line [08:56:40]line [08:56:40]written 0, free lines is 3295 [08:56:40]MH_Cut [08:56:40]Write to MH i2c: D1 01 00 2F 04 01 05 [08:56:40]Write i2c OK [08:56:40]MH_I2C_Read... [08:56:40]Read from MH i2c: D1 [08:56:40]MH_I2C_Read... [08:56:40]Read from MH i2c: D1 01 00 [08:56:40]MH_I2C_Read... [08:56:40]Read from MH i2c: D1 01 00 2F 04 00 04 [08:56:40]Write to MH i2c: 01 00 00 30 04 34 [08:56:40]Write i2c OK [08:56:40]MH_I2C_Read... [08:56:40]OFD Sender: No OFD packet to send [08:56:41]*** Cut start [08:56:41]*** Partial cut [08:56:41]*** CUTSNS_PIN = 1 [08:56:41]*** CUTSNS_PIN = 0 [08:56:41]*** Brake cut motor [08:56:41]Read from MH i2c: 01 [08:56:41]MH_I2C_Read... [08:56:41]*** Stop cut motor [08:56:41]*** Cut end [08:56:41]Read from MH i2c: 01 07 00 [08:56:41]MH_I2C_Read... [08:56:41]Read from MH i2c: 01 07 00 30 04 00 00 00 00 00 FF 0F 49 [08:56:41]process_action close_receipt done [08:56:41]requested_data is exist [08:56:41]produce_requested_data [08:56:41]requested_item fm.sn is exist - process it [08:56:41]wFMCommunicate request_size=4 [08:56:41]MH_SAM_APDU [08:56:41]CAPDU: 80 11 00 00 [08:56:41]Write to MH i2c: E2 08 00 31 04 80 11 00 00 00 00 00 00 AF [08:56:41]Write i2c OK [08:56:41]MH_I2C_Read... [08:56:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:42]Read from MH i2c: E2 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: E2 17 00 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: E2 17 00 31 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 06 [08:56:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [08:56:42]wFMCommunicate OK [08:56:42]requested_item fd.num is exist - process it [08:56:42]SAM_PROTO_GetFieldsCounters [08:56:42]wFMCommunicate request_size=4 [08:56:42]MH_SAM_APDU [08:56:42]CAPDU: 80 13 00 00 [08:56:42]Write to MH i2c: E2 08 00 32 04 80 13 00 00 00 00 00 00 B2 [08:56:42]Write i2c OK [08:56:42]MH_I2C_Read... [08:56:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:42]Read from MH i2c: E2 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: E2 62 00 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: E2 62 00 32 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 63 10 01 00 0E 04 04 00 0E 02 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 99 [08:56: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 63 10 01 00 0E 04 04 00 0E 02 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 [08:56:42]wFMCommunicate OK [08:56:42]SAM_PROTO_GetFieldsCounters done [08:56:42]requested_item shift.num is exist - process it [08:56:42]requested_item shift.opened is exist - process it [08:56:42]req_shift_opened [08:56:42]FM_GetShiftState [08:56:42]SAM_PROTO_GetShiftState [08:56:42]wFMCommunicate request_size=4 [08:56:42]MH_SAM_APDU [08:56:42]CAPDU: 80 13 01 00 [08:56:42]Write to MH i2c: E2 08 00 33 04 80 13 01 00 00 00 00 00 B4 [08:56:42]Write i2c OK [08:56:42]MH_I2C_Read... [08:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:42]Read from MH i2c: E2 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: E2 0E 00 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: E2 0E 00 33 04 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 46 [08:56:42]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [08:56:42]wFMCommunicate OK [08:56:42]SAM_PROTO_GetShiftState done [08:56:42]FM_GetShiftState done [08:56:42]req_shift_opened done [08:56:42]requested_item shift.open_date is exist - process it [08:56:42]req_shift_open_date [08:56:42]req_shift_open_date done [08:56:42]produce_requested_data done [08:56:42]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69731,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [08:56:42]process_action_free close_receipt [08:56:42]json_value_free [08:56:42]json_value_free done [08:56:42]process_json_proto returns [08:56:42]Send response to host [08:56:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69731,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [08:56:42]free response buf [08:56:42]execute_script done [08:56:42]execute_script returns [08:56:42]free content buf [08:56:42]Sock 7.Close socket [08:56:42]Sock 7.Thread stoped [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01: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:12]accept exits with 9 [09:02:12]New connection [09:02:12]New thread 3066629476 created [09:02:12]Thread 3066486116 joined [09:02:12]Waiting for new connection... [09:02:12] Sock 9.Parse request [09:02:12]Sock 9.Check first char [09:02:12]Sock 9.First char is OK [09:02:12]request: POST /json_proto HTTP/1.0 [09:02:12]Method: POST [09:02:12]URL: /json_proto [09:02:12]Method is POST - this is cgi request [09:02:12]url: /json_proto [09:02:12]query_string will be loaded in cgi processing [09:02:12]execute_cgi json_proto POST (null) [09:02:12]execute_cgi path=json_proto method=POST [09:02:12]POST find Content-Length [09:02:12]Host: 172.17.52.196:8080 [09:02:12]Content-Length: 623 [09:02:12]Content-Type: application/json [09:02:12] [09:02:12]POST finish read [09:02:12]Found Content-Length = 623 [09:02:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127134", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:12]execute_script... [09:02: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)127134", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:12]POST & json_proto [09:02:12]process_json_proto [09:02:12]json parsed OK: [09:02:12]protocol is kg_v1.0 [09:02:12]action value=close_receipt [09:02:12]process_action close_receipt [09:02:12]cmd_close_receipt [09:02:12]MH_GetDate [09:02:12]Write to MH i2c: F0 00 00 34 04 27 [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: F0 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: F0 09 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: F0 09 00 34 04 00 15 C7 14 67 60 05 E4 66 36 [09:02:12]GetLastDocTimeStamp 1729414599 [09:02:12]current date 1729414933 [09:02:12]FM_GetShiftState [09:02:12]SAM_PROTO_GetShiftState [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 13 01 00 [09:02:12]Write to MH i2c: E2 08 00 35 04 80 13 01 00 00 00 00 00 B6 [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 0E 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 0E 00 35 04 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 48 [09:02:12]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:02:12]wFMCommunicate OK [09:02:12]SAM_PROTO_GetShiftState done [09:02:12]FM_GetShiftState done [09:02:12]opened in 1729384380 [09:02:12]opened+sec_in_day 1729470780 [09:02:12]quantity*price = 14400 [09:02:12]sum+1 = 14401 [09:02:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 22 20.10.2024 09:02 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69732 ФПД: 5271600894957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090213&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69732&fm=5271600894957&tin=02508201610067®Number=0000000000091770&sum=14400 0 [09:02:13]StoreToDocumentArchive [09:02:13]shift 526 fd 69732 [09:02:13]save to /storage/0526/doc_00069732 [09:02:13]save last doc name /storage/0526/doc_00069732 to /storage/kkm_last_doc_name [09:02:13]save OK [09:02:13]Clear old archive folders... [09:02:13]ProcessDocumentItem done err = 0, tmpTLVsize=275 [09:02:13]tlvbuf is 0097D470 [09:02:13]SAM_PROTO_ClearQueue [09:02:13]wFMCommunicate request_size=4 [09:02:13]MH_SAM_APDU [09:02:13]CAPDU: 80 09 00 00 [09:02:13]Write to MH i2c: E2 08 00 42 04 80 09 00 00 00 00 00 00 B8 [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:13]Read from MH i2c: E2 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 03 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [09:02:13]RAPDU: 90 00 [09:02:13]wFMCommunicate OK [09:02:13]SAM_PROTO_ClearQueue done [09:02:13]KKMCreateOFDPacket [09:02:13]OFDProtocolAddRootSTLVToBuf [09:02:13]FM_MakeSignedData [09:02:13]FM_MakeSignedData [09:02:13]SAM_PROTO_SignData [09:02:13]wFMCommunicate request_size=4 [09:02:13]MH_SAM_APDU [09:02:13]CAPDU: 80 0D 01 02 [09:02:13]Write to MH i2c: E2 08 00 43 04 80 0D 01 02 00 00 00 00 C0 [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:13]Read from MH i2c: E2 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 03 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [09:02:13]RAPDU: 90 00 [09:02:13]wFMCommunicate OK [09:02:13]wFMCommunicate request_size=255 [09:02:13]MH_SAM_APDU [09:02: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 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 15 C7 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 [09:02:13]Write to MH i2c: E2 02 01 44 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 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 15 C7 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 00 00 41 [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:13]Read from MH i2c: E2 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 03 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [09:02:13]RAPDU: 90 00 [09:02:13]wFMCommunicate OK [09:02:13]wFMCommunicate request_size=34 [09:02:13]MH_SAM_APDU [09:02:13]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 64 10 01 00 35 04 06 00 04 CB 63 E6 13 ED [09:02:13]Write to MH i2c: E2 25 00 45 04 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 64 10 01 00 35 04 06 00 04 CB 63 E6 13 ED 00 00 15 [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:13]Read from MH i2c: E2 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 03 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [09:02:13]RAPDU: 90 00 [09:02:13]wFMCommunicate OK [09:02:13]wFMCommunicate request_size=4 [09:02:13]MH_SAM_APDU [09:02:13]CAPDU: 80 0D 03 02 [09:02:13]Write to MH i2c: E2 08 00 46 04 80 0D 03 02 00 00 00 00 C5 [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:13]Read from MH i2c: E2 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 0B 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 0B 00 46 04 00 64 66 FF 14 D6 EA 18 5C 90 00 D7 [09:02:13]RAPDU: 64 66 FF 14 D6 EA 18 5C 90 00 [09:02:13]wFMCommunicate OK [09:02:13]SAM_PROTO_SignData done [09:02:13]FM_MakeSignedData done [09:02:13]CreateOFDProtocolMessage [09:02:13]wFMCommunicate request_size=4 [09:02:13]MH_SAM_APDU [09:02:13]CAPDU: 80 11 00 00 [09:02:13]Write to MH i2c: E2 08 00 47 04 80 11 00 00 00 00 00 00 C5 [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:13]Read from MH i2c: E2 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 17 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 17 00 47 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 1C [09:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:02:13]wFMCommunicate OK [09:02:13]CreateOFDProtocolMessage done [09:02:13]OFDSenderStorePacket 69732 [09:02:13]StoreOFDPacket docnum=69732 [09:02:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 1B 75 1F 01 DD 1A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 15 C7 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 64 10 01 00 35 04 06 00 04 CB 63 E6 13 ED 64 66 FF 14 D6 EA 18 5C [09:02:13]CheckFolder [09:02:13]dirname=/storage/ofd_packets [09:02:13]CheckFolder done [09:02:13]ProducePacketName [09:02:13]name=ofd_packets/00069732 [09:02:13]NVStorageSaveData ofd_packets/00069732 [09:02:13]File name is /storage/ofd_packets/00069732 [09:02:13]Write 325 bytes [09:02:13]NVStorageSaveData done [09:02:13]OFDSenderStorePacket done [09:02:13]KKMCreateOFDPacket done [09:02:13]NVStorageSaveData kkm_last_timestamp [09:02:13]File name is /storage/kkm_last_timestamp [09:02:13]Write 4 bytes [09:02:13]NVStorageSaveData done [09:02:13]ExternCall_PrintAddStr [09:02:13]wPrintStart [09:02:13]Write to MH i2c: 01 00 00 48 04 4C [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: 01 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: 01 07 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: 01 07 00 48 04 00 00 00 00 00 FF 0F 61 [09:02:13]RasterBufferAndPrint [09:02:13]line Счет N : (3)127134 [09:02:13]line ИНН: 02508201610067 [09:02:13]line Контрольно-Кассовый Чек [09:02:13]line ПРОДАЖА [09:02:13]line Товар: 48743587 [09:02:13]line Сигареты Winston XStyle Silver [09:02:13]line 1.000 * 144.00 [09:02:13]line = 144.00 [09:02:13]line НДС 12% НСП 1% [09:02:13]line > о реализуемом товаре [09:02:13]line ИТОГО: 144.00 [09:02:13]line НСП 1% : 1.27 [09:02:13]line НДС 12% : 15.29 [09:02:13]line Наличными: 144.00 [09:02:13]line Безнал.: 0.00 [09:02:13]line Место: АЗС № 163 "Партнер Нефть" [09:02:13]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [09:02:13]line СНО: Общий режим [09:02:13]line Чек 22 20.10.2024 09:02 [09:02:13]line Смена: 526 ФФД: 1.0 [09:02:13]line ЗНМ: 0300000101 [09:02:13]line РНМ: 0000000000091770 [09:02:13]line Версия ККМ: 001 [09:02:13]line ФМ: 0000000000871749 [09:02:13]line ФД: 69732 [09:02:13]line ФПД: 5271600894957 [09:02:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090213&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69732&fm=5271600894957&tin=02508201610067®Number=0000000000091770&sum=14400 [09:02:14]line 0 [09:02:14]OFD Sender: Processing packet 69732 [packets to send 32, broken 31] [09:02:14]ProducePacketName [09:02:14]name=ofd_packets/00069732 [09:02:14]OFD Sender: To server: pG, [09:02:14]CommunicateWithHost lk.salyk.kg:30040 [09:02:14]ConnectInit lk.salyk.kg [09:02:14]written 0, free lines is 4095 [09:02:14]Connected sock=10 [09:02:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 1B 75 1F 01 DD 1A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 15 C7 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 64 10 01 00 35 04 06 00 04 CB 63 E6 13 ED 64 66 FF 14 D6 EA 18 5C [09:02:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 B4 9B 47 00 76 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 64 10 01 00 F4 03 04 00 98 6C 14 67 B6 04 01 00 00 06 AF B2 42 8C 99 3A 8A [09:02:14]CommunicateWithHost err = 0 [09:02:14]CheckOFDResponse [09:02:14]1017 (14) - 77093643461234 [09:02:14]1041 (16) - 0000000000871749 [09:02:14]1040 (4) - 69732 [09:02:14]1012 (4) - 20.10.2024 02:36 [09:02:14]1206 (1) - 0 [09:02:14]OFD Sender: Remove packet 69732 [09:02:14]ProducePacketName [09:02:14]name=ofd_packets/00069732 [09:02:14]NVStorageDeleteData [09:02:14]Write to MH i2c: 01 00 00 71 04 75 [09:02:14]Write i2c OK [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: 01 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: 01 07 00 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: 01 07 00 71 04 00 00 00 00 00 D9 0C 61 [09:02:14]RasterBufferAndPrint [09:02:14]line [09:02:14]line [09:02:14]line [09:02:14]line [09:02:14]line [09:02:14]written 0, free lines is 3296 [09:02:14]MH_Cut [09:02:14]Write to MH i2c: D1 01 00 78 04 01 4E [09:02:14]Write i2c OK [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: D1 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: D1 01 00 [09:02:14]MH_I2C_Read... [09:02:14]Read from MH i2c: D1 01 00 78 04 00 4D [09:02:14]Write to MH i2c: 01 00 00 79 04 7D [09:02:14]Write i2c OK [09:02:14]MH_I2C_Read... [09:02:15]OFD Sender: No OFD packet to send [09:02:15]*** Cut start [09:02:15]*** Partial cut [09:02:15]*** CUTSNS_PIN = 1 [09:02:15]*** CUTSNS_PIN = 0 [09:02:15]*** Brake cut motor [09:02:16]Read from MH i2c: 01 [09:02:16]MH_I2C_Read... [09:02:16]*** Stop cut motor [09:02:16]*** Cut end [09:02:16]Read from MH i2c: 01 07 00 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: 01 07 00 79 04 00 00 00 00 00 FF 0F 92 [09:02:16]process_action close_receipt done [09:02:16]requested_data is exist [09:02:16]produce_requested_data [09:02:16]requested_item fm.sn is exist - process it [09:02:16]wFMCommunicate request_size=4 [09:02:16]MH_SAM_APDU [09:02:16]CAPDU: 80 11 00 00 [09:02:16]Write to MH i2c: E2 08 00 7A 04 80 11 00 00 00 00 00 00 F8 [09:02:16]Write i2c OK [09:02:16]MH_I2C_Read... [09:02:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:16]Read from MH i2c: E2 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: E2 17 00 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: E2 17 00 7A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 4F [09:02:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:02:16]wFMCommunicate OK [09:02:16]requested_item fd.num is exist - process it [09:02:16]SAM_PROTO_GetFieldsCounters [09:02:16]wFMCommunicate request_size=4 [09:02:16]MH_SAM_APDU [09:02:16]CAPDU: 80 13 00 00 [09:02:16]Write to MH i2c: E2 08 00 7B 04 80 13 00 00 00 00 00 00 FB [09:02:16]Write i2c OK [09:02:16]MH_I2C_Read... [09:02:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:16]Read from MH i2c: E2 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: E2 62 00 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: E2 62 00 7B 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 64 10 01 00 0E 04 04 00 0E 02 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 E6 [09:02: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 64 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:16]wFMCommunicate OK [09:02:16]SAM_PROTO_GetFieldsCounters done [09:02:16]requested_item shift.num is exist - process it [09:02:16]requested_item shift.opened is exist - process it [09:02:16]req_shift_opened [09:02:16]FM_GetShiftState [09:02:16]SAM_PROTO_GetShiftState [09:02:16]wFMCommunicate request_size=4 [09:02:16]MH_SAM_APDU [09:02:16]CAPDU: 80 13 01 00 [09:02:16]Write to MH i2c: E2 08 00 7C 04 80 13 01 00 00 00 00 00 FD [09:02:16]Write i2c OK [09:02:16]MH_I2C_Read... [09:02:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:16]Read from MH i2c: E2 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: E2 0E 00 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: E2 0E 00 7C 04 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 8F [09:02:16]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:02:16]wFMCommunicate OK [09:02:16]SAM_PROTO_GetShiftState done [09:02:16]FM_GetShiftState done [09:02:16]req_shift_opened done [09:02:16]requested_item shift.open_date is exist - process it [09:02:16]req_shift_open_date [09:02:16]req_shift_open_date done [09:02:16]produce_requested_data done [09:02:16]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69732,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [09:02:16]process_action_free close_receipt [09:02:16]json_value_free [09:02:16]json_value_free done [09:02:16]process_json_proto returns [09:02:16]Send response to host [09:02:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69732,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [09:02:16]free response buf [09:02:16]execute_script done [09:02:16]execute_script returns [09:02:16]free content buf [09:02:16]Sock 9.Close socket [09:02:16]Sock 9.Thread stoped [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:38]accept exits with 7 [09:09:38]New connection [09:09:38]New thread 3066486116 created [09:09:38]Thread 3066629476 joined [09:09:38]Waiting for new connection... [09:09:38] Sock 7.Parse request [09:09:38]Sock 7.Check first char [09:09:38]Sock 7.First char is OK [09:09:38]request: POST /json_proto HTTP/1.0 [09:09:38]Method: POST [09:09:38]URL: /json_proto [09:09:38]Method is POST - this is cgi request [09:09:38]url: /json_proto [09:09:38]query_string will be loaded in cgi processing [09:09:38]execute_cgi json_proto POST (null) [09:09:38]execute_cgi path=json_proto method=POST [09:09:38]POST find Content-Length [09:09:38]Host: 172.17.52.196:8080 [09:09:38]Content-Length: 647 [09:09:38]Content-Type: application/json [09:09:38] [09:09:38]POST finish read [09:09:38]Found Content-Length = 647 [09:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127135", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:38]execute_script... [09:09:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127135", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:38]POST & json_proto [09:09:38]process_json_proto [09:09:38]json parsed OK: [09:09:38]protocol is kg_v1.0 [09:09:38]action value=close_receipt [09:09:38]process_action close_receipt [09:09:38]cmd_close_receipt [09:09:38]MH_GetDate [09:09:38]Write to MH i2c: F0 00 00 7D 04 70 [09:09:38]Write i2c OK [09:09:38]MH_I2C_Read... [09:09:38]Read from MH i2c: F0 [09:09:38]MH_I2C_Read... [09:09:38]Read from MH i2c: F0 09 00 [09:09:38]MH_I2C_Read... [09:09:38]Read from MH i2c: F0 09 00 7D 04 00 D3 C8 14 67 60 05 E4 66 3E [09:09:38]GetLastDocTimeStamp 1729414933 [09:09:38]current date 1729415379 [09:09:38]FM_GetShiftState [09:09:38]SAM_PROTO_GetShiftState [09:09:38]wFMCommunicate request_size=4 [09:09:38]MH_SAM_APDU [09:09:38]CAPDU: 80 13 01 00 [09:09:38]Write to MH i2c: E2 08 00 7E 04 80 13 01 00 00 00 00 00 FF [09:09:38]Write i2c OK [09:09:38]MH_I2C_Read... [09:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:38]Read from MH i2c: E2 [09:09:38]MH_I2C_Read... [09:09:38]Read from MH i2c: E2 0E 00 [09:09:38]MH_I2C_Read... [09:09:38]Read from MH i2c: E2 0E 00 7E 04 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 91 [09:09:38]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:09:38]wFMCommunicate OK [09:09:38]SAM_PROTO_GetShiftState done [09:09:38]FM_GetShiftState done [09:09:38]opened in 1729384380 [09:09:38]opened+sec_in_day 1729470780 [09:09:38]quantity*price = 4000 [09:09:38]sum+1 = 4001 [09:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 23 20.10.2024 09:09 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69733 ФПД: 119919317725185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090939&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69733&fm=119919317725185&tin=02508201610067®Number=0000000000091770&sum=4000 0 [09:09:39]StoreToDocumentArchive [09:09:39]shift 526 fd 69733 [09:09:39]save to /storage/0526/doc_00069733 [09:09:39]save last doc name /storage/0526/doc_00069733 to /storage/kkm_last_doc_name [09:09:39]save OK [09:09:39]Clear old archive folders... [09:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=278 [09:09:39]tlvbuf is 0097D180 [09:09:39]SAM_PROTO_ClearQueue [09:09:39]wFMCommunicate request_size=4 [09:09:39]MH_SAM_APDU [09:09:39]CAPDU: 80 09 00 00 [09:09:39]Write to MH i2c: E2 08 00 8B 04 80 09 00 00 00 00 00 00 01 [09:09:39]Write i2c OK [09:09:39]MH_I2C_Read... [09:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:39]Read from MH i2c: E2 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 03 00 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 03 00 8B 04 00 90 00 03 [09:09:39]RAPDU: 90 00 [09:09:39]wFMCommunicate OK [09:09:39]SAM_PROTO_ClearQueue done [09:09:39]KKMCreateOFDPacket [09:09:39]OFDProtocolAddRootSTLVToBuf [09:09:39]FM_MakeSignedData [09:09:39]FM_MakeSignedData [09:09:39]SAM_PROTO_SignData [09:09:39]wFMCommunicate request_size=4 [09:09:39]MH_SAM_APDU [09:09:39]CAPDU: 80 0D 01 02 [09:09:39]Write to MH i2c: E2 08 00 8C 04 80 0D 01 02 00 00 00 00 09 [09:09:39]Write i2c OK [09:09:39]MH_I2C_Read... [09:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:39]Read from MH i2c: E2 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 03 00 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 03 00 8C 04 00 90 00 04 [09:09:39]RAPDU: 90 00 [09:09:39]wFMCommunicate OK [09:09:39]wFMCommunicate request_size=255 [09:09:39]MH_SAM_APDU [09:09:39]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 D3 C8 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 [09:09:39]Write to MH i2c: E2 02 01 8D 04 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 D3 C8 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 00 00 41 [09:09:39]Write i2c OK [09:09:39]MH_I2C_Read... [09:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:39]Read from MH i2c: E2 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 03 00 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 03 00 8D 04 00 90 00 05 [09:09:39]RAPDU: 90 00 [09:09:39]wFMCommunicate OK [09:09:39]wFMCommunicate request_size=37 [09:09:39]MH_SAM_APDU [09:09:39]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 65 10 01 00 35 04 06 00 6D 10 E4 55 B0 01 [09:09:39]Write to MH i2c: E2 28 00 8E 04 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 65 10 01 00 35 04 06 00 6D 10 E4 55 B0 01 00 00 44 [09:09:39]Write i2c OK [09:09:39]MH_I2C_Read... [09:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:39]Read from MH i2c: E2 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 03 00 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [09:09:39]RAPDU: 90 00 [09:09:39]wFMCommunicate OK [09:09:39]wFMCommunicate request_size=4 [09:09:39]MH_SAM_APDU [09:09:39]CAPDU: 80 0D 03 02 [09:09:39]Write to MH i2c: E2 08 00 8F 04 80 0D 03 02 00 00 00 00 0E [09:09:39]Write i2c OK [09:09:39]MH_I2C_Read... [09:09:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:39]Read from MH i2c: E2 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 0B 00 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 0B 00 8F 04 00 D6 E5 C3 C0 D0 BC CD 47 90 00 ED [09:09:39]RAPDU: D6 E5 C3 C0 D0 BC CD 47 90 00 [09:09:39]wFMCommunicate OK [09:09:39]SAM_PROTO_SignData done [09:09:39]FM_MakeSignedData done [09:09:39]CreateOFDProtocolMessage [09:09:39]wFMCommunicate request_size=4 [09:09:39]MH_SAM_APDU [09:09:39]CAPDU: 80 11 00 00 [09:09:39]Write to MH i2c: E2 08 00 90 04 80 11 00 00 00 00 00 00 0E [09:09:39]Write i2c OK [09:09:39]MH_I2C_Read... [09:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:39]Read from MH i2c: E2 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 17 00 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 17 00 90 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 65 [09:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:09:39]wFMCommunicate OK [09:09:39]CreateOFDProtocolMessage done [09:09:39]OFDSenderStorePacket 69733 [09:09:39]StoreOFDPacket docnum=69733 [09:09:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2A 01 00 00 81 21 22 01 D4 EC 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 D3 C8 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 65 10 01 00 35 04 06 00 6D 10 E4 55 B0 01 D6 E5 C3 C0 D0 BC CD 47 [09:09:39]CheckFolder [09:09:39]dirname=/storage/ofd_packets [09:09:39]CheckFolder done [09:09:39]ProducePacketName [09:09:39]name=ofd_packets/00069733 [09:09:39]NVStorageSaveData ofd_packets/00069733 [09:09:39]File name is /storage/ofd_packets/00069733 [09:09:39]Write 328 bytes [09:09:39]NVStorageSaveData done [09:09:39]OFDSenderStorePacket done [09:09:39]KKMCreateOFDPacket done [09:09:39]NVStorageSaveData kkm_last_timestamp [09:09:39]File name is /storage/kkm_last_timestamp [09:09:39]Write 4 bytes [09:09:39]NVStorageSaveData done [09:09:39]ExternCall_PrintAddStr [09:09:39]wPrintStart [09:09:39]Write to MH i2c: 01 00 00 91 04 95 [09:09:39]Write i2c OK [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: 01 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: 01 07 00 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: 01 07 00 91 04 00 00 00 00 00 FF 0F AA [09:09:39]RasterBufferAndPrint [09:09:39]line Счет N : (3)127135 [09:09:39]line ИНН: 02508201610067 [09:09:39]line Контрольно-Кассовый Чек [09:09:39]line ПРОДАЖА [09:09:39]line Товар: 4700000310036 [09:09:39]line Вода Жалалабат 27 0,5л [09:09:39]line 1.000 * 40.00 [09:09:39]line = 40.00 [09:09:39]line НДС 12% НСП 1% [09:09:39]line > о реализуемом товаре [09:09:39]line ИТОГО: 40.00 [09:09:39]line НСП 1% : 0.35 [09:09:39]line НДС 12% : 4.25 [09:09:39]line Наличными: 40.00 [09:09:39]line Безнал.: 0.00 [09:09:39]line Место: АЗС № 163 "Партнер Нефть" [09:09:39]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [09:09:39]line СНО: Общий режим [09:09:39]line Чек 23 20.10.2024 09:09 [09:09:39]line Смена: 526 ФФД: 1.0 [09:09:39]line ЗНМ: 0300000101 [09:09:39]line РНМ: 0000000000091770 [09:09:39]line Версия ККМ: 001 [09:09:39]line ФМ: 0000000000871749 [09:09:39]line ФД: 69733 [09:09:39]line ФПД: 119919317725185 [09:09:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090939&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69733&fm=119919317725185&tin=02508201610067®Number=0000000000091770&sum=4000 [09:09:40]line 0 [09:09:40]OFD Sender: Processing packet 69733 [packets to send 32, broken 31] [09:09:40]ProducePacketName [09:09:40]name=ofd_packets/00069733 [09:09:40]OFD Sender: To server: pG, [09:09:40]CommunicateWithHost lk.salyk.kg:30040 [09:09:40]ConnectInit lk.salyk.kg [09:09:40]written 0, free lines is 4095 [09:09:40]Connected sock=10 [09:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2A 01 00 00 81 21 22 01 D4 EC 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 D3 C8 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 65 10 01 00 35 04 06 00 6D 10 E4 55 B0 01 D6 E5 C3 C0 D0 BC CD 47 [09:09:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 91 00 47 00 B4 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 31 37 34 39 10 04 04 00 65 10 01 00 F4 03 04 00 56 6E 14 67 B6 04 01 00 00 C8 E0 D2 E0 E1 6A 4A 3B [09:09:40]CommunicateWithHost err = 0 [09:09:40]CheckOFDResponse [09:09:40]1017 (14) - 77093643461234 [09:09:40]1041 (16) - 0000000000871749 [09:09:40]1040 (4) - 69733 [09:09:40]1012 (4) - 20.10.2024 02:43 [09:09:40]1206 (1) - 0 [09:09:40]OFD Sender: Remove packet 69733 [09:09:40]ProducePacketName [09:09:40]name=ofd_packets/00069733 [09:09:40]NVStorageDeleteData [09:09:40]Write to MH i2c: 01 00 00 B9 04 BD [09:09:40]Write i2c OK [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: 01 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: 01 07 00 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: 01 07 00 B9 04 00 00 00 00 00 F5 0C C5 [09:09:40]RasterBufferAndPrint [09:09:40]line [09:09:40]line [09:09:40]line [09:09:40]line [09:09:40]line [09:09:40]written 0, free lines is 3325 [09:09:40]MH_Cut [09:09:40]Write to MH i2c: D1 01 00 C0 04 01 96 [09:09:40]Write i2c OK [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: D1 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: D1 01 00 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: D1 01 00 C0 04 00 95 [09:09:40]Write to MH i2c: 01 00 00 C1 04 C5 [09:09:40]Write i2c OK [09:09:40]MH_I2C_Read... [09:09:41]OFD Sender: No OFD packet to send [09:09:41]*** Cut start [09:09:41]*** Partial cut [09:09:41]*** CUTSNS_PIN = 1 [09:09:41]*** CUTSNS_PIN = 0 [09:09:41]*** Brake cut motor [09:09:42]*** Stop cut motor [09:09:42]*** Cut end [09:09:42]Read from MH i2c: 01 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: 01 07 00 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: 01 07 00 C1 04 00 00 00 00 00 FF 0F DA [09:09:42]process_action close_receipt done [09:09:42]requested_data is exist [09:09:42]produce_requested_data [09:09:42]requested_item fm.sn is exist - process it [09:09:42]wFMCommunicate request_size=4 [09:09:42]MH_SAM_APDU [09:09:42]CAPDU: 80 11 00 00 [09:09:42]Write to MH i2c: E2 08 00 C2 04 80 11 00 00 00 00 00 00 40 [09:09:42]Write i2c OK [09:09:42]MH_I2C_Read... [09:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:42]Read from MH i2c: E2 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: E2 17 00 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: E2 17 00 C2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 97 [09:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:09:42]wFMCommunicate OK [09:09:42]requested_item fd.num is exist - process it [09:09:42]SAM_PROTO_GetFieldsCounters [09:09:42]wFMCommunicate request_size=4 [09:09:42]MH_SAM_APDU [09:09:42]CAPDU: 80 13 00 00 [09:09:42]Write to MH i2c: E2 08 00 C3 04 80 13 00 00 00 00 00 00 43 [09:09:42]Write i2c OK [09:09:42]MH_I2C_Read... [09:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:42]Read from MH i2c: E2 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: E2 62 00 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: E2 62 00 C3 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 65 10 01 00 0E 04 04 00 0E 02 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 32 [09:09:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 65 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:42]wFMCommunicate OK [09:09:42]SAM_PROTO_GetFieldsCounters done [09:09:42]requested_item shift.num is exist - process it [09:09:42]requested_item shift.opened is exist - process it [09:09:42]req_shift_opened [09:09:42]FM_GetShiftState [09:09:42]SAM_PROTO_GetShiftState [09:09:42]wFMCommunicate request_size=4 [09:09:42]MH_SAM_APDU [09:09:42]CAPDU: 80 13 01 00 [09:09:42]Write to MH i2c: E2 08 00 C4 04 80 13 01 00 00 00 00 00 45 [09:09:42]Write i2c OK [09:09:42]MH_I2C_Read... [09:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:42]Read from MH i2c: E2 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: E2 0E 00 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: E2 0E 00 C4 04 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 D7 [09:09:42]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:09:42]wFMCommunicate OK [09:09:42]SAM_PROTO_GetShiftState done [09:09:42]FM_GetShiftState done [09:09:42]req_shift_opened done [09:09:42]requested_item shift.open_date is exist - process it [09:09:42]req_shift_open_date [09:09:42]req_shift_open_date done [09:09:42]produce_requested_data done [09:09:42]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69733,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [09:09:42]process_action_free close_receipt [09:09:42]json_value_free [09:09:42]json_value_free done [09:09:42]process_json_proto returns [09:09:42]Send response to host [09:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69733,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [09:09:42]free response buf [09:09:42]execute_script done [09:09:42]execute_script returns [09:09:42]free content buf [09:09:42]Sock 7.Close socket [09:09:42]Sock 7.Thread stoped [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:53]accept exits with 9 [09:09:53]New connection [09:09:53]New thread 3066629476 created [09:09:53]Thread 3066486116 joined [09:09:53]Waiting for new connection... [09:09:53] Sock 9.Parse request [09:09:53]Sock 9.Check first char [09:09:53]Sock 9.First char is OK [09:09:53]request: POST /json_proto HTTP/1.0 [09:09:53]Method: POST [09:09:53]URL: /json_proto [09:09:53]Method is POST - this is cgi request [09:09:53]url: /json_proto [09:09:53]query_string will be loaded in cgi processing [09:09:53]execute_cgi json_proto POST (null) [09:09:53]execute_cgi path=json_proto method=POST [09:09:53]POST find Content-Length [09:09:53]Host: 172.17.52.196:8080 [09:09:53]Content-Length: 621 [09:09:53]Content-Type: application/json [09:09:53] [09:09:53]POST finish read [09:09:53]Found Content-Length = 621 [09:09:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127136", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:53]execute_script... [09:09:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127136", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:53]POST & json_proto [09:09:53]process_json_proto [09:09:53]json parsed OK: [09:09:53]protocol is kg_v1.0 [09:09:53]action value=close_receipt [09:09:53]process_action close_receipt [09:09:53]cmd_close_receipt [09:09:53]MH_GetDate [09:09:53]Write to MH i2c: F0 00 00 C5 04 B8 [09:09:53]Write i2c OK [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: F0 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: F0 09 00 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: F0 09 00 C5 04 00 E2 C8 14 67 60 05 E4 66 95 [09:09:53]GetLastDocTimeStamp 1729415379 [09:09:53]current date 1729415394 [09:09:53]FM_GetShiftState [09:09:53]SAM_PROTO_GetShiftState [09:09:53]wFMCommunicate request_size=4 [09:09:53]MH_SAM_APDU [09:09:53]CAPDU: 80 13 01 00 [09:09:53]Write to MH i2c: E2 08 00 C6 04 80 13 01 00 00 00 00 00 47 [09:09:53]Write i2c OK [09:09:53]MH_I2C_Read... [09:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:53]Read from MH i2c: E2 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 0E 00 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 0E 00 C6 04 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 D9 [09:09:53]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:09:53]wFMCommunicate OK [09:09:53]SAM_PROTO_GetShiftState done [09:09:53]FM_GetShiftState done [09:09:53]opened in 1729384380 [09:09:53]opened+sec_in_day 1729470780 [09:09:53]quantity*price = 14400 [09:09:53]sum+1 = 14401 [09:09:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 24 20.10.2024 09:09 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69734 ФПД: 131891822478669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090954&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69734&fm=131891822478669&tin=02508201610067®Number=0000000000091770&sum=14400 0 [09:09:54]StoreToDocumentArchive [09:09:54]shift 526 fd 69734 [09:09:54]save to /storage/0526/doc_00069734 [09:09:54]save last doc name /storage/0526/doc_00069734 to /storage/kkm_last_doc_name [09:09:54]save OK [09:09:54]Clear old archive folders... [09:09:54]ProcessDocumentItem done err = 0, tmpTLVsize=273 [09:09:54]tlvbuf is 009648A0 [09:09:54]SAM_PROTO_ClearQueue [09:09:54]wFMCommunicate request_size=4 [09:09:54]MH_SAM_APDU [09:09:54]CAPDU: 80 09 00 00 [09:09:54]Write to MH i2c: E2 08 00 D3 04 80 09 00 00 00 00 00 00 49 [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:54]Read from MH i2c: E2 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 03 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 03 00 D3 04 00 90 00 4B [09:09:54]RAPDU: 90 00 [09:09:54]wFMCommunicate OK [09:09:54]SAM_PROTO_ClearQueue done [09:09:54]KKMCreateOFDPacket [09:09:54]OFDProtocolAddRootSTLVToBuf [09:09:54]FM_MakeSignedData [09:09:54]FM_MakeSignedData [09:09:54]SAM_PROTO_SignData [09:09:54]wFMCommunicate request_size=4 [09:09:54]MH_SAM_APDU [09:09:54]CAPDU: 80 0D 01 02 [09:09:54]Write to MH i2c: E2 08 00 D4 04 80 0D 01 02 00 00 00 00 51 [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:54]Read from MH i2c: E2 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 03 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 03 00 D4 04 00 90 00 4C [09:09:54]RAPDU: 90 00 [09:09:54]wFMCommunicate OK [09:09:54]wFMCommunicate request_size=255 [09:09:54]MH_SAM_APDU [09:09:54]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 E2 C8 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [09:09:54]Write to MH i2c: E2 02 01 D5 04 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 E2 C8 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 07 [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:54]Read from MH i2c: E2 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 03 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 03 00 D5 04 00 90 00 4D [09:09:54]RAPDU: 90 00 [09:09:54]wFMCommunicate OK [09:09:54]wFMCommunicate request_size=32 [09:09:54]MH_SAM_APDU [09:09:54]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 66 10 01 00 35 04 06 00 77 F4 75 3A 45 4D [09:09:54]Write to MH i2c: E2 23 00 D6 04 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 66 10 01 00 35 04 06 00 77 F4 75 3A 45 4D 00 00 D8 [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:54]Read from MH i2c: E2 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 03 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 03 00 D6 04 00 90 00 4E [09:09:54]RAPDU: 90 00 [09:09:54]wFMCommunicate OK [09:09:54]wFMCommunicate request_size=4 [09:09:54]MH_SAM_APDU [09:09:54]CAPDU: 80 0D 03 02 [09:09:54]Write to MH i2c: E2 08 00 D7 04 80 0D 03 02 00 00 00 00 56 [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:54]Read from MH i2c: E2 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 0B 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 0B 00 D7 04 00 BF BD B3 80 76 48 05 ED 90 00 B6 [09:09:54]RAPDU: BF BD B3 80 76 48 05 ED 90 00 [09:09:54]wFMCommunicate OK [09:09:54]SAM_PROTO_SignData done [09:09:54]FM_MakeSignedData done [09:09:54]CreateOFDProtocolMessage [09:09:54]wFMCommunicate request_size=4 [09:09:54]MH_SAM_APDU [09:09:54]CAPDU: 80 11 00 00 [09:09:54]Write to MH i2c: E2 08 00 D8 04 80 11 00 00 00 00 00 00 56 [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:54]Read from MH i2c: E2 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 17 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 17 00 D8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 AD [09:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:09:54]wFMCommunicate OK [09:09:54]CreateOFDProtocolMessage done [09:09:54]OFDSenderStorePacket 69734 [09:09:54]StoreOFDPacket docnum=69734 [09:09:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 CC 33 1D 01 E7 5C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 E2 C8 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 66 10 01 00 35 04 06 00 77 F4 75 3A 45 4D BF BD B3 80 76 48 05 ED [09:09:54]CheckFolder [09:09:54]dirname=/storage/ofd_packets [09:09:54]CheckFolder done [09:09:54]ProducePacketName [09:09:54]name=ofd_packets/00069734 [09:09:54]NVStorageSaveData ofd_packets/00069734 [09:09:54]File name is /storage/ofd_packets/00069734 [09:09:54]Write 323 bytes [09:09:54]NVStorageSaveData done [09:09:54]OFDSenderStorePacket done [09:09:54]KKMCreateOFDPacket done [09:09:54]NVStorageSaveData kkm_last_timestamp [09:09:54]File name is /storage/kkm_last_timestamp [09:09:54]Write 4 bytes [09:09:54]NVStorageSaveData done [09:09:54]ExternCall_PrintAddStr [09:09:54]wPrintStart [09:09:54]Write to MH i2c: 01 00 00 D9 04 DD [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: 01 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: 01 07 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: 01 07 00 D9 04 00 00 00 00 00 FF 0F F2 [09:09:54]RasterBufferAndPrint [09:09:54]line Счет N : (3)127136 [09:09:54]line ИНН: 02508201610067 [09:09:54]line Контрольно-Кассовый Чек [09:09:54]line ПРОДАЖА [09:09:54]line Товар: 48743570 [09:09:54]line Сигареты Winston XStyle Blue [09:09:54]line 1.000 * 144.00 [09:09:54]line = 144.00 [09:09:54]line НДС 12% НСП 1% [09:09:54]line > о реализуемом товаре [09:09:54]line ИТОГО: 144.00 [09:09:54]line НСП 1% : 1.27 [09:09:54]line НДС 12% : 15.29 [09:09:54]line Наличными: 144.00 [09:09:54]line Безнал.: 0.00 [09:09:54]line Место: АЗС № 163 "Партнер Нефть" [09:09:54]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [09:09:54]line СНО: Общий режим [09:09:54]line Чек 24 20.10.2024 09:09 [09:09:54]line Смена: 526 ФФД: 1.0 [09:09:54]line ЗНМ: 0300000101 [09:09:54]line РНМ: 0000000000091770 [09:09:54]line Версия ККМ: 001 [09:09:54]line ФМ: 0000000000871749 [09:09:54]line ФД: 69734 [09:09:54]line ФПД: 131891822478669 [09:09:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T090954&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69734&fm=131891822478669&tin=02508201610067®Number=0000000000091770&sum=14400 [09:09:55]OFD Sender: Processing packet 69734 [packets to send 32, broken 31] [09:09:55]ProducePacketName [09:09:55]name=ofd_packets/00069734 [09:09:55]OFD Sender: To server: pG, [09:09:55]CommunicateWithHost lk.salyk.kg:30040 [09:09:55]ConnectInit lk.salyk.kg [09:09:55]line 0 [09:09:55]written 0, free lines is 4095 [09:09:55]Connected sock=7 [09:09:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 CC 33 1D 01 E7 5C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 E2 C8 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 66 10 01 00 35 04 06 00 77 F4 75 3A 45 4D BF BD B3 80 76 48 05 ED [09:09:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 E8 38 47 00 98 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 31 37 34 39 10 04 04 00 66 10 01 00 F4 03 04 00 65 6E 14 67 B6 04 01 00 00 10 6E 1B 54 FD E2 0C E3 [09:09:55]CommunicateWithHost err = 0 [09:09:55]CheckOFDResponse [09:09:55]1017 (14) - 77093643461234 [09:09:55]1041 (16) - 0000000000871749 [09:09:55]1040 (4) - 69734 [09:09:55]1012 (4) - 20.10.2024 02:43 [09:09:55]1206 (1) - 0 [09:09:55]OFD Sender: Remove packet 69734 [09:09:55]ProducePacketName [09:09:55]name=ofd_packets/00069734 [09:09:55]NVStorageDeleteData [09:09:55]Write to MH i2c: 01 00 00 01 05 06 [09:09:55]Write i2c OK [09:09:55]MH_I2C_Read... [09:09:55]Read from MH i2c: 01 [09:09:55]MH_I2C_Read... [09:09:55]Read from MH i2c: 01 07 00 [09:09:55]MH_I2C_Read... [09:09:55]Read from MH i2c: 01 07 00 01 05 00 00 00 00 00 F3 0C 0C [09:09:55]RasterBufferAndPrint [09:09:55]line [09:09:55]line [09:09:55]line [09:09:55]line [09:09:55]line [09:09:55]written 0, free lines is 3322 [09:09:55]MH_Cut [09:09:55]Write to MH i2c: D1 01 00 08 05 01 DF [09:09:55]Write i2c OK [09:09:55]MH_I2C_Read... [09:09:55]Read from MH i2c: D1 [09:09:55]MH_I2C_Read... [09:09:55]Read from MH i2c: D1 01 00 [09:09:55]MH_I2C_Read... [09:09:55]Read from MH i2c: D1 01 00 08 05 00 DE [09:09:55]Write to MH i2c: 01 00 00 09 05 0E [09:09:55]Write i2c OK [09:09:55]MH_I2C_Read... [09:09:55]OFD Sender: No OFD packet to send [09:09:56]*** Cut start [09:09:56]*** Partial cut [09:09:56]*** CUTSNS_PIN = 1 [09:09:56]*** CUTSNS_PIN = 0 [09:09:56]*** Brake cut motor [09:09:57]Read from MH i2c: 01 [09:09:57]MH_I2C_Read... [09:09:57]*** Stop cut motor [09:09:57]*** Cut end [09:09:57]Read from MH i2c: 01 07 00 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: 01 07 00 09 05 00 00 00 00 00 FF 0F 23 [09:09:57]process_action close_receipt done [09:09:57]requested_data is exist [09:09:57]produce_requested_data [09:09:57]requested_item fm.sn is exist - process it [09:09:57]wFMCommunicate request_size=4 [09:09:57]MH_SAM_APDU [09:09:57]CAPDU: 80 11 00 00 [09:09:57]Write to MH i2c: E2 08 00 0A 05 80 11 00 00 00 00 00 00 89 [09:09:57]Write i2c OK [09:09:57]MH_I2C_Read... [09:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:57]Read from MH i2c: E2 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: E2 17 00 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: E2 17 00 0A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 E0 [09:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:09:57]wFMCommunicate OK [09:09:57]requested_item fd.num is exist - process it [09:09:57]SAM_PROTO_GetFieldsCounters [09:09:57]wFMCommunicate request_size=4 [09:09:57]MH_SAM_APDU [09:09:57]CAPDU: 80 13 00 00 [09:09:57]Write to MH i2c: E2 08 00 0B 05 80 13 00 00 00 00 00 00 8C [09:09:57]Write i2c OK [09:09:57]MH_I2C_Read... [09:09:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:57]Read from MH i2c: E2 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: E2 62 00 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: E2 62 00 0B 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 66 10 01 00 0E 04 04 00 0E 02 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 7F [09:09:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 66 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:57]wFMCommunicate OK [09:09:57]SAM_PROTO_GetFieldsCounters done [09:09:57]requested_item shift.num is exist - process it [09:09:57]requested_item shift.opened is exist - process it [09:09:57]req_shift_opened [09:09:57]FM_GetShiftState [09:09:57]SAM_PROTO_GetShiftState [09:09:57]wFMCommunicate request_size=4 [09:09:57]MH_SAM_APDU [09:09:57]CAPDU: 80 13 01 00 [09:09:57]Write to MH i2c: E2 08 00 0C 05 80 13 01 00 00 00 00 00 8E [09:09:57]Write i2c OK [09:09:57]MH_I2C_Read... [09:09:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:57]Read from MH i2c: E2 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: E2 0E 00 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: E2 0E 00 0C 05 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 20 [09:09:57]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:09:57]wFMCommunicate OK [09:09:57]SAM_PROTO_GetShiftState done [09:09:57]FM_GetShiftState done [09:09:57]req_shift_opened done [09:09:57]requested_item shift.open_date is exist - process it [09:09:57]req_shift_open_date [09:09:57]req_shift_open_date done [09:09:57]produce_requested_data done [09:09:57]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69734,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [09:09:57]process_action_free close_receipt [09:09:57]json_value_free [09:09:57]json_value_free done [09:09:57]process_json_proto returns [09:09:57]Send response to host [09:09:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69734,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [09:09:57]free response buf [09:09:57]execute_script done [09:09:57]execute_script returns [09:09:57]free content buf [09:09:57]Sock 9.Close socket [09:09:57]Sock 9.Thread stoped [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10: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]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:48]accept exits with 10 [09:13:48]New connection [09:13:48]New thread 3066486116 created [09:13:48]Thread 3066629476 joined [09:13:48]Waiting for new connection... [09:13:48] Sock 10.Parse request [09:13:48]Sock 10.Check first char [09:13:48]Sock 10.First char is OK [09:13:48]request: POST /json_proto HTTP/1.0 [09:13:48]Method: POST [09:13:48]URL: /json_proto [09:13:48]Method is POST - this is cgi request [09:13:48]url: /json_proto [09:13:48]query_string will be loaded in cgi processing [09:13:48]execute_cgi json_proto POST (null) [09:13:48]execute_cgi path=json_proto method=POST [09:13:48]POST find Content-Length [09:13:48]Host: 172.17.52.196:8080 [09:13:48]Content-Length: 605 [09:13:48]Content-Type: application/json [09:13:48] [09:13:48]POST finish read [09:13:48]Found Content-Length = 605 [09:13:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127137", "tax_sys" : 0, "items" : [ { "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 34.00, "quantity" : 2.000, "sum" : 68.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 68.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:48]execute_script... [09:13: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)127137", "tax_sys" : 0, "items" : [ { "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 34.00, "quantity" : 2.000, "sum" : 68.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 68.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:48]POST & json_proto [09:13:48]process_json_proto [09:13:48]json parsed OK: [09:13:48]protocol is kg_v1.0 [09:13:48]action value=close_receipt [09:13:48]process_action close_receipt [09:13:48]cmd_close_receipt [09:13:48]MH_GetDate [09:13:48]Write to MH i2c: F0 00 00 0D 05 01 [09:13:48]Write i2c OK [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: F0 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: F0 09 00 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: F0 09 00 0D 05 00 CD C9 14 67 60 05 E4 66 CA [09:13:48]GetLastDocTimeStamp 1729415394 [09:13:48]current date 1729415629 [09:13:48]FM_GetShiftState [09:13:48]SAM_PROTO_GetShiftState [09:13:48]wFMCommunicate request_size=4 [09:13:48]MH_SAM_APDU [09:13:48]CAPDU: 80 13 01 00 [09:13:48]Write to MH i2c: E2 08 00 0E 05 80 13 01 00 00 00 00 00 90 [09:13:48]Write i2c OK [09:13:48]MH_I2C_Read... [09:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:48]Read from MH i2c: E2 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 0E 00 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 0E 00 0E 05 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 22 [09:13:48]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:13:48]wFMCommunicate OK [09:13:48]SAM_PROTO_GetShiftState done [09:13:48]FM_GetShiftState done [09:13:48]opened in 1729384380 [09:13:48]opened+sec_in_day 1729470780 [09:13:48]quantity*price = 6800 [09:13:48]sum+1 = 6801 [09:13:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 68.00 НСП 1% : 0.60 НДС 12% : 7.22 Наличными: 68.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 25 20.10.2024 09:13 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69735 ФПД: 78616703757399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091349&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69735&fm=78616703757399&tin=02508201610067®Number=0000000000091770&sum=6800 0 [09:13:49]StoreToDocumentArchive [09:13:49]shift 526 fd 69735 [09:13:49]save to /storage/0526/doc_00069735 [09:13:49]save last doc name /storage/0526/doc_00069735 to /storage/kkm_last_doc_name [09:13:49]save OK [09:13:49]Clear old archive folders... [09:13:49]ProcessDocumentItem done err = 0, tmpTLVsize=268 [09:13:49]tlvbuf is 0095DBD0 [09:13:49]SAM_PROTO_ClearQueue [09:13:49]wFMCommunicate request_size=4 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 09 00 00 [09:13:49]Write to MH i2c: E2 08 00 1B 05 80 09 00 00 00 00 00 00 92 [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 1B 05 00 90 00 94 [09:13:49]RAPDU: 90 00 [09:13:49]wFMCommunicate OK [09:13:49]SAM_PROTO_ClearQueue done [09:13:49]KKMCreateOFDPacket [09:13:49]OFDProtocolAddRootSTLVToBuf [09:13:49]FM_MakeSignedData [09:13:49]FM_MakeSignedData [09:13:49]SAM_PROTO_SignData [09:13:49]wFMCommunicate request_size=4 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 0D 01 02 [09:13:49]Write to MH i2c: E2 08 00 1C 05 80 0D 01 02 00 00 00 00 9A [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 1C 05 00 90 00 95 [09:13:49]RAPDU: 90 00 [09:13:49]wFMCommunicate OK [09:13:49]wFMCommunicate request_size=255 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 48 0D 00 00 00 00 13 04 06 00 90 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 02 00 00 00 00 07 04 06 00 90 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 CD C9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [09:13:49]Write to MH i2c: E2 02 01 1D 05 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 48 0D 00 00 00 00 13 04 06 00 90 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 02 00 00 00 00 07 04 06 00 90 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 CD C9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 5A [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 1D 05 00 90 00 96 [09:13:49]RAPDU: 90 00 [09:13:49]wFMCommunicate OK [09:13:49]wFMCommunicate request_size=27 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 0D 02 02 16 31 37 34 39 10 04 04 00 67 10 01 00 35 04 06 00 47 80 60 B3 6C 57 [09:13:49]Write to MH i2c: E2 1E 00 1E 05 80 0D 02 02 16 00 31 37 34 39 10 04 04 00 67 10 01 00 35 04 06 00 47 80 60 B3 6C 57 00 00 0A [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 1E 05 00 90 00 97 [09:13:49]RAPDU: 90 00 [09:13:49]wFMCommunicate OK [09:13:49]wFMCommunicate request_size=4 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 0D 03 02 [09:13:49]Write to MH i2c: E2 08 00 1F 05 80 0D 03 02 00 00 00 00 9F [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 0B 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 0B 00 1F 05 00 3D 6F 61 6C 97 DB B1 AF 90 00 EB [09:13:49]RAPDU: 3D 6F 61 6C 97 DB B1 AF 90 00 [09:13:49]wFMCommunicate OK [09:13:49]SAM_PROTO_SignData done [09:13:49]FM_MakeSignedData done [09:13:49]CreateOFDProtocolMessage [09:13:49]wFMCommunicate request_size=4 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 11 00 00 [09:13:49]Write to MH i2c: E2 08 00 20 05 80 11 00 00 00 00 00 00 9F [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 17 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 17 00 20 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 F6 [09:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:13:49]wFMCommunicate OK [09:13:49]CreateOFDProtocolMessage done [09:13:49]OFDSenderStorePacket 69735 [09:13:49]StoreOFDPacket docnum=69735 [09:13:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 20 01 00 00 5A DE 18 01 03 C6 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 48 0D 00 00 00 00 13 04 06 00 90 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 02 00 00 00 00 07 04 06 00 90 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 CD C9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 67 10 01 00 35 04 06 00 47 80 60 B3 6C 57 3D 6F 61 6C 97 DB B1 AF [09:13:49]CheckFolder [09:13:49]dirname=/storage/ofd_packets [09:13:49]CheckFolder done [09:13:49]ProducePacketName [09:13:49]name=ofd_packets/00069735 [09:13:49]NVStorageSaveData ofd_packets/00069735 [09:13:49]File name is /storage/ofd_packets/00069735 [09:13:49]Write 318 bytes [09:13:49]NVStorageSaveData done [09:13:49]OFDSenderStorePacket done [09:13:49]KKMCreateOFDPacket done [09:13:49]NVStorageSaveData kkm_last_timestamp [09:13:49]File name is /storage/kkm_last_timestamp [09:13:49]Write 4 bytes [09:13:49]NVStorageSaveData done [09:13:49]ExternCall_PrintAddStr [09:13:49]wPrintStart [09:13:49]Write to MH i2c: 01 00 00 21 05 26 [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: 01 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: 01 07 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: 01 07 00 21 05 00 00 00 00 00 FF 0F 3B [09:13:49]RasterBufferAndPrint [09:13:49]line Счет N : (3)127137 [09:13:49]line ИНН: 02508201610067 [09:13:49]line Контрольно-Кассовый Чек [09:13:49]line ПРОДАЖА [09:13:49]line Товар: 50173976 [09:13:49]line Жев Orbit Winterfresh под [09:13:49]line 2.000 * 34.00 [09:13:49]line = 68.00 [09:13:49]line НДС 12% НСП 1% [09:13:49]line > о реализуемом товаре [09:13:49]line ИТОГО: 68.00 [09:13:49]line НСП 1% : 0.60 [09:13:49]line НДС 12% : 7.22 [09:13:49]line Наличными: 68.00 [09:13:49]line Безнал.: 0.00 [09:13:49]line Место: АЗС № 163 "Партнер Нефть" [09:13:49]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [09:13:49]line СНО: Общий режим [09:13:49]line Чек 25 20.10.2024 09:13 [09:13:49]line Смена: 526 ФФД: 1.0 [09:13:49]line ЗНМ: 0300000101 [09:13:49]line РНМ: 0000000000091770 [09:13:49]line Версия ККМ: 001 [09:13:49]line ФМ: 0000000000871749 [09:13:49]line ФД: 69735 [09:13:49]line ФПД: 78616703757399 [09:13:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091349&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69735&fm=78616703757399&tin=02508201610067®Number=0000000000091770&sum=6800 [09:13:50]line 0 [09:13:50]OFD Sender: Processing packet 69735 [packets to send 32, broken 31] [09:13:50]ProducePacketName [09:13:50]name=ofd_packets/00069735 [09:13:50]OFD Sender: To server: pG, [09:13:50]CommunicateWithHost lk.salyk.kg:30040 [09:13:50]ConnectInit lk.salyk.kg [09:13:50]written 0, free lines is 4095 [09:13:50]Connected sock=9 [09:13:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 20 01 00 00 5A DE 18 01 03 C6 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 48 0D 00 00 00 00 13 04 06 00 90 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 02 00 00 00 00 07 04 06 00 90 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 CD C9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 67 10 01 00 35 04 06 00 47 80 60 B3 6C 57 3D 6F 61 6C 97 DB B1 AF [09:13:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 CC FD 47 00 12 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 67 10 01 00 F4 03 04 00 50 6F 14 67 B6 04 01 00 00 EF BE 59 08 F1 63 DA 69 [09:13:50]CommunicateWithHost err = 0 [09:13:50]CheckOFDResponse [09:13:50]1017 (14) - 77093643461234 [09:13:50]1041 (16) - 0000000000871749 [09:13:50]1040 (4) - 69735 [09:13:50]1012 (4) - 20.10.2024 02:47 [09:13:50]1206 (1) - 0 [09:13:50]OFD Sender: Remove packet 69735 [09:13:50]ProducePacketName [09:13:50]name=ofd_packets/00069735 [09:13:50]NVStorageDeleteData [09:13:50]Write to MH i2c: 01 00 00 49 05 4E [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: 01 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: 01 07 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: 01 07 00 49 05 00 00 00 00 00 FC 0C 5D [09:13:50]RasterBufferAndPrint [09:13:50]line [09:13:50]line [09:13:50]line [09:13:50]line [09:13:50]line [09:13:50]written 0, free lines is 3330 [09:13:50]MH_Cut [09:13:50]Write to MH i2c: D1 01 00 50 05 01 27 [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: D1 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: D1 01 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: D1 01 00 50 05 00 26 [09:13:50]Write to MH i2c: 01 00 00 51 05 56 [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]OFD Sender: No OFD packet to send [09:13:51]*** Cut start [09:13:51]*** Partial cut [09:13:51]*** CUTSNS_PIN = 1 [09:13:51]*** CUTSNS_PIN = 0 [09:13:51]*** Brake cut motor [09:13:52]Read from MH i2c: 01 [09:13:52]MH_I2C_Read... [09:13:52]*** Stop cut motor [09:13:52]*** Cut end [09:13:52]Read from MH i2c: 01 07 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: 01 07 00 51 05 00 00 00 00 00 FF 0F 6B [09:13:52]process_action close_receipt done [09:13:52]requested_data is exist [09:13:52]produce_requested_data [09:13:52]requested_item fm.sn is exist - process it [09:13:52]wFMCommunicate request_size=4 [09:13:52]MH_SAM_APDU [09:13:52]CAPDU: 80 11 00 00 [09:13:52]Write to MH i2c: E2 08 00 52 05 80 11 00 00 00 00 00 00 D1 [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:52]Read from MH i2c: E2 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 17 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 17 00 52 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 28 [09:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:13:52]wFMCommunicate OK [09:13:52]requested_item fd.num is exist - process it [09:13:52]SAM_PROTO_GetFieldsCounters [09:13:52]wFMCommunicate request_size=4 [09:13:52]MH_SAM_APDU [09:13:52]CAPDU: 80 13 00 00 [09:13:52]Write to MH i2c: E2 08 00 53 05 80 13 00 00 00 00 00 00 D4 [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:52]Read from MH i2c: E2 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 62 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 62 00 53 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 67 10 01 00 0E 04 04 00 0E 02 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 CB [09:13: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 67 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:52]wFMCommunicate OK [09:13:52]SAM_PROTO_GetFieldsCounters done [09:13:52]requested_item shift.num is exist - process it [09:13:52]requested_item shift.opened is exist - process it [09:13:52]req_shift_opened [09:13:52]FM_GetShiftState [09:13:52]SAM_PROTO_GetShiftState [09:13:52]wFMCommunicate request_size=4 [09:13:52]MH_SAM_APDU [09:13:52]CAPDU: 80 13 01 00 [09:13:52]Write to MH i2c: E2 08 00 54 05 80 13 01 00 00 00 00 00 D6 [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:52]Read from MH i2c: E2 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 0E 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 0E 00 54 05 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 68 [09:13:52]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:13:52]wFMCommunicate OK [09:13:52]SAM_PROTO_GetShiftState done [09:13:52]FM_GetShiftState done [09:13:52]req_shift_opened done [09:13:52]requested_item shift.open_date is exist - process it [09:13:52]req_shift_open_date [09:13:52]req_shift_open_date done [09:13:52]produce_requested_data done [09:13:52]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69735,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [09:13:52]process_action_free close_receipt [09:13:52]json_value_free [09:13:52]json_value_free done [09:13:52]process_json_proto returns [09:13:52]Send response to host [09:13:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69735,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [09:13:52]free response buf [09:13:52]execute_script done [09:13:52]execute_script returns [09:13:52]free content buf [09:13:52]Sock 10.Close socket [09:13:52]Sock 10.Thread stoped [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:20]accept exits with 7 [09:19:20]New connection [09:19:20]New thread 3066629476 created [09:19:20]Thread 3066486116 joined [09:19:20]Waiting for new connection... [09:19:20] Sock 7.Parse request [09:19:20]Sock 7.Check first char [09:19:20]Sock 7.First char is OK [09:19:20]request: POST /json_proto HTTP/1.0 [09:19:20]Method: POST [09:19:20]URL: /json_proto [09:19:20]Method is POST - this is cgi request [09:19:20]url: /json_proto [09:19:20]query_string will be loaded in cgi processing [09:19:20]execute_cgi json_proto POST (null) [09:19:20]execute_cgi path=json_proto method=POST [09:19:20]POST find Content-Length [09:19:20]Host: 172.17.52.196:8080 [09:19:20]Content-Length: 883 [09:19:20]Content-Type: application/json [09:19:20] [09:19:20]POST finish read [09:19:20]Found Content-Length = 883 [09:19:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127138", "tax_sys" : 0, "items" : [ { "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 309.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:20]execute_script... [09:19:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127138", "tax_sys" : 0, "items" : [ { "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 309.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:20]POST & json_proto [09:19:20]process_json_proto [09:19:20]json parsed OK: [09:19:20]protocol is kg_v1.0 [09:19:20]action value=close_receipt [09:19:20]process_action close_receipt [09:19:20]cmd_close_receipt [09:19:20]MH_GetDate [09:19:20]Write to MH i2c: F0 00 00 55 05 49 [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: F0 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: F0 09 00 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: F0 09 00 55 05 00 19 CB 14 67 60 05 E4 66 60 [09:19:20]GetLastDocTimeStamp 1729415629 [09:19:20]current date 1729415961 [09:19:20]FM_GetShiftState [09:19:20]SAM_PROTO_GetShiftState [09:19:20]wFMCommunicate request_size=4 [09:19:20]MH_SAM_APDU [09:19:20]CAPDU: 80 13 01 00 [09:19:20]Write to MH i2c: E2 08 00 56 05 80 13 01 00 00 00 00 00 D8 [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:20]Read from MH i2c: E2 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 0E 00 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 0E 00 56 05 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 6A [09:19:20]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:19:20]wFMCommunicate OK [09:19:20]SAM_PROTO_GetShiftState done [09:19:20]FM_GetShiftState done [09:19:20]opened in 1729384380 [09:19:20]opened+sec_in_day 1729470780 [09:19:20]quantity*price = 4900 [09:19:20]sum+1 = 4901 [09:19:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 309.00 НСП 1% : 2.73 НДС 12% : 32.81 Наличными: 309.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 26 20.10.2024 09:19 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69736 ФПД: 128297662700291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091921&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69736&fm=128297662700291&tin=02508201610067®Number=0000000000091770&sum=30900 0 [09:19:21]StoreToDocumentArchive [09:19:21]shift 526 fd 69736 [09:19:21]save to /storage/0526/doc_00069736 [09:19:21]save last doc name /storage/0526/doc_00069736 to /storage/kkm_last_doc_name [09:19:21]save OK [09:19:21]Clear old archive folders... [09:19:21]ProcessDocumentItem done err = 0, tmpTLVsize=391 [09:19:21]tlvbuf is 0096A950 [09:19:21]SAM_PROTO_ClearQueue [09:19:21]wFMCommunicate request_size=4 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 09 00 00 [09:19:21]Write to MH i2c: E2 08 00 63 05 80 09 00 00 00 00 00 00 DA [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:21]Read from MH i2c: E2 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 03 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 03 00 63 05 00 90 00 DC [09:19:21]RAPDU: 90 00 [09:19:21]wFMCommunicate OK [09:19:21]SAM_PROTO_ClearQueue done [09:19:21]KKMCreateOFDPacket [09:19:21]OFDProtocolAddRootSTLVToBuf [09:19:21]FM_MakeSignedData [09:19:21]FM_MakeSignedData [09:19:21]SAM_PROTO_SignData [09:19:21]wFMCommunicate request_size=4 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 0D 01 02 [09:19:21]Write to MH i2c: E2 08 00 64 05 80 0D 01 02 00 00 00 00 E2 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:21]Read from MH i2c: E2 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 03 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 03 00 64 05 00 90 00 DD [09:19:21]RAPDU: 90 00 [09:19:21]wFMCommunicate OK [09:19:21]wFMCommunicate request_size=255 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [09:19:21]Write to MH i2c: E2 02 01 65 05 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 6D [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:21]Read from MH i2c: E2 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 03 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 03 00 65 05 00 90 00 DE [09:19:21]RAPDU: 90 00 [09:19:21]wFMCommunicate OK [09:19:21]wFMCommunicate request_size=150 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 0C 00 00 00 00 07 04 06 00 B4 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 19 CB 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 68 10 01 00 35 04 06 00 74 AF A0 9C 5B 03 [09:19:21]Write to MH i2c: E2 99 00 66 05 80 0D 02 02 91 00 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 0C 00 00 00 00 07 04 06 00 B4 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 19 CB 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 68 10 01 00 35 04 06 00 74 AF A0 9C 5B 03 00 00 13 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:21]Read from MH i2c: E2 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 03 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 03 00 66 05 00 90 00 DF [09:19:21]RAPDU: 90 00 [09:19:21]wFMCommunicate OK [09:19:21]wFMCommunicate request_size=4 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 0D 03 02 [09:19:21]Write to MH i2c: E2 08 00 67 05 80 0D 03 02 00 00 00 00 E7 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:22]Read from MH i2c: E2 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 0B 00 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 0B 00 67 05 00 C6 37 F5 E7 0A 0C 9E 5A 90 00 CF [09:19:22]RAPDU: C6 37 F5 E7 0A 0C 9E 5A 90 00 [09:19:22]wFMCommunicate OK [09:19:22]SAM_PROTO_SignData done [09:19:22]FM_MakeSignedData done [09:19:22]CreateOFDProtocolMessage [09:19:22]wFMCommunicate request_size=4 [09:19:22]MH_SAM_APDU [09:19:22]CAPDU: 80 11 00 00 [09:19:22]Write to MH i2c: E2 08 00 68 05 80 11 00 00 00 00 00 00 E7 [09:19:22]Write i2c OK [09:19:22]MH_I2C_Read... [09:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:22]Read from MH i2c: E2 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 17 00 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 17 00 68 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 3E [09:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:19:22]wFMCommunicate OK [09:19:22]CreateOFDProtocolMessage done [09:19:22]OFDSenderStorePacket 69736 [09:19:22]StoreOFDPacket docnum=69736 [09:19:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 9B 01 00 00 DC 98 93 01 92 74 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 0C 00 00 00 00 07 04 06 00 B4 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 19 CB 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 68 10 01 00 35 04 06 00 74 AF A0 9C 5B 03 C6 37 F5 E7 0A 0C 9E 5A [09:19:22]CheckFolder [09:19:22]dirname=/storage/ofd_packets [09:19:22]CheckFolder done [09:19:22]ProducePacketName [09:19:22]name=ofd_packets/00069736 [09:19:22]NVStorageSaveData ofd_packets/00069736 [09:19:22]File name is /storage/ofd_packets/00069736 [09:19:22]Write 441 bytes [09:19:22]NVStorageSaveData done [09:19:22]OFDSenderStorePacket done [09:19:22]KKMCreateOFDPacket done [09:19:22]NVStorageSaveData kkm_last_timestamp [09:19:22]File name is /storage/kkm_last_timestamp [09:19:22]Write 4 bytes [09:19:22]NVStorageSaveData done [09:19:22]ExternCall_PrintAddStr [09:19:22]wPrintStart [09:19:22]Write to MH i2c: 01 00 00 69 05 6E [09:19:22]Write i2c OK [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: 01 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: 01 07 00 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: 01 07 00 69 05 00 00 00 00 00 FF 0F 83 [09:19:22]RasterBufferAndPrint [09:19:22]line Счет N : (3)127138 [09:19:22]line ИНН: 02508201610067 [09:19:22]line Контрольно-Кассовый Чек [09:19:22]line ПРОДАЖА [09:19:22]line Товар: 46214645 [09:19:22]line Р/ж mentos pure white клуб 16/15,5г [09:19:22]line 1.000 * 49.00 [09:19:22]line = 49.00 [09:19:22]line НДС 12% НСП 1% [09:19:22]line > о реализуемом товаре [09:19:22]line Товар: 2000036220012 [09:19:22]line Кофе Капучино XL(GABB TRADE) [09:19:22]line 2.000 * 130.00 [09:19:22]line = 260.00 [09:19:22]line НДС 12% НСП 1% [09:19:22]line > о реализуемом товаре [09:19:22]line ИТОГО: 309.00 [09:19:22]line НСП 1% : 2.73 [09:19:22]line НДС 12% : 32.81 [09:19:22]line Наличными: 309.00 [09:19:22]line Безнал.: 0.00 [09:19:22]line Место: АЗС № 163 "Партнер Нефть" [09:19:22]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [09:19:22]line СНО: Общий режим [09:19:22]line Чек 26 20.10.2024 09:19 [09:19:22]line Смена: 526 ФФД: 1.0 [09:19:22]line ЗНМ: 0300000101 [09:19:22]line РНМ: 0000000000091770 [09:19:22]line Версия ККМ: 001 [09:19:22]line ФМ: 0000000000871749 [09:19:22]line ФД: 69736 [09:19:22]line ФПД: 128297662700291 [09:19:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T091921&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69736&fm=128297662700291&tin=02508201610067®Number=0000000000091770&sum=30900 [09:19:22]line 0 [09:19:22]OFD Sender: Processing packet 69736 [packets to send 32, broken 31] [09:19:22]ProducePacketName [09:19:22]name=ofd_packets/00069736 [09:19:22]OFD Sender: To server: pG, [09:19:22]CommunicateWithHost lk.salyk.kg:30040 [09:19:22]ConnectInit lk.salyk.kg [09:19:22]written 0, free lines is 4095 [09:19:22]Connected sock=10 [09:19:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 9B 01 00 00 DC 98 93 01 92 74 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 0C 00 00 00 00 07 04 06 00 B4 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 19 CB 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 68 10 01 00 35 04 06 00 74 AF A0 9C 5B 03 C6 37 F5 E7 0A 0C 9E 5A [09:19:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 78 85 47 00 27 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 68 10 01 00 F4 03 04 00 9C 70 14 67 B6 04 01 00 00 4D 08 74 A3 7C B8 53 62 [09:19:22]CommunicateWithHost err = 0 [09:19:22]CheckOFDResponse [09:19:22]1017 (14) - 77093643461234 [09:19:22]1041 (16) - 0000000000871749 [09:19:22]1040 (4) - 69736 [09:19:22]1012 (4) - 20.10.2024 02:53 [09:19:22]1206 (1) - 0 [09:19:22]OFD Sender: Remove packet 69736 [09:19:22]ProducePacketName [09:19:22]name=ofd_packets/00069736 [09:19:22]NVStorageDeleteData [09:19:22]Write to MH i2c: 01 00 00 99 05 9E [09:19:22]Write i2c OK [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: 01 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: 01 07 00 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: 01 07 00 99 05 00 00 00 00 00 90 0C 41 [09:19:22]RasterBufferAndPrint [09:19:22]line [09:19:22]line [09:19:22]line [09:19:22]line [09:19:22]line [09:19:22]written 0, free lines is 3223 [09:19:22]MH_Cut [09:19:22]Write to MH i2c: D1 01 00 A0 05 01 77 [09:19:22]Write i2c OK [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: D1 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: D1 01 00 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: D1 01 00 A0 05 00 76 [09:19:22]Write to MH i2c: 01 00 00 A1 05 A6 [09:19:22]Write i2c OK [09:19:22]MH_I2C_Read... [09:19:23]OFD Sender: No OFD packet to send [09:19:23]*** Cut start [09:19:23]*** Partial cut [09:19:23]*** CUTSNS_PIN = 1 [09:19:23]*** CUTSNS_PIN = 0 [09:19:24]*** Brake cut motor [09:19:24]Read from MH i2c: 01 [09:19:24]MH_I2C_Read... [09:19:24]*** Stop cut motor [09:19:24]*** Cut end [09:19:24]Read from MH i2c: 01 07 00 [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: 01 07 00 A1 05 00 00 00 00 00 FF 0F BB [09:19:24]process_action close_receipt done [09:19:24]requested_data is exist [09:19:24]produce_requested_data [09:19:24]requested_item fm.sn is exist - process it [09:19:24]wFMCommunicate request_size=4 [09:19:24]MH_SAM_APDU [09:19:24]CAPDU: 80 11 00 00 [09:19:24]Write to MH i2c: E2 08 00 A2 05 80 11 00 00 00 00 00 00 21 [09:19:24]Write i2c OK [09:19:24]MH_I2C_Read... [09:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:24]Read from MH i2c: E2 [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: E2 17 00 [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: E2 17 00 A2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 78 [09:19:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:19:24]wFMCommunicate OK [09:19:24]requested_item fd.num is exist - process it [09:19:24]SAM_PROTO_GetFieldsCounters [09:19:24]wFMCommunicate request_size=4 [09:19:24]MH_SAM_APDU [09:19:24]CAPDU: 80 13 00 00 [09:19:24]Write to MH i2c: E2 08 00 A3 05 80 13 00 00 00 00 00 00 24 [09:19:24]Write i2c OK [09:19:24]MH_I2C_Read... [09:19:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:24]Read from MH i2c: E2 [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: E2 62 00 [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: E2 62 00 A3 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 68 10 01 00 0E 04 04 00 0E 02 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 1F [09:19:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 68 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:24]wFMCommunicate OK [09:19:24]SAM_PROTO_GetFieldsCounters done [09:19:24]requested_item shift.num is exist - process it [09:19:24]requested_item shift.opened is exist - process it [09:19:24]req_shift_opened [09:19:24]FM_GetShiftState [09:19:24]SAM_PROTO_GetShiftState [09:19:24]wFMCommunicate request_size=4 [09:19:24]MH_SAM_APDU [09:19:24]CAPDU: 80 13 01 00 [09:19:24]Write to MH i2c: E2 08 00 A4 05 80 13 01 00 00 00 00 00 26 [09:19:24]Write i2c OK [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: E2 [09:19:24]MH_I2C_Read... [09:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:24]Read from MH i2c: E2 0E 00 [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: E2 0E 00 A4 05 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 B8 [09:19:24]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:19:24]wFMCommunicate OK [09:19:24]SAM_PROTO_GetShiftState done [09:19:24]FM_GetShiftState done [09:19:24]req_shift_opened done [09:19:24]requested_item shift.open_date is exist - process it [09:19:24]req_shift_open_date [09:19:24]req_shift_open_date done [09:19:24]produce_requested_data done [09:19:24]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69736,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [09:19:24]process_action_free close_receipt [09:19:24]json_value_free [09:19:24]json_value_free done [09:19:24]process_json_proto returns [09:19:24]Send response to host [09:19:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69736,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [09:19:24]free response buf [09:19:24]execute_script done [09:19:24]execute_script returns [09:19:24]free content buf [09:19:24]Sock 7.Close socket [09:19:24]Sock 7.Thread stoped [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:55]accept exits with 9 [09:25:55]New connection [09:25:55]New thread 3066486116 created [09:25:55]Thread 3066629476 joined [09:25:55]Waiting for new connection... [09:25:55] Sock 9.Parse request [09:25:55]Sock 9.Check first char [09:25:55]Sock 9.First char is OK [09:25:55]request: POST /json_proto HTTP/1.0 [09:25:55]Method: POST [09:25:55]URL: /json_proto [09:25:55]Method is POST - this is cgi request [09:25:55]url: /json_proto [09:25:55]query_string will be loaded in cgi processing [09:25:55]execute_cgi json_proto POST (null) [09:25:55]execute_cgi path=json_proto method=POST [09:25:55]POST find Content-Length [09:25:55]Host: 172.17.52.196:8080 [09:25:55]Content-Length: 621 [09:25:55]Content-Type: application/json [09:25:55] [09:25:55]POST finish read [09:25:55]Found Content-Length = 621 [09:25:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127139", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:55]execute_script... [09:25:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127139", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:55]POST & json_proto [09:25:55]process_json_proto [09:25:55]json parsed OK: [09:25:55]protocol is kg_v1.0 [09:25:55]action value=close_receipt [09:25:55]process_action close_receipt [09:25:55]cmd_close_receipt [09:25:55]MH_GetDate [09:25:55]Write to MH i2c: F0 00 00 A5 05 99 [09:25:55]Write i2c OK [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: F0 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: F0 09 00 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: F0 09 00 A5 05 00 A4 CC 14 67 60 05 E4 66 3C [09:25:55]GetLastDocTimeStamp 1729415961 [09:25:55]current date 1729416356 [09:25:55]FM_GetShiftState [09:25:55]SAM_PROTO_GetShiftState [09:25:55]wFMCommunicate request_size=4 [09:25:55]MH_SAM_APDU [09:25:55]CAPDU: 80 13 01 00 [09:25:55]Write to MH i2c: E2 08 00 A6 05 80 13 01 00 00 00 00 00 28 [09:25:55]Write i2c OK [09:25:55]MH_I2C_Read... [09:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:55]Read from MH i2c: E2 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 0E 00 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 0E 00 A6 05 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 BA [09:25:55]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:25:55]wFMCommunicate OK [09:25:55]SAM_PROTO_GetShiftState done [09:25:55]FM_GetShiftState done [09:25:55]opened in 1729384380 [09:25:55]opened+sec_in_day 1729470780 [09:25:55]quantity*price = 14400 [09:25:55]sum+1 = 14401 [09:25:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 27 20.10.2024 09:25 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69737 ФПД: 107677207934010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092556&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69737&fm=107677207934010&tin=02508201610067®Number=0000000000091770&sum=14400 0 [09:25:56]StoreToDocumentArchive [09:25:56]shift 526 fd 69737 [09:25:56]save to /storage/0526/doc_00069737 [09:25:56]save last doc name /storage/0526/doc_00069737 to /storage/kkm_last_doc_name [09:25:56]save OK [09:25:56]Clear old archive folders... [09:25:56]ProcessDocumentItem done err = 0, tmpTLVsize=273 [09:25:56]tlvbuf is 00960270 [09:25:56]SAM_PROTO_ClearQueue [09:25:56]wFMCommunicate request_size=4 [09:25:56]MH_SAM_APDU [09:25:56]CAPDU: 80 09 00 00 [09:25:56]Write to MH i2c: E2 08 00 B3 05 80 09 00 00 00 00 00 00 2A [09:25:56]Write i2c OK [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 [09:25:56]MH_I2C_Read... [09:25:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:56]Read from MH i2c: E2 03 00 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 03 00 B3 05 00 90 00 2C [09:25:56]RAPDU: 90 00 [09:25:56]wFMCommunicate OK [09:25:56]SAM_PROTO_ClearQueue done [09:25:56]KKMCreateOFDPacket [09:25:56]OFDProtocolAddRootSTLVToBuf [09:25:56]FM_MakeSignedData [09:25:56]FM_MakeSignedData [09:25:56]SAM_PROTO_SignData [09:25:56]wFMCommunicate request_size=4 [09:25:56]MH_SAM_APDU [09:25:56]CAPDU: 80 0D 01 02 [09:25:56]Write to MH i2c: E2 08 00 B4 05 80 0D 01 02 00 00 00 00 32 [09:25:56]Write i2c OK [09:25:56]MH_I2C_Read... [09:25:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:56]Read from MH i2c: E2 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 03 00 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 03 00 B4 05 00 90 00 2D [09:25:56]RAPDU: 90 00 [09:25:56]wFMCommunicate OK [09:25:56]wFMCommunicate request_size=255 [09:25:56]MH_SAM_APDU [09:25:56]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 A4 CC 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [09:25:56]Write to MH i2c: E2 02 01 B5 05 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 A4 CC 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 B1 [09:25:56]Write i2c OK [09:25:56]MH_I2C_Read... [09:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:56]Read from MH i2c: E2 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 03 00 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 03 00 B5 05 00 90 00 2E [09:25:56]RAPDU: 90 00 [09:25:56]wFMCommunicate OK [09:25:56]wFMCommunicate request_size=32 [09:25:56]MH_SAM_APDU [09:25:56]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 69 10 01 00 35 04 06 00 61 EE 8D BA B4 3A [09:25:56]Write to MH i2c: E2 23 00 B6 05 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 69 10 01 00 35 04 06 00 61 EE 8D BA B4 3A 00 00 94 [09:25:56]Write i2c OK [09:25:56]MH_I2C_Read... [09:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:56]Read from MH i2c: E2 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 03 00 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [09:25:56]RAPDU: 90 00 [09:25:56]wFMCommunicate OK [09:25:56]wFMCommunicate request_size=4 [09:25:56]MH_SAM_APDU [09:25:56]CAPDU: 80 0D 03 02 [09:25:56]Write to MH i2c: E2 08 00 B7 05 80 0D 03 02 00 00 00 00 37 [09:25:56]Write i2c OK [09:25:56]MH_I2C_Read... [09:25:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:56]Read from MH i2c: E2 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 0B 00 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 0B 00 B7 05 00 AD 63 66 8E 8E 15 C1 D6 90 00 76 [09:25:56]RAPDU: AD 63 66 8E 8E 15 C1 D6 90 00 [09:25:56]wFMCommunicate OK [09:25:56]SAM_PROTO_SignData done [09:25:56]FM_MakeSignedData done [09:25:56]CreateOFDProtocolMessage [09:25:56]wFMCommunicate request_size=4 [09:25:56]MH_SAM_APDU [09:25:56]CAPDU: 80 11 00 00 [09:25:56]Write to MH i2c: E2 08 00 B8 05 80 11 00 00 00 00 00 00 37 [09:25:56]Write i2c OK [09:25:56]MH_I2C_Read... [09:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:56]Read from MH i2c: E2 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 17 00 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 17 00 B8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 8E [09:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:25:56]wFMCommunicate OK [09:25:56]CreateOFDProtocolMessage done [09:25:56]OFDSenderStorePacket 69737 [09:25:56]StoreOFDPacket docnum=69737 [09:25:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 5B DA 1D 01 19 7B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 A4 CC 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 69 10 01 00 35 04 06 00 61 EE 8D BA B4 3A AD 63 66 8E 8E 15 C1 D6 [09:25:56]CheckFolder [09:25:56]dirname=/storage/ofd_packets [09:25:56]CheckFolder done [09:25:56]ProducePacketName [09:25:56]name=ofd_packets/00069737 [09:25:56]NVStorageSaveData ofd_packets/00069737 [09:25:56]File name is /storage/ofd_packets/00069737 [09:25:56]Write 323 bytes [09:25:56]NVStorageSaveData done [09:25:56]OFDSenderStorePacket done [09:25:56]KKMCreateOFDPacket done [09:25:56]NVStorageSaveData kkm_last_timestamp [09:25:56]File name is /storage/kkm_last_timestamp [09:25:56]Write 4 bytes [09:25:56]NVStorageSaveData done [09:25:56]ExternCall_PrintAddStr [09:25:56]wPrintStart [09:25:56]Write to MH i2c: 01 00 00 B9 05 BE [09:25:56]Write i2c OK [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: 01 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: 01 07 00 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: 01 07 00 B9 05 00 00 00 00 00 FF 0F D3 [09:25:56]RasterBufferAndPrint [09:25:56]line Счет N : (3)127139 [09:25:56]line ИНН: 02508201610067 [09:25:56]line Контрольно-Кассовый Чек [09:25:56]line ПРОДАЖА [09:25:56]line Товар: 48743570 [09:25:56]line Сигареты Winston XStyle Blue [09:25:56]line 1.000 * 144.00 [09:25:56]line = 144.00 [09:25:56]line НДС 12% НСП 1% [09:25:56]line > о реализуемом товаре [09:25:56]line ИТОГО: 144.00 [09:25:56]line НСП 1% : 1.27 [09:25:56]line НДС 12% : 15.29 [09:25:56]line Наличными: 144.00 [09:25:56]line Безнал.: 0.00 [09:25:56]line Место: АЗС № 163 "Партнер Нефть" [09:25:56]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [09:25:56]line СНО: Общий режим [09:25:56]line Чек 27 20.10.2024 09:25 [09:25:56]line Смена: 526 ФФД: 1.0 [09:25:56]line ЗНМ: 0300000101 [09:25:56]line РНМ: 0000000000091770 [09:25:56]line Версия ККМ: 001 [09:25:56]line ФМ: 0000000000871749 [09:25:56]line ФД: 69737 [09:25:56]line ФПД: 107677207934010 [09:25:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T092556&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69737&fm=107677207934010&tin=02508201610067®Number=0000000000091770&sum=14400 [09:25:56]line 0 [09:25:56]OFD Sender: Processing packet 69737 [packets to send 32, broken 31] [09:25:56]ProducePacketName [09:25:56]name=ofd_packets/00069737 [09:25:56]OFD Sender: To server: pG, [09:25:56]CommunicateWithHost lk.salyk.kg:30040 [09:25:56]ConnectInit lk.salyk.kg [09:25:56]written 0, free lines is 4095 [09:25:56]Connected sock=10 [09:25:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 5B DA 1D 01 19 7B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 A4 CC 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 69 10 01 00 35 04 06 00 61 EE 8D BA B4 3A AD 63 66 8E 8E 15 C1 D6 [09:25:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 E0 E4 47 00 09 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 69 10 01 00 F4 03 04 00 27 72 14 67 B6 04 01 00 00 34 A8 7E E2 1E 9F C0 A5 [09:25:57]CommunicateWithHost err = 0 [09:25:57]CheckOFDResponse [09:25:57]1017 (14) - 77093643461234 [09:25:57]1041 (16) - 0000000000871749 [09:25:57]1040 (4) - 69737 [09:25:57]1012 (4) - 20.10.2024 02:59 [09:25:57]1206 (1) - 0 [09:25:57]OFD Sender: Remove packet 69737 [09:25:57]ProducePacketName [09:25:57]name=ofd_packets/00069737 [09:25:57]NVStorageDeleteData [09:25:57]Write to MH i2c: 01 00 00 E1 05 E6 [09:25:57]Write i2c OK [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: 01 [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: 01 07 00 [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: 01 07 00 E1 05 00 00 00 00 00 01 0D FB [09:25:57]RasterBufferAndPrint [09:25:57]line [09:25:57]line [09:25:57]line [09:25:57]line [09:25:57]line [09:25:57]written 0, free lines is 3336 [09:25:57]MH_Cut [09:25:57]Write to MH i2c: D1 01 00 E8 05 01 BF [09:25:57]Write i2c OK [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: D1 [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: D1 01 00 [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: D1 01 00 E8 05 00 BE [09:25:57]Write to MH i2c: 01 00 00 E9 05 EE [09:25:57]Write i2c OK [09:25:57]MH_I2C_Read... [09:25:57]OFD Sender: No OFD packet to send [09:25:58]*** Cut start [09:25:58]*** Partial cut [09:25:58]*** CUTSNS_PIN = 1 [09:25:58]*** CUTSNS_PIN = 0 [09:25:58]*** Brake cut motor [09:25:58]Read from MH i2c: 01 [09:25:58]MH_I2C_Read... [09:25:58]*** Stop cut motor [09:25:58]*** Cut end [09:25:58]Read from MH i2c: 01 07 00 [09:25:58]MH_I2C_Read... [09:25:58]Read from MH i2c: 01 07 00 E9 05 00 00 00 00 00 FF 0F 03 [09:25:58]process_action close_receipt done [09:25:58]requested_data is exist [09:25:58]produce_requested_data [09:25:58]requested_item fm.sn is exist - process it [09:25:58]wFMCommunicate request_size=4 [09:25:58]MH_SAM_APDU [09:25:58]CAPDU: 80 11 00 00 [09:25:58]Write to MH i2c: E2 08 00 EA 05 80 11 00 00 00 00 00 00 69 [09:25:58]Write i2c OK [09:25:58]MH_I2C_Read... [09:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:58]Read from MH i2c: E2 [09:25:58]MH_I2C_Read... [09:25:58]Read from MH i2c: E2 17 00 [09:25:58]MH_I2C_Read... [09:25:58]Read from MH i2c: E2 17 00 EA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 C0 [09:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:25:58]wFMCommunicate OK [09:25:58]requested_item fd.num is exist - process it [09:25:58]SAM_PROTO_GetFieldsCounters [09:25:58]wFMCommunicate request_size=4 [09:25:58]MH_SAM_APDU [09:25:58]CAPDU: 80 13 00 00 [09:25:58]Write to MH i2c: E2 08 00 EB 05 80 13 00 00 00 00 00 00 6C [09:25:58]Write i2c OK [09:25:58]MH_I2C_Read... [09:25:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:59]Read from MH i2c: E2 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 62 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 62 00 EB 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 69 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [09:25: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 69 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:59]wFMCommunicate OK [09:25:59]SAM_PROTO_GetFieldsCounters done [09:25:59]requested_item shift.num is exist - process it [09:25:59]requested_item shift.opened is exist - process it [09:25:59]req_shift_opened [09:25:59]FM_GetShiftState [09:25:59]SAM_PROTO_GetShiftState [09:25:59]wFMCommunicate request_size=4 [09:25:59]MH_SAM_APDU [09:25:59]CAPDU: 80 13 01 00 [09:25:59]Write to MH i2c: E2 08 00 EC 05 80 13 01 00 00 00 00 00 6E [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:59]Read from MH i2c: E2 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 0E 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 0E 00 EC 05 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 00 [09:25:59]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:25:59]wFMCommunicate OK [09:25:59]SAM_PROTO_GetShiftState done [09:25:59]FM_GetShiftState done [09:25:59]req_shift_opened done [09:25:59]requested_item shift.open_date is exist - process it [09:25:59]req_shift_open_date [09:25:59]req_shift_open_date done [09:25:59]produce_requested_data done [09:25:59]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69737,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [09:25:59]process_action_free close_receipt [09:25:59]json_value_free [09:25:59]json_value_free done [09:25:59]process_json_proto returns [09:25:59]Send response to host [09:25:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69737,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [09:25:59]free response buf [09:25:59]execute_script done [09:25:59]execute_script returns [09:25:59]free content buf [09:25:59]Sock 9.Close socket [09:25:59]Sock 9.Thread stoped [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:18]accept exits with 7 [09:32:18]New connection [09:32:18]New thread 3066629476 created [09:32:18]Thread 3066486116 joined [09:32:18]Waiting for new connection... [09:32:18] Sock 7.Parse request [09:32:18]Sock 7.Check first char [09:32:18]Sock 7.First char is OK [09:32:18]request: POST /json_proto HTTP/1.0 [09:32:18]Method: POST [09:32:18]URL: /json_proto [09:32:18]Method is POST - this is cgi request [09:32:18]url: /json_proto [09:32:18]query_string will be loaded in cgi processing [09:32:18]execute_cgi json_proto POST (null) [09:32:18]execute_cgi path=json_proto method=POST [09:32:18]POST find Content-Length [09:32:18]Host: 172.17.52.196:8080 [09:32:18]Content-Length: 777 [09:32:18]Content-Type: application/json [09:32:18] [09:32:18]POST finish read [09:32:18]Found Content-Length = 777 [09:32:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127140", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:18]execute_script... [09:32: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)127140", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:18]POST & json_proto [09:32:18]process_json_proto [09:32:18]json parsed OK: [09:32:18]protocol is kg_v1.0 [09:32:18]action value=close_receipt [09:32:18]process_action close_receipt [09:32:18]cmd_close_receipt [09:32:18]MH_GetDate [09:32:18]Write to MH i2c: F0 00 00 ED 05 E1 [09:32:18]Write i2c OK [09:32:18]MH_I2C_Read... [09:32:18]Read from MH i2c: F0 [09:32:18]MH_I2C_Read... [09:32:18]Read from MH i2c: F0 09 00 [09:32:18]MH_I2C_Read... [09:32:18]Read from MH i2c: F0 09 00 ED 05 00 23 CE 14 67 60 05 E4 66 05 [09:32:18]GetLastDocTimeStamp 1729416356 [09:32:18]current date 1729416739 [09:32:18]FM_GetShiftState [09:32:18]SAM_PROTO_GetShiftState [09:32:18]wFMCommunicate request_size=4 [09:32:18]MH_SAM_APDU [09:32:18]CAPDU: 80 13 01 00 [09:32:18]Write to MH i2c: E2 08 00 EE 05 80 13 01 00 00 00 00 00 70 [09:32:18]Write i2c OK [09:32:18]MH_I2C_Read... [09:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:18]Read from MH i2c: E2 [09:32:18]MH_I2C_Read... [09:32:18]Read from MH i2c: E2 0E 00 [09:32:18]MH_I2C_Read... [09:32:18]Read from MH i2c: E2 0E 00 EE 05 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 02 [09:32:18]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:32:18]wFMCommunicate OK [09:32:18]SAM_PROTO_GetShiftState done [09:32:18]FM_GetShiftState done [09:32:18]opened in 1729384380 [09:32:18]opened+sec_in_day 1729470780 [09:32:18]quantity*price = 10500 [09:32:18]sum+1 = 10501 [09:32:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 0.00 Безнал.: 105.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 28 20.10.2024 09:32 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69738 ФПД: 178446001136443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093219&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69738&fm=178446001136443&tin=02508201610067®Number=0000000000091770&sum=10500 0 [09:32:19]StoreToDocumentArchive [09:32:19]shift 526 fd 69738 [09:32:19]save to /storage/0526/doc_00069738 [09:32:19]save last doc name /storage/0526/doc_00069738 to /storage/kkm_last_doc_name [09:32:19]save OK [09:32:19]Clear old archive folders... [09:32:19]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:32:19]tlvbuf is 0097DC40 [09:32:19]SAM_PROTO_ClearQueue [09:32:19]wFMCommunicate request_size=4 [09:32:19]MH_SAM_APDU [09:32:19]CAPDU: 80 09 00 00 [09:32:19]Write to MH i2c: E2 08 00 FB 05 80 09 00 00 00 00 00 00 72 [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:19]Read from MH i2c: E2 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 03 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 03 00 FB 05 00 90 00 74 [09:32:19]RAPDU: 90 00 [09:32:19]wFMCommunicate OK [09:32:19]SAM_PROTO_ClearQueue done [09:32:19]KKMCreateOFDPacket [09:32:19]OFDProtocolAddRootSTLVToBuf [09:32:19]FM_MakeSignedData [09:32:19]FM_MakeSignedData [09:32:19]SAM_PROTO_SignData [09:32:19]wFMCommunicate request_size=4 [09:32:19]MH_SAM_APDU [09:32:19]CAPDU: 80 0D 01 02 [09:32:19]Write to MH i2c: E2 08 00 FC 05 80 0D 01 02 00 00 00 00 7A [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:19]Read from MH i2c: E2 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 03 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 03 00 FC 05 00 90 00 75 [09:32:19]RAPDU: 90 00 [09:32:19]wFMCommunicate OK [09:32:19]wFMCommunicate request_size=255 [09:32:19]MH_SAM_APDU [09:32:19]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 23 CE 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 [09:32:19]Write to MH i2c: E2 02 01 FD 05 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 23 CE 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 00 00 D9 [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:19]Read from MH i2c: E2 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 03 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 03 00 FD 05 00 90 00 76 [09:32:19]RAPDU: 90 00 [09:32:19]wFMCommunicate OK [09:32:19]wFMCommunicate request_size=41 [09:32:19]MH_SAM_APDU [09:32:19]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6A 10 01 00 35 04 06 00 A2 4B B2 82 63 3B [09:32:19]Write to MH i2c: E2 2C 00 FE 05 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6A 10 01 00 35 04 06 00 A2 4B B2 82 63 3B 00 00 8A [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:19]Read from MH i2c: E2 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 03 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 03 00 FE 05 00 90 00 77 [09:32:19]RAPDU: 90 00 [09:32:19]wFMCommunicate OK [09:32:19]wFMCommunicate request_size=4 [09:32:19]MH_SAM_APDU [09:32:19]CAPDU: 80 0D 03 02 [09:32:19]Write to MH i2c: E2 08 00 FF 05 80 0D 03 02 00 00 00 00 7F [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:19]Read from MH i2c: E2 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 0B 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 0B 00 FF 05 00 A3 11 BB 2B BA E7 B8 12 90 00 85 [09:32:19]RAPDU: A3 11 BB 2B BA E7 B8 12 90 00 [09:32:19]wFMCommunicate OK [09:32:19]SAM_PROTO_SignData done [09:32:19]FM_MakeSignedData done [09:32:19]CreateOFDProtocolMessage [09:32:19]wFMCommunicate request_size=4 [09:32:19]MH_SAM_APDU [09:32:19]CAPDU: 80 11 00 00 [09:32:19]Write to MH i2c: E2 08 00 00 06 80 11 00 00 00 00 00 00 80 [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:19]Read from MH i2c: E2 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 17 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 17 00 00 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 D7 [09:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:32:19]wFMCommunicate OK [09:32:19]CreateOFDProtocolMessage done [09:32:19]OFDSenderStorePacket 69738 [09:32:19]StoreOFDPacket docnum=69738 [09:32:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2E 01 00 00 B1 67 26 01 4C 6E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 23 CE 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6A 10 01 00 35 04 06 00 A2 4B B2 82 63 3B A3 11 BB 2B BA E7 B8 12 [09:32:19]CheckFolder [09:32:19]dirname=/storage/ofd_packets [09:32:19]CheckFolder done [09:32:19]ProducePacketName [09:32:19]name=ofd_packets/00069738 [09:32:19]NVStorageSaveData ofd_packets/00069738 [09:32:19]File name is /storage/ofd_packets/00069738 [09:32:19]Write 332 bytes [09:32:19]NVStorageSaveData done [09:32:19]OFDSenderStorePacket done [09:32:19]KKMCreateOFDPacket done [09:32:19]NVStorageSaveData kkm_last_timestamp [09:32:19]File name is /storage/kkm_last_timestamp [09:32:19]Write 4 bytes [09:32:19]NVStorageSaveData done [09:32:19]ExternCall_PrintAddStr [09:32:19]wPrintStart [09:32:19]Write to MH i2c: 01 00 00 01 06 07 [09:32:19]OFD Sender: Processing packet 69738 [packets to send 32, broken 31] [09:32:19]ProducePacketName [09:32:19]name=ofd_packets/00069738 [09:32:19]OFD Sender: To server: pG, [09:32:19]CommunicateWithHost lk.salyk.kg:30040 [09:32:19]ConnectInit lk.salyk.kg [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: 01 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: 01 07 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: 01 07 00 01 06 00 00 00 00 00 FF 0F 1C [09:32:19]RasterBufferAndPrint [09:32:19]line Счет N : (3)127140 [09:32:19]line ИНН: 02508201610067 [09:32:19]line Контрольно-Кассовый Чек [09:32:19]line ПРОДАЖА [09:32:19]line Товар: 2000034730018 [09:32:19]line Кофе Американо (GABB TRADE) [09:32:19]line 1.000 * 105.00 [09:32:19]line = 105.00 [09:32:19]line НДС 12% НСП 1% [09:32:19]line > о реализуемом товаре [09:32:19]line ИТОГО: 105.00 [09:32:19]line НСП 1% : 0.93 [09:32:19]line НДС 12% : 11.15 [09:32:19]line Наличными: 0.00 [09:32:19]line Безнал.: 105.00 [09:32:19]line Место: АЗС № 163 "Партнер Нефть" [09:32:19]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [09:32:19]line СНО: Общий режим [09:32:19]line Чек 28 20.10.2024 09:32 [09:32:19]line Смена: 526 ФФД: 1.0 [09:32:19]line ЗНМ: 0300000101 [09:32:19]line РНМ: 0000000000091770 [09:32:19]line Версия ККМ: 001 [09:32:19]line Платежная система: Mbank [09:32:19]line ФМ: 0000000000871749 [09:32:19]line ФД: 69738 [09:32:19]line ФПД: 178446001136443 [09:32:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093219&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69738&fm=178446001136443&tin=02508201610067®Number=0000000000091770&sum=10500 [09:32:20]Connected sock=10 [09:32:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2E 01 00 00 B1 67 26 01 4C 6E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 23 CE 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6A 10 01 00 35 04 06 00 A2 4B B2 82 63 3B A3 11 BB 2B BA E7 B8 12 [09:32:20]line 0 [09:32:20]written 0, free lines is 4095 [09:32:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 63 1C 47 00 0C 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 31 37 34 39 10 04 04 00 6A 10 01 00 F4 03 04 00 A6 73 14 67 B6 04 01 00 00 25 29 70 D6 EB F7 73 77 [09:32:20]CommunicateWithHost err = 0 [09:32:20]CheckOFDResponse [09:32:20]1017 (14) - 77093643461234 [09:32:20]1041 (16) - 0000000000871749 [09:32:20]1040 (4) - 69738 [09:32:20]1012 (4) - 20.10.2024 03:06 [09:32:20]1206 (1) - 0 [09:32:20]OFD Sender: Remove packet 69738 [09:32:20]ProducePacketName [09:32:20]name=ofd_packets/00069738 [09:32:20]NVStorageDeleteData [09:32:20]Write to MH i2c: 01 00 00 2B 06 31 [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: 01 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: 01 07 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: 01 07 00 2B 06 00 00 00 00 00 F0 0C 34 [09:32:20]RasterBufferAndPrint [09:32:20]line [09:32:20]line [09:32:20]line [09:32:20]line [09:32:20]line [09:32:20]written 0, free lines is 3321 [09:32:20]MH_Cut [09:32:20]Write to MH i2c: D1 01 00 32 06 01 0A [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: D1 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: D1 01 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: D1 01 00 32 06 00 09 [09:32:20]Write to MH i2c: 01 00 00 33 06 39 [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]OFD Sender: No OFD packet to send [09:32:21]*** Cut start [09:32:21]*** Partial cut [09:32:21]*** CUTSNS_PIN = 1 [09:32:21]*** CUTSNS_PIN = 0 [09:32:21]*** Brake cut motor [09:32:22]Read from MH i2c: 01 [09:32:22]MH_I2C_Read... [09:32:22]*** Stop cut motor [09:32:22]*** Cut end [09:32:22]Read from MH i2c: 01 07 00 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: 01 07 00 33 06 00 00 00 00 00 FF 0F 4E [09:32:22]process_action close_receipt done [09:32:22]requested_data is exist [09:32:22]produce_requested_data [09:32:22]requested_item fm.sn is exist - process it [09:32:22]wFMCommunicate request_size=4 [09:32:22]MH_SAM_APDU [09:32:22]CAPDU: 80 11 00 00 [09:32:22]Write to MH i2c: E2 08 00 34 06 80 11 00 00 00 00 00 00 B4 [09:32:22]Write i2c OK [09:32:22]MH_I2C_Read... [09:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:22]Read from MH i2c: E2 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: E2 17 00 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: E2 17 00 34 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 0B [09:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:32:22]wFMCommunicate OK [09:32:22]requested_item fd.num is exist - process it [09:32:22]SAM_PROTO_GetFieldsCounters [09:32:22]wFMCommunicate request_size=4 [09:32:22]MH_SAM_APDU [09:32:22]CAPDU: 80 13 00 00 [09:32:22]Write to MH i2c: E2 08 00 35 06 80 13 00 00 00 00 00 00 B7 [09:32:22]Write i2c OK [09:32:22]MH_I2C_Read... [09:32:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:22]Read from MH i2c: E2 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: E2 62 00 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: E2 62 00 35 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 6A 10 01 00 0E 04 04 00 0E 02 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 BA [09:32: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 6A 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:22]wFMCommunicate OK [09:32:22]SAM_PROTO_GetFieldsCounters done [09:32:22]requested_item shift.num is exist - process it [09:32:22]requested_item shift.opened is exist - process it [09:32:22]req_shift_opened [09:32:22]FM_GetShiftState [09:32:22]SAM_PROTO_GetShiftState [09:32:22]wFMCommunicate request_size=4 [09:32:22]MH_SAM_APDU [09:32:22]CAPDU: 80 13 01 00 [09:32:22]Write to MH i2c: E2 08 00 36 06 80 13 01 00 00 00 00 00 B9 [09:32:22]Write i2c OK [09:32:22]MH_I2C_Read... [09:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:22]Read from MH i2c: E2 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: E2 0E 00 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: E2 0E 00 36 06 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 4B [09:32:22]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:32:22]wFMCommunicate OK [09:32:22]SAM_PROTO_GetShiftState done [09:32:22]FM_GetShiftState done [09:32:22]req_shift_opened done [09:32:22]requested_item shift.open_date is exist - process it [09:32:22]req_shift_open_date [09:32:22]req_shift_open_date done [09:32:22]produce_requested_data done [09:32:22]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69738,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [09:32:22]process_action_free close_receipt [09:32:22]json_value_free [09:32:22]json_value_free done [09:32:22]process_json_proto returns [09:32:22]Send response to host [09:32:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69738,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [09:32:22]free response buf [09:32:22]execute_script done [09:32:22]execute_script returns [09:32:22]free content buf [09:32:22]Sock 7.Close socket [09:32:22]Sock 7.Thread stoped [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: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:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:10]accept exits with 9 [09:38:10]New connection [09:38:10]New thread 3066486116 created [09:38:10]Thread 3066629476 joined [09:38:10]Waiting for new connection... [09:38:10] Sock 9.Parse request [09:38:10]Sock 9.Check first char [09:38:10]Sock 9.First char is OK [09:38:10]request: POST /json_proto HTTP/1.0 [09:38:10]Method: POST [09:38:10]URL: /json_proto [09:38:10]Method is POST - this is cgi request [09:38:10]url: /json_proto [09:38:10]query_string will be loaded in cgi processing [09:38:10]execute_cgi json_proto POST (null) [09:38:10]execute_cgi path=json_proto method=POST [09:38:10]POST find Content-Length [09:38:10]Host: 172.17.52.196:8080 [09:38:10]Content-Length: 621 [09:38:10]Content-Type: application/json [09:38:10] [09:38:10]POST finish read [09:38:10]Found Content-Length = 621 [09:38:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127141", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:10]execute_script... [09:38:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127141", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:10]POST & json_proto [09:38:10]process_json_proto [09:38:10]json parsed OK: [09:38:10]protocol is kg_v1.0 [09:38:10]action value=close_receipt [09:38:10]process_action close_receipt [09:38:10]cmd_close_receipt [09:38:10]MH_GetDate [09:38:10]Write to MH i2c: F0 00 00 37 06 2C [09:38:10]Write i2c OK [09:38:10]MH_I2C_Read... [09:38:10]Read from MH i2c: F0 [09:38:10]MH_I2C_Read... [09:38:10]Read from MH i2c: F0 09 00 [09:38:10]MH_I2C_Read... [09:38:10]Read from MH i2c: F0 09 00 37 06 00 83 CF 14 67 60 05 E4 66 B1 [09:38:10]GetLastDocTimeStamp 1729416739 [09:38:10]current date 1729417091 [09:38:10]FM_GetShiftState [09:38:10]SAM_PROTO_GetShiftState [09:38:10]wFMCommunicate request_size=4 [09:38:10]MH_SAM_APDU [09:38:10]CAPDU: 80 13 01 00 [09:38:10]Write to MH i2c: E2 08 00 38 06 80 13 01 00 00 00 00 00 BB [09:38:10]Write i2c OK [09:38:10]MH_I2C_Read... [09:38:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:10]Read from MH i2c: E2 [09:38:10]MH_I2C_Read... [09:38:10]Read from MH i2c: E2 0E 00 [09:38:10]MH_I2C_Read... [09:38:10]Read from MH i2c: E2 0E 00 38 06 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 4D [09:38:10]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:38:10]wFMCommunicate OK [09:38:10]SAM_PROTO_GetShiftState done [09:38:10]FM_GetShiftState done [09:38:10]opened in 1729384380 [09:38:10]opened+sec_in_day 1729470780 [09:38:10]quantity*price = 14400 [09:38:10]sum+1 = 14401 [09:38:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 29 20.10.2024 09:38 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69739 ФПД: 11418154954749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093811&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69739&fm=11418154954749&tin=02508201610067®Number=0000000000091770&sum=14400 0 [09:38:11]StoreToDocumentArchive [09:38:11]shift 526 fd 69739 [09:38:11]save to /storage/0526/doc_00069739 [09:38:11]save last doc name /storage/0526/doc_00069739 to /storage/kkm_last_doc_name [09:38:11]save OK [09:38:11]Clear old archive folders... [09:38:11]ProcessDocumentItem done err = 0, tmpTLVsize=273 [09:38:11]tlvbuf is B6E8BAC0 [09:38:11]SAM_PROTO_ClearQueue [09:38:11]wFMCommunicate request_size=4 [09:38:11]MH_SAM_APDU [09:38:11]CAPDU: 80 09 00 00 [09:38:11]Write to MH i2c: E2 08 00 45 06 80 09 00 00 00 00 00 00 BD [09:38:11]Write i2c OK [09:38:11]MH_I2C_Read... [09:38:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:11]Read from MH i2c: E2 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 03 00 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 03 00 45 06 00 90 00 BF [09:38:11]RAPDU: 90 00 [09:38:11]wFMCommunicate OK [09:38:11]SAM_PROTO_ClearQueue done [09:38:11]KKMCreateOFDPacket [09:38:11]OFDProtocolAddRootSTLVToBuf [09:38:11]FM_MakeSignedData [09:38:11]FM_MakeSignedData [09:38:11]SAM_PROTO_SignData [09:38:11]wFMCommunicate request_size=4 [09:38:11]MH_SAM_APDU [09:38:11]CAPDU: 80 0D 01 02 [09:38:11]Write to MH i2c: E2 08 00 46 06 80 0D 01 02 00 00 00 00 C5 [09:38:11]Write i2c OK [09:38:11]MH_I2C_Read... [09:38:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:11]Read from MH i2c: E2 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 03 00 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 03 00 46 06 00 90 00 C0 [09:38:11]RAPDU: 90 00 [09:38:11]wFMCommunicate OK [09:38:11]wFMCommunicate request_size=255 [09:38:11]MH_SAM_APDU [09:38:11]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 83 CF 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [09:38:11]Write to MH i2c: E2 02 01 47 06 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 83 CF 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 28 [09:38:11]Write i2c OK [09:38:11]MH_I2C_Read... [09:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:11]Read from MH i2c: E2 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 03 00 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 03 00 47 06 00 90 00 C1 [09:38:11]RAPDU: 90 00 [09:38:11]wFMCommunicate OK [09:38:11]wFMCommunicate request_size=32 [09:38:11]MH_SAM_APDU [09:38:11]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 6B 10 01 00 35 04 06 00 0A 62 7F 11 EF FD [09:38:11]Write to MH i2c: E2 23 00 48 06 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 6B 10 01 00 35 04 06 00 0A 62 7F 11 EF FD 00 00 8D [09:38:11]Write i2c OK [09:38:11]MH_I2C_Read... [09:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:11]Read from MH i2c: E2 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 03 00 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 03 00 48 06 00 90 00 C2 [09:38:11]RAPDU: 90 00 [09:38:11]wFMCommunicate OK [09:38:11]wFMCommunicate request_size=4 [09:38:11]MH_SAM_APDU [09:38:11]CAPDU: 80 0D 03 02 [09:38:11]Write to MH i2c: E2 08 00 49 06 80 0D 03 02 00 00 00 00 CA [09:38:11]Write i2c OK [09:38:11]MH_I2C_Read... [09:38:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:11]Read from MH i2c: E2 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 0B 00 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 0B 00 49 06 00 A7 26 06 40 0F 8C 78 0B 90 00 FC [09:38:11]RAPDU: A7 26 06 40 0F 8C 78 0B 90 00 [09:38:11]wFMCommunicate OK [09:38:11]SAM_PROTO_SignData done [09:38:11]FM_MakeSignedData done [09:38:11]CreateOFDProtocolMessage [09:38:11]wFMCommunicate request_size=4 [09:38:11]MH_SAM_APDU [09:38:11]CAPDU: 80 11 00 00 [09:38:11]Write to MH i2c: E2 08 00 4A 06 80 11 00 00 00 00 00 00 CA [09:38:11]Write i2c OK [09:38:11]MH_I2C_Read... [09:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:11]Read from MH i2c: E2 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 17 00 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 17 00 4A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 21 [09:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:38:11]wFMCommunicate OK [09:38:11]CreateOFDProtocolMessage done [09:38:11]OFDSenderStorePacket 69739 [09:38:11]StoreOFDPacket docnum=69739 [09:38:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 FA 81 1D 01 C1 96 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 83 CF 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6B 10 01 00 35 04 06 00 0A 62 7F 11 EF FD A7 26 06 40 0F 8C 78 0B [09:38:11]CheckFolder [09:38:11]dirname=/storage/ofd_packets [09:38:11]CheckFolder done [09:38:11]ProducePacketName [09:38:11]name=ofd_packets/00069739 [09:38:11]NVStorageSaveData ofd_packets/00069739 [09:38:11]File name is /storage/ofd_packets/00069739 [09:38:11]Write 323 bytes [09:38:11]NVStorageSaveData done [09:38:11]OFDSenderStorePacket done [09:38:11]KKMCreateOFDPacket done [09:38:11]NVStorageSaveData kkm_last_timestamp [09:38:11]File name is /storage/kkm_last_timestamp [09:38:11]Write 4 bytes [09:38:11]NVStorageSaveData done [09:38:11]ExternCall_PrintAddStr [09:38:11]wPrintStart [09:38:11]Write to MH i2c: 01 00 00 4B 06 51 [09:38:11]Write i2c OK [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: 01 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: 01 07 00 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: 01 07 00 4B 06 00 00 00 00 00 FF 0F 66 [09:38:11]RasterBufferAndPrint [09:38:11]line Счет N : (3)127141 [09:38:11]line ИНН: 02508201610067 [09:38:11]line Контрольно-Кассовый Чек [09:38:11]line ПРОДАЖА [09:38:11]line Товар: 48743570 [09:38:11]line Сигареты Winston XStyle Blue [09:38:11]line 1.000 * 144.00 [09:38:11]line = 144.00 [09:38:11]line НДС 12% НСП 1% [09:38:11]line > о реализуемом товаре [09:38:11]line ИТОГО: 144.00 [09:38:11]line НСП 1% : 1.27 [09:38:11]line НДС 12% : 15.29 [09:38:11]line Наличными: 144.00 [09:38:11]line Безнал.: 0.00 [09:38:11]line Место: АЗС № 163 "Партнер Нефть" [09:38:11]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [09:38:11]line СНО: Общий режим [09:38:11]line Чек 29 20.10.2024 09:38 [09:38:11]line Смена: 526 ФФД: 1.0 [09:38:11]line ЗНМ: 0300000101 [09:38:11]line РНМ: 0000000000091770 [09:38:11]line Версия ККМ: 001 [09:38:11]line ФМ: 0000000000871749 [09:38:11]line ФД: 69739 [09:38:11]line ФПД: 11418154954749 [09:38:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T093811&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69739&fm=11418154954749&tin=02508201610067®Number=0000000000091770&sum=14400 [09:38:12]line 0 [09:38:12]OFD Sender: Processing packet 69739 [packets to send 32, broken 31] [09:38:12]ProducePacketName [09:38:12]name=ofd_packets/00069739 [09:38:12]OFD Sender: To server: pG, [09:38:12]CommunicateWithHost lk.salyk.kg:30040 [09:38:12]ConnectInit lk.salyk.kg [09:38:12]written 0, free lines is 4095 [09:38:12]Connected sock=10 [09:38:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 FA 81 1D 01 C1 96 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 83 CF 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6B 10 01 00 35 04 06 00 0A 62 7F 11 EF FD A7 26 06 40 0F 8C 78 0B [09:38:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 EA 4E 47 00 68 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6B 10 01 00 F4 03 04 00 06 75 14 67 B6 04 01 00 00 CA DF B8 34 9D 73 8B 37 [09:38:12]CommunicateWithHost err = 0 [09:38:12]CheckOFDResponse [09:38:12]1017 (14) - 77093643461234 [09:38:12]1041 (16) - 0000000000871749 [09:38:12]1040 (4) - 69739 [09:38:12]1012 (4) - 20.10.2024 03:12 [09:38:12]1206 (1) - 0 [09:38:12]OFD Sender: Remove packet 69739 [09:38:12]ProducePacketName [09:38:12]name=ofd_packets/00069739 [09:38:12]NVStorageDeleteData [09:38:12]Write to MH i2c: 01 00 00 73 06 79 [09:38:12]Write i2c OK [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: 01 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: 01 07 00 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: 01 07 00 73 06 00 00 00 00 00 F7 0C 83 [09:38:12]RasterBufferAndPrint [09:38:12]line [09:38:12]line [09:38:12]line [09:38:12]line [09:38:12]line [09:38:12]written 0, free lines is 3324 [09:38:12]MH_Cut [09:38:12]Write to MH i2c: D1 01 00 7A 06 01 52 [09:38:12]Write i2c OK [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: D1 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: D1 01 00 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: D1 01 00 7A 06 00 51 [09:38:12]Write to MH i2c: 01 00 00 7B 06 81 [09:38:12]Write i2c OK [09:38:12]MH_I2C_Read... [09:38:12]OFD Sender: No OFD packet to send [09:38:13]*** Cut start [09:38:13]*** Partial cut [09:38:13]*** CUTSNS_PIN = 1 [09:38:13]*** CUTSNS_PIN = 0 [09:38:13]*** Brake cut motor [09:38:14]Read from MH i2c: 01 [09:38:14]MH_I2C_Read... [09:38:14]*** Stop cut motor [09:38:14]*** Cut end [09:38:14]Read from MH i2c: 01 07 00 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: 01 07 00 7B 06 00 00 00 00 00 FF 0F 96 [09:38:14]process_action close_receipt done [09:38:14]requested_data is exist [09:38:14]produce_requested_data [09:38:14]requested_item fm.sn is exist - process it [09:38:14]wFMCommunicate request_size=4 [09:38:14]MH_SAM_APDU [09:38:14]CAPDU: 80 11 00 00 [09:38:14]Write to MH i2c: E2 08 00 7C 06 80 11 00 00 00 00 00 00 FC [09:38:14]Write i2c OK [09:38:14]MH_I2C_Read... [09:38:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:14]Read from MH i2c: E2 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 17 00 [09:38:14]MH_I2C_Read... [09:38:14]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 31 37 34 39 90 00 53 [09:38:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:38:14]wFMCommunicate OK [09:38:14]requested_item fd.num is exist - process it [09:38:14]SAM_PROTO_GetFieldsCounters [09:38:14]wFMCommunicate request_size=4 [09:38:14]MH_SAM_APDU [09:38:14]CAPDU: 80 13 00 00 [09:38:14]Write to MH i2c: E2 08 00 7D 06 80 13 00 00 00 00 00 00 FF [09:38:14]Write i2c OK [09:38:14]MH_I2C_Read... [09:38:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:14]Read from MH i2c: E2 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 62 00 [09:38:14]MH_I2C_Read... [09:38:14]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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 6B 10 01 00 0E 04 04 00 0E 02 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 06 [09:38:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 6B 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:38:14]wFMCommunicate OK [09:38:14]SAM_PROTO_GetFieldsCounters done [09:38:14]requested_item shift.num is exist - process it [09:38:14]requested_item shift.opened is exist - process it [09:38:14]req_shift_opened [09:38:14]FM_GetShiftState [09:38:14]SAM_PROTO_GetShiftState [09:38:14]wFMCommunicate request_size=4 [09:38:14]MH_SAM_APDU [09:38:14]CAPDU: 80 13 01 00 [09:38:14]Write to MH i2c: E2 08 00 7E 06 80 13 01 00 00 00 00 00 01 [09:38:14]Write i2c OK [09:38:14]MH_I2C_Read... [09:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:14]Read from MH i2c: E2 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 0E 00 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 0E 00 7E 06 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 93 [09:38:14]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:38:14]wFMCommunicate OK [09:38:14]SAM_PROTO_GetShiftState done [09:38:14]FM_GetShiftState done [09:38:14]req_shift_opened done [09:38:14]requested_item shift.open_date is exist - process it [09:38:14]req_shift_open_date [09:38:14]req_shift_open_date done [09:38:14]produce_requested_data done [09:38:14]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69739,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [09:38:14]process_action_free close_receipt [09:38:14]json_value_free [09:38:14]json_value_free done [09:38:14]process_json_proto returns [09:38:14]Send response to host [09:38:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69739,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [09:38:14]free response buf [09:38:14]execute_script done [09:38:14]execute_script returns [09:38:14]free content buf [09:38:14]Sock 9.Close socket [09:38:14]Sock 9.Thread stoped [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:41]accept exits with 7 [09:40:41]New connection [09:40:41]New thread 3066629476 created [09:40:41]Thread 3066486116 joined [09:40:41]Waiting for new connection... [09:40:41] Sock 7.Parse request [09:40:41]Sock 7.Check first char [09:40:41]Sock 7.First char is OK [09:40:41]request: POST /json_proto HTTP/1.0 [09:40:41]Method: POST [09:40:41]URL: /json_proto [09:40:41]Method is POST - this is cgi request [09:40:41]url: /json_proto [09:40:41]query_string will be loaded in cgi processing [09:40:41]execute_cgi json_proto POST (null) [09:40:41]execute_cgi path=json_proto method=POST [09:40:41]POST find Content-Length [09:40:41]Host: 172.17.52.196:8080 [09:40:41]Content-Length: 1188 [09:40:41]Content-Type: application/json [09:40:41] [09:40:41]POST finish read [09:40:41]Found Content-Length = 1188 [09:40:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127142", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 521.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:41]execute_script... [09:40:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127142", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 521.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:41]POST & json_proto [09:40:41]process_json_proto [09:40:41]json parsed OK: [09:40:41]protocol is kg_v1.0 [09:40:41]action value=close_receipt [09:40:41]process_action close_receipt [09:40:41]cmd_close_receipt [09:40:41]MH_GetDate [09:40:41]Write to MH i2c: F0 00 00 7F 06 74 [09:40:41]Write i2c OK [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: F0 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: F0 09 00 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: F0 09 00 7F 06 00 1A D0 14 67 60 05 E4 66 91 [09:40:41]GetLastDocTimeStamp 1729417091 [09:40:41]current date 1729417242 [09:40:41]FM_GetShiftState [09:40:41]SAM_PROTO_GetShiftState [09:40:41]wFMCommunicate request_size=4 [09:40:41]MH_SAM_APDU [09:40:41]CAPDU: 80 13 01 00 [09:40:41]Write to MH i2c: E2 08 00 80 06 80 13 01 00 00 00 00 00 03 [09:40:41]Write i2c OK [09:40:41]MH_I2C_Read... [09:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:41]Read from MH i2c: E2 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: E2 0E 00 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: E2 0E 00 80 06 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 95 [09:40:41]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:40:41]wFMCommunicate OK [09:40:41]SAM_PROTO_GetShiftState done [09:40:41]FM_GetShiftState done [09:40:41]opened in 1729384380 [09:40:41]opened+sec_in_day 1729470780 [09:40:41]quantity*price = 25000 [09:40:41]sum+1 = 25001 [09:40:41]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870216764968 Нагр.Таб.Палоч. HEETS Torquoise Selectio 1.000 * 141.00 = 141.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 521.00 НСП 1% : 4.61 НДС 12% : 55.32 Наличными: 521.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 30 20.10.2024 09:40 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69740 ФПД: 203672841686184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094042&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69740&fm=203672841686184&tin=02508201610067®Number=0000000000091770&sum=52100 0 [09:40:42]StoreToDocumentArchive [09:40:42]shift 526 fd 69740 [09:40:42]save to /storage/0526/doc_00069740 [09:40:42]save last doc name /storage/0526/doc_00069740 to /storage/kkm_last_doc_name [09:40:42]save OK [09:40:42]Clear old archive folders... [09:40:42]ProcessDocumentItem done err = 0, tmpTLVsize=520 [09:40:42]tlvbuf is 009CB4C0 [09:40:42]SAM_PROTO_ClearQueue [09:40:42]wFMCommunicate request_size=4 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 09 00 00 [09:40:42]Write to MH i2c: E2 08 00 8D 06 80 09 00 00 00 00 00 00 05 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 8D 06 00 90 00 07 [09:40:42]RAPDU: 90 00 [09:40:42]wFMCommunicate OK [09:40:42]SAM_PROTO_ClearQueue done [09:40:42]KKMCreateOFDPacket [09:40:42]OFDProtocolAddRootSTLVToBuf [09:40:42]FM_MakeSignedData [09:40:42]FM_MakeSignedData [09:40:42]SAM_PROTO_SignData [09:40:42]wFMCommunicate request_size=4 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 0D 01 02 [09:40:42]Write to MH i2c: E2 08 00 8E 06 80 0D 01 02 00 00 00 00 0D [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 8E 06 00 90 00 08 [09:40:42]RAPDU: 90 00 [09:40:42]wFMCommunicate OK [09:40:42]wFMCommunicate request_size=255 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 0D 02 02 FA 03 00 08 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 [09:40:43]Write to MH i2c: E2 02 01 8F 06 80 0D 02 02 FA 00 03 00 08 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 00 00 2D [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]OFD Sender: No OFD packet to send [09:40:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:43]Read from MH i2c: E2 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 03 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 03 00 8F 06 00 90 00 09 [09:40:43]RAPDU: 90 00 [09:40:43]wFMCommunicate OK [09:40:43]wFMCommunicate request_size=255 [09:40:43]MH_SAM_APDU [09:40:43]CAPDU: 80 0D 02 02 FA 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 9C 15 00 00 00 00 07 04 06 00 84 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 1A D0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [09:40:43]Write to MH i2c: E2 02 01 90 06 80 0D 02 02 FA 00 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 9C 15 00 00 00 00 07 04 06 00 84 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 1A D0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 7F [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:43]Read from MH i2c: E2 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 03 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 03 00 90 06 00 90 00 0A [09:40:43]RAPDU: 90 00 [09:40:43]wFMCommunicate OK [09:40:43]wFMCommunicate request_size=29 [09:40:43]MH_SAM_APDU [09:40:43]CAPDU: 80 0D 02 02 18 38 37 31 37 34 39 10 04 04 00 6C 10 01 00 35 04 06 00 B9 3D 47 61 0C A8 [09:40:43]Write to MH i2c: E2 20 00 91 06 80 0D 02 02 18 00 38 37 31 37 34 39 10 04 04 00 6C 10 01 00 35 04 06 00 B9 3D 47 61 0C A8 00 00 AB [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:43]Read from MH i2c: E2 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 03 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 03 00 91 06 00 90 00 0B [09:40:43]RAPDU: 90 00 [09:40:43]wFMCommunicate OK [09:40:43]wFMCommunicate request_size=4 [09:40:43]MH_SAM_APDU [09:40:43]CAPDU: 80 0D 03 02 [09:40:43]Write to MH i2c: E2 08 00 92 06 80 0D 03 02 00 00 00 00 13 [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:43]Read from MH i2c: E2 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 0B 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 0B 00 92 06 00 2F 65 2A 8E 8F 8F 4C 1F 90 00 E9 [09:40:43]RAPDU: 2F 65 2A 8E 8F 8F 4C 1F 90 00 [09:40:43]wFMCommunicate OK [09:40:43]SAM_PROTO_SignData done [09:40:43]FM_MakeSignedData done [09:40:43]CreateOFDProtocolMessage [09:40:43]wFMCommunicate request_size=4 [09:40:43]MH_SAM_APDU [09:40:43]CAPDU: 80 11 00 00 [09:40:43]Write to MH i2c: E2 08 00 93 06 80 11 00 00 00 00 00 00 13 [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:43]Read from MH i2c: E2 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 17 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 17 00 93 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 6A [09:40:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:40:43]wFMCommunicate OK [09:40:43]CreateOFDProtocolMessage done [09:40:43]OFDSenderStorePacket 69740 [09:40:43]StoreOFDPacket docnum=69740 [09:40:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 1C 02 00 00 52 C8 14 02 C0 7B 5A 03 01 00 03 00 08 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 9C 15 00 00 00 00 07 04 06 00 84 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 1A D0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6C 10 01 00 35 04 06 00 B9 3D 47 61 0C A8 2F 65 2A 8E 8F 8F 4C 1F [09:40:43]CheckFolder [09:40:43]dirname=/storage/ofd_packets [09:40:43]CheckFolder done [09:40:43]ProducePacketName [09:40:43]name=ofd_packets/00069740 [09:40:43]NVStorageSaveData ofd_packets/00069740 [09:40:43]File name is /storage/ofd_packets/00069740 [09:40:43]Write 570 bytes [09:40:43]NVStorageSaveData done [09:40:43]OFDSenderStorePacket done [09:40:43]KKMCreateOFDPacket done [09:40:43]NVStorageSaveData kkm_last_timestamp [09:40:43]File name is /storage/kkm_last_timestamp [09:40:43]Write 4 bytes [09:40:43]NVStorageSaveData done [09:40:43]ExternCall_PrintAddStr [09:40:43]wPrintStart [09:40:43]Write to MH i2c: 01 00 00 94 06 9A [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: 01 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: 01 07 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: 01 07 00 94 06 00 00 00 00 00 FF 0F AF [09:40:43]RasterBufferAndPrint [09:40:43]line Счет N : (3)127142 [09:40:43]line ИНН: 02508201610067 [09:40:43]line Контрольно-Кассовый Чек [09:40:43]line ПРОДАЖА [09:40:43]line Товар: 2000036190018 [09:40:43]line Кофе Американо XL(GABB TRADE) [09:40:43]line 2.000 * 125.00 [09:40:43]line = 250.00 [09:40:43]line НДС 12% НСП 1% [09:40:43]line > о реализуемом товаре [09:40:43]line Товар: 2000036220012 [09:40:43]line Кофе Капучино XL(GABB TRADE) [09:40:43]line 1.000 * 130.00 [09:40:43]line = 130.00 [09:40:43]line НДС 12% НСП 1% [09:40:43]line > о реализуемом товаре [09:40:43]line Товар: 4870216764968 [09:40:43]line Нагр.Таб.Палоч. HEETS Torquoise Selectio [09:40:43]line 1.000 * 141.00 [09:40:43]line = 141.00 [09:40:43]line НДС 12% НСП 1% [09:40:43]line > о реализуемом товаре [09:40:43]line ИТОГО: 521.00 [09:40:43]line НСП 1% : 4.61 [09:40:43]line НДС 12% : 55.32 [09:40:43]line Наличными: 521.00 [09:40:43]line Безнал.: 0.00 [09:40:43]line Место: АЗС № 163 "Партнер Нефть" [09:40:43]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [09:40:43]line СНО: Общий режим [09:40:43]line Чек 30 20.10.2024 09:40 [09:40:43]line Смена: 526 ФФД: 1.0 [09:40:43]line ЗНМ: 0300000101 [09:40:43]line РНМ: 0000000000091770 [09:40:43]line Версия ККМ: 001 [09:40:43]line ФМ: 0000000000871749 [09:40:43]line ФД: 69740 [09:40:43]line ФПД: 203672841686184 [09:40:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094042&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69740&fm=203672841686184&tin=02508201610067®Number=0000000000091770&sum=52100 [09:40:43]line 0 [09:40:43]written 0, free lines is 4095 [09:40:43]OFD Sender: Processing packet 69740 [packets to send 32, broken 31] [09:40:43]ProducePacketName [09:40:43]name=ofd_packets/00069740 [09:40:43]OFD Sender: To server: pG, [09:40:44]CommunicateWithHost lk.salyk.kg:30040 [09:40:44]ConnectInit lk.salyk.kg [09:40:44]Connected sock=10 [09:40:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 1C 02 00 00 52 C8 14 02 C0 7B 5A 03 01 00 03 00 08 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 9C 15 00 00 00 00 07 04 06 00 84 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 1A D0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6C 10 01 00 35 04 06 00 B9 3D 47 61 0C A8 2F 65 2A 8E 8F 8F 4C 1F [09:40:44]Write to MH i2c: 01 00 00 CB 06 D1 [09:40:44]Write i2c OK [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: 01 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: 01 07 00 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: 01 07 00 CB 06 00 00 00 00 00 35 0C 19 [09:40:44]RasterBufferAndPrint [09:40:44]line [09:40:44]line [09:40:44]line [09:40:44]line [09:40:44]line [09:40:44]written 0, free lines is 3133 [09:40:44]MH_Cut [09:40:44]Write to MH i2c: D1 01 00 D2 06 01 AA [09:40:44]Write i2c OK [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: D1 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: D1 01 00 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: D1 01 00 D2 06 00 A9 [09:40:44]Write to MH i2c: 01 00 00 D3 06 D9 [09:40:44]Write i2c OK [09:40:44]MH_I2C_Read... [09:40:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 90 52 47 00 A1 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 31 37 34 39 10 04 04 00 6C 10 01 00 F4 03 04 00 9E 75 14 67 B6 04 01 00 00 44 40 50 4E 9D 46 A7 F1 [09:40:44]CommunicateWithHost err = 0 [09:40:44]CheckOFDResponse [09:40:44]1017 (14) - 77093643461234 [09:40:44]1041 (16) - 0000000000871749 [09:40:44]1040 (4) - 69740 [09:40:44]1012 (4) - 20.10.2024 03:14 [09:40:44]1206 (1) - 0 [09:40:44]OFD Sender: Remove packet 69740 [09:40:44]ProducePacketName [09:40:44]name=ofd_packets/00069740 [09:40:44]NVStorageDeleteData [09:40:44]OFD Sender: No OFD packet to send [09:40:45]*** Cut start [09:40:45]*** Partial cut [09:40:45]*** CUTSNS_PIN = 1 [09:40:45]*** CUTSNS_PIN = 0 [09:40:45]*** Brake cut motor [09:40:46]Read from MH i2c: 01 [09:40:46]MH_I2C_Read... [09:40:46]*** Stop cut motor [09:40:46]*** Cut end [09:40:46]Read from MH i2c: 01 07 00 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: 01 07 00 D3 06 00 00 00 00 00 FF 0F EE [09:40:46]process_action close_receipt done [09:40:46]requested_data is exist [09:40:46]produce_requested_data [09:40:46]requested_item fm.sn is exist - process it [09:40:46]wFMCommunicate request_size=4 [09:40:46]MH_SAM_APDU [09:40:46]CAPDU: 80 11 00 00 [09:40:46]Write to MH i2c: E2 08 00 D4 06 80 11 00 00 00 00 00 00 54 [09:40:46]Write i2c OK [09:40:46]MH_I2C_Read... [09:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:46]Read from MH i2c: E2 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: E2 17 00 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: E2 17 00 D4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 AB [09:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:40:46]wFMCommunicate OK [09:40:46]requested_item fd.num is exist - process it [09:40:46]SAM_PROTO_GetFieldsCounters [09:40:46]wFMCommunicate request_size=4 [09:40:46]MH_SAM_APDU [09:40:46]CAPDU: 80 13 00 00 [09:40:46]Write to MH i2c: E2 08 00 D5 06 80 13 00 00 00 00 00 00 57 [09:40:46]Write i2c OK [09:40:46]MH_I2C_Read... [09:40:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:46]Read from MH i2c: E2 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: E2 62 00 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: E2 62 00 D5 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 6C 10 01 00 0E 04 04 00 0E 02 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 62 [09:40:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 6C 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:46]wFMCommunicate OK [09:40:46]SAM_PROTO_GetFieldsCounters done [09:40:46]requested_item shift.num is exist - process it [09:40:46]requested_item shift.opened is exist - process it [09:40:46]req_shift_opened [09:40:46]FM_GetShiftState [09:40:46]SAM_PROTO_GetShiftState [09:40:46]wFMCommunicate request_size=4 [09:40:46]MH_SAM_APDU [09:40:46]CAPDU: 80 13 01 00 [09:40:46]Write to MH i2c: E2 08 00 D6 06 80 13 01 00 00 00 00 00 59 [09:40:46]Write i2c OK [09:40:46]MH_I2C_Read... [09:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:46]Read from MH i2c: E2 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: E2 0E 00 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: E2 0E 00 D6 06 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 EB [09:40:46]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:40:46]wFMCommunicate OK [09:40:46]SAM_PROTO_GetShiftState done [09:40:46]FM_GetShiftState done [09:40:46]req_shift_opened done [09:40:46]requested_item shift.open_date is exist - process it [09:40:46]req_shift_open_date [09:40:46]req_shift_open_date done [09:40:46]produce_requested_data done [09:40:46]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69740,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [09:40:46]process_action_free close_receipt [09:40:46]json_value_free [09:40:46]json_value_free done [09:40:46]process_json_proto returns [09:40:46]Send response to host [09:40:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69740,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [09:40:46]free response buf [09:40:46]execute_script done [09:40:46]execute_script returns [09:40:46]free content buf [09:40:46]Sock 7.Close socket [09:40:46]Sock 7.Thread stoped [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:14]OFD Sender: No OFD packet to send [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]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:35]accept exits with 9 [09:42:35]New connection [09:42:35]New thread 3066486116 created [09:42:35]Thread 3066629476 joined [09:42:35]Waiting for new connection... [09:42:35] Sock 9.Parse request [09:42:35]Sock 9.Check first char [09:42:35]Sock 9.First char is OK [09:42:35]request: POST /json_proto HTTP/1.0 [09:42:35]Method: POST [09:42:35]URL: /json_proto [09:42:35]Method is POST - this is cgi request [09:42:35]url: /json_proto [09:42:35]query_string will be loaded in cgi processing [09:42:35]execute_cgi json_proto POST (null) [09:42:35]execute_cgi path=json_proto method=POST [09:42:35]POST find Content-Length [09:42:35]Host: 172.17.52.196:8080 [09:42:35]Content-Length: 621 [09:42:35]Content-Type: application/json [09:42:35] [09:42:35]POST finish read [09:42:35]Found Content-Length = 621 [09:42:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127143", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:35]execute_script... [09:42:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127143", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:35]POST & json_proto [09:42:35]process_json_proto [09:42:35]json parsed OK: [09:42:35]protocol is kg_v1.0 [09:42:35]action value=close_receipt [09:42:35]process_action close_receipt [09:42:35]cmd_close_receipt [09:42:35]MH_GetDate [09:42:35]Write to MH i2c: F0 00 00 D7 06 CC [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: F0 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: F0 09 00 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: F0 09 00 D7 06 00 8C D0 14 67 60 05 E4 66 5B [09:42:35]GetLastDocTimeStamp 1729417242 [09:42:35]current date 1729417356 [09:42:35]FM_GetShiftState [09:42:35]SAM_PROTO_GetShiftState [09:42:35]wFMCommunicate request_size=4 [09:42:35]MH_SAM_APDU [09:42:35]CAPDU: 80 13 01 00 [09:42:35]Write to MH i2c: E2 08 00 D8 06 80 13 01 00 00 00 00 00 5B [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:35]Read from MH i2c: E2 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 0E 00 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 0E 00 D8 06 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 ED [09:42:35]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:42:35]wFMCommunicate OK [09:42:35]SAM_PROTO_GetShiftState done [09:42:35]FM_GetShiftState done [09:42:35]opened in 1729384380 [09:42:35]opened+sec_in_day 1729470780 [09:42:35]quantity*price = 14400 [09:42:35]sum+1 = 14401 [09:42:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 31 20.10.2024 09:42 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69741 ФПД: 19355213648607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094236&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69741&fm=19355213648607&tin=02508201610067®Number=0000000000091770&sum=14400 0 [09:42:36]StoreToDocumentArchive [09:42:36]shift 526 fd 69741 [09:42:36]save to /storage/0526/doc_00069741 [09:42:36]save last doc name /storage/0526/doc_00069741 to /storage/kkm_last_doc_name [09:42:36]save OK [09:42:36]Clear old archive folders... [09:42:36]ProcessDocumentItem done err = 0, tmpTLVsize=273 [09:42:36]tlvbuf is 00942370 [09:42:36]SAM_PROTO_ClearQueue [09:42:36]wFMCommunicate request_size=4 [09:42:36]MH_SAM_APDU [09:42:36]CAPDU: 80 09 00 00 [09:42:36]Write to MH i2c: E2 08 00 E5 06 80 09 00 00 00 00 00 00 5D [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:36]Read from MH i2c: E2 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 03 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 03 00 E5 06 00 90 00 5F [09:42:36]RAPDU: 90 00 [09:42:36]wFMCommunicate OK [09:42:36]SAM_PROTO_ClearQueue done [09:42:36]KKMCreateOFDPacket [09:42:36]OFDProtocolAddRootSTLVToBuf [09:42:36]FM_MakeSignedData [09:42:36]FM_MakeSignedData [09:42:36]SAM_PROTO_SignData [09:42:36]wFMCommunicate request_size=4 [09:42:36]MH_SAM_APDU [09:42:36]CAPDU: 80 0D 01 02 [09:42:36]Write to MH i2c: E2 08 00 E6 06 80 0D 01 02 00 00 00 00 65 [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:36]Read from MH i2c: E2 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 03 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 03 00 E6 06 00 90 00 60 [09:42:36]RAPDU: 90 00 [09:42:36]wFMCommunicate OK [09:42:36]wFMCommunicate request_size=255 [09:42:36]MH_SAM_APDU [09:42:36]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 8C D0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [09:42:36]Write to MH i2c: E2 02 01 E7 06 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 8C D0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 D4 [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:36]Read from MH i2c: E2 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 03 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 03 00 E7 06 00 90 00 61 [09:42:36]RAPDU: 90 00 [09:42:36]wFMCommunicate OK [09:42:36]wFMCommunicate request_size=32 [09:42:36]MH_SAM_APDU [09:42:36]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 6D 10 01 00 35 04 06 00 11 9A 7C A2 52 DF [09:42:36]Write to MH i2c: E2 23 00 E8 06 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 6D 10 01 00 35 04 06 00 11 9A 7C A2 52 DF 00 00 41 [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:36]Read from MH i2c: E2 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 03 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 03 00 E8 06 00 90 00 62 [09:42:36]RAPDU: 90 00 [09:42:36]wFMCommunicate OK [09:42:36]wFMCommunicate request_size=4 [09:42:36]MH_SAM_APDU [09:42:36]CAPDU: 80 0D 03 02 [09:42:36]Write to MH i2c: E2 08 00 E9 06 80 0D 03 02 00 00 00 00 6A [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:36]Read from MH i2c: E2 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 0B 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 0B 00 E9 06 00 5D 8A AE 11 FE 9D 72 86 90 00 A4 [09:42:36]RAPDU: 5D 8A AE 11 FE 9D 72 86 90 00 [09:42:36]wFMCommunicate OK [09:42:36]SAM_PROTO_SignData done [09:42:36]FM_MakeSignedData done [09:42:36]CreateOFDProtocolMessage [09:42:36]wFMCommunicate request_size=4 [09:42:36]MH_SAM_APDU [09:42:36]CAPDU: 80 11 00 00 [09:42:36]Write to MH i2c: E2 08 00 EA 06 80 11 00 00 00 00 00 00 6A [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:36]Read from MH i2c: E2 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 17 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 17 00 EA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 C1 [09:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:42:36]wFMCommunicate OK [09:42:36]CreateOFDProtocolMessage done [09:42:36]OFDSenderStorePacket 69741 [09:42:36]StoreOFDPacket docnum=69741 [09:42:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 A3 42 1D 01 D9 46 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 8C D0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6D 10 01 00 35 04 06 00 11 9A 7C A2 52 DF 5D 8A AE 11 FE 9D 72 86 [09:42:36]CheckFolder [09:42:36]dirname=/storage/ofd_packets [09:42:36]CheckFolder done [09:42:36]ProducePacketName [09:42:36]name=ofd_packets/00069741 [09:42:36]NVStorageSaveData ofd_packets/00069741 [09:42:36]File name is /storage/ofd_packets/00069741 [09:42:36]Write 323 bytes [09:42:36]NVStorageSaveData done [09:42:36]OFDSenderStorePacket done [09:42:36]KKMCreateOFDPacket done [09:42:36]NVStorageSaveData kkm_last_timestamp [09:42:36]File name is /storage/kkm_last_timestamp [09:42:36]Write 4 bytes [09:42:36]NVStorageSaveData done [09:42:36]ExternCall_PrintAddStr [09:42:36]wPrintStart [09:42:36]Write to MH i2c: 01 00 00 EB 06 F1 [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: 01 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: 01 07 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: 01 07 00 EB 06 00 00 00 00 00 FF 0F 06 [09:42:36]RasterBufferAndPrint [09:42:36]line Счет N : (3)127143 [09:42:36]line ИНН: 02508201610067 [09:42:36]line Контрольно-Кассовый Чек [09:42:36]line ПРОДАЖА [09:42:36]line Товар: 48743570 [09:42:36]line Сигареты Winston XStyle Blue [09:42:36]line 1.000 * 144.00 [09:42:36]line = 144.00 [09:42:36]line НДС 12% НСП 1% [09:42:36]line > о реализуемом товаре [09:42:36]line ИТОГО: 144.00 [09:42:36]line НСП 1% : 1.27 [09:42:36]line НДС 12% : 15.29 [09:42:36]line Наличными: 144.00 [09:42:36]line Безнал.: 0.00 [09:42:36]line Место: АЗС № 163 "Партнер Нефть" [09:42:36]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [09:42:36]line СНО: Общий режим [09:42:36]line Чек 31 20.10.2024 09:42 [09:42:36]line Смена: 526 ФФД: 1.0 [09:42:36]line ЗНМ: 0300000101 [09:42:36]line РНМ: 0000000000091770 [09:42:36]line Версия ККМ: 001 [09:42:36]line ФМ: 0000000000871749 [09:42:36]line ФД: 69741 [09:42:36]line ФПД: 19355213648607 [09:42:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094236&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69741&fm=19355213648607&tin=02508201610067®Number=0000000000091770&sum=14400 [09:42:37]line 0 [09:42:37]OFD Sender: Processing packet 69741 [packets to send 32, broken 31] [09:42:37]ProducePacketName [09:42:37]name=ofd_packets/00069741 [09:42:37]OFD Sender: To server: pG, [09:42:37]CommunicateWithHost lk.salyk.kg:30040 [09:42:37]ConnectInit lk.salyk.kg [09:42:37]written 0, free lines is 4095 [09:42:37]Connected sock=10 [09:42:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 A3 42 1D 01 D9 46 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 8C D0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6D 10 01 00 35 04 06 00 11 9A 7C A2 52 DF 5D 8A AE 11 FE 9D 72 86 [09:42:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 62 88 47 00 24 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6D 10 01 00 F4 03 04 00 0F 76 14 67 B6 04 01 00 00 FD 08 5A 2E F3 55 B1 84 [09:42:37]CommunicateWithHost err = 0 [09:42:37]CheckOFDResponse [09:42:37]1017 (14) - 77093643461234 [09:42:37]1041 (16) - 0000000000871749 [09:42:37]1040 (4) - 69741 [09:42:37]1012 (4) - 20.10.2024 03:16 [09:42:37]1206 (1) - 0 [09:42:37]OFD Sender: Remove packet 69741 [09:42:37]ProducePacketName [09:42:37]name=ofd_packets/00069741 [09:42:37]NVStorageDeleteData [09:42:37]Write to MH i2c: 01 00 00 13 07 1A [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: 01 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: 01 07 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: 01 07 00 13 07 00 00 00 00 00 F4 0C 21 [09:42:37]RasterBufferAndPrint [09:42:37]line [09:42:37]line [09:42:37]line [09:42:37]line [09:42:37]line [09:42:37]written 0, free lines is 3323 [09:42:37]MH_Cut [09:42:37]Write to MH i2c: D1 01 00 1A 07 01 F3 [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: D1 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: D1 01 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: D1 01 00 1A 07 00 F2 [09:42:37]Write to MH i2c: 01 00 00 1B 07 22 [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]OFD Sender: No OFD packet to send [09:42:38]*** Cut start [09:42:38]*** Partial cut [09:42:38]*** CUTSNS_PIN = 1 [09:42:38]*** CUTSNS_PIN = 0 [09:42:38]*** Brake cut motor [09:42:39]Read from MH i2c: 01 [09:42:39]MH_I2C_Read... [09:42:39]*** Stop cut motor [09:42:39]*** Cut end [09:42:39]Read from MH i2c: 01 07 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: 01 07 00 1B 07 00 00 00 00 00 FF 0F 37 [09:42:39]process_action close_receipt done [09:42:39]requested_data is exist [09:42:39]produce_requested_data [09:42:39]requested_item fm.sn is exist - process it [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 11 00 00 [09:42:39]Write to MH i2c: E2 08 00 1C 07 80 11 00 00 00 00 00 00 9D [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 17 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 17 00 1C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 F4 [09:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:42:39]wFMCommunicate OK [09:42:39]requested_item fd.num is exist - process it [09:42:39]SAM_PROTO_GetFieldsCounters [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 13 00 00 [09:42:39]Write to MH i2c: E2 08 00 1D 07 80 13 00 00 00 00 00 00 A0 [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 62 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 62 00 1D 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 6D 10 01 00 0E 04 04 00 0E 02 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 AF [09:42: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 6D 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:39]wFMCommunicate OK [09:42:39]SAM_PROTO_GetFieldsCounters done [09:42:39]requested_item shift.num is exist - process it [09:42:39]requested_item shift.opened is exist - process it [09:42:39]req_shift_opened [09:42:39]FM_GetShiftState [09:42:39]SAM_PROTO_GetShiftState [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 13 01 00 [09:42:39]Write to MH i2c: E2 08 00 1E 07 80 13 01 00 00 00 00 00 A2 [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 0E 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 0E 00 1E 07 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 34 [09:42:39]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:42:39]wFMCommunicate OK [09:42:39]SAM_PROTO_GetShiftState done [09:42:39]FM_GetShiftState done [09:42:39]req_shift_opened done [09:42:39]requested_item shift.open_date is exist - process it [09:42:39]req_shift_open_date [09:42:39]req_shift_open_date done [09:42:39]produce_requested_data done [09:42:39]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69741,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [09:42:39]process_action_free close_receipt [09:42:39]json_value_free [09:42:39]json_value_free done [09:42:39]process_json_proto returns [09:42:39]Send response to host [09:42:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69741,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [09:42:39]free response buf [09:42:39]execute_script done [09:42:39]execute_script returns [09:42:39]free content buf [09:42:39]Sock 9.Close socket [09:42:39]Sock 9.Thread stoped [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:10]accept exits with 7 [09:43:10]New connection [09:43:10]New thread 3066629476 created [09:43:10]Thread 3066486116 joined [09:43:10]Waiting for new connection... [09:43:10] Sock 7.Parse request [09:43:10]Sock 7.Check first char [09:43:10]Sock 7.First char is OK [09:43:10]request: POST /json_proto HTTP/1.0 [09:43:10]Method: POST [09:43:10]URL: /json_proto [09:43:10]Method is POST - this is cgi request [09:43:10]url: /json_proto [09:43:10]query_string will be loaded in cgi processing [09:43:10]execute_cgi json_proto POST (null) [09:43:10]execute_cgi path=json_proto method=POST [09:43:10]POST find Content-Length [09:43:10]Host: 172.17.52.196:8080 [09:43:10]Content-Length: 646 [09:43:10]Content-Type: application/json [09:43:10] [09:43:10]POST finish read [09:43:10]Found Content-Length = 646 [09:43:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127144", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:10]execute_script... [09:43:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127144", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:10]POST & json_proto [09:43:10]process_json_proto [09:43:10]json parsed OK: [09:43:10]protocol is kg_v1.0 [09:43:10]action value=close_receipt [09:43:10]process_action close_receipt [09:43:10]cmd_close_receipt [09:43:10]MH_GetDate [09:43:10]Write to MH i2c: F0 00 00 1F 07 15 [09:43:10]Write i2c OK [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: F0 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: F0 09 00 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: F0 09 00 1F 07 00 AF D0 14 67 60 05 E4 66 C7 [09:43:10]GetLastDocTimeStamp 1729417356 [09:43:10]current date 1729417391 [09:43:10]FM_GetShiftState [09:43:10]SAM_PROTO_GetShiftState [09:43:10]wFMCommunicate request_size=4 [09:43:10]MH_SAM_APDU [09:43:10]CAPDU: 80 13 01 00 [09:43:10]Write to MH i2c: E2 08 00 20 07 80 13 01 00 00 00 00 00 A4 [09:43:10]Write i2c OK [09:43:10]MH_I2C_Read... [09:43:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:10]Read from MH i2c: E2 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: E2 0E 00 [09:43:10]MH_I2C_Read... [09:43:10]Read from MH i2c: E2 0E 00 20 07 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 36 [09:43:10]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:43:10]wFMCommunicate OK [09:43:10]SAM_PROTO_GetShiftState done [09:43:10]FM_GetShiftState done [09:43:10]opened in 1729384380 [09:43:10]opened+sec_in_day 1729470780 [09:43:10]quantity*price = 13000 [09:43:10]sum+1 = 13001 [09:43:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 32 20.10.2024 09:43 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69742 ФПД: 230756943651794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094311&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69742&fm=230756943651794&tin=02508201610067®Number=0000000000091770&sum=13000 0 [09:43:11]StoreToDocumentArchive [09:43:11]shift 526 fd 69742 [09:43:11]save to /storage/0526/doc_00069742 [09:43:11]save last doc name /storage/0526/doc_00069742 to /storage/kkm_last_doc_name [09:43:11]save OK [09:43:11]Clear old archive folders... [09:43:11]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:43:11]tlvbuf is 009C6D80 [09:43:11]SAM_PROTO_ClearQueue [09:43:11]wFMCommunicate request_size=4 [09:43:11]MH_SAM_APDU [09:43:11]CAPDU: 80 09 00 00 [09:43:11]Write to MH i2c: E2 08 00 2D 07 80 09 00 00 00 00 00 00 A6 [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:11]Read from MH i2c: E2 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 03 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 03 00 2D 07 00 90 00 A8 [09:43:11]RAPDU: 90 00 [09:43:11]wFMCommunicate OK [09:43:11]SAM_PROTO_ClearQueue done [09:43:11]KKMCreateOFDPacket [09:43:11]OFDProtocolAddRootSTLVToBuf [09:43:11]FM_MakeSignedData [09:43:11]FM_MakeSignedData [09:43:11]SAM_PROTO_SignData [09:43:11]wFMCommunicate request_size=4 [09:43:11]MH_SAM_APDU [09:43:11]CAPDU: 80 0D 01 02 [09:43:11]Write to MH i2c: E2 08 00 2E 07 80 0D 01 02 00 00 00 00 AE [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:11]Read from MH i2c: E2 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 03 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 03 00 2E 07 00 90 00 A9 [09:43:11]RAPDU: 90 00 [09:43:11]wFMCommunicate OK [09:43:11]wFMCommunicate request_size=255 [09:43:11]MH_SAM_APDU [09:43:11]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AF D0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 [09:43:11]Write to MH i2c: E2 02 01 2F 07 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AF D0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 00 00 E6 [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:11]Read from MH i2c: E2 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 03 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 03 00 2F 07 00 90 00 AA [09:43:11]RAPDU: 90 00 [09:43:11]wFMCommunicate OK [09:43:11]wFMCommunicate request_size=41 [09:43:11]MH_SAM_APDU [09:43:11]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6E 10 01 00 35 04 06 00 D1 DF 49 A7 E3 D2 [09:43:11]Write to MH i2c: E2 2C 00 30 07 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6E 10 01 00 35 04 06 00 D1 DF 49 A7 E3 D2 00 00 58 [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:11]Read from MH i2c: E2 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 03 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 03 00 30 07 00 90 00 AB [09:43:11]RAPDU: 90 00 [09:43:11]wFMCommunicate OK [09:43:11]wFMCommunicate request_size=4 [09:43:11]MH_SAM_APDU [09:43:11]CAPDU: 80 0D 03 02 [09:43:11]Write to MH i2c: E2 08 00 31 07 80 0D 03 02 00 00 00 00 B3 [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:11]Read from MH i2c: E2 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 0B 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 0B 00 31 07 00 E0 EB F7 1A 52 88 98 D4 90 00 D6 [09:43:11]RAPDU: E0 EB F7 1A 52 88 98 D4 90 00 [09:43:11]wFMCommunicate OK [09:43:11]SAM_PROTO_SignData done [09:43:11]FM_MakeSignedData done [09:43:11]CreateOFDProtocolMessage [09:43:11]wFMCommunicate request_size=4 [09:43:11]MH_SAM_APDU [09:43:11]CAPDU: 80 11 00 00 [09:43:11]Write to MH i2c: E2 08 00 32 07 80 11 00 00 00 00 00 00 B3 [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:11]Read from MH i2c: E2 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 17 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: E2 17 00 32 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 0A [09:43:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:43:11]wFMCommunicate OK [09:43:11]CreateOFDProtocolMessage done [09:43:11]OFDSenderStorePacket 69742 [09:43:11]StoreOFDPacket docnum=69742 [09:43:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2E 01 00 00 E8 8F 26 01 6A D6 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AF D0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6E 10 01 00 35 04 06 00 D1 DF 49 A7 E3 D2 E0 EB F7 1A 52 88 98 D4 [09:43:11]CheckFolder [09:43:11]dirname=/storage/ofd_packets [09:43:11]CheckFolder done [09:43:11]ProducePacketName [09:43:11]name=ofd_packets/00069742 [09:43:11]NVStorageSaveData ofd_packets/00069742 [09:43:11]File name is /storage/ofd_packets/00069742 [09:43:11]Write 332 bytes [09:43:11]NVStorageSaveData done [09:43:11]OFDSenderStorePacket done [09:43:11]KKMCreateOFDPacket done [09:43:11]NVStorageSaveData kkm_last_timestamp [09:43:11]File name is /storage/kkm_last_timestamp [09:43:11]Write 4 bytes [09:43:11]NVStorageSaveData done [09:43:11]ExternCall_PrintAddStr [09:43:11]wPrintStart [09:43:11]Write to MH i2c: 01 00 00 33 07 3A [09:43:11]Write i2c OK [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: 01 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: 01 07 00 [09:43:11]MH_I2C_Read... [09:43:11]Read from MH i2c: 01 07 00 33 07 00 00 00 00 00 FF 0F 4F [09:43:11]RasterBufferAndPrint [09:43:11]line Счет N : (3)127144 [09:43:11]line ИНН: 02508201610067 [09:43:11]line Контрольно-Кассовый Чек [09:43:11]line ПРОДАЖА [09:43:11]line Товар: 2000036220012 [09:43:11]line Кофе Капучино XL(GABB TRADE) [09:43:11]line 1.000 * 130.00 [09:43:11]line = 130.00 [09:43:11]line НДС 12% НСП 1% [09:43:11]line > о реализуемом товаре [09:43:11]line ИТОГО: 130.00 [09:43:11]line НСП 1% : 1.15 [09:43:11]line НДС 12% : 13.80 [09:43:11]line Наличными: 130.00 [09:43:11]line Безнал.: 0.00 [09:43:11]line Место: АЗС № 163 "Партнер Нефть" [09:43:11]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [09:43:11]line СНО: Общий режим [09:43:11]line Чек 32 20.10.2024 09:43 [09:43:11]line Смена: 526 ФФД: 1.0 [09:43:11]line ЗНМ: 0300000101 [09:43:11]line РНМ: 0000000000091770 [09:43:11]line Версия ККМ: 001 [09:43:11]line ФМ: 0000000000871749 [09:43:11]line ФД: 69742 [09:43:11]line ФПД: 230756943651794 [09:43:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094311&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69742&fm=230756943651794&tin=02508201610067®Number=0000000000091770&sum=13000 [09:43:12]line 0 [09:43:12]OFD Sender: Processing packet 69742 [packets to send 32, broken 31] [09:43:12]ProducePacketName [09:43:12]name=ofd_packets/00069742 [09:43:12]OFD Sender: To server: pG, [09:43:12]CommunicateWithHost lk.salyk.kg:30040 [09:43:12]ConnectInit lk.salyk.kg [09:43:12]written 0, free lines is 4095 [09:43:12]Connected sock=10 [09:43:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2E 01 00 00 E8 8F 26 01 6A D6 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AF D0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6E 10 01 00 35 04 06 00 D1 DF 49 A7 E3 D2 E0 EB F7 1A 52 88 98 D4 [09:43:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 2F 8D 47 00 DE 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6E 10 01 00 F4 03 04 00 32 76 14 67 B6 04 01 00 00 72 5C 83 72 94 E8 1F E0 [09:43:12]CommunicateWithHost err = 0 [09:43:12]CheckOFDResponse [09:43:12]1017 (14) - 77093643461234 [09:43:12]1041 (16) - 0000000000871749 [09:43:12]1040 (4) - 69742 [09:43:12]1012 (4) - 20.10.2024 03:17 [09:43:12]1206 (1) - 0 [09:43:12]OFD Sender: Remove packet 69742 [09:43:12]ProducePacketName [09:43:12]name=ofd_packets/00069742 [09:43:12]NVStorageDeleteData [09:43:12]Write to MH i2c: 01 00 00 5C 07 63 [09:43:12]Write i2c OK [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: 01 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: 01 07 00 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: 01 07 00 5C 07 00 00 00 00 00 11 0D 88 [09:43:12]RasterBufferAndPrint [09:43:12]line [09:43:12]line [09:43:12]line [09:43:12]line [09:43:12]line [09:43:12]written 0, free lines is 3351 [09:43:12]MH_Cut [09:43:12]Write to MH i2c: D1 01 00 63 07 01 3C [09:43:12]Write i2c OK [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: D1 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: D1 01 00 [09:43:12]MH_I2C_Read... [09:43:12]Read from MH i2c: D1 01 00 63 07 00 3B [09:43:12]Write to MH i2c: 01 00 00 64 07 6B [09:43:12]Write i2c OK [09:43:12]MH_I2C_Read... [09:43:13]OFD Sender: No OFD packet to send [09:43:13]*** Cut start [09:43:13]*** Partial cut [09:43:13]*** CUTSNS_PIN = 1 [09:43:13]*** CUTSNS_PIN = 0 [09:43:13]*** Brake cut motor [09:43:14]Read from MH i2c: 01 [09:43:14]MH_I2C_Read... [09:43:14]*** Stop cut motor [09:43:14]*** Cut end [09:43:14]Read from MH i2c: 01 07 00 [09:43:14]MH_I2C_Read... [09:43:14]Read from MH i2c: 01 07 00 64 07 00 00 00 00 00 FF 0F 80 [09:43:14]process_action close_receipt done [09:43:14]requested_data is exist [09:43:14]produce_requested_data [09:43:14]requested_item fm.sn is exist - process it [09:43:14]wFMCommunicate request_size=4 [09:43:14]MH_SAM_APDU [09:43:14]CAPDU: 80 11 00 00 [09:43:14]Write to MH i2c: E2 08 00 65 07 80 11 00 00 00 00 00 00 E6 [09:43:14]Write i2c OK [09:43:14]MH_I2C_Read... [09:43:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:14]Read from MH i2c: E2 [09:43:14]MH_I2C_Read... [09:43:14]Read from MH i2c: E2 17 00 [09:43:14]MH_I2C_Read... [09:43:14]Read from MH i2c: E2 17 00 65 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 3D [09:43:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:43:14]wFMCommunicate OK [09:43:14]requested_item fd.num is exist - process it [09:43:14]SAM_PROTO_GetFieldsCounters [09:43:14]wFMCommunicate request_size=4 [09:43:14]MH_SAM_APDU [09:43:14]CAPDU: 80 13 00 00 [09:43:14]Write to MH i2c: E2 08 00 66 07 80 13 00 00 00 00 00 00 E9 [09:43:14]Write i2c OK [09:43:14]MH_I2C_Read... [09:43:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:14]Read from MH i2c: E2 [09:43:14]MH_I2C_Read... [09:43:14]Read from MH i2c: E2 62 00 [09:43:14]MH_I2C_Read... [09:43:14]Read from MH i2c: E2 62 00 66 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 6E 10 01 00 0E 04 04 00 0E 02 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 FC [09:43:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 6E 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:14]wFMCommunicate OK [09:43:14]SAM_PROTO_GetFieldsCounters done [09:43:14]requested_item shift.num is exist - process it [09:43:14]requested_item shift.opened is exist - process it [09:43:14]req_shift_opened [09:43:14]FM_GetShiftState [09:43:14]SAM_PROTO_GetShiftState [09:43:14]wFMCommunicate request_size=4 [09:43:14]MH_SAM_APDU [09:43:14]CAPDU: 80 13 01 00 [09:43:14]Write to MH i2c: E2 08 00 67 07 80 13 01 00 00 00 00 00 EB [09:43:14]Write i2c OK [09:43:14]MH_I2C_Read... [09:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:14]Read from MH i2c: E2 [09:43:14]MH_I2C_Read... [09:43:14]Read from MH i2c: E2 0E 00 [09:43:14]MH_I2C_Read... [09:43:14]Read from MH i2c: E2 0E 00 67 07 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 7D [09:43:14]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:43:14]wFMCommunicate OK [09:43:14]SAM_PROTO_GetShiftState done [09:43:14]FM_GetShiftState done [09:43:14]req_shift_opened done [09:43:14]requested_item shift.open_date is exist - process it [09:43:14]req_shift_open_date [09:43:14]req_shift_open_date done [09:43:14]produce_requested_data done [09:43:14]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69742,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [09:43:14]process_action_free close_receipt [09:43:14]json_value_free [09:43:14]json_value_free done [09:43:14]process_json_proto returns [09:43:14]Send response to host [09:43:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69742,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [09:43:14]free response buf [09:43:14]execute_script done [09:43:14]execute_script returns [09:43:14]free content buf [09:43:14]Sock 7.Close socket [09:43:14]Sock 7.Thread stoped [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:57]accept exits with 9 [09:46:57]New connection [09:46:57]New thread 3066486116 created [09:46:57]Thread 3066629476 joined [09:46:57]Waiting for new connection... [09:46:57] Sock 9.Parse request [09:46:57]Sock 9.Check first char [09:46:57]Sock 9.First char is OK [09:46:57]request: POST /json_proto HTTP/1.0 [09:46:57]Method: POST [09:46:57]URL: /json_proto [09:46:57]Method is POST - this is cgi request [09:46:57]url: /json_proto [09:46:57]query_string will be loaded in cgi processing [09:46:57]execute_cgi json_proto POST (null) [09:46:57]execute_cgi path=json_proto method=POST [09:46:57]POST find Content-Length [09:46:57]Host: 172.17.52.196:8080 [09:46:57]Content-Length: 644 [09:46:57]Content-Type: application/json [09:46:57] [09:46:57]POST finish read [09:46:57]Found Content-Length = 644 [09:46:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127145", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:57]execute_script... [09:46: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 : (3)127145", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:57]POST & json_proto [09:46:57]process_json_proto [09:46:57]json parsed OK: [09:46:57]protocol is kg_v1.0 [09:46:57]action value=close_receipt [09:46:57]process_action close_receipt [09:46:57]cmd_close_receipt [09:46:57]MH_GetDate [09:46:57]Write to MH i2c: F0 00 00 68 07 5E [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: F0 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: F0 09 00 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: F0 09 00 68 07 00 93 D1 14 67 60 05 E4 66 F5 [09:46:57]GetLastDocTimeStamp 1729417391 [09:46:57]current date 1729417619 [09:46:57]FM_GetShiftState [09:46:57]SAM_PROTO_GetShiftState [09:46:57]wFMCommunicate request_size=4 [09:46:57]MH_SAM_APDU [09:46:57]CAPDU: 80 13 01 00 [09:46:57]Write to MH i2c: E2 08 00 69 07 80 13 01 00 00 00 00 00 ED [09:46:57]Write i2c OK [09:46:57]MH_I2C_Read... [09:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:57]Read from MH i2c: E2 [09:46:57]MH_I2C_Read... [09:46:57]Read from MH i2c: E2 0E 00 [09:46:57]MH_I2C_Read... [09:46:58]Read from MH i2c: E2 0E 00 69 07 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 7F [09:46:58]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:46:58]wFMCommunicate OK [09:46:58]SAM_PROTO_GetShiftState done [09:46:58]FM_GetShiftState done [09:46:58]opened in 1729384380 [09:46:58]opened+sec_in_day 1729470780 [09:46:58]quantity*price = 23000 [09:46:58]sum+1 = 23001 [09:46:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 33 20.10.2024 09:46 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69743 ФПД: 130539300797886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094659&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69743&fm=130539300797886&tin=02508201610067®Number=0000000000091770&sum=23000 0 [09:46:59]StoreToDocumentArchive [09:46:59]shift 526 fd 69743 [09:46:59]save to /storage/0526/doc_00069743 [09:46:59]save last doc name /storage/0526/doc_00069743 to /storage/kkm_last_doc_name [09:46:59]save OK [09:46:59]Clear old archive folders... [09:46:59]ProcessDocumentItem done err = 0, tmpTLVsize=280 [09:46:59]tlvbuf is 0095C090 [09:46:59]SAM_PROTO_ClearQueue [09:46:59]wFMCommunicate request_size=4 [09:46:59]MH_SAM_APDU [09:46:59]CAPDU: 80 09 00 00 [09:46:59]Write to MH i2c: E2 08 00 76 07 80 09 00 00 00 00 00 00 EF [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:46:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:59]Read from MH i2c: E2 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 03 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 03 00 76 07 00 90 00 F1 [09:46:59]RAPDU: 90 00 [09:46:59]wFMCommunicate OK [09:46:59]SAM_PROTO_ClearQueue done [09:46:59]KKMCreateOFDPacket [09:46:59]OFDProtocolAddRootSTLVToBuf [09:46:59]FM_MakeSignedData [09:46:59]FM_MakeSignedData [09:46:59]SAM_PROTO_SignData [09:46:59]wFMCommunicate request_size=4 [09:46:59]MH_SAM_APDU [09:46:59]CAPDU: 80 0D 01 02 [09:46:59]Write to MH i2c: E2 08 00 77 07 80 0D 01 02 00 00 00 00 F7 [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:46:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:59]Read from MH i2c: E2 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 03 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 03 00 77 07 00 90 00 F2 [09:46:59]RAPDU: 90 00 [09:46:59]wFMCommunicate OK [09:46:59]wFMCommunicate request_size=255 [09:46:59]MH_SAM_APDU [09:46:59]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 93 D1 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 [09:46:59]Write to MH i2c: E2 02 01 78 07 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 93 D1 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 00 00 AC [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:59]Read from MH i2c: E2 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 03 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 03 00 78 07 00 90 00 F3 [09:46:59]RAPDU: 90 00 [09:46:59]wFMCommunicate OK [09:46:59]wFMCommunicate request_size=39 [09:46:59]MH_SAM_APDU [09:46:59]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6F 10 01 00 35 04 06 00 76 B9 8C A7 3D BE [09:46:59]Write to MH i2c: E2 2A 00 79 07 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6F 10 01 00 35 04 06 00 76 B9 8C A7 3D BE 00 00 96 [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:59]Read from MH i2c: E2 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 03 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 03 00 79 07 00 90 00 F4 [09:46:59]RAPDU: 90 00 [09:46:59]wFMCommunicate OK [09:46:59]wFMCommunicate request_size=4 [09:46:59]MH_SAM_APDU [09:46:59]CAPDU: 80 0D 03 02 [09:46:59]Write to MH i2c: E2 08 00 7A 07 80 0D 03 02 00 00 00 00 FC [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:46:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:59]Read from MH i2c: E2 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 0B 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 0B 00 7A 07 00 6D 91 83 7B 0C B1 CA 10 90 00 90 [09:46:59]RAPDU: 6D 91 83 7B 0C B1 CA 10 90 00 [09:46:59]wFMCommunicate OK [09:46:59]SAM_PROTO_SignData done [09:46:59]FM_MakeSignedData done [09:46:59]CreateOFDProtocolMessage [09:46:59]wFMCommunicate request_size=4 [09:46:59]MH_SAM_APDU [09:46:59]CAPDU: 80 11 00 00 [09:46:59]Write to MH i2c: E2 08 00 7B 07 80 11 00 00 00 00 00 00 FC [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:59]Read from MH i2c: E2 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 17 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 17 00 7B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 53 [09:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:46:59]wFMCommunicate OK [09:46:59]CreateOFDProtocolMessage done [09:46:59]OFDSenderStorePacket 69743 [09:46:59]StoreOFDPacket docnum=69743 [09:46:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2C 01 00 00 3C AC 24 01 2F 6B 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 93 D1 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6F 10 01 00 35 04 06 00 76 B9 8C A7 3D BE 6D 91 83 7B 0C B1 CA 10 [09:46:59]CheckFolder [09:46:59]dirname=/storage/ofd_packets [09:46:59]CheckFolder done [09:46:59]ProducePacketName [09:46:59]name=ofd_packets/00069743 [09:46:59]NVStorageSaveData ofd_packets/00069743 [09:46:59]File name is /storage/ofd_packets/00069743 [09:46:59]Write 330 bytes [09:46:59]NVStorageSaveData done [09:46:59]OFDSenderStorePacket done [09:46:59]KKMCreateOFDPacket done [09:46:59]NVStorageSaveData kkm_last_timestamp [09:46:59]File name is /storage/kkm_last_timestamp [09:46:59]Write 4 bytes [09:46:59]NVStorageSaveData done [09:46:59]ExternCall_PrintAddStr [09:46:59]wPrintStart [09:46:59]Write to MH i2c: 01 00 00 7C 07 83 [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: 01 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: 01 07 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: 01 07 00 7C 07 00 00 00 00 00 FF 0F 98 [09:46:59]RasterBufferAndPrint [09:46:59]line Счет N : (3)127145 [09:46:59]line ИНН: 02508201610067 [09:46:59]line Контрольно-Кассовый Чек [09:46:59]line ПРОДАЖА [09:46:59]line Товар: 2000036210013 [09:46:59]line Кофе Капучино (GABB TRADE) [09:46:59]line 2.000 * 115.00 [09:46:59]line = 230.00 [09:46:59]line НДС 12% НСП 1% [09:46:59]line > о реализуемом товаре [09:46:59]line ИТОГО: 230.00 [09:46:59]line НСП 1% : 2.03 [09:46:59]line НДС 12% : 24.42 [09:46:59]line Наличными: 230.00 [09:46:59]line Безнал.: 0.00 [09:46:59]line Место: АЗС № 163 "Партнер Нефть" [09:46:59]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [09:46:59]line СНО: Общий режим [09:46:59]line Чек 33 20.10.2024 09:46 [09:46:59]line Смена: 526 ФФД: 1.0 [09:46:59]line ЗНМ: 0300000101 [09:46:59]line РНМ: 0000000000091770 [09:46:59]line Версия ККМ: 001 [09:46:59]line ФМ: 0000000000871749 [09:46:59]line ФД: 69743 [09:46:59]line ФПД: 130539300797886 [09:46:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094659&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69743&fm=130539300797886&tin=02508201610067®Number=0000000000091770&sum=23000 [09:47:00]line 0 [09:47:00]OFD Sender: Processing packet 69743 [packets to send 32, broken 31] [09:47:00]ProducePacketName [09:47:00]name=ofd_packets/00069743 [09:47:00]OFD Sender: To server: pG, [09:47:00]CommunicateWithHost lk.salyk.kg:30040 [09:47:00]ConnectInit lk.salyk.kg [09:47:00]written 0, free lines is 4095 [09:47:00]Connected sock=10 [09:47:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2C 01 00 00 3C AC 24 01 2F 6B 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 93 D1 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6F 10 01 00 35 04 06 00 76 B9 8C A7 3D BE 6D 91 83 7B 0C B1 CA 10 [09:47:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 16 FC 47 00 14 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 6F 10 01 00 F4 03 04 00 16 77 14 67 B6 04 01 00 00 23 98 78 5B 72 41 8D D6 [09:47:00]CommunicateWithHost err = 0 [09:47:00]CheckOFDResponse [09:47:00]1017 (14) - 77093643461234 [09:47:00]1041 (16) - 0000000000871749 [09:47:00]1040 (4) - 69743 [09:47:00]1012 (4) - 20.10.2024 03:20 [09:47:00]1206 (1) - 0 [09:47:00]OFD Sender: Remove packet 69743 [09:47:00]ProducePacketName [09:47:00]name=ofd_packets/00069743 [09:47:00]NVStorageDeleteData [09:47:00]Write to MH i2c: 01 00 00 A4 07 AB [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: 01 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: 01 07 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: 01 07 00 A4 07 00 00 00 00 00 21 0D E0 [09:47:00]RasterBufferAndPrint [09:47:00]line [09:47:00]line [09:47:00]line [09:47:00]line [09:47:00]line [09:47:00]written 0, free lines is 3366 [09:47:00]MH_Cut [09:47:00]Write to MH i2c: D1 01 00 AB 07 01 84 [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: D1 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: D1 01 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: D1 01 00 AB 07 00 83 [09:47:00]Write to MH i2c: 01 00 00 AC 07 B3 [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]OFD Sender: No OFD packet to send [09:47:01]*** Cut start [09:47:01]*** Partial cut [09:47:01]*** CUTSNS_PIN = 1 [09:47:01]*** CUTSNS_PIN = 0 [09:47:01]*** Brake cut motor [09:47:01]Read from MH i2c: 01 [09:47:01]MH_I2C_Read... [09:47:01]*** Stop cut motor [09:47:01]*** Cut end [09:47:01]Read from MH i2c: 01 07 00 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: 01 07 00 AC 07 00 00 00 00 00 FF 0F C8 [09:47:01]process_action close_receipt done [09:47:01]requested_data is exist [09:47:01]produce_requested_data [09:47:01]requested_item fm.sn is exist - process it [09:47:01]wFMCommunicate request_size=4 [09:47:01]MH_SAM_APDU [09:47:01]CAPDU: 80 11 00 00 [09:47:01]Write to MH i2c: E2 08 00 AD 07 80 11 00 00 00 00 00 00 2E [09:47:01]Write i2c OK [09:47:01]MH_I2C_Read... [09:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:02]Read from MH i2c: E2 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 17 00 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 17 00 AD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 85 [09:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:47:02]wFMCommunicate OK [09:47:02]requested_item fd.num is exist - process it [09:47:02]SAM_PROTO_GetFieldsCounters [09:47:02]wFMCommunicate request_size=4 [09:47:02]MH_SAM_APDU [09:47:02]CAPDU: 80 13 00 00 [09:47:02]Write to MH i2c: E2 08 00 AE 07 80 13 00 00 00 00 00 00 31 [09:47:02]Write i2c OK [09:47:02]MH_I2C_Read... [09:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:02]Read from MH i2c: E2 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 62 00 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 62 00 AE 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 6F 10 01 00 0E 04 04 00 0E 02 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 48 [09:47: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 6F 10 01 00 0E 04 04 00 0E 02 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 [09:47:02]wFMCommunicate OK [09:47:02]SAM_PROTO_GetFieldsCounters done [09:47:02]requested_item shift.num is exist - process it [09:47:02]requested_item shift.opened is exist - process it [09:47:02]req_shift_opened [09:47:02]FM_GetShiftState [09:47:02]SAM_PROTO_GetShiftState [09:47:02]wFMCommunicate request_size=4 [09:47:02]MH_SAM_APDU [09:47:02]CAPDU: 80 13 01 00 [09:47:02]Write to MH i2c: E2 08 00 AF 07 80 13 01 00 00 00 00 00 33 [09:47:02]Write i2c OK [09:47:02]MH_I2C_Read... [09:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:02]Read from MH i2c: E2 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 0E 00 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 0E 00 AF 07 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 C5 [09:47:02]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:47:02]wFMCommunicate OK [09:47:02]SAM_PROTO_GetShiftState done [09:47:02]FM_GetShiftState done [09:47:02]req_shift_opened done [09:47:02]requested_item shift.open_date is exist - process it [09:47:02]req_shift_open_date [09:47:02]req_shift_open_date done [09:47:02]produce_requested_data done [09:47:02]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69743,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [09:47:02]process_action_free close_receipt [09:47:02]json_value_free [09:47:02]json_value_free done [09:47:02]process_json_proto returns [09:47:02]Send response to host [09:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69743,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [09:47:02]free response buf [09:47:02]execute_script done [09:47:02]execute_script returns [09:47:02]free content buf [09:47:02]Sock 9.Close socket [09:47:02]Sock 9.Thread stoped [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:47:59]accept exits with 7 [09:47:59]New connection [09:47:59]New thread 3066629476 created [09:47:59]Thread 3066486116 joined [09:47:59]Waiting for new connection... [09:47:59] Sock 7.Parse request [09:47:59]Sock 7.Check first char [09:47:59]Sock 7.First char is OK [09:47:59]request: POST /json_proto HTTP/1.0 [09:47:59]Method: POST [09:47:59]URL: /json_proto [09:47:59]Method is POST - this is cgi request [09:47:59]url: /json_proto [09:47:59]query_string will be loaded in cgi processing [09:47:59]execute_cgi json_proto POST (null) [09:47:59]execute_cgi path=json_proto method=POST [09:47:59]POST find Content-Length [09:47:59]Host: 172.17.52.196:8080 [09:47:59]Content-Length: 614 [09:47:59]Content-Type: application/json [09:47:59] [09:47:59]POST finish read [09:47:59]Found Content-Length = 614 [09:47:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127146", "tax_sys" : 0, "items" : [ { "code": "48702522", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Marlboro Red", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:59]execute_script... [09:47:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127146", "tax_sys" : 0, "items" : [ { "code": "48702522", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Marlboro Red", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:59]POST & json_proto [09:47:59]process_json_proto [09:47:59]json parsed OK: [09:47:59]protocol is kg_v1.0 [09:47:59]action value=close_receipt [09:47:59]process_action close_receipt [09:47:59]cmd_close_receipt [09:47:59]MH_GetDate [09:47:59]Write to MH i2c: F0 00 00 B0 07 A6 [09:47:59]Write i2c OK [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: F0 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: F0 09 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: F0 09 00 B0 07 00 D0 D1 14 67 60 05 E4 66 7A [09:47:59]GetLastDocTimeStamp 1729417619 [09:47:59]current date 1729417680 [09:47:59]FM_GetShiftState [09:47:59]SAM_PROTO_GetShiftState [09:47:59]wFMCommunicate request_size=4 [09:47:59]MH_SAM_APDU [09:47:59]CAPDU: 80 13 01 00 [09:47:59]Write to MH i2c: E2 08 00 B1 07 80 13 01 00 00 00 00 00 35 [09:47:59]Write i2c OK [09:47:59]MH_I2C_Read... [09:47:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:59]Read from MH i2c: E2 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 0E 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 0E 00 B1 07 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 C7 [09:47:59]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:47:59]wFMCommunicate OK [09:47:59]SAM_PROTO_GetShiftState done [09:47:59]FM_GetShiftState done [09:47:59]opened in 1729384380 [09:47:59]opened+sec_in_day 1729470780 [09:47:59]quantity*price = 15400 [09:47:59]sum+1 = 15401 [09:47:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 34 20.10.2024 09:48 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69744 ФПД: 49217627114708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094800&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69744&fm=49217627114708&tin=02508201610067®Number=0000000000091770&sum=15400 0 [09:48:00]StoreToDocumentArchive [09:48:00]shift 526 fd 69744 [09:48:00]save to /storage/0526/doc_00069744 [09:48:00]save last doc name /storage/0526/doc_00069744 to /storage/kkm_last_doc_name [09:48:00]save OK [09:48:00]Clear old archive folders... [09:48:00]ProcessDocumentItem done err = 0, tmpTLVsize=266 [09:48:00]tlvbuf is 0095C040 [09:48:00]SAM_PROTO_ClearQueue [09:48:00]wFMCommunicate request_size=4 [09:48:00]MH_SAM_APDU [09:48:00]CAPDU: 80 09 00 00 [09:48:00]Write to MH i2c: E2 08 00 BE 07 80 09 00 00 00 00 00 00 37 [09:48:00]Write i2c OK [09:48:00]MH_I2C_Read... [09:48:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:00]Read from MH i2c: E2 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 03 00 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 03 00 BE 07 00 90 00 39 [09:48:00]RAPDU: 90 00 [09:48:00]wFMCommunicate OK [09:48:00]SAM_PROTO_ClearQueue done [09:48:00]KKMCreateOFDPacket [09:48:00]OFDProtocolAddRootSTLVToBuf [09:48:00]FM_MakeSignedData [09:48:00]FM_MakeSignedData [09:48:00]SAM_PROTO_SignData [09:48:00]wFMCommunicate request_size=4 [09:48:00]MH_SAM_APDU [09:48:00]CAPDU: 80 0D 01 02 [09:48:00]Write to MH i2c: E2 08 00 BF 07 80 0D 01 02 00 00 00 00 3F [09:48:00]Write i2c OK [09:48:00]MH_I2C_Read... [09:48:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:00]Read from MH i2c: E2 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 03 00 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 03 00 BF 07 00 90 00 3A [09:48:00]RAPDU: 90 00 [09:48:00]wFMCommunicate OK [09:48:00]wFMCommunicate request_size=255 [09:48:00]MH_SAM_APDU [09:48:00]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 30 32 35 32 32 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 61 72 6C 62 6F 72 6F 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 D0 D1 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 [09:48:00]Write to MH i2c: E2 02 01 C0 07 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 30 32 35 32 32 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 61 72 6C 62 6F 72 6F 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 D0 D1 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 00 00 BA [09:48:00]Write i2c OK [09:48:00]MH_I2C_Read... [09:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:00]Read from MH i2c: E2 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 03 00 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 03 00 C0 07 00 90 00 3B [09:48:00]RAPDU: 90 00 [09:48:00]wFMCommunicate OK [09:48:00]wFMCommunicate request_size=25 [09:48:00]MH_SAM_APDU [09:48:00]CAPDU: 80 0D 02 02 14 34 39 10 04 04 00 70 10 01 00 35 04 06 00 2C C3 5F 2E 4C D4 [09:48:00]Write to MH i2c: E2 1C 00 C1 07 80 0D 02 02 14 00 34 39 10 04 04 00 70 10 01 00 35 04 06 00 2C C3 5F 2E 4C D4 00 00 4B [09:48:00]Write i2c OK [09:48:00]MH_I2C_Read... [09:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:00]Read from MH i2c: E2 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 03 00 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 03 00 C1 07 00 90 00 3C [09:48:00]RAPDU: 90 00 [09:48:00]wFMCommunicate OK [09:48:00]wFMCommunicate request_size=4 [09:48:00]MH_SAM_APDU [09:48:00]CAPDU: 80 0D 03 02 [09:48:00]Write to MH i2c: E2 08 00 C2 07 80 0D 03 02 00 00 00 00 44 [09:48:00]Write i2c OK [09:48:00]MH_I2C_Read... [09:48:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:00]Read from MH i2c: E2 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 0B 00 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 0B 00 C2 07 00 61 C6 A0 45 FD E7 CB E5 90 00 E5 [09:48:00]RAPDU: 61 C6 A0 45 FD E7 CB E5 90 00 [09:48:00]wFMCommunicate OK [09:48:00]SAM_PROTO_SignData done [09:48:00]FM_MakeSignedData done [09:48:00]CreateOFDProtocolMessage [09:48:00]wFMCommunicate request_size=4 [09:48:00]MH_SAM_APDU [09:48:00]CAPDU: 80 11 00 00 [09:48:00]Write to MH i2c: E2 08 00 C3 07 80 11 00 00 00 00 00 00 44 [09:48:00]Write i2c OK [09:48:00]MH_I2C_Read... [09:48:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:00]Read from MH i2c: E2 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 17 00 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: E2 17 00 C3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 9B [09:48:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:48:00]wFMCommunicate OK [09:48:00]CreateOFDProtocolMessage done [09:48:00]OFDSenderStorePacket 69744 [09:48:00]StoreOFDPacket docnum=69744 [09:48:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 1E 01 00 00 B0 DB 16 01 33 7B 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 30 32 35 32 32 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 61 72 6C 62 6F 72 6F 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 D0 D1 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 70 10 01 00 35 04 06 00 2C C3 5F 2E 4C D4 61 C6 A0 45 FD E7 CB E5 [09:48:00]CheckFolder [09:48:00]dirname=/storage/ofd_packets [09:48:00]CheckFolder done [09:48:00]ProducePacketName [09:48:00]name=ofd_packets/00069744 [09:48:00]NVStorageSaveData ofd_packets/00069744 [09:48:00]File name is /storage/ofd_packets/00069744 [09:48:00]Write 316 bytes [09:48:00]NVStorageSaveData done [09:48:00]OFDSenderStorePacket done [09:48:00]KKMCreateOFDPacket done [09:48:00]NVStorageSaveData kkm_last_timestamp [09:48:00]File name is /storage/kkm_last_timestamp [09:48:00]Write 4 bytes [09:48:00]NVStorageSaveData done [09:48:00]ExternCall_PrintAddStr [09:48:00]wPrintStart [09:48:00]Write to MH i2c: 01 00 00 C4 07 CB [09:48:00]Write i2c OK [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: 01 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: 01 07 00 [09:48:00]MH_I2C_Read... [09:48:00]Read from MH i2c: 01 07 00 C4 07 00 00 00 00 00 FF 0F E0 [09:48:00]RasterBufferAndPrint [09:48:00]line Счет N : (3)127146 [09:48:00]line ИНН: 02508201610067 [09:48:00]line Контрольно-Кассовый Чек [09:48:00]line ПРОДАЖА [09:48:00]line Товар: 48702522 [09:48:00]line Сигареты Marlboro Red [09:48:00]line 1.000 * 154.00 [09:48:00]line = 154.00 [09:48:00]line НДС 12% НСП 1% [09:48:00]line > о реализуемом товаре [09:48:00]line ИТОГО: 154.00 [09:48:00]line НСП 1% : 1.36 [09:48:00]line НДС 12% : 16.35 [09:48:00]line Наличными: 154.00 [09:48:00]line Безнал.: 0.00 [09:48:00]line Место: АЗС № 163 "Партнер Нефть" [09:48:00]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [09:48:00]line СНО: Общий режим [09:48:00]line Чек 34 20.10.2024 09:48 [09:48:00]line Смена: 526 ФФД: 1.0 [09:48:00]line ЗНМ: 0300000101 [09:48:00]line РНМ: 0000000000091770 [09:48:00]line Версия ККМ: 001 [09:48:00]line ФМ: 0000000000871749 [09:48:00]line ФД: 69744 [09:48:00]line ФПД: 49217627114708 [09:48:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T094800&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69744&fm=49217627114708&tin=02508201610067®Number=0000000000091770&sum=15400 [09:48:01]OFD Sender: Processing packet 69744 [packets to send 32, broken 31] [09:48:01]ProducePacketName [09:48:01]name=ofd_packets/00069744 [09:48:01]OFD Sender: To server: pG, [09:48:01]CommunicateWithHost lk.salyk.kg:30040 [09:48:01]ConnectInit lk.salyk.kg [09:48:01]line 0 [09:48:01]written 0, free lines is 4095 [09:48:01]Connected sock=10 [09:48:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 1E 01 00 00 B0 DB 16 01 33 7B 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 30 32 35 32 32 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 61 72 6C 62 6F 72 6F 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 D0 D1 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 70 10 01 00 35 04 06 00 2C C3 5F 2E 4C D4 61 C6 A0 45 FD E7 CB E5 [09:48:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 5F D6 47 00 A3 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 31 37 34 39 10 04 04 00 70 10 01 00 F4 03 04 00 53 77 14 67 B6 04 01 00 00 16 B4 F6 26 5A 8F 2C 7A [09:48:01]CommunicateWithHost err = 0 [09:48:01]CheckOFDResponse [09:48:01]1017 (14) - 77093643461234 [09:48:01]1041 (16) - 0000000000871749 [09:48:01]1040 (4) - 69744 [09:48:01]1012 (4) - 20.10.2024 03:21 [09:48:01]1206 (1) - 0 [09:48:01]OFD Sender: Remove packet 69744 [09:48:01]ProducePacketName [09:48:01]name=ofd_packets/00069744 [09:48:01]NVStorageDeleteData [09:48:01]Write to MH i2c: 01 00 00 EC 07 F3 [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: 01 07 00 EC 07 00 00 00 00 00 06 0D 0D [09:48:01]RasterBufferAndPrint [09:48:01]line [09:48:01]line [09:48:01]line [09:48:01]line [09:48:01]line [09:48:01]written 0, free lines is 3344 [09:48:01]MH_Cut [09:48:01]Write to MH i2c: D1 01 00 F3 07 01 CC [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: D1 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: D1 01 00 [09:48:01]MH_I2C_Read... [09:48:01]Read from MH i2c: D1 01 00 F3 07 00 CB [09:48:01]Write to MH i2c: 01 00 00 F4 07 FB [09:48:01]Write i2c OK [09:48:01]MH_I2C_Read... [09:48:01]OFD Sender: No OFD packet to send [09:48:02]*** Cut start [09:48:02]*** Partial cut [09:48:02]*** CUTSNS_PIN = 1 [09:48:02]*** CUTSNS_PIN = 0 [09:48:02]*** Brake cut motor [09:48:03]Read from MH i2c: 01 [09:48:03]MH_I2C_Read... [09:48:03]*** Stop cut motor [09:48:03]*** Cut end [09:48:03]Read from MH i2c: 01 07 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: 01 07 00 F4 07 00 00 00 00 00 FF 0F 10 [09:48:03]process_action close_receipt done [09:48:03]requested_data is exist [09:48:03]produce_requested_data [09:48:03]requested_item fm.sn is exist - process it [09:48:03]wFMCommunicate request_size=4 [09:48:03]MH_SAM_APDU [09:48:03]CAPDU: 80 11 00 00 [09:48:03]Write to MH i2c: E2 08 00 F5 07 80 11 00 00 00 00 00 00 76 [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:03]Read from MH i2c: E2 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 17 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 17 00 F5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 CD [09:48:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:48:03]wFMCommunicate OK [09:48:03]requested_item fd.num is exist - process it [09:48:03]SAM_PROTO_GetFieldsCounters [09:48:03]wFMCommunicate request_size=4 [09:48:03]MH_SAM_APDU [09:48:03]CAPDU: 80 13 00 00 [09:48:03]Write to MH i2c: E2 08 00 F6 07 80 13 00 00 00 00 00 00 79 [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:03]Read from MH i2c: E2 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 62 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 62 00 F6 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 70 10 01 00 0E 04 04 00 0E 02 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 94 [09:48: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 70 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:03]wFMCommunicate OK [09:48:03]SAM_PROTO_GetFieldsCounters done [09:48:03]requested_item shift.num is exist - process it [09:48:03]requested_item shift.opened is exist - process it [09:48:03]req_shift_opened [09:48:03]FM_GetShiftState [09:48:03]SAM_PROTO_GetShiftState [09:48:03]wFMCommunicate request_size=4 [09:48:03]MH_SAM_APDU [09:48:03]CAPDU: 80 13 01 00 [09:48:03]Write to MH i2c: E2 08 00 F7 07 80 13 01 00 00 00 00 00 7B [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:03]Read from MH i2c: E2 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 0E 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 0E 00 F7 07 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 0D [09:48:03]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:48:03]wFMCommunicate OK [09:48:03]SAM_PROTO_GetShiftState done [09:48:03]FM_GetShiftState done [09:48:03]req_shift_opened done [09:48:03]requested_item shift.open_date is exist - process it [09:48:03]req_shift_open_date [09:48:03]req_shift_open_date done [09:48:03]produce_requested_data done [09:48:03]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69744,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [09:48:03]process_action_free close_receipt [09:48:03]json_value_free [09:48:03]json_value_free done [09:48:03]process_json_proto returns [09:48:03]Send response to host [09:48:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69744,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [09:48:03]free response buf [09:48:03]execute_script done [09:48:03]execute_script returns [09:48:03]free content buf [09:48:03]Sock 7.Close socket [09:48:03]Sock 7.Thread stoped [09:48:06]OFD Sender: No OFD packet to send [09:48:11]OFD Sender: No OFD packet to send [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:17]accept exits with 9 [09:51:17]New connection [09:51:17]New thread 3066486116 created [09:51:17]Thread 3066629476 joined [09:51:17]Waiting for new connection... [09:51:17] Sock 9.Parse request [09:51:17]Sock 9.Check first char [09:51:17]Sock 9.First char is OK [09:51:17]request: POST /json_proto HTTP/1.0 [09:51:17]Method: POST [09:51:17]URL: /json_proto [09:51:17]Method is POST - this is cgi request [09:51:17]url: /json_proto [09:51:17]query_string will be loaded in cgi processing [09:51:17]execute_cgi json_proto POST (null) [09:51:17]execute_cgi path=json_proto method=POST [09:51:17]POST find Content-Length [09:51:17]Host: 172.17.52.196:8080 [09:51:17]Content-Length: 670 [09:51:17]Content-Type: application/json [09:51:17] [09:51:17]POST finish read [09:51:17]Found Content-Length = 670 [09:51:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127147", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 4.000, "sum" : 680.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 680.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:17]execute_script... [09:51:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127147", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 4.000, "sum" : 680.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 680.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:17]POST & json_proto [09:51:17]process_json_proto [09:51:17]json parsed OK: [09:51:17]protocol is kg_v1.0 [09:51:17]action value=close_receipt [09:51:17]process_action close_receipt [09:51:17]cmd_close_receipt [09:51:17]MH_GetDate [09:51:17]Write to MH i2c: F0 00 00 F8 07 EE [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: F0 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: F0 09 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: F0 09 00 F8 07 00 97 D2 14 67 60 05 E4 66 8A [09:51:17]GetLastDocTimeStamp 1729417680 [09:51:17]current date 1729417879 [09:51:17]FM_GetShiftState [09:51:17]SAM_PROTO_GetShiftState [09:51:17]wFMCommunicate request_size=4 [09:51:17]MH_SAM_APDU [09:51:17]CAPDU: 80 13 01 00 [09:51:17]Write to MH i2c: E2 08 00 F9 07 80 13 01 00 00 00 00 00 7D [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:17]Read from MH i2c: E2 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 0E 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 0E 00 F9 07 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 0F [09:51:17]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:51:17]wFMCommunicate OK [09:51:17]SAM_PROTO_GetShiftState done [09:51:17]FM_GetShiftState done [09:51:17]opened in 1729384380 [09:51:17]opened+sec_in_day 1729470780 [09:51:17]quantity*price = 68000 [09:51:17]sum+1 = 68001 [09:51:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 680.00 НСП 1% : 6.02 НДС 12% : 72.21 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 35 20.10.2024 09:51 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69745 ФПД: 163334020765561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095119&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69745&fm=163334020765561&tin=02508201610067®Number=0000000000091770&sum=68000 0 [09:51:19]StoreToDocumentArchive [09:51:19]shift 526 fd 69745 [09:51:19]save to /storage/0526/doc_00069745 [09:51:19]save last doc name /storage/0526/doc_00069745 to /storage/kkm_last_doc_name [09:51:19]save OK [09:51:19]Clear old archive folders... [09:51:19]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:51:19]tlvbuf is 00978610 [09:51:19]SAM_PROTO_ClearQueue [09:51:19]wFMCommunicate request_size=4 [09:51:19]MH_SAM_APDU [09:51:19]CAPDU: 80 09 00 00 [09:51:19]Write to MH i2c: E2 08 00 06 08 80 09 00 00 00 00 00 00 80 [09:51:19]Write i2c OK [09:51:19]MH_I2C_Read... [09:51:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:19]Read from MH i2c: E2 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 03 00 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 03 00 06 08 00 90 00 82 [09:51:19]RAPDU: 90 00 [09:51:19]wFMCommunicate OK [09:51:19]SAM_PROTO_ClearQueue done [09:51:19]KKMCreateOFDPacket [09:51:19]OFDProtocolAddRootSTLVToBuf [09:51:19]FM_MakeSignedData [09:51:19]FM_MakeSignedData [09:51:19]SAM_PROTO_SignData [09:51:19]wFMCommunicate request_size=4 [09:51:19]MH_SAM_APDU [09:51:19]CAPDU: 80 0D 01 02 [09:51:19]Write to MH i2c: E2 08 00 07 08 80 0D 01 02 00 00 00 00 88 [09:51:19]Write i2c OK [09:51:19]MH_I2C_Read... [09:51:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:19]Read from MH i2c: E2 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 03 00 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 03 00 07 08 00 90 00 83 [09:51:19]RAPDU: 90 00 [09:51:19]wFMCommunicate OK [09:51:19]wFMCommunicate request_size=255 [09:51:19]MH_SAM_APDU [09:51:19]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 A0 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 97 D2 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 [09:51:19]Write to MH i2c: E2 02 01 08 08 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 A0 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 97 D2 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 00 00 73 [09:51:19]Write i2c OK [09:51:19]MH_I2C_Read... [09:51:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:19]Read from MH i2c: E2 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 03 00 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 03 00 08 08 00 90 00 84 [09:51:19]RAPDU: 90 00 [09:51:19]wFMCommunicate OK [09:51:19]wFMCommunicate request_size=41 [09:51:19]MH_SAM_APDU [09:51:19]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 71 10 01 00 35 04 06 00 94 8D 2A 49 97 79 [09:51:19]Write to MH i2c: E2 2C 00 09 08 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 71 10 01 00 35 04 06 00 94 8D 2A 49 97 79 00 00 84 [09:51:19]Write i2c OK [09:51:19]MH_I2C_Read... [09:51:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:19]Read from MH i2c: E2 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 03 00 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 03 00 09 08 00 90 00 85 [09:51:19]RAPDU: 90 00 [09:51:19]wFMCommunicate OK [09:51:19]wFMCommunicate request_size=4 [09:51:19]MH_SAM_APDU [09:51:19]CAPDU: 80 0D 03 02 [09:51:19]Write to MH i2c: E2 08 00 0A 08 80 0D 03 02 00 00 00 00 8D [09:51:19]Write i2c OK [09:51:19]MH_I2C_Read... [09:51:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:19]Read from MH i2c: E2 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 0B 00 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 0B 00 0A 08 00 77 EB 18 F4 23 09 CE 28 90 00 1E [09:51:19]RAPDU: 77 EB 18 F4 23 09 CE 28 90 00 [09:51:19]wFMCommunicate OK [09:51:19]SAM_PROTO_SignData done [09:51:19]FM_MakeSignedData done [09:51:19]CreateOFDProtocolMessage [09:51:19]wFMCommunicate request_size=4 [09:51:19]MH_SAM_APDU [09:51:19]CAPDU: 80 11 00 00 [09:51:19]Write to MH i2c: E2 08 00 0B 08 80 11 00 00 00 00 00 00 8D [09:51:19]Write i2c OK [09:51:19]MH_I2C_Read... [09:51:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:19]Read from MH i2c: E2 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 17 00 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 17 00 0B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 E4 [09:51:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:51:19]wFMCommunicate OK [09:51:19]CreateOFDProtocolMessage done [09:51:19]OFDSenderStorePacket 69745 [09:51:19]StoreOFDPacket docnum=69745 [09:51:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2E 01 00 00 A9 8A 26 01 49 0D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 A0 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 97 D2 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 71 10 01 00 35 04 06 00 94 8D 2A 49 97 79 77 EB 18 F4 23 09 CE 28 [09:51:19]CheckFolder [09:51:19]dirname=/storage/ofd_packets [09:51:19]CheckFolder done [09:51:19]ProducePacketName [09:51:19]name=ofd_packets/00069745 [09:51:19]NVStorageSaveData ofd_packets/00069745 [09:51:19]File name is /storage/ofd_packets/00069745 [09:51:19]Write 332 bytes [09:51:19]NVStorageSaveData done [09:51:19]OFDSenderStorePacket done [09:51:19]KKMCreateOFDPacket done [09:51:19]NVStorageSaveData kkm_last_timestamp [09:51:19]File name is /storage/kkm_last_timestamp [09:51:19]Write 4 bytes [09:51:19]NVStorageSaveData done [09:51:19]ExternCall_PrintAddStr [09:51:19]wPrintStart [09:51:19]Write to MH i2c: 01 00 00 0C 08 14 [09:51:19]Write i2c OK [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: 01 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: 01 07 00 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: 01 07 00 0C 08 00 00 00 00 00 FF 0F 29 [09:51:19]RasterBufferAndPrint [09:51:19]line Счет N : (3)127147 [09:51:19]line ИНН: 02508201610067 [09:51:19]line Контрольно-Кассовый Чек [09:51:19]line ПРОДАЖА [09:51:19]line Товар: 4700000480357 [09:51:19]line Пиво шахтерское 1л ПЭТ [09:51:19]line 4.000 * 170.00 [09:51:19]line = 680.00 [09:51:19]line НДС 12% НСП 1% [09:51:19]line > о реализуемом товаре [09:51:19]line ИТОГО: 680.00 [09:51:19]line НСП 1% : 6.02 [09:51:19]line НДС 12% : 72.21 [09:51:19]line Наличными: 680.00 [09:51:19]line Безнал.: 0.00 [09:51:19]line Место: АЗС № 163 "Партнер Нефть" [09:51:19]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [09:51:19]line СНО: Общий режим [09:51:19]line Чек 35 20.10.2024 09:51 [09:51:19]line Смена: 526 ФФД: 1.0 [09:51:19]line ЗНМ: 0300000101 [09:51:19]line РНМ: 0000000000091770 [09:51:19]line Версия ККМ: 001 [09:51:19]line ФМ: 0000000000871749 [09:51:19]line ФД: 69745 [09:51:19]line ФПД: 163334020765561 [09:51:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095119&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69745&fm=163334020765561&tin=02508201610067®Number=0000000000091770&sum=68000 [09:51:19]line 0 [09:51:19]OFD Sender: Processing packet 69745 [packets to send 32, broken 31] [09:51:19]ProducePacketName [09:51:19]name=ofd_packets/00069745 [09:51:19]OFD Sender: To server: pG, [09:51:19]CommunicateWithHost lk.salyk.kg:30040 [09:51:19]ConnectInit lk.salyk.kg [09:51:19]written 0, free lines is 4095 [09:51:20]Connected sock=10 [09:51:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2E 01 00 00 A9 8A 26 01 49 0D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 A0 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 97 D2 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 71 10 01 00 35 04 06 00 94 8D 2A 49 97 79 77 EB 18 F4 23 09 CE 28 [09:51:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 28 1C 47 00 E4 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 71 10 01 00 F4 03 04 00 1A 78 14 67 B6 04 01 00 00 AD CC 1A E2 29 41 A0 56 [09:51:20]CommunicateWithHost err = 0 [09:51:20]CheckOFDResponse [09:51:20]1017 (14) - 77093643461234 [09:51:20]1041 (16) - 0000000000871749 [09:51:20]1040 (4) - 69745 [09:51:20]1012 (4) - 20.10.2024 03:25 [09:51:20]1206 (1) - 0 [09:51:20]OFD Sender: Remove packet 69745 [09:51:20]ProducePacketName [09:51:20]name=ofd_packets/00069745 [09:51:20]NVStorageDeleteData [09:51:20]Write to MH i2c: 01 00 00 34 08 3C [09:51:20]Write i2c OK [09:51:20]MH_I2C_Read... [09:51:20]Read from MH i2c: 01 [09:51:20]MH_I2C_Read... [09:51:20]Read from MH i2c: 01 07 00 [09:51:20]MH_I2C_Read... [09:51:20]Read from MH i2c: 01 07 00 34 08 00 00 00 00 00 06 0D 56 [09:51:20]RasterBufferAndPrint [09:51:20]line [09:51:20]line [09:51:20]line [09:51:20]line [09:51:20]line [09:51:20]written 0, free lines is 3341 [09:51:20]MH_Cut [09:51:20]Write to MH i2c: D1 01 00 3B 08 01 15 [09:51:20]Write i2c OK [09:51:20]MH_I2C_Read... [09:51:20]Read from MH i2c: D1 [09:51:20]MH_I2C_Read... [09:51:20]Read from MH i2c: D1 01 00 [09:51:20]MH_I2C_Read... [09:51:20]Read from MH i2c: D1 01 00 3B 08 00 14 [09:51:20]Write to MH i2c: 01 00 00 3C 08 44 [09:51:20]Write i2c OK [09:51:20]MH_I2C_Read... [09:51:20]OFD Sender: No OFD packet to send [09:51:21]*** Cut start [09:51:21]*** Partial cut [09:51:21]*** CUTSNS_PIN = 1 [09:51:21]*** CUTSNS_PIN = 0 [09:51:21]*** Brake cut motor [09:51:21]Read from MH i2c: 01 [09:51:21]MH_I2C_Read... [09:51:21]*** Stop cut motor [09:51:21]*** Cut end [09:51:21]Read from MH i2c: 01 07 00 [09:51:21]MH_I2C_Read... [09:51:21]Read from MH i2c: 01 07 00 3C 08 00 00 00 00 00 FF 0F 59 [09:51:21]process_action close_receipt done [09:51:21]requested_data is exist [09:51:21]produce_requested_data [09:51:21]requested_item fm.sn is exist - process it [09:51:21]wFMCommunicate request_size=4 [09:51:21]MH_SAM_APDU [09:51:21]CAPDU: 80 11 00 00 [09:51:21]Write to MH i2c: E2 08 00 3D 08 80 11 00 00 00 00 00 00 BF [09:51:21]Write i2c OK [09:51:21]MH_I2C_Read... [09:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:21]Read from MH i2c: E2 [09:51:21]MH_I2C_Read... [09:51:21]Read from MH i2c: E2 17 00 [09:51:21]MH_I2C_Read... [09:51:21]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 31 37 34 39 90 00 16 [09:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:51:21]wFMCommunicate OK [09:51:21]requested_item fd.num is exist - process it [09:51:21]SAM_PROTO_GetFieldsCounters [09:51:21]wFMCommunicate request_size=4 [09:51:21]MH_SAM_APDU [09:51:21]CAPDU: 80 13 00 00 [09:51:21]Write to MH i2c: E2 08 00 3E 08 80 13 00 00 00 00 00 00 C2 [09:51:21]Write i2c OK [09:51:21]MH_I2C_Read... [09:51:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:22]Read from MH i2c: E2 [09:51:22]MH_I2C_Read... [09:51:22]Read from MH i2c: E2 62 00 [09:51:22]MH_I2C_Read... [09:51:22]Read from MH i2c: E2 62 00 3E 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 71 10 01 00 0E 04 04 00 0E 02 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 E1 [09:51:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 71 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:22]wFMCommunicate OK [09:51:22]SAM_PROTO_GetFieldsCounters done [09:51:22]requested_item shift.num is exist - process it [09:51:22]requested_item shift.opened is exist - process it [09:51:22]req_shift_opened [09:51:22]FM_GetShiftState [09:51:22]SAM_PROTO_GetShiftState [09:51:22]wFMCommunicate request_size=4 [09:51:22]MH_SAM_APDU [09:51:22]CAPDU: 80 13 01 00 [09:51:22]Write to MH i2c: E2 08 00 3F 08 80 13 01 00 00 00 00 00 C4 [09:51:22]Write i2c OK [09:51:22]MH_I2C_Read... [09:51:22]Read from MH i2c: E2 [09:51:22]MH_I2C_Read... [09:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:22]Read from MH i2c: E2 0E 00 [09:51:22]MH_I2C_Read... [09:51:22]Read from MH i2c: E2 0E 00 3F 08 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 56 [09:51:22]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:51:22]wFMCommunicate OK [09:51:22]SAM_PROTO_GetShiftState done [09:51:22]FM_GetShiftState done [09:51:22]req_shift_opened done [09:51:22]requested_item shift.open_date is exist - process it [09:51:22]req_shift_open_date [09:51:22]req_shift_open_date done [09:51:22]produce_requested_data done [09:51:22]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69745,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [09:51:22]process_action_free close_receipt [09:51:22]json_value_free [09:51:22]json_value_free done [09:51:22]process_json_proto returns [09:51:22]Send response to host [09:51:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69745,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [09:51:22]free response buf [09:51:22]execute_script done [09:51:22]execute_script returns [09:51:22]free content buf [09:51:22]Sock 9.Close socket [09:51:22]Sock 9.Thread stoped [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:18]accept exits with 7 [09:53:18]New connection [09:53:18]New thread 3066629476 created [09:53:18]Thread 3066486116 joined [09:53:18]Waiting for new connection... [09:53:18] Sock 7.Parse request [09:53:18]Sock 7.Check first char [09:53:18]Sock 7.First char is OK [09:53:18]request: POST /json_proto HTTP/1.0 [09:53:18]Method: POST [09:53:18]URL: /json_proto [09:53:18]Method is POST - this is cgi request [09:53:18]url: /json_proto [09:53:18]query_string will be loaded in cgi processing [09:53:18]execute_cgi json_proto POST (null) [09:53:18]execute_cgi path=json_proto method=POST [09:53:18]POST find Content-Length [09:53:18]Host: 172.17.52.196:8080 [09:53:18]Content-Length: 622 [09:53:18]Content-Type: application/json [09:53:18] [09:53:18]POST finish read [09:53:18]Found Content-Length = 622 [09:53:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127148", "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" ] } } [09:53:18]execute_script... [09:53: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)127148", "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" ] } } [09:53:18]POST & json_proto [09:53:18]process_json_proto [09:53:18]json parsed OK: [09:53:18]protocol is kg_v1.0 [09:53:18]action value=close_receipt [09:53:18]process_action close_receipt [09:53:18]cmd_close_receipt [09:53:18]MH_GetDate [09:53:18]Write to MH i2c: F0 00 00 40 08 37 [09:53:18]Write i2c OK [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: F0 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: F0 09 00 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: F0 09 00 40 08 00 0F D3 14 67 60 05 E4 66 4C [09:53:18]GetLastDocTimeStamp 1729417879 [09:53:18]current date 1729417999 [09:53:18]FM_GetShiftState [09:53:18]SAM_PROTO_GetShiftState [09:53:18]wFMCommunicate request_size=4 [09:53:18]MH_SAM_APDU [09:53:18]CAPDU: 80 13 01 00 [09:53:18]Write to MH i2c: E2 08 00 41 08 80 13 01 00 00 00 00 00 C6 [09:53:18]Write i2c OK [09:53:18]MH_I2C_Read... [09:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:18]Read from MH i2c: E2 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: E2 0E 00 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: E2 0E 00 41 08 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 58 [09:53:18]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:53:18]wFMCommunicate OK [09:53:18]SAM_PROTO_GetShiftState done [09:53:18]FM_GetShiftState done [09:53:18]opened in 1729384380 [09:53:18]opened+sec_in_day 1729470780 [09:53:18]quantity*price = 15000 [09:53:18]sum+1 = 15001 [09:53:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 36 20.10.2024 09:53 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69746 ФПД: 183019171031022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095319&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69746&fm=183019171031022&tin=02508201610067®Number=0000000000091770&sum=15000 0 [09:53:19]StoreToDocumentArchive [09:53:19]shift 526 fd 69746 [09:53:19]save to /storage/0526/doc_00069746 [09:53:19]save last doc name /storage/0526/doc_00069746 to /storage/kkm_last_doc_name [09:53:19]save OK [09:53:19]Clear old archive folders... [09:53:19]ProcessDocumentItem done err = 0, tmpTLVsize=274 [09:53:19]tlvbuf is 00979AC0 [09:53:19]SAM_PROTO_ClearQueue [09:53:19]wFMCommunicate request_size=4 [09:53:19]MH_SAM_APDU [09:53:19]CAPDU: 80 09 00 00 [09:53:19]Write to MH i2c: E2 08 00 4E 08 80 09 00 00 00 00 00 00 C8 [09:53:19]Write i2c OK [09:53:19]MH_I2C_Read... [09:53:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:19]Read from MH i2c: E2 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 03 00 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 03 00 4E 08 00 90 00 CA [09:53:19]RAPDU: 90 00 [09:53:19]wFMCommunicate OK [09:53:19]SAM_PROTO_ClearQueue done [09:53:19]KKMCreateOFDPacket [09:53:19]OFDProtocolAddRootSTLVToBuf [09:53:19]FM_MakeSignedData [09:53:19]FM_MakeSignedData [09:53:19]SAM_PROTO_SignData [09:53:19]wFMCommunicate request_size=4 [09:53:19]MH_SAM_APDU [09:53:19]CAPDU: 80 0D 01 02 [09:53:19]Write to MH i2c: E2 08 00 4F 08 80 0D 01 02 00 00 00 00 D0 [09:53:19]Write i2c OK [09:53:19]MH_I2C_Read... [09:53:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:19]Read from MH i2c: E2 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 03 00 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 03 00 4F 08 00 90 00 CB [09:53:19]RAPDU: 90 00 [09:53:19]wFMCommunicate OK [09:53:19]wFMCommunicate request_size=255 [09:53:19]MH_SAM_APDU [09:53:19]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 24 00 00 00 F4 03 04 00 0F D3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 [09:53:19]Write to MH i2c: E2 02 01 50 08 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 24 00 00 00 F4 03 04 00 0F D3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 00 00 FD [09:53:19]Write i2c OK [09:53:19]MH_I2C_Read... [09:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:19]Read from MH i2c: E2 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 03 00 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 03 00 50 08 00 90 00 CC [09:53:19]RAPDU: 90 00 [09:53:19]wFMCommunicate OK [09:53:19]wFMCommunicate request_size=33 [09:53:19]MH_SAM_APDU [09:53:19]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 37 34 39 10 04 04 00 72 10 01 00 35 04 06 00 A6 74 78 AD 27 EE [09:53:19]Write to MH i2c: E2 24 00 51 08 80 0D 02 02 1C 00 30 30 30 30 38 37 31 37 34 39 10 04 04 00 72 10 01 00 35 04 06 00 A6 74 78 AD 27 EE 00 00 3D [09:53:19]Write i2c OK [09:53:19]MH_I2C_Read... [09:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:19]Read from MH i2c: E2 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 03 00 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 03 00 51 08 00 90 00 CD [09:53:19]RAPDU: 90 00 [09:53:19]wFMCommunicate OK [09:53:19]wFMCommunicate request_size=4 [09:53:19]MH_SAM_APDU [09:53:19]CAPDU: 80 0D 03 02 [09:53:19]Write to MH i2c: E2 08 00 52 08 80 0D 03 02 00 00 00 00 D5 [09:53:19]Write i2c OK [09:53:19]MH_I2C_Read... [09:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:19]Read from MH i2c: E2 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 0B 00 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 0B 00 52 08 00 EC 4A 5E 83 24 C3 CA ED 90 00 8B [09:53:19]RAPDU: EC 4A 5E 83 24 C3 CA ED 90 00 [09:53:19]wFMCommunicate OK [09:53:19]SAM_PROTO_SignData done [09:53:19]FM_MakeSignedData done [09:53:19]CreateOFDProtocolMessage [09:53:19]wFMCommunicate request_size=4 [09:53:19]MH_SAM_APDU [09:53:19]CAPDU: 80 11 00 00 [09:53:19]Write to MH i2c: E2 08 00 53 08 80 11 00 00 00 00 00 00 D5 [09:53:19]Write i2c OK [09:53:19]MH_I2C_Read... [09:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:19]Read from MH i2c: E2 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 17 00 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 17 00 53 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 2C [09:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:53:19]wFMCommunicate OK [09:53:19]CreateOFDProtocolMessage done [09:53:19]OFDSenderStorePacket 69746 [09:53:19]StoreOFDPacket docnum=69746 [09:53:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 65 D8 1E 01 51 CC 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 24 00 00 00 F4 03 04 00 0F D3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 72 10 01 00 35 04 06 00 A6 74 78 AD 27 EE EC 4A 5E 83 24 C3 CA ED [09:53:19]CheckFolder [09:53:19]dirname=/storage/ofd_packets [09:53:19]CheckFolder done [09:53:19]ProducePacketName [09:53:19]name=ofd_packets/00069746 [09:53:19]NVStorageSaveData ofd_packets/00069746 [09:53:19]File name is /storage/ofd_packets/00069746 [09:53:19]Write 324 bytes [09:53:19]NVStorageSaveData done [09:53:19]OFDSenderStorePacket done [09:53:19]KKMCreateOFDPacket done [09:53:19]NVStorageSaveData kkm_last_timestamp [09:53:19]File name is /storage/kkm_last_timestamp [09:53:19]Write 4 bytes [09:53:19]NVStorageSaveData done [09:53:19]ExternCall_PrintAddStr [09:53:19]wPrintStart [09:53:19]Write to MH i2c: 01 00 00 54 08 5C [09:53:19]Write i2c OK [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: 01 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: 01 07 00 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: 01 07 00 54 08 00 00 00 00 00 FF 0F 71 [09:53:19]RasterBufferAndPrint [09:53:19]line Счет N : (3)127148 [09:53:19]line ИНН: 02508201610067 [09:53:19]line Контрольно-Кассовый Чек [09:53:19]line ПРОДАЖА [09:53:19]line Товар: 4640030091645 [09:53:19]line Сигареты ESSE Exchange M [09:53:19]line 1.000 * 150.00 [09:53:19]line = 150.00 [09:53:19]line НДС 12% НСП 1% [09:53:19]line > о реализуемом товаре [09:53:19]line ИТОГО: 150.00 [09:53:19]line НСП 1% : 1.33 [09:53:19]line НДС 12% : 15.93 [09:53:19]line Наличными: 150.00 [09:53:19]line Безнал.: 0.00 [09:53:19]line Место: АЗС № 163 "Партнер Нефть" [09:53:19]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [09:53:19]line СНО: Общий режим [09:53:19]line Чек 36 20.10.2024 09:53 [09:53:19]line Смена: 526 ФФД: 1.0 [09:53:19]line ЗНМ: 0300000101 [09:53:19]line РНМ: 0000000000091770 [09:53:19]line Версия ККМ: 001 [09:53:19]line ФМ: 0000000000871749 [09:53:19]line ФД: 69746 [09:53:19]line ФПД: 183019171031022 [09:53:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095319&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69746&fm=183019171031022&tin=02508201610067®Number=0000000000091770&sum=15000 [09:53:20]line 0 [09:53:20]OFD Sender: Processing packet 69746 [packets to send 32, broken 31] [09:53:20]ProducePacketName [09:53:20]name=ofd_packets/00069746 [09:53:20]OFD Sender: To server: pG, [09:53:20]CommunicateWithHost lk.salyk.kg:30040 [09:53:20]ConnectInit lk.salyk.kg [09:53:20]written 0, free lines is 4095 [09:53:20]Connected sock=10 [09:53:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 65 D8 1E 01 51 CC 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 24 00 00 00 F4 03 04 00 0F D3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 72 10 01 00 35 04 06 00 A6 74 78 AD 27 EE EC 4A 5E 83 24 C3 CA ED [09:53:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 11 83 47 00 6A 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 72 10 01 00 F4 03 04 00 92 78 14 67 B6 04 01 00 00 EE 7A A6 FA D0 A2 C7 30 [09:53:20]CommunicateWithHost err = 0 [09:53:20]CheckOFDResponse [09:53:20]1017 (14) - 77093643461234 [09:53:20]1041 (16) - 0000000000871749 [09:53:20]1040 (4) - 69746 [09:53:20]1012 (4) - 20.10.2024 03:27 [09:53:20]1206 (1) - 0 [09:53:20]OFD Sender: Remove packet 69746 [09:53:20]ProducePacketName [09:53:20]name=ofd_packets/00069746 [09:53:20]NVStorageDeleteData [09:53:20]Write to MH i2c: 01 00 00 7C 08 84 [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: 01 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: 01 07 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: 01 07 00 7C 08 00 00 00 00 00 02 0D 9A [09:53:20]RasterBufferAndPrint [09:53:20]line [09:53:20]line [09:53:20]line [09:53:20]line [09:53:20]line [09:53:20]written 0, free lines is 3337 [09:53:20]MH_Cut [09:53:20]Write to MH i2c: D1 01 00 83 08 01 5D [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: D1 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: D1 01 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: D1 01 00 83 08 00 5C [09:53:20]Write to MH i2c: 01 00 00 84 08 8C [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]OFD Sender: No OFD packet to send [09:53:21]*** Cut start [09:53:21]*** Partial cut [09:53:21]*** CUTSNS_PIN = 1 [09:53:21]*** CUTSNS_PIN = 0 [09:53:21]*** Brake cut motor [09:53:21]Read from MH i2c: 01 [09:53:21]MH_I2C_Read... [09:53:22]*** Stop cut motor [09:53:22]*** Cut end [09:53:22]Read from MH i2c: 01 07 00 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: 01 07 00 84 08 00 00 00 00 00 FF 0F A1 [09:53:22]process_action close_receipt done [09:53:22]requested_data is exist [09:53:22]produce_requested_data [09:53:22]requested_item fm.sn is exist - process it [09:53:22]wFMCommunicate request_size=4 [09:53:22]MH_SAM_APDU [09:53:22]CAPDU: 80 11 00 00 [09:53:22]Write to MH i2c: E2 08 00 85 08 80 11 00 00 00 00 00 00 07 [09:53:22]Write i2c OK [09:53:22]MH_I2C_Read... [09:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:22]Read from MH i2c: E2 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: E2 17 00 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: E2 17 00 85 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 5E [09:53:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:53:22]wFMCommunicate OK [09:53:22]requested_item fd.num is exist - process it [09:53:22]SAM_PROTO_GetFieldsCounters [09:53:22]wFMCommunicate request_size=4 [09:53:22]MH_SAM_APDU [09:53:22]CAPDU: 80 13 00 00 [09:53:22]Write to MH i2c: E2 08 00 86 08 80 13 00 00 00 00 00 00 0A [09:53:22]Write i2c OK [09:53:22]MH_I2C_Read... [09:53:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:22]Read from MH i2c: E2 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: E2 62 00 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: E2 62 00 86 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 72 10 01 00 0E 04 04 00 0E 02 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 2D [09:53: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 72 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:22]wFMCommunicate OK [09:53:22]SAM_PROTO_GetFieldsCounters done [09:53:22]requested_item shift.num is exist - process it [09:53:22]requested_item shift.opened is exist - process it [09:53:22]req_shift_opened [09:53:22]FM_GetShiftState [09:53:22]SAM_PROTO_GetShiftState [09:53:22]wFMCommunicate request_size=4 [09:53:22]MH_SAM_APDU [09:53:22]CAPDU: 80 13 01 00 [09:53:22]Write to MH i2c: E2 08 00 87 08 80 13 01 00 00 00 00 00 0C [09:53:22]Write i2c OK [09:53:22]MH_I2C_Read... [09:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:22]Read from MH i2c: E2 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: E2 0E 00 [09:53:22]MH_I2C_Read... [09:53:22]Read from MH i2c: E2 0E 00 87 08 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 9E [09:53:22]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:53:22]wFMCommunicate OK [09:53:22]SAM_PROTO_GetShiftState done [09:53:22]FM_GetShiftState done [09:53:22]req_shift_opened done [09:53:22]requested_item shift.open_date is exist - process it [09:53:22]req_shift_open_date [09:53:22]req_shift_open_date done [09:53:22]produce_requested_data done [09:53:22]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69746,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [09:53:22]process_action_free close_receipt [09:53:22]json_value_free [09:53:22]json_value_free done [09:53:22]process_json_proto returns [09:53:22]Send response to host [09:53:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69746,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [09:53:22]free response buf [09:53:22]execute_script done [09:53:22]execute_script returns [09:53:22]free content buf [09:53:22]Sock 7.Close socket [09:53:22]Sock 7.Thread stoped [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:48]accept exits with 9 [09:53:48]New connection [09:53:48]New thread 3066486116 created [09:53:48]Thread 3066629476 joined [09:53:48]Waiting for new connection... [09:53:48] Sock 9.Parse request [09:53:48]Sock 9.Check first char [09:53:48]Sock 9.First char is OK [09:53:48]request: POST /json_proto HTTP/1.0 [09:53:48]Method: POST [09:53:48]URL: /json_proto [09:53:48]Method is POST - this is cgi request [09:53:48]url: /json_proto [09:53:48]query_string will be loaded in cgi processing [09:53:48]execute_cgi json_proto POST (null) [09:53:48]execute_cgi path=json_proto method=POST [09:53:48]POST find Content-Length [09:53:48]Host: 172.17.52.196:8080 [09:53:48]Content-Length: 753 [09:53:48]Content-Type: application/json [09:53:48] [09:53:48]POST finish read [09:53:48]Found Content-Length = 753 [09:53:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127149", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:48]execute_script... [09:53: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)127149", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:48]POST & json_proto [09:53:48]process_json_proto [09:53:48]json parsed OK: [09:53:48]protocol is kg_v1.0 [09:53:48]action value=close_receipt [09:53:48]process_action close_receipt [09:53:48]cmd_close_receipt [09:53:48]MH_GetDate [09:53:48]Write to MH i2c: F0 00 00 88 08 7F [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: F0 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: F0 09 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: F0 09 00 88 08 00 2D D3 14 67 60 05 E4 66 B2 [09:53:48]GetLastDocTimeStamp 1729417999 [09:53:48]current date 1729418029 [09:53:48]FM_GetShiftState [09:53:48]SAM_PROTO_GetShiftState [09:53:48]wFMCommunicate request_size=4 [09:53:48]MH_SAM_APDU [09:53:48]CAPDU: 80 13 01 00 [09:53:48]Write to MH i2c: E2 08 00 89 08 80 13 01 00 00 00 00 00 0E [09:53:48]Write i2c OK [09:53:48]MH_I2C_Read... [09:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:48]Read from MH i2c: E2 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 0E 00 [09:53:48]MH_I2C_Read... [09:53:48]Read from MH i2c: E2 0E 00 89 08 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 A0 [09:53:48]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:53:48]wFMCommunicate OK [09:53:48]SAM_PROTO_GetShiftState done [09:53:48]FM_GetShiftState done [09:53:48]opened in 1729384380 [09:53:48]opened+sec_in_day 1729470780 [09:53:48]quantity*price = 15000 [09:53:48]sum+1 = 15001 [09:53:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 37 20.10.2024 09:53 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69747 ФПД: 209854087780469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095349&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69747&fm=209854087780469&tin=02508201610067®Number=0000000000091770&sum=15000 0 [09:53:49]StoreToDocumentArchive [09:53:49]shift 526 fd 69747 [09:53:49]save to /storage/0526/doc_00069747 [09:53:49]save last doc name /storage/0526/doc_00069747 to /storage/kkm_last_doc_name [09:53:49]save OK [09:53:49]Clear old archive folders... [09:53:49]ProcessDocumentItem done err = 0, tmpTLVsize=278 [09:53:49]tlvbuf is 00978660 [09:53:49]SAM_PROTO_ClearQueue [09:53:49]wFMCommunicate request_size=4 [09:53:49]MH_SAM_APDU [09:53:49]CAPDU: 80 09 00 00 [09:53:49]Write to MH i2c: E2 08 00 96 08 80 09 00 00 00 00 00 00 10 [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:49]Read from MH i2c: E2 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 03 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 03 00 96 08 00 90 00 12 [09:53:49]RAPDU: 90 00 [09:53:49]wFMCommunicate OK [09:53:49]SAM_PROTO_ClearQueue done [09:53:49]KKMCreateOFDPacket [09:53:49]OFDProtocolAddRootSTLVToBuf [09:53:49]FM_MakeSignedData [09:53:49]FM_MakeSignedData [09:53:49]SAM_PROTO_SignData [09:53:49]wFMCommunicate request_size=4 [09:53:49]MH_SAM_APDU [09:53:49]CAPDU: 80 0D 01 02 [09:53:49]Write to MH i2c: E2 08 00 97 08 80 0D 01 02 00 00 00 00 18 [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:49]Read from MH i2c: E2 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 03 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 03 00 97 08 00 90 00 13 [09:53:49]RAPDU: 90 00 [09:53:49]wFMCommunicate OK [09:53:49]wFMCommunicate request_size=255 [09:53:49]MH_SAM_APDU [09:53:49]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2D D3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 [09:53:49]Write to MH i2c: E2 02 01 98 08 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2D D3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 00 00 EC [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:49]Read from MH i2c: E2 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 03 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 03 00 98 08 00 90 00 14 [09:53:49]RAPDU: 90 00 [09:53:49]wFMCommunicate OK [09:53:49]wFMCommunicate request_size=37 [09:53:49]MH_SAM_APDU [09:53:49]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 73 10 01 00 35 04 06 00 BE DC 76 5B 58 75 [09:53:49]Write to MH i2c: E2 28 00 99 08 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 73 10 01 00 35 04 06 00 BE DC 76 5B 58 75 00 00 32 [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:49]Read from MH i2c: E2 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 03 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 03 00 99 08 00 90 00 15 [09:53:49]RAPDU: 90 00 [09:53:49]wFMCommunicate OK [09:53:49]wFMCommunicate request_size=4 [09:53:49]MH_SAM_APDU [09:53:49]CAPDU: 80 0D 03 02 [09:53:49]Write to MH i2c: E2 08 00 9A 08 80 0D 03 02 00 00 00 00 1D [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:49]Read from MH i2c: E2 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 0B 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 0B 00 9A 08 00 77 02 E5 E1 E5 82 D8 60 90 00 FC [09:53:49]RAPDU: 77 02 E5 E1 E5 82 D8 60 90 00 [09:53:49]wFMCommunicate OK [09:53:49]SAM_PROTO_SignData done [09:53:49]FM_MakeSignedData done [09:53:49]CreateOFDProtocolMessage [09:53:49]wFMCommunicate request_size=4 [09:53:49]MH_SAM_APDU [09:53:49]CAPDU: 80 11 00 00 [09:53:49]Write to MH i2c: E2 08 00 9B 08 80 11 00 00 00 00 00 00 1D [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:49]Read from MH i2c: E2 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 17 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: E2 17 00 9B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 74 [09:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:53:49]wFMCommunicate OK [09:53:49]CreateOFDProtocolMessage done [09:53:49]OFDSenderStorePacket 69747 [09:53:49]StoreOFDPacket docnum=69747 [09:53:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2A 01 00 00 02 6B 22 01 81 4B 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2D D3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 73 10 01 00 35 04 06 00 BE DC 76 5B 58 75 77 02 E5 E1 E5 82 D8 60 [09:53:49]CheckFolder [09:53:49]dirname=/storage/ofd_packets [09:53:49]CheckFolder done [09:53:49]ProducePacketName [09:53:49]name=ofd_packets/00069747 [09:53:49]NVStorageSaveData ofd_packets/00069747 [09:53:49]File name is /storage/ofd_packets/00069747 [09:53:49]Write 328 bytes [09:53:49]NVStorageSaveData done [09:53:49]OFDSenderStorePacket done [09:53:49]KKMCreateOFDPacket done [09:53:49]NVStorageSaveData kkm_last_timestamp [09:53:49]File name is /storage/kkm_last_timestamp [09:53:49]Write 4 bytes [09:53:49]NVStorageSaveData done [09:53:49]ExternCall_PrintAddStr [09:53:49]wPrintStart [09:53:49]Write to MH i2c: 01 00 00 9C 08 A4 [09:53:49]Write i2c OK [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: 01 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: 01 07 00 [09:53:49]MH_I2C_Read... [09:53:49]Read from MH i2c: 01 07 00 9C 08 00 00 00 00 00 FF 0F B9 [09:53:49]RasterBufferAndPrint [09:53:49]line Счет N : (3)127149 [09:53:49]line ИНН: 02508201610067 [09:53:49]line Контрольно-Кассовый Чек [09:53:49]line ПРОДАЖА [09:53:49]line Товар: 4640030092499 [09:53:49]line Сигареты ESSE SENSE Himalaya [09:53:49]line 1.000 * 150.00 [09:53:49]line = 150.00 [09:53:49]line НДС 12% НСП 1% [09:53:49]line > о реализуемом товаре [09:53:49]line ИТОГО: 150.00 [09:53:49]line НСП 1% : 1.33 [09:53:49]line НДС 12% : 15.93 [09:53:49]line Наличными: 0.00 [09:53:49]line Безнал.: 150.00 [09:53:49]line Место: АЗС № 163 "Партнер Нефть" [09:53:49]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [09:53:49]line СНО: Общий режим [09:53:49]line Чек 37 20.10.2024 09:53 [09:53:49]line Смена: 526 ФФД: 1.0 [09:53:49]line ЗНМ: 0300000101 [09:53:49]line РНМ: 0000000000091770 [09:53:49]line Версия ККМ: 001 [09:53:49]line Платежная система: Mbank [09:53:49]line ФМ: 0000000000871749 [09:53:49]line ФД: 69747 [09:53:49]line ФПД: 209854087780469 [09:53:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095349&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69747&fm=209854087780469&tin=02508201610067®Number=0000000000091770&sum=15000 [09:53:50]OFD Sender: Processing packet 69747 [packets to send 32, broken 31] [09:53:50]ProducePacketName [09:53:50]name=ofd_packets/00069747 [09:53:50]OFD Sender: To server: pG, [09:53:50]CommunicateWithHost lk.salyk.kg:30040 [09:53:50]ConnectInit lk.salyk.kg [09:53:50]line 0 [09:53:50]written 0, free lines is 4095 [09:53:50]Connected sock=7 [09:53:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2A 01 00 00 02 6B 22 01 81 4B 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2D D3 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 73 10 01 00 35 04 06 00 BE DC 76 5B 58 75 77 02 E5 E1 E5 82 D8 60 [09:53:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 DC 69 47 00 8D 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 73 10 01 00 F4 03 04 00 B0 78 14 67 B6 04 01 00 00 4D 99 6B 71 4A 30 77 E9 [09:53:50]CommunicateWithHost err = 0 [09:53:50]CheckOFDResponse [09:53:50]1017 (14) - 77093643461234 [09:53:50]1041 (16) - 0000000000871749 [09:53:50]1040 (4) - 69747 [09:53:50]1012 (4) - 20.10.2024 03:27 [09:53:50]1206 (1) - 0 [09:53:50]OFD Sender: Remove packet 69747 [09:53:50]ProducePacketName [09:53:50]name=ofd_packets/00069747 [09:53:50]NVStorageDeleteData [09:53:50]Write to MH i2c: 01 00 00 C6 08 CE [09:53:50]Write i2c OK [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: 01 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: 01 07 00 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: 01 07 00 C6 08 00 00 00 00 00 DF 0C C0 [09:53:50]RasterBufferAndPrint [09:53:50]line [09:53:50]line [09:53:50]line [09:53:50]line [09:53:50]line [09:53:50]written 0, free lines is 3304 [09:53:50]MH_Cut [09:53:50]Write to MH i2c: D1 01 00 CD 08 01 A7 [09:53:50]Write i2c OK [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: D1 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: D1 01 00 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: D1 01 00 CD 08 00 A6 [09:53:50]Write to MH i2c: 01 00 00 CE 08 D6 [09:53:50]Write i2c OK [09:53:50]MH_I2C_Read... [09:53:50]OFD Sender: No OFD packet to send [09:53:51]*** Cut start [09:53:51]*** Partial cut [09:53:51]*** CUTSNS_PIN = 1 [09:53:51]*** CUTSNS_PIN = 0 [09:53:51]*** Brake cut motor [09:53:52]Read from MH i2c: 01 [09:53:52]MH_I2C_Read... [09:53:52]*** Stop cut motor [09:53:52]*** Cut end [09:53:52]Read from MH i2c: 01 07 00 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: 01 07 00 CE 08 00 00 00 00 00 FF 0F EB [09:53:52]process_action close_receipt done [09:53:52]requested_data is exist [09:53:52]produce_requested_data [09:53:52]requested_item fm.sn is exist - process it [09:53:52]wFMCommunicate request_size=4 [09:53:52]MH_SAM_APDU [09:53:52]CAPDU: 80 11 00 00 [09:53:52]Write to MH i2c: E2 08 00 CF 08 80 11 00 00 00 00 00 00 51 [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:52]Read from MH i2c: E2 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 17 00 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 17 00 CF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 A8 [09:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:53:52]wFMCommunicate OK [09:53:52]requested_item fd.num is exist - process it [09:53:52]SAM_PROTO_GetFieldsCounters [09:53:52]wFMCommunicate request_size=4 [09:53:52]MH_SAM_APDU [09:53:52]CAPDU: 80 13 00 00 [09:53:52]Write to MH i2c: E2 08 00 D0 08 80 13 00 00 00 00 00 00 54 [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:52]Read from MH i2c: E2 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 62 00 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 62 00 D0 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 73 10 01 00 0E 04 04 00 0E 02 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 7B [09:53: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 73 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:52]wFMCommunicate OK [09:53:52]SAM_PROTO_GetFieldsCounters done [09:53:52]requested_item shift.num is exist - process it [09:53:52]requested_item shift.opened is exist - process it [09:53:52]req_shift_opened [09:53:52]FM_GetShiftState [09:53:52]SAM_PROTO_GetShiftState [09:53:52]wFMCommunicate request_size=4 [09:53:52]MH_SAM_APDU [09:53:52]CAPDU: 80 13 01 00 [09:53:52]Write to MH i2c: E2 08 00 D1 08 80 13 01 00 00 00 00 00 56 [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:52]Read from MH i2c: E2 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 0E 00 [09:53:52]MH_I2C_Read... [09:53:52]Read from MH i2c: E2 0E 00 D1 08 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 E8 [09:53:52]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:53:52]wFMCommunicate OK [09:53:52]SAM_PROTO_GetShiftState done [09:53:52]FM_GetShiftState done [09:53:52]req_shift_opened done [09:53:52]requested_item shift.open_date is exist - process it [09:53:52]req_shift_open_date [09:53:52]req_shift_open_date done [09:53:52]produce_requested_data done [09:53:52]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69747,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [09:53:52]process_action_free close_receipt [09:53:52]json_value_free [09:53:52]json_value_free done [09:53:52]process_json_proto returns [09:53:52]Send response to host [09:53:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69747,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [09:53:52]free response buf [09:53:52]execute_script done [09:53:52]execute_script returns [09:53:52]free content buf [09:53:52]Sock 9.Close socket [09:53:52]Sock 9.Thread stoped [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09: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:58:56]accept exits with 10 [09:58:56]New connection [09:58:56]New thread 3066629476 created [09:58:56]Thread 3066486116 joined [09:58:56]Waiting for new connection... [09:58:56] Sock 10.Parse request [09:58:56]Sock 10.Check first char [09:58:56]Sock 10.First char is OK [09:58:56]request: POST /json_proto HTTP/1.0 [09:58:56]Method: POST [09:58:56]URL: /json_proto [09:58:56]Method is POST - this is cgi request [09:58:56]url: /json_proto [09:58:56]query_string will be loaded in cgi processing [09:58:56]execute_cgi json_proto POST (null) [09:58:56]execute_cgi path=json_proto method=POST [09:58:56]POST find Content-Length [09:58:56]Host: 172.17.52.196:8080 [09:58:56]Content-Length: 660 [09:58:56]Content-Type: application/json [09:58:56] [09:58:56]POST finish read [09:58:56]Found Content-Length = 660 [09:58:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127150", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "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" ] } } [09:58:56]execute_script... [09:58:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127150", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "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" ] } } [09:58:56]POST & json_proto [09:58:56]process_json_proto [09:58:56]json parsed OK: [09:58:56]protocol is kg_v1.0 [09:58:56]action value=close_receipt [09:58:56]process_action close_receipt [09:58:56]cmd_close_receipt [09:58:56]MH_GetDate [09:58:56]Write to MH i2c: F0 00 00 D2 08 C9 [09:58:56]Write i2c OK [09:58:56]MH_I2C_Read... [09:58:56]Read from MH i2c: F0 [09:58:56]MH_I2C_Read... [09:58:56]Read from MH i2c: F0 09 00 [09:58:56]MH_I2C_Read... [09:58:56]Read from MH i2c: F0 09 00 D2 08 00 62 D4 14 67 60 05 E4 66 32 [09:58:56]GetLastDocTimeStamp 1729418029 [09:58:56]current date 1729418338 [09:58:56]FM_GetShiftState [09:58:56]SAM_PROTO_GetShiftState [09:58:56]wFMCommunicate request_size=4 [09:58:56]MH_SAM_APDU [09:58:56]CAPDU: 80 13 01 00 [09:58:56]Write to MH i2c: E2 08 00 D3 08 80 13 01 00 00 00 00 00 58 [09:58:56]Write i2c OK [09:58:56]MH_I2C_Read... [09:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:56]Read from MH i2c: E2 [09:58:56]MH_I2C_Read... [09:58:56]Read from MH i2c: E2 0E 00 [09:58:56]MH_I2C_Read... [09:58:56]Read from MH i2c: E2 0E 00 D3 08 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 EA [09:58:56]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:58:56]wFMCommunicate OK [09:58:56]SAM_PROTO_GetShiftState done [09:58:56]FM_GetShiftState done [09:58:56]opened in 1729384380 [09:58:56]opened+sec_in_day 1729470780 [09:58:56]quantity*price = 15500 [09:58:56]sum+1 = 15501 [09:58:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 38 20.10.2024 09:58 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69748 ФПД: 178775364085619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095858&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69748&fm=178775364085619&tin=02508201610067®Number=0000000000091770&sum=15500 0 [09:58:58]StoreToDocumentArchive [09:58:58]shift 526 fd 69748 [09:58:58]save to /storage/0526/doc_00069748 [09:58:58]save last doc name /storage/0526/doc_00069748 to /storage/kkm_last_doc_name [09:58:58]save OK [09:58:58]Clear old archive folders... [09:58:58]ProcessDocumentItem done err = 0, tmpTLVsize=280 [09:58:58]tlvbuf is 00979B90 [09:58:58]SAM_PROTO_ClearQueue [09:58:58]wFMCommunicate request_size=4 [09:58:58]MH_SAM_APDU [09:58:58]CAPDU: 80 09 00 00 [09:58:58]Write to MH i2c: E2 08 00 E0 08 80 09 00 00 00 00 00 00 5A [09:58:58]Write i2c OK [09:58:58]MH_I2C_Read... [09:58:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:58]Read from MH i2c: E2 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: E2 03 00 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: E2 03 00 E0 08 00 90 00 5C [09:58:58]RAPDU: 90 00 [09:58:58]wFMCommunicate OK [09:58:58]SAM_PROTO_ClearQueue done [09:58:58]KKMCreateOFDPacket [09:58:58]OFDProtocolAddRootSTLVToBuf [09:58:58]FM_MakeSignedData [09:58:58]FM_MakeSignedData [09:58:58]SAM_PROTO_SignData [09:58:58]wFMCommunicate request_size=4 [09:58:58]MH_SAM_APDU [09:58:58]CAPDU: 80 0D 01 02 [09:58:58]Write to MH i2c: E2 08 00 E1 08 80 0D 01 02 00 00 00 00 62 [09:58:58]Write i2c OK [09:58:58]MH_I2C_Read... [09:58:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:58]Read from MH i2c: E2 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: E2 03 00 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: E2 03 00 E1 08 00 90 00 5D [09:58:58]RAPDU: 90 00 [09:58:58]wFMCommunicate OK [09:58:58]wFMCommunicate request_size=255 [09:58:58]MH_SAM_APDU [09:58:58]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB 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 26 00 00 00 F4 03 04 00 62 D4 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 [09:58:58]Write to MH i2c: E2 02 01 E2 08 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB 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 26 00 00 00 F4 03 04 00 62 D4 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 00 00 61 [09:58:58]Write i2c OK [09:58:58]MH_I2C_Read... [09:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:58]Read from MH i2c: E2 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: E2 03 00 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: E2 03 00 E2 08 00 90 00 5E [09:58:58]RAPDU: 90 00 [09:58:58]wFMCommunicate OK [09:58:58]wFMCommunicate request_size=39 [09:58:58]MH_SAM_APDU [09:58:58]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 74 10 01 00 35 04 06 00 A2 98 62 12 27 73 [09:58:58]Write to MH i2c: E2 2A 00 E3 08 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 74 10 01 00 35 04 06 00 A2 98 62 12 27 73 00 00 F1 [09:58:58]Write i2c OK [09:58:58]MH_I2C_Read... [09:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:58]Read from MH i2c: E2 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: E2 03 00 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: E2 03 00 E3 08 00 90 00 5F [09:58:58]RAPDU: 90 00 [09:58:58]wFMCommunicate OK [09:58:58]wFMCommunicate request_size=4 [09:58:58]MH_SAM_APDU [09:58:58]CAPDU: 80 0D 03 02 [09:58:58]Write to MH i2c: E2 08 00 E4 08 80 0D 03 02 00 00 00 00 67 [09:58:58]Write i2c OK [09:58:58]MH_I2C_Read... [09:58:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:58]Read from MH i2c: E2 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: E2 0B 00 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: E2 0B 00 E4 08 00 5E 09 6C D7 94 70 AB AD 90 00 6E [09:58:58]RAPDU: 5E 09 6C D7 94 70 AB AD 90 00 [09:58:58]wFMCommunicate OK [09:58:58]SAM_PROTO_SignData done [09:58:58]FM_MakeSignedData done [09:58:58]CreateOFDProtocolMessage [09:58:58]wFMCommunicate request_size=4 [09:58:58]MH_SAM_APDU [09:58:58]CAPDU: 80 11 00 00 [09:58:58]Write to MH i2c: E2 08 00 E5 08 80 11 00 00 00 00 00 00 67 [09:58:58]Write i2c OK [09:58:58]MH_I2C_Read... [09:58:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:58]Read from MH i2c: E2 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: E2 17 00 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: E2 17 00 E5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 BE [09:58:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:58:58]wFMCommunicate OK [09:58:58]CreateOFDProtocolMessage done [09:58:58]OFDSenderStorePacket 69748 [09:58:58]StoreOFDPacket docnum=69748 [09:58:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2C 01 00 00 B5 FB 24 01 20 27 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB 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 26 00 00 00 F4 03 04 00 62 D4 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 74 10 01 00 35 04 06 00 A2 98 62 12 27 73 5E 09 6C D7 94 70 AB AD [09:58:58]CheckFolder [09:58:58]dirname=/storage/ofd_packets [09:58:58]CheckFolder done [09:58:58]ProducePacketName [09:58:58]name=ofd_packets/00069748 [09:58:58]NVStorageSaveData ofd_packets/00069748 [09:58:58]File name is /storage/ofd_packets/00069748 [09:58:58]Write 330 bytes [09:58:58]NVStorageSaveData done [09:58:58]OFDSenderStorePacket done [09:58:58]KKMCreateOFDPacket done [09:58:58]NVStorageSaveData kkm_last_timestamp [09:58:58]File name is /storage/kkm_last_timestamp [09:58:58]Write 4 bytes [09:58:58]NVStorageSaveData done [09:58:58]ExternCall_PrintAddStr [09:58:58]wPrintStart [09:58:58]Write to MH i2c: 01 00 00 E6 08 EE [09:58:58]Write i2c OK [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: 01 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: 01 07 00 [09:58:58]MH_I2C_Read... [09:58:58]Read from MH i2c: 01 07 00 E6 08 00 00 00 00 00 FF 0F 03 [09:58:58]RasterBufferAndPrint [09:58:58]line Счет N : (3)127150 [09:58:58]line ИНН: 02508201610067 [09:58:58]line Контрольно-Кассовый Чек [09:58:58]line ПРОДАЖА [09:58:58]line Товар: 5449000000439 [09:58:58]line Напиток Кока-Кола 1,5л [09:58:58]line 1.000 * 155.00 [09:58:58]line = 155.00 [09:58:58]line НДС 12% НСП 1% [09:58:58]line > о реализуемом товаре [09:58:58]line ИТОГО: 155.00 [09:58:58]line НСП 1% : 1.37 [09:58:58]line НДС 12% : 16.46 [09:58:58]line Наличными: 155.00 [09:58:58]line Безнал.: 0.00 [09:58:58]line Место: АЗС № 163 "Партнер Нефть" [09:58:58]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [09:58:58]line СНО: Общий режим [09:58:58]line Чек 38 20.10.2024 09:58 [09:58:58]line Смена: 526 ФФД: 1.0 [09:58:58]line ЗНМ: 0300000101 [09:58:58]line РНМ: 0000000000091770 [09:58:58]line Версия ККМ: 001 [09:58:58]line ФМ: 0000000000871749 [09:58:58]line ФД: 69748 [09:58:58]line ФПД: 178775364085619 [09:58:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095858&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69748&fm=178775364085619&tin=02508201610067®Number=0000000000091770&sum=15500 [09:58:58]line 0 [09:58:58]OFD Sender: Processing packet 69748 [packets to send 32, broken 31] [09:58:58]ProducePacketName [09:58:58]name=ofd_packets/00069748 [09:58:58]OFD Sender: To server: pG, [09:58:58]CommunicateWithHost lk.salyk.kg:30040 [09:58:58]ConnectInit lk.salyk.kg [09:58:58]written 0, free lines is 4095 [09:58:59]Connected sock=9 [09:58:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2C 01 00 00 B5 FB 24 01 20 27 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB 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 26 00 00 00 F4 03 04 00 62 D4 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 74 10 01 00 35 04 06 00 A2 98 62 12 27 73 5E 09 6C D7 94 70 AB AD [09:58:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 9E FF 47 00 F4 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 74 10 01 00 F4 03 04 00 E5 79 14 67 B6 04 01 00 00 A7 05 7E E1 AE 86 5D 9B [09:58:59]CommunicateWithHost err = 0 [09:58:59]CheckOFDResponse [09:58:59]1017 (14) - 77093643461234 [09:58:59]1041 (16) - 0000000000871749 [09:58:59]1040 (4) - 69748 [09:58:59]1012 (4) - 20.10.2024 03:32 [09:58:59]1206 (1) - 0 [09:58:59]OFD Sender: Remove packet 69748 [09:58:59]ProducePacketName [09:58:59]name=ofd_packets/00069748 [09:58:59]NVStorageDeleteData [09:58:59]Write to MH i2c: 01 00 00 0E 09 17 [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: 01 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: 01 07 00 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: 01 07 00 0E 09 00 00 00 00 00 07 0D 32 [09:58:59]RasterBufferAndPrint [09:58:59]line [09:58:59]line [09:58:59]line [09:58:59]line [09:58:59]line [09:58:59]written 0, free lines is 3345 [09:58:59]MH_Cut [09:58:59]Write to MH i2c: D1 01 00 15 09 01 F0 [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: D1 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: D1 01 00 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: D1 01 00 15 09 00 EF [09:58:59]Write to MH i2c: 01 00 00 16 09 1F [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:58:59]OFD Sender: No OFD packet to send [09:59:00]*** Cut start [09:59:00]*** Partial cut [09:59:00]*** CUTSNS_PIN = 1 [09:59:00]*** CUTSNS_PIN = 0 [09:59:00]*** Brake cut motor [09:59:00]Read from MH i2c: 01 [09:59:00]MH_I2C_Read... [09:59:00]*** Stop cut motor [09:59:00]*** Cut end [09:59:00]Read from MH i2c: 01 07 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 07 00 16 09 00 00 00 00 00 FF 0F 34 [09:59:00]process_action close_receipt done [09:59:00]requested_data is exist [09:59:00]produce_requested_data [09:59:00]requested_item fm.sn is exist - process it [09:59:00]wFMCommunicate request_size=4 [09:59:00]MH_SAM_APDU [09:59:00]CAPDU: 80 11 00 00 [09:59:00]Write to MH i2c: E2 08 00 17 09 80 11 00 00 00 00 00 00 9A [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:01]Read from MH i2c: E2 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 17 00 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 17 00 17 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 F1 [09:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:59:01]wFMCommunicate OK [09:59:01]requested_item fd.num is exist - process it [09:59:01]SAM_PROTO_GetFieldsCounters [09:59:01]wFMCommunicate request_size=4 [09:59:01]MH_SAM_APDU [09:59:01]CAPDU: 80 13 00 00 [09:59:01]Write to MH i2c: E2 08 00 18 09 80 13 00 00 00 00 00 00 9D [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:01]Read from MH i2c: E2 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 62 00 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 62 00 18 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 74 10 01 00 0E 04 04 00 0E 02 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 C8 [09:59: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 74 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:01]wFMCommunicate OK [09:59:01]SAM_PROTO_GetFieldsCounters done [09:59:01]requested_item shift.num is exist - process it [09:59:01]requested_item shift.opened is exist - process it [09:59:01]req_shift_opened [09:59:01]FM_GetShiftState [09:59:01]SAM_PROTO_GetShiftState [09:59:01]wFMCommunicate request_size=4 [09:59:01]MH_SAM_APDU [09:59:01]CAPDU: 80 13 01 00 [09:59:01]Write to MH i2c: E2 08 00 19 09 80 13 01 00 00 00 00 00 9F [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:01]Read from MH i2c: E2 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 0E 00 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 0E 00 19 09 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 31 [09:59:01]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:59:01]wFMCommunicate OK [09:59:01]SAM_PROTO_GetShiftState done [09:59:01]FM_GetShiftState done [09:59:01]req_shift_opened done [09:59:01]requested_item shift.open_date is exist - process it [09:59:01]req_shift_open_date [09:59:01]req_shift_open_date done [09:59:01]produce_requested_data done [09:59:01]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69748,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [09:59:01]process_action_free close_receipt [09:59:01]json_value_free [09:59:01]json_value_free done [09:59:01]process_json_proto returns [09:59:01]Send response to host [09:59:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69748,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [09:59:01]free response buf [09:59:01]execute_script done [09:59:01]execute_script returns [09:59:01]free content buf [09:59:01]Sock 10.Close socket [09:59:01]Sock 10.Thread stoped [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:50]accept exits with 7 [09:59:50]New connection [09:59:50]New thread 3066486116 created [09:59:50]Thread 3066629476 joined [09:59:50]Waiting for new connection... [09:59:50] Sock 7.Parse request [09:59:50]Sock 7.Check first char [09:59:50]Sock 7.First char is OK [09:59:50]request: POST /json_proto HTTP/1.0 [09:59:50]Method: POST [09:59:50]URL: /json_proto [09:59:50]Method is POST - this is cgi request [09:59:50]url: /json_proto [09:59:50]query_string will be loaded in cgi processing [09:59:50]execute_cgi json_proto POST (null) [09:59:50]execute_cgi path=json_proto method=POST [09:59:50]POST find Content-Length [09:59:50]Host: 172.17.52.196:8080 [09:59:50]Content-Length: 618 [09:59:50]Content-Type: application/json [09:59:50] [09:59:50]POST finish read [09:59:50]Found Content-Length = 618 [09:59:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127151", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:50]execute_script... [09:59:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127151", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:50]POST & json_proto [09:59:50]process_json_proto [09:59:50]json parsed OK: [09:59:50]protocol is kg_v1.0 [09:59:50]action value=close_receipt [09:59:50]process_action close_receipt [09:59:50]cmd_close_receipt [09:59:50]MH_GetDate [09:59:50]Write to MH i2c: F0 00 00 1A 09 12 [09:59:50]Write i2c OK [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: F0 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: F0 09 00 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: F0 09 00 1A 09 00 98 D4 14 67 60 05 E4 66 B1 [09:59:50]GetLastDocTimeStamp 1729418338 [09:59:50]current date 1729418392 [09:59:50]FM_GetShiftState [09:59:50]SAM_PROTO_GetShiftState [09:59:50]wFMCommunicate request_size=4 [09:59:50]MH_SAM_APDU [09:59:50]CAPDU: 80 13 01 00 [09:59:50]Write to MH i2c: E2 08 00 1B 09 80 13 01 00 00 00 00 00 A1 [09:59:50]Write i2c OK [09:59:50]MH_I2C_Read... [09:59:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:50]Read from MH i2c: E2 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 0E 00 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 0E 00 1B 09 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 33 [09:59:50]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:59:50]wFMCommunicate OK [09:59:50]SAM_PROTO_GetShiftState done [09:59:50]FM_GetShiftState done [09:59:50]opened in 1729384380 [09:59:50]opened+sec_in_day 1729470780 [09:59:50]quantity*price = 13400 [09:59:50]sum+1 = 13401 [09:59:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 39 20.10.2024 09:59 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69749 ФПД: 190694005731943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095952&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69749&fm=190694005731943&tin=02508201610067®Number=0000000000091770&sum=13400 0 [09:59:51]StoreToDocumentArchive [09:59:51]shift 526 fd 69749 [09:59:51]save to /storage/0526/doc_00069749 [09:59:51]save last doc name /storage/0526/doc_00069749 to /storage/kkm_last_doc_name [09:59:51]save OK [09:59:51]Clear old archive folders... [09:59:52]ProcessDocumentItem done err = 0, tmpTLVsize=270 [09:59:52]tlvbuf is 00973F90 [09:59:52]SAM_PROTO_ClearQueue [09:59:52]wFMCommunicate request_size=4 [09:59:52]MH_SAM_APDU [09:59:52]CAPDU: 80 09 00 00 [09:59:52]Write to MH i2c: E2 08 00 28 09 80 09 00 00 00 00 00 00 A3 [09:59:52]Write i2c OK [09:59:52]MH_I2C_Read... [09:59:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:52]Read from MH i2c: E2 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 03 00 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 03 00 28 09 00 90 00 A5 [09:59:52]RAPDU: 90 00 [09:59:52]wFMCommunicate OK [09:59:52]SAM_PROTO_ClearQueue done [09:59:52]KKMCreateOFDPacket [09:59:52]OFDProtocolAddRootSTLVToBuf [09:59:52]FM_MakeSignedData [09:59:52]FM_MakeSignedData [09:59:52]SAM_PROTO_SignData [09:59:52]wFMCommunicate request_size=4 [09:59:52]MH_SAM_APDU [09:59:52]CAPDU: 80 0D 01 02 [09:59:52]Write to MH i2c: E2 08 00 29 09 80 0D 01 02 00 00 00 00 AB [09:59:52]Write i2c OK [09:59:52]MH_I2C_Read... [09:59:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:52]Read from MH i2c: E2 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 03 00 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 03 00 29 09 00 90 00 A6 [09:59:52]RAPDU: 90 00 [09:59:52]wFMCommunicate OK [09:59:52]wFMCommunicate request_size=255 [09:59:52]MH_SAM_APDU [09:59:52]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 98 D4 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [09:59:52]Write to MH i2c: E2 02 01 2A 09 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 98 D4 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 34 [09:59:52]Write i2c OK [09:59:52]MH_I2C_Read... [09:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:52]Read from MH i2c: E2 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 03 00 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 03 00 2A 09 00 90 00 A7 [09:59:52]RAPDU: 90 00 [09:59:52]wFMCommunicate OK [09:59:52]wFMCommunicate request_size=29 [09:59:52]MH_SAM_APDU [09:59:52]CAPDU: 80 0D 02 02 18 38 37 31 37 34 39 10 04 04 00 75 10 01 00 35 04 06 00 AD 6F 68 78 F2 67 [09:59:52]Write to MH i2c: E2 20 00 2B 09 80 0D 02 02 18 00 38 37 31 37 34 39 10 04 04 00 75 10 01 00 35 04 06 00 AD 6F 68 78 F2 67 00 00 54 [09:59:52]Write i2c OK [09:59:52]MH_I2C_Read... [09:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:52]Read from MH i2c: E2 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 03 00 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 03 00 2B 09 00 90 00 A8 [09:59:52]RAPDU: 90 00 [09:59:52]wFMCommunicate OK [09:59:52]wFMCommunicate request_size=4 [09:59:52]MH_SAM_APDU [09:59:52]CAPDU: 80 0D 03 02 [09:59:52]Write to MH i2c: E2 08 00 2C 09 80 0D 03 02 00 00 00 00 B0 [09:59:52]Write i2c OK [09:59:52]MH_I2C_Read... [09:59:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:52]Read from MH i2c: E2 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 0B 00 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 0B 00 2C 09 00 DD F6 2B 11 E0 9E 92 75 90 00 45 [09:59:52]RAPDU: DD F6 2B 11 E0 9E 92 75 90 00 [09:59:52]wFMCommunicate OK [09:59:52]SAM_PROTO_SignData done [09:59:52]FM_MakeSignedData done [09:59:52]CreateOFDProtocolMessage [09:59:52]wFMCommunicate request_size=4 [09:59:52]MH_SAM_APDU [09:59:52]CAPDU: 80 11 00 00 [09:59:52]Write to MH i2c: E2 08 00 2D 09 80 11 00 00 00 00 00 00 B0 [09:59:52]Write i2c OK [09:59:52]MH_I2C_Read... [09:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:52]Read from MH i2c: E2 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 17 00 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 17 00 2D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 07 [09:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:59:52]wFMCommunicate OK [09:59:52]CreateOFDProtocolMessage done [09:59:52]OFDSenderStorePacket 69749 [09:59:52]StoreOFDPacket docnum=69749 [09:59:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 22 01 00 00 2A 14 1A 01 16 0D 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 98 D4 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 75 10 01 00 35 04 06 00 AD 6F 68 78 F2 67 DD F6 2B 11 E0 9E 92 75 [09:59:52]CheckFolder [09:59:52]dirname=/storage/ofd_packets [09:59:52]CheckFolder done [09:59:52]ProducePacketName [09:59:52]name=ofd_packets/00069749 [09:59:52]NVStorageSaveData ofd_packets/00069749 [09:59:52]File name is /storage/ofd_packets/00069749 [09:59:52]Write 320 bytes [09:59:52]NVStorageSaveData done [09:59:52]OFDSenderStorePacket done [09:59:52]KKMCreateOFDPacket done [09:59:52]NVStorageSaveData kkm_last_timestamp [09:59:52]File name is /storage/kkm_last_timestamp [09:59:52]Write 4 bytes [09:59:52]NVStorageSaveData done [09:59:52]ExternCall_PrintAddStr [09:59:52]wPrintStart [09:59:52]Write to MH i2c: 01 00 00 2E 09 37 [09:59:52]Write i2c OK [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: 01 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: 01 07 00 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: 01 07 00 2E 09 00 00 00 00 00 FF 0F 4C [09:59:52]RasterBufferAndPrint [09:59:52]line Счет N : (3)127151 [09:59:52]line ИНН: 02508201610067 [09:59:52]line Контрольно-Кассовый Чек [09:59:52]line ПРОДАЖА [09:59:52]line Товар: 48742191 [09:59:52]line Сигареты Bond Street Blue [09:59:52]line 1.000 * 134.00 [09:59:52]line = 134.00 [09:59:52]line НДС 12% НСП 1% [09:59:52]line > о реализуемом товаре [09:59:52]line ИТОГО: 134.00 [09:59:52]line НСП 1% : 1.19 [09:59:52]line НДС 12% : 14.23 [09:59:52]line Наличными: 134.00 [09:59:52]line Безнал.: 0.00 [09:59:52]line Место: АЗС № 163 "Партнер Нефть" [09:59:52]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [09:59:52]line СНО: Общий режим [09:59:52]line Чек 39 20.10.2024 09:59 [09:59:52]line Смена: 526 ФФД: 1.0 [09:59:52]line ЗНМ: 0300000101 [09:59:52]line РНМ: 0000000000091770 [09:59:52]line Версия ККМ: 001 [09:59:52]line ФМ: 0000000000871749 [09:59:52]line ФД: 69749 [09:59:52]line ФПД: 190694005731943 [09:59:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T095952&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69749&fm=190694005731943&tin=02508201610067®Number=0000000000091770&sum=13400 [09:59:52]OFD Sender: Processing packet 69749 [packets to send 32, broken 31] [09:59:52]ProducePacketName [09:59:52]name=ofd_packets/00069749 [09:59:52]OFD Sender: To server: pG, [09:59:52]CommunicateWithHost lk.salyk.kg:30040 [09:59:52]ConnectInit lk.salyk.kg [09:59:52]line 0 [09:59:52]written 0, free lines is 4095 [09:59:53]Connected sock=11 [09:59:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 22 01 00 00 2A 14 1A 01 16 0D 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 98 D4 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 75 10 01 00 35 04 06 00 AD 6F 68 78 F2 67 DD F6 2B 11 E0 9E 92 75 [09:59:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 40 0F 47 00 B4 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 75 10 01 00 F4 03 04 00 1B 7A 14 67 B6 04 01 00 00 6E 00 08 BC 60 50 FB EE [09:59:53]CommunicateWithHost err = 0 [09:59:53]CheckOFDResponse [09:59:53]1017 (14) - 77093643461234 [09:59:53]1041 (16) - 0000000000871749 [09:59:53]1040 (4) - 69749 [09:59:53]1012 (4) - 20.10.2024 03:33 [09:59:53]1206 (1) - 0 [09:59:53]OFD Sender: Remove packet 69749 [09:59:53]ProducePacketName [09:59:53]name=ofd_packets/00069749 [09:59:53]NVStorageDeleteData [09:59:53]Write to MH i2c: 01 00 00 56 09 5F [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: 01 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: 01 07 00 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: 01 07 00 56 09 00 00 00 00 00 0F 0D 82 [09:59:53]RasterBufferAndPrint [09:59:53]line [09:59:53]line [09:59:53]line [09:59:53]line [09:59:53]line [09:59:53]written 0, free lines is 3349 [09:59:53]MH_Cut [09:59:53]Write to MH i2c: D1 01 00 5D 09 01 38 [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: D1 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: D1 01 00 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: D1 01 00 5D 09 00 37 [09:59:53]Write to MH i2c: 01 00 00 5E 09 67 [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]OFD Sender: No OFD packet to send [09:59:54]*** Cut start [09:59:54]*** Partial cut [09:59:54]*** CUTSNS_PIN = 1 [09:59:54]*** CUTSNS_PIN = 0 [09:59:54]*** Brake cut motor [09:59:54]Read from MH i2c: 01 [09:59:54]MH_I2C_Read... [09:59:54]*** Stop cut motor [09:59:54]*** Cut end [09:59:54]Read from MH i2c: 01 07 00 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 07 00 5E 09 00 00 00 00 00 FF 0F 7C [09:59:54]process_action close_receipt done [09:59:54]requested_data is exist [09:59:54]produce_requested_data [09:59:54]requested_item fm.sn is exist - process it [09:59:54]wFMCommunicate request_size=4 [09:59:54]MH_SAM_APDU [09:59:54]CAPDU: 80 11 00 00 [09:59:54]Write to MH i2c: E2 08 00 5F 09 80 11 00 00 00 00 00 00 E2 [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:54]Read from MH i2c: E2 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: E2 17 00 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: E2 17 00 5F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 39 [09:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [09:59:54]wFMCommunicate OK [09:59:54]requested_item fd.num is exist - process it [09:59:54]SAM_PROTO_GetFieldsCounters [09:59:54]wFMCommunicate request_size=4 [09:59:54]MH_SAM_APDU [09:59:54]CAPDU: 80 13 00 00 [09:59:54]Write to MH i2c: E2 08 00 60 09 80 13 00 00 00 00 00 00 E5 [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:55]Read from MH i2c: E2 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: E2 62 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: E2 62 00 60 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 75 10 01 00 0E 04 04 00 0E 02 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 [09:59: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 75 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:55]wFMCommunicate OK [09:59:55]SAM_PROTO_GetFieldsCounters done [09:59:55]requested_item shift.num is exist - process it [09:59:55]requested_item shift.opened is exist - process it [09:59:55]req_shift_opened [09:59:55]FM_GetShiftState [09:59:55]SAM_PROTO_GetShiftState [09:59:55]wFMCommunicate request_size=4 [09:59:55]MH_SAM_APDU [09:59:55]CAPDU: 80 13 01 00 [09:59:55]Write to MH i2c: E2 08 00 61 09 80 13 01 00 00 00 00 00 E7 [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:55]Read from MH i2c: E2 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: E2 0E 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: E2 0E 00 61 09 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 79 [09:59:55]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [09:59:55]wFMCommunicate OK [09:59:55]SAM_PROTO_GetShiftState done [09:59:55]FM_GetShiftState done [09:59:55]req_shift_opened done [09:59:55]requested_item shift.open_date is exist - process it [09:59:55]req_shift_open_date [09:59:55]req_shift_open_date done [09:59:55]produce_requested_data done [09:59:55]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69749,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [09:59:55]process_action_free close_receipt [09:59:55]json_value_free [09:59:55]json_value_free done [09:59:55]process_json_proto returns [09:59:55]Send response to host [09:59:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69749,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [09:59:55]free response buf [09:59:55]execute_script done [09:59:55]execute_script returns [09:59:55]free content buf [09:59:55]Sock 7.Close socket [09:59:55]Sock 7.Thread stoped [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:11]accept exits with 9 [10:00:11]New connection [10:00:11]New thread 3066629476 created [10:00:11]Thread 3066486116 joined [10:00:11]Waiting for new connection... [10:00:11] Sock 9.Parse request [10:00:11]Sock 9.Check first char [10:00:11]Sock 9.First char is OK [10:00:11]request: POST /json_proto HTTP/1.0 [10:00:11]Method: POST [10:00:11]URL: /json_proto [10:00:11]Method is POST - this is cgi request [10:00:11]url: /json_proto [10:00:11]query_string will be loaded in cgi processing [10:00:11]execute_cgi json_proto POST (null) [10:00:11]execute_cgi path=json_proto method=POST [10:00:11]POST find Content-Length [10:00:11]Host: 172.17.52.196:8080 [10:00:11]Content-Length: 748 [10:00:11]Content-Type: application/json [10:00:11] [10:00:11]POST finish read [10:00:11]Found Content-Length = 748 [10:00:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127152", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:11]execute_script... [10:00:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127152", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:11]POST & json_proto [10:00:11]process_json_proto [10:00:11]json parsed OK: [10:00:11]protocol is kg_v1.0 [10:00:11]action value=close_receipt [10:00:11]process_action close_receipt [10:00:11]cmd_close_receipt [10:00:11]MH_GetDate [10:00:11]Write to MH i2c: F0 00 00 62 09 5A [10:00:11]Write i2c OK [10:00:11]MH_I2C_Read... [10:00:11]Read from MH i2c: F0 [10:00:11]MH_I2C_Read... [10:00:11]Read from MH i2c: F0 09 00 [10:00:11]MH_I2C_Read... [10:00:11]Read from MH i2c: F0 09 00 62 09 00 AC D4 14 67 60 05 E4 66 0D [10:00:11]GetLastDocTimeStamp 1729418392 [10:00:11]current date 1729418412 [10:00:11]FM_GetShiftState [10:00:11]SAM_PROTO_GetShiftState [10:00:11]wFMCommunicate request_size=4 [10:00:11]MH_SAM_APDU [10:00:11]CAPDU: 80 13 01 00 [10:00:11]Write to MH i2c: E2 08 00 63 09 80 13 01 00 00 00 00 00 E9 [10:00:11]Write i2c OK [10:00:11]MH_I2C_Read... [10:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:11]Read from MH i2c: E2 [10:00:11]MH_I2C_Read... [10:00:11]Read from MH i2c: E2 0E 00 [10:00:11]MH_I2C_Read... [10:00:11]Read from MH i2c: E2 0E 00 63 09 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 7B [10:00:11]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [10:00:11]wFMCommunicate OK [10:00:11]SAM_PROTO_GetShiftState done [10:00:11]FM_GetShiftState done [10:00:11]opened in 1729384380 [10:00:11]opened+sec_in_day 1729470780 [10:00:11]quantity*price = 14400 [10:00:11]sum+1 = 14401 [10:00:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 40 20.10.2024 10:00 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69750 ФПД: 215239059384607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100012&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69750&fm=215239059384607&tin=02508201610067®Number=0000000000091770&sum=14400 0 [10:00:12]StoreToDocumentArchive [10:00:12]shift 526 fd 69750 [10:00:12]save to /storage/0526/doc_00069750 [10:00:12]save last doc name /storage/0526/doc_00069750 to /storage/kkm_last_doc_name [10:00:12]save OK [10:00:12]Clear old archive folders... [10:00:12]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:00:12]tlvbuf is 009783D0 [10:00:12]SAM_PROTO_ClearQueue [10:00:12]wFMCommunicate request_size=4 [10:00:12]MH_SAM_APDU [10:00:12]CAPDU: 80 09 00 00 [10:00:12]Write to MH i2c: E2 08 00 70 09 80 09 00 00 00 00 00 00 EB [10:00:12]Write i2c OK [10:00:12]MH_I2C_Read... [10:00:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:12]Read from MH i2c: E2 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 03 00 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 03 00 70 09 00 90 00 ED [10:00:12]RAPDU: 90 00 [10:00:12]wFMCommunicate OK [10:00:12]SAM_PROTO_ClearQueue done [10:00:12]KKMCreateOFDPacket [10:00:12]OFDProtocolAddRootSTLVToBuf [10:00:12]FM_MakeSignedData [10:00:12]FM_MakeSignedData [10:00:12]SAM_PROTO_SignData [10:00:12]wFMCommunicate request_size=4 [10:00:12]MH_SAM_APDU [10:00:12]CAPDU: 80 0D 01 02 [10:00:12]Write to MH i2c: E2 08 00 71 09 80 0D 01 02 00 00 00 00 F3 [10:00:12]Write i2c OK [10:00:12]MH_I2C_Read... [10:00:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:12]Read from MH i2c: E2 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 03 00 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 03 00 71 09 00 90 00 EE [10:00:12]RAPDU: 90 00 [10:00:12]wFMCommunicate OK [10:00:12]wFMCommunicate request_size=255 [10:00:12]MH_SAM_APDU [10:00:12]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 AC D4 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [10:00:12]Write to MH i2c: E2 02 01 72 09 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 AC D4 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 8F [10:00:12]Write i2c OK [10:00:12]MH_I2C_Read... [10:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:12]Read from MH i2c: E2 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 03 00 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 03 00 72 09 00 90 00 EF [10:00:12]RAPDU: 90 00 [10:00:12]wFMCommunicate OK [10:00:12]wFMCommunicate request_size=32 [10:00:12]MH_SAM_APDU [10:00:12]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 76 10 01 00 35 04 06 00 C3 C2 3F AD 29 1F [10:00:12]Write to MH i2c: E2 23 00 73 09 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 76 10 01 00 35 04 06 00 C3 C2 3F AD 29 1F 00 00 97 [10:00:12]Write i2c OK [10:00:12]MH_I2C_Read... [10:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:12]Read from MH i2c: E2 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 03 00 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 03 00 73 09 00 90 00 F0 [10:00:12]RAPDU: 90 00 [10:00:12]wFMCommunicate OK [10:00:12]wFMCommunicate request_size=4 [10:00:12]MH_SAM_APDU [10:00:12]CAPDU: 80 0D 03 02 [10:00:12]Write to MH i2c: E2 08 00 74 09 80 0D 03 02 00 00 00 00 F8 [10:00:12]Write i2c OK [10:00:12]MH_I2C_Read... [10:00:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:12]Read from MH i2c: E2 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 0B 00 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 0B 00 74 09 00 D6 7D D6 03 9D 6F 20 38 90 00 89 [10:00:12]RAPDU: D6 7D D6 03 9D 6F 20 38 90 00 [10:00:12]wFMCommunicate OK [10:00:12]SAM_PROTO_SignData done [10:00:12]FM_MakeSignedData done [10:00:12]CreateOFDProtocolMessage [10:00:12]wFMCommunicate request_size=4 [10:00:12]MH_SAM_APDU [10:00:12]CAPDU: 80 11 00 00 [10:00:12]Write to MH i2c: E2 08 00 75 09 80 11 00 00 00 00 00 00 F8 [10:00:12]Write i2c OK [10:00:12]MH_I2C_Read... [10:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:12]Read from MH i2c: E2 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 17 00 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 17 00 75 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 4F [10:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [10:00:12]wFMCommunicate OK [10:00:12]CreateOFDProtocolMessage done [10:00:12]OFDSenderStorePacket 69750 [10:00:12]StoreOFDPacket docnum=69750 [10:00:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 72 EB 1D 01 3D 52 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 AC D4 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 76 10 01 00 35 04 06 00 C3 C2 3F AD 29 1F D6 7D D6 03 9D 6F 20 38 [10:00:12]CheckFolder [10:00:12]dirname=/storage/ofd_packets [10:00:12]CheckFolder done [10:00:12]ProducePacketName [10:00:12]name=ofd_packets/00069750 [10:00:12]NVStorageSaveData ofd_packets/00069750 [10:00:12]File name is /storage/ofd_packets/00069750 [10:00:12]Write 323 bytes [10:00:12]NVStorageSaveData done [10:00:12]OFDSenderStorePacket done [10:00:12]KKMCreateOFDPacket done [10:00:12]NVStorageSaveData kkm_last_timestamp [10:00:12]File name is /storage/kkm_last_timestamp [10:00:12]Write 4 bytes [10:00:12]NVStorageSaveData done [10:00:12]ExternCall_PrintAddStr [10:00:12]wPrintStart [10:00:12]Write to MH i2c: 01 00 00 76 09 7F [10:00:12]Write i2c OK [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: 01 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: 01 07 00 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: 01 07 00 76 09 00 00 00 00 00 FF 0F 94 [10:00:12]RasterBufferAndPrint [10:00:12]line Счет N : (3)127152 [10:00:12]line ИНН: 02508201610067 [10:00:12]line Контрольно-Кассовый Чек [10:00:12]line ПРОДАЖА [10:00:12]line Товар: 48743570 [10:00:12]line Сигареты Winston XStyle Blue [10:00:12]line 1.000 * 144.00 [10:00:12]line = 144.00 [10:00:12]line НДС 12% НСП 1% [10:00:12]line > о реализуемом товаре [10:00:12]line ИТОГО: 144.00 [10:00:12]line НСП 1% : 1.27 [10:00:12]line НДС 12% : 15.29 [10:00:12]line Наличными: 0.00 [10:00:12]line Безнал.: 144.00 [10:00:12]line Место: АЗС № 163 "Партнер Нефть" [10:00:12]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [10:00:12]line СНО: Общий режим [10:00:12]line Чек 40 20.10.2024 10:00 [10:00:12]line Смена: 526 ФФД: 1.0 [10:00:12]line ЗНМ: 0300000101 [10:00:12]line РНМ: 0000000000091770 [10:00:12]line Версия ККМ: 001 [10:00:12]line Платежная система: Mbank [10:00:12]line ФМ: 0000000000871749 [10:00:12]line ФД: 69750 [10:00:12]line ФПД: 215239059384607 [10:00:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100012&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69750&fm=215239059384607&tin=02508201610067®Number=0000000000091770&sum=14400 [10:00:13]line 0 [10:00:13]OFD Sender: Processing packet 69750 [packets to send 32, broken 31] [10:00:13]ProducePacketName [10:00:13]name=ofd_packets/00069750 [10:00:13]OFD Sender: To server: pG, [10:00:13]CommunicateWithHost lk.salyk.kg:30040 [10:00:13]ConnectInit lk.salyk.kg [10:00:13]written 0, free lines is 4095 [10:00:13]Connected sock=10 [10:00:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 72 EB 1D 01 3D 52 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 AC D4 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 76 10 01 00 35 04 06 00 C3 C2 3F AD 29 1F D6 7D D6 03 9D 6F 20 38 [10:00:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 4C B7 47 00 3D A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 76 10 01 00 F4 03 04 00 2F 7A 14 67 B6 04 01 00 00 1E 1A 22 B3 6E 0A BD A1 [10:00:13]CommunicateWithHost err = 0 [10:00:13]CheckOFDResponse [10:00:13]1017 (14) - 77093643461234 [10:00:13]1041 (16) - 0000000000871749 [10:00:13]1040 (4) - 69750 [10:00:13]1012 (4) - 20.10.2024 03:34 [10:00:13]1206 (1) - 0 [10:00:13]OFD Sender: Remove packet 69750 [10:00:13]ProducePacketName [10:00:13]name=ofd_packets/00069750 [10:00:13]NVStorageDeleteData [10:00:13]Write to MH i2c: 01 00 00 9F 09 A8 [10:00:13]Write i2c OK [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: 01 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: 01 07 00 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: 01 07 00 9F 09 00 00 00 00 00 EC 0C A7 [10:00:13]RasterBufferAndPrint [10:00:13]line [10:00:13]line [10:00:13]line [10:00:13]line [10:00:13]line [10:00:13]written 0, free lines is 3317 [10:00:13]MH_Cut [10:00:13]Write to MH i2c: D1 01 00 A6 09 01 81 [10:00:13]Write i2c OK [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: D1 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: D1 01 00 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: D1 01 00 A6 09 00 80 [10:00:13]Write to MH i2c: 01 00 00 A7 09 B0 [10:00:13]Write i2c OK [10:00:13]MH_I2C_Read... [10:00:13]OFD Sender: No OFD packet to send [10:00:14]*** Cut start [10:00:14]*** Partial cut [10:00:14]*** CUTSNS_PIN = 1 [10:00:14]*** CUTSNS_PIN = 0 [10:00:14]*** Brake cut motor [10:00:15]Read from MH i2c: 01 [10:00:15]MH_I2C_Read... [10:00:15]*** Stop cut motor [10:00:15]*** Cut end [10:00:15]Read from MH i2c: 01 07 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: 01 07 00 A7 09 00 00 00 00 00 FF 0F C5 [10:00:15]process_action close_receipt done [10:00:15]requested_data is exist [10:00:15]produce_requested_data [10:00:15]requested_item fm.sn is exist - process it [10:00:15]wFMCommunicate request_size=4 [10:00:15]MH_SAM_APDU [10:00:15]CAPDU: 80 11 00 00 [10:00:15]Write to MH i2c: E2 08 00 A8 09 80 11 00 00 00 00 00 00 2B [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:15]Read from MH i2c: E2 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 17 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 17 00 A8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 82 [10:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [10:00:15]wFMCommunicate OK [10:00:15]requested_item fd.num is exist - process it [10:00:15]SAM_PROTO_GetFieldsCounters [10:00:15]wFMCommunicate request_size=4 [10:00:15]MH_SAM_APDU [10:00:15]CAPDU: 80 13 00 00 [10:00:15]Write to MH i2c: E2 08 00 A9 09 80 13 00 00 00 00 00 00 2E [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:15]Read from MH i2c: E2 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 62 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 62 00 A9 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 76 10 01 00 0E 04 04 00 0E 02 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 61 [10:00: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 76 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:15]wFMCommunicate OK [10:00:15]SAM_PROTO_GetFieldsCounters done [10:00:15]requested_item shift.num is exist - process it [10:00:15]requested_item shift.opened is exist - process it [10:00:15]req_shift_opened [10:00:15]FM_GetShiftState [10:00:15]SAM_PROTO_GetShiftState [10:00:15]wFMCommunicate request_size=4 [10:00:15]MH_SAM_APDU [10:00:15]CAPDU: 80 13 01 00 [10:00:15]Write to MH i2c: E2 08 00 AA 09 80 13 01 00 00 00 00 00 30 [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:15]Read from MH i2c: E2 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 0E 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 0E 00 AA 09 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 C2 [10:00:15]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [10:00:15]wFMCommunicate OK [10:00:15]SAM_PROTO_GetShiftState done [10:00:15]FM_GetShiftState done [10:00:15]req_shift_opened done [10:00:15]requested_item shift.open_date is exist - process it [10:00:15]req_shift_open_date [10:00:15]req_shift_open_date done [10:00:15]produce_requested_data done [10:00:15]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69750,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [10:00:15]process_action_free close_receipt [10:00:15]json_value_free [10:00:15]json_value_free done [10:00:15]process_json_proto returns [10:00:15]Send response to host [10:00:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69750,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [10:00:15]free response buf [10:00:15]execute_script done [10:00:15]execute_script returns [10:00:15]free content buf [10:00:15]Sock 9.Close socket [10:00:15]Sock 9.Thread stoped [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:48]accept exits with 7 [10:02:48]New connection [10:02:48]New thread 3066486116 created [10:02:48]Thread 3066629476 joined [10:02:48]Waiting for new connection... [10:02:48] Sock 7.Parse request [10:02:48]Sock 7.Check first char [10:02:48]Sock 7.First char is OK [10:02:48]request: POST /json_proto HTTP/1.0 [10:02:48]Method: POST [10:02:48]URL: /json_proto [10:02:48]Method is POST - this is cgi request [10:02:48]url: /json_proto [10:02:48]query_string will be loaded in cgi processing [10:02:48]execute_cgi json_proto POST (null) [10:02:48]execute_cgi path=json_proto method=POST [10:02:48]POST find Content-Length [10:02:48]Host: 172.17.52.196:8080 [10:02:48]Content-Length: 623 [10:02:48]Content-Type: application/json [10:02:48] [10:02:48]POST finish read [10:02:48]Found Content-Length = 623 [10:02:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127153", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:48]execute_script... [10:02:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127153", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:48]POST & json_proto [10:02:48]process_json_proto [10:02:48]json parsed OK: [10:02:48]protocol is kg_v1.0 [10:02:48]action value=close_receipt [10:02:48]process_action close_receipt [10:02:48]cmd_close_receipt [10:02:48]MH_GetDate [10:02:48]Write to MH i2c: F0 00 00 AB 09 A3 [10:02:48]Write i2c OK [10:02:48]MH_I2C_Read... [10:02:48]Read from MH i2c: F0 [10:02:48]MH_I2C_Read... [10:02:48]Read from MH i2c: F0 09 00 [10:02:48]MH_I2C_Read... [10:02:48]Read from MH i2c: F0 09 00 AB 09 00 4A D5 14 67 60 05 E4 66 F5 [10:02:48]GetLastDocTimeStamp 1729418412 [10:02:48]current date 1729418570 [10:02:48]FM_GetShiftState [10:02:48]SAM_PROTO_GetShiftState [10:02:48]wFMCommunicate request_size=4 [10:02:48]MH_SAM_APDU [10:02:48]CAPDU: 80 13 01 00 [10:02:48]Write to MH i2c: E2 08 00 AC 09 80 13 01 00 00 00 00 00 32 [10:02:48]Write i2c OK [10:02:48]MH_I2C_Read... [10:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:49]Read from MH i2c: E2 [10:02:49]MH_I2C_Read... [10:02:49]Read from MH i2c: E2 0E 00 [10:02:49]MH_I2C_Read... [10:02:49]Read from MH i2c: E2 0E 00 AC 09 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 C4 [10:02:49]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [10:02:49]wFMCommunicate OK [10:02:49]SAM_PROTO_GetShiftState done [10:02:49]FM_GetShiftState done [10:02:49]opened in 1729384380 [10:02:49]opened+sec_in_day 1729470780 [10:02:49]quantity*price = 14400 [10:02:49]sum+1 = 14401 [10:02:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 41 20.10.2024 10:02 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69751 ФПД: 136291372345924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100250&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69751&fm=136291372345924&tin=02508201610067®Number=0000000000091770&sum=14400 0 [10:02:50]StoreToDocumentArchive [10:02:50]shift 526 fd 69751 [10:02:50]save to /storage/0526/doc_00069751 [10:02:50]save last doc name /storage/0526/doc_00069751 to /storage/kkm_last_doc_name [10:02:50]save OK [10:02:50]Clear old archive folders... [10:02:50]ProcessDocumentItem done err = 0, tmpTLVsize=275 [10:02:50]tlvbuf is 00973F60 [10:02:50]SAM_PROTO_ClearQueue [10:02:50]wFMCommunicate request_size=4 [10:02:50]MH_SAM_APDU [10:02:50]CAPDU: 80 09 00 00 [10:02:50]Write to MH i2c: E2 08 00 B9 09 80 09 00 00 00 00 00 00 34 [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:50]Read from MH i2c: E2 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 03 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 03 00 B9 09 00 90 00 36 [10:02:50]RAPDU: 90 00 [10:02:50]wFMCommunicate OK [10:02:50]SAM_PROTO_ClearQueue done [10:02:50]KKMCreateOFDPacket [10:02:50]OFDProtocolAddRootSTLVToBuf [10:02:50]FM_MakeSignedData [10:02:50]FM_MakeSignedData [10:02:50]SAM_PROTO_SignData [10:02:50]wFMCommunicate request_size=4 [10:02:50]MH_SAM_APDU [10:02:50]CAPDU: 80 0D 01 02 [10:02:50]Write to MH i2c: E2 08 00 BA 09 80 0D 01 02 00 00 00 00 3C [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:50]Read from MH i2c: E2 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 03 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 03 00 BA 09 00 90 00 37 [10:02:50]RAPDU: 90 00 [10:02:50]wFMCommunicate OK [10:02:50]wFMCommunicate request_size=255 [10:02:50]MH_SAM_APDU [10:02:50]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4A D5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 [10:02:50]Write to MH i2c: E2 02 01 BB 09 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4A D5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 00 00 13 [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:50]Read from MH i2c: E2 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 03 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 03 00 BB 09 00 90 00 38 [10:02:50]RAPDU: 90 00 [10:02:50]wFMCommunicate OK [10:02:50]wFMCommunicate request_size=34 [10:02:50]MH_SAM_APDU [10:02:50]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 77 10 01 00 35 04 06 00 7B F4 CE D5 AA 44 [10:02:50]Write to MH i2c: E2 25 00 BC 09 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 77 10 01 00 35 04 06 00 7B F4 CE D5 AA 44 00 00 8C [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:50]Read from MH i2c: E2 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 03 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 03 00 BC 09 00 90 00 39 [10:02:50]RAPDU: 90 00 [10:02:50]wFMCommunicate OK [10:02:50]wFMCommunicate request_size=4 [10:02:50]MH_SAM_APDU [10:02:50]CAPDU: 80 0D 03 02 [10:02:50]Write to MH i2c: E2 08 00 BD 09 80 0D 03 02 00 00 00 00 41 [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:50]Read from MH i2c: E2 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 0B 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 0B 00 BD 09 00 BF 7D 4D C7 15 7F DA AE 90 00 AE [10:02:50]RAPDU: BF 7D 4D C7 15 7F DA AE 90 00 [10:02:50]wFMCommunicate OK [10:02:50]SAM_PROTO_SignData done [10:02:50]FM_MakeSignedData done [10:02:50]CreateOFDProtocolMessage [10:02:50]wFMCommunicate request_size=4 [10:02:50]MH_SAM_APDU [10:02:50]CAPDU: 80 11 00 00 [10:02:50]Write to MH i2c: E2 08 00 BE 09 80 11 00 00 00 00 00 00 41 [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:50]Read from MH i2c: E2 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 17 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 17 00 BE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 98 [10:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [10:02:50]wFMCommunicate OK [10:02:50]CreateOFDProtocolMessage done [10:02:50]OFDSenderStorePacket 69751 [10:02:50]StoreOFDPacket docnum=69751 [10:02:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 1C 7E 1F 01 9E 08 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4A D5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 77 10 01 00 35 04 06 00 7B F4 CE D5 AA 44 BF 7D 4D C7 15 7F DA AE [10:02:50]CheckFolder [10:02:50]dirname=/storage/ofd_packets [10:02:50]CheckFolder done [10:02:50]ProducePacketName [10:02:50]name=ofd_packets/00069751 [10:02:50]NVStorageSaveData ofd_packets/00069751 [10:02:50]File name is /storage/ofd_packets/00069751 [10:02:50]Write 325 bytes [10:02:50]NVStorageSaveData done [10:02:50]OFDSenderStorePacket done [10:02:50]KKMCreateOFDPacket done [10:02:50]NVStorageSaveData kkm_last_timestamp [10:02:50]File name is /storage/kkm_last_timestamp [10:02:50]Write 4 bytes [10:02:50]NVStorageSaveData done [10:02:50]ExternCall_PrintAddStr [10:02:50]wPrintStart [10:02:50]Write to MH i2c: 01 00 00 BF 09 C8 [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: 01 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: 01 07 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: 01 07 00 BF 09 00 00 00 00 00 FF 0F DD [10:02:50]RasterBufferAndPrint [10:02:50]line Счет N : (3)127153 [10:02:50]line ИНН: 02508201610067 [10:02:50]line Контрольно-Кассовый Чек [10:02:50]line ПРОДАЖА [10:02:50]line Товар: 48743587 [10:02:50]line Сигареты Winston XStyle Silver [10:02:50]line 1.000 * 144.00 [10:02:50]line = 144.00 [10:02:50]line НДС 12% НСП 1% [10:02:50]line > о реализуемом товаре [10:02:50]line ИТОГО: 144.00 [10:02:50]line НСП 1% : 1.27 [10:02:50]line НДС 12% : 15.29 [10:02:50]line Наличными: 144.00 [10:02:50]line Безнал.: 0.00 [10:02:50]line Место: АЗС № 163 "Партнер Нефть" [10:02:50]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [10:02:50]line СНО: Общий режим [10:02:50]line Чек 41 20.10.2024 10:02 [10:02:50]line Смена: 526 ФФД: 1.0 [10:02:50]line ЗНМ: 0300000101 [10:02:50]line РНМ: 0000000000091770 [10:02:50]line Версия ККМ: 001 [10:02:50]line ФМ: 0000000000871749 [10:02:50]line ФД: 69751 [10:02:50]line ФПД: 136291372345924 [10:02:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T100250&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69751&fm=136291372345924&tin=02508201610067®Number=0000000000091770&sum=14400 [10:02:51]line 0 [10:02:51]OFD Sender: Processing packet 69751 [packets to send 32, broken 31] [10:02:51]ProducePacketName [10:02:51]name=ofd_packets/00069751 [10:02:51]OFD Sender: To server: pG, [10:02:51]CommunicateWithHost lk.salyk.kg:30040 [10:02:51]ConnectInit lk.salyk.kg [10:02:51]written 0, free lines is 4095 [10:02:51]Connected sock=10 [10:02:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 1C 7E 1F 01 9E 08 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 4A D5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 77 10 01 00 35 04 06 00 7B F4 CE D5 AA 44 BF 7D 4D C7 15 7F DA AE [10:02:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 1B 5D 47 00 DD 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 77 10 01 00 F4 03 04 00 CD 7A 14 67 B6 04 01 00 00 36 CC FB 04 04 D2 61 DB [10:02:51]CommunicateWithHost err = 0 [10:02:51]CheckOFDResponse [10:02:51]1017 (14) - 77093643461234 [10:02:51]1041 (16) - 0000000000871749 [10:02:51]1040 (4) - 69751 [10:02:51]1012 (4) - 20.10.2024 03:36 [10:02:51]1206 (1) - 0 [10:02:51]OFD Sender: Remove packet 69751 [10:02:51]ProducePacketName [10:02:51]name=ofd_packets/00069751 [10:02:51]NVStorageDeleteData [10:02:51]Write to MH i2c: 01 00 00 E8 09 F1 [10:02:51]Write i2c OK [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: 01 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: 01 07 00 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: 01 07 00 E8 09 00 00 00 00 00 DF 0C E3 [10:02:51]RasterBufferAndPrint [10:02:51]line [10:02:51]line [10:02:51]line [10:02:51]line [10:02:51]line [10:02:51]written 0, free lines is 3304 [10:02:51]MH_Cut [10:02:51]Write to MH i2c: D1 01 00 EF 09 01 CA [10:02:51]Write i2c OK [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: D1 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: D1 01 00 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: D1 01 00 EF 09 00 C9 [10:02:51]Write to MH i2c: 01 00 00 F0 09 F9 [10:02:51]Write i2c OK [10:02:51]MH_I2C_Read... [10:02:51]OFD Sender: No OFD packet to send [10:02:52]*** Cut start [10:02:52]*** Partial cut [10:02:52]*** CUTSNS_PIN = 1 [10:02:52]*** CUTSNS_PIN = 0 [10:02:52]*** Brake cut motor [10:02:53]Read from MH i2c: 01 [10:02:53]MH_I2C_Read... [10:02:53]*** Stop cut motor [10:02:53]*** Cut end [10:02:53]Read from MH i2c: 01 07 00 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: 01 07 00 F0 09 00 00 00 00 00 FF 0F 0E [10:02:53]process_action close_receipt done [10:02:53]requested_data is exist [10:02:53]produce_requested_data [10:02:53]requested_item fm.sn is exist - process it [10:02:53]wFMCommunicate request_size=4 [10:02:53]MH_SAM_APDU [10:02:53]CAPDU: 80 11 00 00 [10:02:53]Write to MH i2c: E2 08 00 F1 09 80 11 00 00 00 00 00 00 74 [10:02:53]Write i2c OK [10:02:53]MH_I2C_Read... [10:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:53]Read from MH i2c: E2 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: E2 17 00 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: E2 17 00 F1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 CB [10:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [10:02:53]wFMCommunicate OK [10:02:53]requested_item fd.num is exist - process it [10:02:53]SAM_PROTO_GetFieldsCounters [10:02:53]wFMCommunicate request_size=4 [10:02:53]MH_SAM_APDU [10:02:53]CAPDU: 80 13 00 00 [10:02:53]Write to MH i2c: E2 08 00 F2 09 80 13 00 00 00 00 00 00 77 [10:02:53]Write i2c OK [10:02:53]MH_I2C_Read... [10:02:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:53]Read from MH i2c: E2 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: E2 62 00 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: E2 62 00 F2 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 77 10 01 00 0E 04 04 00 0E 02 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 AE [10:02: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 77 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:53]wFMCommunicate OK [10:02:53]SAM_PROTO_GetFieldsCounters done [10:02:53]requested_item shift.num is exist - process it [10:02:53]requested_item shift.opened is exist - process it [10:02:53]req_shift_opened [10:02:53]FM_GetShiftState [10:02:53]SAM_PROTO_GetShiftState [10:02:53]wFMCommunicate request_size=4 [10:02:53]MH_SAM_APDU [10:02:53]CAPDU: 80 13 01 00 [10:02:53]Write to MH i2c: E2 08 00 F3 09 80 13 01 00 00 00 00 00 79 [10:02:53]Write i2c OK [10:02:53]MH_I2C_Read... [10:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:53]Read from MH i2c: E2 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: E2 0E 00 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: E2 0E 00 F3 09 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 0B [10:02:53]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [10:02:53]wFMCommunicate OK [10:02:53]SAM_PROTO_GetShiftState done [10:02:53]FM_GetShiftState done [10:02:53]req_shift_opened done [10:02:53]requested_item shift.open_date is exist - process it [10:02:53]req_shift_open_date [10:02:53]req_shift_open_date done [10:02:53]produce_requested_data done [10:02:53]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69751,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [10:02:53]process_action_free close_receipt [10:02:53]json_value_free [10:02:53]json_value_free done [10:02:53]process_json_proto returns [10:02:53]Send response to host [10:02:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69751,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [10:02:53]free response buf [10:02:53]execute_script done [10:02:53]execute_script returns [10:02:53]free content buf [10:02:53]Sock 7.Close socket [10:02:53]Sock 7.Thread stoped [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]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:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:57]OFD Sender: No OFD packet to send [10:15:02]OFD Sender: No OFD packet to send [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:01]accept exits with 9 [10:20:01]New connection [10:20:01]New thread 3066629476 created [10:20:01]Thread 3066486116 joined [10:20:01]Waiting for new connection... [10:20:01] Sock 9.Parse request [10:20:01]Sock 9.Check first char [10:20:01]Sock 9.First char is OK [10:20:01]request: POST /json_proto HTTP/1.0 [10:20:01]Method: POST [10:20:01]URL: /json_proto [10:20:01]Method is POST - this is cgi request [10:20:01]url: /json_proto [10:20:01]query_string will be loaded in cgi processing [10:20:01]execute_cgi json_proto POST (null) [10:20:01]execute_cgi path=json_proto method=POST [10:20:01]POST find Content-Length [10:20:01]Host: 172.17.52.196:8080 [10:20:01]Content-Length: 585 [10:20:01]Content-Type: application/json [10:20:01] [10:20:01]POST finish read [10:20:01]Found Content-Length = 585 [10:20:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127154", "tax_sys" : 0, "items" : [ { "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:01]execute_script... [10:20: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)127154", "tax_sys" : 0, "items" : [ { "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:01]POST & json_proto [10:20:01]process_json_proto [10:20:01]json parsed OK: [10:20:01]protocol is kg_v1.0 [10:20:01]action value=close_receipt [10:20:01]process_action close_receipt [10:20:01]cmd_close_receipt [10:20:01]MH_GetDate [10:20:01]Write to MH i2c: F0 00 00 F4 09 EC [10:20:01]Write i2c OK [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: F0 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: F0 09 00 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: F0 09 00 F4 09 00 52 D9 14 67 60 05 E4 66 4A [10:20:01]GetLastDocTimeStamp 1729418570 [10:20:01]current date 1729419602 [10:20:01]FM_GetShiftState [10:20:01]SAM_PROTO_GetShiftState [10:20:01]wFMCommunicate request_size=4 [10:20:01]MH_SAM_APDU [10:20:01]CAPDU: 80 13 01 00 [10:20:01]Write to MH i2c: E2 08 00 F5 09 80 13 01 00 00 00 00 00 7B [10:20:01]Write i2c OK [10:20:01]MH_I2C_Read... [10:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:01]Read from MH i2c: E2 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 0E 00 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 0E 00 F5 09 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 0D [10:20:01]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [10:20:01]wFMCommunicate OK [10:20:01]SAM_PROTO_GetShiftState done [10:20:01]FM_GetShiftState done [10:20:01]opened in 1729384380 [10:20:01]opened+sec_in_day 1729470780 [10:20:01]quantity*price = 4500 [10:20:01]sum+1 = 4501 [10:20:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 42 20.10.2024 10:20 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69752 ФПД: 221715124311460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102002&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69752&fm=221715124311460&tin=02508201610067®Number=0000000000091770&sum=4500 0 [10:20:02]StoreToDocumentArchive [10:20:02]shift 526 fd 69752 [10:20:02]save to /storage/0526/doc_00069752 [10:20:02]save last doc name /storage/0526/doc_00069752 to /storage/kkm_last_doc_name [10:20:02]save OK [10:20:02]Clear old archive folders... [10:20:02]ProcessDocumentItem done err = 0, tmpTLVsize=260 [10:20:02]tlvbuf is 00974D00 [10:20:02]SAM_PROTO_ClearQueue [10:20:02]wFMCommunicate request_size=4 [10:20:02]MH_SAM_APDU [10:20:02]CAPDU: 80 09 00 00 [10:20:02]Write to MH i2c: E2 08 00 02 0A 80 09 00 00 00 00 00 00 7E [10:20:02]Write i2c OK [10:20:02]MH_I2C_Read... [10:20:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:02]Read from MH i2c: E2 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 02 0A 00 90 00 80 [10:20:02]RAPDU: 90 00 [10:20:02]wFMCommunicate OK [10:20:02]SAM_PROTO_ClearQueue done [10:20:02]KKMCreateOFDPacket [10:20:02]OFDProtocolAddRootSTLVToBuf [10:20:02]FM_MakeSignedData [10:20:02]FM_MakeSignedData [10:20:02]SAM_PROTO_SignData [10:20:02]wFMCommunicate request_size=4 [10:20:02]MH_SAM_APDU [10:20:02]CAPDU: 80 0D 01 02 [10:20:02]Write to MH i2c: E2 08 00 03 0A 80 0D 01 02 00 00 00 00 86 [10:20:02]Write i2c OK [10:20:02]MH_I2C_Read... [10:20:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:02]Read from MH i2c: E2 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 03 0A 00 90 00 81 [10:20:02]RAPDU: 90 00 [10:20:02]wFMCommunicate OK [10:20:02]wFMCommunicate request_size=255 [10:20:02]MH_SAM_APDU [10:20:02]CAPDU: 80 0D 02 02 FA 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 52 D9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 [10:20:02]Write to MH i2c: E2 02 01 04 0A 80 0D 02 02 FA 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 52 D9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 00 00 75 [10:20:02]Write i2c OK [10:20:02]MH_I2C_Read... [10:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:02]Read from MH i2c: E2 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 04 0A 00 90 00 82 [10:20:02]RAPDU: 90 00 [10:20:02]wFMCommunicate OK [10:20:02]wFMCommunicate request_size=19 [10:20:02]MH_SAM_APDU [10:20:02]CAPDU: 80 0D 02 02 0E 78 10 01 00 35 04 06 00 C9 A6 13 39 D5 A4 [10:20:02]Write to MH i2c: E2 16 00 05 0A 80 0D 02 02 0E 00 78 10 01 00 35 04 06 00 C9 A6 13 39 D5 A4 00 00 A1 [10:20:02]Write i2c OK [10:20:02]MH_I2C_Read... [10:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:02]Read from MH i2c: E2 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 05 0A 00 90 00 83 [10:20:02]RAPDU: 90 00 [10:20:02]wFMCommunicate OK [10:20:02]wFMCommunicate request_size=4 [10:20:02]MH_SAM_APDU [10:20:02]CAPDU: 80 0D 03 02 [10:20:02]Write to MH i2c: E2 08 00 06 0A 80 0D 03 02 00 00 00 00 8B [10:20:02]Write i2c OK [10:20:02]MH_I2C_Read... [10:20:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:02]Read from MH i2c: E2 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 0B 00 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 0B 00 06 0A 00 3A 77 26 9F A7 CB F2 EA 90 00 50 [10:20:02]RAPDU: 3A 77 26 9F A7 CB F2 EA 90 00 [10:20:02]wFMCommunicate OK [10:20:02]SAM_PROTO_SignData done [10:20:02]FM_MakeSignedData done [10:20:02]CreateOFDProtocolMessage [10:20:02]wFMCommunicate request_size=4 [10:20:02]MH_SAM_APDU [10:20:02]CAPDU: 80 11 00 00 [10:20:02]Write to MH i2c: E2 08 00 07 0A 80 11 00 00 00 00 00 00 8B [10:20:02]Write i2c OK [10:20:02]MH_I2C_Read... [10:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:02]Read from MH i2c: E2 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 17 00 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 17 00 07 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 E2 [10:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [10:20:02]wFMCommunicate OK [10:20:02]CreateOFDProtocolMessage done [10:20:02]OFDSenderStorePacket 69752 [10:20:02]StoreOFDPacket docnum=69752 [10:20:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 18 01 00 00 81 BC 10 01 CB 46 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 52 D9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 78 10 01 00 35 04 06 00 C9 A6 13 39 D5 A4 3A 77 26 9F A7 CB F2 EA [10:20:02]CheckFolder [10:20:02]dirname=/storage/ofd_packets [10:20:02]CheckFolder done [10:20:02]ProducePacketName [10:20:02]name=ofd_packets/00069752 [10:20:02]NVStorageSaveData ofd_packets/00069752 [10:20:02]File name is /storage/ofd_packets/00069752 [10:20:02]Write 310 bytes [10:20:02]NVStorageSaveData done [10:20:02]OFDSenderStorePacket done [10:20:02]KKMCreateOFDPacket done [10:20:02]NVStorageSaveData kkm_last_timestamp [10:20:02]File name is /storage/kkm_last_timestamp [10:20:02]Write 4 bytes [10:20:02]NVStorageSaveData done [10:20:02]ExternCall_PrintAddStr [10:20:02]wPrintStart [10:20:02]Write to MH i2c: 01 00 00 08 0A 12 [10:20:02]Write i2c OK [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: 01 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: 01 07 00 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: 01 07 00 08 0A 00 00 00 00 00 FF 0F 27 [10:20:02]RasterBufferAndPrint [10:20:02]line Счет N : (3)127154 [10:20:02]line ИНН: 02508201610067 [10:20:02]line Контрольно-Кассовый Чек [10:20:02]line ПРОДАЖА [10:20:02]line Товар: 50173808 [10:20:02]line Жев Orbit Sweet Mint [10:20:02]line 1.000 * 45.00 [10:20:02]line = 45.00 [10:20:02]line НДС 12% НСП 1% [10:20:02]line > о реализуемом товаре [10:20:02]line ИТОГО: 45.00 [10:20:02]line НСП 1% : 0.40 [10:20:02]line НДС 12% : 4.78 [10:20:02]line Наличными: 45.00 [10:20:02]line Безнал.: 0.00 [10:20:02]line Место: АЗС № 163 "Партнер Нефть" [10:20:02]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [10:20:02]line СНО: Общий режим [10:20:02]line Чек 42 20.10.2024 10:20 [10:20:02]line Смена: 526 ФФД: 1.0 [10:20:02]line ЗНМ: 0300000101 [10:20:02]line РНМ: 0000000000091770 [10:20:02]line Версия ККМ: 001 [10:20:02]line ФМ: 0000000000871749 [10:20:02]line ФД: 69752 [10:20:02]line ФПД: 221715124311460 [10:20:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102002&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69752&fm=221715124311460&tin=02508201610067®Number=0000000000091770&sum=4500 [10:20:03]OFD Sender: Processing packet 69752 [packets to send 32, broken 31] [10:20:03]ProducePacketName [10:20:03]name=ofd_packets/00069752 [10:20:03]OFD Sender: To server: pG, [10:20:03]CommunicateWithHost lk.salyk.kg:30040 [10:20:03]ConnectInit lk.salyk.kg [10:20:03]line 0 [10:20:03]written 0, free lines is 4095 [10:20:03]Connected sock=10 [10:20:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 18 01 00 00 81 BC 10 01 CB 46 5A 03 01 00 03 00 04 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 52 D9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 78 10 01 00 35 04 06 00 C9 A6 13 39 D5 A4 3A 77 26 9F A7 CB F2 EA [10:20:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 8E 10 47 00 14 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 31 37 34 39 10 04 04 00 78 10 01 00 F4 03 04 00 D5 7E 14 67 B6 04 01 00 00 04 8B 7E 1D DB 11 BE FA [10:20:03]CommunicateWithHost err = 0 [10:20:03]CheckOFDResponse [10:20:03]1017 (14) - 77093643461234 [10:20:03]1041 (16) - 0000000000871749 [10:20:03]1040 (4) - 69752 [10:20:03]1012 (4) - 20.10.2024 03:53 [10:20:03]1206 (1) - 0 [10:20:03]OFD Sender: Remove packet 69752 [10:20:03]ProducePacketName [10:20:03]name=ofd_packets/00069752 [10:20:03]NVStorageDeleteData [10:20:03]Write to MH i2c: 01 00 00 30 0A 3A [10:20:03]Write i2c OK [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: 01 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: 01 07 00 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: 01 07 00 30 0A 00 00 00 00 00 05 0D 53 [10:20:03]RasterBufferAndPrint [10:20:03]line [10:20:03]line [10:20:03]line [10:20:03]line [10:20:03]line [10:20:03]written 0, free lines is 3340 [10:20:03]MH_Cut [10:20:03]Write to MH i2c: D1 01 00 37 0A 01 13 [10:20:03]Write i2c OK [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: D1 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: D1 01 00 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: D1 01 00 37 0A 00 12 [10:20:03]Write to MH i2c: 01 00 00 38 0A 42 [10:20:03]Write i2c OK [10:20:03]MH_I2C_Read... [10:20:03]OFD Sender: No OFD packet to send [10:20:04]*** Cut start [10:20:04]*** Partial cut [10:20:04]*** CUTSNS_PIN = 1 [10:20:04]*** CUTSNS_PIN = 0 [10:20:04]*** Brake cut motor [10:20:05]Read from MH i2c: 01 [10:20:05]*** Stop cut motor [10:20:05]*** Cut end [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: 01 07 00 [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: 01 07 00 38 0A 00 00 00 00 00 FF 0F 57 [10:20:05]process_action close_receipt done [10:20:05]requested_data is exist [10:20:05]produce_requested_data [10:20:05]requested_item fm.sn is exist - process it [10:20:05]wFMCommunicate request_size=4 [10:20:05]MH_SAM_APDU [10:20:05]CAPDU: 80 11 00 00 [10:20:05]Write to MH i2c: E2 08 00 39 0A 80 11 00 00 00 00 00 00 BD [10:20:05]Write i2c OK [10:20:05]MH_I2C_Read... [10:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:05]Read from MH i2c: E2 [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: E2 17 00 [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: E2 17 00 39 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 14 [10:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [10:20:05]wFMCommunicate OK [10:20:05]requested_item fd.num is exist - process it [10:20:05]SAM_PROTO_GetFieldsCounters [10:20:05]wFMCommunicate request_size=4 [10:20:05]MH_SAM_APDU [10:20:05]CAPDU: 80 13 00 00 [10:20:05]Write to MH i2c: E2 08 00 3A 0A 80 13 00 00 00 00 00 00 C0 [10:20:05]Write i2c OK [10:20:05]MH_I2C_Read... [10:20:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:05]Read from MH i2c: E2 [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: E2 62 00 [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: E2 62 00 3A 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 78 10 01 00 0E 04 04 00 0E 02 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 FB [10:20: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 78 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:05]wFMCommunicate OK [10:20:05]SAM_PROTO_GetFieldsCounters done [10:20:05]requested_item shift.num is exist - process it [10:20:05]requested_item shift.opened is exist - process it [10:20:05]req_shift_opened [10:20:05]FM_GetShiftState [10:20:05]SAM_PROTO_GetShiftState [10:20:05]wFMCommunicate request_size=4 [10:20:05]MH_SAM_APDU [10:20:05]CAPDU: 80 13 01 00 [10:20:05]Write to MH i2c: E2 08 00 3B 0A 80 13 01 00 00 00 00 00 C2 [10:20:05]Write i2c OK [10:20:05]MH_I2C_Read... [10:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:05]Read from MH i2c: E2 [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: E2 0E 00 [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: E2 0E 00 3B 0A 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 54 [10:20:05]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [10:20:05]wFMCommunicate OK [10:20:05]SAM_PROTO_GetShiftState done [10:20:05]FM_GetShiftState done [10:20:05]req_shift_opened done [10:20:05]requested_item shift.open_date is exist - process it [10:20:05]req_shift_open_date [10:20:05]req_shift_open_date done [10:20:05]produce_requested_data done [10:20:05]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69752,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [10:20:05]process_action_free close_receipt [10:20:05]json_value_free [10:20:05]json_value_free done [10:20:05]process_json_proto returns [10:20:05]Send response to host [10:20:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69752,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [10:20:05]free response buf [10:20:05]execute_script done [10:20:05]execute_script returns [10:20:05]free content buf [10:20:05]Sock 9.Close socket [10:20:05]Sock 9.Thread stoped [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:26]accept exits with 7 [10:20:26]New connection [10:20:26]New thread 3066486116 created [10:20:26]Thread 3066629476 joined [10:20:26]Waiting for new connection... [10:20:26] Sock 7.Parse request [10:20:26]Sock 7.Check first char [10:20:26]Sock 7.First char is OK [10:20:26]request: POST /json_proto HTTP/1.0 [10:20:26]Method: POST [10:20:26]URL: /json_proto [10:20:26]Method is POST - this is cgi request [10:20:26]url: /json_proto [10:20:26]query_string will be loaded in cgi processing [10:20:26]execute_cgi json_proto POST (null) [10:20:26]execute_cgi path=json_proto method=POST [10:20:26]POST find Content-Length [10:20:26]Host: 172.17.52.196:8080 [10:20:26]Content-Length: 962 [10:20:26]Content-Type: application/json [10:20:26] [10:20:26]POST finish read [10:20:26]Found Content-Length = 962 [10:20:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127155", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 178.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:26]execute_script... [10:20: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)127155", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 178.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:26]POST & json_proto [10:20:26]process_json_proto [10:20:26]json parsed OK: [10:20:26]protocol is kg_v1.0 [10:20:26]action value=close_receipt [10:20:26]process_action close_receipt [10:20:26]cmd_close_receipt [10:20:26]MH_GetDate [10:20:26]Write to MH i2c: F0 00 00 3C 0A 35 [10:20:26]Write i2c OK [10:20:26]MH_I2C_Read... [10:20:26]Read from MH i2c: F0 [10:20:26]MH_I2C_Read... [10:20:26]Read from MH i2c: F0 09 00 [10:20:26]MH_I2C_Read... [10:20:26]Read from MH i2c: F0 09 00 3C 0A 00 6B D9 14 67 60 05 E4 66 AC [10:20:26]GetLastDocTimeStamp 1729419602 [10:20:26]current date 1729419627 [10:20:26]FM_GetShiftState [10:20:26]SAM_PROTO_GetShiftState [10:20:26]wFMCommunicate request_size=4 [10:20:26]MH_SAM_APDU [10:20:26]CAPDU: 80 13 01 00 [10:20:26]Write to MH i2c: E2 08 00 3D 0A 80 13 01 00 00 00 00 00 C4 [10:20:26]Write i2c OK [10:20:26]MH_I2C_Read... [10:20:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:26]Read from MH i2c: E2 [10:20:26]MH_I2C_Read... [10:20:26]Read from MH i2c: E2 0E 00 [10:20:26]MH_I2C_Read... [10:20:26]Read from MH i2c: E2 0E 00 3D 0A 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 56 [10:20:26]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [10:20:26]wFMCommunicate OK [10:20:26]SAM_PROTO_GetShiftState done [10:20:26]FM_GetShiftState done [10:20:26]opened in 1729384380 [10:20:26]opened+sec_in_day 1729470780 [10:20:26]quantity*price = 8900 [10:20:26]sum+1 = 8901 [10:20:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700040114120 Султан чай 1л. чер персик 1.000 * 89.00 = 89.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 178.00 НСП 1% : 1.58 НДС 12% : 18.90 Наличными: 178.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 43 20.10.2024 10:20 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69753 ФПД: 154320078304023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102027&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69753&fm=154320078304023&tin=02508201610067®Number=0000000000091770&sum=17800 0 [10:20:27]StoreToDocumentArchive [10:20:27]shift 526 fd 69753 [10:20:27]save to /storage/0526/doc_00069753 [10:20:27]save last doc name /storage/0526/doc_00069753 to /storage/kkm_last_doc_name [10:20:27]save OK [10:20:27]Clear old archive folders... [10:20:27]ProcessDocumentItem done err = 0, tmpTLVsize=400 [10:20:27]tlvbuf is 00973F90 [10:20:27]SAM_PROTO_ClearQueue [10:20:27]wFMCommunicate request_size=4 [10:20:27]MH_SAM_APDU [10:20:27]CAPDU: 80 09 00 00 [10:20:27]Write to MH i2c: E2 08 00 4A 0A 80 09 00 00 00 00 00 00 C6 [10:20:27]Write i2c OK [10:20:27]MH_I2C_Read... [10:20:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:27]Read from MH i2c: E2 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 03 00 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 03 00 4A 0A 00 90 00 C8 [10:20:27]RAPDU: 90 00 [10:20:27]wFMCommunicate OK [10:20:27]SAM_PROTO_ClearQueue done [10:20:27]KKMCreateOFDPacket [10:20:27]OFDProtocolAddRootSTLVToBuf [10:20:27]FM_MakeSignedData [10:20:27]FM_MakeSignedData [10:20:27]SAM_PROTO_SignData [10:20:27]wFMCommunicate request_size=4 [10:20:27]MH_SAM_APDU [10:20:27]CAPDU: 80 0D 01 02 [10:20:27]Write to MH i2c: E2 08 00 4B 0A 80 0D 01 02 00 00 00 00 CE [10:20:27]Write i2c OK [10:20:27]MH_I2C_Read... [10:20:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:27]Read from MH i2c: E2 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 03 00 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 03 00 4B 0A 00 90 00 C9 [10:20:27]RAPDU: 90 00 [10:20:27]wFMCommunicate OK [10:20:27]wFMCommunicate request_size=255 [10:20:27]MH_SAM_APDU [10:20:27]CAPDU: 80 0D 02 02 FA 03 00 90 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 45 00 00 00 00 EB [10:20:27]Write to MH i2c: E2 02 01 4C 0A 80 0D 02 02 FA 00 03 00 90 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 45 00 00 00 00 EB 00 00 08 [10:20:27]Write i2c OK [10:20:27]MH_I2C_Read... [10:20:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:27]Read from MH i2c: E2 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 03 00 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 03 00 4C 0A 00 90 00 CA [10:20:27]RAPDU: 90 00 [10:20:27]wFMCommunicate OK [10:20:27]wFMCommunicate request_size=159 [10:20:27]MH_SAM_APDU [10:20:27]CAPDU: 80 0D 02 02 9A 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 6B D9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 79 10 01 00 35 04 06 00 8C 5A 71 72 F3 17 [10:20:27]Write to MH i2c: E2 A2 00 4D 0A 80 0D 02 02 9A 00 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 6B D9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 79 10 01 00 35 04 06 00 8C 5A 71 72 F3 17 00 00 85 [10:20:27]Write i2c OK [10:20:27]MH_I2C_Read... [10:20:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:27]Read from MH i2c: E2 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 03 00 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 03 00 4D 0A 00 90 00 CB [10:20:27]RAPDU: 90 00 [10:20:27]wFMCommunicate OK [10:20:27]wFMCommunicate request_size=4 [10:20:27]MH_SAM_APDU [10:20:27]CAPDU: 80 0D 03 02 [10:20:27]Write to MH i2c: E2 08 00 4E 0A 80 0D 03 02 00 00 00 00 D3 [10:20:27]Write i2c OK [10:20:27]MH_I2C_Read... [10:20:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:28]Read from MH i2c: E2 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 0B 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 0B 00 4E 0A 00 0D 77 ED 6F AB FB 83 A4 90 00 81 [10:20:28]RAPDU: 0D 77 ED 6F AB FB 83 A4 90 00 [10:20:28]wFMCommunicate OK [10:20:28]SAM_PROTO_SignData done [10:20:28]FM_MakeSignedData done [10:20:28]CreateOFDProtocolMessage [10:20:28]wFMCommunicate request_size=4 [10:20:28]MH_SAM_APDU [10:20:28]CAPDU: 80 11 00 00 [10:20:28]Write to MH i2c: E2 08 00 4F 0A 80 11 00 00 00 00 00 00 D3 [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:28]Read from MH i2c: E2 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 17 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 17 00 4F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 2A [10:20:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [10:20:28]wFMCommunicate OK [10:20:28]CreateOFDProtocolMessage done [10:20:28]OFDSenderStorePacket 69753 [10:20:28]StoreOFDPacket docnum=69753 [10:20:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 A4 01 00 00 56 D4 9C 01 1E 97 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 6B D9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 79 10 01 00 35 04 06 00 8C 5A 71 72 F3 17 0D 77 ED 6F AB FB 83 A4 [10:20:28]CheckFolder [10:20:28]dirname=/storage/ofd_packets [10:20:28]CheckFolder done [10:20:28]ProducePacketName [10:20:28]name=ofd_packets/00069753 [10:20:28]NVStorageSaveData ofd_packets/00069753 [10:20:28]File name is /storage/ofd_packets/00069753 [10:20:28]Write 450 bytes [10:20:28]NVStorageSaveData done [10:20:28]OFDSenderStorePacket done [10:20:28]KKMCreateOFDPacket done [10:20:28]NVStorageSaveData kkm_last_timestamp [10:20:28]File name is /storage/kkm_last_timestamp [10:20:28]Write 4 bytes [10:20:28]NVStorageSaveData done [10:20:28]ExternCall_PrintAddStr [10:20:28]wPrintStart [10:20:28]Write to MH i2c: 01 00 00 50 0A 5A [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: 01 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: 01 07 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: 01 07 00 50 0A 00 00 00 00 00 FF 0F 6F [10:20:28]RasterBufferAndPrint [10:20:28]line Счет N : (3)127155 [10:20:28]line ИНН: 02508201610067 [10:20:28]line Контрольно-Кассовый Чек [10:20:28]line ПРОДАЖА [10:20:28]line Товар: 4700040114137 [10:20:28]line Султан чай 1л. зел лимон [10:20:28]line 1.000 * 89.00 [10:20:28]line = 89.00 [10:20:28]line НДС 12% НСП 1% [10:20:28]line > о реализуемом товаре [10:20:28]line Товар: 4700040114120 [10:20:28]line Султан чай 1л. чер персик [10:20:28]line 1.000 * 89.00 [10:20:28]line = 89.00 [10:20:28]line НДС 12% НСП 1% [10:20:28]line > о реализуемом товаре [10:20:28]line ИТОГО: 178.00 [10:20:28]line НСП 1% : 1.58 [10:20:28]line НДС 12% : 18.90 [10:20:28]line Наличными: 178.00 [10:20:28]line Безнал.: 0.00 [10:20:28]line Место: АЗС № 163 "Партнер Нефть" [10:20:28]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [10:20:28]line СНО: Общий режим [10:20:28]line Чек 43 20.10.2024 10:20 [10:20:28]line Смена: 526 ФФД: 1.0 [10:20:28]line ЗНМ: 0300000101 [10:20:28]line РНМ: 0000000000091770 [10:20:28]line Версия ККМ: 001 [10:20:28]line ФМ: 0000000000871749 [10:20:28]line ФД: 69753 [10:20:28]line ФПД: 154320078304023 [10:20:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102027&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69753&fm=154320078304023&tin=02508201610067®Number=0000000000091770&sum=17800 [10:20:28]line 0 [10:20:28]OFD Sender: Processing packet 69753 [packets to send 32, broken 31] [10:20:28]ProducePacketName [10:20:28]name=ofd_packets/00069753 [10:20:28]OFD Sender: To server: pG, [10:20:28]CommunicateWithHost lk.salyk.kg:30040 [10:20:28]ConnectInit lk.salyk.kg [10:20:28]written 0, free lines is 4095 [10:20:28]Connected sock=10 [10:20:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 A4 01 00 00 56 D4 9C 01 1E 97 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 6B D9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 79 10 01 00 35 04 06 00 8C 5A 71 72 F3 17 0D 77 ED 6F AB FB 83 A4 [10:20:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 A1 21 47 00 F1 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 79 10 01 00 F4 03 04 00 EF 7E 14 67 B6 04 01 00 00 25 68 18 2D 5A 5D 8D 91 [10:20:28]CommunicateWithHost err = 0 [10:20:28]CheckOFDResponse [10:20:28]1017 (14) - 77093643461234 [10:20:28]1041 (16) - 0000000000871749 [10:20:28]1040 (4) - 69753 [10:20:28]1012 (4) - 20.10.2024 03:54 [10:20:28]1206 (1) - 0 [10:20:28]OFD Sender: Remove packet 69753 [10:20:28]ProducePacketName [10:20:28]name=ofd_packets/00069753 [10:20:28]NVStorageDeleteData [10:20:28]Write to MH i2c: 01 00 00 7E 0A 88 [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: 01 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: 01 07 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: 01 07 00 7E 0A 00 00 00 00 00 B6 0C 51 [10:20:28]RasterBufferAndPrint [10:20:28]line [10:20:28]line [10:20:28]line [10:20:28]line [10:20:28]line [10:20:28]written 0, free lines is 3262 [10:20:28]MH_Cut [10:20:28]Write to MH i2c: D1 01 00 85 0A 01 61 [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: D1 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: D1 01 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: D1 01 00 85 0A 00 60 [10:20:28]Write to MH i2c: 01 00 00 86 0A 90 [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:29]OFD Sender: No OFD packet to send [10:20:29]*** Cut start [10:20:29]*** Partial cut [10:20:29]*** CUTSNS_PIN = 1 [10:20:29]*** CUTSNS_PIN = 0 [10:20:30]*** Brake cut motor [10:20:30]Read from MH i2c: 01 [10:20:30]MH_I2C_Read... [10:20:30]*** Stop cut motor [10:20:30]*** Cut end [10:20:30]Read from MH i2c: 01 07 00 [10:20:30]MH_I2C_Read... [10:20:30]Read from MH i2c: 01 07 00 86 0A 00 00 00 00 00 FF 0F A5 [10:20:30]process_action close_receipt done [10:20:30]requested_data is exist [10:20:30]produce_requested_data [10:20:30]requested_item fm.sn is exist - process it [10:20:30]wFMCommunicate request_size=4 [10:20:30]MH_SAM_APDU [10:20:30]CAPDU: 80 11 00 00 [10:20:30]Write to MH i2c: E2 08 00 87 0A 80 11 00 00 00 00 00 00 0B [10:20:30]Write i2c OK [10:20:30]MH_I2C_Read... [10:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:30]Read from MH i2c: E2 [10:20:30]MH_I2C_Read... [10:20:30]Read from MH i2c: E2 17 00 [10:20:30]MH_I2C_Read... [10:20:30]Read from MH i2c: E2 17 00 87 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 62 [10:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [10:20:30]wFMCommunicate OK [10:20:30]requested_item fd.num is exist - process it [10:20:30]SAM_PROTO_GetFieldsCounters [10:20:30]wFMCommunicate request_size=4 [10:20:30]MH_SAM_APDU [10:20:30]CAPDU: 80 13 00 00 [10:20:30]Write to MH i2c: E2 08 00 88 0A 80 13 00 00 00 00 00 00 0E [10:20:30]Write i2c OK [10:20:30]MH_I2C_Read... [10:20:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:30]Read from MH i2c: E2 [10:20:30]MH_I2C_Read... [10:20:30]Read from MH i2c: E2 62 00 [10:20:30]MH_I2C_Read... [10:20:30]Read from MH i2c: E2 62 00 88 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 79 10 01 00 0E 04 04 00 0E 02 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 4D [10:20:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 79 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:30]wFMCommunicate OK [10:20:30]SAM_PROTO_GetFieldsCounters done [10:20:30]requested_item shift.num is exist - process it [10:20:30]requested_item shift.opened is exist - process it [10:20:30]req_shift_opened [10:20:30]FM_GetShiftState [10:20:30]SAM_PROTO_GetShiftState [10:20:30]wFMCommunicate request_size=4 [10:20:30]MH_SAM_APDU [10:20:30]CAPDU: 80 13 01 00 [10:20:30]Write to MH i2c: E2 08 00 89 0A 80 13 01 00 00 00 00 00 10 [10:20:30]Write i2c OK [10:20:30]MH_I2C_Read... [10:20:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:30]Read from MH i2c: E2 [10:20:30]MH_I2C_Read... [10:20:30]Read from MH i2c: E2 0E 00 [10:20:30]MH_I2C_Read... [10:20:30]Read from MH i2c: E2 0E 00 89 0A 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 A2 [10:20:30]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [10:20:30]wFMCommunicate OK [10:20:30]SAM_PROTO_GetShiftState done [10:20:30]FM_GetShiftState done [10:20:30]req_shift_opened done [10:20:30]requested_item shift.open_date is exist - process it [10:20:30]req_shift_open_date [10:20:30]req_shift_open_date done [10:20:30]produce_requested_data done [10:20:30]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69753,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [10:20:30]process_action_free close_receipt [10:20:30]json_value_free [10:20:30]json_value_free done [10:20:30]process_json_proto returns [10:20:30]Send response to host [10:20:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69753,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [10:20:30]free response buf [10:20:30]execute_script done [10:20:30]execute_script returns [10:20:30]free content buf [10:20:30]Sock 7.Close socket [10:20:30]Sock 7.Thread stoped [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]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:23]accept exits with 9 [10:29:23]New connection [10:29:23]New thread 3066629476 created [10:29:23]Thread 3066486116 joined [10:29:23]Waiting for new connection... [10:29:23] Sock 9.Parse request [10:29:23]Sock 9.Check first char [10:29:23]Sock 9.First char is OK [10:29:23]request: POST /json_proto HTTP/1.0 [10:29:23]Method: POST [10:29:23]URL: /json_proto [10:29:23]Method is POST - this is cgi request [10:29:23]url: /json_proto [10:29:23]query_string will be loaded in cgi processing [10:29:23]execute_cgi json_proto POST (null) [10:29:23]execute_cgi path=json_proto method=POST [10:29:23]POST find Content-Length [10:29:23]Host: 172.17.52.196:8080 [10:29:23]Content-Length: 620 [10:29:23]Content-Type: application/json [10:29:23] [10:29:23]POST finish read [10:29:23]Found Content-Length = 620 [10:29:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127156", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:23]execute_script... [10:29:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127156", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:23]POST & json_proto [10:29:23]process_json_proto [10:29:23]json parsed OK: [10:29:23]protocol is kg_v1.0 [10:29:23]action value=close_receipt [10:29:23]process_action close_receipt [10:29:23]cmd_close_receipt [10:29:23]MH_GetDate [10:29:23]Write to MH i2c: F0 00 00 8A 0A 83 [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: F0 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: F0 09 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: F0 09 00 8A 0A 00 84 DB 14 67 60 05 E4 66 15 [10:29:23]GetLastDocTimeStamp 1729419627 [10:29:23]current date 1729420164 [10:29:23]FM_GetShiftState [10:29:23]SAM_PROTO_GetShiftState [10:29:23]wFMCommunicate request_size=4 [10:29:23]MH_SAM_APDU [10:29:23]CAPDU: 80 13 01 00 [10:29:23]Write to MH i2c: E2 08 00 8B 0A 80 13 01 00 00 00 00 00 12 [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 0E 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 0E 00 8B 0A 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 A4 [10:29:23]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [10:29:23]wFMCommunicate OK [10:29:23]SAM_PROTO_GetShiftState done [10:29:23]FM_GetShiftState done [10:29:23]opened in 1729384380 [10:29:23]opened+sec_in_day 1729470780 [10:29:23]quantity*price = 13900 [10:29:23]sum+1 = 13901 [10:29:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 44 20.10.2024 10:29 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69754 ФПД: 157205762569444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102924&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69754&fm=157205762569444&tin=02508201610067®Number=0000000000091770&sum=13900 0 [10:29:24]StoreToDocumentArchive [10:29:24]shift 526 fd 69754 [10:29:24]save to /storage/0526/doc_00069754 [10:29:24]save last doc name /storage/0526/doc_00069754 to /storage/kkm_last_doc_name [10:29:24]save OK [10:29:24]Clear old archive folders... [10:29:24]ProcessDocumentItem done err = 0, tmpTLVsize=272 [10:29:24]tlvbuf is 00979110 [10:29:24]SAM_PROTO_ClearQueue [10:29:24]wFMCommunicate request_size=4 [10:29:24]MH_SAM_APDU [10:29:24]CAPDU: 80 09 00 00 [10:29:24]Write to MH i2c: E2 08 00 98 0A 80 09 00 00 00 00 00 00 14 [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:24]Read from MH i2c: E2 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 98 0A 00 90 00 16 [10:29:24]RAPDU: 90 00 [10:29:24]wFMCommunicate OK [10:29:24]SAM_PROTO_ClearQueue done [10:29:24]KKMCreateOFDPacket [10:29:24]OFDProtocolAddRootSTLVToBuf [10:29:24]FM_MakeSignedData [10:29:24]FM_MakeSignedData [10:29:24]SAM_PROTO_SignData [10:29:24]wFMCommunicate request_size=4 [10:29:24]MH_SAM_APDU [10:29:24]CAPDU: 80 0D 01 02 [10:29:24]Write to MH i2c: E2 08 00 99 0A 80 0D 01 02 00 00 00 00 1C [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:24]Read from MH i2c: E2 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 99 0A 00 90 00 17 [10:29:24]RAPDU: 90 00 [10:29:24]wFMCommunicate OK [10:29:24]wFMCommunicate request_size=255 [10:29:24]MH_SAM_APDU [10:29:24]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 84 DB 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 [10:29:24]Write to MH i2c: E2 02 01 9A 0A 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 84 DB 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 62 [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:24]Read from MH i2c: E2 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 9A 0A 00 90 00 18 [10:29:24]RAPDU: 90 00 [10:29:24]wFMCommunicate OK [10:29:24]wFMCommunicate request_size=31 [10:29:24]MH_SAM_APDU [10:29:24]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 37 34 39 10 04 04 00 7A 10 01 00 35 04 06 00 8E FA 51 A2 74 E4 [10:29:24]Write to MH i2c: E2 22 00 9B 0A 80 0D 02 02 1A 00 30 30 38 37 31 37 34 39 10 04 04 00 7A 10 01 00 35 04 06 00 8E FA 51 A2 74 E4 00 00 AC [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:24]Read from MH i2c: E2 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 03 00 9B 0A 00 90 00 19 [10:29:24]RAPDU: 90 00 [10:29:24]wFMCommunicate OK [10:29:24]wFMCommunicate request_size=4 [10:29:24]MH_SAM_APDU [10:29:24]CAPDU: 80 0D 03 02 [10:29:24]Write to MH i2c: E2 08 00 9C 0A 80 0D 03 02 00 00 00 00 21 [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:24]Read from MH i2c: E2 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 0B 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 0B 00 9C 0A 00 C4 1A DF C6 6D A8 0D CA 90 00 91 [10:29:24]RAPDU: C4 1A DF C6 6D A8 0D CA 90 00 [10:29:24]wFMCommunicate OK [10:29:24]SAM_PROTO_SignData done [10:29:24]FM_MakeSignedData done [10:29:24]CreateOFDProtocolMessage [10:29:24]wFMCommunicate request_size=4 [10:29:24]MH_SAM_APDU [10:29:24]CAPDU: 80 11 00 00 [10:29:24]Write to MH i2c: E2 08 00 9D 0A 80 11 00 00 00 00 00 00 21 [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]OFD Sender: No OFD packet to send [10:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:24]Read from MH i2c: E2 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 17 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 17 00 9D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 78 [10:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [10:29:24]wFMCommunicate OK [10:29:24]CreateOFDProtocolMessage done [10:29:24]OFDSenderStorePacket 69754 [10:29:24]StoreOFDPacket docnum=69754 [10:29:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 AC 0E 1C 01 4E 71 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 84 DB 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7A 10 01 00 35 04 06 00 8E FA 51 A2 74 E4 C4 1A DF C6 6D A8 0D CA [10:29:24]CheckFolder [10:29:24]dirname=/storage/ofd_packets [10:29:24]CheckFolder done [10:29:24]ProducePacketName [10:29:24]name=ofd_packets/00069754 [10:29:24]NVStorageSaveData ofd_packets/00069754 [10:29:24]File name is /storage/ofd_packets/00069754 [10:29:24]Write 322 bytes [10:29:24]NVStorageSaveData done [10:29:24]OFDSenderStorePacket done [10:29:24]KKMCreateOFDPacket done [10:29:24]NVStorageSaveData kkm_last_timestamp [10:29:24]File name is /storage/kkm_last_timestamp [10:29:24]Write 4 bytes [10:29:24]NVStorageSaveData done [10:29:24]ExternCall_PrintAddStr [10:29:24]wPrintStart [10:29:24]Write to MH i2c: 01 00 00 9E 0A A8 [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: 01 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: 01 07 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: 01 07 00 9E 0A 00 00 00 00 00 FF 0F BD [10:29:24]RasterBufferAndPrint [10:29:24]line Счет N : (3)127156 [10:29:24]line ИНН: 02508201610067 [10:29:24]line Контрольно-Кассовый Чек [10:29:24]line ПРОДАЖА [10:29:24]line Товар: 48745000 [10:29:24]line Сигареты Winston Purple Mix [10:29:24]line 1.000 * 139.00 [10:29:24]line = 139.00 [10:29:24]line НДС 12% НСП 1% [10:29:24]line > о реализуемом товаре [10:29:24]line ИТОГО: 139.00 [10:29:24]line НСП 1% : 1.23 [10:29:24]line НДС 12% : 14.76 [10:29:24]line Наличными: 139.00 [10:29:24]line Безнал.: 0.00 [10:29:24]line Место: АЗС № 163 "Партнер Нефть" [10:29:24]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [10:29:24]line СНО: Общий режим [10:29:24]line Чек 44 20.10.2024 10:29 [10:29:24]line Смена: 526 ФФД: 1.0 [10:29:24]line ЗНМ: 0300000101 [10:29:24]line РНМ: 0000000000091770 [10:29:24]line Версия ККМ: 001 [10:29:24]line ФМ: 0000000000871749 [10:29:24]line ФД: 69754 [10:29:24]line ФПД: 157205762569444 [10:29:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T102924&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69754&fm=157205762569444&tin=02508201610067®Number=0000000000091770&sum=13900 [10:29:25]line 0 [10:29:25]OFD Sender: Processing packet 69754 [packets to send 32, broken 31] [10:29:25]ProducePacketName [10:29:25]name=ofd_packets/00069754 [10:29:25]OFD Sender: To server: pG, [10:29:25]CommunicateWithHost lk.salyk.kg:30040 [10:29:25]ConnectInit lk.salyk.kg [10:29:25]written 0, free lines is 4095 [10:29:25]Connected sock=11 [10:29:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 AC 0E 1C 01 4E 71 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 84 DB 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7A 10 01 00 35 04 06 00 8E FA 51 A2 74 E4 C4 1A DF C6 6D A8 0D CA [10:29:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 CB 74 47 00 1E A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7A 10 01 00 F4 03 04 00 07 81 14 67 B6 04 01 00 00 09 F1 87 0D 93 58 40 67 [10:29:25]CommunicateWithHost err = 0 [10:29:25]CheckOFDResponse [10:29:25]1017 (14) - 77093643461234 [10:29:25]1041 (16) - 0000000000871749 [10:29:25]1040 (4) - 69754 [10:29:25]1012 (4) - 20.10.2024 04:03 [10:29:25]1206 (1) - 0 [10:29:25]OFD Sender: Remove packet 69754 [10:29:25]ProducePacketName [10:29:25]name=ofd_packets/00069754 [10:29:25]NVStorageDeleteData [10:29:25]Write to MH i2c: 01 00 00 C6 0A D0 [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 07 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 07 00 C6 0A 00 00 00 00 00 00 0D E4 [10:29:25]RasterBufferAndPrint [10:29:25]line [10:29:25]line [10:29:25]line [10:29:25]line [10:29:25]line [10:29:25]written 0, free lines is 3334 [10:29:25]MH_Cut [10:29:25]Write to MH i2c: D1 01 00 CD 0A 01 A9 [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: D1 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: D1 01 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: D1 01 00 CD 0A 00 A8 [10:29:25]Write to MH i2c: 01 00 00 CE 0A D8 [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]OFD Sender: No OFD packet to send [10:29:26]*** Cut start [10:29:26]*** Partial cut [10:29:26]*** CUTSNS_PIN = 1 [10:29:26]*** CUTSNS_PIN = 0 [10:29:26]*** Brake cut motor [10:29:27]Read from MH i2c: 01 [10:29:27]MH_I2C_Read... [10:29:27]*** Stop cut motor [10:29:27]*** Cut end [10:29:27]Read from MH i2c: 01 07 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: 01 07 00 CE 0A 00 00 00 00 00 FF 0F ED [10:29:27]process_action close_receipt done [10:29:27]requested_data is exist [10:29:27]produce_requested_data [10:29:27]requested_item fm.sn is exist - process it [10:29:27]wFMCommunicate request_size=4 [10:29:27]MH_SAM_APDU [10:29:27]CAPDU: 80 11 00 00 [10:29:27]Write to MH i2c: E2 08 00 CF 0A 80 11 00 00 00 00 00 00 53 [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:27]Read from MH i2c: E2 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 17 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 17 00 CF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 AA [10:29:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [10:29:27]wFMCommunicate OK [10:29:27]requested_item fd.num is exist - process it [10:29:27]SAM_PROTO_GetFieldsCounters [10:29:27]wFMCommunicate request_size=4 [10:29:27]MH_SAM_APDU [10:29:27]CAPDU: 80 13 00 00 [10:29:27]Write to MH i2c: E2 08 00 D0 0A 80 13 00 00 00 00 00 00 56 [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:27]Read from MH i2c: E2 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 62 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 62 00 D0 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 7A 10 01 00 0E 04 04 00 0E 02 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 99 [10:29: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 7A 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:27]wFMCommunicate OK [10:29:27]SAM_PROTO_GetFieldsCounters done [10:29:27]requested_item shift.num is exist - process it [10:29:27]requested_item shift.opened is exist - process it [10:29:27]req_shift_opened [10:29:27]FM_GetShiftState [10:29:27]SAM_PROTO_GetShiftState [10:29:27]wFMCommunicate request_size=4 [10:29:27]MH_SAM_APDU [10:29:27]CAPDU: 80 13 01 00 [10:29:27]Write to MH i2c: E2 08 00 D1 0A 80 13 01 00 00 00 00 00 58 [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:27]Read from MH i2c: E2 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 0E 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 0E 00 D1 0A 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 EA [10:29:27]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [10:29:27]wFMCommunicate OK [10:29:27]SAM_PROTO_GetShiftState done [10:29:27]FM_GetShiftState done [10:29:27]req_shift_opened done [10:29:27]requested_item shift.open_date is exist - process it [10:29:27]req_shift_open_date [10:29:27]req_shift_open_date done [10:29:27]produce_requested_data done [10:29:27]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69754,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [10:29:27]process_action_free close_receipt [10:29:27]json_value_free [10:29:27]json_value_free done [10:29:27]process_json_proto returns [10:29:27]Send response to host [10:29:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69754,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [10:29:27]free response buf [10:29:27]execute_script done [10:29:27]execute_script returns [10:29:27]free content buf [10:29:27]Sock 9.Close socket [10:29:27]Sock 9.Thread stoped [10:29:30]OFD Sender: No OFD packet to send [10:29:35]OFD Sender: No OFD packet to send [10:29:40]OFD Sender: No OFD packet to send [10:29:45]OFD Sender: No OFD packet to send [10:29:50]OFD Sender: No OFD packet to send [10:29:55]OFD Sender: No OFD packet to send [10:30:00]OFD Sender: No OFD packet to send [10:30:05]OFD Sender: No OFD packet to send [10:30:10]OFD Sender: No OFD packet to send [10:30:15]OFD Sender: No OFD packet to send [10:30:20]OFD Sender: No OFD packet to send [10:30:25]OFD Sender: No OFD packet to send [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48: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:35]accept exits with 7 [10:48:35]New connection [10:48:35]New thread 3066486116 created [10:48:35]Thread 3066629476 joined [10:48:35]Waiting for new connection... [10:48:35] Sock 7.Parse request [10:48:35]Sock 7.Check first char [10:48:35]Sock 7.First char is OK [10:48:35]request: POST /json_proto HTTP/1.0 [10:48:35]Method: POST [10:48:35]URL: /json_proto [10:48:35]Method is POST - this is cgi request [10:48:35]url: /json_proto [10:48:35]query_string will be loaded in cgi processing [10:48:35]execute_cgi json_proto POST (null) [10:48:35]execute_cgi path=json_proto method=POST [10:48:35]POST find Content-Length [10:48:35]Host: 172.17.52.196:8080 [10:48:35]Content-Length: 215 [10:48:35]Content-Type: application/json [10:48:35] [10:48:35]POST finish read [10:48:35]Found Content-Length = 215 [10:48:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:35]execute_script... [10:48:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:35]POST & json_proto [10:48:35]process_json_proto [10:48:35]json parsed OK: [10:48:35]protocol is kg_v1.0 [10:48:35]action value=get_value [10:48:35]process_action get_value [10:48:35]cmd_get_value [10:48:35]process_action get_value done [10:48:35]requested_data is exist [10:48:35]produce_requested_data [10:48:35]requested_item kkm.sn is exist - process it [10:48:35]requested_item kkm.ver is exist - process it [10:48:35]requested_item fm.sn is exist - process it [10:48:35]wFMCommunicate request_size=4 [10:48:35]MH_SAM_APDU [10:48:35]CAPDU: 80 11 00 00 [10:48:35]Write to MH i2c: E2 08 00 D2 0A 80 11 00 00 00 00 00 00 56 [10:48:35]Write i2c OK [10:48:35]MH_I2C_Read... [10:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:36]Read from MH i2c: E2 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: E2 17 00 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: E2 17 00 D2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 AD [10:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [10:48:36]wFMCommunicate OK [10:48:36]requested_item fd.num is exist - process it [10:48:36]SAM_PROTO_GetFieldsCounters [10:48:36]wFMCommunicate request_size=4 [10:48:36]MH_SAM_APDU [10:48:36]CAPDU: 80 13 00 00 [10:48:36]Write to MH i2c: E2 08 00 D3 0A 80 13 00 00 00 00 00 00 59 [10:48:36]Write i2c OK [10:48:36]MH_I2C_Read... [10:48:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:36]Read from MH i2c: E2 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: E2 62 00 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: E2 62 00 D3 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 7A 10 01 00 0E 04 04 00 0E 02 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 9C [10:48:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 7A 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:36]wFMCommunicate OK [10:48:36]SAM_PROTO_GetFieldsCounters done [10:48:36]requested_item shift.num is exist - process it [10:48:36]requested_item shift.opened is exist - process it [10:48:36]req_shift_opened [10:48:36]FM_GetShiftState [10:48:36]SAM_PROTO_GetShiftState [10:48:36]wFMCommunicate request_size=4 [10:48:36]MH_SAM_APDU [10:48:36]CAPDU: 80 13 01 00 [10:48:36]Write to MH i2c: E2 08 00 D4 0A 80 13 01 00 00 00 00 00 5B [10:48:36]Write i2c OK [10:48:36]MH_I2C_Read... [10:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:36]Read from MH i2c: E2 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: E2 0E 00 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: E2 0E 00 D4 0A 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 ED [10:48:36]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [10:48:36]wFMCommunicate OK [10:48:36]SAM_PROTO_GetShiftState done [10:48:36]FM_GetShiftState done [10:48:36]req_shift_opened done [10:48:36]requested_item shift.open_date is exist - process it [10:48:36]req_shift_open_date [10:48:36]req_shift_open_date done [10:48:36]produce_requested_data done [10:48:36]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69754,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [10:48:36]process_action_free get_value [10:48:36]json_value_free [10:48:36]json_value_free done [10:48:36]process_json_proto returns [10:48:36]Send response to host [10:48:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69754,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [10:48:36]free response buf [10:48:36]execute_script done [10:48:36]execute_script returns [10:48:36]free content buf [10:48:36]Sock 7.Close socket [10:48:36]Sock 7.Thread stoped [10:48:36]accept exits with 9 [10:48:36]New connection [10:48:36]New thread 3066629476 created [10:48:36]Thread 3066486116 joined [10:48:36]Waiting for new connection... [10:48:36] Sock 9.Parse request [10:48:36]Sock 9.Check first char [10:48:36]Sock 9.First char is OK [10:48:36]request: POST /json_proto HTTP/1.0 [10:48:36]Method: POST [10:48:36]URL: /json_proto [10:48:36]Method is POST - this is cgi request [10:48:36]url: /json_proto [10:48:36]query_string will be loaded in cgi processing [10:48:36]execute_cgi json_proto POST (null) [10:48:36]execute_cgi path=json_proto method=POST [10:48:36]POST find Content-Length [10:48:36]Host: 172.17.52.196:8080 [10:48:36]Content-Length: 331 [10:48:36]Content-Type: application/json [10:48:36] [10:48:36]POST finish read [10:48:36]Found Content-Length = 331 [10:48:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:48:36]execute_script... [10:48:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:48:36]POST & json_proto [10:48:36]process_json_proto [10:48:36]json parsed OK: [10:48:36]protocol is kg_v1.0 [10:48:36]action value=get_value [10:48:36]process_action get_value [10:48:36]cmd_get_value [10:48:36]process_action get_value done [10:48:36]requested_data is exist [10:48:36]produce_requested_data [10:48:36]requested_item fm.sale.total is exist - process it [10:48:36]SAM_PROTO_GetFMData [10:48:36]wFMCommunicate request_size=4 [10:48:36]MH_SAM_APDU [10:48:36]CAPDU: 80 13 03 00 [10:48:36]Write to MH i2c: E2 08 00 D5 0A 80 13 03 00 00 00 00 00 5E [10:48:36]Write i2c OK [10:48:36]MH_I2C_Read... [10:48:36]OFD Sender: No OFD packet to send [10:48:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:48:36]Read from MH i2c: E2 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: E2 FD 00 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: E2 FD 00 D5 0A 00 C3 04 85 04 BF 04 6E 04 04 00 5E 0C 01 00 69 04 A1 00 6F 04 04 00 00 0C 01 00 B1 04 04 00 7D 41 6D 78 70 04 04 00 64 52 87 67 72 04 04 00 19 EF E5 10 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 D0 67 CA 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 1D C1 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 03 [10:48:36]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 5E 0C 01 00 69 04 A1 00 6F 04 04 00 00 0C 01 00 B1 04 04 00 7D 41 6D 78 70 04 04 00 64 52 87 67 72 04 04 00 19 EF E5 10 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 D0 67 CA 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 1D C1 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [10:48:36]wFMCommunicate OK [10:48:36]wFMCommunicate request_size=4 [10:48:36]MH_SAM_APDU [10:48:36]CAPDU: 80 17 00 00 [10:48:36]Write to MH i2c: E2 08 00 D6 0A 80 17 00 00 00 00 00 00 60 [10:48:36]Write i2c OK [10:48:36]MH_I2C_Read... [10:48:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:48:37]Read from MH i2c: E2 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: E2 FD 00 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: E2 FD 00 D6 0A 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 64 [10:48:37]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [10:48:37]wFMCommunicate OK [10:48:37]wFMCommunicate request_size=4 [10:48:37]MH_SAM_APDU [10:48:37]CAPDU: 80 17 00 00 [10:48:37]Write to MH i2c: E2 08 00 D7 0A 80 17 00 00 00 00 00 00 61 [10:48:37]Write i2c OK [10:48:37]MH_I2C_Read... [10:48:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:48:37]Read from MH i2c: E2 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: E2 FD 00 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: E2 FD 00 D7 0A 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 7F [10:48:37]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [10:48:37]wFMCommunicate OK [10:48:37]wFMCommunicate request_size=4 [10:48:37]MH_SAM_APDU [10:48:37]CAPDU: 80 17 00 00 [10:48:37]Write to MH i2c: E2 08 00 D8 0A 80 17 00 00 00 00 00 00 62 [10:48:37]Write i2c OK [10:48:37]MH_I2C_Read... [10:48:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:48:37]Read from MH i2c: E2 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: E2 FD 00 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: E2 FD 00 D8 0A 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [10:48:37]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:48:37]wFMCommunicate OK [10:48:37]wFMCommunicate request_size=4 [10:48:37]MH_SAM_APDU [10:48:37]CAPDU: 80 17 00 00 [10:48:37]Write to MH i2c: E2 08 00 D9 0A 80 17 00 00 00 00 00 00 63 [10:48:37]Write i2c OK [10:48:37]MH_I2C_Read... [10:48:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [10:48:37]Read from MH i2c: E2 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: E2 E0 00 [10:48:37]MH_I2C_Read... [10:48:38]Read from MH i2c: E2 E0 00 D9 0A 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4D [10:48:38]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:48:38]wFMCommunicate OK [10:48:38]SAM_PROTO_GetFMData done [10:48:38]requested_item fm.sale_refund.total is exist - process it [10:48:38]requested_item fm.buy.total is exist - process it [10:48:38]requested_item shift.sale.total is exist - process it [10:48:38]SAM_PROTO_GetShiftData [10:48:38]wFMCommunicate request_size=4 [10:48:38]MH_SAM_APDU [10:48:38]CAPDU: 80 13 02 00 [10:48:38]Write to MH i2c: E2 08 00 DA 0A 80 13 02 00 00 00 00 00 62 [10:48:38]Write i2c OK [10:48:38]MH_I2C_Read... [10:48:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:48:38]Read from MH i2c: E2 [10:48:38]MH_I2C_Read... [10:48:38]Read from MH i2c: E2 FD 00 [10:48:38]MH_I2C_Read... [10:48:38]Read from MH i2c: E2 FD 00 DA 0A 00 AE 04 AA 04 AA 04 6E 04 04 00 2C 00 00 00 69 04 9B 00 6F 04 04 00 2C 00 00 00 B1 04 03 00 DD D1 10 70 04 03 00 78 D0 0C 72 04 03 00 65 01 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 3F C9 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 18 26 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 3E [10:48:38]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 2C 00 00 00 69 04 9B 00 6F 04 04 00 2C 00 00 00 B1 04 03 00 DD D1 10 70 04 03 00 78 D0 0C 72 04 03 00 65 01 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 3F C9 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 18 26 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [10:48:38]wFMCommunicate OK [10:48:38]wFMCommunicate request_size=4 [10:48:38]MH_SAM_APDU [10:48:38]CAPDU: 80 17 00 00 [10:48:38]Write to MH i2c: E2 08 00 DB 0A 80 17 00 00 00 00 00 00 65 [10:48:38]Write i2c OK [10:48:38]MH_I2C_Read... [10:48:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:48:38]Read from MH i2c: E2 [10:48:38]MH_I2C_Read... [10:48:38]Read from MH i2c: E2 FD 00 [10:48:38]MH_I2C_Read... [10:48:38]Read from MH i2c: E2 FD 00 DB 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 87 [10:48:38]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [10:48:38]wFMCommunicate OK [10:48:38]wFMCommunicate request_size=4 [10:48:38]MH_SAM_APDU [10:48:38]CAPDU: 80 17 00 00 [10:48:38]Write to MH i2c: E2 08 00 DC 0A 80 17 00 00 00 00 00 00 66 [10:48:38]Write i2c OK [10:48:38]MH_I2C_Read... [10:48:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:48:39]Read from MH i2c: E2 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: E2 FD 00 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: E2 FD 00 DC 0A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 1D [10:48:39]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [10:48:39]wFMCommunicate OK [10:48:39]wFMCommunicate request_size=4 [10:48:39]MH_SAM_APDU [10:48:39]CAPDU: 80 17 00 00 [10:48:39]Write to MH i2c: E2 08 00 DD 0A 80 17 00 00 00 00 00 00 67 [10:48:39]Write i2c OK [10:48:39]MH_I2C_Read... [10:48:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:48:39]Read from MH i2c: E2 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: E2 FD 00 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: E2 FD 00 DD 0A 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 D9 [10:48:39]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [10:48:39]wFMCommunicate OK [10:48:39]wFMCommunicate request_size=4 [10:48:39]MH_SAM_APDU [10:48:39]CAPDU: 80 17 00 00 [10:48:39]Write to MH i2c: E2 08 00 DE 0A 80 17 00 00 00 00 00 00 68 [10:48:39]Write i2c OK [10:48:39]MH_I2C_Read... [10:48:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:48:39]Read from MH i2c: E2 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: E2 CB 00 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: E2 CB 00 DE 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 51 [10:48:39]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:48:39]wFMCommunicate OK [10:48:39]SAM_PROTO_GetShiftData done [10:48:39]requested_item shift.sale.total_cash is exist - process it [10:48:39]requested_item shift.sale_refund.total is exist - process it [10:48:39]requested_item shift.sale_refund.total_cash is exist - process it [10:48:39]requested_item shift.buy.total is exist - process it [10:48:39]requested_item shift.buy.total_cash is exist - process it [10:48:39]produce_requested_data done [10:48:39]produce_requested_data return {"fm.sale.total":20204261.09,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":11023.01,"shift.sale.total_cash":8398.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:48:39]process_action_free get_value [10:48:39]json_value_free [10:48:39]json_value_free done [10:48:39]process_json_proto returns [10:48:39]Send response to host [10:48:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20204261.09,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":11023.01,"shift.sale.total_cash":8398.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:48:39]free response buf [10:48:39]execute_script done [10:48:39]execute_script returns [10:48:39]free content buf [10:48:39]Sock 9.Close socket [10:48:39]Sock 9.Thread stoped [10:48:41]OFD Sender: No OFD packet to send [10:48:42]accept exits with 7 [10:48:42]New connection [10:48:42]New thread 3066486116 created [10:48:42]Thread 3066629476 joined [10:48:42]Waiting for new connection... [10:48:42] Sock 7.Parse request [10:48:42]Sock 7.Check first char [10:48:42]Sock 7.First char is OK [10:48:42]request: POST /json_proto HTTP/1.0 [10:48:42]Method: POST [10:48:42]URL: /json_proto [10:48:42]Method is POST - this is cgi request [10:48:42]url: /json_proto [10:48:42]query_string will be loaded in cgi processing [10:48:42]execute_cgi json_proto POST (null) [10:48:42]execute_cgi path=json_proto method=POST [10:48:42]POST find Content-Length [10:48:42]Host: 172.17.52.196:8080 [10:48:42]Content-Length: 981 [10:48:42]Content-Type: application/json [10:48:42] [10:48:42]POST finish read [10:48:42]Found Content-Length = 981 [10:48:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127157", "tax_sys" : 0, "items" : [ { "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:42]execute_script... [10:48: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)127157", "tax_sys" : 0, "items" : [ { "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:42]POST & json_proto [10:48:42]process_json_proto [10:48:42]json parsed OK: [10:48:42]protocol is kg_v1.0 [10:48:42]action value=close_receipt [10:48:42]process_action close_receipt [10:48:42]cmd_close_receipt [10:48:42]MH_GetDate [10:48:42]Write to MH i2c: F0 00 00 DF 0A D8 [10:48:42]Write i2c OK [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: F0 [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: F0 09 00 [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: F0 09 00 DF 0A 00 0B E0 14 67 60 05 E4 66 F6 [10:48:42]GetLastDocTimeStamp 1729420164 [10:48:42]current date 1729421323 [10:48:42]FM_GetShiftState [10:48:42]SAM_PROTO_GetShiftState [10:48:42]wFMCommunicate request_size=4 [10:48:42]MH_SAM_APDU [10:48:42]CAPDU: 80 13 01 00 [10:48:42]Write to MH i2c: E2 08 00 E0 0A 80 13 01 00 00 00 00 00 67 [10:48:42]Write i2c OK [10:48:42]MH_I2C_Read... [10:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:42]Read from MH i2c: E2 [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: E2 0E 00 [10:48:42]MH_I2C_Read... [10:48:42]Read from MH i2c: E2 0E 00 E0 0A 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 F9 [10:48:42]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [10:48:42]wFMCommunicate OK [10:48:42]SAM_PROTO_GetShiftState done [10:48:42]FM_GetShiftState done [10:48:42]opened in 1729384380 [10:48:42]opened+sec_in_day 1729470780 [10:48:42]quantity*price = 24000 [10:48:42]sum+1 = 24001 [10:48:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 2.000 * 50.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.00 НДС 12% : 36.11 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 45 20.10.2024 10:48 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69755 ФПД: 233596710560386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104843&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69755&fm=233596710560386&tin=02508201610067®Number=0000000000091770&sum=34000 0 [10:48:43]StoreToDocumentArchive [10:48:43]shift 526 fd 69755 [10:48:43]save to /storage/0526/doc_00069755 [10:48:43]save last doc name /storage/0526/doc_00069755 to /storage/kkm_last_doc_name [10:48:43]save OK [10:48:43]Clear old archive folders... [10:48:43]ProcessDocumentItem done err = 0, tmpTLVsize=404 [10:48:43]tlvbuf is 0095D190 [10:48:43]SAM_PROTO_ClearQueue [10:48:43]wFMCommunicate request_size=4 [10:48:43]MH_SAM_APDU [10:48:43]CAPDU: 80 09 00 00 [10:48:43]Write to MH i2c: E2 08 00 ED 0A 80 09 00 00 00 00 00 00 69 [10:48:43]Write i2c OK [10:48:43]MH_I2C_Read... [10:48:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:43]Read from MH i2c: E2 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 03 00 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 03 00 ED 0A 00 90 00 6B [10:48:43]RAPDU: 90 00 [10:48:43]wFMCommunicate OK [10:48:43]SAM_PROTO_ClearQueue done [10:48:43]KKMCreateOFDPacket [10:48:43]OFDProtocolAddRootSTLVToBuf [10:48:43]FM_MakeSignedData [10:48:43]FM_MakeSignedData [10:48:43]SAM_PROTO_SignData [10:48:43]wFMCommunicate request_size=4 [10:48:43]MH_SAM_APDU [10:48:43]CAPDU: 80 0D 01 02 [10:48:43]Write to MH i2c: E2 08 00 EE 0A 80 0D 01 02 00 00 00 00 71 [10:48:43]Write i2c OK [10:48:43]MH_I2C_Read... [10:48:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:43]Read from MH i2c: E2 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 03 00 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 03 00 EE 0A 00 90 00 6C [10:48:43]RAPDU: 90 00 [10:48:43]wFMCommunicate OK [10:48:43]wFMCommunicate request_size=255 [10:48:43]MH_SAM_APDU [10:48:43]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 [10:48:43]Write to MH i2c: E2 02 01 EF 0A 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 22 [10:48:43]Write i2c OK [10:48:43]MH_I2C_Read... [10:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:44]Read from MH i2c: E2 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 03 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 03 00 EF 0A 00 90 00 6D [10:48:44]RAPDU: 90 00 [10:48:44]wFMCommunicate OK [10:48:44]wFMCommunicate request_size=163 [10:48:44]MH_SAM_APDU [10:48:44]CAPDU: 80 0D 02 02 9E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 0B E0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7B 10 01 00 35 04 06 00 D4 74 78 F4 22 82 [10:48:44]Write to MH i2c: E2 A6 00 F0 0A 80 0D 02 02 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 0B E0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7B 10 01 00 35 04 06 00 D4 74 78 F4 22 82 00 00 21 [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:44]Read from MH i2c: E2 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 03 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 03 00 F0 0A 00 90 00 6E [10:48:44]RAPDU: 90 00 [10:48:44]wFMCommunicate OK [10:48:44]wFMCommunicate request_size=4 [10:48:44]MH_SAM_APDU [10:48:44]CAPDU: 80 0D 03 02 [10:48:44]Write to MH i2c: E2 08 00 F1 0A 80 0D 03 02 00 00 00 00 76 [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:44]Read from MH i2c: E2 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 0B 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 0B 00 F1 0A 00 66 34 95 43 B8 DB F7 8B 90 00 FE [10:48:44]RAPDU: 66 34 95 43 B8 DB F7 8B 90 00 [10:48:44]wFMCommunicate OK [10:48:44]SAM_PROTO_SignData done [10:48:44]FM_MakeSignedData done [10:48:44]CreateOFDProtocolMessage [10:48:44]wFMCommunicate request_size=4 [10:48:44]MH_SAM_APDU [10:48:44]CAPDU: 80 11 00 00 [10:48:44]Write to MH i2c: E2 08 00 F2 0A 80 11 00 00 00 00 00 00 76 [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:44]Read from MH i2c: E2 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 17 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: E2 17 00 F2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 CD [10:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [10:48:44]wFMCommunicate OK [10:48:44]CreateOFDProtocolMessage done [10:48:44]OFDSenderStorePacket 69755 [10:48:44]StoreOFDPacket docnum=69755 [10:48:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 A8 01 00 00 38 A4 A0 01 1D EA 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 0B E0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7B 10 01 00 35 04 06 00 D4 74 78 F4 22 82 66 34 95 43 B8 DB F7 8B [10:48:44]CheckFolder [10:48:44]dirname=/storage/ofd_packets [10:48:44]CheckFolder done [10:48:44]ProducePacketName [10:48:44]name=ofd_packets/00069755 [10:48:44]NVStorageSaveData ofd_packets/00069755 [10:48:44]File name is /storage/ofd_packets/00069755 [10:48:44]Write 454 bytes [10:48:44]NVStorageSaveData done [10:48:44]OFDSenderStorePacket done [10:48:44]KKMCreateOFDPacket done [10:48:44]NVStorageSaveData kkm_last_timestamp [10:48:44]File name is /storage/kkm_last_timestamp [10:48:44]Write 4 bytes [10:48:44]NVStorageSaveData done [10:48:44]ExternCall_PrintAddStr [10:48:44]wPrintStart [10:48:44]Write to MH i2c: 01 00 00 F3 0A FD [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: 01 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: 01 07 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: 01 07 00 F3 0A 00 00 00 00 00 FF 0F 12 [10:48:44]RasterBufferAndPrint [10:48:44]line Счет N : (3)127157 [10:48:44]line ИНН: 02508201610067 [10:48:44]line Контрольно-Кассовый Чек [10:48:44]line ПРОДАЖА [10:48:44]line Товар: 4630007401201 [10:48:44]line Семечки соленые ДЖИНН Великан 100гр [10:48:44]line 2.000 * 120.00 [10:48:44]line = 240.00 [10:48:44]line НДС 12% НСП 1% [10:48:44]line > о реализуемом товаре [10:48:44]line Товар: 4700000160358 [10:48:44]line Вода Легенда 1л [10:48:44]line 2.000 * 50.00 [10:48:44]line = 100.00 [10:48:44]line НДС 12% НСП 1% [10:48:44]line > о реализуемом товаре [10:48:44]line ИТОГО: 340.00 [10:48:44]line НСП 1% : 3.00 [10:48:44]line НДС 12% : 36.11 [10:48:44]line Наличными: 340.00 [10:48:44]line Безнал.: 0.00 [10:48:44]line Место: АЗС № 163 "Партнер Нефть" [10:48:44]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [10:48:44]line СНО: Общий режим [10:48:44]line Чек 45 20.10.2024 10:48 [10:48:44]line Смена: 526 ФФД: 1.0 [10:48:44]line ЗНМ: 0300000101 [10:48:44]line РНМ: 0000000000091770 [10:48:44]line Версия ККМ: 001 [10:48:44]line ФМ: 0000000000871749 [10:48:44]line ФД: 69755 [10:48:44]line ФПД: 233596710560386 [10:48:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104843&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69755&fm=233596710560386&tin=02508201610067®Number=0000000000091770&sum=34000 [10:48:44]line 0 [10:48:44]written 0, free lines is 4095 [10:48:44]OFD Sender: Processing packet 69755 [packets to send 32, broken 31] [10:48:44]ProducePacketName [10:48:44]name=ofd_packets/00069755 [10:48:44]OFD Sender: To server: pG, [10:48:44]CommunicateWithHost lk.salyk.kg:30040 [10:48:44]ConnectInit lk.salyk.kg [10:48:44]Connected sock=10 [10:48:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 A8 01 00 00 38 A4 A0 01 1D EA 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 0B E0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7B 10 01 00 35 04 06 00 D4 74 78 F4 22 82 66 34 95 43 B8 DB F7 8B [10:48:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 FF 83 47 00 A8 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7B 10 01 00 F4 03 04 00 8F 85 14 67 B6 04 01 00 00 A1 D9 24 28 02 32 C6 D8 [10:48:44]CommunicateWithHost err = 0 [10:48:44]CheckOFDResponse [10:48:44]1017 (14) - 77093643461234 [10:48:44]1041 (16) - 0000000000871749 [10:48:44]1040 (4) - 69755 [10:48:44]1012 (4) - 20.10.2024 04:22 [10:48:44]1206 (1) - 0 [10:48:44]OFD Sender: Remove packet 69755 [10:48:44]ProducePacketName [10:48:44]name=ofd_packets/00069755 [10:48:44]NVStorageDeleteData [10:48:44]Write to MH i2c: 01 00 00 22 0B 2D [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: 01 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: 01 07 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: 01 07 00 22 0B 00 00 00 00 00 98 0C D8 [10:48:44]RasterBufferAndPrint [10:48:44]line [10:48:44]line [10:48:44]line [10:48:44]line [10:48:44]line [10:48:44]written 0, free lines is 3238 [10:48:44]MH_Cut [10:48:44]Write to MH i2c: D1 01 00 29 0B 01 06 [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: D1 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: D1 01 00 [10:48:44]MH_I2C_Read... [10:48:44]Read from MH i2c: D1 01 00 29 0B 00 05 [10:48:44]Write to MH i2c: 01 00 00 2A 0B 35 [10:48:44]Write i2c OK [10:48:44]MH_I2C_Read... [10:48:45]OFD Sender: No OFD packet to send [10:48:45]*** Cut start [10:48:45]*** Partial cut [10:48:45]*** CUTSNS_PIN = 1 [10:48:45]*** CUTSNS_PIN = 0 [10:48:46]*** Brake cut motor [10:48:46]Read from MH i2c: 01 [10:48:46]MH_I2C_Read... [10:48:46]*** Stop cut motor [10:48:46]*** Cut end [10:48:46]Read from MH i2c: 01 07 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: 01 07 00 2A 0B 00 00 00 00 00 FF 0F 4A [10:48:46]process_action close_receipt done [10:48:46]requested_data is exist [10:48:46]produce_requested_data [10:48:46]requested_item fm.sn is exist - process it [10:48:46]wFMCommunicate request_size=4 [10:48:46]MH_SAM_APDU [10:48:46]CAPDU: 80 11 00 00 [10:48:46]Write to MH i2c: E2 08 00 2B 0B 80 11 00 00 00 00 00 00 B0 [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:46]Read from MH i2c: E2 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 17 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 17 00 2B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 07 [10:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [10:48:46]wFMCommunicate OK [10:48:46]requested_item fd.num is exist - process it [10:48:46]SAM_PROTO_GetFieldsCounters [10:48:46]wFMCommunicate request_size=4 [10:48:46]MH_SAM_APDU [10:48:46]CAPDU: 80 13 00 00 [10:48:46]Write to MH i2c: E2 08 00 2C 0B 80 13 00 00 00 00 00 00 B3 [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:46]Read from MH i2c: E2 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 62 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 62 00 2C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 7B 10 01 00 0E 04 04 00 0E 02 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 FA [10:48: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 7B 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:46]wFMCommunicate OK [10:48:46]SAM_PROTO_GetFieldsCounters done [10:48:46]requested_item shift.num is exist - process it [10:48:46]requested_item shift.opened is exist - process it [10:48:46]req_shift_opened [10:48:46]FM_GetShiftState [10:48:46]SAM_PROTO_GetShiftState [10:48:46]wFMCommunicate request_size=4 [10:48:46]MH_SAM_APDU [10:48:46]CAPDU: 80 13 01 00 [10:48:46]Write to MH i2c: E2 08 00 2D 0B 80 13 01 00 00 00 00 00 B5 [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:46]Read from MH i2c: E2 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 0E 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 0E 00 2D 0B 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 47 [10:48:46]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [10:48:46]wFMCommunicate OK [10:48:46]SAM_PROTO_GetShiftState done [10:48:46]FM_GetShiftState done [10:48:46]req_shift_opened done [10:48:46]requested_item shift.open_date is exist - process it [10:48:46]req_shift_open_date [10:48:46]req_shift_open_date done [10:48:46]produce_requested_data done [10:48:46]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69755,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [10:48:46]process_action_free close_receipt [10:48:46]json_value_free [10:48:46]json_value_free done [10:48:46]process_json_proto returns [10:48:46]Send response to host [10:48:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69755,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [10:48:46]free response buf [10:48:46]execute_script done [10:48:46]execute_script returns [10:48:46]free content buf [10:48:46]Sock 7.Close socket [10:48:46]Sock 7.Thread stoped [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:13]accept exits with 9 [10:49:13]New connection [10:49:13]New thread 3066629476 created [10:49:13]Thread 3066486116 joined [10:49:13]Waiting for new connection... [10:49:13] Sock 9.Parse request [10:49:13]Sock 9.Check first char [10:49:13]Sock 9.First char is OK [10:49:13]request: POST /json_proto HTTP/1.0 [10:49:13]Method: POST [10:49:13]URL: /json_proto [10:49:13]Method is POST - this is cgi request [10:49:13]url: /json_proto [10:49:13]query_string will be loaded in cgi processing [10:49:13]execute_cgi json_proto POST (null) [10:49:13]execute_cgi path=json_proto method=POST [10:49:13]POST find Content-Length [10:49:13]Host: 172.17.52.196:8080 [10:49:13]Content-Length: 683 [10:49:13]Content-Type: application/json [10:49:13] [10:49:13]POST finish read [10:49:13]Found Content-Length = 683 [10:49:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1003823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 47.170, "sum" : 3500.01, "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" ] } } [10:49:13]execute_script... [10:49:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1003823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 47.170, "sum" : 3500.01, "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" ] } } [10:49:13]POST & json_proto [10:49:13]process_json_proto [10:49:13]json parsed OK: [10:49:13]protocol is kg_v1.0 [10:49:13]action value=close_receipt [10:49:13]process_action close_receipt [10:49:13]cmd_close_receipt [10:49:13]MH_GetDate [10:49:13]Write to MH i2c: F0 00 00 2E 0B 28 [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: F0 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: F0 09 00 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: F0 09 00 2E 0B 00 2A E0 14 67 60 05 E4 66 65 [10:49:13]GetLastDocTimeStamp 1729421323 [10:49:13]current date 1729421354 [10:49:13]FM_GetShiftState [10:49:13]SAM_PROTO_GetShiftState [10:49:13]wFMCommunicate request_size=4 [10:49:13]MH_SAM_APDU [10:49:13]CAPDU: 80 13 01 00 [10:49:13]Write to MH i2c: E2 08 00 2F 0B 80 13 01 00 00 00 00 00 B7 [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:13]Read from MH i2c: E2 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 0E 00 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 0E 00 2F 0B 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 49 [10:49:13]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [10:49:13]wFMCommunicate OK [10:49:13]SAM_PROTO_GetShiftState done [10:49:13]FM_GetShiftState done [10:49:13]opened in 1729384380 [10:49:13]opened+sec_in_day 1729470780 [10:49:13]quantity*price = 350001 [10:49:13]sum+1 = 350002 [10:49:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.97 НДС 12% : 371.68 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 46 20.10.2024 10:49 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69756 ФПД: 20838268244372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104914&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69756&fm=20838268244372&tin=02508201610067®Number=0000000000091770&sum=350000 [10:49:14]StoreToDocumentArchive [10:49:14]shift 526 fd 69756 [10:49:14]save to /storage/0526/doc_00069756 [10:49:14]save last doc name /storage/0526/doc_00069756 to /storage/kkm_last_doc_name [10:49:14]save OK [10:49:14]Clear old archive folders... [10:49:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:14]tlvbuf is 00979550 [10:49:14]SAM_PROTO_ClearQueue [10:49:14]wFMCommunicate request_size=4 [10:49:14]MH_SAM_APDU [10:49:14]CAPDU: 80 09 00 00 [10:49:14]Write to MH i2c: E2 08 00 3C 0B 80 09 00 00 00 00 00 00 B9 [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 03 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 03 00 3C 0B 00 90 00 BB [10:49:14]RAPDU: 90 00 [10:49:14]wFMCommunicate OK [10:49:14]SAM_PROTO_ClearQueue done [10:49:14]KKMCreateOFDPacket [10:49:14]OFDProtocolAddRootSTLVToBuf [10:49:14]FM_MakeSignedData [10:49:14]FM_MakeSignedData [10:49:14]SAM_PROTO_SignData [10:49:14]wFMCommunicate request_size=4 [10:49:14]MH_SAM_APDU [10:49:14]CAPDU: 80 0D 01 02 [10:49:14]Write to MH i2c: E2 08 00 3D 0B 80 0D 01 02 00 00 00 00 C1 [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 03 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 03 00 3D 0B 00 90 00 BC [10:49:14]RAPDU: 90 00 [10:49:14]wFMCommunicate OK [10:49:14]wFMCommunicate request_size=255 [10:49:14]MH_SAM_APDU [10:49:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 B8 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 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 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 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 2E 00 00 00 F4 03 04 00 2A E0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7C 10 01 00 35 04 06 00 12 [10:49:14]Write to MH i2c: E2 02 01 3E 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 B8 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 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 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 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 2E 00 00 00 F4 03 04 00 2A E0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7C 10 01 00 35 04 06 00 12 00 00 CF [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 03 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 03 00 3E 0B 00 90 00 BD [10:49:14]RAPDU: 90 00 [10:49:14]wFMCommunicate OK [10:49:14]wFMCommunicate request_size=10 [10:49:14]MH_SAM_APDU [10:49:14]CAPDU: 80 0D 02 02 05 F3 C9 93 91 94 [10:49:14]Write to MH i2c: E2 0D 00 3F 0B 80 0D 02 02 05 00 F3 C9 93 91 94 00 00 42 [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 03 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 03 00 3F 0B 00 90 00 BE [10:49:14]RAPDU: 90 00 [10:49:14]wFMCommunicate OK [10:49:14]wFMCommunicate request_size=4 [10:49:14]MH_SAM_APDU [10:49:14]CAPDU: 80 0D 03 02 [10:49:14]Write to MH i2c: E2 08 00 40 0B 80 0D 03 02 00 00 00 00 C6 [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 0B 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 0B 00 40 0B 00 7F 72 2D F7 FF 7C 50 01 90 00 A8 [10:49:14]RAPDU: 7F 72 2D F7 FF 7C 50 01 90 00 [10:49:14]wFMCommunicate OK [10:49:14]SAM_PROTO_SignData done [10:49:14]FM_MakeSignedData done [10:49:14]CreateOFDProtocolMessage [10:49:14]wFMCommunicate request_size=4 [10:49:14]MH_SAM_APDU [10:49:14]CAPDU: 80 11 00 00 [10:49:14]Write to MH i2c: E2 08 00 41 0B 80 11 00 00 00 00 00 00 C6 [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 17 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 17 00 41 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 1D [10:49:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [10:49:14]wFMCommunicate OK [10:49:14]CreateOFDProtocolMessage done [10:49:14]OFDSenderStorePacket 69756 [10:49:14]StoreOFDPacket docnum=69756 [10:49:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0F 01 00 00 65 0D 07 01 4C 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 B8 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 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 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 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 2E 00 00 00 F4 03 04 00 2A E0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7C 10 01 00 35 04 06 00 12 F3 C9 93 91 94 7F 72 2D F7 FF 7C 50 01 [10:49:14]CheckFolder [10:49:14]dirname=/storage/ofd_packets [10:49:14]CheckFolder done [10:49:14]ProducePacketName [10:49:14]name=ofd_packets/00069756 [10:49:14]NVStorageSaveData ofd_packets/00069756 [10:49:14]File name is /storage/ofd_packets/00069756 [10:49:14]Write 301 bytes [10:49:14]NVStorageSaveData done [10:49:14]OFDSenderStorePacket done [10:49:14]KKMCreateOFDPacket done [10:49:14]NVStorageSaveData kkm_last_timestamp [10:49:14]File name is /storage/kkm_last_timestamp [10:49:14]Write 4 bytes [10:49:14]NVStorageSaveData done [10:49:14]ExternCall_PrintAddStr [10:49:14]wPrintStart [10:49:14]Write to MH i2c: 01 00 00 42 0B 4D [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: 01 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: 01 07 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: 01 07 00 42 0B 00 00 00 00 00 FF 0F 62 [10:49:14]RasterBufferAndPrint [10:49:14]line Счет N : (1)1003823 [10:49:14]line ИНН: 02508201610067 [10:49:14]line Контрольно-Кассовый Чек [10:49:14]line ПРОДАЖА [10:49:14]line ТРК (МРК, ГНК) : 54 [10:49:14]line Товар: 2710124500 [10:49:14]line Аи-95-К-3 [10:49:14]line 47.170 * 74.20 [10:49:14]line = 3500.01 [10:49:14]line НДС 12% НСП 1% [10:49:14]line > о реализуемом товаре [10:49:14]line ОКРУГЛЕНИЕ: -0.01 [10:49:14]line ИТОГО: 3500.00 [10:49:14]line Внесено: 3500.00 [10:49:14]line СДАЧА: 0.00 [10:49:14]line НСП 1% : 30.97 [10:49:14]line НДС 12% : 371.68 [10:49:14]line Наличными: 3500.00 [10:49:14]line Безнал.: 0.00 [10:49:14]line Место: АЗС № 163 "Партнер Нефть" [10:49:14]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [10:49:14]line СНО: Общий режим [10:49:14]line Чек 46 20.10.2024 10:49 [10:49:14]line Смена: 526 ФФД: 1.0 [10:49:14]line ЗНМ: 0300000101 [10:49:14]line РНМ: 0000000000091770 [10:49:14]line Версия ККМ: 001 [10:49:14]line ФМ: 0000000000871749 [10:49:14]line ФД: 69756 [10:49:14]line ФПД: 20838268244372 [10:49:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T104914&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69756&fm=20838268244372&tin=02508201610067®Number=0000000000091770&sum=350000 [10:49:15]OFD Sender: Processing packet 69756 [packets to send 32, broken 31] [10:49:15]ProducePacketName [10:49:15]name=ofd_packets/00069756 [10:49:15]OFD Sender: To server: pG, [10:49:15]CommunicateWithHost lk.salyk.kg:30040 [10:49:15]ConnectInit lk.salyk.kg [10:49:15]written 0, free lines is 4095 [10:49:15]Connected sock=10 [10:49:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0F 01 00 00 65 0D 07 01 4C 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 B8 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 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 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 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 2E 00 00 00 F4 03 04 00 2A E0 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7C 10 01 00 35 04 06 00 12 F3 C9 93 91 94 7F 72 2D F7 FF 7C 50 01 [10:49:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 F7 D2 47 00 51 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7C 10 01 00 F4 03 04 00 AD 85 14 67 B6 04 01 00 00 95 48 08 FB 2D 29 31 C6 [10:49:15]CommunicateWithHost err = 0 [10:49:15]CheckOFDResponse [10:49:15]1017 (14) - 77093643461234 [10:49:15]1041 (16) - 0000000000871749 [10:49:15]1040 (4) - 69756 [10:49:15]1012 (4) - 20.10.2024 04:23 [10:49:15]1206 (1) - 0 [10:49:15]OFD Sender: Remove packet 69756 [10:49:15]ProducePacketName [10:49:15]name=ofd_packets/00069756 [10:49:15]NVStorageDeleteData [10:49:15]Write to MH i2c: 01 00 00 6D 0B 78 [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: 01 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: 01 07 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: 01 07 00 6D 0B 00 00 00 00 00 E0 0C 6B [10:49:15]RasterBufferAndPrint [10:49:15]line [10:49:15]line [10:49:15]line [10:49:15]line [10:49:15]line [10:49:15]written 0, free lines is 3302 [10:49:15]MH_Cut [10:49:15]Write to MH i2c: D1 01 00 74 0B 01 51 [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: D1 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: D1 01 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: D1 01 00 74 0B 00 50 [10:49:15]Write to MH i2c: 01 00 00 75 0B 80 [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]OFD Sender: No OFD packet to send [10:49:16]*** Cut start [10:49:16]*** Partial cut [10:49:16]*** CUTSNS_PIN = 1 [10:49:16]*** CUTSNS_PIN = 0 [10:49:16]*** Brake cut motor [10:49:17]Read from MH i2c: 01 [10:49:17]MH_I2C_Read... [10:49:17]*** Stop cut motor [10:49:17]*** Cut end [10:49:17]Read from MH i2c: 01 07 00 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: 01 07 00 75 0B 00 00 00 00 00 FF 0F 95 [10:49:17]process_action close_receipt done [10:49:17]requested_data is exist [10:49:17]produce_requested_data [10:49:17]requested_item fm.sn is exist - process it [10:49:17]wFMCommunicate request_size=4 [10:49:17]MH_SAM_APDU [10:49:17]CAPDU: 80 11 00 00 [10:49:17]Write to MH i2c: E2 08 00 76 0B 80 11 00 00 00 00 00 00 FB [10:49:17]Write i2c OK [10:49:17]MH_I2C_Read... [10:49:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:17]Read from MH i2c: E2 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 17 00 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 17 00 76 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 52 [10:49:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [10:49:17]wFMCommunicate OK [10:49:17]requested_item fd.num is exist - process it [10:49:17]SAM_PROTO_GetFieldsCounters [10:49:17]wFMCommunicate request_size=4 [10:49:17]MH_SAM_APDU [10:49:17]CAPDU: 80 13 00 00 [10:49:17]Write to MH i2c: E2 08 00 77 0B 80 13 00 00 00 00 00 00 FE [10:49:17]Write i2c OK [10:49:17]MH_I2C_Read... [10:49:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:17]Read from MH i2c: E2 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 62 00 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 62 00 77 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 7C 10 01 00 0E 04 04 00 0E 02 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 49 [10:49:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 7C 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:17]wFMCommunicate OK [10:49:17]SAM_PROTO_GetFieldsCounters done [10:49:17]requested_item shift.num is exist - process it [10:49:17]requested_item shift.opened is exist - process it [10:49:17]req_shift_opened [10:49:17]FM_GetShiftState [10:49:17]SAM_PROTO_GetShiftState [10:49:17]wFMCommunicate request_size=4 [10:49:17]MH_SAM_APDU [10:49:17]CAPDU: 80 13 01 00 [10:49:17]Write to MH i2c: E2 08 00 78 0B 80 13 01 00 00 00 00 00 00 [10:49:17]Write i2c OK [10:49:17]MH_I2C_Read... [10:49:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:17]Read from MH i2c: E2 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 0E 00 [10:49:17]MH_I2C_Read... [10:49:17]Read from MH i2c: E2 0E 00 78 0B 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 92 [10:49:17]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [10:49:17]wFMCommunicate OK [10:49:17]SAM_PROTO_GetShiftState done [10:49:17]FM_GetShiftState done [10:49:17]req_shift_opened done [10:49:17]requested_item shift.open_date is exist - process it [10:49:17]req_shift_open_date [10:49:17]req_shift_open_date done [10:49:17]produce_requested_data done [10:49:17]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69756,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [10:49:17]process_action_free close_receipt [10:49:17]json_value_free [10:49:17]json_value_free done [10:49:17]process_json_proto returns [10:49:17]Send response to host [10:49:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69756,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [10:49:17]free response buf [10:49:17]execute_script done [10:49:17]execute_script returns [10:49:17]free content buf [10:49:17]Sock 9.Close socket [10:49:17]Sock 9.Thread stoped [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]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:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]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: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:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:49]accept exits with 7 [11:13:49]New connection [11:13:49]New thread 3066486116 created [11:13:49]Thread 3066629476 joined [11:13:49]Waiting for new connection... [11:13:49] Sock 7.Parse request [11:13:49]Sock 7.Check first char [11:13:49]Sock 7.First char is OK [11:13:49]request: POST /json_proto HTTP/1.0 [11:13:49]Method: POST [11:13:49]URL: /json_proto [11:13:49]Method is POST - this is cgi request [11:13:49]url: /json_proto [11:13:49]query_string will be loaded in cgi processing [11:13:49]execute_cgi json_proto POST (null) [11:13:49]execute_cgi path=json_proto method=POST [11:13:49]POST find Content-Length [11:13:49]Host: 172.17.52.196:8080 [11:13:49]Content-Length: 749 [11:13:49]Content-Type: application/json [11:13:49] [11:13:49]POST finish read [11:13:49]Found Content-Length = 749 [11:13:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127158", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:49]execute_script... [11:13:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127158", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:49]POST & json_proto [11:13:49]process_json_proto [11:13:49]json parsed OK: [11:13:49]protocol is kg_v1.0 [11:13:49]action value=close_receipt [11:13:49]process_action close_receipt [11:13:49]cmd_close_receipt [11:13:49]MH_GetDate [11:13:49]Write to MH i2c: F0 00 00 79 0B 73 [11:13:49]Write i2c OK [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: F0 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: F0 09 00 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: F0 09 00 79 0B 00 EF E5 14 67 60 05 E4 66 7A [11:13:49]GetLastDocTimeStamp 1729421354 [11:13:49]current date 1729422831 [11:13:49]FM_GetShiftState [11:13:49]SAM_PROTO_GetShiftState [11:13:49]wFMCommunicate request_size=4 [11:13:49]MH_SAM_APDU [11:13:49]CAPDU: 80 13 01 00 [11:13:49]Write to MH i2c: E2 08 00 7A 0B 80 13 01 00 00 00 00 00 02 [11:13:49]Write i2c OK [11:13:49]MH_I2C_Read... [11:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:49]Read from MH i2c: E2 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: E2 0E 00 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: E2 0E 00 7A 0B 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 94 [11:13:49]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [11:13:49]wFMCommunicate OK [11:13:49]SAM_PROTO_GetShiftState done [11:13:49]FM_GetShiftState done [11:13:49]opened in 1729384380 [11:13:49]opened+sec_in_day 1729470780 [11:13:49]quantity*price = 15000 [11:13:49]sum+1 = 15001 [11:13:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 47 20.10.2024 11:13 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69757 ФПД: 232595752700091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111351&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69757&fm=232595752700091&tin=02508201610067®Number=0000000000091770&sum=15000 0 [11:13:51]StoreToDocumentArchive [11:13:51]shift 526 fd 69757 [11:13:51]save to /storage/0526/doc_00069757 [11:13:51]save last doc name /storage/0526/doc_00069757 to /storage/kkm_last_doc_name [11:13:51]save OK [11:13:51]Clear old archive folders... [11:13:51]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:13:51]tlvbuf is 009C3350 [11:13:51]SAM_PROTO_ClearQueue [11:13:51]wFMCommunicate request_size=4 [11:13:51]MH_SAM_APDU [11:13:51]CAPDU: 80 09 00 00 [11:13:51]Write to MH i2c: E2 08 00 87 0B 80 09 00 00 00 00 00 00 04 [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:51]Read from MH i2c: E2 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 03 00 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 03 00 87 0B 00 90 00 06 [11:13:51]RAPDU: 90 00 [11:13:51]wFMCommunicate OK [11:13:51]SAM_PROTO_ClearQueue done [11:13:51]KKMCreateOFDPacket [11:13:51]OFDProtocolAddRootSTLVToBuf [11:13:51]FM_MakeSignedData [11:13:51]FM_MakeSignedData [11:13:51]SAM_PROTO_SignData [11:13:51]wFMCommunicate request_size=4 [11:13:51]MH_SAM_APDU [11:13:51]CAPDU: 80 0D 01 02 [11:13:51]Write to MH i2c: E2 08 00 88 0B 80 0D 01 02 00 00 00 00 0C [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:51]Read from MH i2c: E2 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 03 00 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 03 00 88 0B 00 90 00 07 [11:13:51]RAPDU: 90 00 [11:13:51]wFMCommunicate OK [11:13:51]wFMCommunicate request_size=255 [11:13:51]MH_SAM_APDU [11:13:51]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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 EF E5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 [11:13:51]Write to MH i2c: E2 02 01 89 0B 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 EF E5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 00 00 36 [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:51]Read from MH i2c: E2 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 03 00 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 03 00 89 0B 00 90 00 08 [11:13:51]RAPDU: 90 00 [11:13:51]wFMCommunicate OK [11:13:51]wFMCommunicate request_size=33 [11:13:51]MH_SAM_APDU [11:13:51]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7D 10 01 00 35 04 06 00 D3 8B 6B 37 48 BB [11:13:51]Write to MH i2c: E2 24 00 8A 0B 80 0D 02 02 1C 00 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7D 10 01 00 35 04 06 00 D3 8B 6B 37 48 BB 00 00 33 [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:51]Read from MH i2c: E2 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 03 00 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 03 00 8A 0B 00 90 00 09 [11:13:51]RAPDU: 90 00 [11:13:51]wFMCommunicate OK [11:13:51]wFMCommunicate request_size=4 [11:13:51]MH_SAM_APDU [11:13:51]CAPDU: 80 0D 03 02 [11:13:51]Write to MH i2c: E2 08 00 8B 0B 80 0D 03 02 00 00 00 00 11 [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:51]Read from MH i2c: E2 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 0B 00 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 0B 00 8B 0B 00 AA 12 FF 15 78 6C 07 33 90 00 00 [11:13:51]RAPDU: AA 12 FF 15 78 6C 07 33 90 00 [11:13:51]wFMCommunicate OK [11:13:51]SAM_PROTO_SignData done [11:13:51]FM_MakeSignedData done [11:13:51]CreateOFDProtocolMessage [11:13:51]wFMCommunicate request_size=4 [11:13:51]MH_SAM_APDU [11:13:51]CAPDU: 80 11 00 00 [11:13:51]Write to MH i2c: E2 08 00 8C 0B 80 11 00 00 00 00 00 00 11 [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:51]Read from MH i2c: E2 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 17 00 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 17 00 8C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 68 [11:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [11:13:51]wFMCommunicate OK [11:13:51]CreateOFDProtocolMessage done [11:13:51]OFDSenderStorePacket 69757 [11:13:51]StoreOFDPacket docnum=69757 [11:13:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 1D D7 1E 01 65 01 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 EF E5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7D 10 01 00 35 04 06 00 D3 8B 6B 37 48 BB AA 12 FF 15 78 6C 07 33 [11:13:51]CheckFolder [11:13:51]dirname=/storage/ofd_packets [11:13:51]CheckFolder done [11:13:51]ProducePacketName [11:13:51]name=ofd_packets/00069757 [11:13:51]NVStorageSaveData ofd_packets/00069757 [11:13:51]File name is /storage/ofd_packets/00069757 [11:13:51]Write 324 bytes [11:13:51]NVStorageSaveData done [11:13:51]OFDSenderStorePacket done [11:13:51]KKMCreateOFDPacket done [11:13:51]NVStorageSaveData kkm_last_timestamp [11:13:51]File name is /storage/kkm_last_timestamp [11:13:51]Write 4 bytes [11:13:51]NVStorageSaveData done [11:13:51]ExternCall_PrintAddStr [11:13:51]wPrintStart [11:13:51]Write to MH i2c: 01 00 00 8D 0B 98 [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: 01 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: 01 07 00 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: 01 07 00 8D 0B 00 00 00 00 00 FF 0F AD [11:13:51]RasterBufferAndPrint [11:13:51]line Счет N : (3)127158 [11:13:51]line ИНН: 02508201610067 [11:13:51]line Контрольно-Кассовый Чек [11:13:51]line ПРОДАЖА [11:13:51]line Товар: 4640030091645 [11:13:51]line Сигареты ESSE Exchange M [11:13:51]line 1.000 * 150.00 [11:13:51]line = 150.00 [11:13:51]line НДС 12% НСП 1% [11:13:51]line > о реализуемом товаре [11:13:51]line ИТОГО: 150.00 [11:13:51]line НСП 1% : 1.33 [11:13:51]line НДС 12% : 15.93 [11:13:51]line Наличными: 0.00 [11:13:51]line Безнал.: 150.00 [11:13:51]line Место: АЗС № 163 "Партнер Нефть" [11:13:51]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [11:13:51]line СНО: Общий режим [11:13:51]line Чек 47 20.10.2024 11:13 [11:13:51]line Смена: 526 ФФД: 1.0 [11:13:51]line ЗНМ: 0300000101 [11:13:51]line РНМ: 0000000000091770 [11:13:51]line Версия ККМ: 001 [11:13:51]line Платежная система: Mbank [11:13:51]line ФМ: 0000000000871749 [11:13:51]line ФД: 69757 [11:13:51]line ФПД: 232595752700091 [11:13:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111351&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69757&fm=232595752700091&tin=02508201610067®Number=0000000000091770&sum=15000 [11:13:51]OFD Sender: Processing packet 69757 [packets to send 32, broken 31] [11:13:51]ProducePacketName [11:13:51]name=ofd_packets/00069757 [11:13:51]OFD Sender: To server: pG, [11:13:51]CommunicateWithHost lk.salyk.kg:30040 [11:13:51]ConnectInit lk.salyk.kg [11:13:51]line 0 [11:13:51]written 0, free lines is 4095 [11:13:52]Connected sock=10 [11:13:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 1D D7 1E 01 65 01 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 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 EF E5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7D 10 01 00 35 04 06 00 D3 8B 6B 37 48 BB AA 12 FF 15 78 6C 07 33 [11:13:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 3E 3C 47 00 13 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7D 10 01 00 F4 03 04 00 72 8B 14 67 B6 04 01 00 00 1B 0C DE E6 59 64 B4 4F [11:13:52]CommunicateWithHost err = 0 [11:13:52]CheckOFDResponse [11:13:52]1017 (14) - 77093643461234 [11:13:52]1041 (16) - 0000000000871749 [11:13:52]1040 (4) - 69757 [11:13:52]1012 (4) - 20.10.2024 04:47 [11:13:52]1206 (1) - 0 [11:13:52]OFD Sender: Remove packet 69757 [11:13:52]ProducePacketName [11:13:52]name=ofd_packets/00069757 [11:13:52]NVStorageDeleteData [11:13:52]Write to MH i2c: 01 00 00 B6 0B C1 [11:13:52]Write i2c OK [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: 01 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: 01 07 00 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: 01 07 00 B6 0B 00 00 00 00 00 02 0D D7 [11:13:52]RasterBufferAndPrint [11:13:52]line [11:13:52]line [11:13:52]line [11:13:52]line [11:13:52]line [11:13:52]written 0, free lines is 3339 [11:13:52]MH_Cut [11:13:52]Write to MH i2c: D1 01 00 BD 0B 01 9A [11:13:52]Write i2c OK [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: D1 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: D1 01 00 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: D1 01 00 BD 0B 00 99 [11:13:52]Write to MH i2c: 01 00 00 BE 0B C9 [11:13:52]Write i2c OK [11:13:52]MH_I2C_Read... [11:13:52]OFD Sender: No OFD packet to send [11:13:53]*** Cut start [11:13:53]*** Partial cut [11:13:53]*** CUTSNS_PIN = 1 [11:13:53]*** CUTSNS_PIN = 0 [11:13:53]*** Brake cut motor [11:13:53]Read from MH i2c: 01 [11:13:53]MH_I2C_Read... [11:13:53]*** Stop cut motor [11:13:53]*** Cut end [11:13:53]Read from MH i2c: 01 07 00 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: 01 07 00 BE 0B 00 00 00 00 00 FF 0F DE [11:13:53]process_action close_receipt done [11:13:53]requested_data is exist [11:13:53]produce_requested_data [11:13:53]requested_item fm.sn is exist - process it [11:13:53]wFMCommunicate request_size=4 [11:13:53]MH_SAM_APDU [11:13:53]CAPDU: 80 11 00 00 [11:13:53]Write to MH i2c: E2 08 00 BF 0B 80 11 00 00 00 00 00 00 44 [11:13:53]Write i2c OK [11:13:53]MH_I2C_Read... [11:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:54]Read from MH i2c: E2 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: E2 17 00 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: E2 17 00 BF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 9B [11:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [11:13:54]wFMCommunicate OK [11:13:54]requested_item fd.num is exist - process it [11:13:54]SAM_PROTO_GetFieldsCounters [11:13:54]wFMCommunicate request_size=4 [11:13:54]MH_SAM_APDU [11:13:54]CAPDU: 80 13 00 00 [11:13:54]Write to MH i2c: E2 08 00 C0 0B 80 13 00 00 00 00 00 00 47 [11:13:54]Write i2c OK [11:13:54]MH_I2C_Read... [11:13:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:54]Read from MH i2c: E2 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: E2 62 00 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: E2 62 00 C0 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 7D 10 01 00 0E 04 04 00 0E 02 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 96 [11:13: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 7D 10 01 00 0E 04 04 00 0E 02 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 [11:13:54]wFMCommunicate OK [11:13:54]SAM_PROTO_GetFieldsCounters done [11:13:54]requested_item shift.num is exist - process it [11:13:54]requested_item shift.opened is exist - process it [11:13:54]req_shift_opened [11:13:54]FM_GetShiftState [11:13:54]SAM_PROTO_GetShiftState [11:13:54]wFMCommunicate request_size=4 [11:13:54]MH_SAM_APDU [11:13:54]CAPDU: 80 13 01 00 [11:13:54]Write to MH i2c: E2 08 00 C1 0B 80 13 01 00 00 00 00 00 49 [11:13:54]Write i2c OK [11:13:54]MH_I2C_Read... [11:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:54]Read from MH i2c: E2 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: E2 0E 00 [11:13:54]MH_I2C_Read... [11:13:54]Read from MH i2c: E2 0E 00 C1 0B 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 DB [11:13:54]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [11:13:54]wFMCommunicate OK [11:13:54]SAM_PROTO_GetShiftState done [11:13:54]FM_GetShiftState done [11:13:54]req_shift_opened done [11:13:54]requested_item shift.open_date is exist - process it [11:13:54]req_shift_open_date [11:13:54]req_shift_open_date done [11:13:54]produce_requested_data done [11:13:54]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69757,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [11:13:54]process_action_free close_receipt [11:13:54]json_value_free [11:13:54]json_value_free done [11:13:54]process_json_proto returns [11:13:54]Send response to host [11:13:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69757,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [11:13:54]free response buf [11:13:54]execute_script done [11:13:54]execute_script returns [11:13:54]free content buf [11:13:54]Sock 7.Close socket [11:13:54]Sock 7.Thread stoped [11:13:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:50]accept exits with 9 [11:15:50]New connection [11:15:50]New thread 3066629476 created [11:15:50]Thread 3066486116 joined [11:15:50]Waiting for new connection... [11:15:50] Sock 9.Parse request [11:15:50]Sock 9.Check first char [11:15:50]Sock 9.First char is OK [11:15:50]request: POST /json_proto HTTP/1.0 [11:15:50]Method: POST [11:15:50]URL: /json_proto [11:15:50]Method is POST - this is cgi request [11:15:50]url: /json_proto [11:15:50]query_string will be loaded in cgi processing [11:15:50]execute_cgi json_proto POST (null) [11:15:50]execute_cgi path=json_proto method=POST [11:15:50]POST find Content-Length [11:15:50]Host: 172.17.52.196:8080 [11:15:50]Content-Length: 1208 [11:15:50]Content-Type: application/json [11:15:50] [11:15:50]POST finish read [11:15:50]Found Content-Length = 1208 [11:15:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127159", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660013331421", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041B\u0435\u043D\u0438\u043D\u0433\u0440\u0430\u0434\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091669", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange S", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 315.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:50]execute_script... [11:15:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127159", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660013331421", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041B\u0435\u043D\u0438\u043D\u0433\u0440\u0430\u0434\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091669", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange S", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 315.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:50]POST & json_proto [11:15:50]process_json_proto [11:15:50]json parsed OK: [11:15:50]protocol is kg_v1.0 [11:15:50]action value=close_receipt [11:15:50]process_action close_receipt [11:15:50]cmd_close_receipt [11:15:50]MH_GetDate [11:15:50]Write to MH i2c: F0 00 00 C2 0B BC [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: F0 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: F0 09 00 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: F0 09 00 C2 0B 00 67 E6 14 67 60 05 E4 66 3C [11:15:50]GetLastDocTimeStamp 1729422831 [11:15:50]current date 1729422951 [11:15:50]FM_GetShiftState [11:15:50]SAM_PROTO_GetShiftState [11:15:50]wFMCommunicate request_size=4 [11:15:50]MH_SAM_APDU [11:15:50]CAPDU: 80 13 01 00 [11:15:50]Write to MH i2c: E2 08 00 C3 0B 80 13 01 00 00 00 00 00 4B [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:50]Read from MH i2c: E2 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 0E 00 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 0E 00 C3 0B 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 DD [11:15:50]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [11:15:50]wFMCommunicate OK [11:15:50]SAM_PROTO_GetShiftState done [11:15:50]FM_GetShiftState done [11:15:50]opened in 1729384380 [11:15:50]opened+sec_in_day 1729470780 [11:15:50]quantity*price = 7000 [11:15:50]sum+1 = 7001 [11:15:50]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4660013331421 Эскимо Ленинградское 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091669 Сигареты ESSE Exchange S 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 315.00 НСП 1% : 2.79 НДС 12% : 33.45 Наличными: 315.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 48 20.10.2024 11:15 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69758 ФПД: 97598052682045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111551&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69758&fm=97598052682045&tin=02508201610067®Number=0000000000091770&sum=31500 0 [11:15:51]StoreToDocumentArchive [11:15:51]shift 526 fd 69758 [11:15:51]save to /storage/0526/doc_00069758 [11:15:51]save last doc name /storage/0526/doc_00069758 to /storage/kkm_last_doc_name [11:15:51]save OK [11:15:51]Clear old archive folders... [11:15:51]ProcessDocumentItem done err = 0, tmpTLVsize=508 [11:15:51]tlvbuf is 009BB230 [11:15:51]SAM_PROTO_ClearQueue [11:15:51]wFMCommunicate request_size=4 [11:15:51]MH_SAM_APDU [11:15:51]CAPDU: 80 09 00 00 [11:15:51]Write to MH i2c: E2 08 00 D0 0B 80 09 00 00 00 00 00 00 4D [11:15:51]Write i2c OK [11:15:51]MH_I2C_Read... [11:15:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:51]Read from MH i2c: E2 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: E2 03 00 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: E2 03 00 D0 0B 00 90 00 4F [11:15:51]RAPDU: 90 00 [11:15:51]wFMCommunicate OK [11:15:51]SAM_PROTO_ClearQueue done [11:15:51]KKMCreateOFDPacket [11:15:51]OFDProtocolAddRootSTLVToBuf [11:15:51]FM_MakeSignedData [11:15:51]FM_MakeSignedData [11:15:51]SAM_PROTO_SignData [11:15:51]wFMCommunicate request_size=4 [11:15:51]MH_SAM_APDU [11:15:51]CAPDU: 80 0D 01 02 [11:15:51]Write to MH i2c: E2 08 00 D1 0B 80 0D 01 02 00 00 00 00 55 [11:15:51]Write i2c OK [11:15:51]MH_I2C_Read... [11:15:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:51]Read from MH i2c: E2 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: E2 03 00 [11:15:51]MH_I2C_Read... [11:15:51]Read from MH i2c: E2 03 00 D1 0B 00 90 00 50 [11:15:51]RAPDU: 90 00 [11:15:51]wFMCommunicate OK [11:15:51]wFMCommunicate request_size=255 [11:15:51]MH_SAM_APDU [11:15:51]CAPDU: 80 0D 02 02 FA 03 00 FC 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 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 23 04 64 00 8A 04 0D [11:15:51]Write to MH i2c: E2 02 01 D2 0B 80 0D 02 02 FA 00 03 00 FC 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 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 23 04 64 00 8A 04 0D 00 00 CA [11:15:51]Write i2c OK [11:15:51]MH_I2C_Read... [11:15:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:52]Read from MH i2c: E2 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 03 00 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 03 00 D2 0B 00 90 00 51 [11:15:52]RAPDU: 90 00 [11:15:52]wFMCommunicate OK [11:15:52]wFMCommunicate request_size=255 [11:15:52]MH_SAM_APDU [11:15:52]CAPDU: 80 0D 02 02 FA 00 34 36 34 30 30 33 30 30 39 31 36 36 39 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 53 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 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 67 E6 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7E 10 [11:15:52]Write to MH i2c: E2 02 01 D3 0B 80 0D 02 02 FA 00 00 34 36 34 30 30 33 30 30 39 31 36 36 39 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 53 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 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 67 E6 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7E 10 00 00 2C [11:15:52]Write i2c OK [11:15:52]MH_I2C_Read... [11:15:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:52]Read from MH i2c: E2 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 03 00 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 03 00 D3 0B 00 90 00 52 [11:15:52]RAPDU: 90 00 [11:15:52]wFMCommunicate OK [11:15:52]wFMCommunicate request_size=17 [11:15:52]MH_SAM_APDU [11:15:52]CAPDU: 80 0D 02 02 0C 01 00 35 04 06 00 58 C3 D1 42 C9 3D [11:15:52]Write to MH i2c: E2 14 00 D4 0B 80 0D 02 02 0C 00 01 00 35 04 06 00 58 C3 D1 42 C9 3D 00 00 E5 [11:15:52]Write i2c OK [11:15:52]MH_I2C_Read... [11:15:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:52]Read from MH i2c: E2 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 03 00 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 03 00 D4 0B 00 90 00 53 [11:15:52]RAPDU: 90 00 [11:15:52]wFMCommunicate OK [11:15:52]wFMCommunicate request_size=4 [11:15:52]MH_SAM_APDU [11:15:52]CAPDU: 80 0D 03 02 [11:15:52]Write to MH i2c: E2 08 00 D5 0B 80 0D 03 02 00 00 00 00 5B [11:15:52]Write i2c OK [11:15:52]MH_I2C_Read... [11:15:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:52]Read from MH i2c: E2 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 0B 00 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 0B 00 D5 0B 00 E8 65 F7 95 88 40 51 C5 90 00 13 [11:15:52]RAPDU: E8 65 F7 95 88 40 51 C5 90 00 [11:15:52]wFMCommunicate OK [11:15:52]SAM_PROTO_SignData done [11:15:52]FM_MakeSignedData done [11:15:52]CreateOFDProtocolMessage [11:15:52]wFMCommunicate request_size=4 [11:15:52]MH_SAM_APDU [11:15:52]CAPDU: 80 11 00 00 [11:15:52]Write to MH i2c: E2 08 00 D6 0B 80 11 00 00 00 00 00 00 5B [11:15:52]Write i2c OK [11:15:52]MH_I2C_Read... [11:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:52]Read from MH i2c: E2 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 17 00 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: E2 17 00 D6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 B2 [11:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [11:15:52]wFMCommunicate OK [11:15:52]CreateOFDProtocolMessage done [11:15:52]OFDSenderStorePacket 69758 [11:15:52]StoreOFDPacket docnum=69758 [11:15:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 02 00 00 FE 46 08 02 DF 32 5A 03 01 00 03 00 FC 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 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 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 36 39 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 53 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 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 67 E6 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7E 10 01 00 35 04 06 00 58 C3 D1 42 C9 3D E8 65 F7 95 88 40 51 C5 [11:15:52]CheckFolder [11:15:52]dirname=/storage/ofd_packets [11:15:52]CheckFolder done [11:15:52]ProducePacketName [11:15:52]name=ofd_packets/00069758 [11:15:52]NVStorageSaveData ofd_packets/00069758 [11:15:52]File name is /storage/ofd_packets/00069758 [11:15:52]Write 558 bytes [11:15:52]NVStorageSaveData done [11:15:52]OFDSenderStorePacket done [11:15:52]KKMCreateOFDPacket done [11:15:52]NVStorageSaveData kkm_last_timestamp [11:15:52]File name is /storage/kkm_last_timestamp [11:15:52]Write 4 bytes [11:15:52]NVStorageSaveData done [11:15:52]ExternCall_PrintAddStr [11:15:52]wPrintStart [11:15:52]Write to MH i2c: 01 00 00 D7 0B E2 [11:15:52]Write i2c OK [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: 01 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: 01 07 00 [11:15:52]MH_I2C_Read... [11:15:52]Read from MH i2c: 01 07 00 D7 0B 00 00 00 00 00 FF 0F F7 [11:15:52]RasterBufferAndPrint [11:15:52]line Счет N : (3)127159 [11:15:52]line ИНН: 02508201610067 [11:15:52]line Контрольно-Кассовый Чек [11:15:52]line ПРОДАЖА [11:15:52]line Товар: 4870202521148 [11:15:52]line Напиток MAXI чай зел лимон 0.45л [11:15:52]line 1.000 * 70.00 [11:15:52]line = 70.00 [11:15:52]line НДС 12% НСП 1% [11:15:52]line > о реализуемом товаре [11:15:52]line Товар: 4660013331421 [11:15:52]line Эскимо Ленинградское [11:15:52]line 1.000 * 95.00 [11:15:52]line = 95.00 [11:15:52]line НДС 12% НСП 1% [11:15:52]line > о реализуемом товаре [11:15:52]line Товар: 4640030091669 [11:15:52]line Сигареты ESSE Exchange S [11:15:52]line 1.000 * 150.00 [11:15:52]line = 150.00 [11:15:52]line НДС 12% НСП 1% [11:15:52]line > о реализуемом товаре [11:15:52]line ИТОГО: 315.00 [11:15:52]line НСП 1% : 2.79 [11:15:52]line НДС 12% : 33.45 [11:15:52]line Наличными: 315.00 [11:15:52]line Безнал.: 0.00 [11:15:52]line Место: АЗС № 163 "Партнер Нефть" [11:15:52]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [11:15:52]line СНО: Общий режим [11:15:52]line Чек 48 20.10.2024 11:15 [11:15:52]line Смена: 526 ФФД: 1.0 [11:15:52]line ЗНМ: 0300000101 [11:15:52]line РНМ: 0000000000091770 [11:15:52]line Версия ККМ: 001 [11:15:52]line ФМ: 0000000000871749 [11:15:52]line ФД: 69758 [11:15:52]line ФПД: 97598052682045 [11:15:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111551&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69758&fm=97598052682045&tin=02508201610067®Number=0000000000091770&sum=31500 [11:15:52]line 0 [11:15:52]OFD Sender: Processing packet 69758 [packets to send 32, broken 31] [11:15:52]ProducePacketName [11:15:52]name=ofd_packets/00069758 [11:15:52]OFD Sender: To server: pG, [11:15:52]CommunicateWithHost lk.salyk.kg:30040 [11:15:52]ConnectInit lk.salyk.kg [11:15:52]written 0, free lines is 4095 [11:15:53]Connected sock=10 [11:15:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 02 00 00 FE 46 08 02 DF 32 5A 03 01 00 03 00 FC 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 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 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 36 39 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 53 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 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 67 E6 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7E 10 01 00 35 04 06 00 58 C3 D1 42 C9 3D E8 65 F7 95 88 40 51 C5 [11:15:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 B9 CF 47 00 5C F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7E 10 01 00 F4 03 04 00 EB 8B 14 67 B6 04 01 00 00 69 1C C6 39 36 82 1E BC [11:15:53]CommunicateWithHost err = 0 [11:15:53]CheckOFDResponse [11:15:53]1017 (14) - 77093643461234 [11:15:53]1041 (16) - 0000000000871749 [11:15:53]1040 (4) - 69758 [11:15:53]1012 (4) - 20.10.2024 04:49 [11:15:53]1206 (1) - 0 [11:15:53]OFD Sender: Remove packet 69758 [11:15:53]ProducePacketName [11:15:53]name=ofd_packets/00069758 [11:15:53]NVStorageDeleteData [11:15:53]Write to MH i2c: 01 00 00 0C 0C 18 [11:15:53]Write i2c OK [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: 01 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: 01 07 00 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: 01 07 00 0C 0C 00 00 00 00 00 46 0C 71 [11:15:53]RasterBufferAndPrint [11:15:53]line [11:15:53]line [11:15:53]line [11:15:53]line [11:15:53]line [11:15:53]written 0, free lines is 3149 [11:15:53]MH_Cut [11:15:53]Write to MH i2c: D1 01 00 13 0C 01 F1 [11:15:53]Write i2c OK [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: D1 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: D1 01 00 [11:15:53]MH_I2C_Read... [11:15:53]Read from MH i2c: D1 01 00 13 0C 00 F0 [11:15:53]Write to MH i2c: 01 00 00 14 0C 20 [11:15:53]Write i2c OK [11:15:53]MH_I2C_Read... [11:15:53]OFD Sender: No OFD packet to send [11:15:54]*** Cut start [11:15:54]*** Partial cut [11:15:54]*** CUTSNS_PIN = 1 [11:15:54]*** CUTSNS_PIN = 0 [11:15:54]*** Brake cut motor [11:15:55]Read from MH i2c: 01 [11:15:55]MH_I2C_Read... [11:15:55]*** Stop cut motor [11:15:55]*** Cut end [11:15:55]Read from MH i2c: 01 07 00 [11:15:55]MH_I2C_Read... [11:15:55]Read from MH i2c: 01 07 00 14 0C 00 00 00 00 00 FF 0F 35 [11:15:55]process_action close_receipt done [11:15:55]requested_data is exist [11:15:55]produce_requested_data [11:15:55]requested_item fm.sn is exist - process it [11:15:55]wFMCommunicate request_size=4 [11:15:55]MH_SAM_APDU [11:15:55]CAPDU: 80 11 00 00 [11:15:55]Write to MH i2c: E2 08 00 15 0C 80 11 00 00 00 00 00 00 9B [11:15:55]Write i2c OK [11:15:55]MH_I2C_Read... [11:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:55]Read from MH i2c: E2 [11:15:55]MH_I2C_Read... [11:15:55]Read from MH i2c: E2 17 00 [11:15:55]MH_I2C_Read... [11:15:55]Read from MH i2c: E2 17 00 15 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 F2 [11:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [11:15:55]wFMCommunicate OK [11:15:55]requested_item fd.num is exist - process it [11:15:55]SAM_PROTO_GetFieldsCounters [11:15:55]wFMCommunicate request_size=4 [11:15:55]MH_SAM_APDU [11:15:55]CAPDU: 80 13 00 00 [11:15:55]Write to MH i2c: E2 08 00 16 0C 80 13 00 00 00 00 00 00 9E [11:15:55]Write i2c OK [11:15:55]MH_I2C_Read... [11:15:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:55]Read from MH i2c: E2 [11:15:55]MH_I2C_Read... [11:15:55]Read from MH i2c: E2 62 00 [11:15:55]MH_I2C_Read... [11:15:55]Read from MH i2c: E2 62 00 16 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 7E 10 01 00 0E 04 04 00 0E 02 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 F1 [11:15: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 7E 10 01 00 0E 04 04 00 0E 02 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 [11:15:55]wFMCommunicate OK [11:15:55]SAM_PROTO_GetFieldsCounters done [11:15:55]requested_item shift.num is exist - process it [11:15:55]requested_item shift.opened is exist - process it [11:15:55]req_shift_opened [11:15:55]FM_GetShiftState [11:15:55]SAM_PROTO_GetShiftState [11:15:55]wFMCommunicate request_size=4 [11:15:55]MH_SAM_APDU [11:15:55]CAPDU: 80 13 01 00 [11:15:55]Write to MH i2c: E2 08 00 17 0C 80 13 01 00 00 00 00 00 A0 [11:15:55]Write i2c OK [11:15:55]MH_I2C_Read... [11:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:55]Read from MH i2c: E2 [11:15:55]MH_I2C_Read... [11:15:55]Read from MH i2c: E2 0E 00 [11:15:55]MH_I2C_Read... [11:15:55]Read from MH i2c: E2 0E 00 17 0C 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 32 [11:15:55]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [11:15:55]wFMCommunicate OK [11:15:55]SAM_PROTO_GetShiftState done [11:15:55]FM_GetShiftState done [11:15:55]req_shift_opened done [11:15:55]requested_item shift.open_date is exist - process it [11:15:55]req_shift_open_date [11:15:55]req_shift_open_date done [11:15:55]produce_requested_data done [11:15:55]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69758,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [11:15:55]process_action_free close_receipt [11:15:55]json_value_free [11:15:55]json_value_free done [11:15:55]process_json_proto returns [11:15:55]Send response to host [11:15:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69758,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [11:15:55]free response buf [11:15:55]execute_script done [11:15:55]execute_script returns [11:15:55]free content buf [11:15:55]Sock 9.Close socket [11:15:55]Sock 9.Thread stoped [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:52]accept exits with 7 [11:16:52]New connection [11:16:52]New thread 3066486116 created [11:16:52]Thread 3066629476 joined [11:16:52]Waiting for new connection... [11:16:52] Sock 7.Parse request [11:16:52]Sock 7.Check first char [11:16:52]Sock 7.First char is OK [11:16:52]request: POST /json_proto HTTP/1.0 [11:16:52]Method: POST [11:16:52]URL: /json_proto [11:16:52]Method is POST - this is cgi request [11:16:52]url: /json_proto [11:16:52]query_string will be loaded in cgi processing [11:16:52]execute_cgi json_proto POST (null) [11:16:52]execute_cgi path=json_proto method=POST [11:16:52]POST find Content-Length [11:16:52]Host: 172.17.52.196:8080 [11:16:52]Content-Length: 666 [11:16:52]Content-Type: application/json [11:16:52] [11:16:52]POST finish read [11:16:52]Found Content-Length = 666 [11:16:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127160", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:52]execute_script... [11:16:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127160", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:52]POST & json_proto [11:16:52]process_json_proto [11:16:52]json parsed OK: [11:16:52]protocol is kg_v1.0 [11:16:52]action value=close_receipt [11:16:52]process_action close_receipt [11:16:52]cmd_close_receipt [11:16:52]MH_GetDate [11:16:52]Write to MH i2c: F0 00 00 18 0C 13 [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: F0 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: F0 09 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: F0 09 00 18 0C 00 A6 E6 14 67 60 05 E4 66 D2 [11:16:52]GetLastDocTimeStamp 1729422951 [11:16:52]current date 1729423014 [11:16:52]FM_GetShiftState [11:16:52]SAM_PROTO_GetShiftState [11:16:52]wFMCommunicate request_size=4 [11:16:52]MH_SAM_APDU [11:16:52]CAPDU: 80 13 01 00 [11:16:52]Write to MH i2c: E2 08 00 19 0C 80 13 01 00 00 00 00 00 A2 [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:53]Read from MH i2c: E2 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 0E 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 0E 00 19 0C 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 34 [11:16:53]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [11:16:53]wFMCommunicate OK [11:16:53]SAM_PROTO_GetShiftState done [11:16:53]FM_GetShiftState done [11:16:53]opened in 1729384380 [11:16:53]opened+sec_in_day 1729470780 [11:16:53]quantity*price = 9900 [11:16:53]sum+1 = 9901 [11:16:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.88 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 49 20.10.2024 11:16 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69759 ФПД: 186666277857502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111654&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69759&fm=186666277857502&tin=02508201610067®Number=0000000000091770&sum=9900 0 [11:16:54]StoreToDocumentArchive [11:16:54]shift 526 fd 69759 [11:16:54]save to /storage/0526/doc_00069759 [11:16:54]save last doc name /storage/0526/doc_00069759 to /storage/kkm_last_doc_name [11:16:54]save OK [11:16:54]Clear old archive folders... [11:16:54]ProcessDocumentItem done err = 0, tmpTLVsize=293 [11:16:54]tlvbuf is 00978A50 [11:16:54]SAM_PROTO_ClearQueue [11:16:54]wFMCommunicate request_size=4 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 09 00 00 [11:16:54]Write to MH i2c: E2 08 00 26 0C 80 09 00 00 00 00 00 00 A4 [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 26 0C 00 90 00 A6 [11:16:54]RAPDU: 90 00 [11:16:54]wFMCommunicate OK [11:16:54]SAM_PROTO_ClearQueue done [11:16:54]KKMCreateOFDPacket [11:16:54]OFDProtocolAddRootSTLVToBuf [11:16:54]FM_MakeSignedData [11:16:54]FM_MakeSignedData [11:16:54]SAM_PROTO_SignData [11:16:54]wFMCommunicate request_size=4 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 0D 01 02 [11:16:54]Write to MH i2c: E2 08 00 27 0C 80 0D 01 02 00 00 00 00 AC [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 27 0C 00 90 00 A7 [11:16:54]RAPDU: 90 00 [11:16:54]wFMCommunicate OK [11:16:54]wFMCommunicate request_size=255 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 A6 E6 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [11:16:54]Write to MH i2c: E2 02 01 28 0C 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 A6 E6 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 50 [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 28 0C 00 90 00 A8 [11:16:54]RAPDU: 90 00 [11:16:54]wFMCommunicate OK [11:16:54]wFMCommunicate request_size=52 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7F 10 01 00 35 04 06 00 A9 C5 A1 2E E8 DE [11:16:54]Write to MH i2c: E2 37 00 29 0C 80 0D 02 02 2F 00 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7F 10 01 00 35 04 06 00 A9 C5 A1 2E E8 DE 00 00 08 [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 29 0C 00 90 00 A9 [11:16:54]RAPDU: 90 00 [11:16:54]wFMCommunicate OK [11:16:54]wFMCommunicate request_size=4 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 0D 03 02 [11:16:54]Write to MH i2c: E2 08 00 2A 0C 80 0D 03 02 00 00 00 00 B1 [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 0B 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 0B 00 2A 0C 00 90 C9 F9 1A 97 F7 4C 15 90 00 0D [11:16:54]RAPDU: 90 C9 F9 1A 97 F7 4C 15 90 00 [11:16:54]wFMCommunicate OK [11:16:54]SAM_PROTO_SignData done [11:16:54]FM_MakeSignedData done [11:16:54]CreateOFDProtocolMessage [11:16:54]wFMCommunicate request_size=4 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 11 00 00 [11:16:54]Write to MH i2c: E2 08 00 2B 0C 80 11 00 00 00 00 00 00 B1 [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 17 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 17 00 2B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 08 [11:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [11:16:54]wFMCommunicate OK [11:16:54]CreateOFDProtocolMessage done [11:16:54]OFDSenderStorePacket 69759 [11:16:54]StoreOFDPacket docnum=69759 [11:16:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 39 01 00 00 8C 39 31 01 1C 41 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 A6 E6 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7F 10 01 00 35 04 06 00 A9 C5 A1 2E E8 DE 90 C9 F9 1A 97 F7 4C 15 [11:16:54]CheckFolder [11:16:54]dirname=/storage/ofd_packets [11:16:54]CheckFolder done [11:16:54]ProducePacketName [11:16:54]name=ofd_packets/00069759 [11:16:54]NVStorageSaveData ofd_packets/00069759 [11:16:54]File name is /storage/ofd_packets/00069759 [11:16:54]Write 343 bytes [11:16:54]NVStorageSaveData done [11:16:54]OFDSenderStorePacket done [11:16:54]KKMCreateOFDPacket done [11:16:54]NVStorageSaveData kkm_last_timestamp [11:16:54]File name is /storage/kkm_last_timestamp [11:16:54]Write 4 bytes [11:16:54]NVStorageSaveData done [11:16:54]ExternCall_PrintAddStr [11:16:54]wPrintStart [11:16:54]Write to MH i2c: 01 00 00 2C 0C 38 [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 07 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 07 00 2C 0C 00 00 00 00 00 FF 0F 4D [11:16:54]RasterBufferAndPrint [11:16:54]line Счет N : (3)127160 [11:16:54]line ИНН: 02508201610067 [11:16:54]line Контрольно-Кассовый Чек [11:16:54]line ПРОДАЖА [11:16:54]line Товар: 4870022003305 [11:16:54]line Напиток Gorilla эн нат ж/б 0,5/0,45л [11:16:54]line 1.000 * 99.00 [11:16:54]line = 99.00 [11:16:54]line НДС 12% НСП 1% [11:16:54]line > о реализуемом товаре [11:16:54]line ИТОГО: 99.00 [11:16:54]line НСП 1% : 0.88 [11:16:54]line НДС 12% : 10.51 [11:16:54]line Наличными: 99.00 [11:16:54]line Безнал.: 0.00 [11:16:54]line Место: АЗС № 163 "Партнер Нефть" [11:16:54]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [11:16:54]line СНО: Общий режим [11:16:54]line Чек 49 20.10.2024 11:16 [11:16:54]line Смена: 526 ФФД: 1.0 [11:16:54]line ЗНМ: 0300000101 [11:16:54]line РНМ: 0000000000091770 [11:16:54]line Версия ККМ: 001 [11:16:54]line ФМ: 0000000000871749 [11:16:54]line ФД: 69759 [11:16:54]line ФПД: 186666277857502 [11:16:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T111654&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69759&fm=186666277857502&tin=02508201610067®Number=0000000000091770&sum=9900 [11:16:55]OFD Sender: Processing packet 69759 [packets to send 32, broken 31] [11:16:55]ProducePacketName [11:16:55]name=ofd_packets/00069759 [11:16:55]OFD Sender: To server: pG, [11:16:55]CommunicateWithHost lk.salyk.kg:30040 [11:16:55]ConnectInit lk.salyk.kg [11:16:55]line 0 [11:16:55]written 0, free lines is 4095 [11:16:55]Connected sock=10 [11:16:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 39 01 00 00 8C 39 31 01 1C 41 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 A6 E6 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7F 10 01 00 35 04 06 00 A9 C5 A1 2E E8 DE 90 C9 F9 1A 97 F7 4C 15 [11:16:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 80 4B 47 00 75 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 7F 10 01 00 F4 03 04 00 29 8C 14 67 B6 04 01 00 00 C2 92 0C 19 47 38 CD 43 [11:16:55]CommunicateWithHost err = 0 [11:16:55]CheckOFDResponse [11:16:55]1017 (14) - 77093643461234 [11:16:55]1041 (16) - 0000000000871749 [11:16:55]1040 (4) - 69759 [11:16:55]1012 (4) - 20.10.2024 04:50 [11:16:55]1206 (1) - 0 [11:16:55]OFD Sender: Remove packet 69759 [11:16:55]ProducePacketName [11:16:55]name=ofd_packets/00069759 [11:16:55]NVStorageDeleteData [11:16:55]Write to MH i2c: 01 00 00 55 0C 61 [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: 01 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: 01 07 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: 01 07 00 55 0C 00 00 00 00 00 30 0D A5 [11:16:55]RasterBufferAndPrint [11:16:55]line [11:16:55]line [11:16:55]line [11:16:55]line [11:16:55]line [11:16:55]written 0, free lines is 3384 [11:16:55]MH_Cut [11:16:55]Write to MH i2c: D1 01 00 5C 0C 01 3A [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: D1 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: D1 01 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: D1 01 00 5C 0C 00 39 [11:16:55]Write to MH i2c: 01 00 00 5D 0C 69 [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]OFD Sender: No OFD packet to send [11:16:56]*** Cut start [11:16:56]*** Partial cut [11:16:56]*** CUTSNS_PIN = 1 [11:16:56]*** CUTSNS_PIN = 0 [11:16:56]*** Brake cut motor [11:16:57]Read from MH i2c: 01 [11:16:57]MH_I2C_Read... [11:16:57]*** Stop cut motor [11:16:57]*** Cut end [11:16:57]Read from MH i2c: 01 07 00 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: 01 07 00 5D 0C 00 00 00 00 00 FF 0F 7E [11:16:57]process_action close_receipt done [11:16:57]requested_data is exist [11:16:57]produce_requested_data [11:16:57]requested_item fm.sn is exist - process it [11:16:57]wFMCommunicate request_size=4 [11:16:57]MH_SAM_APDU [11:16:57]CAPDU: 80 11 00 00 [11:16:57]Write to MH i2c: E2 08 00 5E 0C 80 11 00 00 00 00 00 00 E4 [11:16:57]Write i2c OK [11:16:57]MH_I2C_Read... [11:16:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:57]Read from MH i2c: E2 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 17 00 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 17 00 5E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 3B [11:16:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [11:16:57]wFMCommunicate OK [11:16:57]requested_item fd.num is exist - process it [11:16:57]SAM_PROTO_GetFieldsCounters [11:16:57]wFMCommunicate request_size=4 [11:16:57]MH_SAM_APDU [11:16:57]CAPDU: 80 13 00 00 [11:16:57]Write to MH i2c: E2 08 00 5F 0C 80 13 00 00 00 00 00 00 E7 [11:16:57]Write i2c OK [11:16:57]MH_I2C_Read... [11:16:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:57]Read from MH i2c: E2 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 62 00 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 62 00 5F 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 7F 10 01 00 0E 04 04 00 0E 02 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 3E [11:16:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 7F 10 01 00 0E 04 04 00 0E 02 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 [11:16:57]wFMCommunicate OK [11:16:57]SAM_PROTO_GetFieldsCounters done [11:16:57]requested_item shift.num is exist - process it [11:16:57]requested_item shift.opened is exist - process it [11:16:57]req_shift_opened [11:16:57]FM_GetShiftState [11:16:57]SAM_PROTO_GetShiftState [11:16:57]wFMCommunicate request_size=4 [11:16:57]MH_SAM_APDU [11:16:57]CAPDU: 80 13 01 00 [11:16:57]Write to MH i2c: E2 08 00 60 0C 80 13 01 00 00 00 00 00 E9 [11:16:57]Write i2c OK [11:16:57]MH_I2C_Read... [11:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:57]Read from MH i2c: E2 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 0E 00 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 0E 00 60 0C 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 7B [11:16:57]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [11:16:57]wFMCommunicate OK [11:16:57]SAM_PROTO_GetShiftState done [11:16:57]FM_GetShiftState done [11:16:57]req_shift_opened done [11:16:57]requested_item shift.open_date is exist - process it [11:16:57]req_shift_open_date [11:16:57]req_shift_open_date done [11:16:57]produce_requested_data done [11:16:57]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69759,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [11:16:57]process_action_free close_receipt [11:16:57]json_value_free [11:16:57]json_value_free done [11:16:57]process_json_proto returns [11:16:57]Send response to host [11:16:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69759,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [11:16:57]free response buf [11:16:57]execute_script done [11:16:57]execute_script returns [11:16:57]free content buf [11:16:57]Sock 7.Close socket [11:16:57]Sock 7.Thread stoped [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:29]accept exits with 9 [11:28:29]New connection [11:28:29]New thread 3066629476 created [11:28:29]Thread 3066486116 joined [11:28:29]Waiting for new connection... [11:28:29] Sock 9.Parse request [11:28:29]Sock 9.Check first char [11:28:29]Sock 9.First char is OK [11:28:29]request: POST /json_proto HTTP/1.0 [11:28:29]Method: POST [11:28:29]URL: /json_proto [11:28:29]Method is POST - this is cgi request [11:28:29]url: /json_proto [11:28:29]query_string will be loaded in cgi processing [11:28:29]execute_cgi json_proto POST (null) [11:28:29]execute_cgi path=json_proto method=POST [11:28:29]POST find Content-Length [11:28:29]Host: 172.17.52.196:8080 [11:28:29]Content-Length: 622 [11:28:29]Content-Type: application/json [11:28:29] [11:28:29]POST finish read [11:28:29]Found Content-Length = 622 [11:28:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127161", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 2.000, "sum" : 320.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:29]execute_script... [11:28:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127161", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 2.000, "sum" : 320.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:29]POST & json_proto [11:28:29]process_json_proto [11:28:29]json parsed OK: [11:28:29]protocol is kg_v1.0 [11:28:29]action value=close_receipt [11:28:29]process_action close_receipt [11:28:29]cmd_close_receipt [11:28:29]MH_GetDate [11:28:29]Write to MH i2c: F0 00 00 61 0C 5C [11:28:29]Write i2c OK [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: F0 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: F0 09 00 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: F0 09 00 61 0C 00 5F E9 14 67 60 05 E4 66 D7 [11:28:29]GetLastDocTimeStamp 1729423014 [11:28:29]current date 1729423711 [11:28:29]FM_GetShiftState [11:28:29]SAM_PROTO_GetShiftState [11:28:29]wFMCommunicate request_size=4 [11:28:29]MH_SAM_APDU [11:28:29]CAPDU: 80 13 01 00 [11:28:29]Write to MH i2c: E2 08 00 62 0C 80 13 01 00 00 00 00 00 EB [11:28:29]Write i2c OK [11:28:29]MH_I2C_Read... [11:28:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:29]Read from MH i2c: E2 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 0E 00 [11:28:29]MH_I2C_Read... [11:28:29]Read from MH i2c: E2 0E 00 62 0C 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 7D [11:28:29]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [11:28:29]wFMCommunicate OK [11:28:29]SAM_PROTO_GetShiftState done [11:28:29]FM_GetShiftState done [11:28:29]opened in 1729384380 [11:28:29]opened+sec_in_day 1729470780 [11:28:29]quantity*price = 32000 [11:28:29]sum+1 = 32001 [11:28:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 320.00 НСП 1% : 2.83 НДС 12% : 33.98 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 50 20.10.2024 11:28 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69760 ФПД: 242991377448303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112831&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69760&fm=242991377448303&tin=02508201610067®Number=0000000000091770&sum=32000 0 [11:28:31]StoreToDocumentArchive [11:28:31]shift 526 fd 69760 [11:28:31]save to /storage/0526/doc_00069760 [11:28:31]save last doc name /storage/0526/doc_00069760 to /storage/kkm_last_doc_name [11:28:31]save OK [11:28:31]Clear old archive folders... [11:28:31]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:28:31]tlvbuf is 00979090 [11:28:31]SAM_PROTO_ClearQueue [11:28:31]wFMCommunicate request_size=4 [11:28:31]MH_SAM_APDU [11:28:31]CAPDU: 80 09 00 00 [11:28:31]Write to MH i2c: E2 08 00 6F 0C 80 09 00 00 00 00 00 00 ED [11:28:31]Write i2c OK [11:28:31]MH_I2C_Read... [11:28:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:31]Read from MH i2c: E2 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 03 00 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 03 00 6F 0C 00 90 00 EF [11:28:31]RAPDU: 90 00 [11:28:31]wFMCommunicate OK [11:28:31]SAM_PROTO_ClearQueue done [11:28:31]KKMCreateOFDPacket [11:28:31]OFDProtocolAddRootSTLVToBuf [11:28:31]FM_MakeSignedData [11:28:31]FM_MakeSignedData [11:28:31]SAM_PROTO_SignData [11:28:31]wFMCommunicate request_size=4 [11:28:31]MH_SAM_APDU [11:28:31]CAPDU: 80 0D 01 02 [11:28:31]Write to MH i2c: E2 08 00 70 0C 80 0D 01 02 00 00 00 00 F5 [11:28:31]Write i2c OK [11:28:31]MH_I2C_Read... [11:28:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:31]Read from MH i2c: E2 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 03 00 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 03 00 70 0C 00 90 00 F0 [11:28:31]RAPDU: 90 00 [11:28:31]wFMCommunicate OK [11:28:31]wFMCommunicate request_size=255 [11:28:31]MH_SAM_APDU [11:28:31]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 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 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 5F E9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 [11:28:31]Write to MH i2c: E2 02 01 71 0C 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 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 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 5F E9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 00 00 AB [11:28:31]Write i2c OK [11:28:31]MH_I2C_Read... [11:28:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:31]Read from MH i2c: E2 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 03 00 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 03 00 71 0C 00 90 00 F1 [11:28:31]RAPDU: 90 00 [11:28:31]wFMCommunicate OK [11:28:31]wFMCommunicate request_size=33 [11:28:31]MH_SAM_APDU [11:28:31]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 37 34 39 10 04 04 00 80 10 01 00 35 04 06 00 DC FF D6 BC 7D 6F [11:28:31]Write to MH i2c: E2 24 00 72 0C 80 0D 02 02 1C 00 30 30 30 30 38 37 31 37 34 39 10 04 04 00 80 10 01 00 35 04 06 00 DC FF D6 BC 7D 6F 00 00 75 [11:28:31]Write i2c OK [11:28:31]MH_I2C_Read... [11:28:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:31]Read from MH i2c: E2 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 03 00 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 03 00 72 0C 00 90 00 F2 [11:28:31]RAPDU: 90 00 [11:28:31]wFMCommunicate OK [11:28:31]wFMCommunicate request_size=4 [11:28:31]MH_SAM_APDU [11:28:31]CAPDU: 80 0D 03 02 [11:28:31]Write to MH i2c: E2 08 00 73 0C 80 0D 03 02 00 00 00 00 FA [11:28:31]Write i2c OK [11:28:31]MH_I2C_Read... [11:28:31]OFD Sender: No OFD packet to send [11:28:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:31]Read from MH i2c: E2 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 0B 00 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 0B 00 73 0C 00 84 2F BE 0A 60 63 C3 43 90 00 3F [11:28:31]RAPDU: 84 2F BE 0A 60 63 C3 43 90 00 [11:28:31]wFMCommunicate OK [11:28:31]SAM_PROTO_SignData done [11:28:31]FM_MakeSignedData done [11:28:31]CreateOFDProtocolMessage [11:28:31]wFMCommunicate request_size=4 [11:28:31]MH_SAM_APDU [11:28:31]CAPDU: 80 11 00 00 [11:28:31]Write to MH i2c: E2 08 00 74 0C 80 11 00 00 00 00 00 00 FA [11:28:31]Write i2c OK [11:28:31]MH_I2C_Read... [11:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:31]Read from MH i2c: E2 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 17 00 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 17 00 74 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 51 [11:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [11:28:31]wFMCommunicate OK [11:28:31]CreateOFDProtocolMessage done [11:28:31]OFDSenderStorePacket 69760 [11:28:31]StoreOFDPacket docnum=69760 [11:28:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 98 CE 1E 01 5C 5B 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 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 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 5F E9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 80 10 01 00 35 04 06 00 DC FF D6 BC 7D 6F 84 2F BE 0A 60 63 C3 43 [11:28:31]CheckFolder [11:28:31]dirname=/storage/ofd_packets [11:28:31]CheckFolder done [11:28:31]ProducePacketName [11:28:31]name=ofd_packets/00069760 [11:28:31]NVStorageSaveData ofd_packets/00069760 [11:28:31]File name is /storage/ofd_packets/00069760 [11:28:31]Write 324 bytes [11:28:31]NVStorageSaveData done [11:28:31]OFDSenderStorePacket done [11:28:31]KKMCreateOFDPacket done [11:28:31]NVStorageSaveData kkm_last_timestamp [11:28:31]File name is /storage/kkm_last_timestamp [11:28:31]Write 4 bytes [11:28:31]NVStorageSaveData done [11:28:31]ExternCall_PrintAddStr [11:28:31]wPrintStart [11:28:31]Write to MH i2c: 01 00 00 75 0C 81 [11:28:31]Write i2c OK [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: 01 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: 01 07 00 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: 01 07 00 75 0C 00 00 00 00 00 FF 0F 96 [11:28:31]RasterBufferAndPrint [11:28:31]line Счет N : (3)127161 [11:28:31]line ИНН: 02508201610067 [11:28:31]line Контрольно-Кассовый Чек [11:28:31]line ПРОДАЖА [11:28:31]line Товар: 48741958 [11:28:31]line Сигареты Parliament Aqua Blue [11:28:31]line 2.000 * 160.00 [11:28:31]line = 320.00 [11:28:31]line НДС 12% НСП 1% [11:28:31]line > о реализуемом товаре [11:28:31]line ИТОГО: 320.00 [11:28:31]line НСП 1% : 2.83 [11:28:31]line НДС 12% : 33.98 [11:28:31]line Наличными: 320.00 [11:28:31]line Безнал.: 0.00 [11:28:31]line Место: АЗС № 163 "Партнер Нефть" [11:28:31]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [11:28:31]line СНО: Общий режим [11:28:31]line Чек 50 20.10.2024 11:28 [11:28:31]line Смена: 526 ФФД: 1.0 [11:28:31]line ЗНМ: 0300000101 [11:28:31]line РНМ: 0000000000091770 [11:28:31]line Версия ККМ: 001 [11:28:31]line ФМ: 0000000000871749 [11:28:31]line ФД: 69760 [11:28:31]line ФПД: 242991377448303 [11:28:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112831&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69760&fm=242991377448303&tin=02508201610067®Number=0000000000091770&sum=32000 [11:28:31]line 0 [11:28:31]OFD Sender: Processing packet 69760 [packets to send 32, broken 31] [11:28:31]ProducePacketName [11:28:31]name=ofd_packets/00069760 [11:28:31]OFD Sender: To server: pG, [11:28:31]CommunicateWithHost lk.salyk.kg:30040 [11:28:31]ConnectInit lk.salyk.kg [11:28:31]written 0, free lines is 4095 [11:28:32]Connected sock=10 [11:28:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 98 CE 1E 01 5C 5B 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 00 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 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 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 5F E9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 80 10 01 00 35 04 06 00 DC FF D6 BC 7D 6F 84 2F BE 0A 60 63 C3 43 [11:28:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 B3 55 47 00 34 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 80 10 01 00 F4 03 04 00 E2 8E 14 67 B6 04 01 00 00 23 EB 11 41 E2 B2 1D DB [11:28:32]CommunicateWithHost err = 0 [11:28:32]CheckOFDResponse [11:28:32]1017 (14) - 77093643461234 [11:28:32]1041 (16) - 0000000000871749 [11:28:32]1040 (4) - 69760 [11:28:32]1012 (4) - 20.10.2024 05:02 [11:28:32]1206 (1) - 0 [11:28:32]OFD Sender: Remove packet 69760 [11:28:32]ProducePacketName [11:28:32]name=ofd_packets/00069760 [11:28:32]NVStorageDeleteData [11:28:32]Write to MH i2c: 01 00 00 9E 0C AA [11:28:32]Write i2c OK [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: 01 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: 01 07 00 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: 01 07 00 9E 0C 00 00 00 00 00 DB 0C 98 [11:28:32]RasterBufferAndPrint [11:28:32]line [11:28:32]line [11:28:32]line [11:28:32]line [11:28:32]line [11:28:32]written 0, free lines is 3297 [11:28:32]MH_Cut [11:28:32]Write to MH i2c: D1 01 00 A5 0C 01 83 [11:28:32]Write i2c OK [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: D1 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: D1 01 00 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: D1 01 00 A5 0C 00 82 [11:28:32]Write to MH i2c: 01 00 00 A6 0C B2 [11:28:32]Write i2c OK [11:28:32]MH_I2C_Read... [11:28:32]OFD Sender: No OFD packet to send [11:28:33]*** Cut start [11:28:33]*** Partial cut [11:28:33]*** CUTSNS_PIN = 1 [11:28:33]*** CUTSNS_PIN = 0 [11:28:33]*** Brake cut motor [11:28:33]Read from MH i2c: 01 [11:28:33]MH_I2C_Read... [11:28:33]*** Stop cut motor [11:28:33]*** Cut end [11:28:33]Read from MH i2c: 01 07 00 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: 01 07 00 A6 0C 00 00 00 00 00 FF 0F C7 [11:28:33]process_action close_receipt done [11:28:33]requested_data is exist [11:28:33]produce_requested_data [11:28:33]requested_item fm.sn is exist - process it [11:28:33]wFMCommunicate request_size=4 [11:28:33]MH_SAM_APDU [11:28:33]CAPDU: 80 11 00 00 [11:28:33]Write to MH i2c: E2 08 00 A7 0C 80 11 00 00 00 00 00 00 2D [11:28:33]Write i2c OK [11:28:33]MH_I2C_Read... [11:28:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:34]Read from MH i2c: E2 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: E2 17 00 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: E2 17 00 A7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 84 [11:28:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [11:28:34]wFMCommunicate OK [11:28:34]requested_item fd.num is exist - process it [11:28:34]SAM_PROTO_GetFieldsCounters [11:28:34]wFMCommunicate request_size=4 [11:28:34]MH_SAM_APDU [11:28:34]CAPDU: 80 13 00 00 [11:28:34]Write to MH i2c: E2 08 00 A8 0C 80 13 00 00 00 00 00 00 30 [11:28:34]Write i2c OK [11:28:34]MH_I2C_Read... [11:28:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:34]Read from MH i2c: E2 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: E2 62 00 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: E2 62 00 A8 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 80 10 01 00 0E 04 04 00 0E 02 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 8B [11:28: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 80 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:34]wFMCommunicate OK [11:28:34]SAM_PROTO_GetFieldsCounters done [11:28:34]requested_item shift.num is exist - process it [11:28:34]requested_item shift.opened is exist - process it [11:28:34]req_shift_opened [11:28:34]FM_GetShiftState [11:28:34]SAM_PROTO_GetShiftState [11:28:34]wFMCommunicate request_size=4 [11:28:34]MH_SAM_APDU [11:28:34]CAPDU: 80 13 01 00 [11:28:34]Write to MH i2c: E2 08 00 A9 0C 80 13 01 00 00 00 00 00 32 [11:28:34]Write i2c OK [11:28:34]MH_I2C_Read... [11:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:34]Read from MH i2c: E2 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: E2 0E 00 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: E2 0E 00 A9 0C 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 C4 [11:28:34]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [11:28:34]wFMCommunicate OK [11:28:34]SAM_PROTO_GetShiftState done [11:28:34]FM_GetShiftState done [11:28:34]req_shift_opened done [11:28:34]requested_item shift.open_date is exist - process it [11:28:34]req_shift_open_date [11:28:34]req_shift_open_date done [11:28:34]produce_requested_data done [11:28:34]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69760,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [11:28:34]process_action_free close_receipt [11:28:34]json_value_free [11:28:34]json_value_free done [11:28:34]process_json_proto returns [11:28:34]Send response to host [11:28:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69760,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [11:28:34]free response buf [11:28:34]execute_script done [11:28:34]execute_script returns [11:28:34]free content buf [11:28:34]Sock 9.Close socket [11:28:34]Sock 9.Thread stoped [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:28:59]accept exits with 7 [11:28:59]New connection [11:28:59]New thread 3066486116 created [11:28:59]Thread 3066629476 joined [11:28:59]Waiting for new connection... [11:28:59] Sock 7.Parse request [11:28:59]Sock 7.Check first char [11:28:59]Sock 7.First char is OK [11:28:59]request: POST /json_proto HTTP/1.0 [11:28:59]Method: POST [11:28:59]URL: /json_proto [11:28:59]Method is POST - this is cgi request [11:28:59]url: /json_proto [11:28:59]query_string will be loaded in cgi processing [11:28:59]execute_cgi json_proto POST (null) [11:28:59]execute_cgi path=json_proto method=POST [11:28:59]POST find Content-Length [11:28:59]Host: 172.17.52.196:8080 [11:28:59]Content-Length: 733 [11:28:59]Content-Type: application/json [11:28:59] [11:28:59]POST finish read [11:28:59]Found Content-Length = 733 [11:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127162", "tax_sys" : 0, "items" : [ { "code": "5904917030844", "name": "\u0414\u0440\u0430\u0436\u0435 CLACKER Johny Bee", "price" : 212.00, "quantity" : 1.000, "sum" : 212.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 212.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:59]execute_script... [11:28:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127162", "tax_sys" : 0, "items" : [ { "code": "5904917030844", "name": "\u0414\u0440\u0430\u0436\u0435 CLACKER Johny Bee", "price" : 212.00, "quantity" : 1.000, "sum" : 212.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 212.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:59]POST & json_proto [11:28:59]process_json_proto [11:28:59]json parsed OK: [11:28:59]protocol is kg_v1.0 [11:28:59]action value=close_receipt [11:28:59]process_action close_receipt [11:28:59]cmd_close_receipt [11:28:59]MH_GetDate [11:28:59]Write to MH i2c: F0 00 00 AA 0C A5 [11:28:59]Write i2c OK [11:28:59]MH_I2C_Read... [11:28:59]Read from MH i2c: F0 [11:28:59]MH_I2C_Read... [11:28:59]Read from MH i2c: F0 09 00 [11:28:59]MH_I2C_Read... [11:28:59]Read from MH i2c: F0 09 00 AA 0C 00 7D E9 14 67 60 05 E4 66 3E [11:28:59]GetLastDocTimeStamp 1729423711 [11:28:59]current date 1729423741 [11:28:59]FM_GetShiftState [11:28:59]SAM_PROTO_GetShiftState [11:28:59]wFMCommunicate request_size=4 [11:28:59]MH_SAM_APDU [11:28:59]CAPDU: 80 13 01 00 [11:28:59]Write to MH i2c: E2 08 00 AB 0C 80 13 01 00 00 00 00 00 34 [11:28:59]Write i2c OK [11:28:59]MH_I2C_Read... [11:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:59]Read from MH i2c: E2 [11:28:59]MH_I2C_Read... [11:28:59]Read from MH i2c: E2 0E 00 [11:28:59]MH_I2C_Read... [11:28:59]Read from MH i2c: E2 0E 00 AB 0C 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 C6 [11:28:59]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [11:28:59]wFMCommunicate OK [11:28:59]SAM_PROTO_GetShiftState done [11:28:59]FM_GetShiftState done [11:28:59]opened in 1729384380 [11:28:59]opened+sec_in_day 1729470780 [11:28:59]quantity*price = 21200 [11:28:59]sum+1 = 21201 [11:28:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 212.00 НСП 1% : 1.88 НДС 12% : 22.51 Наличными: 0.00 Безнал.: 212.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 51 20.10.2024 11:29 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69761 ФПД: 246385017307860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112901&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69761&fm=246385017307860&tin=02508201610067®Number=0000000000091770&sum=21200 0 [11:29:01]StoreToDocumentArchive [11:29:01]shift 526 fd 69761 [11:29:01]save to /storage/0526/doc_00069761 [11:29:01]save last doc name /storage/0526/doc_00069761 to /storage/kkm_last_doc_name [11:29:01]save OK [11:29:01]Clear old archive folders... [11:29:01]ProcessDocumentItem done err = 0, tmpTLVsize=270 [11:29:01]tlvbuf is 00978640 [11:29:01]SAM_PROTO_ClearQueue [11:29:01]wFMCommunicate request_size=4 [11:29:01]MH_SAM_APDU [11:29:01]CAPDU: 80 09 00 00 [11:29:01]Write to MH i2c: E2 08 00 B8 0C 80 09 00 00 00 00 00 00 36 [11:29:01]Write i2c OK [11:29:01]MH_I2C_Read... [11:29:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:01]Read from MH i2c: E2 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 03 00 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 03 00 B8 0C 00 90 00 38 [11:29:01]RAPDU: 90 00 [11:29:01]wFMCommunicate OK [11:29:01]SAM_PROTO_ClearQueue done [11:29:01]KKMCreateOFDPacket [11:29:01]OFDProtocolAddRootSTLVToBuf [11:29:01]FM_MakeSignedData [11:29:01]FM_MakeSignedData [11:29:01]SAM_PROTO_SignData [11:29:01]wFMCommunicate request_size=4 [11:29:01]MH_SAM_APDU [11:29:01]CAPDU: 80 0D 01 02 [11:29:01]Write to MH i2c: E2 08 00 B9 0C 80 0D 01 02 00 00 00 00 3E [11:29:01]Write i2c OK [11:29:01]MH_I2C_Read... [11:29:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:01]Read from MH i2c: E2 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 03 00 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 03 00 B9 0C 00 90 00 39 [11:29:01]RAPDU: 90 00 [11:29:01]wFMCommunicate OK [11:29:01]wFMCommunicate request_size=255 [11:29:01]MH_SAM_APDU [11:29:01]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 38 34 34 06 04 1C 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 43 4C 41 43 4B 45 52 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 D0 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 7D E9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [11:29:01]Write to MH i2c: E2 02 01 BA 0C 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 38 34 34 06 04 1C 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 43 4C 41 43 4B 45 52 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 D0 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 7D E9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 F1 [11:29:01]Write i2c OK [11:29:01]MH_I2C_Read... [11:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:01]Read from MH i2c: E2 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 03 00 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 03 00 BA 0C 00 90 00 3A [11:29:01]RAPDU: 90 00 [11:29:01]wFMCommunicate OK [11:29:01]wFMCommunicate request_size=29 [11:29:01]MH_SAM_APDU [11:29:01]CAPDU: 80 0D 02 02 18 38 37 31 37 34 39 10 04 04 00 81 10 01 00 35 04 06 00 E0 15 FB 6F 42 D4 [11:29:01]Write to MH i2c: E2 20 00 BB 0C 80 0D 02 02 18 00 38 37 31 37 34 39 10 04 04 00 81 10 01 00 35 04 06 00 E0 15 FB 6F 42 D4 00 00 13 [11:29:01]Write i2c OK [11:29:01]MH_I2C_Read... [11:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:01]Read from MH i2c: E2 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 03 00 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 03 00 BB 0C 00 90 00 3B [11:29:01]RAPDU: 90 00 [11:29:01]wFMCommunicate OK [11:29:01]wFMCommunicate request_size=4 [11:29:01]MH_SAM_APDU [11:29:01]CAPDU: 80 0D 03 02 [11:29:01]Write to MH i2c: E2 08 00 BC 0C 80 0D 03 02 00 00 00 00 43 [11:29:01]Write i2c OK [11:29:01]MH_I2C_Read... [11:29:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:01]Read from MH i2c: E2 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 0B 00 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 0B 00 BC 0C 00 59 88 7A 53 E7 48 A9 6F 90 00 39 [11:29:01]RAPDU: 59 88 7A 53 E7 48 A9 6F 90 00 [11:29:01]wFMCommunicate OK [11:29:01]SAM_PROTO_SignData done [11:29:01]FM_MakeSignedData done [11:29:01]CreateOFDProtocolMessage [11:29:01]wFMCommunicate request_size=4 [11:29:01]MH_SAM_APDU [11:29:01]CAPDU: 80 11 00 00 [11:29:01]Write to MH i2c: E2 08 00 BD 0C 80 11 00 00 00 00 00 00 43 [11:29:01]Write i2c OK [11:29:01]MH_I2C_Read... [11:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:01]Read from MH i2c: E2 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 17 00 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: E2 17 00 BD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 9A [11:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [11:29:01]wFMCommunicate OK [11:29:01]CreateOFDProtocolMessage done [11:29:01]OFDSenderStorePacket 69761 [11:29:01]StoreOFDPacket docnum=69761 [11:29:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 22 01 00 00 1E 51 1A 01 D4 66 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 38 34 34 06 04 1C 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 43 4C 41 43 4B 45 52 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 D0 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 7D E9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 81 10 01 00 35 04 06 00 E0 15 FB 6F 42 D4 59 88 7A 53 E7 48 A9 6F [11:29:01]CheckFolder [11:29:01]dirname=/storage/ofd_packets [11:29:01]CheckFolder done [11:29:01]ProducePacketName [11:29:01]name=ofd_packets/00069761 [11:29:01]NVStorageSaveData ofd_packets/00069761 [11:29:01]File name is /storage/ofd_packets/00069761 [11:29:01]Write 320 bytes [11:29:01]NVStorageSaveData done [11:29:01]OFDSenderStorePacket done [11:29:01]KKMCreateOFDPacket done [11:29:01]NVStorageSaveData kkm_last_timestamp [11:29:01]File name is /storage/kkm_last_timestamp [11:29:01]Write 4 bytes [11:29:01]NVStorageSaveData done [11:29:01]ExternCall_PrintAddStr [11:29:01]wPrintStart [11:29:01]Write to MH i2c: 01 00 00 BE 0C CA [11:29:01]Write i2c OK [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: 01 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: 01 07 00 [11:29:01]MH_I2C_Read... [11:29:01]Read from MH i2c: 01 07 00 BE 0C 00 00 00 00 00 FF 0F DF [11:29:01]RasterBufferAndPrint [11:29:01]line Счет N : (3)127162 [11:29:01]line ИНН: 02508201610067 [11:29:01]line Контрольно-Кассовый Чек [11:29:01]line ПРОДАЖА [11:29:01]line Товар: 5904917030844 [11:29:01]line Драже CLACKER Johny Bee [11:29:01]line 1.000 * 212.00 [11:29:01]line = 212.00 [11:29:01]line НДС 12% НСП 1% [11:29:01]line > о реализуемом товаре [11:29:01]line ИТОГО: 212.00 [11:29:01]line НСП 1% : 1.88 [11:29:01]line НДС 12% : 22.51 [11:29:01]line Наличными: 0.00 [11:29:01]line Безнал.: 212.00 [11:29:01]line Место: АЗС № 163 "Партнер Нефть" [11:29:01]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [11:29:01]line СНО: Общий режим [11:29:01]line Чек 51 20.10.2024 11:29 [11:29:01]line Смена: 526 ФФД: 1.0 [11:29:01]line ЗНМ: 0300000101 [11:29:01]line РНМ: 0000000000091770 [11:29:01]line Версия ККМ: 001 [11:29:01]line Платежная система: Mbank [11:29:01]line ФМ: 0000000000871749 [11:29:01]line ФД: 69761 [11:29:01]line ФПД: 246385017307860 [11:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T112901&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69761&fm=246385017307860&tin=02508201610067®Number=0000000000091770&sum=21200 [11:29:01]line 0 [11:29:01]OFD Sender: Processing packet 69761 [packets to send 32, broken 31] [11:29:01]ProducePacketName [11:29:01]name=ofd_packets/00069761 [11:29:01]OFD Sender: To server: pG, [11:29:01]CommunicateWithHost lk.salyk.kg:30040 [11:29:01]ConnectInit lk.salyk.kg [11:29:01]written 0, free lines is 4095 [11:29:02]Connected sock=10 [11:29:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 22 01 00 00 1E 51 1A 01 D4 66 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 38 34 34 06 04 1C 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 43 4C 41 43 4B 45 52 20 4A 6F 68 6E 79 20 42 65 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 D0 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 52 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 7D E9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 81 10 01 00 35 04 06 00 E0 15 FB 6F 42 D4 59 88 7A 53 E7 48 A9 6F [11:29:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 CD 84 47 00 A9 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 31 37 34 39 10 04 04 00 81 10 01 00 F4 03 04 00 00 8F 14 67 B6 04 01 00 00 D9 19 9C D7 EA D5 B5 D5 [11:29:02]CommunicateWithHost err = 0 [11:29:02]CheckOFDResponse [11:29:02]1017 (14) - 77093643461234 [11:29:02]1041 (16) - 0000000000871749 [11:29:02]1040 (4) - 69761 [11:29:02]1012 (4) - 20.10.2024 05:02 [11:29:02]1206 (1) - 0 [11:29:02]OFD Sender: Remove packet 69761 [11:29:02]ProducePacketName [11:29:02]name=ofd_packets/00069761 [11:29:02]NVStorageDeleteData [11:29:02]Write to MH i2c: 01 00 00 E7 0C F3 [11:29:02]Write i2c OK [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: 01 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: 01 07 00 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: 01 07 00 E7 0C 00 00 00 00 00 00 0D 07 [11:29:02]RasterBufferAndPrint [11:29:02]line [11:29:02]line [11:29:02]line [11:29:02]line [11:29:02]line [11:29:02]written 0, free lines is 3334 [11:29:02]MH_Cut [11:29:02]Write to MH i2c: D1 01 00 EE 0C 01 CC [11:29:02]Write i2c OK [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: D1 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: D1 01 00 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: D1 01 00 EE 0C 00 CB [11:29:02]Write to MH i2c: 01 00 00 EF 0C FB [11:29:02]Write i2c OK [11:29:02]MH_I2C_Read... [11:29:02]OFD Sender: No OFD packet to send [11:29:03]*** Cut start [11:29:03]*** Partial cut [11:29:03]*** CUTSNS_PIN = 1 [11:29:03]*** CUTSNS_PIN = 0 [11:29:03]*** Brake cut motor [11:29:03]Read from MH i2c: 01 [11:29:03]MH_I2C_Read... [11:29:03]*** Stop cut motor [11:29:03]*** Cut end [11:29:03]Read from MH i2c: 01 07 00 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: 01 07 00 EF 0C 00 00 00 00 00 FF 0F 10 [11:29:03]process_action close_receipt done [11:29:03]requested_data is exist [11:29:03]produce_requested_data [11:29:03]requested_item fm.sn is exist - process it [11:29:03]wFMCommunicate request_size=4 [11:29:03]MH_SAM_APDU [11:29:03]CAPDU: 80 11 00 00 [11:29:03]Write to MH i2c: E2 08 00 F0 0C 80 11 00 00 00 00 00 00 76 [11:29:03]Write i2c OK [11:29:03]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 17 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 17 00 F0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 CD [11:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [11:29:04]wFMCommunicate OK [11:29:04]requested_item fd.num is exist - process it [11:29:04]SAM_PROTO_GetFieldsCounters [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 13 00 00 [11:29:04]Write to MH i2c: E2 08 00 F1 0C 80 13 00 00 00 00 00 00 79 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 62 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 62 00 F1 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 81 10 01 00 0E 04 04 00 0E 02 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 D8 [11:29: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 81 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:04]wFMCommunicate OK [11:29:04]SAM_PROTO_GetFieldsCounters done [11:29:04]requested_item shift.num is exist - process it [11:29:04]requested_item shift.opened is exist - process it [11:29:04]req_shift_opened [11:29:04]FM_GetShiftState [11:29:04]SAM_PROTO_GetShiftState [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 13 01 00 [11:29:04]Write to MH i2c: E2 08 00 F2 0C 80 13 01 00 00 00 00 00 7B [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 0E 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 0E 00 F2 0C 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 0D [11:29:04]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [11:29:04]wFMCommunicate OK [11:29:04]SAM_PROTO_GetShiftState done [11:29:04]FM_GetShiftState done [11:29:04]req_shift_opened done [11:29:04]requested_item shift.open_date is exist - process it [11:29:04]req_shift_open_date [11:29:04]req_shift_open_date done [11:29:04]produce_requested_data done [11:29:04]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69761,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [11:29:04]process_action_free close_receipt [11:29:04]json_value_free [11:29:04]json_value_free done [11:29:04]process_json_proto returns [11:29:04]Send response to host [11:29:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69761,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [11:29:04]free response buf [11:29:04]execute_script done [11:29:04]execute_script returns [11:29:04]free content buf [11:29:04]Sock 7.Close socket [11:29:04]Sock 7.Thread stoped [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32: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:48]accept exits with 9 [11:39:48]New connection [11:39:48]New thread 3066629476 created [11:39:48]Thread 3066486116 joined [11:39:48]Waiting for new connection... [11:39:48] Sock 9.Parse request [11:39:48]Sock 9.Check first char [11:39:48]Sock 9.First char is OK [11:39:48]request: POST /json_proto HTTP/1.0 [11:39:48]Method: POST [11:39:48]URL: /json_proto [11:39:48]Method is POST - this is cgi request [11:39:48]url: /json_proto [11:39:48]query_string will be loaded in cgi processing [11:39:48]execute_cgi json_proto POST (null) [11:39:48]execute_cgi path=json_proto method=POST [11:39:48]POST find Content-Length [11:39:48]Host: 172.17.52.196:8080 [11:39:48]Content-Length: 680 [11:39:48]Content-Type: application/json [11:39:48] [11:39:48]POST finish read [11:39:48]Found Content-Length = 680 [11:39:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1003862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:48]execute_script... [11:39:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1003862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:48]POST & json_proto [11:39:48]process_json_proto [11:39:48]json parsed OK: [11:39:48]protocol is kg_v1.0 [11:39:48]action value=close_receipt [11:39:48]process_action close_receipt [11:39:48]cmd_close_receipt [11:39:48]MH_GetDate [11:39:48]Write to MH i2c: F0 00 00 F3 0C EE [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: F0 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: F0 09 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: F0 09 00 F3 0C 00 06 EC 14 67 60 05 E4 66 13 [11:39:48]GetLastDocTimeStamp 1729423741 [11:39:48]current date 1729424390 [11:39:48]FM_GetShiftState [11:39:48]SAM_PROTO_GetShiftState [11:39:48]wFMCommunicate request_size=4 [11:39:48]MH_SAM_APDU [11:39:48]CAPDU: 80 13 01 00 [11:39:48]Write to MH i2c: E2 08 00 F4 0C 80 13 01 00 00 00 00 00 7D [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:48]Read from MH i2c: E2 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 0E 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 0E 00 F4 0C 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 0F [11:39:48]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [11:39:48]wFMCommunicate OK [11:39:48]SAM_PROTO_GetShiftState done [11:39:48]FM_GetShiftState done [11:39:48]opened in 1729384380 [11:39:48]opened+sec_in_day 1729470780 [11:39:48]quantity*price = 200025 [11:39:48]sum+1 = 200026 [11:39:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 52 20.10.2024 11:39 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69762 ФПД: 43763593792607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113950&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69762&fm=43763593792607&tin=02508201610067®Number=0000000000091770&sum=200000 [11:39:49]StoreToDocumentArchive [11:39:49]shift 526 fd 69762 [11:39:49]save to /storage/0526/doc_00069762 [11:39:49]save last doc name /storage/0526/doc_00069762 to /storage/kkm_last_doc_name [11:39:49]save OK [11:39:49]Clear old archive folders... [11:39:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:39:49]tlvbuf is 00942A70 [11:39:49]SAM_PROTO_ClearQueue [11:39:49]wFMCommunicate request_size=4 [11:39:49]MH_SAM_APDU [11:39:49]CAPDU: 80 09 00 00 [11:39:49]Write to MH i2c: E2 08 00 01 0D 80 09 00 00 00 00 00 00 80 [11:39:49]Write i2c OK [11:39:49]MH_I2C_Read... [11:39:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:49]Read from MH i2c: E2 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: E2 03 00 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: E2 03 00 01 0D 00 90 00 82 [11:39:49]RAPDU: 90 00 [11:39:49]wFMCommunicate OK [11:39:49]SAM_PROTO_ClearQueue done [11:39:49]KKMCreateOFDPacket [11:39:49]OFDProtocolAddRootSTLVToBuf [11:39:49]FM_MakeSignedData [11:39:49]FM_MakeSignedData [11:39:49]SAM_PROTO_SignData [11:39:49]wFMCommunicate request_size=4 [11:39:49]MH_SAM_APDU [11:39:49]CAPDU: 80 0D 01 02 [11:39:49]Write to MH i2c: E2 08 00 02 0D 80 0D 01 02 00 00 00 00 88 [11:39:49]Write i2c OK [11:39:49]MH_I2C_Read... [11:39:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:49]Read from MH i2c: E2 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: E2 03 00 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: E2 03 00 02 0D 00 90 00 83 [11:39:49]RAPDU: 90 00 [11:39:49]wFMCommunicate OK [11:39:49]wFMCommunicate request_size=255 [11:39:49]MH_SAM_APDU [11:39:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 06 EC 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 82 10 01 00 35 04 06 00 27 CD 81 76 [11:39:49]Write to MH i2c: E2 02 01 03 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 06 EC 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 82 10 01 00 35 04 06 00 27 CD 81 76 00 00 2A [11:39:49]Write i2c OK [11:39:49]MH_I2C_Read... [11:39:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:50]Read from MH i2c: E2 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 03 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 03 00 03 0D 00 90 00 84 [11:39:50]RAPDU: 90 00 [11:39:50]wFMCommunicate OK [11:39:50]wFMCommunicate request_size=7 [11:39:50]MH_SAM_APDU [11:39:50]CAPDU: 80 0D 02 02 02 4C 5F [11:39:50]Write to MH i2c: E2 0A 00 04 0D 80 0D 02 02 02 00 4C 5F 00 00 3A [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:50]Read from MH i2c: E2 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 03 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 03 00 04 0D 00 90 00 85 [11:39:50]RAPDU: 90 00 [11:39:50]wFMCommunicate OK [11:39:50]wFMCommunicate request_size=4 [11:39:50]MH_SAM_APDU [11:39:50]CAPDU: 80 0D 03 02 [11:39:50]Write to MH i2c: E2 08 00 05 0D 80 0D 03 02 00 00 00 00 8D [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:50]Read from MH i2c: E2 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 0B 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 0B 00 05 0D 00 A7 06 71 8C 54 4A 23 79 90 00 72 [11:39:50]RAPDU: A7 06 71 8C 54 4A 23 79 90 00 [11:39:50]wFMCommunicate OK [11:39:50]SAM_PROTO_SignData done [11:39:50]FM_MakeSignedData done [11:39:50]CreateOFDProtocolMessage [11:39:50]wFMCommunicate request_size=4 [11:39:50]MH_SAM_APDU [11:39:50]CAPDU: 80 11 00 00 [11:39:50]Write to MH i2c: E2 08 00 06 0D 80 11 00 00 00 00 00 00 8D [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:50]Read from MH i2c: E2 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 17 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 17 00 06 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 E4 [11:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [11:39:50]wFMCommunicate OK [11:39:50]CreateOFDProtocolMessage done [11:39:50]OFDSenderStorePacket 69762 [11:39:50]StoreOFDPacket docnum=69762 [11:39:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0C 01 00 00 F0 FE 04 01 88 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 06 EC 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 82 10 01 00 35 04 06 00 27 CD 81 76 4C 5F A7 06 71 8C 54 4A 23 79 [11:39:50]CheckFolder [11:39:50]dirname=/storage/ofd_packets [11:39:50]CheckFolder done [11:39:50]ProducePacketName [11:39:50]name=ofd_packets/00069762 [11:39:50]NVStorageSaveData ofd_packets/00069762 [11:39:50]File name is /storage/ofd_packets/00069762 [11:39:50]Write 298 bytes [11:39:50]NVStorageSaveData done [11:39:50]OFDSenderStorePacket done [11:39:50]KKMCreateOFDPacket done [11:39:50]NVStorageSaveData kkm_last_timestamp [11:39:50]File name is /storage/kkm_last_timestamp [11:39:50]Write 4 bytes [11:39:50]NVStorageSaveData done [11:39:50]ExternCall_PrintAddStr [11:39:50]wPrintStart [11:39:50]Write to MH i2c: 01 00 00 07 0D 14 [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: 01 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: 01 07 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: 01 07 00 07 0D 00 00 00 00 00 FF 0F 29 [11:39:50]RasterBufferAndPrint [11:39:50]line Счет N : (1)1003862 [11:39:50]line ИНН: 02508201610067 [11:39:50]line Контрольно-Кассовый Чек [11:39:50]line ПРОДАЖА [11:39:50]line ТРК (МРК, ГНК) : 21 [11:39:50]line Товар: 2710194210 [11:39:50]line ДТ-К-2 [11:39:50]line 26.250 * 76.20 [11:39:50]line = 2000.25 [11:39:50]line НДС 12% НСП 1% [11:39:50]line > о реализуемом товаре [11:39:50]line ОКРУГЛЕНИЕ: -0.25 [11:39:50]line ИТОГО: 2000.00 [11:39:50]line Внесено: 2000.00 [11:39:50]line СДАЧА: 0.00 [11:39:50]line НСП 1% : 17.70 [11:39:50]line НДС 12% : 212.42 [11:39:50]line Наличными: 2000.00 [11:39:50]line Безнал.: 0.00 [11:39:50]line Место: АЗС № 163 "Партнер Нефть" [11:39:50]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [11:39:50]line СНО: Общий режим [11:39:50]line Чек 52 20.10.2024 11:39 [11:39:50]line Смена: 526 ФФД: 1.0 [11:39:50]line ЗНМ: 0300000101 [11:39:50]line РНМ: 0000000000091770 [11:39:50]line Версия ККМ: 001 [11:39:50]line ФМ: 0000000000871749 [11:39:50]line ФД: 69762 [11:39:50]line ФПД: 43763593792607 [11:39:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T113950&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69762&fm=43763593792607&tin=02508201610067®Number=0000000000091770&sum=200000 [11:39:50]OFD Sender: Processing packet 69762 [packets to send 32, broken 31] [11:39:50]ProducePacketName [11:39:50]name=ofd_packets/00069762 [11:39:50]OFD Sender: To server: pG, [11:39:50]CommunicateWithHost lk.salyk.kg:30040 [11:39:50]ConnectInit lk.salyk.kg [11:39:50]written 0, free lines is 4095 [11:39:50]Connected sock=11 [11:39:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0C 01 00 00 F0 FE 04 01 88 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 06 EC 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 82 10 01 00 35 04 06 00 27 CD 81 76 4C 5F A7 06 71 8C 54 4A 23 79 [11:39:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 C8 0C 47 00 12 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 82 10 01 00 F4 03 04 00 89 91 14 67 B6 04 01 00 00 91 58 06 AB 80 E8 1E 73 [11:39:50]CommunicateWithHost err = 0 [11:39:50]CheckOFDResponse [11:39:50]1017 (14) - 77093643461234 [11:39:50]1041 (16) - 0000000000871749 [11:39:50]1040 (4) - 69762 [11:39:50]1012 (4) - 20.10.2024 05:13 [11:39:50]1206 (1) - 0 [11:39:50]OFD Sender: Remove packet 69762 [11:39:50]ProducePacketName [11:39:50]name=ofd_packets/00069762 [11:39:50]NVStorageDeleteData [11:39:51]Write to MH i2c: 01 00 00 32 0D 3F [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: 01 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: 01 07 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: 01 07 00 32 0D 00 00 00 00 00 EA 0C 3C [11:39:51]RasterBufferAndPrint [11:39:51]line [11:39:51]line [11:39:51]line [11:39:51]line [11:39:51]line [11:39:51]written 0, free lines is 3312 [11:39:51]MH_Cut [11:39:51]Write to MH i2c: D1 01 00 39 0D 01 18 [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: D1 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: D1 01 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: D1 01 00 39 0D 00 17 [11:39:51]Write to MH i2c: 01 00 00 3A 0D 47 [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]OFD Sender: No OFD packet to send [11:39:51]*** Cut start [11:39:51]*** Partial cut [11:39:51]*** CUTSNS_PIN = 1 [11:39:51]*** CUTSNS_PIN = 0 [11:39:52]*** Brake cut motor [11:39:52]Read from MH i2c: 01 [11:39:52]MH_I2C_Read... [11:39:52]*** Stop cut motor [11:39:52]*** Cut end [11:39:52]Read from MH i2c: 01 07 00 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: 01 07 00 3A 0D 00 00 00 00 00 FF 0F 5C [11:39:52]process_action close_receipt done [11:39:52]requested_data is exist [11:39:52]produce_requested_data [11:39:52]requested_item fm.sn is exist - process it [11:39:52]wFMCommunicate request_size=4 [11:39:52]MH_SAM_APDU [11:39:52]CAPDU: 80 11 00 00 [11:39:52]Write to MH i2c: E2 08 00 3B 0D 80 11 00 00 00 00 00 00 C2 [11:39:52]Write i2c OK [11:39:52]MH_I2C_Read... [11:39:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:52]Read from MH i2c: E2 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: E2 17 00 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: E2 17 00 3B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 19 [11:39:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [11:39:52]wFMCommunicate OK [11:39:52]requested_item fd.num is exist - process it [11:39:52]SAM_PROTO_GetFieldsCounters [11:39:52]wFMCommunicate request_size=4 [11:39:52]MH_SAM_APDU [11:39:52]CAPDU: 80 13 00 00 [11:39:52]Write to MH i2c: E2 08 00 3C 0D 80 13 00 00 00 00 00 00 C5 [11:39:52]Write i2c OK [11:39:52]MH_I2C_Read... [11:39:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:52]Read from MH i2c: E2 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: E2 62 00 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: E2 62 00 3C 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 82 10 01 00 0E 04 04 00 0E 02 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 28 [11:39:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 82 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:52]wFMCommunicate OK [11:39:52]SAM_PROTO_GetFieldsCounters done [11:39:52]requested_item shift.num is exist - process it [11:39:52]requested_item shift.opened is exist - process it [11:39:52]req_shift_opened [11:39:52]FM_GetShiftState [11:39:52]SAM_PROTO_GetShiftState [11:39:52]wFMCommunicate request_size=4 [11:39:52]MH_SAM_APDU [11:39:52]CAPDU: 80 13 01 00 [11:39:52]Write to MH i2c: E2 08 00 3D 0D 80 13 01 00 00 00 00 00 C7 [11:39:52]Write i2c OK [11:39:52]MH_I2C_Read... [11:39:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:52]Read from MH i2c: E2 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: E2 0E 00 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: E2 0E 00 3D 0D 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 59 [11:39:52]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [11:39:52]wFMCommunicate OK [11:39:52]SAM_PROTO_GetShiftState done [11:39:52]FM_GetShiftState done [11:39:52]req_shift_opened done [11:39:52]requested_item shift.open_date is exist - process it [11:39:52]req_shift_open_date [11:39:52]req_shift_open_date done [11:39:52]produce_requested_data done [11:39:52]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69762,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [11:39:52]process_action_free close_receipt [11:39:52]json_value_free [11:39:52]json_value_free done [11:39:52]process_json_proto returns [11:39:52]Send response to host [11:39:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69762,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [11:39:52]free response buf [11:39:52]execute_script done [11:39:52]execute_script returns [11:39:52]free content buf [11:39:52]Sock 9.Close socket [11:39:52]Sock 9.Thread stoped [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:56]OFD Sender: No OFD packet to send [11:46:01]OFD Sender: No OFD packet to send [11:46:06]OFD Sender: No OFD packet to send [11:46:11]OFD Sender: No OFD packet to send [11:46:16]OFD Sender: No OFD packet to send [11:46:21]OFD Sender: No OFD packet to send [11:46:26]OFD Sender: No OFD packet to send [11:46:31]OFD Sender: No OFD packet to send [11:46:36]OFD Sender: No OFD packet to send [11:46:41]OFD Sender: No OFD packet to send [11:46:46]OFD Sender: No OFD packet to send [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]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:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:13]OFD Sender: No OFD packet to send [12:16:18]OFD Sender: No OFD packet to send [12:16:23]OFD Sender: No OFD packet to send [12:16:28]OFD Sender: No OFD packet to send [12:16:33]OFD Sender: No OFD packet to send [12:16:38]OFD Sender: No OFD packet to send [12:16:43]OFD Sender: No OFD packet to send [12:16:48]OFD Sender: No OFD packet to send [12:16:53]OFD Sender: No OFD packet to send [12:16:58]OFD Sender: No OFD packet to send [12:17:03]OFD Sender: No OFD packet to send [12:17:08]OFD Sender: No OFD packet to send [12:17:13]OFD Sender: No OFD packet to send [12:17:18]OFD Sender: No OFD packet to send [12:17:23]OFD Sender: No OFD packet to send [12:17:28]OFD Sender: No OFD packet to send [12:17:33]OFD Sender: No OFD packet to send [12:17:38]OFD Sender: No OFD packet to send [12:17:43]OFD Sender: No OFD packet to send [12:17:48]OFD Sender: No OFD packet to send [12:17:53]OFD Sender: No OFD packet to send [12:17:58]OFD Sender: No OFD packet to send [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:28]OFD Sender: No OFD packet to send [12:18:33]OFD Sender: No OFD packet to send [12:18:38]OFD Sender: No OFD packet to send [12:18:43]OFD Sender: No OFD packet to send [12:18:48]OFD Sender: No OFD packet to send [12:18:53]OFD Sender: No OFD packet to send [12:18:58]OFD Sender: No OFD packet to send [12:19:03]OFD Sender: No OFD packet to send [12:19:08]OFD Sender: No OFD packet to send [12:19:13]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:28]OFD Sender: No OFD packet to send [12:19:33]OFD Sender: No OFD packet to send [12:19:38]OFD Sender: No OFD packet to send [12:19:43]OFD Sender: No OFD packet to send [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:58]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:43]OFD Sender: No OFD packet to send [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:01]accept exits with 7 [12:22:01]New connection [12:22:01]New thread 3066486116 created [12:22:01]Thread 3066629476 joined [12:22:01]Waiting for new connection... [12:22:01] Sock 7.Parse request [12:22:01]Sock 7.Check first char [12:22:01]Sock 7.First char is OK [12:22:01]request: POST /json_proto HTTP/1.0 [12:22:01]Method: POST [12:22:01]URL: /json_proto [12:22:01]Method is POST - this is cgi request [12:22:01]url: /json_proto [12:22:01]query_string will be loaded in cgi processing [12:22:01]execute_cgi json_proto POST (null) [12:22:01]execute_cgi path=json_proto method=POST [12:22:01]POST find Content-Length [12:22:01]Host: 172.17.52.196:8080 [12:22:01]Content-Length: 632 [12:22:01]Content-Type: application/json [12:22:01] [12:22:01]POST finish read [12:22:01]Found Content-Length = 632 [12:22:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127163", "tax_sys" : 0, "items" : [ { "code": "46231512", "name": "Mentos \u041F\u0424 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:01]execute_script... [12:22:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127163", "tax_sys" : 0, "items" : [ { "code": "46231512", "name": "Mentos \u041F\u0424 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:01]POST & json_proto [12:22:01]process_json_proto [12:22:01]json parsed OK: [12:22:01]protocol is kg_v1.0 [12:22:01]action value=close_receipt [12:22:01]process_action close_receipt [12:22:01]cmd_close_receipt [12:22:01]MH_GetDate [12:22:01]Write to MH i2c: F0 00 00 3E 0D 3A [12:22:01]Write i2c OK [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: F0 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: F0 09 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: F0 09 00 3E 0D 00 EB F5 14 67 60 05 E4 66 4D [12:22:01]GetLastDocTimeStamp 1729424390 [12:22:01]current date 1729426923 [12:22:01]FM_GetShiftState [12:22:01]SAM_PROTO_GetShiftState [12:22:01]wFMCommunicate request_size=4 [12:22:01]MH_SAM_APDU [12:22:01]CAPDU: 80 13 01 00 [12:22:01]Write to MH i2c: E2 08 00 3F 0D 80 13 01 00 00 00 00 00 C9 [12:22:01]Write i2c OK [12:22:01]MH_I2C_Read... [12:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:01]Read from MH i2c: E2 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 0E 00 [12:22:01]MH_I2C_Read... [12:22:01]Read from MH i2c: E2 0E 00 3F 0D 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 5B [12:22:01]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [12:22:01]wFMCommunicate OK [12:22:01]SAM_PROTO_GetShiftState done [12:22:01]FM_GetShiftState done [12:22:01]opened in 1729384380 [12:22:01]opened+sec_in_day 1729470780 [12:22:01]quantity*price = 1000 [12:22:01]sum+1 = 1001 [12:22:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 53 20.10.2024 12:22 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69763 ФПД: 41905534722293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122203&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69763&fm=41905534722293&tin=02508201610067®Number=0000000000091770&sum=1000 0 [12:22:02]StoreToDocumentArchive [12:22:02]shift 526 fd 69763 [12:22:02]save to /storage/0526/doc_00069763 [12:22:02]save last doc name /storage/0526/doc_00069763 to /storage/kkm_last_doc_name [12:22:02]save OK [12:22:02]Clear old archive folders... [12:22:02]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:22:02]tlvbuf is 00972970 [12:22:02]SAM_PROTO_ClearQueue [12:22:02]wFMCommunicate request_size=4 [12:22:02]MH_SAM_APDU [12:22:02]CAPDU: 80 09 00 00 [12:22:02]Write to MH i2c: E2 08 00 4C 0D 80 09 00 00 00 00 00 00 CB [12:22:02]Write i2c OK [12:22:02]MH_I2C_Read... [12:22:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:02]Read from MH i2c: E2 [12:22:02]MH_I2C_Read... [12:22:02]Read from MH i2c: E2 03 00 [12:22:02]MH_I2C_Read... [12:22:02]Read from MH i2c: E2 03 00 4C 0D 00 90 00 CD [12:22:02]RAPDU: 90 00 [12:22:02]wFMCommunicate OK [12:22:02]SAM_PROTO_ClearQueue done [12:22:02]KKMCreateOFDPacket [12:22:02]OFDProtocolAddRootSTLVToBuf [12:22:02]FM_MakeSignedData [12:22:02]FM_MakeSignedData [12:22:02]SAM_PROTO_SignData [12:22:02]wFMCommunicate request_size=4 [12:22:02]MH_SAM_APDU [12:22:02]CAPDU: 80 0D 01 02 [12:22:02]Write to MH i2c: E2 08 00 4D 0D 80 0D 01 02 00 00 00 00 D3 [12:22:02]Write i2c OK [12:22:02]MH_I2C_Read... [12:22:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:03]Read from MH i2c: E2 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 03 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 03 00 4D 0D 00 90 00 CE [12:22:03]RAPDU: 90 00 [12:22:03]wFMCommunicate OK [12:22:03]wFMCommunicate request_size=255 [12:22:03]MH_SAM_APDU [12:22:03]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 EB F5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 [12:22:03]Write to MH i2c: E2 02 01 4E 0D 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 EB F5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 00 00 D8 [12:22:03]Write i2c OK [12:22:03]MH_I2C_Read... [12:22:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:03]Read from MH i2c: E2 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 03 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 03 00 4E 0D 00 90 00 CF [12:22:03]RAPDU: 90 00 [12:22:03]wFMCommunicate OK [12:22:03]wFMCommunicate request_size=34 [12:22:03]MH_SAM_APDU [12:22:03]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 83 10 01 00 35 04 06 00 26 1C E4 82 E0 F5 [12:22:03]Write to MH i2c: E2 25 00 4F 0D 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 83 10 01 00 35 04 06 00 26 1C E4 82 E0 F5 00 00 AC [12:22:03]Write i2c OK [12:22:03]MH_I2C_Read... [12:22:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:03]Read from MH i2c: E2 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 03 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 03 00 4F 0D 00 90 00 D0 [12:22:03]RAPDU: 90 00 [12:22:03]wFMCommunicate OK [12:22:03]wFMCommunicate request_size=4 [12:22:03]MH_SAM_APDU [12:22:03]CAPDU: 80 0D 03 02 [12:22:03]Write to MH i2c: E2 08 00 50 0D 80 0D 03 02 00 00 00 00 D8 [12:22:03]Write i2c OK [12:22:03]MH_I2C_Read... [12:22:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:03]Read from MH i2c: E2 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 0B 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 0B 00 50 0D 00 53 9A B2 86 5E 72 49 99 90 00 B0 [12:22:03]RAPDU: 53 9A B2 86 5E 72 49 99 90 00 [12:22:03]wFMCommunicate OK [12:22:03]SAM_PROTO_SignData done [12:22:03]FM_MakeSignedData done [12:22:03]CreateOFDProtocolMessage [12:22:03]wFMCommunicate request_size=4 [12:22:03]MH_SAM_APDU [12:22:03]CAPDU: 80 11 00 00 [12:22:03]Write to MH i2c: E2 08 00 51 0D 80 11 00 00 00 00 00 00 D8 [12:22:03]Write i2c OK [12:22:03]MH_I2C_Read... [12:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:03]Read from MH i2c: E2 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 17 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 17 00 51 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 2F [12:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [12:22:03]wFMCommunicate OK [12:22:03]CreateOFDProtocolMessage done [12:22:03]OFDSenderStorePacket 69763 [12:22:03]StoreOFDPacket docnum=69763 [12:22:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 97 C9 1F 01 26 4F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 EB F5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 83 10 01 00 35 04 06 00 26 1C E4 82 E0 F5 53 9A B2 86 5E 72 49 99 [12:22:03]CheckFolder [12:22:03]dirname=/storage/ofd_packets [12:22:03]CheckFolder done [12:22:03]ProducePacketName [12:22:03]name=ofd_packets/00069763 [12:22:03]NVStorageSaveData ofd_packets/00069763 [12:22:03]File name is /storage/ofd_packets/00069763 [12:22:03]Write 325 bytes [12:22:03]NVStorageSaveData done [12:22:03]OFDSenderStorePacket done [12:22:03]KKMCreateOFDPacket done [12:22:03]NVStorageSaveData kkm_last_timestamp [12:22:03]File name is /storage/kkm_last_timestamp [12:22:03]Write 4 bytes [12:22:03]NVStorageSaveData done [12:22:03]ExternCall_PrintAddStr [12:22:03]wPrintStart [12:22:03]Write to MH i2c: 01 00 00 52 0D 5F [12:22:03]Write i2c OK [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: 01 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: 01 07 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: 01 07 00 52 0D 00 00 00 00 00 FF 0F 74 [12:22:03]RasterBufferAndPrint [12:22:03]line Счет N : (3)127163 [12:22:03]line ИНН: 02508201610067 [12:22:03]line Контрольно-Кассовый Чек [12:22:03]line ПРОДАЖА [12:22:03]line Товар: 46231512 [12:22:03]line Mentos ПФ Виноград 6*100*2г [12:22:03]line 1.000 * 10.00 [12:22:03]line = 10.00 [12:22:03]line НДС 12% НСП 1% [12:22:03]line > о реализуемом товаре [12:22:03]line ИТОГО: 10.00 [12:22:03]line НСП 1% : 0.09 [12:22:03]line НДС 12% : 1.06 [12:22:03]line Наличными: 10.00 [12:22:03]line Безнал.: 0.00 [12:22:03]line Место: АЗС № 163 "Партнер Нефть" [12:22:03]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [12:22:03]line СНО: Общий режим [12:22:03]line Чек 53 20.10.2024 12:22 [12:22:03]line Смена: 526 ФФД: 1.0 [12:22:03]line ЗНМ: 0300000101 [12:22:03]line РНМ: 0000000000091770 [12:22:03]line Версия ККМ: 001 [12:22:03]line ФМ: 0000000000871749 [12:22:03]line ФД: 69763 [12:22:03]line ФПД: 41905534722293 [12:22:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122203&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69763&fm=41905534722293&tin=02508201610067®Number=0000000000091770&sum=1000 [12:22:03]OFD Sender: Processing packet 69763 [packets to send 32, broken 31] [12:22:03]ProducePacketName [12:22:03]name=ofd_packets/00069763 [12:22:03]OFD Sender: To server: pG, [12:22:03]CommunicateWithHost lk.salyk.kg:30040 [12:22:03]ConnectInit lk.salyk.kg [12:22:03]line 0 [12:22:03]written 0, free lines is 4095 [12:22:03]Connected sock=10 [12:22:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 97 C9 1F 01 26 4F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 36 32 33 31 35 31 32 06 04 26 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 EB F5 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 83 10 01 00 35 04 06 00 26 1C E4 82 E0 F5 53 9A B2 86 5E 72 49 99 [12:22:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 4C EB 47 00 92 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 83 10 01 00 F4 03 04 00 6E 9B 14 67 B6 04 01 00 00 5D A3 DC 88 0E A7 0C A8 [12:22:04]CommunicateWithHost err = 0 [12:22:04]CheckOFDResponse [12:22:04]1017 (14) - 77093643461234 [12:22:04]1041 (16) - 0000000000871749 [12:22:04]1040 (4) - 69763 [12:22:04]1012 (4) - 20.10.2024 05:55 [12:22:04]1206 (1) - 0 [12:22:04]OFD Sender: Remove packet 69763 [12:22:04]ProducePacketName [12:22:04]name=ofd_packets/00069763 [12:22:04]NVStorageDeleteData [12:22:04]Write to MH i2c: 01 00 00 7A 0D 87 [12:22:04]Write i2c OK [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: 01 [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: 01 07 00 [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: 01 07 00 7A 0D 00 00 00 00 00 06 0D A1 [12:22:04]RasterBufferAndPrint [12:22:04]line [12:22:04]line [12:22:04]line [12:22:04]line [12:22:04]line [12:22:04]written 0, free lines is 3340 [12:22:04]MH_Cut [12:22:04]Write to MH i2c: D1 01 00 81 0D 01 60 [12:22:04]Write i2c OK [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: D1 [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: D1 01 00 [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: D1 01 00 81 0D 00 5F [12:22:04]Write to MH i2c: 01 00 00 82 0D 8F [12:22:04]Write i2c OK [12:22:04]MH_I2C_Read... [12:22:04]OFD Sender: No OFD packet to send [12:22:04]*** Cut start [12:22:04]*** Partial cut [12:22:04]*** CUTSNS_PIN = 1 [12:22:05]*** CUTSNS_PIN = 0 [12:22:05]*** Brake cut motor [12:22:05]Read from MH i2c: 01 [12:22:05]MH_I2C_Read... [12:22:05]*** Stop cut motor [12:22:05]*** Cut end [12:22:05]Read from MH i2c: 01 07 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: 01 07 00 82 0D 00 00 00 00 00 FF 0F A4 [12:22:05]process_action close_receipt done [12:22:05]requested_data is exist [12:22:05]produce_requested_data [12:22:05]requested_item fm.sn is exist - process it [12:22:05]wFMCommunicate request_size=4 [12:22:05]MH_SAM_APDU [12:22:05]CAPDU: 80 11 00 00 [12:22:05]Write to MH i2c: E2 08 00 83 0D 80 11 00 00 00 00 00 00 0A [12:22:05]Write i2c OK [12:22:05]MH_I2C_Read... [12:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:05]Read from MH i2c: E2 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 17 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 17 00 83 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 61 [12:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [12:22:05]wFMCommunicate OK [12:22:05]requested_item fd.num is exist - process it [12:22:05]SAM_PROTO_GetFieldsCounters [12:22:05]wFMCommunicate request_size=4 [12:22:05]MH_SAM_APDU [12:22:05]CAPDU: 80 13 00 00 [12:22:05]Write to MH i2c: E2 08 00 84 0D 80 13 00 00 00 00 00 00 0D [12:22:05]Write i2c OK [12:22:05]MH_I2C_Read... [12:22:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:05]Read from MH i2c: E2 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 62 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 62 00 84 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 83 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [12:22:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 83 10 01 00 0E 04 04 00 0E 02 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 [12:22:06]wFMCommunicate OK [12:22:06]SAM_PROTO_GetFieldsCounters done [12:22:06]requested_item shift.num is exist - process it [12:22:06]requested_item shift.opened is exist - process it [12:22:06]req_shift_opened [12:22:06]FM_GetShiftState [12:22:06]SAM_PROTO_GetShiftState [12:22:06]wFMCommunicate request_size=4 [12:22:06]MH_SAM_APDU [12:22:06]CAPDU: 80 13 01 00 [12:22:06]Write to MH i2c: E2 08 00 85 0D 80 13 01 00 00 00 00 00 0F [12:22:06]Write i2c OK [12:22:06]MH_I2C_Read... [12:22:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:06]Read from MH i2c: E2 [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: E2 0E 00 [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: E2 0E 00 85 0D 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 A1 [12:22:06]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [12:22:06]wFMCommunicate OK [12:22:06]SAM_PROTO_GetShiftState done [12:22:06]FM_GetShiftState done [12:22:06]req_shift_opened done [12:22:06]requested_item shift.open_date is exist - process it [12:22:06]req_shift_open_date [12:22:06]req_shift_open_date done [12:22:06]produce_requested_data done [12:22:06]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69763,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [12:22:06]process_action_free close_receipt [12:22:06]json_value_free [12:22:06]json_value_free done [12:22:06]process_json_proto returns [12:22:06]Send response to host [12:22:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69763,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [12:22:06]free response buf [12:22:06]execute_script done [12:22:06]execute_script returns [12:22:06]free content buf [12:22:06]Sock 7.Close socket [12:22:06]Sock 7.Thread stoped [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23: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:48]accept exits with 9 [12:27:48]New connection [12:27:48]New thread 3066629476 created [12:27:48]Thread 3066486116 joined [12:27:48]Waiting for new connection... [12:27:48] Sock 9.Parse request [12:27:48]Sock 9.Check first char [12:27:48]Sock 9.First char is OK [12:27:48]request: POST /json_proto HTTP/1.0 [12:27:48]Method: POST [12:27:48]URL: /json_proto [12:27:48]Method is POST - this is cgi request [12:27:48]url: /json_proto [12:27:48]query_string will be loaded in cgi processing [12:27:48]execute_cgi json_proto POST (null) [12:27:48]execute_cgi path=json_proto method=POST [12:27:48]POST find Content-Length [12:27:48]Host: 172.17.52.196:8080 [12:27:48]Content-Length: 647 [12:27:48]Content-Type: application/json [12:27:48] [12:27:48]POST finish read [12:27:48]Found Content-Length = 647 [12:27:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127164", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:48]execute_script... [12:27: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)127164", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:48]POST & json_proto [12:27:48]process_json_proto [12:27:48]json parsed OK: [12:27:48]protocol is kg_v1.0 [12:27:48]action value=close_receipt [12:27:48]process_action close_receipt [12:27:48]cmd_close_receipt [12:27:48]MH_GetDate [12:27:48]Write to MH i2c: F0 00 00 86 0D 82 [12:27:48]Write i2c OK [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: F0 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: F0 09 00 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: F0 09 00 86 0D 00 46 F7 14 67 60 05 E4 66 F2 [12:27:48]GetLastDocTimeStamp 1729426923 [12:27:48]current date 1729427270 [12:27:48]FM_GetShiftState [12:27:48]SAM_PROTO_GetShiftState [12:27:48]wFMCommunicate request_size=4 [12:27:48]MH_SAM_APDU [12:27:48]CAPDU: 80 13 01 00 [12:27:48]Write to MH i2c: E2 08 00 87 0D 80 13 01 00 00 00 00 00 11 [12:27:48]Write i2c OK [12:27:48]MH_I2C_Read... [12:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:48]Read from MH i2c: E2 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 0E 00 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 0E 00 87 0D 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 A3 [12:27:48]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [12:27:48]wFMCommunicate OK [12:27:48]SAM_PROTO_GetShiftState done [12:27:48]FM_GetShiftState done [12:27:48]opened in 1729384380 [12:27:48]opened+sec_in_day 1729470780 [12:27:48]quantity*price = 13000 [12:27:48]sum+1 = 13001 [12:27:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 54 20.10.2024 12:27 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69764 ФПД: 143464346541189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122750&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69764&fm=143464346541189&tin=02508201610067®Number=0000000000091770&sum=13000 0 [12:27:50]StoreToDocumentArchive [12:27:50]shift 526 fd 69764 [12:27:50]save to /storage/0526/doc_00069764 [12:27:50]save last doc name /storage/0526/doc_00069764 to /storage/kkm_last_doc_name [12:27:50]save OK [12:27:50]Clear old archive folders... [12:27:50]ProcessDocumentItem done err = 0, tmpTLVsize=272 [12:27:50]tlvbuf is 00961050 [12:27:50]SAM_PROTO_ClearQueue [12:27:50]wFMCommunicate request_size=4 [12:27:50]MH_SAM_APDU [12:27:50]CAPDU: 80 09 00 00 [12:27:50]Write to MH i2c: E2 08 00 94 0D 80 09 00 00 00 00 00 00 13 [12:27:50]Write i2c OK [12:27:50]MH_I2C_Read... [12:27:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:50]Read from MH i2c: E2 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 03 00 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 03 00 94 0D 00 90 00 15 [12:27:50]RAPDU: 90 00 [12:27:50]wFMCommunicate OK [12:27:50]SAM_PROTO_ClearQueue done [12:27:50]KKMCreateOFDPacket [12:27:50]OFDProtocolAddRootSTLVToBuf [12:27:50]FM_MakeSignedData [12:27:50]FM_MakeSignedData [12:27:50]SAM_PROTO_SignData [12:27:50]wFMCommunicate request_size=4 [12:27:50]MH_SAM_APDU [12:27:50]CAPDU: 80 0D 01 02 [12:27:50]Write to MH i2c: E2 08 00 95 0D 80 0D 01 02 00 00 00 00 1B [12:27:50]Write i2c OK [12:27:50]MH_I2C_Read... [12:27:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:50]Read from MH i2c: E2 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 03 00 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 03 00 95 0D 00 90 00 16 [12:27:50]RAPDU: 90 00 [12:27:50]wFMCommunicate OK [12:27:50]wFMCommunicate request_size=255 [12:27:50]MH_SAM_APDU [12:27:50]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 46 F7 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 [12:27:50]Write to MH i2c: E2 02 01 96 0D 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 46 F7 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 B6 [12:27:50]Write i2c OK [12:27:50]MH_I2C_Read... [12:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:50]Read from MH i2c: E2 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 03 00 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 03 00 96 0D 00 90 00 17 [12:27:50]RAPDU: 90 00 [12:27:50]wFMCommunicate OK [12:27:50]wFMCommunicate request_size=31 [12:27:50]MH_SAM_APDU [12:27:50]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 37 34 39 10 04 04 00 84 10 01 00 35 04 06 00 82 7A E5 69 DC 85 [12:27:50]Write to MH i2c: E2 22 00 97 0D 80 0D 02 02 1A 00 30 30 38 37 31 37 34 39 10 04 04 00 84 10 01 00 35 04 06 00 82 7A E5 69 DC 85 00 00 8D [12:27:50]Write i2c OK [12:27:50]MH_I2C_Read... [12:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:50]Read from MH i2c: E2 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 03 00 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 03 00 97 0D 00 90 00 18 [12:27:50]RAPDU: 90 00 [12:27:50]wFMCommunicate OK [12:27:50]wFMCommunicate request_size=4 [12:27:50]MH_SAM_APDU [12:27:50]CAPDU: 80 0D 03 02 [12:27:50]Write to MH i2c: E2 08 00 98 0D 80 0D 03 02 00 00 00 00 20 [12:27:50]Write i2c OK [12:27:50]MH_I2C_Read... [12:27:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:50]Read from MH i2c: E2 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 0B 00 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 0B 00 98 0D 00 F2 C0 13 25 DD CB F3 AB 90 00 51 [12:27:50]RAPDU: F2 C0 13 25 DD CB F3 AB 90 00 [12:27:50]wFMCommunicate OK [12:27:50]SAM_PROTO_SignData done [12:27:50]FM_MakeSignedData done [12:27:50]CreateOFDProtocolMessage [12:27:50]wFMCommunicate request_size=4 [12:27:50]MH_SAM_APDU [12:27:50]CAPDU: 80 11 00 00 [12:27:50]Write to MH i2c: E2 08 00 99 0D 80 11 00 00 00 00 00 00 20 [12:27:50]Write i2c OK [12:27:50]MH_I2C_Read... [12:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:50]Read from MH i2c: E2 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 17 00 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 17 00 99 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 77 [12:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [12:27:50]wFMCommunicate OK [12:27:50]CreateOFDProtocolMessage done [12:27:50]OFDSenderStorePacket 69764 [12:27:50]StoreOFDPacket docnum=69764 [12:27:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 3F E5 1C 01 34 27 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 46 F7 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 84 10 01 00 35 04 06 00 82 7A E5 69 DC 85 F2 C0 13 25 DD CB F3 AB [12:27:50]CheckFolder [12:27:50]dirname=/storage/ofd_packets [12:27:50]CheckFolder done [12:27:50]ProducePacketName [12:27:50]name=ofd_packets/00069764 [12:27:50]NVStorageSaveData ofd_packets/00069764 [12:27:50]File name is /storage/ofd_packets/00069764 [12:27:50]Write 322 bytes [12:27:50]NVStorageSaveData done [12:27:50]OFDSenderStorePacket done [12:27:50]KKMCreateOFDPacket done [12:27:50]NVStorageSaveData kkm_last_timestamp [12:27:50]File name is /storage/kkm_last_timestamp [12:27:50]Write 4 bytes [12:27:50]NVStorageSaveData done [12:27:50]ExternCall_PrintAddStr [12:27:50]wPrintStart [12:27:50]Write to MH i2c: 01 00 00 9A 0D A7 [12:27:50]Write i2c OK [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: 01 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: 01 07 00 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: 01 07 00 9A 0D 00 00 00 00 00 FF 0F BC [12:27:50]RasterBufferAndPrint [12:27:50]line Счет N : (3)127164 [12:27:50]line ИНН: 02508201610067 [12:27:50]line Контрольно-Кассовый Чек [12:27:50]line ПРОДАЖА [12:27:50]line Товар: 47011656 [12:27:50]line Водка Пшеничная 0,1л [12:27:50]line 2.000 * 65.00 [12:27:50]line = 130.00 [12:27:50]line НДС 12% НСП 1% [12:27:50]line > о реализуемом товаре [12:27:50]line ИТОГО: 130.00 [12:27:50]line НСП 1% : 1.15 [12:27:50]line НДС 12% : 13.80 [12:27:50]line Наличными: 130.00 [12:27:50]line Безнал.: 0.00 [12:27:50]line Место: АЗС № 163 "Партнер Нефть" [12:27:50]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [12:27:50]line СНО: Общий режим [12:27:50]line Чек 54 20.10.2024 12:27 [12:27:50]line Смена: 526 ФФД: 1.0 [12:27:50]line ЗНМ: 0300000101 [12:27:50]line РНМ: 0000000000091770 [12:27:50]line Версия ККМ: 001 [12:27:50]line ФМ: 0000000000871749 [12:27:50]line ФД: 69764 [12:27:50]line ФПД: 143464346541189 [12:27:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T122750&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69764&fm=143464346541189&tin=02508201610067®Number=0000000000091770&sum=13000 [12:27:50]line 0 [12:27:50]OFD Sender: Processing packet 69764 [packets to send 32, broken 31] [12:27:50]ProducePacketName [12:27:50]name=ofd_packets/00069764 [12:27:50]OFD Sender: To server: pG, [12:27:50]CommunicateWithHost lk.salyk.kg:30040 [12:27:50]ConnectInit lk.salyk.kg [12:27:50]written 0, free lines is 4095 [12:27:51]Connected sock=10 [12:27:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 3F E5 1C 01 34 27 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 46 F7 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 84 10 01 00 35 04 06 00 82 7A E5 69 DC 85 F2 C0 13 25 DD CB F3 AB [12:27:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 E7 75 47 00 33 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 31 37 34 39 10 04 04 00 84 10 01 00 F4 03 04 00 C9 9C 14 67 B6 04 01 00 00 71 54 54 E9 D1 98 FC 23 [12:27:51]CommunicateWithHost err = 0 [12:27:51]CheckOFDResponse [12:27:51]1017 (14) - 77093643461234 [12:27:51]1041 (16) - 0000000000871749 [12:27:51]1040 (4) - 69764 [12:27:51]1012 (4) - 20.10.2024 06:01 [12:27:51]1206 (1) - 0 [12:27:51]OFD Sender: Remove packet 69764 [12:27:51]ProducePacketName [12:27:51]name=ofd_packets/00069764 [12:27:51]NVStorageDeleteData [12:27:51]Write to MH i2c: 01 00 00 C2 0D CF [12:27:51]Write i2c OK [12:27:51]MH_I2C_Read... [12:27:51]Read from MH i2c: 01 [12:27:51]MH_I2C_Read... [12:27:51]Read from MH i2c: 01 07 00 [12:27:51]MH_I2C_Read... [12:27:51]Read from MH i2c: 01 07 00 C2 0D 00 00 00 00 00 08 0D EB [12:27:51]RasterBufferAndPrint [12:27:51]line [12:27:51]line [12:27:51]line [12:27:51]line [12:27:51]line [12:27:51]written 0, free lines is 3342 [12:27:51]MH_Cut [12:27:51]Write to MH i2c: D1 01 00 C9 0D 01 A8 [12:27:51]Write i2c OK [12:27:51]MH_I2C_Read... [12:27:51]Read from MH i2c: D1 [12:27:51]MH_I2C_Read... [12:27:51]Read from MH i2c: D1 01 00 [12:27:51]MH_I2C_Read... [12:27:51]Read from MH i2c: D1 01 00 C9 0D 00 A7 [12:27:51]Write to MH i2c: 01 00 00 CA 0D D7 [12:27:51]Write i2c OK [12:27:51]MH_I2C_Read... [12:27:51]OFD Sender: No OFD packet to send [12:27:52]*** Cut start [12:27:52]*** Partial cut [12:27:52]*** CUTSNS_PIN = 1 [12:27:52]*** CUTSNS_PIN = 0 [12:27:52]*** Brake cut motor [12:27:52]Read from MH i2c: 01 [12:27:52]MH_I2C_Read... [12:27:52]*** Stop cut motor [12:27:52]*** Cut end [12:27:52]Read from MH i2c: 01 07 00 [12:27:52]MH_I2C_Read... [12:27:52]Read from MH i2c: 01 07 00 CA 0D 00 00 00 00 00 FF 0F EC [12:27:52]process_action close_receipt done [12:27:52]requested_data is exist [12:27:52]produce_requested_data [12:27:52]requested_item fm.sn is exist - process it [12:27:52]wFMCommunicate request_size=4 [12:27:52]MH_SAM_APDU [12:27:52]CAPDU: 80 11 00 00 [12:27:52]Write to MH i2c: E2 08 00 CB 0D 80 11 00 00 00 00 00 00 52 [12:27:52]Write i2c OK [12:27:52]MH_I2C_Read... [12:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:52]Read from MH i2c: E2 [12:27:52]MH_I2C_Read... [12:27:52]Read from MH i2c: E2 17 00 [12:27:52]MH_I2C_Read... [12:27:52]Read from MH i2c: E2 17 00 CB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 A9 [12:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [12:27:52]wFMCommunicate OK [12:27:52]requested_item fd.num is exist - process it [12:27:52]SAM_PROTO_GetFieldsCounters [12:27:52]wFMCommunicate request_size=4 [12:27:52]MH_SAM_APDU [12:27:52]CAPDU: 80 13 00 00 [12:27:52]Write to MH i2c: E2 08 00 CC 0D 80 13 00 00 00 00 00 00 55 [12:27:52]Write i2c OK [12:27:52]MH_I2C_Read... [12:27:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:53]Read from MH i2c: E2 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 62 00 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 62 00 CC 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 84 10 01 00 0E 04 04 00 0E 02 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 C0 [12:27: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 84 10 01 00 0E 04 04 00 0E 02 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 [12:27:53]wFMCommunicate OK [12:27:53]SAM_PROTO_GetFieldsCounters done [12:27:53]requested_item shift.num is exist - process it [12:27:53]requested_item shift.opened is exist - process it [12:27:53]req_shift_opened [12:27:53]FM_GetShiftState [12:27:53]SAM_PROTO_GetShiftState [12:27:53]wFMCommunicate request_size=4 [12:27:53]MH_SAM_APDU [12:27:53]CAPDU: 80 13 01 00 [12:27:53]Write to MH i2c: E2 08 00 CD 0D 80 13 01 00 00 00 00 00 57 [12:27:53]Write i2c OK [12:27:53]MH_I2C_Read... [12:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:53]Read from MH i2c: E2 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 0E 00 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 0E 00 CD 0D 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 E9 [12:27:53]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [12:27:53]wFMCommunicate OK [12:27:53]SAM_PROTO_GetShiftState done [12:27:53]FM_GetShiftState done [12:27:53]req_shift_opened done [12:27:53]requested_item shift.open_date is exist - process it [12:27:53]req_shift_open_date [12:27:53]req_shift_open_date done [12:27:53]produce_requested_data done [12:27:53]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69764,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [12:27:53]process_action_free close_receipt [12:27:53]json_value_free [12:27:53]json_value_free done [12:27:53]process_json_proto returns [12:27:53]Send response to host [12:27:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69764,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [12:27:53]free response buf [12:27:53]execute_script done [12:27:53]execute_script returns [12:27:53]free content buf [12:27:53]Sock 9.Close socket [12:27:53]Sock 9.Thread stoped [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:45]accept exits with 7 [12:35:45]New connection [12:35:45]New thread 3066486116 created [12:35:45]Thread 3066629476 joined [12:35:45]Waiting for new connection... [12:35:45] Sock 7.Parse request [12:35:45]Sock 7.Check first char [12:35:45]Sock 7.First char is OK [12:35:45]request: POST /json_proto HTTP/1.0 [12:35:45]Method: POST [12:35:45]URL: /json_proto [12:35:45]Method is POST - this is cgi request [12:35:45]url: /json_proto [12:35:45]query_string will be loaded in cgi processing [12:35:45]execute_cgi json_proto POST (null) [12:35:45]execute_cgi path=json_proto method=POST [12:35:45]POST find Content-Length [12:35:45]Host: 172.17.52.196:8080 [12:35:45]Content-Length: 893 [12:35:45]Content-Type: application/json [12:35:45] [12:35:45]POST finish read [12:35:45]Found Content-Length = 893 [12:35:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127165", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 213.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:45]execute_script... [12:35: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)127165", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 213.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:45]POST & json_proto [12:35:45]process_json_proto [12:35:45]json parsed OK: [12:35:45]protocol is kg_v1.0 [12:35:45]action value=close_receipt [12:35:45]process_action close_receipt [12:35:45]cmd_close_receipt [12:35:45]MH_GetDate [12:35:45]Write to MH i2c: F0 00 00 CE 0D CA [12:35:45]Write i2c OK [12:35:45]MH_I2C_Read... [12:35:45]Read from MH i2c: F0 [12:35:45]MH_I2C_Read... [12:35:45]Read from MH i2c: F0 09 00 [12:35:45]MH_I2C_Read... [12:35:45]Read from MH i2c: F0 09 00 CE 0D 00 23 F9 14 67 60 05 E4 66 19 [12:35:45]GetLastDocTimeStamp 1729427270 [12:35:45]current date 1729427747 [12:35:45]FM_GetShiftState [12:35:45]SAM_PROTO_GetShiftState [12:35:45]wFMCommunicate request_size=4 [12:35:45]MH_SAM_APDU [12:35:45]CAPDU: 80 13 01 00 [12:35:45]Write to MH i2c: E2 08 00 CF 0D 80 13 01 00 00 00 00 00 59 [12:35:45]Write i2c OK [12:35:45]MH_I2C_Read... [12:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:45]Read from MH i2c: E2 [12:35:45]MH_I2C_Read... [12:35:45]Read from MH i2c: E2 0E 00 [12:35:45]MH_I2C_Read... [12:35:45]Read from MH i2c: E2 0E 00 CF 0D 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 EB [12:35:45]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [12:35:45]wFMCommunicate OK [12:35:45]SAM_PROTO_GetShiftState done [12:35:45]FM_GetShiftState done [12:35:45]opened in 1729384380 [12:35:45]opened+sec_in_day 1729470780 [12:35:45]quantity*price = 6900 [12:35:45]sum+1 = 6901 [12:35:45]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 213.00 НСП 1% : 1.88 НДС 12% : 22.62 Наличными: 213.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 55 20.10.2024 12:35 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69765 ФПД: 163337182629595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123547&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69765&fm=163337182629595&tin=02508201610067®Number=0000000000091770&sum=21300 0 [12:35:46]StoreToDocumentArchive [12:35:46]shift 526 fd 69765 [12:35:46]save to /storage/0526/doc_00069765 [12:35:46]save last doc name /storage/0526/doc_00069765 to /storage/kkm_last_doc_name [12:35:46]save OK [12:35:46]Clear old archive folders... [12:35:46]ProcessDocumentItem done err = 0, tmpTLVsize=397 [12:35:46]tlvbuf is 00960A90 [12:35:46]SAM_PROTO_ClearQueue [12:35:46]wFMCommunicate request_size=4 [12:35:46]MH_SAM_APDU [12:35:46]CAPDU: 80 09 00 00 [12:35:46]Write to MH i2c: E2 08 00 DC 0D 80 09 00 00 00 00 00 00 5B [12:35:46]Write i2c OK [12:35:46]MH_I2C_Read... [12:35:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:46]Read from MH i2c: E2 [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: E2 03 00 [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: E2 03 00 DC 0D 00 90 00 5D [12:35:46]RAPDU: 90 00 [12:35:46]wFMCommunicate OK [12:35:46]SAM_PROTO_ClearQueue done [12:35:46]KKMCreateOFDPacket [12:35:46]OFDProtocolAddRootSTLVToBuf [12:35:46]FM_MakeSignedData [12:35:46]FM_MakeSignedData [12:35:46]SAM_PROTO_SignData [12:35:46]wFMCommunicate request_size=4 [12:35:46]MH_SAM_APDU [12:35:46]CAPDU: 80 0D 01 02 [12:35:46]Write to MH i2c: E2 08 00 DD 0D 80 0D 01 02 00 00 00 00 63 [12:35:46]Write i2c OK [12:35:46]MH_I2C_Read... [12:35:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:46]Read from MH i2c: E2 [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: E2 03 00 [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: E2 03 00 DD 0D 00 90 00 5E [12:35:46]RAPDU: 90 00 [12:35:46]wFMCommunicate OK [12:35:46]wFMCommunicate request_size=255 [12:35:46]MH_SAM_APDU [12:35:46]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 53 00 00 00 00 EB 03 26 00 [12:35:46]Write to MH i2c: E2 02 01 DE 0D 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 53 00 00 00 00 EB 03 26 00 00 00 46 [12:35:46]Write i2c OK [12:35:46]MH_I2C_Read... [12:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:46]Read from MH i2c: E2 [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: E2 03 00 [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: E2 03 00 DE 0D 00 90 00 5F [12:35:46]RAPDU: 90 00 [12:35:46]wFMCommunicate OK [12:35:46]wFMCommunicate request_size=156 [12:35:46]MH_SAM_APDU [12:35:46]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 08 00 00 00 00 07 04 06 00 34 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 23 F9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 85 10 01 00 35 04 06 00 94 8D E6 BF CE DB [12:35:46]Write to MH i2c: E2 9F 00 DF 0D 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 08 00 00 00 00 07 04 06 00 34 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 23 F9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 85 10 01 00 35 04 06 00 94 8D E6 BF CE DB 00 00 C4 [12:35:46]Write i2c OK [12:35:46]MH_I2C_Read... [12:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:46]Read from MH i2c: E2 [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: E2 03 00 [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: E2 03 00 DF 0D 00 90 00 60 [12:35:46]RAPDU: 90 00 [12:35:46]wFMCommunicate OK [12:35:46]wFMCommunicate request_size=4 [12:35:46]MH_SAM_APDU [12:35:46]CAPDU: 80 0D 03 02 [12:35:46]Write to MH i2c: E2 08 00 E0 0D 80 0D 03 02 00 00 00 00 68 [12:35:46]Write i2c OK [12:35:46]MH_I2C_Read... [12:35:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:46]Read from MH i2c: E2 [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: E2 0B 00 [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: E2 0B 00 E0 0D 00 53 D4 6B 00 1C 04 61 71 90 00 ED [12:35:46]RAPDU: 53 D4 6B 00 1C 04 61 71 90 00 [12:35:46]wFMCommunicate OK [12:35:46]SAM_PROTO_SignData done [12:35:46]FM_MakeSignedData done [12:35:46]CreateOFDProtocolMessage [12:35:46]wFMCommunicate request_size=4 [12:35:46]MH_SAM_APDU [12:35:46]CAPDU: 80 11 00 00 [12:35:46]Write to MH i2c: E2 08 00 E1 0D 80 11 00 00 00 00 00 00 68 [12:35:46]Write i2c OK [12:35:46]MH_I2C_Read... [12:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:46]Read from MH i2c: E2 [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: E2 17 00 [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: E2 17 00 E1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 BF [12:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [12:35:46]wFMCommunicate OK [12:35:46]CreateOFDProtocolMessage done [12:35:46]OFDSenderStorePacket 69765 [12:35:46]StoreOFDPacket docnum=69765 [12:35:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 A1 01 00 00 CF CC 99 01 3D 0C 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 08 00 00 00 00 07 04 06 00 34 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 23 F9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 85 10 01 00 35 04 06 00 94 8D E6 BF CE DB 53 D4 6B 00 1C 04 61 71 [12:35:46]CheckFolder [12:35:46]dirname=/storage/ofd_packets [12:35:46]CheckFolder done [12:35:46]ProducePacketName [12:35:46]name=ofd_packets/00069765 [12:35:46]NVStorageSaveData ofd_packets/00069765 [12:35:46]File name is /storage/ofd_packets/00069765 [12:35:46]Write 447 bytes [12:35:46]NVStorageSaveData done [12:35:46]OFDSenderStorePacket done [12:35:46]KKMCreateOFDPacket done [12:35:46]NVStorageSaveData kkm_last_timestamp [12:35:46]File name is /storage/kkm_last_timestamp [12:35:46]Write 4 bytes [12:35:46]NVStorageSaveData done [12:35:46]ExternCall_PrintAddStr [12:35:46]wPrintStart [12:35:46]Write to MH i2c: 01 00 00 E2 0D EF [12:35:46]Write i2c OK [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: 01 [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: 01 07 00 [12:35:46]MH_I2C_Read... [12:35:46]Read from MH i2c: 01 07 00 E2 0D 00 00 00 00 00 FF 0F 04 [12:35:46]RasterBufferAndPrint [12:35:46]line Счет N : (3)127165 [12:35:46]line ИНН: 02508201610067 [12:35:46]line Контрольно-Кассовый Чек [12:35:46]line ПРОДАЖА [12:35:46]line Товар: 4600682557456 [12:35:47]line Напиток FLash up energy эн ж/б 0,5/0,45л [12:35:47]line 1.000 * 69.00 [12:35:47]line = 69.00 [12:35:47]line НДС 12% НСП 1% [12:35:47]line > о реализуемом товаре [12:35:47]line Товар: 48743570 [12:35:47]line Сигареты Winston XStyle Blue [12:35:47]line 1.000 * 144.00 [12:35:47]line = 144.00 [12:35:47]line НДС 12% НСП 1% [12:35:47]line > о реализуемом товаре [12:35:47]line ИТОГО: 213.00 [12:35:47]line НСП 1% : 1.88 [12:35:47]line НДС 12% : 22.62 [12:35:47]line Наличными: 213.00 [12:35:47]line Безнал.: 0.00 [12:35:47]line Место: АЗС № 163 "Партнер Нефть" [12:35:47]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [12:35:47]line СНО: Общий режим [12:35:47]line Чек 55 20.10.2024 12:35 [12:35:47]line Смена: 526 ФФД: 1.0 [12:35:47]line ЗНМ: 0300000101 [12:35:47]line РНМ: 0000000000091770 [12:35:47]line Версия ККМ: 001 [12:35:47]line ФМ: 0000000000871749 [12:35:47]line ФД: 69765 [12:35:47]line ФПД: 163337182629595 [12:35:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T123547&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69765&fm=163337182629595&tin=02508201610067®Number=0000000000091770&sum=21300 [12:35:47]line 0 [12:35:47]OFD Sender: Processing packet 69765 [packets to send 32, broken 31] [12:35:47]ProducePacketName [12:35:47]name=ofd_packets/00069765 [12:35:47]OFD Sender: To server: pG, [12:35:47]CommunicateWithHost lk.salyk.kg:30040 [12:35:47]ConnectInit lk.salyk.kg [12:35:47]written 0, free lines is 4095 [12:35:47]Connected sock=10 [12:35:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 A1 01 00 00 CF CC 99 01 3D 0C 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 08 00 00 00 00 07 04 06 00 34 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 23 F9 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 85 10 01 00 35 04 06 00 94 8D E6 BF CE DB 53 D4 6B 00 1C 04 61 71 [12:35:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 39 38 47 00 77 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 85 10 01 00 F4 03 04 00 A6 9E 14 67 B6 04 01 00 00 05 EE CE F6 DC 16 EB AD [12:35:47]CommunicateWithHost err = 0 [12:35:47]CheckOFDResponse [12:35:47]1017 (14) - 77093643461234 [12:35:47]1041 (16) - 0000000000871749 [12:35:47]1040 (4) - 69765 [12:35:47]1012 (4) - 20.10.2024 06:09 [12:35:47]1206 (1) - 0 [12:35:47]OFD Sender: Remove packet 69765 [12:35:47]ProducePacketName [12:35:47]name=ofd_packets/00069765 [12:35:47]NVStorageDeleteData [12:35:47]Write to MH i2c: 01 00 00 11 0E 1F [12:35:47]Write i2c OK [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: 01 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: 01 07 00 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: 01 07 00 11 0E 00 00 00 00 00 A7 0C D9 [12:35:47]RasterBufferAndPrint [12:35:47]line [12:35:47]line [12:35:47]line [12:35:47]line [12:35:47]line [12:35:47]written 0, free lines is 3246 [12:35:47]MH_Cut [12:35:47]Write to MH i2c: D1 01 00 18 0E 01 F8 [12:35:47]Write i2c OK [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: D1 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: D1 01 00 [12:35:47]MH_I2C_Read... [12:35:47]Read from MH i2c: D1 01 00 18 0E 00 F7 [12:35:47]Write to MH i2c: 01 00 00 19 0E 27 [12:35:47]Write i2c OK [12:35:47]MH_I2C_Read... [12:35:48]OFD Sender: No OFD packet to send [12:35:48]*** Cut start [12:35:48]*** Partial cut [12:35:48]*** CUTSNS_PIN = 1 [12:35:48]*** CUTSNS_PIN = 0 [12:35:49]*** Brake cut motor [12:35:49]Read from MH i2c: 01 [12:35:49]MH_I2C_Read... [12:35:49]*** Stop cut motor [12:35:49]*** Cut end [12:35:49]Read from MH i2c: 01 07 00 [12:35:49]MH_I2C_Read... [12:35:49]Read from MH i2c: 01 07 00 19 0E 00 00 00 00 00 FF 0F 3C [12:35:49]process_action close_receipt done [12:35:49]requested_data is exist [12:35:49]produce_requested_data [12:35:49]requested_item fm.sn is exist - process it [12:35:49]wFMCommunicate request_size=4 [12:35:49]MH_SAM_APDU [12:35:49]CAPDU: 80 11 00 00 [12:35:49]Write to MH i2c: E2 08 00 1A 0E 80 11 00 00 00 00 00 00 A2 [12:35:49]Write i2c OK [12:35:49]MH_I2C_Read... [12:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:49]Read from MH i2c: E2 [12:35:49]MH_I2C_Read... [12:35:49]Read from MH i2c: E2 17 00 [12:35:49]MH_I2C_Read... [12:35:49]Read from MH i2c: E2 17 00 1A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 F9 [12:35:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [12:35:49]wFMCommunicate OK [12:35:49]requested_item fd.num is exist - process it [12:35:49]SAM_PROTO_GetFieldsCounters [12:35:49]wFMCommunicate request_size=4 [12:35:49]MH_SAM_APDU [12:35:49]CAPDU: 80 13 00 00 [12:35:49]Write to MH i2c: E2 08 00 1B 0E 80 13 00 00 00 00 00 00 A5 [12:35:49]Write i2c OK [12:35:49]MH_I2C_Read... [12:35:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:49]Read from MH i2c: E2 [12:35:49]MH_I2C_Read... [12:35:49]Read from MH i2c: E2 62 00 [12:35:49]MH_I2C_Read... [12:35:49]Read from MH i2c: E2 62 00 1B 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 85 10 01 00 0E 04 04 00 0E 02 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 14 [12:35: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 85 10 01 00 0E 04 04 00 0E 02 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 [12:35:49]wFMCommunicate OK [12:35:49]SAM_PROTO_GetFieldsCounters done [12:35:49]requested_item shift.num is exist - process it [12:35:49]requested_item shift.opened is exist - process it [12:35:49]req_shift_opened [12:35:49]FM_GetShiftState [12:35:49]SAM_PROTO_GetShiftState [12:35:49]wFMCommunicate request_size=4 [12:35:49]MH_SAM_APDU [12:35:49]CAPDU: 80 13 01 00 [12:35:49]Write to MH i2c: E2 08 00 1C 0E 80 13 01 00 00 00 00 00 A7 [12:35:49]Write i2c OK [12:35:49]MH_I2C_Read... [12:35:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:49]Read from MH i2c: E2 [12:35:49]MH_I2C_Read... [12:35:49]Read from MH i2c: E2 0E 00 [12:35:49]MH_I2C_Read... [12:35:49]Read from MH i2c: E2 0E 00 1C 0E 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 39 [12:35:49]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [12:35:49]wFMCommunicate OK [12:35:49]SAM_PROTO_GetShiftState done [12:35:49]FM_GetShiftState done [12:35:49]req_shift_opened done [12:35:49]requested_item shift.open_date is exist - process it [12:35:49]req_shift_open_date [12:35:49]req_shift_open_date done [12:35:49]produce_requested_data done [12:35:49]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69765,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [12:35:49]process_action_free close_receipt [12:35:49]json_value_free [12:35:49]json_value_free done [12:35:49]process_json_proto returns [12:35:49]Send response to host [12:35:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69765,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [12:35:49]free response buf [12:35:49]execute_script done [12:35:49]execute_script returns [12:35:49]free content buf [12:35:49]Sock 7.Close socket [12:35:49]Sock 7.Thread stoped [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:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:41]accept exits with 9 [12:45:41]New connection [12:45:41]New thread 3066629476 created [12:45:41]Thread 3066486116 joined [12:45:41]Waiting for new connection... [12:45:41] Sock 9.Parse request [12:45:41]Sock 9.Check first char [12:45:41]Sock 9.First char is OK [12:45:41]request: POST /json_proto HTTP/1.0 [12:45:41]Method: POST [12:45:41]URL: /json_proto [12:45:41]Method is POST - this is cgi request [12:45:41]url: /json_proto [12:45:41]query_string will be loaded in cgi processing [12:45:41]execute_cgi json_proto POST (null) [12:45:41]execute_cgi path=json_proto method=POST [12:45:41]POST find Content-Length [12:45:41]Host: 172.17.52.196:8080 [12:45:41]Content-Length: 748 [12:45:41]Content-Type: application/json [12:45:41] [12:45:41]POST finish read [12:45:41]Found Content-Length = 748 [12:45:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127166", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:41]execute_script... [12:45:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127166", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:41]POST & json_proto [12:45:41]process_json_proto [12:45:41]json parsed OK: [12:45:41]protocol is kg_v1.0 [12:45:41]action value=close_receipt [12:45:41]process_action close_receipt [12:45:41]cmd_close_receipt [12:45:41]MH_GetDate [12:45:41]Write to MH i2c: F0 00 00 1D 0E 1A [12:45:41]Write i2c OK [12:45:41]MH_I2C_Read... [12:45:41]Read from MH i2c: F0 [12:45:41]MH_I2C_Read... [12:45:41]Read from MH i2c: F0 09 00 [12:45:41]MH_I2C_Read... [12:45:41]Read from MH i2c: F0 09 00 1D 0E 00 77 FB 14 67 60 05 E4 66 BF [12:45:41]GetLastDocTimeStamp 1729427747 [12:45:41]current date 1729428343 [12:45:41]FM_GetShiftState [12:45:41]SAM_PROTO_GetShiftState [12:45:41]wFMCommunicate request_size=4 [12:45:41]MH_SAM_APDU [12:45:41]CAPDU: 80 13 01 00 [12:45:41]Write to MH i2c: E2 08 00 1E 0E 80 13 01 00 00 00 00 00 A9 [12:45:41]Write i2c OK [12:45:41]MH_I2C_Read... [12:45:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:41]Read from MH i2c: E2 [12:45:41]MH_I2C_Read... [12:45:41]Read from MH i2c: E2 0E 00 [12:45:41]MH_I2C_Read... [12:45:41]Read from MH i2c: E2 0E 00 1E 0E 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 3B [12:45:41]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [12:45:41]wFMCommunicate OK [12:45:41]SAM_PROTO_GetShiftState done [12:45:41]FM_GetShiftState done [12:45:41]opened in 1729384380 [12:45:41]opened+sec_in_day 1729470780 [12:45:41]quantity*price = 14400 [12:45:41]sum+1 = 14401 [12:45:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 56 20.10.2024 12:45 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69766 ФПД: 202063898444353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124543&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69766&fm=202063898444353&tin=02508201610067®Number=0000000000091770&sum=14400 0 [12:45:43]StoreToDocumentArchive [12:45:43]shift 526 fd 69766 [12:45:43]save to /storage/0526/doc_00069766 [12:45:43]save last doc name /storage/0526/doc_00069766 to /storage/kkm_last_doc_name [12:45:43]save OK [12:45:43]Clear old archive folders... [12:45:43]ProcessDocumentItem done err = 0, tmpTLVsize=273 [12:45:43]tlvbuf is 00963E60 [12:45:43]SAM_PROTO_ClearQueue [12:45:43]wFMCommunicate request_size=4 [12:45:43]MH_SAM_APDU [12:45:43]CAPDU: 80 09 00 00 [12:45:43]Write to MH i2c: E2 08 00 2B 0E 80 09 00 00 00 00 00 00 AB [12:45:43]Write i2c OK [12:45:43]MH_I2C_Read... [12:45:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:43]Read from MH i2c: E2 [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: E2 03 00 [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: E2 03 00 2B 0E 00 90 00 AD [12:45:43]RAPDU: 90 00 [12:45:43]wFMCommunicate OK [12:45:43]SAM_PROTO_ClearQueue done [12:45:43]KKMCreateOFDPacket [12:45:43]OFDProtocolAddRootSTLVToBuf [12:45:43]FM_MakeSignedData [12:45:43]FM_MakeSignedData [12:45:43]SAM_PROTO_SignData [12:45:43]wFMCommunicate request_size=4 [12:45:43]MH_SAM_APDU [12:45:43]CAPDU: 80 0D 01 02 [12:45:43]Write to MH i2c: E2 08 00 2C 0E 80 0D 01 02 00 00 00 00 B3 [12:45:43]Write i2c OK [12:45:43]MH_I2C_Read... [12:45:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:43]Read from MH i2c: E2 [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: E2 03 00 [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: E2 03 00 2C 0E 00 90 00 AE [12:45:43]RAPDU: 90 00 [12:45:43]wFMCommunicate OK [12:45:43]wFMCommunicate request_size=255 [12:45:43]MH_SAM_APDU [12:45:43]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 77 FB 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [12:45:43]Write to MH i2c: E2 02 01 2D 0E 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 77 FB 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 51 [12:45:43]Write i2c OK [12:45:43]MH_I2C_Read... [12:45:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:43]Read from MH i2c: E2 [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: E2 03 00 [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: E2 03 00 2D 0E 00 90 00 AF [12:45:43]RAPDU: 90 00 [12:45:43]wFMCommunicate OK [12:45:43]wFMCommunicate request_size=32 [12:45:43]MH_SAM_APDU [12:45:43]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 86 10 01 00 35 04 06 00 B7 C6 AA E3 82 41 [12:45:43]Write to MH i2c: E2 23 00 2E 0E 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 86 10 01 00 35 04 06 00 B7 C6 AA E3 82 41 00 00 7B [12:45:43]Write i2c OK [12:45:43]MH_I2C_Read... [12:45:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:43]Read from MH i2c: E2 [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: E2 03 00 [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: E2 03 00 2E 0E 00 90 00 B0 [12:45:43]RAPDU: 90 00 [12:45:43]wFMCommunicate OK [12:45:43]wFMCommunicate request_size=4 [12:45:43]MH_SAM_APDU [12:45:43]CAPDU: 80 0D 03 02 [12:45:43]Write to MH i2c: E2 08 00 2F 0E 80 0D 03 02 00 00 00 00 B8 [12:45:43]Write i2c OK [12:45:43]MH_I2C_Read... [12:45:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:43]Read from MH i2c: E2 [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: E2 0B 00 [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: E2 0B 00 2F 0E 00 5C 85 15 B5 00 3F 86 E4 90 00 0D [12:45:43]RAPDU: 5C 85 15 B5 00 3F 86 E4 90 00 [12:45:43]wFMCommunicate OK [12:45:43]SAM_PROTO_SignData done [12:45:43]FM_MakeSignedData done [12:45:43]CreateOFDProtocolMessage [12:45:43]wFMCommunicate request_size=4 [12:45:43]MH_SAM_APDU [12:45:43]CAPDU: 80 11 00 00 [12:45:43]Write to MH i2c: E2 08 00 30 0E 80 11 00 00 00 00 00 00 B8 [12:45:43]Write i2c OK [12:45:43]MH_I2C_Read... [12:45:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:43]Read from MH i2c: E2 [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: E2 17 00 [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: E2 17 00 30 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 0F [12:45:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [12:45:43]wFMCommunicate OK [12:45:43]CreateOFDProtocolMessage done [12:45:43]OFDSenderStorePacket 69766 [12:45:43]StoreOFDPacket docnum=69766 [12:45:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 EC E9 1D 01 0F D7 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 77 FB 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 86 10 01 00 35 04 06 00 B7 C6 AA E3 82 41 5C 85 15 B5 00 3F 86 E4 [12:45:43]CheckFolder [12:45:43]dirname=/storage/ofd_packets [12:45:43]CheckFolder done [12:45:43]ProducePacketName [12:45:43]name=ofd_packets/00069766 [12:45:43]NVStorageSaveData ofd_packets/00069766 [12:45:43]File name is /storage/ofd_packets/00069766 [12:45:43]Write 323 bytes [12:45:43]NVStorageSaveData done [12:45:43]OFDSenderStorePacket done [12:45:43]KKMCreateOFDPacket done [12:45:43]NVStorageSaveData kkm_last_timestamp [12:45:43]File name is /storage/kkm_last_timestamp [12:45:43]Write 4 bytes [12:45:43]NVStorageSaveData done [12:45:43]ExternCall_PrintAddStr [12:45:43]wPrintStart [12:45:43]Write to MH i2c: 01 00 00 31 0E 3F [12:45:43]Write i2c OK [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: 01 [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: 01 07 00 [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: 01 07 00 31 0E 00 00 00 00 00 FF 0F 54 [12:45:43]RasterBufferAndPrint [12:45:43]line Счет N : (3)127166 [12:45:43]line ИНН: 02508201610067 [12:45:43]line Контрольно-Кассовый Чек [12:45:43]line ПРОДАЖА [12:45:43]line Товар: 48743570 [12:45:43]line Сигареты Winston XStyle Blue [12:45:43]line 1.000 * 144.00 [12:45:43]line = 144.00 [12:45:43]line НДС 12% НСП 1% [12:45:43]line > о реализуемом товаре [12:45:43]line ИТОГО: 144.00 [12:45:43]line НСП 1% : 1.27 [12:45:43]line НДС 12% : 15.29 [12:45:43]line Наличными: 0.00 [12:45:43]line Безнал.: 144.00 [12:45:43]line Место: АЗС № 163 "Партнер Нефть" [12:45:43]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [12:45:43]line СНО: Общий режим [12:45:43]line Чек 56 20.10.2024 12:45 [12:45:43]line Смена: 526 ФФД: 1.0 [12:45:43]line ЗНМ: 0300000101 [12:45:43]line РНМ: 0000000000091770 [12:45:43]line Версия ККМ: 001 [12:45:43]line Платежная система: Mbank [12:45:43]line ФМ: 0000000000871749 [12:45:43]line ФД: 69766 [12:45:43]line ФПД: 202063898444353 [12:45:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T124543&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69766&fm=202063898444353&tin=02508201610067®Number=0000000000091770&sum=14400 [12:45:43]OFD Sender: Processing packet 69766 [packets to send 32, broken 31] [12:45:43]ProducePacketName [12:45:43]name=ofd_packets/00069766 [12:45:43]OFD Sender: To server: pG, [12:45:43]CommunicateWithHost lk.salyk.kg:30040 [12:45:43]ConnectInit lk.salyk.kg [12:45:43]line 0 [12:45:43]written 0, free lines is 4095 [12:45:44]Connected sock=10 [12:45:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 EC E9 1D 01 0F D7 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 77 FB 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 86 10 01 00 35 04 06 00 B7 C6 AA E3 82 41 5C 85 15 B5 00 3F 86 E4 [12:45:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 CD 11 47 00 92 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 86 10 01 00 F4 03 04 00 FA A0 14 67 B6 04 01 00 00 57 24 12 1B 4C 1F E1 79 [12:45:44]CommunicateWithHost err = 0 [12:45:44]CheckOFDResponse [12:45:44]1017 (14) - 77093643461234 [12:45:44]1041 (16) - 0000000000871749 [12:45:44]1040 (4) - 69766 [12:45:44]1012 (4) - 20.10.2024 06:19 [12:45:44]1206 (1) - 0 [12:45:44]OFD Sender: Remove packet 69766 [12:45:44]ProducePacketName [12:45:44]name=ofd_packets/00069766 [12:45:44]NVStorageDeleteData [12:45:44]Write to MH i2c: 01 00 00 5A 0E 68 [12:45:44]Write i2c OK [12:45:44]MH_I2C_Read... [12:45:44]Read from MH i2c: 01 [12:45:44]MH_I2C_Read... [12:45:44]Read from MH i2c: 01 07 00 [12:45:44]MH_I2C_Read... [12:45:44]Read from MH i2c: 01 07 00 5A 0E 00 00 00 00 00 EB 0C 66 [12:45:44]RasterBufferAndPrint [12:45:44]line [12:45:44]line [12:45:44]line [12:45:44]line [12:45:44]line [12:45:44]written 0, free lines is 3313 [12:45:44]MH_Cut [12:45:44]Write to MH i2c: D1 01 00 61 0E 01 41 [12:45:44]Write i2c OK [12:45:44]MH_I2C_Read... [12:45:44]Read from MH i2c: D1 [12:45:44]MH_I2C_Read... [12:45:44]Read from MH i2c: D1 01 00 [12:45:44]MH_I2C_Read... [12:45:44]Read from MH i2c: D1 01 00 61 0E 00 40 [12:45:44]Write to MH i2c: 01 00 00 62 0E 70 [12:45:44]Write i2c OK [12:45:44]MH_I2C_Read... [12:45:44]OFD Sender: No OFD packet to send [12:45:45]*** Cut start [12:45:45]*** Partial cut [12:45:45]*** CUTSNS_PIN = 1 [12:45:45]*** CUTSNS_PIN = 0 [12:45:45]*** Brake cut motor [12:45:45]Read from MH i2c: 01 [12:45:45]MH_I2C_Read... [12:45:45]*** Stop cut motor [12:45:45]*** Cut end [12:45:45]Read from MH i2c: 01 07 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: 01 07 00 62 0E 00 00 00 00 00 FF 0F 85 [12:45:45]process_action close_receipt done [12:45:45]requested_data is exist [12:45:45]produce_requested_data [12:45:45]requested_item fm.sn is exist - process it [12:45:45]wFMCommunicate request_size=4 [12:45:45]MH_SAM_APDU [12:45:45]CAPDU: 80 11 00 00 [12:45:45]Write to MH i2c: E2 08 00 63 0E 80 11 00 00 00 00 00 00 EB [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:46]Read from MH i2c: E2 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: E2 17 00 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: E2 17 00 63 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 42 [12:45:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [12:45:46]wFMCommunicate OK [12:45:46]requested_item fd.num is exist - process it [12:45:46]SAM_PROTO_GetFieldsCounters [12:45:46]wFMCommunicate request_size=4 [12:45:46]MH_SAM_APDU [12:45:46]CAPDU: 80 13 00 00 [12:45:46]Write to MH i2c: E2 08 00 64 0E 80 13 00 00 00 00 00 00 EE [12:45:46]Write i2c OK [12:45:46]MH_I2C_Read... [12:45:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:46]Read from MH i2c: E2 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: E2 62 00 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: E2 62 00 64 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 86 10 01 00 0E 04 04 00 0E 02 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 61 [12:45: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 86 10 01 00 0E 04 04 00 0E 02 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 [12:45:46]wFMCommunicate OK [12:45:46]SAM_PROTO_GetFieldsCounters done [12:45:46]requested_item shift.num is exist - process it [12:45:46]requested_item shift.opened is exist - process it [12:45:46]req_shift_opened [12:45:46]FM_GetShiftState [12:45:46]SAM_PROTO_GetShiftState [12:45:46]wFMCommunicate request_size=4 [12:45:46]MH_SAM_APDU [12:45:46]CAPDU: 80 13 01 00 [12:45:46]Write to MH i2c: E2 08 00 65 0E 80 13 01 00 00 00 00 00 F0 [12:45:46]Write i2c OK [12:45:46]MH_I2C_Read... [12:45:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:46]Read from MH i2c: E2 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: E2 0E 00 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: E2 0E 00 65 0E 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 82 [12:45:46]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [12:45:46]wFMCommunicate OK [12:45:46]SAM_PROTO_GetShiftState done [12:45:46]FM_GetShiftState done [12:45:46]req_shift_opened done [12:45:46]requested_item shift.open_date is exist - process it [12:45:46]req_shift_open_date [12:45:46]req_shift_open_date done [12:45:46]produce_requested_data done [12:45:46]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69766,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [12:45:46]process_action_free close_receipt [12:45:46]json_value_free [12:45:46]json_value_free done [12:45:46]process_json_proto returns [12:45:46]Send response to host [12:45:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69766,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [12:45:46]free response buf [12:45:46]execute_script done [12:45:46]execute_script returns [12:45:46]free content buf [12:45:46]Sock 9.Close socket [12:45:46]Sock 9.Thread stoped [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:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:34]accept exits with 7 [12:50:34]New connection [12:50:34]New thread 3066486116 created [12:50:34]Thread 3066629476 joined [12:50:34]Waiting for new connection... [12:50:34] Sock 7.Parse request [12:50:34]Sock 7.Check first char [12:50:34]Sock 7.First char is OK [12:50:34]request: POST /json_proto HTTP/1.0 [12:50:34]Method: POST [12:50:34]URL: /json_proto [12:50:34]Method is POST - this is cgi request [12:50:34]url: /json_proto [12:50:34]query_string will be loaded in cgi processing [12:50:34]execute_cgi json_proto POST (null) [12:50:34]execute_cgi path=json_proto method=POST [12:50:34]POST find Content-Length [12:50:34]Host: 172.17.52.196:8080 [12:50:34]Content-Length: 623 [12:50:34]Content-Type: application/json [12:50:34] [12:50:34]POST finish read [12:50:34]Found Content-Length = 623 [12:50:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127167", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:34]execute_script... [12:50:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127167", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:34]POST & json_proto [12:50:34]process_json_proto [12:50:34]json parsed OK: [12:50:34]protocol is kg_v1.0 [12:50:34]action value=close_receipt [12:50:34]process_action close_receipt [12:50:34]cmd_close_receipt [12:50:34]MH_GetDate [12:50:34]Write to MH i2c: F0 00 00 66 0E 63 [12:50:34]Write i2c OK [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: F0 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: F0 09 00 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: F0 09 00 66 0E 00 9C FC 14 67 60 05 E4 66 2E [12:50:34]GetLastDocTimeStamp 1729428343 [12:50:34]current date 1729428636 [12:50:34]FM_GetShiftState [12:50:34]SAM_PROTO_GetShiftState [12:50:34]wFMCommunicate request_size=4 [12:50:34]MH_SAM_APDU [12:50:34]CAPDU: 80 13 01 00 [12:50:34]Write to MH i2c: E2 08 00 67 0E 80 13 01 00 00 00 00 00 F2 [12:50:34]Write i2c OK [12:50:34]MH_I2C_Read... [12:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:34]Read from MH i2c: E2 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 0E 00 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 0E 00 67 0E 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 84 [12:50:34]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [12:50:34]wFMCommunicate OK [12:50:34]SAM_PROTO_GetShiftState done [12:50:34]FM_GetShiftState done [12:50:34]opened in 1729384380 [12:50:34]opened+sec_in_day 1729470780 [12:50:34]quantity*price = 14400 [12:50:34]sum+1 = 14401 [12:50:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 57 20.10.2024 12:50 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69767 ФПД: 70304253567994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125036&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69767&fm=70304253567994&tin=02508201610067®Number=0000000000091770&sum=14400 0 [12:50:35]StoreToDocumentArchive [12:50:35]shift 526 fd 69767 [12:50:35]save to /storage/0526/doc_00069767 [12:50:35]save last doc name /storage/0526/doc_00069767 to /storage/kkm_last_doc_name [12:50:35]save OK [12:50:35]Clear old archive folders... [12:50:35]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:50:35]tlvbuf is 009DCC00 [12:50:35]SAM_PROTO_ClearQueue [12:50:35]wFMCommunicate request_size=4 [12:50:35]MH_SAM_APDU [12:50:35]CAPDU: 80 09 00 00 [12:50:35]Write to MH i2c: E2 08 00 74 0E 80 09 00 00 00 00 00 00 F4 [12:50:35]Write i2c OK [12:50:35]MH_I2C_Read... [12:50:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:36]Read from MH i2c: E2 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: E2 03 00 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: E2 03 00 74 0E 00 90 00 F6 [12:50:36]RAPDU: 90 00 [12:50:36]wFMCommunicate OK [12:50:36]SAM_PROTO_ClearQueue done [12:50:36]KKMCreateOFDPacket [12:50:36]OFDProtocolAddRootSTLVToBuf [12:50:36]FM_MakeSignedData [12:50:36]FM_MakeSignedData [12:50:36]SAM_PROTO_SignData [12:50:36]wFMCommunicate request_size=4 [12:50:36]MH_SAM_APDU [12:50:36]CAPDU: 80 0D 01 02 [12:50:36]Write to MH i2c: E2 08 00 75 0E 80 0D 01 02 00 00 00 00 FC [12:50:36]Write i2c OK [12:50:36]MH_I2C_Read... [12:50:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:36]Read from MH i2c: E2 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: E2 03 00 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: E2 03 00 75 0E 00 90 00 F7 [12:50:36]RAPDU: 90 00 [12:50:36]wFMCommunicate OK [12:50:36]wFMCommunicate request_size=255 [12:50:36]MH_SAM_APDU [12:50:36]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9C FC 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 [12:50:36]Write to MH i2c: E2 02 01 76 0E 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9C FC 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 00 00 5C [12:50:36]Write i2c OK [12:50:36]MH_I2C_Read... [12:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:36]Read from MH i2c: E2 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: E2 03 00 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: E2 03 00 76 0E 00 90 00 F8 [12:50:36]RAPDU: 90 00 [12:50:36]wFMCommunicate OK [12:50:36]wFMCommunicate request_size=34 [12:50:36]MH_SAM_APDU [12:50:36]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 87 10 01 00 35 04 06 00 3F F0 FC 0F 63 FA [12:50:36]Write to MH i2c: E2 25 00 77 0E 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 87 10 01 00 35 04 06 00 3F F0 FC 0F 63 FA 00 00 F3 [12:50:36]Write i2c OK [12:50:36]MH_I2C_Read... [12:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:36]Read from MH i2c: E2 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: E2 03 00 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: E2 03 00 77 0E 00 90 00 F9 [12:50:36]RAPDU: 90 00 [12:50:36]wFMCommunicate OK [12:50:36]wFMCommunicate request_size=4 [12:50:36]MH_SAM_APDU [12:50:36]CAPDU: 80 0D 03 02 [12:50:36]Write to MH i2c: E2 08 00 78 0E 80 0D 03 02 00 00 00 00 01 [12:50:36]Write i2c OK [12:50:36]MH_I2C_Read... [12:50:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:36]Read from MH i2c: E2 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: E2 0B 00 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: E2 0B 00 78 0E 00 F0 2C 56 37 91 16 44 2B 90 00 C1 [12:50:36]RAPDU: F0 2C 56 37 91 16 44 2B 90 00 [12:50:36]wFMCommunicate OK [12:50:36]SAM_PROTO_SignData done [12:50:36]FM_MakeSignedData done [12:50:36]CreateOFDProtocolMessage [12:50:36]wFMCommunicate request_size=4 [12:50:36]MH_SAM_APDU [12:50:36]CAPDU: 80 11 00 00 [12:50:36]Write to MH i2c: E2 08 00 79 0E 80 11 00 00 00 00 00 00 01 [12:50:36]Write i2c OK [12:50:36]MH_I2C_Read... [12:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:36]Read from MH i2c: E2 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: E2 17 00 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: E2 17 00 79 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 58 [12:50:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [12:50:36]wFMCommunicate OK [12:50:36]CreateOFDProtocolMessage done [12:50:36]OFDSenderStorePacket 69767 [12:50:36]StoreOFDPacket docnum=69767 [12:50:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 9F BC 1F 01 CD CB 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9C FC 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 87 10 01 00 35 04 06 00 3F F0 FC 0F 63 FA F0 2C 56 37 91 16 44 2B [12:50:36]CheckFolder [12:50:36]dirname=/storage/ofd_packets [12:50:36]CheckFolder done [12:50:36]ProducePacketName [12:50:36]name=ofd_packets/00069767 [12:50:36]NVStorageSaveData ofd_packets/00069767 [12:50:36]File name is /storage/ofd_packets/00069767 [12:50:36]Write 325 bytes [12:50:36]NVStorageSaveData done [12:50:36]OFDSenderStorePacket done [12:50:36]KKMCreateOFDPacket done [12:50:36]NVStorageSaveData kkm_last_timestamp [12:50:36]File name is /storage/kkm_last_timestamp [12:50:36]Write 4 bytes [12:50:36]NVStorageSaveData done [12:50:36]ExternCall_PrintAddStr [12:50:36]wPrintStart [12:50:36]Write to MH i2c: 01 00 00 7A 0E 88 [12:50:36]Write i2c OK [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: 01 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: 01 07 00 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: 01 07 00 7A 0E 00 00 00 00 00 FF 0F 9D [12:50:36]RasterBufferAndPrint [12:50:36]line Счет N : (3)127167 [12:50:36]line ИНН: 02508201610067 [12:50:36]line Контрольно-Кассовый Чек [12:50:36]line ПРОДАЖА [12:50:36]line Товар: 48743587 [12:50:36]line Сигареты Winston XStyle Silver [12:50:36]line 1.000 * 144.00 [12:50:36]line = 144.00 [12:50:36]line НДС 12% НСП 1% [12:50:36]line > о реализуемом товаре [12:50:36]line ИТОГО: 144.00 [12:50:36]line НСП 1% : 1.27 [12:50:36]line НДС 12% : 15.29 [12:50:36]line Наличными: 144.00 [12:50:36]line Безнал.: 0.00 [12:50:36]line Место: АЗС № 163 "Партнер Нефть" [12:50:36]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [12:50:36]line СНО: Общий режим [12:50:36]line Чек 57 20.10.2024 12:50 [12:50:36]line Смена: 526 ФФД: 1.0 [12:50:36]line ЗНМ: 0300000101 [12:50:36]line РНМ: 0000000000091770 [12:50:36]line Версия ККМ: 001 [12:50:36]line ФМ: 0000000000871749 [12:50:36]line ФД: 69767 [12:50:36]line ФПД: 70304253567994 [12:50:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T125036&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69767&fm=70304253567994&tin=02508201610067®Number=0000000000091770&sum=14400 [12:50:36]line 0 [12:50:36]OFD Sender: Processing packet 69767 [packets to send 32, broken 31] [12:50:36]ProducePacketName [12:50:36]name=ofd_packets/00069767 [12:50:36]OFD Sender: To server: pG, [12:50:36]CommunicateWithHost lk.salyk.kg:30040 [12:50:36]ConnectInit lk.salyk.kg [12:50:36]written 0, free lines is 4095 [12:50:36]Connected sock=10 [12:50:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 9F BC 1F 01 CD CB 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9C FC 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 87 10 01 00 35 04 06 00 3F F0 FC 0F 63 FA F0 2C 56 37 91 16 44 2B [12:50:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 FC 79 47 00 65 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 31 37 34 39 10 04 04 00 87 10 01 00 F4 03 04 00 1F A2 14 67 B6 04 01 00 00 EB E2 C6 44 95 D1 64 7C [12:50:37]CommunicateWithHost err = 0 [12:50:37]CheckOFDResponse [12:50:37]1017 (14) - 77093643461234 [12:50:37]1041 (16) - 0000000000871749 [12:50:37]1040 (4) - 69767 [12:50:37]1012 (4) - 20.10.2024 06:24 [12:50:37]1206 (1) - 0 [12:50:37]OFD Sender: Remove packet 69767 [12:50:37]ProducePacketName [12:50:37]name=ofd_packets/00069767 [12:50:37]NVStorageDeleteData [12:50:37]Write to MH i2c: 01 00 00 A3 0E B1 [12:50:37]Write i2c OK [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: 01 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: 01 07 00 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: 01 07 00 A3 0E 00 00 00 00 00 E7 0C AB [12:50:37]RasterBufferAndPrint [12:50:37]line [12:50:37]line [12:50:37]line [12:50:37]line [12:50:37]line [12:50:37]written 0, free lines is 3310 [12:50:37]MH_Cut [12:50:37]Write to MH i2c: D1 01 00 AA 0E 01 8A [12:50:37]Write i2c OK [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: D1 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: D1 01 00 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: D1 01 00 AA 0E 00 89 [12:50:37]Write to MH i2c: 01 00 00 AB 0E B9 [12:50:37]Write i2c OK [12:50:37]MH_I2C_Read... [12:50:37]OFD Sender: No OFD packet to send [12:50:38]*** Cut start [12:50:38]*** Partial cut [12:50:38]*** CUTSNS_PIN = 1 [12:50:38]*** CUTSNS_PIN = 0 [12:50:38]*** Brake cut motor [12:50:38]Read from MH i2c: 01 [12:50:38]MH_I2C_Read... [12:50:38]*** Stop cut motor [12:50:38]*** Cut end [12:50:38]Read from MH i2c: 01 07 00 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: 01 07 00 AB 0E 00 00 00 00 00 FF 0F CE [12:50:38]process_action close_receipt done [12:50:38]requested_data is exist [12:50:38]produce_requested_data [12:50:38]requested_item fm.sn is exist - process it [12:50:38]wFMCommunicate request_size=4 [12:50:38]MH_SAM_APDU [12:50:38]CAPDU: 80 11 00 00 [12:50:38]Write to MH i2c: E2 08 00 AC 0E 80 11 00 00 00 00 00 00 34 [12:50:38]Write i2c OK [12:50:38]MH_I2C_Read... [12:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:38]Read from MH i2c: E2 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: E2 17 00 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: E2 17 00 AC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 8B [12:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [12:50:38]wFMCommunicate OK [12:50:38]requested_item fd.num is exist - process it [12:50:38]SAM_PROTO_GetFieldsCounters [12:50:38]wFMCommunicate request_size=4 [12:50:38]MH_SAM_APDU [12:50:38]CAPDU: 80 13 00 00 [12:50:38]Write to MH i2c: E2 08 00 AD 0E 80 13 00 00 00 00 00 00 37 [12:50:38]Write i2c OK [12:50:38]MH_I2C_Read... [12:50:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:39]Read from MH i2c: E2 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: E2 62 00 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: E2 62 00 AD 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 87 10 01 00 0E 04 04 00 0E 02 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 AE [12:50:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 87 10 01 00 0E 04 04 00 0E 02 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 [12:50:39]wFMCommunicate OK [12:50:39]SAM_PROTO_GetFieldsCounters done [12:50:39]requested_item shift.num is exist - process it [12:50:39]requested_item shift.opened is exist - process it [12:50:39]req_shift_opened [12:50:39]FM_GetShiftState [12:50:39]SAM_PROTO_GetShiftState [12:50:39]wFMCommunicate request_size=4 [12:50:39]MH_SAM_APDU [12:50:39]CAPDU: 80 13 01 00 [12:50:39]Write to MH i2c: E2 08 00 AE 0E 80 13 01 00 00 00 00 00 39 [12:50:39]Write i2c OK [12:50:39]MH_I2C_Read... [12:50:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:39]Read from MH i2c: E2 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: E2 0E 00 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: E2 0E 00 AE 0E 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 CB [12:50:39]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [12:50:39]wFMCommunicate OK [12:50:39]SAM_PROTO_GetShiftState done [12:50:39]FM_GetShiftState done [12:50:39]req_shift_opened done [12:50:39]requested_item shift.open_date is exist - process it [12:50:39]req_shift_open_date [12:50:39]req_shift_open_date done [12:50:39]produce_requested_data done [12:50:39]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69767,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [12:50:39]process_action_free close_receipt [12:50:39]json_value_free [12:50:39]json_value_free done [12:50:39]process_json_proto returns [12:50:39]Send response to host [12:50:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69767,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [12:50:39]free response buf [12:50:39]execute_script done [12:50:39]execute_script returns [12:50:39]free content buf [12:50:39]Sock 7.Close socket [12:50:39]Sock 7.Thread stoped [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:43]OFD Sender: No OFD packet to send [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:10]accept exits with 9 [13:04:10]New connection [13:04:10]New thread 3066629476 created [13:04:10]Thread 3066486116 joined [13:04:10]Waiting for new connection... [13:04:10] Sock 9.Parse request [13:04:10]Sock 9.Check first char [13:04:10]Sock 9.First char is OK [13:04:10]request: POST /json_proto HTTP/1.0 [13:04:10]Method: POST [13:04:10]URL: /json_proto [13:04:10]Method is POST - this is cgi request [13:04:10]url: /json_proto [13:04:10]query_string will be loaded in cgi processing [13:04:10]execute_cgi json_proto POST (null) [13:04:10]execute_cgi path=json_proto method=POST [13:04:10]POST find Content-Length [13:04:10]Host: 172.17.52.196:8080 [13:04:10]Content-Length: 621 [13:04:10]Content-Type: application/json [13:04:10] [13:04:10]POST finish read [13:04:10]Found Content-Length = 621 [13:04:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127168", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:10]execute_script... [13:04:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127168", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:10]POST & json_proto [13:04:10]process_json_proto [13:04:10]json parsed OK: [13:04:10]protocol is kg_v1.0 [13:04:10]action value=close_receipt [13:04:10]process_action close_receipt [13:04:10]cmd_close_receipt [13:04:10]MH_GetDate [13:04:10]Write to MH i2c: F0 00 00 AF 0E AC [13:04:10]Write i2c OK [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: F0 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: F0 09 00 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: F0 09 00 AF 0E 00 CC FF 14 67 60 05 E4 66 AA [13:04:10]GetLastDocTimeStamp 1729428636 [13:04:10]current date 1729429452 [13:04:10]FM_GetShiftState [13:04:10]SAM_PROTO_GetShiftState [13:04:10]wFMCommunicate request_size=4 [13:04:10]MH_SAM_APDU [13:04:10]CAPDU: 80 13 01 00 [13:04:10]Write to MH i2c: E2 08 00 B0 0E 80 13 01 00 00 00 00 00 3B [13:04:10]Write i2c OK [13:04:10]MH_I2C_Read... [13:04:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:10]Read from MH i2c: E2 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: E2 0E 00 [13:04:10]MH_I2C_Read... [13:04:10]Read from MH i2c: E2 0E 00 B0 0E 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 CD [13:04:10]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [13:04:10]wFMCommunicate OK [13:04:10]SAM_PROTO_GetShiftState done [13:04:10]FM_GetShiftState done [13:04:10]opened in 1729384380 [13:04:10]opened+sec_in_day 1729470780 [13:04:10]quantity*price = 14400 [13:04:10]sum+1 = 14401 [13:04:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 58 20.10.2024 13:04 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69768 ФПД: 100511994604562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130412&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69768&fm=100511994604562&tin=02508201610067®Number=0000000000091770&sum=14400 0 [13:04:11]StoreToDocumentArchive [13:04:11]shift 526 fd 69768 [13:04:11]save to /storage/0526/doc_00069768 [13:04:11]save last doc name /storage/0526/doc_00069768 to /storage/kkm_last_doc_name [13:04:11]save OK [13:04:11]Clear old archive folders... [13:04:11]ProcessDocumentItem done err = 0, tmpTLVsize=273 [13:04:11]tlvbuf is 00960A40 [13:04:11]SAM_PROTO_ClearQueue [13:04:11]wFMCommunicate request_size=4 [13:04:11]MH_SAM_APDU [13:04:11]CAPDU: 80 09 00 00 [13:04:11]Write to MH i2c: E2 08 00 BD 0E 80 09 00 00 00 00 00 00 3D [13:04:11]Write i2c OK [13:04:11]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 BD 0E 00 90 00 3F [13:04:12]RAPDU: 90 00 [13:04:12]wFMCommunicate OK [13:04:12]SAM_PROTO_ClearQueue done [13:04:12]KKMCreateOFDPacket [13:04:12]OFDProtocolAddRootSTLVToBuf [13:04:12]FM_MakeSignedData [13:04:12]FM_MakeSignedData [13:04:12]SAM_PROTO_SignData [13:04:12]wFMCommunicate request_size=4 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 0D 01 02 [13:04:12]Write to MH i2c: E2 08 00 BE 0E 80 0D 01 02 00 00 00 00 45 [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 BE 0E 00 90 00 40 [13:04:12]RAPDU: 90 00 [13:04:12]wFMCommunicate OK [13:04:12]wFMCommunicate request_size=255 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CC FF 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [13:04:12]Write to MH i2c: E2 02 01 BF 0E 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CC FF 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 3E [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 BF 0E 00 90 00 41 [13:04:12]RAPDU: 90 00 [13:04:12]wFMCommunicate OK [13:04:12]wFMCommunicate request_size=32 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 88 10 01 00 35 04 06 00 5B 6A 45 BB EC 12 [13:04:12]Write to MH i2c: E2 23 00 C0 0E 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 88 10 01 00 35 04 06 00 5B 6A 45 BB EC 12 00 00 05 [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 03 00 C0 0E 00 90 00 42 [13:04:12]RAPDU: 90 00 [13:04:12]wFMCommunicate OK [13:04:12]wFMCommunicate request_size=4 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 0D 03 02 [13:04:12]Write to MH i2c: E2 08 00 C1 0E 80 0D 03 02 00 00 00 00 4A [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 0B 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 0B 00 C1 0E 00 8A A5 EB BA DB C2 BD 5C 90 00 D5 [13:04:12]RAPDU: 8A A5 EB BA DB C2 BD 5C 90 00 [13:04:12]wFMCommunicate OK [13:04:12]SAM_PROTO_SignData done [13:04:12]FM_MakeSignedData done [13:04:12]CreateOFDProtocolMessage [13:04:12]wFMCommunicate request_size=4 [13:04:12]MH_SAM_APDU [13:04:12]CAPDU: 80 11 00 00 [13:04:12]Write to MH i2c: E2 08 00 C2 0E 80 11 00 00 00 00 00 00 4A [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:12]Read from MH i2c: E2 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 17 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: E2 17 00 C2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 A1 [13:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [13:04:12]wFMCommunicate OK [13:04:12]CreateOFDProtocolMessage done [13:04:12]OFDSenderStorePacket 69768 [13:04:12]StoreOFDPacket docnum=69768 [13:04:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 3D 0E 1D 01 C9 F0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CC FF 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 88 10 01 00 35 04 06 00 5B 6A 45 BB EC 12 8A A5 EB BA DB C2 BD 5C [13:04:12]CheckFolder [13:04:12]dirname=/storage/ofd_packets [13:04:12]CheckFolder done [13:04:12]ProducePacketName [13:04:12]name=ofd_packets/00069768 [13:04:12]NVStorageSaveData ofd_packets/00069768 [13:04:12]File name is /storage/ofd_packets/00069768 [13:04:12]Write 323 bytes [13:04:12]NVStorageSaveData done [13:04:12]OFDSenderStorePacket done [13:04:12]KKMCreateOFDPacket done [13:04:12]NVStorageSaveData kkm_last_timestamp [13:04:12]File name is /storage/kkm_last_timestamp [13:04:12]Write 4 bytes [13:04:12]NVStorageSaveData done [13:04:12]ExternCall_PrintAddStr [13:04:12]wPrintStart [13:04:12]Write to MH i2c: 01 00 00 C3 0E D1 [13:04:12]Write i2c OK [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: 01 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: 01 07 00 [13:04:12]MH_I2C_Read... [13:04:12]Read from MH i2c: 01 07 00 C3 0E 00 00 00 00 00 FF 0F E6 [13:04:12]RasterBufferAndPrint [13:04:12]line Счет N : (3)127168 [13:04:12]line ИНН: 02508201610067 [13:04:12]line Контрольно-Кассовый Чек [13:04:12]line ПРОДАЖА [13:04:12]line Товар: 48743570 [13:04:12]line Сигареты Winston XStyle Blue [13:04:12]line 1.000 * 144.00 [13:04:12]line = 144.00 [13:04:12]line НДС 12% НСП 1% [13:04:12]line > о реализуемом товаре [13:04:12]line ИТОГО: 144.00 [13:04:12]line НСП 1% : 1.27 [13:04:12]line НДС 12% : 15.29 [13:04:12]line Наличными: 144.00 [13:04:12]line Безнал.: 0.00 [13:04:12]line Место: АЗС № 163 "Партнер Нефть" [13:04:12]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [13:04:12]line СНО: Общий режим [13:04:12]line Чек 58 20.10.2024 13:04 [13:04:12]line Смена: 526 ФФД: 1.0 [13:04:12]line ЗНМ: 0300000101 [13:04:12]line РНМ: 0000000000091770 [13:04:12]line Версия ККМ: 001 [13:04:12]line ФМ: 0000000000871749 [13:04:12]line ФД: 69768 [13:04:12]line ФПД: 100511994604562 [13:04:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T130412&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69768&fm=100511994604562&tin=02508201610067®Number=0000000000091770&sum=14400 [13:04:12]OFD Sender: Processing packet 69768 [packets to send 32, broken 31] [13:04:12]ProducePacketName [13:04:12]name=ofd_packets/00069768 [13:04:12]OFD Sender: To server: pG, [13:04:12]CommunicateWithHost lk.salyk.kg:30040 [13:04:12]ConnectInit lk.salyk.kg [13:04:12]line 0 [13:04:12]written 0, free lines is 4095 [13:04:12]Connected sock=10 [13:04:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 3D 0E 1D 01 C9 F0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CC FF 14 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 88 10 01 00 35 04 06 00 5B 6A 45 BB EC 12 8A A5 EB BA DB C2 BD 5C [13:04:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 EC A9 47 00 25 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 88 10 01 00 F4 03 04 00 4F A5 14 67 B6 04 01 00 00 34 36 77 48 3A 4B 7F A5 [13:04:13]CommunicateWithHost err = 0 [13:04:13]CheckOFDResponse [13:04:13]1017 (14) - 77093643461234 [13:04:13]1041 (16) - 0000000000871749 [13:04:13]1040 (4) - 69768 [13:04:13]1012 (4) - 20.10.2024 06:38 [13:04:13]1206 (1) - 0 [13:04:13]OFD Sender: Remove packet 69768 [13:04:13]ProducePacketName [13:04:13]name=ofd_packets/00069768 [13:04:13]NVStorageDeleteData [13:04:13]Write to MH i2c: 01 00 00 EB 0E F9 [13:04:13]Write i2c OK [13:04:13]MH_I2C_Read... [13:04:13]Read from MH i2c: 01 [13:04:13]MH_I2C_Read... [13:04:13]Read from MH i2c: 01 07 00 [13:04:13]MH_I2C_Read... [13:04:13]Read from MH i2c: 01 07 00 EB 0E 00 00 00 00 00 FB 0C 07 [13:04:13]RasterBufferAndPrint [13:04:13]line [13:04:13]line [13:04:13]line [13:04:13]line [13:04:13]line [13:04:13]written 0, free lines is 3330 [13:04:13]MH_Cut [13:04:13]Write to MH i2c: D1 01 00 F2 0E 01 D2 [13:04:13]Write i2c OK [13:04:13]MH_I2C_Read... [13:04:13]Read from MH i2c: D1 [13:04:13]MH_I2C_Read... [13:04:13]Read from MH i2c: D1 01 00 [13:04:13]MH_I2C_Read... [13:04:13]Read from MH i2c: D1 01 00 F2 0E 00 D1 [13:04:13]Write to MH i2c: 01 00 00 F3 0E 01 [13:04:13]Write i2c OK [13:04:13]MH_I2C_Read... [13:04:13]OFD Sender: No OFD packet to send [13:04:14]*** Cut start [13:04:14]*** Partial cut [13:04:14]*** CUTSNS_PIN = 1 [13:04:14]*** CUTSNS_PIN = 0 [13:04:14]*** Brake cut motor [13:04:14]Read from MH i2c: 01 [13:04:14]MH_I2C_Read... [13:04:14]*** Stop cut motor [13:04:14]*** Cut end [13:04:14]Read from MH i2c: 01 07 00 [13:04:14]MH_I2C_Read... [13:04:14]Read from MH i2c: 01 07 00 F3 0E 00 00 00 00 00 FF 0F 16 [13:04:14]process_action close_receipt done [13:04:14]requested_data is exist [13:04:14]produce_requested_data [13:04:14]requested_item fm.sn is exist - process it [13:04:14]wFMCommunicate request_size=4 [13:04:14]MH_SAM_APDU [13:04:14]CAPDU: 80 11 00 00 [13:04:14]Write to MH i2c: E2 08 00 F4 0E 80 11 00 00 00 00 00 00 7C [13:04:14]Write i2c OK [13:04:14]MH_I2C_Read... [13:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:14]Read from MH i2c: E2 [13:04:14]MH_I2C_Read... [13:04:14]Read from MH i2c: E2 17 00 [13:04:14]MH_I2C_Read... [13:04:14]Read from MH i2c: E2 17 00 F4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 D3 [13:04:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [13:04:14]wFMCommunicate OK [13:04:14]requested_item fd.num is exist - process it [13:04:14]SAM_PROTO_GetFieldsCounters [13:04:14]wFMCommunicate request_size=4 [13:04:14]MH_SAM_APDU [13:04:14]CAPDU: 80 13 00 00 [13:04:14]Write to MH i2c: E2 08 00 F5 0E 80 13 00 00 00 00 00 00 7F [13:04:14]Write i2c OK [13:04:14]MH_I2C_Read... [13:04:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:15]Read from MH i2c: E2 [13:04:15]MH_I2C_Read... [13:04:15]Read from MH i2c: E2 62 00 [13:04:15]MH_I2C_Read... [13:04:15]Read from MH i2c: E2 62 00 F5 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 88 10 01 00 0E 04 04 00 0E 02 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 FA [13:04: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 88 10 01 00 0E 04 04 00 0E 02 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 [13:04:15]wFMCommunicate OK [13:04:15]SAM_PROTO_GetFieldsCounters done [13:04:15]requested_item shift.num is exist - process it [13:04:15]requested_item shift.opened is exist - process it [13:04:15]req_shift_opened [13:04:15]FM_GetShiftState [13:04:15]SAM_PROTO_GetShiftState [13:04:15]wFMCommunicate request_size=4 [13:04:15]MH_SAM_APDU [13:04:15]CAPDU: 80 13 01 00 [13:04:15]Write to MH i2c: E2 08 00 F6 0E 80 13 01 00 00 00 00 00 81 [13:04:15]Write i2c OK [13:04:15]MH_I2C_Read... [13:04:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:15]Read from MH i2c: E2 [13:04:15]MH_I2C_Read... [13:04:15]Read from MH i2c: E2 0E 00 [13:04:15]MH_I2C_Read... [13:04:15]Read from MH i2c: E2 0E 00 F6 0E 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 13 [13:04:15]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [13:04:15]wFMCommunicate OK [13:04:15]SAM_PROTO_GetShiftState done [13:04:15]FM_GetShiftState done [13:04:15]req_shift_opened done [13:04:15]requested_item shift.open_date is exist - process it [13:04:15]req_shift_open_date [13:04:15]req_shift_open_date done [13:04:15]produce_requested_data done [13:04:15]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69768,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [13:04:15]process_action_free close_receipt [13:04:15]json_value_free [13:04:15]json_value_free done [13:04:15]process_json_proto returns [13:04:15]Send response to host [13:04:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69768,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [13:04:15]free response buf [13:04:15]execute_script done [13:04:15]execute_script returns [13:04:15]free content buf [13:04:15]Sock 9.Close socket [13:04:15]Sock 9.Thread stoped [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:02]accept exits with 7 [13:18:02]New connection [13:18:02]New thread 3066486116 created [13:18:02]Thread 3066629476 joined [13:18:02]Waiting for new connection... [13:18:02] Sock 7.Parse request [13:18:02]Sock 7.Check first char [13:18:02]Sock 7.First char is OK [13:18:02]request: POST /json_proto HTTP/1.0 [13:18:02]Method: POST [13:18:02]URL: /json_proto [13:18:02]Method is POST - this is cgi request [13:18:02]url: /json_proto [13:18:02]query_string will be loaded in cgi processing [13:18:02]execute_cgi json_proto POST (null) [13:18:02]execute_cgi path=json_proto method=POST [13:18:02]POST find Content-Length [13:18:02]Host: 172.17.52.196:8080 [13:18:02]Content-Length: 647 [13:18:02]Content-Type: application/json [13:18:02] [13:18:02]POST finish read [13:18:02]Found Content-Length = 647 [13:18:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127169", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:02]execute_script... [13:18:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127169", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:02]POST & json_proto [13:18:02]process_json_proto [13:18:02]json parsed OK: [13:18:02]protocol is kg_v1.0 [13:18:02]action value=close_receipt [13:18:02]process_action close_receipt [13:18:02]cmd_close_receipt [13:18:02]MH_GetDate [13:18:02]Write to MH i2c: F0 00 00 F7 0E F4 [13:18:02]Write i2c OK [13:18:02]MH_I2C_Read... [13:18:02]Read from MH i2c: F0 [13:18:02]MH_I2C_Read... [13:18:02]Read from MH i2c: F0 09 00 [13:18:02]MH_I2C_Read... [13:18:02]Read from MH i2c: F0 09 00 F7 0E 00 0C 03 15 67 60 05 E4 66 37 [13:18:02]GetLastDocTimeStamp 1729429452 [13:18:02]current date 1729430284 [13:18:02]FM_GetShiftState [13:18:02]SAM_PROTO_GetShiftState [13:18:02]wFMCommunicate request_size=4 [13:18:02]MH_SAM_APDU [13:18:02]CAPDU: 80 13 01 00 [13:18:02]Write to MH i2c: E2 08 00 F8 0E 80 13 01 00 00 00 00 00 83 [13:18:02]Write i2c OK [13:18:02]MH_I2C_Read... [13:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:02]Read from MH i2c: E2 [13:18:02]MH_I2C_Read... [13:18:02]Read from MH i2c: E2 0E 00 [13:18:02]MH_I2C_Read... [13:18:02]Read from MH i2c: E2 0E 00 F8 0E 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 15 [13:18:02]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [13:18:02]wFMCommunicate OK [13:18:02]SAM_PROTO_GetShiftState done [13:18:02]FM_GetShiftState done [13:18:02]opened in 1729384380 [13:18:02]opened+sec_in_day 1729470780 [13:18:02]quantity*price = 13000 [13:18:02]sum+1 = 13001 [13:18:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 59 20.10.2024 13:18 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69769 ФПД: 143125737871766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131804&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69769&fm=143125737871766&tin=02508201610067®Number=0000000000091770&sum=13000 0 [13:18:03]StoreToDocumentArchive [13:18:03]shift 526 fd 69769 [13:18:03]save to /storage/0526/doc_00069769 [13:18:03]save last doc name /storage/0526/doc_00069769 to /storage/kkm_last_doc_name [13:18:03]save OK [13:18:03]Clear old archive folders... [13:18:03]ProcessDocumentItem done err = 0, tmpTLVsize=272 [13:18:03]tlvbuf is 00A0A430 [13:18:03]SAM_PROTO_ClearQueue [13:18:03]wFMCommunicate request_size=4 [13:18:03]MH_SAM_APDU [13:18:03]CAPDU: 80 09 00 00 [13:18:03]Write to MH i2c: E2 08 00 05 0F 80 09 00 00 00 00 00 00 86 [13:18:03]Write i2c OK [13:18:03]MH_I2C_Read... [13:18:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:03]Read from MH i2c: E2 [13:18:03]MH_I2C_Read... [13:18:03]Read from MH i2c: E2 03 00 [13:18:03]MH_I2C_Read... [13:18:03]Read from MH i2c: E2 03 00 05 0F 00 90 00 88 [13:18:03]RAPDU: 90 00 [13:18:03]wFMCommunicate OK [13:18:03]SAM_PROTO_ClearQueue done [13:18:03]KKMCreateOFDPacket [13:18:03]OFDProtocolAddRootSTLVToBuf [13:18:03]FM_MakeSignedData [13:18:03]FM_MakeSignedData [13:18:03]SAM_PROTO_SignData [13:18:03]wFMCommunicate request_size=4 [13:18:03]MH_SAM_APDU [13:18:03]CAPDU: 80 0D 01 02 [13:18:03]Write to MH i2c: E2 08 00 06 0F 80 0D 01 02 00 00 00 00 8E [13:18:03]Write i2c OK [13:18:03]MH_I2C_Read... [13:18:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:04]Read from MH i2c: E2 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: E2 03 00 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: E2 03 00 06 0F 00 90 00 89 [13:18:04]RAPDU: 90 00 [13:18:04]wFMCommunicate OK [13:18:04]wFMCommunicate request_size=255 [13:18:04]MH_SAM_APDU [13:18:04]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 0C 03 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 [13:18:04]Write to MH i2c: E2 02 01 07 0F 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 0C 03 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 01 [13:18:04]Write i2c OK [13:18:04]MH_I2C_Read... [13:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:04]Read from MH i2c: E2 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: E2 03 00 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: E2 03 00 07 0F 00 90 00 8A [13:18:04]RAPDU: 90 00 [13:18:04]wFMCommunicate OK [13:18:04]wFMCommunicate request_size=31 [13:18:04]MH_SAM_APDU [13:18:04]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 37 34 39 10 04 04 00 89 10 01 00 35 04 06 00 82 2C 0E C3 99 96 [13:18:04]Write to MH i2c: E2 22 00 08 0F 80 0D 02 02 1A 00 30 30 38 37 31 37 34 39 10 04 04 00 89 10 01 00 35 04 06 00 82 2C 0E C3 99 96 00 00 08 [13:18:04]Write i2c OK [13:18:04]MH_I2C_Read... [13:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:04]Read from MH i2c: E2 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: E2 03 00 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: E2 03 00 08 0F 00 90 00 8B [13:18:04]RAPDU: 90 00 [13:18:04]wFMCommunicate OK [13:18:04]wFMCommunicate request_size=4 [13:18:04]MH_SAM_APDU [13:18:04]CAPDU: 80 0D 03 02 [13:18:04]Write to MH i2c: E2 08 00 09 0F 80 0D 03 02 00 00 00 00 93 [13:18:04]Write i2c OK [13:18:04]MH_I2C_Read... [13:18:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:04]Read from MH i2c: E2 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: E2 0B 00 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: E2 0B 00 09 0F 00 7B 45 88 36 CE 1C DB F6 90 00 CD [13:18:04]RAPDU: 7B 45 88 36 CE 1C DB F6 90 00 [13:18:04]wFMCommunicate OK [13:18:04]SAM_PROTO_SignData done [13:18:04]FM_MakeSignedData done [13:18:04]CreateOFDProtocolMessage [13:18:04]wFMCommunicate request_size=4 [13:18:04]MH_SAM_APDU [13:18:04]CAPDU: 80 11 00 00 [13:18:04]Write to MH i2c: E2 08 00 0A 0F 80 11 00 00 00 00 00 00 93 [13:18:04]Write i2c OK [13:18:04]MH_I2C_Read... [13:18:04]OFD Sender: No OFD packet to send [13:18:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:04]Read from MH i2c: E2 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: E2 17 00 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: E2 17 00 0A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 EA [13:18:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [13:18:04]wFMCommunicate OK [13:18:04]CreateOFDProtocolMessage done [13:18:04]OFDSenderStorePacket 69769 [13:18:04]StoreOFDPacket docnum=69769 [13:18:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 36 CB 1C 01 7D 5F 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 0C 03 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 89 10 01 00 35 04 06 00 82 2C 0E C3 99 96 7B 45 88 36 CE 1C DB F6 [13:18:04]CheckFolder [13:18:04]dirname=/storage/ofd_packets [13:18:04]CheckFolder done [13:18:04]ProducePacketName [13:18:04]name=ofd_packets/00069769 [13:18:04]NVStorageSaveData ofd_packets/00069769 [13:18:04]File name is /storage/ofd_packets/00069769 [13:18:04]Write 322 bytes [13:18:04]NVStorageSaveData done [13:18:04]OFDSenderStorePacket done [13:18:04]KKMCreateOFDPacket done [13:18:04]NVStorageSaveData kkm_last_timestamp [13:18:04]File name is /storage/kkm_last_timestamp [13:18:04]Write 4 bytes [13:18:04]NVStorageSaveData done [13:18:04]ExternCall_PrintAddStr [13:18:04]wPrintStart [13:18:04]Write to MH i2c: 01 00 00 0B 0F 1A [13:18:04]Write i2c OK [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: 01 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: 01 07 00 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: 01 07 00 0B 0F 00 00 00 00 00 FF 0F 2F [13:18:04]RasterBufferAndPrint [13:18:04]line Счет N : (3)127169 [13:18:04]line ИНН: 02508201610067 [13:18:04]line Контрольно-Кассовый Чек [13:18:04]line ПРОДАЖА [13:18:04]line Товар: 47011656 [13:18:04]line Водка Пшеничная 0,1л [13:18:04]line 2.000 * 65.00 [13:18:04]line = 130.00 [13:18:04]line НДС 12% НСП 1% [13:18:04]line > о реализуемом товаре [13:18:04]line ИТОГО: 130.00 [13:18:04]line НСП 1% : 1.15 [13:18:04]line НДС 12% : 13.80 [13:18:04]line Наличными: 130.00 [13:18:04]line Безнал.: 0.00 [13:18:04]line Место: АЗС № 163 "Партнер Нефть" [13:18:04]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [13:18:04]line СНО: Общий режим [13:18:04]line Чек 59 20.10.2024 13:18 [13:18:04]line Смена: 526 ФФД: 1.0 [13:18:04]line ЗНМ: 0300000101 [13:18:04]line РНМ: 0000000000091770 [13:18:04]line Версия ККМ: 001 [13:18:04]line ФМ: 0000000000871749 [13:18:04]line ФД: 69769 [13:18:04]line ФПД: 143125737871766 [13:18:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T131804&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69769&fm=143125737871766&tin=02508201610067®Number=0000000000091770&sum=13000 [13:18:04]line 0 [13:18:04]OFD Sender: Processing packet 69769 [packets to send 32, broken 31] [13:18:04]ProducePacketName [13:18:04]name=ofd_packets/00069769 [13:18:04]OFD Sender: To server: pG, [13:18:04]CommunicateWithHost lk.salyk.kg:30040 [13:18:04]ConnectInit lk.salyk.kg [13:18:04]written 0, free lines is 4095 [13:18:04]Connected sock=10 [13:18:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 36 CB 1C 01 7D 5F 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 0C 03 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 89 10 01 00 35 04 06 00 82 2C 0E C3 99 96 7B 45 88 36 CE 1C DB F6 [13:18:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 7E 76 47 00 47 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 89 10 01 00 F4 03 04 00 8F A8 14 67 B6 04 01 00 00 44 B7 0A 50 8C A5 A6 B6 [13:18:05]CommunicateWithHost err = 0 [13:18:05]CheckOFDResponse [13:18:05]1017 (14) - 77093643461234 [13:18:05]1041 (16) - 0000000000871749 [13:18:05]1040 (4) - 69769 [13:18:05]1012 (4) - 20.10.2024 06:51 [13:18:05]1206 (1) - 0 [13:18:05]OFD Sender: Remove packet 69769 [13:18:05]ProducePacketName [13:18:05]name=ofd_packets/00069769 [13:18:05]NVStorageDeleteData [13:18:05]Write to MH i2c: 01 00 00 33 0F 42 [13:18:05]Write i2c OK [13:18:05]MH_I2C_Read... [13:18:05]Read from MH i2c: 01 [13:18:05]MH_I2C_Read... [13:18:05]Read from MH i2c: 01 07 00 [13:18:05]MH_I2C_Read... [13:18:05]Read from MH i2c: 01 07 00 33 0F 00 00 00 00 00 05 0D 5B [13:18:05]RasterBufferAndPrint [13:18:05]line [13:18:05]line [13:18:05]line [13:18:05]line [13:18:05]line [13:18:05]written 0, free lines is 3340 [13:18:05]MH_Cut [13:18:05]Write to MH i2c: D1 01 00 3A 0F 01 1B [13:18:05]Write i2c OK [13:18:05]MH_I2C_Read... [13:18:05]Read from MH i2c: D1 [13:18:05]MH_I2C_Read... [13:18:05]Read from MH i2c: D1 01 00 [13:18:05]MH_I2C_Read... [13:18:05]Read from MH i2c: D1 01 00 3A 0F 00 1A [13:18:05]Write to MH i2c: 01 00 00 3B 0F 4A [13:18:05]Write i2c OK [13:18:05]MH_I2C_Read... [13:18:05]OFD Sender: No OFD packet to send [13:18:05]*** Cut start [13:18:05]*** Partial cut [13:18:05]*** CUTSNS_PIN = 1 [13:18:06]*** CUTSNS_PIN = 0 [13:18:06]*** Brake cut motor [13:18:06]Read from MH i2c: 01 [13:18:06]MH_I2C_Read... [13:18:06]*** Stop cut motor [13:18:06]*** Cut end [13:18:06]Read from MH i2c: 01 07 00 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: 01 07 00 3B 0F 00 00 00 00 00 FF 0F 5F [13:18:06]process_action close_receipt done [13:18:06]requested_data is exist [13:18:06]produce_requested_data [13:18:06]requested_item fm.sn is exist - process it [13:18:06]wFMCommunicate request_size=4 [13:18:06]MH_SAM_APDU [13:18:06]CAPDU: 80 11 00 00 [13:18:06]Write to MH i2c: E2 08 00 3C 0F 80 11 00 00 00 00 00 00 C5 [13:18:06]Write i2c OK [13:18:06]MH_I2C_Read... [13:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:06]Read from MH i2c: E2 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: E2 17 00 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: E2 17 00 3C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 1C [13:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [13:18:06]wFMCommunicate OK [13:18:06]requested_item fd.num is exist - process it [13:18:06]SAM_PROTO_GetFieldsCounters [13:18:06]wFMCommunicate request_size=4 [13:18:06]MH_SAM_APDU [13:18:06]CAPDU: 80 13 00 00 [13:18:06]Write to MH i2c: E2 08 00 3D 0F 80 13 00 00 00 00 00 00 C8 [13:18:06]Write i2c OK [13:18:06]MH_I2C_Read... [13:18:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:06]Read from MH i2c: E2 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: E2 62 00 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: E2 62 00 3D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 89 10 01 00 0E 04 04 00 0E 02 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 47 [13:18: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 89 10 01 00 0E 04 04 00 0E 02 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 [13:18:06]wFMCommunicate OK [13:18:06]SAM_PROTO_GetFieldsCounters done [13:18:06]requested_item shift.num is exist - process it [13:18:06]requested_item shift.opened is exist - process it [13:18:06]req_shift_opened [13:18:06]FM_GetShiftState [13:18:06]SAM_PROTO_GetShiftState [13:18:06]wFMCommunicate request_size=4 [13:18:06]MH_SAM_APDU [13:18:06]CAPDU: 80 13 01 00 [13:18:06]Write to MH i2c: E2 08 00 3E 0F 80 13 01 00 00 00 00 00 CA [13:18:06]Write i2c OK [13:18:06]MH_I2C_Read... [13:18:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:07]Read from MH i2c: E2 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: E2 0E 00 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: E2 0E 00 3E 0F 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 5C [13:18:07]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [13:18:07]wFMCommunicate OK [13:18:07]SAM_PROTO_GetShiftState done [13:18:07]FM_GetShiftState done [13:18:07]req_shift_opened done [13:18:07]requested_item shift.open_date is exist - process it [13:18:07]req_shift_open_date [13:18:07]req_shift_open_date done [13:18:07]produce_requested_data done [13:18:07]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69769,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [13:18:07]process_action_free close_receipt [13:18:07]json_value_free [13:18:07]json_value_free done [13:18:07]process_json_proto returns [13:18:07]Send response to host [13:18:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69769,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [13:18:07]free response buf [13:18:07]execute_script done [13:18:07]execute_script returns [13:18:07]free content buf [13:18:07]Sock 7.Close socket [13:18:07]Sock 7.Thread stoped [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:51]accept exits with 9 [13:23:51]New connection [13:23:51]New thread 3066629476 created [13:23:51]Thread 3066486116 joined [13:23:51]Waiting for new connection... [13:23:51] Sock 9.Parse request [13:23:51]Sock 9.Check first char [13:23:51]Sock 9.First char is OK [13:23:51]request: POST /json_proto HTTP/1.0 [13:23:51]Method: POST [13:23:51]URL: /json_proto [13:23:51]Method is POST - this is cgi request [13:23:51]url: /json_proto [13:23:51]query_string will be loaded in cgi processing [13:23:51]execute_cgi json_proto POST (null) [13:23:51]execute_cgi path=json_proto method=POST [13:23:51]POST find Content-Length [13:23:51]Host: 172.17.52.196:8080 [13:23:51]Content-Length: 767 [13:23:51]Content-Type: application/json [13:23:51] [13:23:51]POST finish read [13:23:51]Found Content-Length = 767 [13:23:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1003908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:51]execute_script... [13:23: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)1003908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:51]POST & json_proto [13:23:51]process_json_proto [13:23:51]json parsed OK: [13:23:51]protocol is kg_v1.0 [13:23:51]action value=close_receipt [13:23:51]process_action close_receipt [13:23:51]cmd_close_receipt [13:23:51]MH_GetDate [13:23:51]Write to MH i2c: F0 00 00 3F 0F 3D [13:23:51]Write i2c OK [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: F0 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: F0 09 00 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: F0 09 00 3F 0F 00 69 04 15 67 60 05 E4 66 DE [13:23:51]GetLastDocTimeStamp 1729430284 [13:23:51]current date 1729430633 [13:23:51]FM_GetShiftState [13:23:51]SAM_PROTO_GetShiftState [13:23:51]wFMCommunicate request_size=4 [13:23:51]MH_SAM_APDU [13:23:51]CAPDU: 80 13 01 00 [13:23:51]Write to MH i2c: E2 08 00 40 0F 80 13 01 00 00 00 00 00 CC [13:23:51]Write i2c OK [13:23:51]MH_I2C_Read... [13:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:51]Read from MH i2c: E2 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: E2 0E 00 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: E2 0E 00 40 0F 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 5E [13:23:51]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [13:23:51]wFMCommunicate OK [13:23:51]SAM_PROTO_GetShiftState done [13:23:51]FM_GetShiftState done [13:23:51]opened in 1729384380 [13:23:51]opened+sec_in_day 1729470780 [13:23:51]quantity*price = 150037 [13:23:51]sum+1 = 150039 [13:23:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 60 20.10.2024 13:23 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69770 ФПД: 276874594973731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132353&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69770&fm=276874594973731&tin=02508201610067®Number=0000000000091770&sum=150038 [13:23:52]StoreToDocumentArchive [13:23:52]shift 526 fd 69770 [13:23:52]save to /storage/0526/doc_00069770 [13:23:52]save last doc name /storage/0526/doc_00069770 to /storage/kkm_last_doc_name [13:23:52]save OK [13:23:52]Clear old archive folders... [13:23:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:23:52]tlvbuf is 009C8700 [13:23:52]SAM_PROTO_ClearQueue [13:23:52]wFMCommunicate request_size=4 [13:23:52]MH_SAM_APDU [13:23:52]CAPDU: 80 09 00 00 [13:23:52]Write to MH i2c: E2 08 00 4D 0F 80 09 00 00 00 00 00 00 CE [13:23:52]Write i2c OK [13:23:52]MH_I2C_Read... [13:23:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:52]Read from MH i2c: E2 [13:23:52]MH_I2C_Read... [13:23:52]Read from MH i2c: E2 03 00 [13:23:52]MH_I2C_Read... [13:23:52]Read from MH i2c: E2 03 00 4D 0F 00 90 00 D0 [13:23:52]RAPDU: 90 00 [13:23:52]wFMCommunicate OK [13:23:52]SAM_PROTO_ClearQueue done [13:23:52]KKMCreateOFDPacket [13:23:52]OFDProtocolAddRootSTLVToBuf [13:23:52]FM_MakeSignedData [13:23:52]FM_MakeSignedData [13:23:52]SAM_PROTO_SignData [13:23:52]wFMCommunicate request_size=4 [13:23:52]MH_SAM_APDU [13:23:52]CAPDU: 80 0D 01 02 [13:23:52]Write to MH i2c: E2 08 00 4E 0F 80 0D 01 02 00 00 00 00 D6 [13:23:52]Write i2c OK [13:23:52]MH_I2C_Read... [13:23:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:52]Read from MH i2c: E2 [13:23:52]MH_I2C_Read... [13:23:52]Read from MH i2c: E2 03 00 [13:23:52]MH_I2C_Read... [13:23:52]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [13:23:52]RAPDU: 90 00 [13:23:52]wFMCommunicate OK [13:23:52]wFMCommunicate request_size=255 [13:23:52]MH_SAM_APDU [13:23:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 69 04 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8A 10 01 00 35 04 06 00 FB D0 E3 E1 [13:23:52]Write to MH i2c: E2 02 01 4F 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 69 04 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8A 10 01 00 35 04 06 00 FB D0 E3 E1 00 00 7F [13:23:52]Write i2c OK [13:23:52]MH_I2C_Read... [13:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:52]Read from MH i2c: E2 [13:23:52]MH_I2C_Read... [13:23:52]Read from MH i2c: E2 03 00 [13:23:52]MH_I2C_Read... [13:23:52]Read from MH i2c: E2 03 00 4F 0F 00 90 00 D2 [13:23:52]RAPDU: 90 00 [13:23:52]wFMCommunicate OK [13:23:52]wFMCommunicate request_size=7 [13:23:52]MH_SAM_APDU [13:23:52]CAPDU: 80 0D 02 02 02 78 23 [13:23:52]Write to MH i2c: E2 0A 00 50 0F 80 0D 02 02 02 00 78 23 00 00 78 [13:23:52]Write i2c OK [13:23:52]MH_I2C_Read... [13:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:53]Read from MH i2c: E2 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 03 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 03 00 50 0F 00 90 00 D3 [13:23:53]RAPDU: 90 00 [13:23:53]wFMCommunicate OK [13:23:53]wFMCommunicate request_size=4 [13:23:53]MH_SAM_APDU [13:23:53]CAPDU: 80 0D 03 02 [13:23:53]Write to MH i2c: E2 08 00 51 0F 80 0D 03 02 00 00 00 00 DB [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:53]Read from MH i2c: E2 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 0B 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 0B 00 51 0F 00 A3 8C 58 71 3C 4A 80 02 90 00 DC [13:23:53]RAPDU: A3 8C 58 71 3C 4A 80 02 90 00 [13:23:53]wFMCommunicate OK [13:23:53]SAM_PROTO_SignData done [13:23:53]FM_MakeSignedData done [13:23:53]CreateOFDProtocolMessage [13:23:53]wFMCommunicate request_size=4 [13:23:53]MH_SAM_APDU [13:23:53]CAPDU: 80 11 00 00 [13:23:53]Write to MH i2c: E2 08 00 52 0F 80 11 00 00 00 00 00 00 DB [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:53]Read from MH i2c: E2 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 17 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 17 00 52 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 32 [13:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [13:23:53]wFMCommunicate OK [13:23:53]CreateOFDProtocolMessage done [13:23:53]OFDSenderStorePacket 69770 [13:23:53]StoreOFDPacket docnum=69770 [13:23:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0C 01 00 00 8F 17 04 01 11 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 69 04 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8A 10 01 00 35 04 06 00 FB D0 E3 E1 78 23 A3 8C 58 71 3C 4A 80 02 [13:23:53]CheckFolder [13:23:53]dirname=/storage/ofd_packets [13:23:53]CheckFolder done [13:23:53]ProducePacketName [13:23:53]name=ofd_packets/00069770 [13:23:53]NVStorageSaveData ofd_packets/00069770 [13:23:53]File name is /storage/ofd_packets/00069770 [13:23:53]Write 298 bytes [13:23:53]NVStorageSaveData done [13:23:53]OFDSenderStorePacket done [13:23:53]KKMCreateOFDPacket done [13:23:53]NVStorageSaveData kkm_last_timestamp [13:23:53]File name is /storage/kkm_last_timestamp [13:23:53]Write 4 bytes [13:23:53]NVStorageSaveData done [13:23:53]ExternCall_PrintAddStr [13:23:53]wPrintStart [13:23:53]Write to MH i2c: 01 00 00 53 0F 62 [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: 01 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: 01 07 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: 01 07 00 53 0F 00 00 00 00 00 FF 0F 77 [13:23:53]RasterBufferAndPrint [13:23:53]line Счет N : (1)1003908 [13:23:53]line ИНН: 02508201610067 [13:23:53]line Контрольно-Кассовый Чек [13:23:53]line ПРОДАЖА [13:23:53]line ТРК (МРК, ГНК) : 11 [13:23:53]line Товар: 2710194210 [13:23:53]line ДТ-К-2 [13:23:53]line 19.690 * 76.20 [13:23:53]line = 1500.38 [13:23:53]line НДС 12% НСП 1% [13:23:53]line > о реализуемом товаре [13:23:53]line ИТОГО: 1500.38 [13:23:53]line НСП 1% : 13.28 [13:23:53]line НДС 12% : 159.33 [13:23:53]line Наличными: 0.00 [13:23:53]line Безнал.: 1500.38 [13:23:53]line Место: АЗС № 163 "Партнер Нефть" [13:23:53]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [13:23:53]line СНО: Общий режим [13:23:53]line Чек 60 20.10.2024 13:23 [13:23:53]line Смена: 526 ФФД: 1.0 [13:23:53]line ЗНМ: 0300000101 [13:23:53]line РНМ: 0000000000091770 [13:23:53]line Версия ККМ: 001 [13:23:53]line Платежная система: Mbank [13:23:53]line ФМ: 0000000000871749 [13:23:53]line ФД: 69770 [13:23:53]line ФПД: 276874594973731 [13:23:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132353&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69770&fm=276874594973731&tin=02508201610067®Number=0000000000091770&sum=150038 [13:23:53]OFD Sender: Processing packet 69770 [packets to send 32, broken 31] [13:23:53]ProducePacketName [13:23:53]name=ofd_packets/00069770 [13:23:53]OFD Sender: To server: pG, [13:23:53]CommunicateWithHost lk.salyk.kg:30040 [13:23:53]ConnectInit lk.salyk.kg [13:23:53]written 0, free lines is 4095 [13:23:53]Connected sock=10 [13:23:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0C 01 00 00 8F 17 04 01 11 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 69 04 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8A 10 01 00 35 04 06 00 FB D0 E3 E1 78 23 A3 8C 58 71 3C 4A 80 02 [13:23:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 43 EE 47 00 DE 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 31 37 34 39 10 04 04 00 8A 10 01 00 F4 03 04 00 EC A9 14 67 B6 04 01 00 00 53 D9 94 28 42 A8 6F 0D [13:23:53]CommunicateWithHost err = 0 [13:23:53]CheckOFDResponse [13:23:53]1017 (14) - 77093643461234 [13:23:53]1041 (16) - 0000000000871749 [13:23:53]1040 (4) - 69770 [13:23:53]1012 (4) - 20.10.2024 06:57 [13:23:53]1206 (1) - 0 [13:23:53]OFD Sender: Remove packet 69770 [13:23:53]ProducePacketName [13:23:53]name=ofd_packets/00069770 [13:23:53]NVStorageDeleteData [13:23:53]Write to MH i2c: 01 00 00 7C 0F 8B [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: 01 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: 01 07 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: 01 07 00 7C 0F 00 00 00 00 00 03 0D A2 [13:23:53]RasterBufferAndPrint [13:23:53]line [13:23:53]line [13:23:53]line [13:23:53]line [13:23:53]line [13:23:53]written 0, free lines is 3337 [13:23:53]MH_Cut [13:23:53]Write to MH i2c: D1 01 00 83 0F 01 64 [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: D1 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: D1 01 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: D1 01 00 83 0F 00 63 [13:23:53]Write to MH i2c: 01 00 00 84 0F 93 [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:54]OFD Sender: No OFD packet to send [13:23:54]*** Cut start [13:23:54]*** Partial cut [13:23:54]*** CUTSNS_PIN = 1 [13:23:54]*** CUTSNS_PIN = 0 [13:23:55]*** Brake cut motor [13:23:55]Read from MH i2c: 01 [13:23:55]MH_I2C_Read... [13:23:55]*** Stop cut motor [13:23:55]*** Cut end [13:23:55]Read from MH i2c: 01 07 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: 01 07 00 84 0F 00 00 00 00 00 FF 0F A8 [13:23:55]process_action close_receipt done [13:23:55]requested_data is exist [13:23:55]produce_requested_data [13:23:55]requested_item fm.sn is exist - process it [13:23:55]wFMCommunicate request_size=4 [13:23:55]MH_SAM_APDU [13:23:55]CAPDU: 80 11 00 00 [13:23:55]Write to MH i2c: E2 08 00 85 0F 80 11 00 00 00 00 00 00 0E [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:55]Read from MH i2c: E2 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 17 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 17 00 85 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 65 [13:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [13:23:55]wFMCommunicate OK [13:23:55]requested_item fd.num is exist - process it [13:23:55]SAM_PROTO_GetFieldsCounters [13:23:55]wFMCommunicate request_size=4 [13:23:55]MH_SAM_APDU [13:23:55]CAPDU: 80 13 00 00 [13:23:55]Write to MH i2c: E2 08 00 86 0F 80 13 00 00 00 00 00 00 11 [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:55]Read from MH i2c: E2 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 62 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 62 00 86 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 8A 10 01 00 0E 04 04 00 0E 02 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 94 [13:23: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 8A 10 01 00 0E 04 04 00 0E 02 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 [13:23:55]wFMCommunicate OK [13:23:55]SAM_PROTO_GetFieldsCounters done [13:23:55]requested_item shift.num is exist - process it [13:23:55]requested_item shift.opened is exist - process it [13:23:55]req_shift_opened [13:23:55]FM_GetShiftState [13:23:55]SAM_PROTO_GetShiftState [13:23:55]wFMCommunicate request_size=4 [13:23:55]MH_SAM_APDU [13:23:55]CAPDU: 80 13 01 00 [13:23:55]Write to MH i2c: E2 08 00 87 0F 80 13 01 00 00 00 00 00 13 [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:55]Read from MH i2c: E2 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 0E 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 0E 00 87 0F 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 A5 [13:23:55]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [13:23:55]wFMCommunicate OK [13:23:55]SAM_PROTO_GetShiftState done [13:23:55]FM_GetShiftState done [13:23:55]req_shift_opened done [13:23:55]requested_item shift.open_date is exist - process it [13:23:55]req_shift_open_date [13:23:55]req_shift_open_date done [13:23:55]produce_requested_data done [13:23:55]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69770,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [13:23:55]process_action_free close_receipt [13:23:55]json_value_free [13:23:55]json_value_free done [13:23:55]process_json_proto returns [13:23:55]Send response to host [13:23:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69770,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [13:23:55]free response buf [13:23:55]execute_script done [13:23:55]execute_script returns [13:23:55]free content buf [13:23:55]Sock 9.Close socket [13:23:55]Sock 9.Thread stoped [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:35]accept exits with 7 [13:24:35]New connection [13:24:35]New thread 3066486116 created [13:24:35]Thread 3066629476 joined [13:24:35]Waiting for new connection... [13:24:35] Sock 7.Parse request [13:24:35]Sock 7.Check first char [13:24:35]Sock 7.First char is OK [13:24:35]request: POST /json_proto HTTP/1.0 [13:24:35]Method: POST [13:24:35]URL: /json_proto [13:24:35]Method is POST - this is cgi request [13:24:35]url: /json_proto [13:24:35]query_string will be loaded in cgi processing [13:24:35]execute_cgi json_proto POST (null) [13:24:35]execute_cgi path=json_proto method=POST [13:24:35]POST find Content-Length [13:24:35]Host: 172.17.52.196:8080 [13:24:35]Content-Length: 683 [13:24:35]Content-Type: application/json [13:24:35] [13:24:35]POST finish read [13:24:35]Found Content-Length = 683 [13:24:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1003909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:35]execute_script... [13:24: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)1003909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:35]POST & json_proto [13:24:35]process_json_proto [13:24:35]json parsed OK: [13:24:35]protocol is kg_v1.0 [13:24:35]action value=close_receipt [13:24:35]process_action close_receipt [13:24:35]cmd_close_receipt [13:24:35]MH_GetDate [13:24:35]Write to MH i2c: F0 00 00 88 0F 86 [13:24:35]Write i2c OK [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: F0 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: F0 09 00 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: F0 09 00 88 0F 00 95 04 15 67 60 05 E4 66 53 [13:24:35]GetLastDocTimeStamp 1729430633 [13:24:35]current date 1729430677 [13:24:35]FM_GetShiftState [13:24:35]SAM_PROTO_GetShiftState [13:24:35]wFMCommunicate request_size=4 [13:24:35]MH_SAM_APDU [13:24:35]CAPDU: 80 13 01 00 [13:24:35]Write to MH i2c: E2 08 00 89 0F 80 13 01 00 00 00 00 00 15 [13:24:35]Write i2c OK [13:24:35]MH_I2C_Read... [13:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:35]Read from MH i2c: E2 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 0E 00 [13:24:35]MH_I2C_Read... [13:24:35]Read from MH i2c: E2 0E 00 89 0F 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 A7 [13:24:35]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [13:24:35]wFMCommunicate OK [13:24:35]SAM_PROTO_GetShiftState done [13:24:35]FM_GetShiftState done [13:24:35]opened in 1729384380 [13:24:35]opened+sec_in_day 1729470780 [13:24:35]quantity*price = 100015 [13:24:35]sum+1 = 100017 [13:24:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 61 20.10.2024 13:24 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69771 ФПД: 814234324220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132437&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69771&fm=814234324220&tin=02508201610067®Number=0000000000091770&sum=100000 [13:24:36]StoreToDocumentArchive [13:24:36]shift 526 fd 69771 [13:24:36]save to /storage/0526/doc_00069771 [13:24:36]save last doc name /storage/0526/doc_00069771 to /storage/kkm_last_doc_name [13:24:36]save OK [13:24:36]Clear old archive folders... [13:24:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:36]tlvbuf is 00964200 [13:24:36]SAM_PROTO_ClearQueue [13:24:36]wFMCommunicate request_size=4 [13:24:36]MH_SAM_APDU [13:24:36]CAPDU: 80 09 00 00 [13:24:36]Write to MH i2c: E2 08 00 96 0F 80 09 00 00 00 00 00 00 17 [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:36]Read from MH i2c: E2 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: E2 03 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: E2 03 00 96 0F 00 90 00 19 [13:24:36]RAPDU: 90 00 [13:24:36]wFMCommunicate OK [13:24:36]SAM_PROTO_ClearQueue done [13:24:36]KKMCreateOFDPacket [13:24:36]OFDProtocolAddRootSTLVToBuf [13:24:36]FM_MakeSignedData [13:24:36]FM_MakeSignedData [13:24:36]SAM_PROTO_SignData [13:24:36]wFMCommunicate request_size=4 [13:24:36]MH_SAM_APDU [13:24:36]CAPDU: 80 0D 01 02 [13:24:36]Write to MH i2c: E2 08 00 97 0F 80 0D 01 02 00 00 00 00 1F [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:37]Read from MH i2c: E2 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 03 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 03 00 97 0F 00 90 00 1A [13:24:37]RAPDU: 90 00 [13:24:37]wFMCommunicate OK [13:24:37]wFMCommunicate request_size=255 [13:24:37]MH_SAM_APDU [13:24:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 95 04 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8B 10 01 00 35 04 06 00 00 [13:24:37]Write to MH i2c: E2 02 01 98 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 95 04 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8B 10 01 00 35 04 06 00 00 00 00 A6 [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:37]Read from MH i2c: E2 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 03 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 03 00 98 0F 00 90 00 1B [13:24:37]RAPDU: 90 00 [13:24:37]wFMCommunicate OK [13:24:37]wFMCommunicate request_size=10 [13:24:37]MH_SAM_APDU [13:24:37]CAPDU: 80 0D 02 02 05 BD 94 25 CC FC [13:24:37]Write to MH i2c: E2 0D 00 99 0F 80 0D 02 02 05 00 BD 94 25 CC FC 00 00 6A [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:37]Read from MH i2c: E2 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 03 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 03 00 99 0F 00 90 00 1C [13:24:37]RAPDU: 90 00 [13:24:37]wFMCommunicate OK [13:24:37]wFMCommunicate request_size=4 [13:24:37]MH_SAM_APDU [13:24:37]CAPDU: 80 0D 03 02 [13:24:37]Write to MH i2c: E2 08 00 9A 0F 80 0D 03 02 00 00 00 00 24 [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:37]Read from MH i2c: E2 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 0B 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 0B 00 9A 0F 00 CF 60 C0 1F F7 4E A3 1E 90 00 39 [13:24:37]RAPDU: CF 60 C0 1F F7 4E A3 1E 90 00 [13:24:37]wFMCommunicate OK [13:24:37]SAM_PROTO_SignData done [13:24:37]FM_MakeSignedData done [13:24:37]CreateOFDProtocolMessage [13:24:37]wFMCommunicate request_size=4 [13:24:37]MH_SAM_APDU [13:24:37]CAPDU: 80 11 00 00 [13:24:37]Write to MH i2c: E2 08 00 9B 0F 80 11 00 00 00 00 00 00 24 [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:37]Read from MH i2c: E2 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 17 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 17 00 9B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 7B [13:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [13:24:37]wFMCommunicate OK [13:24:37]CreateOFDProtocolMessage done [13:24:37]OFDSenderStorePacket 69771 [13:24:37]StoreOFDPacket docnum=69771 [13:24:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0F 01 00 00 85 E4 07 01 85 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 95 04 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8B 10 01 00 35 04 06 00 00 BD 94 25 CC FC CF 60 C0 1F F7 4E A3 1E [13:24:37]CheckFolder [13:24:37]dirname=/storage/ofd_packets [13:24:37]CheckFolder done [13:24:37]ProducePacketName [13:24:37]name=ofd_packets/00069771 [13:24:37]NVStorageSaveData ofd_packets/00069771 [13:24:37]File name is /storage/ofd_packets/00069771 [13:24:37]Write 301 bytes [13:24:37]NVStorageSaveData done [13:24:37]OFDSenderStorePacket done [13:24:37]KKMCreateOFDPacket done [13:24:37]NVStorageSaveData kkm_last_timestamp [13:24:37]File name is /storage/kkm_last_timestamp [13:24:37]Write 4 bytes [13:24:37]NVStorageSaveData done [13:24:37]ExternCall_PrintAddStr [13:24:37]wPrintStart [13:24:37]Write to MH i2c: 01 00 00 9C 0F AB [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 9C 0F 00 00 00 00 00 FF 0F C0 [13:24:37]RasterBufferAndPrint [13:24:37]line Счет N : (1)1003909 [13:24:37]line ИНН: 02508201610067 [13:24:37]line Контрольно-Кассовый Чек [13:24:37]line ПРОДАЖА [13:24:37]line ТРК (МРК, ГНК) : 53 [13:24:37]line Товар: 2710124130 [13:24:37]line Аи-92-К-2 [13:24:37]line 14.950 * 66.90 [13:24:37]line = 1000.16 [13:24:37]line НДС 12% НСП 1% [13:24:37]line > о реализуемом товаре [13:24:37]line ОКРУГЛЕНИЕ: -0.16 [13:24:37]line ИТОГО: 1000.00 [13:24:37]line Внесено: 1000.00 [13:24:37]line СДАЧА: 0.00 [13:24:37]line НСП 1% : 8.85 [13:24:37]line НДС 12% : 106.21 [13:24:37]line Наличными: 1000.00 [13:24:37]line Безнал.: 0.00 [13:24:37]line Место: АЗС № 163 "Партнер Нефть" [13:24:37]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [13:24:37]line СНО: Общий режим [13:24:37]line Чек 61 20.10.2024 13:24 [13:24:37]line Смена: 526 ФФД: 1.0 [13:24:37]line ЗНМ: 0300000101 [13:24:37]line РНМ: 0000000000091770 [13:24:37]line Версия ККМ: 001 [13:24:37]line ФМ: 0000000000871749 [13:24:37]line ФД: 69771 [13:24:37]line ФПД: 814234324220 [13:24:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T132437&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69771&fm=814234324220&tin=02508201610067®Number=0000000000091770&sum=100000 [13:24:37]OFD Sender: Processing packet 69771 [packets to send 32, broken 31] [13:24:37]ProducePacketName [13:24:37]name=ofd_packets/00069771 [13:24:37]OFD Sender: To server: pG, [13:24:37]CommunicateWithHost lk.salyk.kg:30040 [13:24:37]ConnectInit lk.salyk.kg [13:24:37]written 0, free lines is 4095 [13:24:37]Connected sock=10 [13:24:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0F 01 00 00 85 E4 07 01 85 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 95 04 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8B 10 01 00 35 04 06 00 00 BD 94 25 CC FC CF 60 C0 1F F7 4E A3 1E [13:24:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 CD 2E 47 00 74 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8B 10 01 00 F4 03 04 00 18 AA 14 67 B6 04 01 00 00 0E 19 AA 61 D3 5B A1 8D [13:24:38]CommunicateWithHost err = 0 [13:24:38]CheckOFDResponse [13:24:38]1017 (14) - 77093643461234 [13:24:38]1041 (16) - 0000000000871749 [13:24:38]1040 (4) - 69771 [13:24:38]1012 (4) - 20.10.2024 06:58 [13:24:38]1206 (1) - 0 [13:24:38]OFD Sender: Remove packet 69771 [13:24:38]ProducePacketName [13:24:38]name=ofd_packets/00069771 [13:24:38]NVStorageDeleteData [13:24:38]Write to MH i2c: 01 00 00 C7 0F D6 [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: 01 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: 01 07 00 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: 01 07 00 C7 0F 00 00 00 00 00 E5 0C CE [13:24:38]RasterBufferAndPrint [13:24:38]line [13:24:38]line [13:24:38]line [13:24:38]line [13:24:38]line [13:24:38]written 0, free lines is 3307 [13:24:38]MH_Cut [13:24:38]Write to MH i2c: D1 01 00 CE 0F 01 AF [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: D1 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: D1 01 00 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: D1 01 00 CE 0F 00 AE [13:24:38]Write to MH i2c: 01 00 00 CF 0F DE [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:38]OFD Sender: No OFD packet to send [13:24:39]*** Cut start [13:24:39]*** Partial cut [13:24:39]*** CUTSNS_PIN = 1 [13:24:39]*** CUTSNS_PIN = 0 [13:24:39]*** Brake cut motor [13:24:39]Read from MH i2c: 01 [13:24:39]MH_I2C_Read... [13:24:39]*** Stop cut motor [13:24:39]*** Cut end [13:24:39]Read from MH i2c: 01 07 00 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: 01 07 00 CF 0F 00 00 00 00 00 FF 0F F3 [13:24:39]process_action close_receipt done [13:24:39]requested_data is exist [13:24:39]produce_requested_data [13:24:39]requested_item fm.sn is exist - process it [13:24:39]wFMCommunicate request_size=4 [13:24:39]MH_SAM_APDU [13:24:39]CAPDU: 80 11 00 00 [13:24:39]Write to MH i2c: E2 08 00 D0 0F 80 11 00 00 00 00 00 00 59 [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:39]Read from MH i2c: E2 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 17 00 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 17 00 D0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 B0 [13:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [13:24:39]wFMCommunicate OK [13:24:39]requested_item fd.num is exist - process it [13:24:39]SAM_PROTO_GetFieldsCounters [13:24:39]wFMCommunicate request_size=4 [13:24:39]MH_SAM_APDU [13:24:39]CAPDU: 80 13 00 00 [13:24:39]Write to MH i2c: E2 08 00 D1 0F 80 13 00 00 00 00 00 00 5C [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 62 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 62 00 D1 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 8B 10 01 00 0E 04 04 00 0E 02 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 E3 [13:24: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 8B 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:40]wFMCommunicate OK [13:24:40]SAM_PROTO_GetFieldsCounters done [13:24:40]requested_item shift.num is exist - process it [13:24:40]requested_item shift.opened is exist - process it [13:24:40]req_shift_opened [13:24:40]FM_GetShiftState [13:24:40]SAM_PROTO_GetShiftState [13:24:40]wFMCommunicate request_size=4 [13:24:40]MH_SAM_APDU [13:24:40]CAPDU: 80 13 01 00 [13:24:40]Write to MH i2c: E2 08 00 D2 0F 80 13 01 00 00 00 00 00 5E [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 0E 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 0E 00 D2 0F 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 F0 [13:24:40]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [13:24:40]wFMCommunicate OK [13:24:40]SAM_PROTO_GetShiftState done [13:24:40]FM_GetShiftState done [13:24:40]req_shift_opened done [13:24:40]requested_item shift.open_date is exist - process it [13:24:40]req_shift_open_date [13:24:40]req_shift_open_date done [13:24:40]produce_requested_data done [13:24:40]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69771,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [13:24:40]process_action_free close_receipt [13:24:40]json_value_free [13:24:40]json_value_free done [13:24:40]process_json_proto returns [13:24:40]Send response to host [13:24:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69771,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [13:24:40]free response buf [13:24:40]execute_script done [13:24:40]execute_script returns [13:24:40]free content buf [13:24:40]Sock 7.Close socket [13:24:40]Sock 7.Thread stoped [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:38]OFD Sender: No OFD packet to send [13:25:43]OFD Sender: No OFD packet to send [13:25:48]OFD Sender: No OFD packet to send [13:25:53]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:03]OFD Sender: No OFD packet to send [13:26:08]OFD Sender: No OFD packet to send [13:26:13]OFD Sender: No OFD packet to send [13:26:18]OFD Sender: No OFD packet to send [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [13:26:38]OFD Sender: No OFD packet to send [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:36]accept exits with 9 [13:37:36]New connection [13:37:36]New thread 3066629476 created [13:37:36]Thread 3066486116 joined [13:37:36]Waiting for new connection... [13:37:36] Sock 9.Parse request [13:37:36]Sock 9.Check first char [13:37:36]Sock 9.First char is OK [13:37:36]request: POST /json_proto HTTP/1.0 [13:37:36]Method: POST [13:37:36]URL: /json_proto [13:37:36]Method is POST - this is cgi request [13:37:36]url: /json_proto [13:37:36]query_string will be loaded in cgi processing [13:37:36]execute_cgi json_proto POST (null) [13:37:36]execute_cgi path=json_proto method=POST [13:37:36]POST find Content-Length [13:37:36]Host: 172.17.52.196:8080 [13:37:36]Content-Length: 644 [13:37:36]Content-Type: application/json [13:37:36] [13:37:36]POST finish read [13:37:36]Found Content-Length = 644 [13:37:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127170", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:36]execute_script... [13:37:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127170", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:36]POST & json_proto [13:37:36]process_json_proto [13:37:36]json parsed OK: [13:37:36]protocol is kg_v1.0 [13:37:36]action value=close_receipt [13:37:36]process_action close_receipt [13:37:36]cmd_close_receipt [13:37:36]MH_GetDate [13:37:36]Write to MH i2c: F0 00 00 D3 0F D1 [13:37:36]Write i2c OK [13:37:36]MH_I2C_Read... [13:37:36]Read from MH i2c: F0 [13:37:36]MH_I2C_Read... [13:37:36]Read from MH i2c: F0 09 00 [13:37:36]MH_I2C_Read... [13:37:36]Read from MH i2c: F0 09 00 D3 0F 00 A2 07 15 67 60 05 E4 66 AE [13:37:36]GetLastDocTimeStamp 1729430677 [13:37:36]current date 1729431458 [13:37:36]FM_GetShiftState [13:37:36]SAM_PROTO_GetShiftState [13:37:36]wFMCommunicate request_size=4 [13:37:36]MH_SAM_APDU [13:37:36]CAPDU: 80 13 01 00 [13:37:36]Write to MH i2c: E2 08 00 D4 0F 80 13 01 00 00 00 00 00 60 [13:37:36]Write i2c OK [13:37:36]MH_I2C_Read... [13:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:36]Read from MH i2c: E2 [13:37:36]MH_I2C_Read... [13:37:36]Read from MH i2c: E2 0E 00 [13:37:36]MH_I2C_Read... [13:37:36]Read from MH i2c: E2 0E 00 D4 0F 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 F2 [13:37:36]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [13:37:36]wFMCommunicate OK [13:37:36]SAM_PROTO_GetShiftState done [13:37:36]FM_GetShiftState done [13:37:36]opened in 1729384380 [13:37:36]opened+sec_in_day 1729470780 [13:37:36]quantity*price = 3500 [13:37:36]sum+1 = 3501 [13:37:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 62 20.10.2024 13:37 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69772 ФПД: 163611752208669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133738&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69772&fm=163611752208669&tin=02508201610067®Number=0000000000091770&sum=3500 0 [13:37:37]StoreToDocumentArchive [13:37:37]shift 526 fd 69772 [13:37:37]save to /storage/0526/doc_00069772 [13:37:37]save last doc name /storage/0526/doc_00069772 to /storage/kkm_last_doc_name [13:37:37]save OK [13:37:37]Clear old archive folders... [13:37:37]ProcessDocumentItem done err = 0, tmpTLVsize=275 [13:37:37]tlvbuf is 00A0A3B0 [13:37:37]SAM_PROTO_ClearQueue [13:37:37]wFMCommunicate request_size=4 [13:37:37]MH_SAM_APDU [13:37:37]CAPDU: 80 09 00 00 [13:37:37]Write to MH i2c: E2 08 00 E1 0F 80 09 00 00 00 00 00 00 62 [13:37:37]Write i2c OK [13:37:37]MH_I2C_Read... [13:37:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:37]Read from MH i2c: E2 [13:37:37]MH_I2C_Read... [13:37:37]Read from MH i2c: E2 03 00 [13:37:37]MH_I2C_Read... [13:37:37]Read from MH i2c: E2 03 00 E1 0F 00 90 00 64 [13:37:37]RAPDU: 90 00 [13:37:37]wFMCommunicate OK [13:37:37]SAM_PROTO_ClearQueue done [13:37:37]KKMCreateOFDPacket [13:37:37]OFDProtocolAddRootSTLVToBuf [13:37:37]FM_MakeSignedData [13:37:37]FM_MakeSignedData [13:37:37]SAM_PROTO_SignData [13:37:37]wFMCommunicate request_size=4 [13:37:37]MH_SAM_APDU [13:37:37]CAPDU: 80 0D 01 02 [13:37:37]Write to MH i2c: E2 08 00 E2 0F 80 0D 01 02 00 00 00 00 6A [13:37:37]Write i2c OK [13:37:37]MH_I2C_Read... [13:37:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:37]Read from MH i2c: E2 [13:37:37]MH_I2C_Read... [13:37:37]Read from MH i2c: E2 03 00 [13:37:37]MH_I2C_Read... [13:37:37]Read from MH i2c: E2 03 00 E2 0F 00 90 00 65 [13:37:37]RAPDU: 90 00 [13:37:37]wFMCommunicate OK [13:37:37]wFMCommunicate request_size=255 [13:37:37]MH_SAM_APDU [13:37:37]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 A2 07 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 [13:37:37]Write to MH i2c: E2 02 01 E3 0F 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 A2 07 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 00 00 C4 [13:37:37]Write i2c OK [13:37:37]MH_I2C_Read... [13:37:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:38]Read from MH i2c: E2 [13:37:38]MH_I2C_Read... [13:37:38]Read from MH i2c: E2 03 00 [13:37:38]MH_I2C_Read... [13:37:38]Read from MH i2c: E2 03 00 E3 0F 00 90 00 66 [13:37:38]RAPDU: 90 00 [13:37:38]wFMCommunicate OK [13:37:38]wFMCommunicate request_size=34 [13:37:38]MH_SAM_APDU [13:37:38]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8C 10 01 00 35 04 06 00 94 CD D4 5F 19 1D [13:37:38]Write to MH i2c: E2 25 00 E4 0F 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8C 10 01 00 35 04 06 00 94 CD D4 5F 19 1D 00 00 99 [13:37:38]Write i2c OK [13:37:38]MH_I2C_Read... [13:37:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:38]Read from MH i2c: E2 [13:37:38]MH_I2C_Read... [13:37:38]Read from MH i2c: E2 03 00 [13:37:38]MH_I2C_Read... [13:37:38]Read from MH i2c: E2 03 00 E4 0F 00 90 00 67 [13:37:38]RAPDU: 90 00 [13:37:38]wFMCommunicate OK [13:37:38]wFMCommunicate request_size=4 [13:37:38]MH_SAM_APDU [13:37:38]CAPDU: 80 0D 03 02 [13:37:38]Write to MH i2c: E2 08 00 E5 0F 80 0D 03 02 00 00 00 00 6F [13:37:38]Write i2c OK [13:37:38]MH_I2C_Read... [13:37:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:38]Read from MH i2c: E2 [13:37:38]MH_I2C_Read... [13:37:38]Read from MH i2c: E2 0B 00 [13:37:38]MH_I2C_Read... [13:37:38]Read from MH i2c: E2 0B 00 E5 0F 00 FF 20 78 E1 4B ED 9B 45 90 00 00 [13:37:38]RAPDU: FF 20 78 E1 4B ED 9B 45 90 00 [13:37:38]wFMCommunicate OK [13:37:38]SAM_PROTO_SignData done [13:37:38]FM_MakeSignedData done [13:37:38]CreateOFDProtocolMessage [13:37:38]wFMCommunicate request_size=4 [13:37:38]MH_SAM_APDU [13:37:38]CAPDU: 80 11 00 00 [13:37:38]Write to MH i2c: E2 08 00 E6 0F 80 11 00 00 00 00 00 00 6F [13:37:38]Write i2c OK [13:37:38]MH_I2C_Read... [13:37:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:38]Read from MH i2c: E2 [13:37:38]MH_I2C_Read... [13:37:38]Read from MH i2c: E2 17 00 [13:37:38]MH_I2C_Read... [13:37:38]Read from MH i2c: E2 17 00 E6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 C6 [13:37:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [13:37:38]wFMCommunicate OK [13:37:38]CreateOFDProtocolMessage done [13:37:38]OFDSenderStorePacket 69772 [13:37:38]StoreOFDPacket docnum=69772 [13:37:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 71 10 1F 01 38 BB 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 A2 07 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8C 10 01 00 35 04 06 00 94 CD D4 5F 19 1D FF 20 78 E1 4B ED 9B 45 [13:37:38]CheckFolder [13:37:38]dirname=/storage/ofd_packets [13:37:38]CheckFolder done [13:37:38]ProducePacketName [13:37:38]name=ofd_packets/00069772 [13:37:38]NVStorageSaveData ofd_packets/00069772 [13:37:38]File name is /storage/ofd_packets/00069772 [13:37:38]Write 325 bytes [13:37:38]NVStorageSaveData done [13:37:38]OFDSenderStorePacket done [13:37:38]KKMCreateOFDPacket done [13:37:38]NVStorageSaveData kkm_last_timestamp [13:37:38]File name is /storage/kkm_last_timestamp [13:37:38]Write 4 bytes [13:37:38]NVStorageSaveData done [13:37:38]ExternCall_PrintAddStr [13:37:38]wPrintStart [13:37:38]Write to MH i2c: 01 00 00 E7 0F F6 [13:37:38]Write i2c OK [13:37:38]MH_I2C_Read... [13:37:38]Read from MH i2c: 01 [13:37:38]MH_I2C_Read... [13:37:38]Read from MH i2c: 01 07 00 [13:37:38]MH_I2C_Read... [13:37:38]Read from MH i2c: 01 07 00 E7 0F 00 00 00 00 00 FF 0F 0B [13:37:38]RasterBufferAndPrint [13:37:38]line Счет N : (3)127170 [13:37:38]line ИНН: 02508201610067 [13:37:38]line Контрольно-Кассовый Чек [13:37:38]line ПРОДАЖА [13:37:38]line Товар: 4700000310326 [13:37:38]line Вода Адыгене 1л б/г [13:37:38]line 1.000 * 35.00 [13:37:38]line = 35.00 [13:37:38]line НДС 12% НСП 1% [13:37:38]line > о реализуемом товаре [13:37:38]line ИТОГО: 35.00 [13:37:38]line НСП 1% : 0.31 [13:37:38]line НДС 12% : 3.72 [13:37:38]line Наличными: 35.00 [13:37:38]line Безнал.: 0.00 [13:37:38]line Место: АЗС № 163 "Партнер Нефть" [13:37:38]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [13:37:38]line СНО: Общий режим [13:37:38]line Чек 62 20.10.2024 13:37 [13:37:38]line Смена: 526 ФФД: 1.0 [13:37:38]line ЗНМ: 0300000101 [13:37:38]line РНМ: 0000000000091770 [13:37:38]line Версия ККМ: 001 [13:37:38]line ФМ: 0000000000871749 [13:37:38]line ФД: 69772 [13:37:38]line ФПД: 163611752208669 [13:37:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T133738&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69772&fm=163611752208669&tin=02508201610067®Number=0000000000091770&sum=3500 [13:37:38]line 0 [13:37:38]OFD Sender: Processing packet 69772 [packets to send 32, broken 31] [13:37:38]ProducePacketName [13:37:38]name=ofd_packets/00069772 [13:37:38]OFD Sender: To server: pG, [13:37:38]CommunicateWithHost lk.salyk.kg:30040 [13:37:38]ConnectInit lk.salyk.kg [13:37:38]written 0, free lines is 4095 [13:37:38]Connected sock=7 [13:37:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 71 10 1F 01 38 BB 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 A2 07 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8C 10 01 00 35 04 06 00 94 CD D4 5F 19 1D FF 20 78 E1 4B ED 9B 45 [13:37:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 78 5B 47 00 49 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 31 37 34 39 10 04 04 00 8C 10 01 00 F4 03 04 00 25 AD 14 67 B6 04 01 00 00 FA 77 2D 03 42 18 E9 A6 [13:37:39]CommunicateWithHost err = 0 [13:37:39]CheckOFDResponse [13:37:39]1017 (14) - 77093643461234 [13:37:39]1041 (16) - 0000000000871749 [13:37:39]1040 (4) - 69772 [13:37:39]1012 (4) - 20.10.2024 07:11 [13:37:39]1206 (1) - 0 [13:37:39]OFD Sender: Remove packet 69772 [13:37:39]ProducePacketName [13:37:39]name=ofd_packets/00069772 [13:37:39]NVStorageDeleteData [13:37:39]Write to MH i2c: 01 00 00 0F 10 1F [13:37:39]Write i2c OK [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: 01 [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: 01 07 00 [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: 01 07 00 0F 10 00 00 00 00 00 05 0D 38 [13:37:39]RasterBufferAndPrint [13:37:39]line [13:37:39]line [13:37:39]line [13:37:39]line [13:37:39]line [13:37:39]written 0, free lines is 3340 [13:37:39]MH_Cut [13:37:39]Write to MH i2c: D1 01 00 16 10 01 F8 [13:37:39]Write i2c OK [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: D1 [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: D1 01 00 [13:37:39]MH_I2C_Read... [13:37:39]Read from MH i2c: D1 01 00 16 10 00 F7 [13:37:39]Write to MH i2c: 01 00 00 17 10 27 [13:37:39]Write i2c OK [13:37:39]MH_I2C_Read... [13:37:39]OFD Sender: No OFD packet to send [13:37:39]*** Cut start [13:37:39]*** Partial cut [13:37:39]*** CUTSNS_PIN = 1 [13:37:40]*** CUTSNS_PIN = 0 [13:37:40]*** Brake cut motor [13:37:40]Read from MH i2c: 01 [13:37:40]MH_I2C_Read... [13:37:40]*** Stop cut motor [13:37:40]*** Cut end [13:37:40]Read from MH i2c: 01 07 00 [13:37:40]MH_I2C_Read... [13:37:40]Read from MH i2c: 01 07 00 17 10 00 00 00 00 00 FF 0F 3C [13:37:40]process_action close_receipt done [13:37:40]requested_data is exist [13:37:40]produce_requested_data [13:37:40]requested_item fm.sn is exist - process it [13:37:40]wFMCommunicate request_size=4 [13:37:40]MH_SAM_APDU [13:37:40]CAPDU: 80 11 00 00 [13:37:40]Write to MH i2c: E2 08 00 18 10 80 11 00 00 00 00 00 00 A2 [13:37:40]Write i2c OK [13:37:40]MH_I2C_Read... [13:37:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:40]Read from MH i2c: E2 [13:37:40]MH_I2C_Read... [13:37:40]Read from MH i2c: E2 17 00 [13:37:40]MH_I2C_Read... [13:37:40]Read from MH i2c: E2 17 00 18 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 F9 [13:37:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [13:37:40]wFMCommunicate OK [13:37:40]requested_item fd.num is exist - process it [13:37:40]SAM_PROTO_GetFieldsCounters [13:37:40]wFMCommunicate request_size=4 [13:37:40]MH_SAM_APDU [13:37:40]CAPDU: 80 13 00 00 [13:37:40]Write to MH i2c: E2 08 00 19 10 80 13 00 00 00 00 00 00 A5 [13:37:40]Write i2c OK [13:37:40]MH_I2C_Read... [13:37:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:40]Read from MH i2c: E2 [13:37:40]MH_I2C_Read... [13:37:40]Read from MH i2c: E2 62 00 [13:37:40]MH_I2C_Read... [13:37:40]Read from MH i2c: E2 62 00 19 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 8C 10 01 00 0E 04 04 00 0E 02 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 30 [13:37: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 8C 10 01 00 0E 04 04 00 0E 02 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 [13:37:40]wFMCommunicate OK [13:37:40]SAM_PROTO_GetFieldsCounters done [13:37:40]requested_item shift.num is exist - process it [13:37:40]requested_item shift.opened is exist - process it [13:37:40]req_shift_opened [13:37:40]FM_GetShiftState [13:37:40]SAM_PROTO_GetShiftState [13:37:40]wFMCommunicate request_size=4 [13:37:40]MH_SAM_APDU [13:37:40]CAPDU: 80 13 01 00 [13:37:40]Write to MH i2c: E2 08 00 1A 10 80 13 01 00 00 00 00 00 A7 [13:37:40]Write i2c OK [13:37:40]MH_I2C_Read... [13:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:41]Read from MH i2c: E2 [13:37:41]MH_I2C_Read... [13:37:41]Read from MH i2c: E2 0E 00 [13:37:41]MH_I2C_Read... [13:37:41]Read from MH i2c: E2 0E 00 1A 10 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 39 [13:37:41]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [13:37:41]wFMCommunicate OK [13:37:41]SAM_PROTO_GetShiftState done [13:37:41]FM_GetShiftState done [13:37:41]req_shift_opened done [13:37:41]requested_item shift.open_date is exist - process it [13:37:41]req_shift_open_date [13:37:41]req_shift_open_date done [13:37:41]produce_requested_data done [13:37:41]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69772,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [13:37:41]process_action_free close_receipt [13:37:41]json_value_free [13:37:41]json_value_free done [13:37:41]process_json_proto returns [13:37:41]Send response to host [13:37:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69772,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [13:37:41]free response buf [13:37:41]execute_script done [13:37:41]execute_script returns [13:37:41]free content buf [13:37:41]Sock 9.Close socket [13:37:41]Sock 9.Thread stoped [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:51:57]accept exits with 10 [13:51:57]New connection [13:51:57]New thread 3066486116 created [13:51:57]Thread 3066629476 joined [13:51:57]Waiting for new connection... [13:51:57] Sock 10.Parse request [13:51:57]Sock 10.Check first char [13:51:57]Sock 10.First char is OK [13:51:57]request: POST /json_proto HTTP/1.0 [13:51:57]Method: POST [13:51:57]URL: /json_proto [13:51:57]Method is POST - this is cgi request [13:51:57]url: /json_proto [13:51:57]query_string will be loaded in cgi processing [13:51:57]execute_cgi json_proto POST (null) [13:51:57]execute_cgi path=json_proto method=POST [13:51:57]POST find Content-Length [13:51:57]Host: 172.17.52.196:8080 [13:51:57]Content-Length: 615 [13:51:57]Content-Type: application/json [13:51:57] [13:51:57]POST finish read [13:51:57]Found Content-Length = 615 [13:51:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127171", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:57]execute_script... [13:51: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 : (3)127171", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:57]POST & json_proto [13:51:57]process_json_proto [13:51:57]json parsed OK: [13:51:57]protocol is kg_v1.0 [13:51:57]action value=close_receipt [13:51:57]process_action close_receipt [13:51:57]cmd_close_receipt [13:51:57]MH_GetDate [13:51:57]Write to MH i2c: F0 00 00 1B 10 1A [13:51:57]Write i2c OK [13:51:57]MH_I2C_Read... [13:51:57]Read from MH i2c: F0 [13:51:57]MH_I2C_Read... [13:51:57]Read from MH i2c: F0 09 00 [13:51:57]MH_I2C_Read... [13:51:57]Read from MH i2c: F0 09 00 1B 10 00 FF 0A 15 67 60 05 E4 66 57 [13:51:57]GetLastDocTimeStamp 1729431458 [13:51:57]current date 1729432319 [13:51:57]FM_GetShiftState [13:51:57]SAM_PROTO_GetShiftState [13:51:57]wFMCommunicate request_size=4 [13:51:57]MH_SAM_APDU [13:51:57]CAPDU: 80 13 01 00 [13:51:57]Write to MH i2c: E2 08 00 1C 10 80 13 01 00 00 00 00 00 A9 [13:51:57]Write i2c OK [13:51:57]MH_I2C_Read... [13:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:57]Read from MH i2c: E2 [13:51:57]MH_I2C_Read... [13:51:57]Read from MH i2c: E2 0E 00 [13:51:57]MH_I2C_Read... [13:51:57]Read from MH i2c: E2 0E 00 1C 10 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 3B [13:51:57]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [13:51:57]wFMCommunicate OK [13:51:57]SAM_PROTO_GetShiftState done [13:51:57]FM_GetShiftState done [13:51:57]opened in 1729384380 [13:51:57]opened+sec_in_day 1729470780 [13:51:57]quantity*price = 16000 [13:51:57]sum+1 = 16001 [13:51:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 63 20.10.2024 13:51 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69773 ФПД: 95670714261766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135159&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69773&fm=95670714261766&tin=02508201610067®Number=0000000000091770&sum=16000 0 [13:51:58]StoreToDocumentArchive [13:51:58]shift 526 fd 69773 [13:51:58]save to /storage/0526/doc_00069773 [13:51:58]save last doc name /storage/0526/doc_00069773 to /storage/kkm_last_doc_name [13:51:58]save OK [13:51:58]Clear old archive folders... [13:51:58]ProcessDocumentItem done err = 0, tmpTLVsize=268 [13:51:58]tlvbuf is 00960DD0 [13:51:58]SAM_PROTO_ClearQueue [13:51:58]wFMCommunicate request_size=4 [13:51:58]MH_SAM_APDU [13:51:58]CAPDU: 80 09 00 00 [13:51:58]Write to MH i2c: E2 08 00 29 10 80 09 00 00 00 00 00 00 AB [13:51:58]Write i2c OK [13:51:58]MH_I2C_Read... [13:51:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:58]Read from MH i2c: E2 [13:51:58]MH_I2C_Read... [13:51:58]Read from MH i2c: E2 03 00 [13:51:58]MH_I2C_Read... [13:51:58]Read from MH i2c: E2 03 00 29 10 00 90 00 AD [13:51:58]RAPDU: 90 00 [13:51:58]wFMCommunicate OK [13:51:58]SAM_PROTO_ClearQueue done [13:51:58]KKMCreateOFDPacket [13:51:58]OFDProtocolAddRootSTLVToBuf [13:51:58]FM_MakeSignedData [13:51:58]FM_MakeSignedData [13:51:58]SAM_PROTO_SignData [13:51:58]wFMCommunicate request_size=4 [13:51:58]MH_SAM_APDU [13:51:58]CAPDU: 80 0D 01 02 [13:51:58]Write to MH i2c: E2 08 00 2A 10 80 0D 01 02 00 00 00 00 B3 [13:51:58]Write i2c OK [13:51:58]MH_I2C_Read... [13:51:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:58]Read from MH i2c: E2 [13:51:58]MH_I2C_Read... [13:51:58]Read from MH i2c: E2 03 00 [13:51:58]MH_I2C_Read... [13:51:58]Read from MH i2c: E2 03 00 2A 10 00 90 00 AE [13:51:58]RAPDU: 90 00 [13:51:58]wFMCommunicate OK [13:51:58]wFMCommunicate request_size=255 [13:51:58]MH_SAM_APDU [13:51:58]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 FF 0A 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [13:51:58]Write to MH i2c: E2 02 01 2B 10 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 FF 0A 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 3D [13:51:58]Write i2c OK [13:51:58]MH_I2C_Read... [13:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:59]Read from MH i2c: E2 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 03 00 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 03 00 2B 10 00 90 00 AF [13:51:59]RAPDU: 90 00 [13:51:59]wFMCommunicate OK [13:51:59]wFMCommunicate request_size=27 [13:51:59]MH_SAM_APDU [13:51:59]CAPDU: 80 0D 02 02 16 31 37 34 39 10 04 04 00 8D 10 01 00 35 04 06 00 57 03 12 F0 61 06 [13:51:59]Write to MH i2c: E2 1E 00 2C 10 80 0D 02 02 16 00 31 37 34 39 10 04 04 00 8D 10 01 00 35 04 06 00 57 03 12 F0 61 06 00 00 6F [13:51:59]Write i2c OK [13:51:59]MH_I2C_Read... [13:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:59]Read from MH i2c: E2 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 03 00 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 03 00 2C 10 00 90 00 B0 [13:51:59]RAPDU: 90 00 [13:51:59]wFMCommunicate OK [13:51:59]wFMCommunicate request_size=4 [13:51:59]MH_SAM_APDU [13:51:59]CAPDU: 80 0D 03 02 [13:51:59]Write to MH i2c: E2 08 00 2D 10 80 0D 03 02 00 00 00 00 B8 [13:51:59]Write i2c OK [13:51:59]MH_I2C_Read... [13:51:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:59]Read from MH i2c: E2 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 0B 00 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 0B 00 2D 10 00 54 2B 91 9D 2C 7E A7 CC 90 00 83 [13:51:59]RAPDU: 54 2B 91 9D 2C 7E A7 CC 90 00 [13:51:59]wFMCommunicate OK [13:51:59]SAM_PROTO_SignData done [13:51:59]FM_MakeSignedData done [13:51:59]CreateOFDProtocolMessage [13:51:59]wFMCommunicate request_size=4 [13:51:59]MH_SAM_APDU [13:51:59]CAPDU: 80 11 00 00 [13:51:59]Write to MH i2c: E2 08 00 2E 10 80 11 00 00 00 00 00 00 B8 [13:51:59]Write i2c OK [13:51:59]MH_I2C_Read... [13:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:59]Read from MH i2c: E2 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 17 00 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 17 00 2E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 0F [13:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [13:51:59]wFMCommunicate OK [13:51:59]CreateOFDProtocolMessage done [13:51:59]OFDSenderStorePacket 69773 [13:51:59]StoreOFDPacket docnum=69773 [13:51:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 20 01 00 00 F0 EB 18 01 43 15 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 FF 0A 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8D 10 01 00 35 04 06 00 57 03 12 F0 61 06 54 2B 91 9D 2C 7E A7 CC [13:51:59]CheckFolder [13:51:59]dirname=/storage/ofd_packets [13:51:59]CheckFolder done [13:51:59]ProducePacketName [13:51:59]name=ofd_packets/00069773 [13:51:59]NVStorageSaveData ofd_packets/00069773 [13:51:59]File name is /storage/ofd_packets/00069773 [13:51:59]Write 318 bytes [13:51:59]NVStorageSaveData done [13:51:59]OFDSenderStorePacket done [13:51:59]KKMCreateOFDPacket done [13:51:59]NVStorageSaveData kkm_last_timestamp [13:51:59]File name is /storage/kkm_last_timestamp [13:51:59]Write 4 bytes [13:51:59]NVStorageSaveData done [13:51:59]ExternCall_PrintAddStr [13:51:59]wPrintStart [13:51:59]Write to MH i2c: 01 00 00 2F 10 3F [13:51:59]Write i2c OK [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: 01 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: 01 07 00 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: 01 07 00 2F 10 00 00 00 00 00 FF 0F 54 [13:51:59]RasterBufferAndPrint [13:51:59]line Счет N : (3)127171 [13:51:59]line ИНН: 02508201610067 [13:51:59]line Контрольно-Кассовый Чек [13:51:59]line ПРОДАЖА [13:51:59]line Товар: 4870001570057 [13:51:59]line Напиток Pepsi 0,5л [13:51:59]line 2.000 * 80.00 [13:51:59]line = 160.00 [13:51:59]line НДС 12% НСП 1% [13:51:59]line > о реализуемом товаре [13:51:59]line ИТОГО: 160.00 [13:51:59]line НСП 1% : 1.42 [13:51:59]line НДС 12% : 16.99 [13:51:59]line Наличными: 160.00 [13:51:59]line Безнал.: 0.00 [13:51:59]line Место: АЗС № 163 "Партнер Нефть" [13:51:59]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [13:51:59]line СНО: Общий режим [13:51:59]line Чек 63 20.10.2024 13:51 [13:51:59]line Смена: 526 ФФД: 1.0 [13:51:59]line ЗНМ: 0300000101 [13:51:59]line РНМ: 0000000000091770 [13:51:59]line Версия ККМ: 001 [13:51:59]line ФМ: 0000000000871749 [13:51:59]line ФД: 69773 [13:51:59]line ФПД: 95670714261766 [13:51:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T135159&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69773&fm=95670714261766&tin=02508201610067®Number=0000000000091770&sum=16000 [13:51:59]line 0 [13:51:59]OFD Sender: Processing packet 69773 [packets to send 32, broken 31] [13:51:59]ProducePacketName [13:51:59]name=ofd_packets/00069773 [13:51:59]OFD Sender: To server: pG, [13:51:59]CommunicateWithHost lk.salyk.kg:30040 [13:51:59]ConnectInit lk.salyk.kg [13:51:59]written 0, free lines is 4095 [13:51:59]Connected sock=9 [13:51:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 20 01 00 00 F0 EB 18 01 43 15 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 FF 0A 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8D 10 01 00 35 04 06 00 57 03 12 F0 61 06 54 2B 91 9D 2C 7E A7 CC [13:51:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 FF C7 47 00 77 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 31 37 34 39 10 04 04 00 8D 10 01 00 F4 03 04 00 82 B0 14 67 B6 04 01 00 00 15 C4 3A DA F7 DB 71 D1 [13:51:59]CommunicateWithHost err = 0 [13:51:59]CheckOFDResponse [13:51:59]1017 (14) - 77093643461234 [13:51:59]1041 (16) - 0000000000871749 [13:51:59]1040 (4) - 69773 [13:51:59]1012 (4) - 20.10.2024 07:25 [13:51:59]1206 (1) - 0 [13:51:59]OFD Sender: Remove packet 69773 [13:51:59]ProducePacketName [13:51:59]name=ofd_packets/00069773 [13:51:59]NVStorageDeleteData [13:52:00]Write to MH i2c: 01 00 00 57 10 67 [13:52:00]Write i2c OK [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: 01 [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: 01 07 00 [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: 01 07 00 57 10 00 00 00 00 00 03 0D 7E [13:52:00]RasterBufferAndPrint [13:52:00]line [13:52:00]line [13:52:00]line [13:52:00]line [13:52:00]line [13:52:00]written 0, free lines is 3337 [13:52:00]MH_Cut [13:52:00]Write to MH i2c: D1 01 00 5E 10 01 40 [13:52:00]Write i2c OK [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: D1 [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: D1 01 00 [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: D1 01 00 5E 10 00 3F [13:52:00]Write to MH i2c: 01 00 00 5F 10 6F [13:52:00]Write i2c OK [13:52:00]MH_I2C_Read... [13:52:00]OFD Sender: No OFD packet to send [13:52:00]*** Cut start [13:52:00]*** Partial cut [13:52:00]*** CUTSNS_PIN = 1 [13:52:00]*** CUTSNS_PIN = 0 [13:52:01]*** Brake cut motor [13:52:01]Read from MH i2c: 01 [13:52:01]MH_I2C_Read... [13:52:01]*** Stop cut motor [13:52:01]*** Cut end [13:52:01]Read from MH i2c: 01 07 00 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: 01 07 00 5F 10 00 00 00 00 00 FF 0F 84 [13:52:01]process_action close_receipt done [13:52:01]requested_data is exist [13:52:01]produce_requested_data [13:52:01]requested_item fm.sn is exist - process it [13:52:01]wFMCommunicate request_size=4 [13:52:01]MH_SAM_APDU [13:52:01]CAPDU: 80 11 00 00 [13:52:01]Write to MH i2c: E2 08 00 60 10 80 11 00 00 00 00 00 00 EA [13:52:01]Write i2c OK [13:52:01]MH_I2C_Read... [13:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:01]Read from MH i2c: E2 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: E2 17 00 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: E2 17 00 60 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 41 [13:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [13:52:01]wFMCommunicate OK [13:52:01]requested_item fd.num is exist - process it [13:52:01]SAM_PROTO_GetFieldsCounters [13:52:01]wFMCommunicate request_size=4 [13:52:01]MH_SAM_APDU [13:52:01]CAPDU: 80 13 00 00 [13:52:01]Write to MH i2c: E2 08 00 61 10 80 13 00 00 00 00 00 00 ED [13:52:01]Write i2c OK [13:52:01]MH_I2C_Read... [13:52:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:01]Read from MH i2c: E2 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: E2 62 00 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: E2 62 00 61 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 8D 10 01 00 0E 04 04 00 0E 02 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 7C [13:52:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 8D 10 01 00 0E 04 04 00 0E 02 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 [13:52:01]wFMCommunicate OK [13:52:01]SAM_PROTO_GetFieldsCounters done [13:52:01]requested_item shift.num is exist - process it [13:52:01]requested_item shift.opened is exist - process it [13:52:01]req_shift_opened [13:52:01]FM_GetShiftState [13:52:01]SAM_PROTO_GetShiftState [13:52:01]wFMCommunicate request_size=4 [13:52:01]MH_SAM_APDU [13:52:01]CAPDU: 80 13 01 00 [13:52:01]Write to MH i2c: E2 08 00 62 10 80 13 01 00 00 00 00 00 EF [13:52:01]Write i2c OK [13:52:01]MH_I2C_Read... [13:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:01]Read from MH i2c: E2 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: E2 0E 00 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: E2 0E 00 62 10 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 81 [13:52:01]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [13:52:01]wFMCommunicate OK [13:52:01]SAM_PROTO_GetShiftState done [13:52:01]FM_GetShiftState done [13:52:01]req_shift_opened done [13:52:01]requested_item shift.open_date is exist - process it [13:52:01]req_shift_open_date [13:52:01]req_shift_open_date done [13:52:01]produce_requested_data done [13:52:01]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69773,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [13:52:01]process_action_free close_receipt [13:52:01]json_value_free [13:52:01]json_value_free done [13:52:01]process_json_proto returns [13:52:01]Send response to host [13:52:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69773,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [13:52:01]free response buf [13:52:01]execute_script done [13:52:01]execute_script returns [13:52:01]free content buf [13:52:01]Sock 10.Close socket [13:52:01]Sock 10.Thread stoped [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13: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:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:46]accept exits with 7 [14:02:46]New connection [14:02:46]New thread 3066629476 created [14:02:46]Thread 3066486116 joined [14:02:46]Waiting for new connection... [14:02:46] Sock 7.Parse request [14:02:46]Sock 7.Check first char [14:02:46]Sock 7.First char is OK [14:02:46]request: POST /json_proto HTTP/1.0 [14:02:46]Method: POST [14:02:46]URL: /json_proto [14:02:46]Method is POST - this is cgi request [14:02:46]url: /json_proto [14:02:46]query_string will be loaded in cgi processing [14:02:46]execute_cgi json_proto POST (null) [14:02:46]execute_cgi path=json_proto method=POST [14:02:46]POST find Content-Length [14:02:46]Host: 172.17.52.196:8080 [14:02:46]Content-Length: 1092 [14:02:46]Content-Type: application/json [14:02:46] [14:02:46]POST finish read [14:02:46]Found Content-Length = 1092 [14:02:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127172", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:46]execute_script... [14:02:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127172", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:46]POST & json_proto [14:02:46]process_json_proto [14:02:46]json parsed OK: [14:02:46]protocol is kg_v1.0 [14:02:46]action value=close_receipt [14:02:46]process_action close_receipt [14:02:46]cmd_close_receipt [14:02:46]MH_GetDate [14:02:46]Write to MH i2c: F0 00 00 63 10 62 [14:02:46]Write i2c OK [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: F0 [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: F0 09 00 [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: F0 09 00 63 10 00 89 0D 15 67 60 05 E4 66 2C [14:02:46]GetLastDocTimeStamp 1729432319 [14:02:46]current date 1729432969 [14:02:46]FM_GetShiftState [14:02:46]SAM_PROTO_GetShiftState [14:02:46]wFMCommunicate request_size=4 [14:02:46]MH_SAM_APDU [14:02:46]CAPDU: 80 13 01 00 [14:02:46]Write to MH i2c: E2 08 00 64 10 80 13 01 00 00 00 00 00 F1 [14:02:46]Write i2c OK [14:02:46]MH_I2C_Read... [14:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:46]Read from MH i2c: E2 [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: E2 0E 00 [14:02:46]MH_I2C_Read... [14:02:46]Read from MH i2c: E2 0E 00 64 10 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 83 [14:02:46]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [14:02:46]wFMCommunicate OK [14:02:46]SAM_PROTO_GetShiftState done [14:02:46]FM_GetShiftState done [14:02:46]opened in 1729384380 [14:02:46]opened+sec_in_day 1729470780 [14:02:46]quantity*price = 12000 [14:02:46]sum+1 = 12001 [14:02:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 264.00 НСП 1% : 2.33 НДС 12% : 28.03 Наличными: 0.00 Безнал.: 264.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 64 20.10.2024 14:02 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69774 ФПД: 83637406313286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140249&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69774&fm=83637406313286&tin=02508201610067®Number=0000000000091770&sum=26400 0 [14:02:48]StoreToDocumentArchive [14:02:48]shift 526 fd 69774 [14:02:48]save to /storage/0526/doc_00069774 [14:02:48]save last doc name /storage/0526/doc_00069774 to /storage/kkm_last_doc_name [14:02:48]save OK [14:02:48]Clear old archive folders... [14:02:48]ProcessDocumentItem done err = 0, tmpTLVsize=411 [14:02:48]tlvbuf is 00961860 [14:02:48]SAM_PROTO_ClearQueue [14:02:48]wFMCommunicate request_size=4 [14:02:48]MH_SAM_APDU [14:02:48]CAPDU: 80 09 00 00 [14:02:48]Write to MH i2c: E2 08 00 71 10 80 09 00 00 00 00 00 00 F3 [14:02:48]Write i2c OK [14:02:48]MH_I2C_Read... [14:02:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:48]Read from MH i2c: E2 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 03 00 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 03 00 71 10 00 90 00 F5 [14:02:48]RAPDU: 90 00 [14:02:48]wFMCommunicate OK [14:02:48]SAM_PROTO_ClearQueue done [14:02:48]KKMCreateOFDPacket [14:02:48]OFDProtocolAddRootSTLVToBuf [14:02:48]FM_MakeSignedData [14:02:48]FM_MakeSignedData [14:02:48]SAM_PROTO_SignData [14:02:48]wFMCommunicate request_size=4 [14:02:48]MH_SAM_APDU [14:02:48]CAPDU: 80 0D 01 02 [14:02:48]Write to MH i2c: E2 08 00 72 10 80 0D 01 02 00 00 00 00 FB [14:02:48]Write i2c OK [14:02:48]MH_I2C_Read... [14:02:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:48]Read from MH i2c: E2 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 03 00 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 03 00 72 10 00 90 00 F6 [14:02:48]RAPDU: 90 00 [14:02:48]wFMCommunicate OK [14:02:48]wFMCommunicate request_size=255 [14:02:48]MH_SAM_APDU [14:02:48]CAPDU: 80 0D 02 02 FA 03 00 9B 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [14:02:48]Write to MH i2c: E2 02 01 73 10 80 0D 02 02 FA 00 03 00 9B 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 5A [14:02:48]Write i2c OK [14:02:48]MH_I2C_Read... [14:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:48]Read from MH i2c: E2 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 03 00 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 03 00 73 10 00 90 00 F7 [14:02:48]RAPDU: 90 00 [14:02:48]wFMCommunicate OK [14:02:48]wFMCommunicate request_size=170 [14:02:48]MH_SAM_APDU [14:02:48]CAPDU: 80 0D 02 02 A5 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 89 0D 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8E 10 01 00 35 04 06 00 4C 11 59 E4 AB 46 [14:02:48]Write to MH i2c: E2 AD 00 74 10 80 0D 02 02 A5 00 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 89 0D 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8E 10 01 00 35 04 06 00 4C 11 59 E4 AB 46 00 00 0D [14:02:48]Write i2c OK [14:02:48]MH_I2C_Read... [14:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:48]Read from MH i2c: E2 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 03 00 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 03 00 74 10 00 90 00 F8 [14:02:48]RAPDU: 90 00 [14:02:48]wFMCommunicate OK [14:02:48]wFMCommunicate request_size=4 [14:02:48]MH_SAM_APDU [14:02:48]CAPDU: 80 0D 03 02 [14:02:48]Write to MH i2c: E2 08 00 75 10 80 0D 03 02 00 00 00 00 00 [14:02:48]Write i2c OK [14:02:48]MH_I2C_Read... [14:02:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:48]Read from MH i2c: E2 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 0B 00 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 0B 00 75 10 00 AA C8 24 20 89 BC BA 8C 90 00 42 [14:02:48]RAPDU: AA C8 24 20 89 BC BA 8C 90 00 [14:02:48]wFMCommunicate OK [14:02:48]SAM_PROTO_SignData done [14:02:48]FM_MakeSignedData done [14:02:48]CreateOFDProtocolMessage [14:02:48]wFMCommunicate request_size=4 [14:02:48]MH_SAM_APDU [14:02:48]CAPDU: 80 11 00 00 [14:02:48]Write to MH i2c: E2 08 00 76 10 80 11 00 00 00 00 00 00 00 [14:02:48]Write i2c OK [14:02:48]MH_I2C_Read... [14:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:48]Read from MH i2c: E2 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 17 00 [14:02:48]MH_I2C_Read... [14:02:48]Read from MH i2c: E2 17 00 76 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 57 [14:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [14:02:48]wFMCommunicate OK [14:02:48]CreateOFDProtocolMessage done [14:02:48]OFDSenderStorePacket 69774 [14:02:48]StoreOFDPacket docnum=69774 [14:02:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 AF 01 00 00 9A 9D A7 01 88 6C 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 89 0D 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8E 10 01 00 35 04 06 00 4C 11 59 E4 AB 46 AA C8 24 20 89 BC BA 8C [14:02:48]CheckFolder [14:02:48]dirname=/storage/ofd_packets [14:02:48]CheckFolder done [14:02:48]ProducePacketName [14:02:48]name=ofd_packets/00069774 [14:02:48]NVStorageSaveData ofd_packets/00069774 [14:02:48]File name is /storage/ofd_packets/00069774 [14:02:49]Write 461 bytes [14:02:49]NVStorageSaveData done [14:02:49]OFDSenderStorePacket done [14:02:49]KKMCreateOFDPacket done [14:02:49]NVStorageSaveData kkm_last_timestamp [14:02:49]File name is /storage/kkm_last_timestamp [14:02:49]Write 4 bytes [14:02:49]NVStorageSaveData done [14:02:49]ExternCall_PrintAddStr [14:02:49]wPrintStart [14:02:49]Write to MH i2c: 01 00 00 77 10 87 [14:02:49]Write i2c OK [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: 01 [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: 01 07 00 [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: 01 07 00 77 10 00 00 00 00 00 FF 0F 9C [14:02:49]RasterBufferAndPrint [14:02:49]line Счет N : (3)127172 [14:02:49]line ИНН: 02508201610067 [14:02:49]line Контрольно-Кассовый Чек [14:02:49]line ПРОДАЖА [14:02:49]line Товар: 5449000027474 [14:02:49]line Напиток FuzeTea зел чай манго,ромашка 1л [14:02:49]line 1.000 * 120.00 [14:02:49]line = 120.00 [14:02:49]line НДС 12% НСП 1% [14:02:49]line > о реализуемом товаре [14:02:49]line Товар: 48743570 [14:02:49]line Сигареты Winston XStyle Blue [14:02:49]line 1.000 * 144.00 [14:02:49]line = 144.00 [14:02:49]line НДС 12% НСП 1% [14:02:49]line > о реализуемом товаре [14:02:49]line ИТОГО: 264.00 [14:02:49]line НСП 1% : 2.33 [14:02:49]line НДС 12% : 28.03 [14:02:49]line Наличными: 0.00 [14:02:49]line Безнал.: 264.00 [14:02:49]line Место: АЗС № 163 "Партнер Нефть" [14:02:49]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [14:02:49]line СНО: Общий режим [14:02:49]line Чек 64 20.10.2024 14:02 [14:02:49]line Смена: 526 ФФД: 1.0 [14:02:49]line ЗНМ: 0300000101 [14:02:49]line РНМ: 0000000000091770 [14:02:49]line Версия ККМ: 001 [14:02:49]line Платежная система: Mbank [14:02:49]line ФМ: 0000000000871749 [14:02:49]line ФД: 69774 [14:02:49]line ФПД: 83637406313286 [14:02:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T140249&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69774&fm=83637406313286&tin=02508201610067®Number=0000000000091770&sum=26400 [14:02:49]line 0 [14:02:49]written 0, free lines is 4095 [14:02:49]OFD Sender: Processing packet 69774 [packets to send 32, broken 31] [14:02:49]ProducePacketName [14:02:49]name=ofd_packets/00069774 [14:02:49]OFD Sender: To server: pG, [14:02:49]CommunicateWithHost lk.salyk.kg:30040 [14:02:49]ConnectInit lk.salyk.kg [14:02:49]Connected sock=10 [14:02:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 AF 01 00 00 9A 9D A7 01 88 6C 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 89 0D 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8E 10 01 00 35 04 06 00 4C 11 59 E4 AB 46 AA C8 24 20 89 BC BA 8C [14:02:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 33 C1 47 00 10 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8E 10 01 00 F4 03 04 00 0C B3 14 67 B6 04 01 00 00 FE 6D CB E4 BF D9 46 48 [14:02:49]CommunicateWithHost err = 0 [14:02:49]CheckOFDResponse [14:02:49]1017 (14) - 77093643461234 [14:02:49]1041 (16) - 0000000000871749 [14:02:49]1040 (4) - 69774 [14:02:49]1012 (4) - 20.10.2024 07:36 [14:02:49]1206 (1) - 0 [14:02:49]OFD Sender: Remove packet 69774 [14:02:49]ProducePacketName [14:02:49]name=ofd_packets/00069774 [14:02:49]NVStorageDeleteData [14:02:49]Write to MH i2c: 01 00 00 A7 10 B7 [14:02:49]Write i2c OK [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: 01 [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: 01 07 00 [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: 01 07 00 A7 10 00 00 00 00 00 75 0C 3F [14:02:49]RasterBufferAndPrint [14:02:49]line [14:02:49]line [14:02:49]line [14:02:49]line [14:02:49]line [14:02:49]written 0, free lines is 3195 [14:02:49]MH_Cut [14:02:49]Write to MH i2c: D1 01 00 AE 10 01 90 [14:02:49]Write i2c OK [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: D1 [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: D1 01 00 [14:02:49]MH_I2C_Read... [14:02:49]Read from MH i2c: D1 01 00 AE 10 00 8F [14:02:49]Write to MH i2c: 01 00 00 AF 10 BF [14:02:49]Write i2c OK [14:02:49]MH_I2C_Read... [14:02:49]OFD Sender: No OFD packet to send [14:02:50]*** Cut start [14:02:50]*** Partial cut [14:02:50]*** CUTSNS_PIN = 1 [14:02:50]*** CUTSNS_PIN = 0 [14:02:50]*** Brake cut motor [14:02:51]Read from MH i2c: 01 [14:02:51]MH_I2C_Read... [14:02:51]*** Stop cut motor [14:02:51]*** Cut end [14:02:51]Read from MH i2c: 01 07 00 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: 01 07 00 AF 10 00 00 00 00 00 FF 0F D4 [14:02:51]process_action close_receipt done [14:02:51]requested_data is exist [14:02:51]produce_requested_data [14:02:51]requested_item fm.sn is exist - process it [14:02:51]wFMCommunicate request_size=4 [14:02:51]MH_SAM_APDU [14:02:51]CAPDU: 80 11 00 00 [14:02:51]Write to MH i2c: E2 08 00 B0 10 80 11 00 00 00 00 00 00 3A [14:02:51]Write i2c OK [14:02:51]MH_I2C_Read... [14:02:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:51]Read from MH i2c: E2 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 17 00 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 17 00 B0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 91 [14:02:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [14:02:51]wFMCommunicate OK [14:02:51]requested_item fd.num is exist - process it [14:02:51]SAM_PROTO_GetFieldsCounters [14:02:51]wFMCommunicate request_size=4 [14:02:51]MH_SAM_APDU [14:02:51]CAPDU: 80 13 00 00 [14:02:51]Write to MH i2c: E2 08 00 B1 10 80 13 00 00 00 00 00 00 3D [14:02:51]Write i2c OK [14:02:51]MH_I2C_Read... [14:02:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:51]Read from MH i2c: E2 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 62 00 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 62 00 B1 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 8E 10 01 00 0E 04 04 00 0E 02 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 D0 [14:02:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 8E 10 01 00 0E 04 04 00 0E 02 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 [14:02:51]wFMCommunicate OK [14:02:51]SAM_PROTO_GetFieldsCounters done [14:02:51]requested_item shift.num is exist - process it [14:02:51]requested_item shift.opened is exist - process it [14:02:51]req_shift_opened [14:02:51]FM_GetShiftState [14:02:51]SAM_PROTO_GetShiftState [14:02:51]wFMCommunicate request_size=4 [14:02:51]MH_SAM_APDU [14:02:51]CAPDU: 80 13 01 00 [14:02:51]Write to MH i2c: E2 08 00 B2 10 80 13 01 00 00 00 00 00 3F [14:02:51]Write i2c OK [14:02:51]MH_I2C_Read... [14:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:51]Read from MH i2c: E2 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 0E 00 [14:02:51]MH_I2C_Read... [14:02:51]Read from MH i2c: E2 0E 00 B2 10 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 D1 [14:02:51]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [14:02:51]wFMCommunicate OK [14:02:51]SAM_PROTO_GetShiftState done [14:02:51]FM_GetShiftState done [14:02:51]req_shift_opened done [14:02:51]requested_item shift.open_date is exist - process it [14:02:51]req_shift_open_date [14:02:51]req_shift_open_date done [14:02:51]produce_requested_data done [14:02:51]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69774,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [14:02:51]process_action_free close_receipt [14:02:51]json_value_free [14:02:51]json_value_free done [14:02:51]process_json_proto returns [14:02:51]Send response to host [14:02:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69774,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [14:02:51]free response buf [14:02:51]execute_script done [14:02:51]execute_script returns [14:02:51]free content buf [14:02:51]Sock 7.Close socket [14:02:51]Sock 7.Thread stoped [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:25]OFD Sender: No OFD packet to send [14:05:30]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:05]OFD Sender: No OFD packet to send [14:06:10]OFD Sender: No OFD packet to send [14:06:15]OFD Sender: No OFD packet to send [14:06:20]OFD Sender: No OFD packet to send [14:06:25]OFD Sender: No OFD packet to send [14:06:30]OFD Sender: No OFD packet to send [14:06:35]OFD Sender: No OFD packet to send [14:06:40]OFD Sender: No OFD packet to send [14:06:45]OFD Sender: No OFD packet to send [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:30]OFD Sender: No OFD packet to send [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08: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:27]accept exits with 9 [14:10:27]New connection [14:10:27]New thread 3066486116 created [14:10:27]Thread 3066629476 joined [14:10:27]Waiting for new connection... [14:10:27] Sock 9.Parse request [14:10:27]Sock 9.Check first char [14:10:27]Sock 9.First char is OK [14:10:27]request: POST /json_proto HTTP/1.0 [14:10:27]Method: POST [14:10:27]URL: /json_proto [14:10:27]Method is POST - this is cgi request [14:10:27]url: /json_proto [14:10:27]query_string will be loaded in cgi processing [14:10:27]execute_cgi json_proto POST (null) [14:10:27]execute_cgi path=json_proto method=POST [14:10:27]POST find Content-Length [14:10:27]Host: 172.17.52.196:8080 [14:10:27]Content-Length: 645 [14:10:27]Content-Type: application/json [14:10:27] [14:10:27]POST finish read [14:10:27]Found Content-Length = 645 [14:10:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127173", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:27]execute_script... [14:10: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)127173", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:27]POST & json_proto [14:10:27]process_json_proto [14:10:27]json parsed OK: [14:10:27]protocol is kg_v1.0 [14:10:27]action value=close_receipt [14:10:27]process_action close_receipt [14:10:27]cmd_close_receipt [14:10:27]MH_GetDate [14:10:27]Write to MH i2c: F0 00 00 B3 10 B2 [14:10:27]Write i2c OK [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: F0 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: F0 09 00 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: F0 09 00 B3 10 00 56 0F 15 67 60 05 E4 66 4B [14:10:27]GetLastDocTimeStamp 1729432969 [14:10:27]current date 1729433430 [14:10:27]FM_GetShiftState [14:10:27]SAM_PROTO_GetShiftState [14:10:27]wFMCommunicate request_size=4 [14:10:27]MH_SAM_APDU [14:10:27]CAPDU: 80 13 01 00 [14:10:27]Write to MH i2c: E2 08 00 B4 10 80 13 01 00 00 00 00 00 41 [14:10:27]Write i2c OK [14:10:27]MH_I2C_Read... [14:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:27]Read from MH i2c: E2 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: E2 0E 00 [14:10:27]MH_I2C_Read... [14:10:27]Read from MH i2c: E2 0E 00 B4 10 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 D3 [14:10:27]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [14:10:27]wFMCommunicate OK [14:10:27]SAM_PROTO_GetShiftState done [14:10:27]FM_GetShiftState done [14:10:27]opened in 1729384380 [14:10:27]opened+sec_in_day 1729470780 [14:10:27]quantity*price = 6500 [14:10:27]sum+1 = 6501 [14:10:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 65 20.10.2024 14:10 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69775 ФПД: 6910498463735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141030&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69775&fm=6910498463735&tin=02508201610067®Number=0000000000091770&sum=6500 0 [14:10:28]StoreToDocumentArchive [14:10:28]shift 526 fd 69775 [14:10:28]save to /storage/0526/doc_00069775 [14:10:28]save last doc name /storage/0526/doc_00069775 to /storage/kkm_last_doc_name [14:10:28]save OK [14:10:28]Clear old archive folders... [14:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=272 [14:10:28]tlvbuf is 009C8BB0 [14:10:28]SAM_PROTO_ClearQueue [14:10:28]wFMCommunicate request_size=4 [14:10:28]MH_SAM_APDU [14:10:28]CAPDU: 80 09 00 00 [14:10:28]Write to MH i2c: E2 08 00 C1 10 80 09 00 00 00 00 00 00 43 [14:10:28]Write i2c OK [14:10:28]MH_I2C_Read... [14:10:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:28]Read from MH i2c: E2 [14:10:28]MH_I2C_Read... [14:10:28]Read from MH i2c: E2 03 00 [14:10:28]MH_I2C_Read... [14:10:28]Read from MH i2c: E2 03 00 C1 10 00 90 00 45 [14:10:28]RAPDU: 90 00 [14:10:28]wFMCommunicate OK [14:10:28]SAM_PROTO_ClearQueue done [14:10:28]KKMCreateOFDPacket [14:10:28]OFDProtocolAddRootSTLVToBuf [14:10:28]FM_MakeSignedData [14:10:28]FM_MakeSignedData [14:10:28]SAM_PROTO_SignData [14:10:28]wFMCommunicate request_size=4 [14:10:28]MH_SAM_APDU [14:10:28]CAPDU: 80 0D 01 02 [14:10:28]Write to MH i2c: E2 08 00 C2 10 80 0D 01 02 00 00 00 00 4B [14:10:28]Write i2c OK [14:10:28]MH_I2C_Read... [14:10:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:28]Read from MH i2c: E2 [14:10:28]MH_I2C_Read... [14:10:28]Read from MH i2c: E2 03 00 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 03 00 C2 10 00 90 00 46 [14:10:29]RAPDU: 90 00 [14:10:29]wFMCommunicate OK [14:10:29]wFMCommunicate request_size=255 [14:10:29]MH_SAM_APDU [14:10:29]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 56 0F 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 [14:10:29]Write to MH i2c: E2 02 01 C3 10 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 56 0F 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 C8 [14:10:29]Write i2c OK [14:10:29]MH_I2C_Read... [14:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:29]Read from MH i2c: E2 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 03 00 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 03 00 C3 10 00 90 00 47 [14:10:29]RAPDU: 90 00 [14:10:29]wFMCommunicate OK [14:10:29]wFMCommunicate request_size=31 [14:10:29]MH_SAM_APDU [14:10:29]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 37 34 39 10 04 04 00 8F 10 01 00 35 04 06 00 06 48 F9 CE 5F F7 [14:10:29]Write to MH i2c: E2 22 00 C4 10 80 0D 02 02 1A 00 30 30 38 37 31 37 34 39 10 04 04 00 8F 10 01 00 35 04 06 00 06 48 F9 CE 5F F7 00 00 88 [14:10:29]Write i2c OK [14:10:29]MH_I2C_Read... [14:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:29]Read from MH i2c: E2 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 03 00 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 03 00 C4 10 00 90 00 48 [14:10:29]RAPDU: 90 00 [14:10:29]wFMCommunicate OK [14:10:29]wFMCommunicate request_size=4 [14:10:29]MH_SAM_APDU [14:10:29]CAPDU: 80 0D 03 02 [14:10:29]Write to MH i2c: E2 08 00 C5 10 80 0D 03 02 00 00 00 00 50 [14:10:29]Write i2c OK [14:10:29]MH_I2C_Read... [14:10:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:29]Read from MH i2c: E2 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 0B 00 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 0B 00 C5 10 00 04 CB 9A F8 28 BB EA 3C 90 00 BB [14:10:29]RAPDU: 04 CB 9A F8 28 BB EA 3C 90 00 [14:10:29]wFMCommunicate OK [14:10:29]SAM_PROTO_SignData done [14:10:29]FM_MakeSignedData done [14:10:29]CreateOFDProtocolMessage [14:10:29]wFMCommunicate request_size=4 [14:10:29]MH_SAM_APDU [14:10:29]CAPDU: 80 11 00 00 [14:10:29]Write to MH i2c: E2 08 00 C6 10 80 11 00 00 00 00 00 00 50 [14:10:29]Write i2c OK [14:10:29]MH_I2C_Read... [14:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:29]Read from MH i2c: E2 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 17 00 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: E2 17 00 C6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 A7 [14:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [14:10:29]wFMCommunicate OK [14:10:29]CreateOFDProtocolMessage done [14:10:29]OFDSenderStorePacket 69775 [14:10:29]StoreOFDPacket docnum=69775 [14:10:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 5F 01 1C 01 4A 39 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 56 0F 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8F 10 01 00 35 04 06 00 06 48 F9 CE 5F F7 04 CB 9A F8 28 BB EA 3C [14:10:29]CheckFolder [14:10:29]dirname=/storage/ofd_packets [14:10:29]CheckFolder done [14:10:29]ProducePacketName [14:10:29]name=ofd_packets/00069775 [14:10:29]NVStorageSaveData ofd_packets/00069775 [14:10:29]File name is /storage/ofd_packets/00069775 [14:10:29]Write 322 bytes [14:10:29]NVStorageSaveData done [14:10:29]OFDSenderStorePacket done [14:10:29]KKMCreateOFDPacket done [14:10:29]NVStorageSaveData kkm_last_timestamp [14:10:29]File name is /storage/kkm_last_timestamp [14:10:29]Write 4 bytes [14:10:29]NVStorageSaveData done [14:10:29]ExternCall_PrintAddStr [14:10:29]wPrintStart [14:10:29]Write to MH i2c: 01 00 00 C7 10 D7 [14:10:29]Write i2c OK [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: 01 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: 01 07 00 [14:10:29]MH_I2C_Read... [14:10:29]Read from MH i2c: 01 07 00 C7 10 00 00 00 00 00 FF 0F EC [14:10:29]RasterBufferAndPrint [14:10:29]line Счет N : (3)127173 [14:10:29]line ИНН: 02508201610067 [14:10:29]line Контрольно-Кассовый Чек [14:10:29]line ПРОДАЖА [14:10:29]line Товар: 47011656 [14:10:29]line Водка Пшеничная 0,1л [14:10:29]line 1.000 * 65.00 [14:10:29]line = 65.00 [14:10:29]line НДС 12% НСП 1% [14:10:29]line > о реализуемом товаре [14:10:29]line ИТОГО: 65.00 [14:10:29]line НСП 1% : 0.57 [14:10:29]line НДС 12% : 6.90 [14:10:29]line Наличными: 65.00 [14:10:29]line Безнал.: 0.00 [14:10:29]line Место: АЗС № 163 "Партнер Нефть" [14:10:29]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [14:10:29]line СНО: Общий режим [14:10:29]line Чек 65 20.10.2024 14:10 [14:10:29]line Смена: 526 ФФД: 1.0 [14:10:29]line ЗНМ: 0300000101 [14:10:29]line РНМ: 0000000000091770 [14:10:29]line Версия ККМ: 001 [14:10:29]line ФМ: 0000000000871749 [14:10:29]line ФД: 69775 [14:10:29]line ФПД: 6910498463735 [14:10:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T141030&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69775&fm=6910498463735&tin=02508201610067®Number=0000000000091770&sum=6500 [14:10:29]OFD Sender: Processing packet 69775 [packets to send 32, broken 31] [14:10:29]ProducePacketName [14:10:29]name=ofd_packets/00069775 [14:10:29]OFD Sender: To server: pG, [14:10:29]CommunicateWithHost lk.salyk.kg:30040 [14:10:29]ConnectInit lk.salyk.kg [14:10:29]line 0 [14:10:29]written 0, free lines is 4095 [14:10:29]Connected sock=10 [14:10:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 5F 01 1C 01 4A 39 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 56 0F 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8F 10 01 00 35 04 06 00 06 48 F9 CE 5F F7 04 CB 9A F8 28 BB EA 3C [14:10:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 5F E9 47 00 03 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 8F 10 01 00 F4 03 04 00 D8 B4 14 67 B6 04 01 00 00 AD 83 B4 AC 7A 0E 65 AB [14:10:30]CommunicateWithHost err = 0 [14:10:30]CheckOFDResponse [14:10:30]1017 (14) - 77093643461234 [14:10:30]1041 (16) - 0000000000871749 [14:10:30]1040 (4) - 69775 [14:10:30]1012 (4) - 20.10.2024 07:44 [14:10:30]1206 (1) - 0 [14:10:30]OFD Sender: Remove packet 69775 [14:10:30]ProducePacketName [14:10:30]name=ofd_packets/00069775 [14:10:30]NVStorageDeleteData [14:10:30]Write to MH i2c: 01 00 00 EF 10 FF [14:10:30]Write i2c OK [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: 01 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: 01 07 00 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: 01 07 00 EF 10 00 00 00 00 00 06 0D 19 [14:10:30]RasterBufferAndPrint [14:10:30]line [14:10:30]line [14:10:30]line [14:10:30]line [14:10:30]line [14:10:30]written 0, free lines is 3340 [14:10:30]MH_Cut [14:10:30]Write to MH i2c: D1 01 00 F6 10 01 D8 [14:10:30]Write i2c OK [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: D1 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: D1 01 00 [14:10:30]MH_I2C_Read... [14:10:30]Read from MH i2c: D1 01 00 F6 10 00 D7 [14:10:30]Write to MH i2c: 01 00 00 F7 10 07 [14:10:30]Write i2c OK [14:10:30]MH_I2C_Read... [14:10:30]OFD Sender: No OFD packet to send [14:10:30]*** Cut start [14:10:30]*** Partial cut [14:10:30]*** CUTSNS_PIN = 1 [14:10:31]*** CUTSNS_PIN = 0 [14:10:31]*** Brake cut motor [14:10:31]Read from MH i2c: 01 [14:10:31]MH_I2C_Read... [14:10:31]*** Stop cut motor [14:10:31]*** Cut end [14:10:31]Read from MH i2c: 01 07 00 [14:10:31]MH_I2C_Read... [14:10:31]Read from MH i2c: 01 07 00 F7 10 00 00 00 00 00 FF 0F 1C [14:10:31]process_action close_receipt done [14:10:31]requested_data is exist [14:10:31]produce_requested_data [14:10:31]requested_item fm.sn is exist - process it [14:10:31]wFMCommunicate request_size=4 [14:10:31]MH_SAM_APDU [14:10:31]CAPDU: 80 11 00 00 [14:10:31]Write to MH i2c: E2 08 00 F8 10 80 11 00 00 00 00 00 00 82 [14:10:31]Write i2c OK [14:10:31]MH_I2C_Read... [14:10:31]Read from MH i2c: E2 [14:10:31]MH_I2C_Read... [14:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:31]Read from MH i2c: E2 17 00 [14:10:31]MH_I2C_Read... [14:10:31]Read from MH i2c: E2 17 00 F8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 D9 [14:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [14:10:31]wFMCommunicate OK [14:10:31]requested_item fd.num is exist - process it [14:10:31]SAM_PROTO_GetFieldsCounters [14:10:31]wFMCommunicate request_size=4 [14:10:31]MH_SAM_APDU [14:10:31]CAPDU: 80 13 00 00 [14:10:31]Write to MH i2c: E2 08 00 F9 10 80 13 00 00 00 00 00 00 85 [14:10:31]Write i2c OK [14:10:31]MH_I2C_Read... [14:10:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:31]Read from MH i2c: E2 [14:10:31]MH_I2C_Read... [14:10:31]Read from MH i2c: E2 62 00 [14:10:31]MH_I2C_Read... [14:10:31]Read from MH i2c: E2 62 00 F9 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 8F 10 01 00 0E 04 04 00 0E 02 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 1C [14:10:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 8F 10 01 00 0E 04 04 00 0E 02 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 [14:10:31]wFMCommunicate OK [14:10:31]SAM_PROTO_GetFieldsCounters done [14:10:31]requested_item shift.num is exist - process it [14:10:31]requested_item shift.opened is exist - process it [14:10:31]req_shift_opened [14:10:31]FM_GetShiftState [14:10:31]SAM_PROTO_GetShiftState [14:10:31]wFMCommunicate request_size=4 [14:10:31]MH_SAM_APDU [14:10:31]CAPDU: 80 13 01 00 [14:10:31]Write to MH i2c: E2 08 00 FA 10 80 13 01 00 00 00 00 00 87 [14:10:32]Write i2c OK [14:10:32]MH_I2C_Read... [14:10:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:32]Read from MH i2c: E2 [14:10:32]MH_I2C_Read... [14:10:32]Read from MH i2c: E2 0E 00 [14:10:32]MH_I2C_Read... [14:10:32]Read from MH i2c: E2 0E 00 FA 10 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 19 [14:10:32]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [14:10:32]wFMCommunicate OK [14:10:32]SAM_PROTO_GetShiftState done [14:10:32]FM_GetShiftState done [14:10:32]req_shift_opened done [14:10:32]requested_item shift.open_date is exist - process it [14:10:32]req_shift_open_date [14:10:32]req_shift_open_date done [14:10:32]produce_requested_data done [14:10:32]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69775,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [14:10:32]process_action_free close_receipt [14:10:32]json_value_free [14:10:32]json_value_free done [14:10:32]process_json_proto returns [14:10:32]Send response to host [14:10:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69775,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [14:10:32]free response buf [14:10:32]execute_script done [14:10:32]execute_script returns [14:10:32]free content buf [14:10:32]Sock 9.Close socket [14:10:32]Sock 9.Thread stoped [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:20]OFD Sender: No OFD packet to send [14:12:25]OFD Sender: No OFD packet to send [14:12:30]OFD Sender: No OFD packet to send [14:12:35]OFD Sender: No OFD packet to send [14:12:40]OFD Sender: No OFD packet to send [14:12:45]OFD Sender: No OFD packet to send [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:15]OFD Sender: No OFD packet to send [14:13:20]OFD Sender: No OFD packet to send [14:13:25]OFD Sender: No OFD packet to send [14:13:30]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:45]OFD Sender: No OFD packet to send [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:10]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:30]OFD Sender: No OFD packet to send [14:14:35]OFD Sender: No OFD packet to send [14:14:40]OFD Sender: No OFD packet to send [14:14:45]OFD Sender: No OFD packet to send [14:14:50]OFD Sender: No OFD packet to send [14:14:55]OFD Sender: No OFD packet to send [14:15:00]OFD Sender: No OFD packet to send [14:15:05]OFD Sender: No OFD packet to send [14:15:10]OFD Sender: No OFD packet to send [14:15:15]OFD Sender: No OFD packet to send [14:15:20]OFD Sender: No OFD packet to send [14:15:25]OFD Sender: No OFD packet to send [14:15:30]OFD Sender: No OFD packet to send [14:15:35]OFD Sender: No OFD packet to send [14:15:40]OFD Sender: No OFD packet to send [14:15:45]OFD Sender: No OFD packet to send [14:15:50]OFD Sender: No OFD packet to send [14:15:55]OFD Sender: No OFD packet to send [14:16:00]OFD Sender: No OFD packet to send [14:16:05]OFD Sender: No OFD packet to send [14:16:10]OFD Sender: No OFD packet to send [14:16:15]OFD Sender: No OFD packet to send [14:16:20]OFD Sender: No OFD packet to send [14:16:25]OFD Sender: No OFD packet to send [14:16:30]OFD Sender: No OFD packet to send [14:16:35]OFD Sender: No OFD packet to send [14:16:40]OFD Sender: No OFD packet to send [14:16:45]OFD Sender: No OFD packet to send [14:16:50]OFD Sender: No OFD packet to send [14:16:55]OFD Sender: No OFD packet to send [14:17:00]OFD Sender: No OFD packet to send [14:17:05]OFD Sender: No OFD packet to send [14:17:10]OFD Sender: No OFD packet to send [14:17:15]OFD Sender: No OFD packet to send [14:17:20]OFD Sender: No OFD packet to send [14:17:25]OFD Sender: No OFD packet to send [14:17:30]OFD Sender: No OFD packet to send [14:17:35]OFD Sender: No OFD packet to send [14:17:40]OFD Sender: No OFD packet to send [14:17:45]OFD Sender: No OFD packet to send [14:17:50]OFD Sender: No OFD packet to send [14:17:55]OFD Sender: No OFD packet to send [14:18:00]OFD Sender: No OFD packet to send [14:18:05]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:06]accept exits with 7 [14:20:06]New connection [14:20:06]New thread 3066629476 created [14:20:06]Thread 3066486116 joined [14:20:06]Waiting for new connection... [14:20:06] Sock 7.Parse request [14:20:06]Sock 7.Check first char [14:20:06]Sock 7.First char is OK [14:20:06]request: POST /json_proto HTTP/1.0 [14:20:06]Method: POST [14:20:06]URL: /json_proto [14:20:06]Method is POST - this is cgi request [14:20:06]url: /json_proto [14:20:06]query_string will be loaded in cgi processing [14:20:06]execute_cgi json_proto POST (null) [14:20:06]execute_cgi path=json_proto method=POST [14:20:06]POST find Content-Length [14:20:06]Host: 172.17.52.196:8080 [14:20:06]Content-Length: 748 [14:20:06]Content-Type: application/json [14:20:06] [14:20:06]POST finish read [14:20:06]Found Content-Length = 748 [14:20:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127174", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:06]execute_script... [14:20:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127174", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:06]POST & json_proto [14:20:06]process_json_proto [14:20:06]json parsed OK: [14:20:06]protocol is kg_v1.0 [14:20:06]action value=close_receipt [14:20:06]process_action close_receipt [14:20:06]cmd_close_receipt [14:20:06]MH_GetDate [14:20:06]Write to MH i2c: F0 00 00 FB 10 FA [14:20:06]Write i2c OK [14:20:06]MH_I2C_Read... [14:20:06]Read from MH i2c: F0 [14:20:06]MH_I2C_Read... [14:20:06]Read from MH i2c: F0 09 00 [14:20:06]MH_I2C_Read... [14:20:06]Read from MH i2c: F0 09 00 FB 10 00 99 11 15 67 60 05 E4 66 D8 [14:20:06]GetLastDocTimeStamp 1729433430 [14:20:06]current date 1729434009 [14:20:06]FM_GetShiftState [14:20:06]SAM_PROTO_GetShiftState [14:20:06]wFMCommunicate request_size=4 [14:20:06]MH_SAM_APDU [14:20:06]CAPDU: 80 13 01 00 [14:20:06]Write to MH i2c: E2 08 00 FC 10 80 13 01 00 00 00 00 00 89 [14:20:06]Write i2c OK [14:20:06]MH_I2C_Read... [14:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:06]Read from MH i2c: E2 [14:20:06]MH_I2C_Read... [14:20:06]Read from MH i2c: E2 0E 00 [14:20:06]MH_I2C_Read... [14:20:06]Read from MH i2c: E2 0E 00 FC 10 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 1B [14:20:06]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [14:20:06]wFMCommunicate OK [14:20:06]SAM_PROTO_GetShiftState done [14:20:06]FM_GetShiftState done [14:20:06]opened in 1729384380 [14:20:06]opened+sec_in_day 1729470780 [14:20:06]quantity*price = 14400 [14:20:06]sum+1 = 14401 [14:20:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 66 20.10.2024 14:20 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69776 ФПД: 91058852428542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142009&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69776&fm=91058852428542&tin=02508201610067®Number=0000000000091770&sum=14400 0 [14:20:07]StoreToDocumentArchive [14:20:07]shift 526 fd 69776 [14:20:07]save to /storage/0526/doc_00069776 [14:20:07]save last doc name /storage/0526/doc_00069776 to /storage/kkm_last_doc_name [14:20:07]save OK [14:20:07]Clear old archive folders... [14:20:07]ProcessDocumentItem done err = 0, tmpTLVsize=273 [14:20:07]tlvbuf is 0097EBA0 [14:20:07]SAM_PROTO_ClearQueue [14:20:07]wFMCommunicate request_size=4 [14:20:07]MH_SAM_APDU [14:20:07]CAPDU: 80 09 00 00 [14:20:07]Write to MH i2c: E2 08 00 09 11 80 09 00 00 00 00 00 00 8C [14:20:07]Write i2c OK [14:20:07]MH_I2C_Read... [14:20:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:07]Read from MH i2c: E2 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 03 00 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 03 00 09 11 00 90 00 8E [14:20:07]RAPDU: 90 00 [14:20:07]wFMCommunicate OK [14:20:07]SAM_PROTO_ClearQueue done [14:20:07]KKMCreateOFDPacket [14:20:07]OFDProtocolAddRootSTLVToBuf [14:20:07]FM_MakeSignedData [14:20:07]FM_MakeSignedData [14:20:07]SAM_PROTO_SignData [14:20:07]wFMCommunicate request_size=4 [14:20:07]MH_SAM_APDU [14:20:07]CAPDU: 80 0D 01 02 [14:20:07]Write to MH i2c: E2 08 00 0A 11 80 0D 01 02 00 00 00 00 94 [14:20:07]Write i2c OK [14:20:07]MH_I2C_Read... [14:20:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:07]Read from MH i2c: E2 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 03 00 [14:20:07]MH_I2C_Read... [14:20:07]Read from MH i2c: E2 03 00 0A 11 00 90 00 8F [14:20:07]RAPDU: 90 00 [14:20:07]wFMCommunicate OK [14:20:07]wFMCommunicate request_size=255 [14:20:07]MH_SAM_APDU [14:20:07]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 99 11 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [14:20:07]Write to MH i2c: E2 02 01 0B 11 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 99 11 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 75 [14:20:07]Write i2c OK [14:20:07]MH_I2C_Read... [14:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:08]Read from MH i2c: E2 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: E2 03 00 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: E2 03 00 0B 11 00 90 00 90 [14:20:08]RAPDU: 90 00 [14:20:08]wFMCommunicate OK [14:20:08]wFMCommunicate request_size=32 [14:20:08]MH_SAM_APDU [14:20:08]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 90 10 01 00 35 04 06 00 52 D1 4A 8D 7A FE [14:20:08]Write to MH i2c: E2 23 00 0C 11 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 90 10 01 00 35 04 06 00 52 D1 4A 8D 7A FE 00 00 0B [14:20:08]Write i2c OK [14:20:08]MH_I2C_Read... [14:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:08]Read from MH i2c: E2 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: E2 03 00 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: E2 03 00 0C 11 00 90 00 91 [14:20:08]RAPDU: 90 00 [14:20:08]wFMCommunicate OK [14:20:08]wFMCommunicate request_size=4 [14:20:08]MH_SAM_APDU [14:20:08]CAPDU: 80 0D 03 02 [14:20:08]Write to MH i2c: E2 08 00 0D 11 80 0D 03 02 00 00 00 00 99 [14:20:08]Write i2c OK [14:20:08]MH_I2C_Read... [14:20:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:08]Read from MH i2c: E2 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: E2 0B 00 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: E2 0B 00 0D 11 00 AE 33 A3 C8 07 38 41 1C 90 00 82 [14:20:08]RAPDU: AE 33 A3 C8 07 38 41 1C 90 00 [14:20:08]wFMCommunicate OK [14:20:08]SAM_PROTO_SignData done [14:20:08]FM_MakeSignedData done [14:20:08]CreateOFDProtocolMessage [14:20:08]wFMCommunicate request_size=4 [14:20:08]MH_SAM_APDU [14:20:08]CAPDU: 80 11 00 00 [14:20:08]Write to MH i2c: E2 08 00 0E 11 80 11 00 00 00 00 00 00 99 [14:20:08]Write i2c OK [14:20:08]MH_I2C_Read... [14:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:08]Read from MH i2c: E2 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: E2 17 00 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: E2 17 00 0E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 F0 [14:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [14:20:08]wFMCommunicate OK [14:20:08]CreateOFDProtocolMessage done [14:20:08]OFDSenderStorePacket 69776 [14:20:08]StoreOFDPacket docnum=69776 [14:20:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 C5 65 1D 01 D5 43 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 99 11 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 90 10 01 00 35 04 06 00 52 D1 4A 8D 7A FE AE 33 A3 C8 07 38 41 1C [14:20:08]CheckFolder [14:20:08]dirname=/storage/ofd_packets [14:20:08]CheckFolder done [14:20:08]ProducePacketName [14:20:08]name=ofd_packets/00069776 [14:20:08]NVStorageSaveData ofd_packets/00069776 [14:20:08]File name is /storage/ofd_packets/00069776 [14:20:08]Write 323 bytes [14:20:08]NVStorageSaveData done [14:20:08]OFDSenderStorePacket done [14:20:08]KKMCreateOFDPacket done [14:20:08]NVStorageSaveData kkm_last_timestamp [14:20:08]File name is /storage/kkm_last_timestamp [14:20:08]Write 4 bytes [14:20:08]NVStorageSaveData done [14:20:08]ExternCall_PrintAddStr [14:20:08]wPrintStart [14:20:08]Write to MH i2c: 01 00 00 0F 11 20 [14:20:08]Write i2c OK [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: 01 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: 01 07 00 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: 01 07 00 0F 11 00 00 00 00 00 FF 0F 35 [14:20:08]RasterBufferAndPrint [14:20:08]line Счет N : (3)127174 [14:20:08]line ИНН: 02508201610067 [14:20:08]line Контрольно-Кассовый Чек [14:20:08]line ПРОДАЖА [14:20:08]line Товар: 48743570 [14:20:08]line Сигареты Winston XStyle Blue [14:20:08]line 1.000 * 144.00 [14:20:08]line = 144.00 [14:20:08]line НДС 12% НСП 1% [14:20:08]line > о реализуемом товаре [14:20:08]line ИТОГО: 144.00 [14:20:08]line НСП 1% : 1.27 [14:20:08]line НДС 12% : 15.29 [14:20:08]line Наличными: 0.00 [14:20:08]line Безнал.: 144.00 [14:20:08]line Место: АЗС № 163 "Партнер Нефть" [14:20:08]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [14:20:08]line СНО: Общий режим [14:20:08]line Чек 66 20.10.2024 14:20 [14:20:08]line Смена: 526 ФФД: 1.0 [14:20:08]line ЗНМ: 0300000101 [14:20:08]line РНМ: 0000000000091770 [14:20:08]line Версия ККМ: 001 [14:20:08]line Платежная система: Mbank [14:20:08]line ФМ: 0000000000871749 [14:20:08]line ФД: 69776 [14:20:08]line ФПД: 91058852428542 [14:20:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142009&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69776&fm=91058852428542&tin=02508201610067®Number=0000000000091770&sum=14400 [14:20:08]line 0 [14:20:08]written 0, free lines is 4095 [14:20:08]OFD Sender: Processing packet 69776 [packets to send 32, broken 31] [14:20:08]ProducePacketName [14:20:08]name=ofd_packets/00069776 [14:20:08]OFD Sender: To server: pG, [14:20:08]CommunicateWithHost lk.salyk.kg:30040 [14:20:08]ConnectInit lk.salyk.kg [14:20:08]Connected sock=10 [14:20:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 C5 65 1D 01 D5 43 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 99 11 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 90 10 01 00 35 04 06 00 52 D1 4A 8D 7A FE AE 33 A3 C8 07 38 41 1C [14:20:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 DA 03 47 00 8B 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 90 10 01 00 F4 03 04 00 1B B7 14 67 B6 04 01 00 00 AB 56 FB F7 FE 11 87 B9 [14:20:08]CommunicateWithHost err = 0 [14:20:08]CheckOFDResponse [14:20:08]1017 (14) - 77093643461234 [14:20:08]1041 (16) - 0000000000871749 [14:20:08]1040 (4) - 69776 [14:20:08]1012 (4) - 20.10.2024 07:54 [14:20:08]1206 (1) - 0 [14:20:08]OFD Sender: Remove packet 69776 [14:20:08]ProducePacketName [14:20:08]name=ofd_packets/00069776 [14:20:08]NVStorageDeleteData [14:20:08]Write to MH i2c: 01 00 00 38 11 49 [14:20:08]Write i2c OK [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: 01 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: 01 07 00 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: 01 07 00 38 11 00 00 00 00 00 F2 0C 4E [14:20:08]RasterBufferAndPrint [14:20:08]line [14:20:08]line [14:20:08]line [14:20:08]line [14:20:08]line [14:20:08]written 0, free lines is 3320 [14:20:08]MH_Cut [14:20:08]Write to MH i2c: D1 01 00 3F 11 01 22 [14:20:08]Write i2c OK [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: D1 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: D1 01 00 [14:20:08]MH_I2C_Read... [14:20:08]Read from MH i2c: D1 01 00 3F 11 00 21 [14:20:08]Write to MH i2c: 01 00 00 40 11 51 [14:20:08]Write i2c OK [14:20:08]MH_I2C_Read... [14:20:09]OFD Sender: No OFD packet to send [14:20:09]*** Cut start [14:20:09]*** Partial cut [14:20:09]*** CUTSNS_PIN = 1 [14:20:09]*** CUTSNS_PIN = 0 [14:20:10]*** Brake cut motor [14:20:10]Read from MH i2c: 01 [14:20:10]MH_I2C_Read... [14:20:10]*** Stop cut motor [14:20:10]*** Cut end [14:20:10]Read from MH i2c: 01 07 00 [14:20:10]MH_I2C_Read... [14:20:10]Read from MH i2c: 01 07 00 40 11 00 00 00 00 00 FF 0F 66 [14:20:10]process_action close_receipt done [14:20:10]requested_data is exist [14:20:10]produce_requested_data [14:20:10]requested_item fm.sn is exist - process it [14:20:10]wFMCommunicate request_size=4 [14:20:10]MH_SAM_APDU [14:20:10]CAPDU: 80 11 00 00 [14:20:10]Write to MH i2c: E2 08 00 41 11 80 11 00 00 00 00 00 00 CC [14:20:10]Write i2c OK [14:20:10]MH_I2C_Read... [14:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:10]Read from MH i2c: E2 [14:20:10]MH_I2C_Read... [14:20:10]Read from MH i2c: E2 17 00 [14:20:10]MH_I2C_Read... [14:20:10]Read from MH i2c: E2 17 00 41 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 23 [14:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [14:20:10]wFMCommunicate OK [14:20:10]requested_item fd.num is exist - process it [14:20:10]SAM_PROTO_GetFieldsCounters [14:20:10]wFMCommunicate request_size=4 [14:20:10]MH_SAM_APDU [14:20:10]CAPDU: 80 13 00 00 [14:20:10]Write to MH i2c: E2 08 00 42 11 80 13 00 00 00 00 00 00 CF [14:20:10]Write i2c OK [14:20:10]MH_I2C_Read... [14:20:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:10]Read from MH i2c: E2 [14:20:10]MH_I2C_Read... [14:20:10]Read from MH i2c: E2 62 00 [14:20:10]MH_I2C_Read... [14:20:10]Read from MH i2c: E2 62 00 42 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 90 10 01 00 0E 04 04 00 0E 02 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 6A [14:20: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 90 10 01 00 0E 04 04 00 0E 02 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 [14:20:10]wFMCommunicate OK [14:20:10]SAM_PROTO_GetFieldsCounters done [14:20:10]requested_item shift.num is exist - process it [14:20:10]requested_item shift.opened is exist - process it [14:20:10]req_shift_opened [14:20:10]FM_GetShiftState [14:20:10]SAM_PROTO_GetShiftState [14:20:10]wFMCommunicate request_size=4 [14:20:10]MH_SAM_APDU [14:20:10]CAPDU: 80 13 01 00 [14:20:10]Write to MH i2c: E2 08 00 43 11 80 13 01 00 00 00 00 00 D1 [14:20:10]Write i2c OK [14:20:10]MH_I2C_Read... [14:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:10]Read from MH i2c: E2 [14:20:10]MH_I2C_Read... [14:20:10]Read from MH i2c: E2 0E 00 [14:20:10]MH_I2C_Read... [14:20:10]Read from MH i2c: E2 0E 00 43 11 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 63 [14:20:10]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [14:20:10]wFMCommunicate OK [14:20:10]SAM_PROTO_GetShiftState done [14:20:10]FM_GetShiftState done [14:20:10]req_shift_opened done [14:20:10]requested_item shift.open_date is exist - process it [14:20:10]req_shift_open_date [14:20:10]req_shift_open_date done [14:20:10]produce_requested_data done [14:20:10]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69776,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [14:20:10]process_action_free close_receipt [14:20:10]json_value_free [14:20:10]json_value_free done [14:20:10]process_json_proto returns [14:20:10]Send response to host [14:20:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69776,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [14:20:10]free response buf [14:20:10]execute_script done [14:20:10]execute_script returns [14:20:10]free content buf [14:20:10]Sock 7.Close socket [14:20:10]Sock 7.Thread stoped [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:20]accept exits with 9 [14:22:20]New connection [14:22:20]New thread 3066486116 created [14:22:20]Thread 3066629476 joined [14:22:20]Waiting for new connection... [14:22:20] Sock 9.Parse request [14:22:20]Sock 9.Check first char [14:22:20]Sock 9.First char is OK [14:22:20]request: POST /json_proto HTTP/1.0 [14:22:20]Method: POST [14:22:20]URL: /json_proto [14:22:20]Method is POST - this is cgi request [14:22:20]url: /json_proto [14:22:20]query_string will be loaded in cgi processing [14:22:20]execute_cgi json_proto POST (null) [14:22:20]execute_cgi path=json_proto method=POST [14:22:20]POST find Content-Length [14:22:20]Host: 172.17.52.196:8080 [14:22:20]Content-Length: 1327 [14:22:20]Content-Type: application/json [14:22:20] [14:22:20]POST finish read [14:22:20]Found Content-Length = 1327 [14:22:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127175", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000088680", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E, \u0430\u043D\u0430\u043D\u0430\u0441 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000134912", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:20]execute_script... [14:22:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127175", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000088680", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E, \u0430\u043D\u0430\u043D\u0430\u0441 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000134912", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:20]POST & json_proto [14:22:20]process_json_proto [14:22:20]json parsed OK: [14:22:20]protocol is kg_v1.0 [14:22:20]action value=close_receipt [14:22:20]process_action close_receipt [14:22:20]cmd_close_receipt [14:22:20]MH_GetDate [14:22:20]Write to MH i2c: F0 00 00 44 11 44 [14:22:20]Write i2c OK [14:22:20]MH_I2C_Read... [14:22:20]Read from MH i2c: F0 [14:22:20]MH_I2C_Read... [14:22:20]Read from MH i2c: F0 09 00 [14:22:20]MH_I2C_Read... [14:22:20]Read from MH i2c: F0 09 00 44 11 00 1E 12 15 67 60 05 E4 66 A8 [14:22:20]GetLastDocTimeStamp 1729434009 [14:22:20]current date 1729434142 [14:22:20]FM_GetShiftState [14:22:20]SAM_PROTO_GetShiftState [14:22:20]wFMCommunicate request_size=4 [14:22:20]MH_SAM_APDU [14:22:20]CAPDU: 80 13 01 00 [14:22:20]Write to MH i2c: E2 08 00 45 11 80 13 01 00 00 00 00 00 D3 [14:22:20]Write i2c OK [14:22:20]MH_I2C_Read... [14:22:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:20]Read from MH i2c: E2 [14:22:20]MH_I2C_Read... [14:22:20]Read from MH i2c: E2 0E 00 [14:22:20]MH_I2C_Read... [14:22:20]Read from MH i2c: E2 0E 00 45 11 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 65 [14:22:20]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [14:22:20]wFMCommunicate OK [14:22:20]SAM_PROTO_GetShiftState done [14:22:20]FM_GetShiftState done [14:22:20]opened in 1729384380 [14:22:20]opened+sec_in_day 1729470780 [14:22:20]quantity*price = 9500 [14:22:20]sum+1 = 9501 [14:22:20]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000088680 Холодный чай Fuse манго, ананас 0,33 ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000134912 Холодный чай Fuse манго,ромашка 0,33 ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 275.00 НСП 1% : 2.44 НДС 12% : 29.21 Наличными: 275.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 67 20.10.2024 14:22 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69777 ФПД: 68053476344803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142222&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69777&fm=68053476344803&tin=02508201610067®Number=0000000000091770&sum=27500 0 [14:22:21]StoreToDocumentArchive [14:22:21]shift 526 fd 69777 [14:22:21]save to /storage/0526/doc_00069777 [14:22:21]save last doc name /storage/0526/doc_00069777 to /storage/kkm_last_doc_name [14:22:21]save OK [14:22:21]Clear old archive folders... [14:22:21]ProcessDocumentItem done err = 0, tmpTLVsize=561 [14:22:21]tlvbuf is 009613E0 [14:22:21]SAM_PROTO_ClearQueue [14:22:21]wFMCommunicate request_size=4 [14:22:21]MH_SAM_APDU [14:22:21]CAPDU: 80 09 00 00 [14:22:21]Write to MH i2c: E2 08 00 52 11 80 09 00 00 00 00 00 00 D5 [14:22:21]Write i2c OK [14:22:21]MH_I2C_Read... [14:22:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:21]Read from MH i2c: E2 [14:22:21]MH_I2C_Read... [14:22:21]Read from MH i2c: E2 03 00 [14:22:21]MH_I2C_Read... [14:22:21]Read from MH i2c: E2 03 00 52 11 00 90 00 D7 [14:22:21]RAPDU: 90 00 [14:22:21]wFMCommunicate OK [14:22:21]SAM_PROTO_ClearQueue done [14:22:21]KKMCreateOFDPacket [14:22:21]OFDProtocolAddRootSTLVToBuf [14:22:21]FM_MakeSignedData [14:22:21]FM_MakeSignedData [14:22:21]SAM_PROTO_SignData [14:22:21]wFMCommunicate request_size=4 [14:22:21]MH_SAM_APDU [14:22:21]CAPDU: 80 0D 01 02 [14:22:21]Write to MH i2c: E2 08 00 53 11 80 0D 01 02 00 00 00 00 DD [14:22:21]Write i2c OK [14:22:21]MH_I2C_Read... [14:22:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:21]Read from MH i2c: E2 [14:22:21]MH_I2C_Read... [14:22:21]Read from MH i2c: E2 03 00 [14:22:21]MH_I2C_Read... [14:22:21]Read from MH i2c: E2 03 00 53 11 00 90 00 D8 [14:22:21]RAPDU: 90 00 [14:22:21]wFMCommunicate OK [14:22:21]wFMCommunicate request_size=255 [14:22:21]MH_SAM_APDU [14:22:21]CAPDU: 80 0D 02 02 FA 03 00 31 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 [14:22:21]Write to MH i2c: E2 02 01 54 11 80 0D 02 02 FA 00 03 00 31 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 00 00 CF [14:22:21]Write i2c OK [14:22:21]MH_I2C_Read... [14:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:22]Read from MH i2c: E2 [14:22:22]MH_I2C_Read... [14:22:22]Read from MH i2c: E2 03 00 [14:22:22]MH_I2C_Read... [14:22:22]Read from MH i2c: E2 03 00 54 11 00 90 00 D9 [14:22:22]RAPDU: 90 00 [14:22:22]wFMCommunicate OK [14:22:22]wFMCommunicate request_size=255 [14:22:22]MH_SAM_APDU [14:22:22]CAPDU: 80 0D 02 02 FA 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 1E 12 15 67 0E 04 04 00 0E 02 [14:22:22]Write to MH i2c: E2 02 01 55 11 80 0D 02 02 FA 00 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 1E 12 15 67 0E 04 04 00 0E 02 00 00 E4 [14:22:22]Write i2c OK [14:22:22]MH_I2C_Read... [14:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:22]Read from MH i2c: E2 [14:22:22]MH_I2C_Read... [14:22:22]Read from MH i2c: E2 03 00 [14:22:22]MH_I2C_Read... [14:22:22]Read from MH i2c: E2 03 00 55 11 00 90 00 DA [14:22:22]RAPDU: 90 00 [14:22:22]wFMCommunicate OK [14:22:22]wFMCommunicate request_size=70 [14:22:22]MH_SAM_APDU [14:22:22]CAPDU: 80 0D 02 02 41 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 91 10 01 00 35 04 06 00 3D E4 EF 48 83 E3 [14:22:22]Write to MH i2c: E2 49 00 56 11 80 0D 02 02 41 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 91 10 01 00 35 04 06 00 3D E4 EF 48 83 E3 00 00 5B [14:22:22]Write i2c OK [14:22:22]MH_I2C_Read... [14:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:22]Read from MH i2c: E2 [14:22:22]MH_I2C_Read... [14:22:22]Read from MH i2c: E2 03 00 [14:22:22]MH_I2C_Read... [14:22:22]Read from MH i2c: E2 03 00 56 11 00 90 00 DB [14:22:22]RAPDU: 90 00 [14:22:22]wFMCommunicate OK [14:22:22]wFMCommunicate request_size=4 [14:22:22]MH_SAM_APDU [14:22:22]CAPDU: 80 0D 03 02 [14:22:22]Write to MH i2c: E2 08 00 57 11 80 0D 03 02 00 00 00 00 E3 [14:22:22]Write i2c OK [14:22:22]MH_I2C_Read... [14:22:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:22]Read from MH i2c: E2 [14:22:22]MH_I2C_Read... [14:22:22]Read from MH i2c: E2 0B 00 [14:22:22]MH_I2C_Read... [14:22:22]Read from MH i2c: E2 0B 00 57 11 00 21 25 19 2F 63 B0 4E 63 90 00 36 [14:22:22]RAPDU: 21 25 19 2F 63 B0 4E 63 90 00 [14:22:22]wFMCommunicate OK [14:22:22]SAM_PROTO_SignData done [14:22:22]FM_MakeSignedData done [14:22:22]CreateOFDProtocolMessage [14:22:22]wFMCommunicate request_size=4 [14:22:22]MH_SAM_APDU [14:22:22]CAPDU: 80 11 00 00 [14:22:22]Write to MH i2c: E2 08 00 58 11 80 11 00 00 00 00 00 00 E3 [14:22:22]Write i2c OK [14:22:22]MH_I2C_Read... [14:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:22]Read from MH i2c: E2 [14:22:22]MH_I2C_Read... [14:22:22]Read from MH i2c: E2 17 00 [14:22:22]MH_I2C_Read... [14:22:22]Read from MH i2c: E2 17 00 58 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 3A [14:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [14:22:22]wFMCommunicate OK [14:22:22]CreateOFDProtocolMessage done [14:22:22]OFDSenderStorePacket 69777 [14:22:22]StoreOFDPacket docnum=69777 [14:22:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 45 02 00 00 29 AB 3D 02 CB 82 5A 03 01 00 03 00 31 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 1E 12 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 91 10 01 00 35 04 06 00 3D E4 EF 48 83 E3 21 25 19 2F 63 B0 4E 63 [14:22:22]CheckFolder [14:22:22]dirname=/storage/ofd_packets [14:22:22]CheckFolder done [14:22:22]ProducePacketName [14:22:22]name=ofd_packets/00069777 [14:22:22]NVStorageSaveData ofd_packets/00069777 [14:22:22]File name is /storage/ofd_packets/00069777 [14:22:22]Write 611 bytes [14:22:22]NVStorageSaveData done [14:22:22]OFDSenderStorePacket done [14:22:22]KKMCreateOFDPacket done [14:22:22]NVStorageSaveData kkm_last_timestamp [14:22:22]File name is /storage/kkm_last_timestamp [14:22:22]Write 4 bytes [14:22:22]NVStorageSaveData done [14:22:22]ExternCall_PrintAddStr [14:22:22]wPrintStart [14:22:22]Write to MH i2c: 01 00 00 59 11 6A [14:22:22]Write i2c OK [14:22:22]MH_I2C_Read... [14:22:22]Read from MH i2c: 01 [14:22:22]MH_I2C_Read... [14:22:22]Read from MH i2c: 01 07 00 [14:22:22]MH_I2C_Read... [14:22:22]Read from MH i2c: 01 07 00 59 11 00 00 00 00 00 FF 0F 7F [14:22:22]RasterBufferAndPrint [14:22:22]line Счет N : (3)127175 [14:22:22]line ИНН: 02508201610067 [14:22:22]line Контрольно-Кассовый Чек [14:22:22]line ПРОДАЖА [14:22:22]line Товар: 4700000481453 [14:22:22]line Напиток энерг Nitro Max 0,45 ж/б [14:22:22]line 1.000 * 95.00 [14:22:22]line = 95.00 [14:22:22]line НДС 12% НСП 1% [14:22:22]line > о реализуемом товаре [14:22:22]line Товар: 5449000088680 [14:22:22]line Холодный чай Fuse манго, ананас 0,33 ж/б [14:22:22]line 1.000 * 90.00 [14:22:22]line = 90.00 [14:22:22]line НДС 12% НСП 1% [14:22:22]line > о реализуемом товаре [14:22:22]line Товар: 5449000134912 [14:22:22]line Холодный чай Fuse манго,ромашка 0,33 ж/б [14:22:22]line 1.000 * 90.00 [14:22:22]line = 90.00 [14:22:22]line НДС 12% НСП 1% [14:22:22]line > о реализуемом товаре [14:22:22]line ИТОГО: 275.00 [14:22:22]line НСП 1% : 2.44 [14:22:22]line НДС 12% : 29.21 [14:22:22]line Наличными: 275.00 [14:22:22]line Безнал.: 0.00 [14:22:22]line Место: АЗС № 163 "Партнер Нефть" [14:22:22]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [14:22:22]line СНО: Общий режим [14:22:22]line Чек 67 20.10.2024 14:22 [14:22:22]line Смена: 526 ФФД: 1.0 [14:22:22]line ЗНМ: 0300000101 [14:22:22]line РНМ: 0000000000091770 [14:22:22]line Версия ККМ: 001 [14:22:22]line ФМ: 0000000000871749 [14:22:22]line ФД: 69777 [14:22:22]line ФПД: 68053476344803 [14:22:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T142222&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69777&fm=68053476344803&tin=02508201610067®Number=0000000000091770&sum=27500 [14:22:22]line 0 [14:22:22]OFD Sender: Processing packet 69777 [packets to send 32, broken 31] [14:22:22]ProducePacketName [14:22:22]name=ofd_packets/00069777 [14:22:22]OFD Sender: To server: pG, [14:22:22]CommunicateWithHost lk.salyk.kg:30040 [14:22:22]ConnectInit lk.salyk.kg [14:22:22]written 0, free lines is 4095 [14:22:22]Connected sock=10 [14:22:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 45 02 00 00 29 AB 3D 02 CB 82 5A 03 01 00 03 00 31 02 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 34 39 31 32 06 04 41 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 1E 12 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 91 10 01 00 35 04 06 00 3D E4 EF 48 83 E3 21 25 19 2F 63 B0 4E 63 [14:22:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 CA C4 47 00 31 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 91 10 01 00 F4 03 04 00 A1 B7 14 67 B6 04 01 00 00 B1 6C 36 84 FF FD F8 0C [14:22:23]CommunicateWithHost err = 0 [14:22:23]CheckOFDResponse [14:22:23]1017 (14) - 77093643461234 [14:22:23]1041 (16) - 0000000000871749 [14:22:23]1040 (4) - 69777 [14:22:23]1012 (4) - 20.10.2024 07:56 [14:22:23]1206 (1) - 0 [14:22:23]OFD Sender: Remove packet 69777 [14:22:23]ProducePacketName [14:22:23]name=ofd_packets/00069777 [14:22:23]NVStorageDeleteData [14:22:23]Write to MH i2c: 01 00 00 90 11 A1 [14:22:23]Write i2c OK [14:22:23]MH_I2C_Read... [14:22:23]Read from MH i2c: 01 [14:22:23]MH_I2C_Read... [14:22:23]Read from MH i2c: 01 07 00 [14:22:23]MH_I2C_Read... [14:22:23]Read from MH i2c: 01 07 00 90 11 00 00 00 00 00 10 0C C4 [14:22:23]RasterBufferAndPrint [14:22:23]line [14:22:23]line [14:22:23]line [14:22:23]line [14:22:23]line [14:22:23]written 0, free lines is 3095 [14:22:23]MH_Cut [14:22:23]Write to MH i2c: D1 01 00 97 11 01 7A [14:22:23]Write i2c OK [14:22:23]MH_I2C_Read... [14:22:23]Read from MH i2c: D1 [14:22:23]MH_I2C_Read... [14:22:23]Read from MH i2c: D1 01 00 [14:22:23]MH_I2C_Read... [14:22:23]Read from MH i2c: D1 01 00 97 11 00 79 [14:22:23]Write to MH i2c: 01 00 00 98 11 A9 [14:22:23]Write i2c OK [14:22:23]MH_I2C_Read... [14:22:23]OFD Sender: No OFD packet to send [14:22:24]*** Cut start [14:22:24]*** Partial cut [14:22:24]*** CUTSNS_PIN = 1 [14:22:24]*** CUTSNS_PIN = 0 [14:22:24]*** Brake cut motor [14:22:25]Read from MH i2c: 01 [14:22:25]MH_I2C_Read... [14:22:25]*** Stop cut motor [14:22:25]*** Cut end [14:22:25]Read from MH i2c: 01 07 00 [14:22:25]MH_I2C_Read... [14:22:25]Read from MH i2c: 01 07 00 98 11 00 00 00 00 00 FF 0F BE [14:22:25]process_action close_receipt done [14:22:25]requested_data is exist [14:22:25]produce_requested_data [14:22:25]requested_item fm.sn is exist - process it [14:22:25]wFMCommunicate request_size=4 [14:22:25]MH_SAM_APDU [14:22:25]CAPDU: 80 11 00 00 [14:22:25]Write to MH i2c: E2 08 00 99 11 80 11 00 00 00 00 00 00 24 [14:22:25]Write i2c OK [14:22:25]MH_I2C_Read... [14:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:25]Read from MH i2c: E2 [14:22:25]MH_I2C_Read... [14:22:25]Read from MH i2c: E2 17 00 [14:22:25]MH_I2C_Read... [14:22:25]Read from MH i2c: E2 17 00 99 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 7B [14:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [14:22:25]wFMCommunicate OK [14:22:25]requested_item fd.num is exist - process it [14:22:25]SAM_PROTO_GetFieldsCounters [14:22:25]wFMCommunicate request_size=4 [14:22:25]MH_SAM_APDU [14:22:25]CAPDU: 80 13 00 00 [14:22:25]Write to MH i2c: E2 08 00 9A 11 80 13 00 00 00 00 00 00 27 [14:22:25]Write i2c OK [14:22:25]MH_I2C_Read... [14:22:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:25]Read from MH i2c: E2 [14:22:25]MH_I2C_Read... [14:22:25]Read from MH i2c: E2 62 00 [14:22:25]MH_I2C_Read... [14:22:25]Read from MH i2c: E2 62 00 9A 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 91 10 01 00 0E 04 04 00 0E 02 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 C6 [14:22: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 91 10 01 00 0E 04 04 00 0E 02 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 [14:22:25]wFMCommunicate OK [14:22:25]SAM_PROTO_GetFieldsCounters done [14:22:25]requested_item shift.num is exist - process it [14:22:25]requested_item shift.opened is exist - process it [14:22:25]req_shift_opened [14:22:25]FM_GetShiftState [14:22:25]SAM_PROTO_GetShiftState [14:22:25]wFMCommunicate request_size=4 [14:22:25]MH_SAM_APDU [14:22:25]CAPDU: 80 13 01 00 [14:22:25]Write to MH i2c: E2 08 00 9B 11 80 13 01 00 00 00 00 00 29 [14:22:25]Write i2c OK [14:22:25]MH_I2C_Read... [14:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:25]Read from MH i2c: E2 [14:22:25]MH_I2C_Read... [14:22:25]Read from MH i2c: E2 0E 00 [14:22:25]MH_I2C_Read... [14:22:25]Read from MH i2c: E2 0E 00 9B 11 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 BB [14:22:25]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [14:22:25]wFMCommunicate OK [14:22:25]SAM_PROTO_GetShiftState done [14:22:25]FM_GetShiftState done [14:22:25]req_shift_opened done [14:22:25]requested_item shift.open_date is exist - process it [14:22:25]req_shift_open_date [14:22:25]req_shift_open_date done [14:22:25]produce_requested_data done [14:22:25]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69777,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [14:22:25]process_action_free close_receipt [14:22:25]json_value_free [14:22:25]json_value_free done [14:22:25]process_json_proto returns [14:22:25]Send response to host [14:22:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69777,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [14:22:25]free response buf [14:22:25]execute_script done [14:22:25]execute_script returns [14:22:25]free content buf [14:22:25]Sock 9.Close socket [14:22:25]Sock 9.Thread stoped [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:58]OFD Sender: No OFD packet to send [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:18]OFD Sender: No OFD packet to send [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:54]accept exits with 7 [14:30:54]New connection [14:30:54]New thread 3066629476 created [14:30:54]Thread 3066486116 joined [14:30:54]Waiting for new connection... [14:30:54] Sock 7.Parse request [14:30:54]Sock 7.Check first char [14:30:54]Sock 7.First char is OK [14:30:54]request: POST /json_proto HTTP/1.0 [14:30:54]Method: POST [14:30:54]URL: /json_proto [14:30:54]Method is POST - this is cgi request [14:30:54]url: /json_proto [14:30:54]query_string will be loaded in cgi processing [14:30:54]execute_cgi json_proto POST (null) [14:30:54]execute_cgi path=json_proto method=POST [14:30:54]POST find Content-Length [14:30:54]Host: 172.17.52.196:8080 [14:30:54]Content-Length: 748 [14:30:54]Content-Type: application/json [14:30:54] [14:30:54]POST finish read [14:30:54]Found Content-Length = 748 [14:30:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127176", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:54]execute_script... [14:30:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127176", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:54]POST & json_proto [14:30:54]process_json_proto [14:30:54]json parsed OK: [14:30:54]protocol is kg_v1.0 [14:30:54]action value=close_receipt [14:30:54]process_action close_receipt [14:30:54]cmd_close_receipt [14:30:54]MH_GetDate [14:30:54]Write to MH i2c: F0 00 00 9C 11 9C [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: F0 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: F0 09 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: F0 09 00 9C 11 00 21 14 15 67 60 05 E4 66 05 [14:30:54]GetLastDocTimeStamp 1729434142 [14:30:54]current date 1729434657 [14:30:54]FM_GetShiftState [14:30:54]SAM_PROTO_GetShiftState [14:30:54]wFMCommunicate request_size=4 [14:30:54]MH_SAM_APDU [14:30:54]CAPDU: 80 13 01 00 [14:30:54]Write to MH i2c: E2 08 00 9D 11 80 13 01 00 00 00 00 00 2B [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:54]Read from MH i2c: E2 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 0E 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 0E 00 9D 11 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 BD [14:30:54]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [14:30:54]wFMCommunicate OK [14:30:54]SAM_PROTO_GetShiftState done [14:30:54]FM_GetShiftState done [14:30:54]opened in 1729384380 [14:30:54]opened+sec_in_day 1729470780 [14:30:54]quantity*price = 14400 [14:30:54]sum+1 = 14401 [14:30:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 68 20.10.2024 14:30 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69778 ФПД: 222036024884395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143057&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69778&fm=222036024884395&tin=02508201610067®Number=0000000000091770&sum=14400 0 [14:30:55]StoreToDocumentArchive [14:30:55]shift 526 fd 69778 [14:30:55]save to /storage/0526/doc_00069778 [14:30:55]save last doc name /storage/0526/doc_00069778 to /storage/kkm_last_doc_name [14:30:55]save OK [14:30:55]Clear old archive folders... [14:30:55]ProcessDocumentItem done err = 0, tmpTLVsize=273 [14:30:55]tlvbuf is 009F4120 [14:30:55]SAM_PROTO_ClearQueue [14:30:55]wFMCommunicate request_size=4 [14:30:55]MH_SAM_APDU [14:30:55]CAPDU: 80 09 00 00 [14:30:55]Write to MH i2c: E2 08 00 AA 11 80 09 00 00 00 00 00 00 2D [14:30:55]Write i2c OK [14:30:55]MH_I2C_Read... [14:30:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:55]Read from MH i2c: E2 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 03 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 03 00 AA 11 00 90 00 2F [14:30:55]RAPDU: 90 00 [14:30:55]wFMCommunicate OK [14:30:55]SAM_PROTO_ClearQueue done [14:30:55]KKMCreateOFDPacket [14:30:55]OFDProtocolAddRootSTLVToBuf [14:30:55]FM_MakeSignedData [14:30:55]FM_MakeSignedData [14:30:55]SAM_PROTO_SignData [14:30:55]wFMCommunicate request_size=4 [14:30:55]MH_SAM_APDU [14:30:55]CAPDU: 80 0D 01 02 [14:30:55]Write to MH i2c: E2 08 00 AB 11 80 0D 01 02 00 00 00 00 35 [14:30:55]Write i2c OK [14:30:55]MH_I2C_Read... [14:30:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:55]Read from MH i2c: E2 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 03 00 [14:30:55]MH_I2C_Read... [14:30:55]Read from MH i2c: E2 03 00 AB 11 00 90 00 30 [14:30:55]RAPDU: 90 00 [14:30:55]wFMCommunicate OK [14:30:55]wFMCommunicate request_size=255 [14:30:55]MH_SAM_APDU [14:30:55]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 21 14 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [14:30:55]Write to MH i2c: E2 02 01 AC 11 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 21 14 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 A3 [14:30:55]Write i2c OK [14:30:55]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 AC 11 00 90 00 31 [14:30:56]RAPDU: 90 00 [14:30:56]wFMCommunicate OK [14:30:56]wFMCommunicate request_size=32 [14:30:56]MH_SAM_APDU [14:30:56]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 92 10 01 00 35 04 06 00 C9 F0 CA 63 FC AB [14:30:56]Write to MH i2c: E2 23 00 AD 11 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 92 10 01 00 35 04 06 00 C9 F0 CA 63 FC AB 00 00 C9 [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 AD 11 00 90 00 32 [14:30:56]RAPDU: 90 00 [14:30:56]wFMCommunicate OK [14:30:56]wFMCommunicate request_size=4 [14:30:56]MH_SAM_APDU [14:30:56]CAPDU: 80 0D 03 02 [14:30:56]Write to MH i2c: E2 08 00 AE 11 80 0D 03 02 00 00 00 00 3A [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 0B 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 0B 00 AE 11 00 07 46 86 FC 78 0F 58 FE 90 00 E7 [14:30:56]RAPDU: 07 46 86 FC 78 0F 58 FE 90 00 [14:30:56]wFMCommunicate OK [14:30:56]SAM_PROTO_SignData done [14:30:56]FM_MakeSignedData done [14:30:56]CreateOFDProtocolMessage [14:30:56]wFMCommunicate request_size=4 [14:30:56]MH_SAM_APDU [14:30:56]CAPDU: 80 11 00 00 [14:30:56]Write to MH i2c: E2 08 00 AF 11 80 11 00 00 00 00 00 00 3A [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 17 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 17 00 AF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 91 [14:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [14:30:56]wFMCommunicate OK [14:30:56]CreateOFDProtocolMessage done [14:30:56]OFDSenderStorePacket 69778 [14:30:56]StoreOFDPacket docnum=69778 [14:30:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 29 BF 1D 01 FE A2 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 21 14 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 92 10 01 00 35 04 06 00 C9 F0 CA 63 FC AB 07 46 86 FC 78 0F 58 FE [14:30:56]CheckFolder [14:30:56]dirname=/storage/ofd_packets [14:30:56]CheckFolder done [14:30:56]ProducePacketName [14:30:56]name=ofd_packets/00069778 [14:30:56]NVStorageSaveData ofd_packets/00069778 [14:30:56]File name is /storage/ofd_packets/00069778 [14:30:56]Write 323 bytes [14:30:56]NVStorageSaveData done [14:30:56]OFDSenderStorePacket done [14:30:56]KKMCreateOFDPacket done [14:30:56]NVStorageSaveData kkm_last_timestamp [14:30:56]File name is /storage/kkm_last_timestamp [14:30:56]OFD Sender: Processing packet 69778 [packets to send 32, broken 31] [14:30:56]ProducePacketName [14:30:56]name=ofd_packets/00069778 [14:30:56]OFD Sender: To server: pG, [14:30:56]CommunicateWithHost lk.salyk.kg:30040 [14:30:56]ConnectInit lk.salyk.kg [14:30:56]Write 4 bytes [14:30:56]NVStorageSaveData done [14:30:56]ExternCall_PrintAddStr [14:30:56]wPrintStart [14:30:56]Write to MH i2c: 01 00 00 B0 11 C1 [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: 01 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: 01 07 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: 01 07 00 B0 11 00 00 00 00 00 FF 0F D6 [14:30:56]RasterBufferAndPrint [14:30:56]line Счет N : (3)127176 [14:30:56]line ИНН: 02508201610067 [14:30:56]line Контрольно-Кассовый Чек [14:30:56]line ПРОДАЖА [14:30:56]line Товар: 48743570 [14:30:56]line Сигареты Winston XStyle Blue [14:30:56]line 1.000 * 144.00 [14:30:56]line = 144.00 [14:30:56]line НДС 12% НСП 1% [14:30:56]line > о реализуемом товаре [14:30:56]line ИТОГО: 144.00 [14:30:56]line НСП 1% : 1.27 [14:30:56]line НДС 12% : 15.29 [14:30:56]line Наличными: 0.00 [14:30:56]line Безнал.: 144.00 [14:30:56]line Место: АЗС № 163 "Партнер Нефть" [14:30:56]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [14:30:56]line СНО: Общий режим [14:30:56]line Чек 68 20.10.2024 14:30 [14:30:56]line Смена: 526 ФФД: 1.0 [14:30:56]line ЗНМ: 0300000101 [14:30:56]line РНМ: 0000000000091770 [14:30:56]line Версия ККМ: 001 [14:30:56]line Платежная система: Mbank [14:30:56]line ФМ: 0000000000871749 [14:30:56]line ФД: 69778 [14:30:56]line ФПД: 222036024884395 [14:30:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143057&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69778&fm=222036024884395&tin=02508201610067®Number=0000000000091770&sum=14400 [14:30:56]line 0 [14:30:56]Connected sock=11 [14:30:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 29 BF 1D 01 FE A2 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 21 14 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 92 10 01 00 35 04 06 00 C9 F0 CA 63 FC AB 07 46 86 FC 78 0F 58 FE [14:30:56]written 0, free lines is 4095 [14:30:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 77 AB 47 00 83 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 92 10 01 00 F4 03 04 00 A3 B9 14 67 B6 04 01 00 00 8F F2 B0 D6 3C E8 6F 3B [14:30:56]CommunicateWithHost err = 0 [14:30:56]CheckOFDResponse [14:30:56]1017 (14) - 77093643461234 [14:30:56]1041 (16) - 0000000000871749 [14:30:56]1040 (4) - 69778 [14:30:56]1012 (4) - 20.10.2024 08:04 [14:30:56]1206 (1) - 0 [14:30:56]OFD Sender: Remove packet 69778 [14:30:56]ProducePacketName [14:30:56]name=ofd_packets/00069778 [14:30:56]NVStorageDeleteData [14:30:57]Write to MH i2c: 01 00 00 D9 11 EA [14:30:57]Write i2c OK [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: 01 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: 01 07 00 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: 01 07 00 D9 11 00 00 00 00 00 FC 0C F9 [14:30:57]RasterBufferAndPrint [14:30:57]line [14:30:57]line [14:30:57]line [14:30:57]line [14:30:57]line [14:30:57]written 0, free lines is 3330 [14:30:57]MH_Cut [14:30:57]Write to MH i2c: D1 01 00 E0 11 01 C3 [14:30:57]Write i2c OK [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: D1 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: D1 01 00 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: D1 01 00 E0 11 00 C2 [14:30:57]Write to MH i2c: 01 00 00 E1 11 F2 [14:30:57]Write i2c OK [14:30:57]MH_I2C_Read... [14:30:57]OFD Sender: No OFD packet to send [14:30:57]*** Cut start [14:30:57]*** Partial cut [14:30:57]*** CUTSNS_PIN = 1 [14:30:58]*** CUTSNS_PIN = 0 [14:30:58]*** Brake cut motor [14:30:58]Read from MH i2c: 01 [14:30:58]MH_I2C_Read... [14:30:58]*** Stop cut motor [14:30:58]*** Cut end [14:30:58]Read from MH i2c: 01 07 00 [14:30:58]MH_I2C_Read... [14:30:58]Read from MH i2c: 01 07 00 E1 11 00 00 00 00 00 FF 0F 07 [14:30:58]process_action close_receipt done [14:30:58]requested_data is exist [14:30:58]produce_requested_data [14:30:58]requested_item fm.sn is exist - process it [14:30:58]wFMCommunicate request_size=4 [14:30:58]MH_SAM_APDU [14:30:58]CAPDU: 80 11 00 00 [14:30:58]Write to MH i2c: E2 08 00 E2 11 80 11 00 00 00 00 00 00 6D [14:30:58]Write i2c OK [14:30:58]MH_I2C_Read... [14:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:58]Read from MH i2c: E2 [14:30:58]MH_I2C_Read... [14:30:58]Read from MH i2c: E2 17 00 [14:30:58]MH_I2C_Read... [14:30:58]Read from MH i2c: E2 17 00 E2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 C4 [14:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [14:30:58]wFMCommunicate OK [14:30:58]requested_item fd.num is exist - process it [14:30:58]SAM_PROTO_GetFieldsCounters [14:30:58]wFMCommunicate request_size=4 [14:30:58]MH_SAM_APDU [14:30:58]CAPDU: 80 13 00 00 [14:30:58]Write to MH i2c: E2 08 00 E3 11 80 13 00 00 00 00 00 00 70 [14:30:58]Write i2c OK [14:30:58]MH_I2C_Read... [14:30:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:58]Read from MH i2c: E2 [14:30:58]MH_I2C_Read... [14:30:58]Read from MH i2c: E2 62 00 [14:30:58]MH_I2C_Read... [14:30:58]Read from MH i2c: E2 62 00 E3 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 92 10 01 00 0E 04 04 00 0E 02 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 13 [14:30: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 92 10 01 00 0E 04 04 00 0E 02 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 [14:30:58]wFMCommunicate OK [14:30:58]SAM_PROTO_GetFieldsCounters done [14:30:58]requested_item shift.num is exist - process it [14:30:58]requested_item shift.opened is exist - process it [14:30:58]req_shift_opened [14:30:58]FM_GetShiftState [14:30:58]SAM_PROTO_GetShiftState [14:30:58]wFMCommunicate request_size=4 [14:30:58]MH_SAM_APDU [14:30:58]CAPDU: 80 13 01 00 [14:30:58]Write to MH i2c: E2 08 00 E4 11 80 13 01 00 00 00 00 00 72 [14:30:58]Write i2c OK [14:30:58]MH_I2C_Read... [14:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:59]Read from MH i2c: E2 [14:30:59]MH_I2C_Read... [14:30:59]Read from MH i2c: E2 0E 00 [14:30:59]MH_I2C_Read... [14:30:59]Read from MH i2c: E2 0E 00 E4 11 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 04 [14:30:59]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [14:30:59]wFMCommunicate OK [14:30:59]SAM_PROTO_GetShiftState done [14:30:59]FM_GetShiftState done [14:30:59]req_shift_opened done [14:30:59]requested_item shift.open_date is exist - process it [14:30:59]req_shift_open_date [14:30:59]req_shift_open_date done [14:30:59]produce_requested_data done [14:30:59]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69778,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [14:30:59]process_action_free close_receipt [14:30:59]json_value_free [14:30:59]json_value_free done [14:30:59]process_json_proto returns [14:30:59]Send response to host [14:30:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69778,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [14:30:59]free response buf [14:30:59]execute_script done [14:30:59]execute_script returns [14:30:59]free content buf [14:30:59]Sock 7.Close socket [14:30:59]Sock 7.Thread stoped [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:27]accept exits with 9 [14:32:27]New connection [14:32:27]New thread 3066486116 created [14:32:27]Thread 3066629476 joined [14:32:27]Waiting for new connection... [14:32:27] Sock 9.Parse request [14:32:27]Sock 9.Check first char [14:32:27]Sock 9.First char is OK [14:32:27]request: POST /json_proto HTTP/1.0 [14:32:27]Method: POST [14:32:27]URL: /json_proto [14:32:27]Method is POST - this is cgi request [14:32:27]url: /json_proto [14:32:27]query_string will be loaded in cgi processing [14:32:27]execute_cgi json_proto POST (null) [14:32:27]execute_cgi path=json_proto method=POST [14:32:27]POST find Content-Length [14:32:27]Host: 172.17.52.196:8080 [14:32:27]Content-Length: 623 [14:32:27]Content-Type: application/json [14:32:27] [14:32:27]POST finish read [14:32:27]Found Content-Length = 623 [14:32:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127177", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:27]execute_script... [14:32: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)127177", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:27]POST & json_proto [14:32:27]process_json_proto [14:32:27]json parsed OK: [14:32:27]protocol is kg_v1.0 [14:32:27]action value=close_receipt [14:32:27]process_action close_receipt [14:32:27]cmd_close_receipt [14:32:27]MH_GetDate [14:32:27]Write to MH i2c: F0 00 00 E5 11 E5 [14:32:27]Write i2c OK [14:32:27]MH_I2C_Read... [14:32:27]Read from MH i2c: F0 [14:32:27]MH_I2C_Read... [14:32:27]Read from MH i2c: F0 09 00 [14:32:27]MH_I2C_Read... [14:32:27]Read from MH i2c: F0 09 00 E5 11 00 7E 14 15 67 60 05 E4 66 AB [14:32:27]GetLastDocTimeStamp 1729434657 [14:32:27]current date 1729434750 [14:32:27]FM_GetShiftState [14:32:27]SAM_PROTO_GetShiftState [14:32:27]wFMCommunicate request_size=4 [14:32:27]MH_SAM_APDU [14:32:27]CAPDU: 80 13 01 00 [14:32:27]Write to MH i2c: E2 08 00 E6 11 80 13 01 00 00 00 00 00 74 [14:32:27]Write i2c OK [14:32:27]MH_I2C_Read... [14:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:27]Read from MH i2c: E2 [14:32:27]MH_I2C_Read... [14:32:27]Read from MH i2c: E2 0E 00 [14:32:27]MH_I2C_Read... [14:32:27]Read from MH i2c: E2 0E 00 E6 11 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 06 [14:32:27]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [14:32:27]wFMCommunicate OK [14:32:27]SAM_PROTO_GetShiftState done [14:32:27]FM_GetShiftState done [14:32:27]opened in 1729384380 [14:32:27]opened+sec_in_day 1729470780 [14:32:27]quantity*price = 14400 [14:32:27]sum+1 = 14401 [14:32:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 69 20.10.2024 14:32 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69779 ФПД: 141129638426765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143230&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69779&fm=141129638426765&tin=02508201610067®Number=0000000000091770&sum=14400 0 [14:32:28]StoreToDocumentArchive [14:32:28]shift 526 fd 69779 [14:32:28]save to /storage/0526/doc_00069779 [14:32:28]save last doc name /storage/0526/doc_00069779 to /storage/kkm_last_doc_name [14:32:28]save OK [14:32:28]Clear old archive folders... [14:32:28]ProcessDocumentItem done err = 0, tmpTLVsize=275 [14:32:28]tlvbuf is 00964950 [14:32:28]SAM_PROTO_ClearQueue [14:32:28]wFMCommunicate request_size=4 [14:32:28]MH_SAM_APDU [14:32:28]CAPDU: 80 09 00 00 [14:32:28]Write to MH i2c: E2 08 00 F3 11 80 09 00 00 00 00 00 00 76 [14:32:28]Write i2c OK [14:32:28]MH_I2C_Read... [14:32:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:28]Read from MH i2c: E2 [14:32:28]MH_I2C_Read... [14:32:28]Read from MH i2c: E2 03 00 [14:32:28]MH_I2C_Read... [14:32:28]Read from MH i2c: E2 03 00 F3 11 00 90 00 78 [14:32:28]RAPDU: 90 00 [14:32:28]wFMCommunicate OK [14:32:28]SAM_PROTO_ClearQueue done [14:32:28]KKMCreateOFDPacket [14:32:28]OFDProtocolAddRootSTLVToBuf [14:32:28]FM_MakeSignedData [14:32:28]FM_MakeSignedData [14:32:28]SAM_PROTO_SignData [14:32:28]wFMCommunicate request_size=4 [14:32:28]MH_SAM_APDU [14:32:28]CAPDU: 80 0D 01 02 [14:32:28]Write to MH i2c: E2 08 00 F4 11 80 0D 01 02 00 00 00 00 7E [14:32:28]Write i2c OK [14:32:28]MH_I2C_Read... [14:32:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:28]Read from MH i2c: E2 [14:32:28]MH_I2C_Read... [14:32:28]Read from MH i2c: E2 03 00 [14:32:28]MH_I2C_Read... [14:32:28]Read from MH i2c: E2 03 00 F4 11 00 90 00 79 [14:32:28]RAPDU: 90 00 [14:32:28]wFMCommunicate OK [14:32:28]wFMCommunicate request_size=255 [14:32:28]MH_SAM_APDU [14:32:28]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7E 14 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 [14:32:28]Write to MH i2c: E2 02 01 F5 11 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7E 14 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 00 00 E5 [14:32:28]Write i2c OK [14:32:28]MH_I2C_Read... [14:32:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:29]Read from MH i2c: E2 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 03 00 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 03 00 F5 11 00 90 00 7A [14:32:29]RAPDU: 90 00 [14:32:29]wFMCommunicate OK [14:32:29]wFMCommunicate request_size=34 [14:32:29]MH_SAM_APDU [14:32:29]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 93 10 01 00 35 04 06 00 80 5B 4D F7 38 8D [14:32:29]Write to MH i2c: E2 25 00 F6 11 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 93 10 01 00 35 04 06 00 80 5B 4D F7 38 8D 00 00 CE [14:32:29]Write i2c OK [14:32:29]MH_I2C_Read... [14:32:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:29]Read from MH i2c: E2 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 03 00 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 03 00 F6 11 00 90 00 7B [14:32:29]RAPDU: 90 00 [14:32:29]wFMCommunicate OK [14:32:29]wFMCommunicate request_size=4 [14:32:29]MH_SAM_APDU [14:32:29]CAPDU: 80 0D 03 02 [14:32:29]Write to MH i2c: E2 08 00 F7 11 80 0D 03 02 00 00 00 00 83 [14:32:29]Write i2c OK [14:32:29]MH_I2C_Read... [14:32:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:29]Read from MH i2c: E2 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 0B 00 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 0B 00 F7 11 00 B4 E6 CB 0A 37 69 49 FE 90 00 DA [14:32:29]RAPDU: B4 E6 CB 0A 37 69 49 FE 90 00 [14:32:29]wFMCommunicate OK [14:32:29]SAM_PROTO_SignData done [14:32:29]FM_MakeSignedData done [14:32:29]CreateOFDProtocolMessage [14:32:29]wFMCommunicate request_size=4 [14:32:29]MH_SAM_APDU [14:32:29]CAPDU: 80 11 00 00 [14:32:29]Write to MH i2c: E2 08 00 F8 11 80 11 00 00 00 00 00 00 83 [14:32:29]Write i2c OK [14:32:29]MH_I2C_Read... [14:32:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:29]Read from MH i2c: E2 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 17 00 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 17 00 F8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 DA [14:32:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [14:32:29]wFMCommunicate OK [14:32:29]CreateOFDProtocolMessage done [14:32:29]OFDSenderStorePacket 69779 [14:32:29]StoreOFDPacket docnum=69779 [14:32:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 61 AC 1F 01 A2 BB 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7E 14 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 93 10 01 00 35 04 06 00 80 5B 4D F7 38 8D B4 E6 CB 0A 37 69 49 FE [14:32:29]CheckFolder [14:32:29]dirname=/storage/ofd_packets [14:32:29]CheckFolder done [14:32:29]ProducePacketName [14:32:29]name=ofd_packets/00069779 [14:32:29]NVStorageSaveData ofd_packets/00069779 [14:32:29]File name is /storage/ofd_packets/00069779 [14:32:29]Write 325 bytes [14:32:29]NVStorageSaveData done [14:32:29]OFDSenderStorePacket done [14:32:29]KKMCreateOFDPacket done [14:32:29]NVStorageSaveData kkm_last_timestamp [14:32:29]File name is /storage/kkm_last_timestamp [14:32:29]Write 4 bytes [14:32:29]NVStorageSaveData done [14:32:29]ExternCall_PrintAddStr [14:32:29]wPrintStart [14:32:29]Write to MH i2c: 01 00 00 F9 11 0A [14:32:29]Write i2c OK [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: 01 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: 01 07 00 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: 01 07 00 F9 11 00 00 00 00 00 FF 0F 1F [14:32:29]RasterBufferAndPrint [14:32:29]line Счет N : (3)127177 [14:32:29]line ИНН: 02508201610067 [14:32:29]line Контрольно-Кассовый Чек [14:32:29]line ПРОДАЖА [14:32:29]line Товар: 48743587 [14:32:29]line Сигареты Winston XStyle Silver [14:32:29]line 1.000 * 144.00 [14:32:29]line = 144.00 [14:32:29]line НДС 12% НСП 1% [14:32:29]line > о реализуемом товаре [14:32:29]line ИТОГО: 144.00 [14:32:29]line НСП 1% : 1.27 [14:32:29]line НДС 12% : 15.29 [14:32:29]line Наличными: 144.00 [14:32:29]line Безнал.: 0.00 [14:32:29]line Место: АЗС № 163 "Партнер Нефть" [14:32:29]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [14:32:29]line СНО: Общий режим [14:32:29]line Чек 69 20.10.2024 14:32 [14:32:29]line Смена: 526 ФФД: 1.0 [14:32:29]line ЗНМ: 0300000101 [14:32:29]line РНМ: 0000000000091770 [14:32:29]line Версия ККМ: 001 [14:32:29]line ФМ: 0000000000871749 [14:32:29]line ФД: 69779 [14:32:29]line ФПД: 141129638426765 [14:32:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143230&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69779&fm=141129638426765&tin=02508201610067®Number=0000000000091770&sum=14400 [14:32:29]OFD Sender: Processing packet 69779 [packets to send 32, broken 31] [14:32:29]ProducePacketName [14:32:29]name=ofd_packets/00069779 [14:32:29]OFD Sender: To server: pG, [14:32:29]CommunicateWithHost lk.salyk.kg:30040 [14:32:29]ConnectInit lk.salyk.kg [14:32:29]line 0 [14:32:29]written 0, free lines is 4095 [14:32:29]Connected sock=10 [14:32:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 61 AC 1F 01 A2 BB 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7E 14 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 93 10 01 00 35 04 06 00 80 5B 4D F7 38 8D B4 E6 CB 0A 37 69 49 FE [14:32:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 52 C5 47 00 81 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 93 10 01 00 F4 03 04 00 00 BA 14 67 B6 04 01 00 00 FB D7 CD F3 29 1A 5D 40 [14:32:30]CommunicateWithHost err = 0 [14:32:30]CheckOFDResponse [14:32:30]1017 (14) - 77093643461234 [14:32:30]1041 (16) - 0000000000871749 [14:32:30]1040 (4) - 69779 [14:32:30]1012 (4) - 20.10.2024 08:06 [14:32:30]1206 (1) - 0 [14:32:30]OFD Sender: Remove packet 69779 [14:32:30]ProducePacketName [14:32:30]name=ofd_packets/00069779 [14:32:30]NVStorageDeleteData [14:32:30]Write to MH i2c: 01 00 00 22 12 34 [14:32:30]Write i2c OK [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: 01 [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: 01 07 00 [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: 01 07 00 22 12 00 00 00 00 00 E9 0C 30 [14:32:30]RasterBufferAndPrint [14:32:30]line [14:32:30]line [14:32:30]line [14:32:30]line [14:32:30]line [14:32:30]written 0, free lines is 3314 [14:32:30]MH_Cut [14:32:30]Write to MH i2c: D1 01 00 29 12 01 0D [14:32:30]Write i2c OK [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: D1 [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: D1 01 00 [14:32:30]MH_I2C_Read... [14:32:30]Read from MH i2c: D1 01 00 29 12 00 0C [14:32:30]Write to MH i2c: 01 00 00 2A 12 3C [14:32:30]Write i2c OK [14:32:30]MH_I2C_Read... [14:32:30]OFD Sender: No OFD packet to send [14:32:30]*** Cut start [14:32:30]*** Partial cut [14:32:30]*** CUTSNS_PIN = 1 [14:32:30]*** CUTSNS_PIN = 0 [14:32:31]*** Brake cut motor [14:32:31]Read from MH i2c: 01 [14:32:31]MH_I2C_Read... [14:32:31]*** Stop cut motor [14:32:31]*** Cut end [14:32:31]Read from MH i2c: 01 07 00 [14:32:31]MH_I2C_Read... [14:32:31]Read from MH i2c: 01 07 00 2A 12 00 00 00 00 00 FF 0F 51 [14:32:31]process_action close_receipt done [14:32:31]requested_data is exist [14:32:31]produce_requested_data [14:32:31]requested_item fm.sn is exist - process it [14:32:31]wFMCommunicate request_size=4 [14:32:31]MH_SAM_APDU [14:32:31]CAPDU: 80 11 00 00 [14:32:31]Write to MH i2c: E2 08 00 2B 12 80 11 00 00 00 00 00 00 B7 [14:32:31]Write i2c OK [14:32:31]MH_I2C_Read... [14:32:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:31]Read from MH i2c: E2 [14:32:31]MH_I2C_Read... [14:32:31]Read from MH i2c: E2 17 00 [14:32:31]MH_I2C_Read... [14:32:31]Read from MH i2c: E2 17 00 2B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 0E [14:32:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [14:32:31]wFMCommunicate OK [14:32:31]requested_item fd.num is exist - process it [14:32:31]SAM_PROTO_GetFieldsCounters [14:32:31]wFMCommunicate request_size=4 [14:32:31]MH_SAM_APDU [14:32:31]CAPDU: 80 13 00 00 [14:32:31]Write to MH i2c: E2 08 00 2C 12 80 13 00 00 00 00 00 00 BA [14:32:31]Write i2c OK [14:32:31]MH_I2C_Read... [14:32:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:31]Read from MH i2c: E2 [14:32:31]MH_I2C_Read... [14:32:31]Read from MH i2c: E2 62 00 [14:32:31]MH_I2C_Read... [14:32:31]Read from MH i2c: E2 62 00 2C 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 93 10 01 00 0E 04 04 00 0E 02 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 61 [14:32: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 93 10 01 00 0E 04 04 00 0E 02 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 [14:32:31]wFMCommunicate OK [14:32:31]SAM_PROTO_GetFieldsCounters done [14:32:31]requested_item shift.num is exist - process it [14:32:31]requested_item shift.opened is exist - process it [14:32:31]req_shift_opened [14:32:31]FM_GetShiftState [14:32:31]SAM_PROTO_GetShiftState [14:32:31]wFMCommunicate request_size=4 [14:32:31]MH_SAM_APDU [14:32:31]CAPDU: 80 13 01 00 [14:32:31]Write to MH i2c: E2 08 00 2D 12 80 13 01 00 00 00 00 00 BC [14:32:31]Write i2c OK [14:32:31]MH_I2C_Read... [14:32:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:31]Read from MH i2c: E2 [14:32:31]MH_I2C_Read... [14:32:31]Read from MH i2c: E2 0E 00 [14:32:31]MH_I2C_Read... [14:32:31]Read from MH i2c: E2 0E 00 2D 12 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 4E [14:32:31]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [14:32:31]wFMCommunicate OK [14:32:31]SAM_PROTO_GetShiftState done [14:32:31]FM_GetShiftState done [14:32:31]req_shift_opened done [14:32:31]requested_item shift.open_date is exist - process it [14:32:31]req_shift_open_date [14:32:31]req_shift_open_date done [14:32:31]produce_requested_data done [14:32:31]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69779,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [14:32:31]process_action_free close_receipt [14:32:31]json_value_free [14:32:31]json_value_free done [14:32:31]process_json_proto returns [14:32:31]Send response to host [14:32:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69779,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [14:32:31]free response buf [14:32:31]execute_script done [14:32:31]execute_script returns [14:32:31]free content buf [14:32:31]Sock 9.Close socket [14:32:31]Sock 9.Thread stoped [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:45]accept exits with 7 [14:32:45]New connection [14:32:45]New thread 3066629476 created [14:32:45]Thread 3066486116 joined [14:32:45]Waiting for new connection... [14:32:45] Sock 7.Parse request [14:32:45]Sock 7.Check first char [14:32:45]Sock 7.First char is OK [14:32:45]request: POST /json_proto HTTP/1.0 [14:32:45]Method: POST [14:32:45]URL: /json_proto [14:32:45]Method is POST - this is cgi request [14:32:45]url: /json_proto [14:32:45]query_string will be loaded in cgi processing [14:32:45]execute_cgi json_proto POST (null) [14:32:45]execute_cgi path=json_proto method=POST [14:32:45]POST find Content-Length [14:32:45]Host: 172.17.52.196:8080 [14:32:45]Content-Length: 645 [14:32:45]Content-Type: application/json [14:32:45] [14:32:45]POST finish read [14:32:45]Found Content-Length = 645 [14:32:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127178", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:45]execute_script... [14:32: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)127178", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:45]POST & json_proto [14:32:45]process_json_proto [14:32:45]json parsed OK: [14:32:45]protocol is kg_v1.0 [14:32:45]action value=close_receipt [14:32:45]process_action close_receipt [14:32:45]cmd_close_receipt [14:32:45]MH_GetDate [14:32:45]Write to MH i2c: F0 00 00 2E 12 2F [14:32:45]Write i2c OK [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: F0 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: F0 09 00 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: F0 09 00 2E 12 00 90 14 15 67 60 05 E4 66 07 [14:32:45]GetLastDocTimeStamp 1729434750 [14:32:45]current date 1729434768 [14:32:45]FM_GetShiftState [14:32:45]SAM_PROTO_GetShiftState [14:32:45]wFMCommunicate request_size=4 [14:32:45]MH_SAM_APDU [14:32:45]CAPDU: 80 13 01 00 [14:32:45]Write to MH i2c: E2 08 00 2F 12 80 13 01 00 00 00 00 00 BE [14:32:45]Write i2c OK [14:32:45]MH_I2C_Read... [14:32:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:45]Read from MH i2c: E2 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 0E 00 [14:32:45]MH_I2C_Read... [14:32:45]Read from MH i2c: E2 0E 00 2F 12 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 50 [14:32:45]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [14:32:45]wFMCommunicate OK [14:32:45]SAM_PROTO_GetShiftState done [14:32:45]FM_GetShiftState done [14:32:45]opened in 1729384380 [14:32:45]opened+sec_in_day 1729470780 [14:32:45]quantity*price = 6500 [14:32:45]sum+1 = 6501 [14:32:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 70 20.10.2024 14:32 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69780 ФПД: 92854276155789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143248&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69780&fm=92854276155789&tin=02508201610067®Number=0000000000091770&sum=6500 0 [14:32:46]StoreToDocumentArchive [14:32:46]shift 526 fd 69780 [14:32:46]save to /storage/0526/doc_00069780 [14:32:46]save last doc name /storage/0526/doc_00069780 to /storage/kkm_last_doc_name [14:32:46]save OK [14:32:46]Clear old archive folders... [14:32:46]ProcessDocumentItem done err = 0, tmpTLVsize=272 [14:32:46]tlvbuf is 009BC190 [14:32:46]SAM_PROTO_ClearQueue [14:32:46]wFMCommunicate request_size=4 [14:32:46]MH_SAM_APDU [14:32:46]CAPDU: 80 09 00 00 [14:32:46]Write to MH i2c: E2 08 00 3C 12 80 09 00 00 00 00 00 00 C0 [14:32:46]Write i2c OK [14:32:46]MH_I2C_Read... [14:32:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:46]Read from MH i2c: E2 [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: E2 03 00 [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: E2 03 00 3C 12 00 90 00 C2 [14:32:46]RAPDU: 90 00 [14:32:46]wFMCommunicate OK [14:32:46]SAM_PROTO_ClearQueue done [14:32:46]KKMCreateOFDPacket [14:32:46]OFDProtocolAddRootSTLVToBuf [14:32:46]FM_MakeSignedData [14:32:46]FM_MakeSignedData [14:32:46]SAM_PROTO_SignData [14:32:46]wFMCommunicate request_size=4 [14:32:46]MH_SAM_APDU [14:32:46]CAPDU: 80 0D 01 02 [14:32:46]Write to MH i2c: E2 08 00 3D 12 80 0D 01 02 00 00 00 00 C8 [14:32:46]Write i2c OK [14:32:46]MH_I2C_Read... [14:32:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:46]Read from MH i2c: E2 [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: E2 03 00 [14:32:46]MH_I2C_Read... [14:32:46]Read from MH i2c: E2 03 00 3D 12 00 90 00 C3 [14:32:46]RAPDU: 90 00 [14:32:46]wFMCommunicate OK [14:32:46]wFMCommunicate request_size=255 [14:32:46]MH_SAM_APDU [14:32:46]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 90 14 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 [14:32:47]Write to MH i2c: E2 02 01 3E 12 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 90 14 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 89 [14:32:47]Write i2c OK [14:32:47]MH_I2C_Read... [14:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:47]Read from MH i2c: E2 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: E2 03 00 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: E2 03 00 3E 12 00 90 00 C4 [14:32:47]RAPDU: 90 00 [14:32:47]wFMCommunicate OK [14:32:47]wFMCommunicate request_size=31 [14:32:47]MH_SAM_APDU [14:32:47]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 37 34 39 10 04 04 00 94 10 01 00 35 04 06 00 54 73 52 25 69 8D [14:32:47]Write to MH i2c: E2 22 00 3F 12 80 0D 02 02 1A 00 30 30 38 37 31 37 34 39 10 04 04 00 94 10 01 00 35 04 06 00 54 73 52 25 69 8D 00 00 D3 [14:32:47]Write i2c OK [14:32:47]MH_I2C_Read... [14:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:47]Read from MH i2c: E2 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: E2 03 00 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: E2 03 00 3F 12 00 90 00 C5 [14:32:47]RAPDU: 90 00 [14:32:47]wFMCommunicate OK [14:32:47]wFMCommunicate request_size=4 [14:32:47]MH_SAM_APDU [14:32:47]CAPDU: 80 0D 03 02 [14:32:47]Write to MH i2c: E2 08 00 40 12 80 0D 03 02 00 00 00 00 CD [14:32:47]Write i2c OK [14:32:47]MH_I2C_Read... [14:32:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:47]Read from MH i2c: E2 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: E2 0B 00 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: E2 0B 00 40 12 00 B6 32 8B D9 FE 86 68 98 90 00 9E [14:32:47]RAPDU: B6 32 8B D9 FE 86 68 98 90 00 [14:32:47]wFMCommunicate OK [14:32:47]SAM_PROTO_SignData done [14:32:47]FM_MakeSignedData done [14:32:47]CreateOFDProtocolMessage [14:32:47]wFMCommunicate request_size=4 [14:32:47]MH_SAM_APDU [14:32:47]CAPDU: 80 11 00 00 [14:32:47]Write to MH i2c: E2 08 00 41 12 80 11 00 00 00 00 00 00 CD [14:32:47]Write i2c OK [14:32:47]MH_I2C_Read... [14:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:47]Read from MH i2c: E2 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: E2 17 00 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: E2 17 00 41 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 24 [14:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [14:32:47]wFMCommunicate OK [14:32:47]CreateOFDProtocolMessage done [14:32:47]OFDSenderStorePacket 69780 [14:32:47]StoreOFDPacket docnum=69780 [14:32:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 E9 27 1C 01 78 3E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 90 14 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 94 10 01 00 35 04 06 00 54 73 52 25 69 8D B6 32 8B D9 FE 86 68 98 [14:32:47]CheckFolder [14:32:47]dirname=/storage/ofd_packets [14:32:47]CheckFolder done [14:32:47]ProducePacketName [14:32:47]name=ofd_packets/00069780 [14:32:47]NVStorageSaveData ofd_packets/00069780 [14:32:47]File name is /storage/ofd_packets/00069780 [14:32:47]Write 322 bytes [14:32:47]NVStorageSaveData done [14:32:47]OFDSenderStorePacket done [14:32:47]KKMCreateOFDPacket done [14:32:47]NVStorageSaveData kkm_last_timestamp [14:32:47]File name is /storage/kkm_last_timestamp [14:32:47]Write 4 bytes [14:32:47]NVStorageSaveData done [14:32:47]ExternCall_PrintAddStr [14:32:47]wPrintStart [14:32:47]Write to MH i2c: 01 00 00 42 12 54 [14:32:47]Write i2c OK [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: 01 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: 01 07 00 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: 01 07 00 42 12 00 00 00 00 00 FF 0F 69 [14:32:47]RasterBufferAndPrint [14:32:47]line Счет N : (3)127178 [14:32:47]line ИНН: 02508201610067 [14:32:47]line Контрольно-Кассовый Чек [14:32:47]line ПРОДАЖА [14:32:47]line Товар: 47011656 [14:32:47]line Водка Пшеничная 0,1л [14:32:47]line 1.000 * 65.00 [14:32:47]line = 65.00 [14:32:47]line НДС 12% НСП 1% [14:32:47]line > о реализуемом товаре [14:32:47]line ИТОГО: 65.00 [14:32:47]line НСП 1% : 0.57 [14:32:47]line НДС 12% : 6.90 [14:32:47]line Наличными: 65.00 [14:32:47]line Безнал.: 0.00 [14:32:47]line Место: АЗС № 163 "Партнер Нефть" [14:32:47]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [14:32:47]line СНО: Общий режим [14:32:47]line Чек 70 20.10.2024 14:32 [14:32:47]line Смена: 526 ФФД: 1.0 [14:32:47]line ЗНМ: 0300000101 [14:32:47]line РНМ: 0000000000091770 [14:32:47]line Версия ККМ: 001 [14:32:47]line ФМ: 0000000000871749 [14:32:47]line ФД: 69780 [14:32:47]line ФПД: 92854276155789 [14:32:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T143248&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69780&fm=92854276155789&tin=02508201610067®Number=0000000000091770&sum=6500 [14:32:47]line 0 [14:32:47]OFD Sender: Processing packet 69780 [packets to send 32, broken 31] [14:32:47]ProducePacketName [14:32:47]name=ofd_packets/00069780 [14:32:47]OFD Sender: To server: pG, [14:32:47]CommunicateWithHost lk.salyk.kg:30040 [14:32:47]ConnectInit lk.salyk.kg [14:32:47]written 0, free lines is 4095 [14:32:47]Connected sock=10 [14:32:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 E9 27 1C 01 78 3E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 90 14 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 94 10 01 00 35 04 06 00 54 73 52 25 69 8D B6 32 8B D9 FE 86 68 98 [14:32:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 99 7A 47 00 A5 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 31 37 34 39 10 04 04 00 94 10 01 00 F4 03 04 00 12 BA 14 67 B6 04 01 00 00 B7 E0 AE 1C C1 9E 72 CC [14:32:48]CommunicateWithHost err = 0 [14:32:48]CheckOFDResponse [14:32:48]1017 (14) - 77093643461234 [14:32:48]1041 (16) - 0000000000871749 [14:32:48]1040 (4) - 69780 [14:32:48]1012 (4) - 20.10.2024 08:06 [14:32:48]1206 (1) - 0 [14:32:48]OFD Sender: Remove packet 69780 [14:32:48]ProducePacketName [14:32:48]name=ofd_packets/00069780 [14:32:48]NVStorageDeleteData [14:32:48]Write to MH i2c: 01 00 00 6A 12 7C [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: 01 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: 01 07 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: 01 07 00 6A 12 00 00 00 00 00 00 0D 90 [14:32:48]RasterBufferAndPrint [14:32:48]line [14:32:48]line [14:32:48]line [14:32:48]line [14:32:48]line [14:32:48]written 0, free lines is 3334 [14:32:48]MH_Cut [14:32:48]Write to MH i2c: D1 01 00 71 12 01 55 [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: D1 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: D1 01 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: D1 01 00 71 12 00 54 [14:32:48]Write to MH i2c: 01 00 00 72 12 84 [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]OFD Sender: No OFD packet to send [14:32:48]*** Cut start [14:32:48]*** Partial cut [14:32:48]*** CUTSNS_PIN = 1 [14:32:49]*** CUTSNS_PIN = 0 [14:32:49]*** Brake cut motor [14:32:49]Read from MH i2c: 01 [14:32:49]MH_I2C_Read... [14:32:49]*** Stop cut motor [14:32:49]*** Cut end [14:32:49]Read from MH i2c: 01 07 00 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: 01 07 00 72 12 00 00 00 00 00 FF 0F 99 [14:32:49]process_action close_receipt done [14:32:49]requested_data is exist [14:32:49]produce_requested_data [14:32:49]requested_item fm.sn is exist - process it [14:32:49]wFMCommunicate request_size=4 [14:32:49]MH_SAM_APDU [14:32:49]CAPDU: 80 11 00 00 [14:32:49]Write to MH i2c: E2 08 00 73 12 80 11 00 00 00 00 00 00 FF [14:32:49]Write i2c OK [14:32:49]MH_I2C_Read... [14:32:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:49]Read from MH i2c: E2 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: E2 17 00 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: E2 17 00 73 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 56 [14:32:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [14:32:49]wFMCommunicate OK [14:32:49]requested_item fd.num is exist - process it [14:32:49]SAM_PROTO_GetFieldsCounters [14:32:49]wFMCommunicate request_size=4 [14:32:49]MH_SAM_APDU [14:32:49]CAPDU: 80 13 00 00 [14:32:49]Write to MH i2c: E2 08 00 74 12 80 13 00 00 00 00 00 00 02 [14:32:49]Write i2c OK [14:32:49]MH_I2C_Read... [14:32:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:49]Read from MH i2c: E2 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: E2 62 00 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: E2 62 00 74 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 94 10 01 00 0E 04 04 00 0E 02 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 AD [14:32: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 94 10 01 00 0E 04 04 00 0E 02 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 [14:32:49]wFMCommunicate OK [14:32:49]SAM_PROTO_GetFieldsCounters done [14:32:49]requested_item shift.num is exist - process it [14:32:49]requested_item shift.opened is exist - process it [14:32:49]req_shift_opened [14:32:49]FM_GetShiftState [14:32:49]SAM_PROTO_GetShiftState [14:32:49]wFMCommunicate request_size=4 [14:32:49]MH_SAM_APDU [14:32:49]CAPDU: 80 13 01 00 [14:32:49]Write to MH i2c: E2 08 00 75 12 80 13 01 00 00 00 00 00 04 [14:32:49]Write i2c OK [14:32:49]MH_I2C_Read... [14:32:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:50]Read from MH i2c: E2 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: E2 0E 00 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: E2 0E 00 75 12 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 96 [14:32:50]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [14:32:50]wFMCommunicate OK [14:32:50]SAM_PROTO_GetShiftState done [14:32:50]FM_GetShiftState done [14:32:50]req_shift_opened done [14:32:50]requested_item shift.open_date is exist - process it [14:32:50]req_shift_open_date [14:32:50]req_shift_open_date done [14:32:50]produce_requested_data done [14:32:50]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69780,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [14:32:50]process_action_free close_receipt [14:32:50]json_value_free [14:32:50]json_value_free done [14:32:50]process_json_proto returns [14:32:50]Send response to host [14:32:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69780,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [14:32:50]free response buf [14:32:50]execute_script done [14:32:50]execute_script returns [14:32:50]free content buf [14:32:50]Sock 7.Close socket [14:32:50]Sock 7.Thread stoped [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:33]OFD Sender: No OFD packet to send [14:34:38]OFD Sender: No OFD packet to send [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:48]OFD Sender: No OFD packet to send [14:35:53]OFD Sender: No OFD packet to send [14:35:58]OFD Sender: No OFD packet to send [14:36:03]OFD Sender: No OFD packet to send [14:36:08]OFD Sender: No OFD packet to send [14:36:13]OFD Sender: No OFD packet to send [14:36:18]OFD Sender: No OFD packet to send [14:36:23]OFD Sender: No OFD packet to send [14:36:28]OFD Sender: No OFD packet to send [14:36:33]OFD Sender: No OFD packet to send [14:36:38]OFD Sender: No OFD packet to send [14:36:43]OFD Sender: No OFD packet to send [14:36:48]OFD Sender: No OFD packet to send [14:36:53]OFD Sender: No OFD packet to send [14:36:58]OFD Sender: No OFD packet to send [14:37:03]OFD Sender: No OFD packet to send [14:37:08]OFD Sender: No OFD packet to send [14:37:13]OFD Sender: No OFD packet to send [14:37:18]OFD Sender: No OFD packet to send [14:37:23]OFD Sender: No OFD packet to send [14:37:28]OFD Sender: No OFD packet to send [14:37:33]OFD Sender: No OFD packet to send [14:37:38]OFD Sender: No OFD packet to send [14:37:43]OFD Sender: No OFD packet to send [14:37:48]OFD Sender: No OFD packet to send [14:37:53]OFD Sender: No OFD packet to send [14:37:58]OFD Sender: No OFD packet to send [14:38:03]OFD Sender: No OFD packet to send [14:38:08]OFD Sender: No OFD packet to send [14:38:13]OFD Sender: No OFD packet to send [14:38:18]OFD Sender: No OFD packet to send [14:38:23]OFD Sender: No OFD packet to send [14:38:28]OFD Sender: No OFD packet to send [14:38:33]OFD Sender: No OFD packet to send [14:38:38]OFD Sender: No OFD packet to send [14:38:43]OFD Sender: No OFD packet to send [14:38:48]OFD Sender: No OFD packet to send [14:38:53]OFD Sender: No OFD packet to send [14:38:58]OFD Sender: No OFD packet to send [14:39:03]OFD Sender: No OFD packet to send [14:39:08]OFD Sender: No OFD packet to send [14:39:13]OFD Sender: No OFD packet to send [14:39:18]OFD Sender: No OFD packet to send [14:39:23]OFD Sender: No OFD packet to send [14:39:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:48]OFD Sender: No OFD packet to send [14:39:53]OFD Sender: No OFD packet to send [14:39:58]OFD Sender: No OFD packet to send [14:40:03]OFD Sender: No OFD packet to send [14:40:08]OFD Sender: No OFD packet to send [14:40:13]OFD Sender: No OFD packet to send [14:40:18]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:14]OFD Sender: No OFD packet to send [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:37]accept exits with 9 [14:42:37]New connection [14:42:37]New thread 3066486116 created [14:42:37]Thread 3066629476 joined [14:42:37]Waiting for new connection... [14:42:37] Sock 9.Parse request [14:42:37]Sock 9.Check first char [14:42:37]Sock 9.First char is OK [14:42:37]request: POST /json_proto HTTP/1.0 [14:42:37]Method: POST [14:42:37]URL: /json_proto [14:42:37]Method is POST - this is cgi request [14:42:37]url: /json_proto [14:42:37]query_string will be loaded in cgi processing [14:42:37]execute_cgi json_proto POST (null) [14:42:37]execute_cgi path=json_proto method=POST [14:42:37]POST find Content-Length [14:42:37]Host: 172.17.52.196:8080 [14:42:37]Content-Length: 622 [14:42:37]Content-Type: application/json [14:42:37] [14:42:37]POST finish read [14:42:37]Found Content-Length = 622 [14:42:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127179", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:37]execute_script... [14:42: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 : (3)127179", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:37]POST & json_proto [14:42:37]process_json_proto [14:42:37]json parsed OK: [14:42:37]protocol is kg_v1.0 [14:42:37]action value=close_receipt [14:42:37]process_action close_receipt [14:42:37]cmd_close_receipt [14:42:37]MH_GetDate [14:42:37]Write to MH i2c: F0 00 00 76 12 77 [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: F0 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: F0 09 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: F0 09 00 76 12 00 E0 16 15 67 60 05 E4 66 A1 [14:42:37]GetLastDocTimeStamp 1729434768 [14:42:37]current date 1729435360 [14:42:37]FM_GetShiftState [14:42:37]SAM_PROTO_GetShiftState [14:42:37]wFMCommunicate request_size=4 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 13 01 00 [14:42:37]Write to MH i2c: E2 08 00 77 12 80 13 01 00 00 00 00 00 06 [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:37]Read from MH i2c: E2 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 0E 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 0E 00 77 12 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 98 [14:42:37]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [14:42:37]wFMCommunicate OK [14:42:37]SAM_PROTO_GetShiftState done [14:42:37]FM_GetShiftState done [14:42:37]opened in 1729384380 [14:42:37]opened+sec_in_day 1729470780 [14:42:37]quantity*price = 15400 [14:42:37]sum+1 = 15401 [14:42:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 71 20.10.2024 14:42 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69781 ФПД: 246940221086472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144240&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69781&fm=246940221086472&tin=02508201610067®Number=0000000000091770&sum=15400 0 [14:42:38]StoreToDocumentArchive [14:42:38]shift 526 fd 69781 [14:42:38]save to /storage/0526/doc_00069781 [14:42:38]save last doc name /storage/0526/doc_00069781 to /storage/kkm_last_doc_name [14:42:38]save OK [14:42:38]Clear old archive folders... [14:42:38]ProcessDocumentItem done err = 0, tmpTLVsize=274 [14:42:38]tlvbuf is 009F47E0 [14:42:38]SAM_PROTO_ClearQueue [14:42:38]wFMCommunicate request_size=4 [14:42:38]MH_SAM_APDU [14:42:38]CAPDU: 80 09 00 00 [14:42:38]Write to MH i2c: E2 08 00 84 12 80 09 00 00 00 00 00 00 08 [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:38]Read from MH i2c: E2 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 03 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 03 00 84 12 00 90 00 0A [14:42:38]RAPDU: 90 00 [14:42:38]wFMCommunicate OK [14:42:38]SAM_PROTO_ClearQueue done [14:42:38]KKMCreateOFDPacket [14:42:38]OFDProtocolAddRootSTLVToBuf [14:42:38]FM_MakeSignedData [14:42:38]FM_MakeSignedData [14:42:38]SAM_PROTO_SignData [14:42:38]wFMCommunicate request_size=4 [14:42:38]MH_SAM_APDU [14:42:38]CAPDU: 80 0D 01 02 [14:42:38]Write to MH i2c: E2 08 00 85 12 80 0D 01 02 00 00 00 00 10 [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:38]Read from MH i2c: E2 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 03 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 03 00 85 12 00 90 00 0B [14:42:38]RAPDU: 90 00 [14:42:38]wFMCommunicate OK [14:42:38]wFMCommunicate request_size=255 [14:42:38]MH_SAM_APDU [14:42:38]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 E0 16 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 [14:42:38]Write to MH i2c: E2 02 01 86 12 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 E0 16 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 00 00 65 [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:39]OFD Sender: No OFD packet to send [14:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:39]Read from MH i2c: E2 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: E2 03 00 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: E2 03 00 86 12 00 90 00 0C [14:42:39]RAPDU: 90 00 [14:42:39]wFMCommunicate OK [14:42:39]wFMCommunicate request_size=33 [14:42:39]MH_SAM_APDU [14:42:39]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 37 34 39 10 04 04 00 95 10 01 00 35 04 06 00 E0 97 40 28 9B 08 [14:42:39]Write to MH i2c: E2 24 00 87 12 80 0D 02 02 1C 00 30 30 30 30 38 37 31 37 34 39 10 04 04 00 95 10 01 00 35 04 06 00 E0 97 40 28 9B 08 00 00 CE [14:42:39]Write i2c OK [14:42:39]MH_I2C_Read... [14:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:39]Read from MH i2c: E2 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: E2 03 00 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: E2 03 00 87 12 00 90 00 0D [14:42:39]RAPDU: 90 00 [14:42:39]wFMCommunicate OK [14:42:39]wFMCommunicate request_size=4 [14:42:39]MH_SAM_APDU [14:42:39]CAPDU: 80 0D 03 02 [14:42:39]Write to MH i2c: E2 08 00 88 12 80 0D 03 02 00 00 00 00 15 [14:42:39]Write i2c OK [14:42:39]MH_I2C_Read... [14:42:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:39]Read from MH i2c: E2 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: E2 0B 00 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: E2 0B 00 88 12 00 EA B8 4D BC F8 19 22 0B 90 00 FF [14:42:39]RAPDU: EA B8 4D BC F8 19 22 0B 90 00 [14:42:39]wFMCommunicate OK [14:42:39]SAM_PROTO_SignData done [14:42:39]FM_MakeSignedData done [14:42:39]CreateOFDProtocolMessage [14:42:39]wFMCommunicate request_size=4 [14:42:39]MH_SAM_APDU [14:42:39]CAPDU: 80 11 00 00 [14:42:39]Write to MH i2c: E2 08 00 89 12 80 11 00 00 00 00 00 00 15 [14:42:39]Write i2c OK [14:42:39]MH_I2C_Read... [14:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:39]Read from MH i2c: E2 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: E2 17 00 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: E2 17 00 89 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 6C [14:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [14:42:39]wFMCommunicate OK [14:42:39]CreateOFDProtocolMessage done [14:42:39]OFDSenderStorePacket 69781 [14:42:39]StoreOFDPacket docnum=69781 [14:42:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 90 39 1E 01 24 87 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 E0 16 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 95 10 01 00 35 04 06 00 E0 97 40 28 9B 08 EA B8 4D BC F8 19 22 0B [14:42:39]CheckFolder [14:42:39]dirname=/storage/ofd_packets [14:42:39]CheckFolder done [14:42:39]ProducePacketName [14:42:39]name=ofd_packets/00069781 [14:42:39]NVStorageSaveData ofd_packets/00069781 [14:42:39]File name is /storage/ofd_packets/00069781 [14:42:39]Write 324 bytes [14:42:39]NVStorageSaveData done [14:42:39]OFDSenderStorePacket done [14:42:39]KKMCreateOFDPacket done [14:42:39]NVStorageSaveData kkm_last_timestamp [14:42:39]File name is /storage/kkm_last_timestamp [14:42:39]Write 4 bytes [14:42:39]NVStorageSaveData done [14:42:39]ExternCall_PrintAddStr [14:42:39]wPrintStart [14:42:39]Write to MH i2c: 01 00 00 8A 12 9C [14:42:39]Write i2c OK [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: 01 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: 01 07 00 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: 01 07 00 8A 12 00 00 00 00 00 FF 0F B1 [14:42:39]RasterBufferAndPrint [14:42:39]line Счет N : (3)127179 [14:42:39]line ИНН: 02508201610067 [14:42:39]line Контрольно-Кассовый Чек [14:42:39]line ПРОДАЖА [14:42:39]line Товар: 46230614 [14:42:39]line Сигареты Richmond Red Edition [14:42:39]line 1.000 * 154.00 [14:42:39]line = 154.00 [14:42:39]line НДС 12% НСП 1% [14:42:39]line > о реализуемом товаре [14:42:39]line ИТОГО: 154.00 [14:42:39]line НСП 1% : 1.36 [14:42:39]line НДС 12% : 16.35 [14:42:39]line Наличными: 154.00 [14:42:39]line Безнал.: 0.00 [14:42:39]line Место: АЗС № 163 "Партнер Нефть" [14:42:39]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [14:42:39]line СНО: Общий режим [14:42:39]line Чек 71 20.10.2024 14:42 [14:42:39]line Смена: 526 ФФД: 1.0 [14:42:39]line ЗНМ: 0300000101 [14:42:39]line РНМ: 0000000000091770 [14:42:39]line Версия ККМ: 001 [14:42:39]line ФМ: 0000000000871749 [14:42:39]line ФД: 69781 [14:42:39]line ФПД: 246940221086472 [14:42:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144240&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69781&fm=246940221086472&tin=02508201610067®Number=0000000000091770&sum=15400 [14:42:39]OFD Sender: Processing packet 69781 [packets to send 32, broken 31] [14:42:39]ProducePacketName [14:42:39]name=ofd_packets/00069781 [14:42:39]OFD Sender: To server: pG, [14:42:39]CommunicateWithHost lk.salyk.kg:30040 [14:42:39]ConnectInit lk.salyk.kg [14:42:39]line 0 [14:42:39]written 0, free lines is 4095 [14:42:39]Connected sock=10 [14:42:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 90 39 1E 01 24 87 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 E0 16 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 95 10 01 00 35 04 06 00 E0 97 40 28 9B 08 EA B8 4D BC F8 19 22 0B [14:42:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 51 ED 47 00 5C 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 31 37 34 39 10 04 04 00 95 10 01 00 F4 03 04 00 62 BC 14 67 B6 04 01 00 00 36 9A 14 AC 09 6F 7F 27 [14:42:40]CommunicateWithHost err = 0 [14:42:40]CheckOFDResponse [14:42:40]1017 (14) - 77093643461234 [14:42:40]1041 (16) - 0000000000871749 [14:42:40]1040 (4) - 69781 [14:42:40]1012 (4) - 20.10.2024 08:16 [14:42:40]1206 (1) - 0 [14:42:40]OFD Sender: Remove packet 69781 [14:42:40]ProducePacketName [14:42:40]name=ofd_packets/00069781 [14:42:40]NVStorageDeleteData [14:42:40]Write to MH i2c: 01 00 00 B3 12 C5 [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 07 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 07 00 B3 12 00 00 00 00 00 E5 0C BD [14:42:40]RasterBufferAndPrint [14:42:40]line [14:42:40]line [14:42:40]line [14:42:40]line [14:42:40]line [14:42:40]written 0, free lines is 3307 [14:42:40]MH_Cut [14:42:40]Write to MH i2c: D1 01 00 BA 12 01 9E [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: D1 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: D1 01 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: D1 01 00 BA 12 00 9D [14:42:40]Write to MH i2c: 01 00 00 BB 12 CD [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]OFD Sender: No OFD packet to send [14:42:40]*** Cut start [14:42:40]*** Partial cut [14:42:40]*** CUTSNS_PIN = 1 [14:42:41]*** CUTSNS_PIN = 0 [14:42:41]*** Brake cut motor [14:42:41]Read from MH i2c: 01 [14:42:41]MH_I2C_Read... [14:42:41]*** Stop cut motor [14:42:41]*** Cut end [14:42:41]Read from MH i2c: 01 07 00 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: 01 07 00 BB 12 00 00 00 00 00 FF 0F E2 [14:42:41]process_action close_receipt done [14:42:41]requested_data is exist [14:42:41]produce_requested_data [14:42:41]requested_item fm.sn is exist - process it [14:42:41]wFMCommunicate request_size=4 [14:42:41]MH_SAM_APDU [14:42:41]CAPDU: 80 11 00 00 [14:42:41]Write to MH i2c: E2 08 00 BC 12 80 11 00 00 00 00 00 00 48 [14:42:41]Write i2c OK [14:42:41]MH_I2C_Read... [14:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:41]Read from MH i2c: E2 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: E2 17 00 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: E2 17 00 BC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 9F [14:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [14:42:41]wFMCommunicate OK [14:42:41]requested_item fd.num is exist - process it [14:42:41]SAM_PROTO_GetFieldsCounters [14:42:41]wFMCommunicate request_size=4 [14:42:41]MH_SAM_APDU [14:42:41]CAPDU: 80 13 00 00 [14:42:41]Write to MH i2c: E2 08 00 BD 12 80 13 00 00 00 00 00 00 4B [14:42:41]Write i2c OK [14:42:41]MH_I2C_Read... [14:42:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:41]Read from MH i2c: E2 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: E2 62 00 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: E2 62 00 BD 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 95 10 01 00 0E 04 04 00 0E 02 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 FA [14:42:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 95 10 01 00 0E 04 04 00 0E 02 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 [14:42:41]wFMCommunicate OK [14:42:41]SAM_PROTO_GetFieldsCounters done [14:42:41]requested_item shift.num is exist - process it [14:42:41]requested_item shift.opened is exist - process it [14:42:41]req_shift_opened [14:42:41]FM_GetShiftState [14:42:41]SAM_PROTO_GetShiftState [14:42:41]wFMCommunicate request_size=4 [14:42:41]MH_SAM_APDU [14:42:41]CAPDU: 80 13 01 00 [14:42:41]Write to MH i2c: E2 08 00 BE 12 80 13 01 00 00 00 00 00 4D [14:42:41]Write i2c OK [14:42:41]MH_I2C_Read... [14:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:42]Read from MH i2c: E2 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 0E 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 0E 00 BE 12 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 DF [14:42:42]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [14:42:42]wFMCommunicate OK [14:42:42]SAM_PROTO_GetShiftState done [14:42:42]FM_GetShiftState done [14:42:42]req_shift_opened done [14:42:42]requested_item shift.open_date is exist - process it [14:42:42]req_shift_open_date [14:42:42]req_shift_open_date done [14:42:42]produce_requested_data done [14:42:42]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69781,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [14:42:42]process_action_free close_receipt [14:42:42]json_value_free [14:42:42]json_value_free done [14:42:42]process_json_proto returns [14:42:42]Send response to host [14:42:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69781,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [14:42:42]free response buf [14:42:42]execute_script done [14:42:42]execute_script returns [14:42:42]free content buf [14:42:42]Sock 9.Close socket [14:42:42]Sock 9.Thread stoped [14:42:42]accept exits with 7 [14:42:42]New connection [14:42:42]New thread 3066629476 created [14:42:42]Thread 3066486116 joined [14:42:42]Waiting for new connection... [14:42:42] Sock 7.Parse request [14:42:42]Sock 7.Check first char [14:42:42]Sock 7.First char is OK [14:42:42]request: POST /json_proto HTTP/1.0 [14:42:42]Method: POST [14:42:42]URL: /json_proto [14:42:42]Method is POST - this is cgi request [14:42:42]url: /json_proto [14:42:42]query_string will be loaded in cgi processing [14:42:42]execute_cgi json_proto POST (null) [14:42:42]execute_cgi path=json_proto method=POST [14:42:42]POST find Content-Length [14:42:42]Host: 172.17.52.196:8080 [14:42:42]Content-Length: 623 [14:42:42]Content-Type: application/json [14:42:42] [14:42:42]POST finish read [14:42:42]Found Content-Length = 623 [14:42:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127180", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:42]execute_script... [14:42: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)127180", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:42]POST & json_proto [14:42:42]process_json_proto [14:42:42]json parsed OK: [14:42:42]protocol is kg_v1.0 [14:42:42]action value=close_receipt [14:42:42]process_action close_receipt [14:42:42]cmd_close_receipt [14:42:42]MH_GetDate [14:42:42]Write to MH i2c: F0 00 00 BF 12 C0 [14:42:42]Write i2c OK [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: F0 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: F0 09 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: F0 09 00 BF 12 00 E5 16 15 67 60 05 E4 66 EF [14:42:42]GetLastDocTimeStamp 1729435360 [14:42:42]current date 1729435365 [14:42:42]FM_GetShiftState [14:42:42]SAM_PROTO_GetShiftState [14:42:42]wFMCommunicate request_size=4 [14:42:42]MH_SAM_APDU [14:42:42]CAPDU: 80 13 01 00 [14:42:42]Write to MH i2c: E2 08 00 C0 12 80 13 01 00 00 00 00 00 4F [14:42:42]Write i2c OK [14:42:42]MH_I2C_Read... [14:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:42]Read from MH i2c: E2 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 0E 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 0E 00 C0 12 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 E1 [14:42:42]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [14:42:42]wFMCommunicate OK [14:42:42]SAM_PROTO_GetShiftState done [14:42:42]FM_GetShiftState done [14:42:42]opened in 1729384380 [14:42:42]opened+sec_in_day 1729470780 [14:42:42]quantity*price = 14400 [14:42:42]sum+1 = 14401 [14:42:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 72 20.10.2024 14:42 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69782 ФПД: 99579293203915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144245&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69782&fm=99579293203915&tin=02508201610067®Number=0000000000091770&sum=14400 0 [14:42:44]StoreToDocumentArchive [14:42:44]shift 526 fd 69782 [14:42:44]save to /storage/0526/doc_00069782 [14:42:44]save last doc name /storage/0526/doc_00069782 to /storage/kkm_last_doc_name [14:42:44]save OK [14:42:44]Clear old archive folders... [14:42:44]ProcessDocumentItem done err = 0, tmpTLVsize=275 [14:42:44]tlvbuf is 009A09A0 [14:42:44]SAM_PROTO_ClearQueue [14:42:44]wFMCommunicate request_size=4 [14:42:44]MH_SAM_APDU [14:42:44]CAPDU: 80 09 00 00 [14:42:44]Write to MH i2c: E2 08 00 CD 12 80 09 00 00 00 00 00 00 51 [14:42:44]Write i2c OK [14:42:44]MH_I2C_Read... [14:42:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:44]Read from MH i2c: E2 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 03 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 03 00 CD 12 00 90 00 53 [14:42:44]RAPDU: 90 00 [14:42:44]wFMCommunicate OK [14:42:44]SAM_PROTO_ClearQueue done [14:42:44]KKMCreateOFDPacket [14:42:44]OFDProtocolAddRootSTLVToBuf [14:42:44]FM_MakeSignedData [14:42:44]FM_MakeSignedData [14:42:44]SAM_PROTO_SignData [14:42:44]wFMCommunicate request_size=4 [14:42:44]MH_SAM_APDU [14:42:44]CAPDU: 80 0D 01 02 [14:42:44]Write to MH i2c: E2 08 00 CE 12 80 0D 01 02 00 00 00 00 59 [14:42:44]Write i2c OK [14:42:44]MH_I2C_Read... [14:42:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:44]Read from MH i2c: E2 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 03 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 03 00 CE 12 00 90 00 54 [14:42:44]RAPDU: 90 00 [14:42:44]wFMCommunicate OK [14:42:44]wFMCommunicate request_size=255 [14:42:44]MH_SAM_APDU [14:42:44]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E5 16 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 [14:42:44]Write to MH i2c: E2 02 01 CF 12 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E5 16 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 00 00 2C [14:42:44]Write i2c OK [14:42:44]MH_I2C_Read... [14:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:44]Read from MH i2c: E2 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 03 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 03 00 CF 12 00 90 00 55 [14:42:44]RAPDU: 90 00 [14:42:44]wFMCommunicate OK [14:42:44]wFMCommunicate request_size=34 [14:42:44]MH_SAM_APDU [14:42:44]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 96 10 01 00 35 04 06 00 5A 91 1C 65 FD CB [14:42:44]Write to MH i2c: E2 25 00 D0 12 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 96 10 01 00 35 04 06 00 5A 91 1C 65 FD CB 00 00 FC [14:42:44]Write i2c OK [14:42:44]MH_I2C_Read... [14:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:44]Read from MH i2c: E2 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 03 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 03 00 D0 12 00 90 00 56 [14:42:44]RAPDU: 90 00 [14:42:44]wFMCommunicate OK [14:42:44]wFMCommunicate request_size=4 [14:42:44]MH_SAM_APDU [14:42:44]CAPDU: 80 0D 03 02 [14:42:44]Write to MH i2c: E2 08 00 D1 12 80 0D 03 02 00 00 00 00 5E [14:42:44]Write i2c OK [14:42:44]MH_I2C_Read... [14:42:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:44]Read from MH i2c: E2 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 0B 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 0B 00 D1 12 00 74 DA 32 84 9E 7E 0F 30 90 00 BE [14:42:44]RAPDU: 74 DA 32 84 9E 7E 0F 30 90 00 [14:42:44]wFMCommunicate OK [14:42:44]SAM_PROTO_SignData done [14:42:44]FM_MakeSignedData done [14:42:44]CreateOFDProtocolMessage [14:42:44]wFMCommunicate request_size=4 [14:42:44]MH_SAM_APDU [14:42:44]CAPDU: 80 11 00 00 [14:42:44]Write to MH i2c: E2 08 00 D2 12 80 11 00 00 00 00 00 00 5E [14:42:44]Write i2c OK [14:42:44]MH_I2C_Read... [14:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:44]Read from MH i2c: E2 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 17 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 17 00 D2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 B5 [14:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [14:42:44]wFMCommunicate OK [14:42:44]CreateOFDProtocolMessage done [14:42:44]OFDSenderStorePacket 69782 [14:42:44]StoreOFDPacket docnum=69782 [14:42:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 24 67 1F 01 83 2A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E5 16 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 96 10 01 00 35 04 06 00 5A 91 1C 65 FD CB 74 DA 32 84 9E 7E 0F 30 [14:42:44]CheckFolder [14:42:44]dirname=/storage/ofd_packets [14:42:44]CheckFolder done [14:42:44]ProducePacketName [14:42:44]name=ofd_packets/00069782 [14:42:44]NVStorageSaveData ofd_packets/00069782 [14:42:44]File name is /storage/ofd_packets/00069782 [14:42:44]Write 325 bytes [14:42:44]NVStorageSaveData done [14:42:44]OFDSenderStorePacket done [14:42:44]KKMCreateOFDPacket done [14:42:44]NVStorageSaveData kkm_last_timestamp [14:42:44]File name is /storage/kkm_last_timestamp [14:42:44]Write 4 bytes [14:42:44]NVStorageSaveData done [14:42:44]ExternCall_PrintAddStr [14:42:44]wPrintStart [14:42:44]Write to MH i2c: 01 00 00 D3 12 E5 [14:42:44]Write i2c OK [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: 01 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: 01 07 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: 01 07 00 D3 12 00 00 00 00 00 FF 0F FA [14:42:44]RasterBufferAndPrint [14:42:44]line Счет N : (3)127180 [14:42:44]line ИНН: 02508201610067 [14:42:44]line Контрольно-Кассовый Чек [14:42:44]line ПРОДАЖА [14:42:44]line Товар: 48743587 [14:42:44]line Сигареты Winston XStyle Silver [14:42:44]line 1.000 * 144.00 [14:42:44]line = 144.00 [14:42:44]line НДС 12% НСП 1% [14:42:44]line > о реализуемом товаре [14:42:44]line ИТОГО: 144.00 [14:42:44]line НСП 1% : 1.27 [14:42:44]line НДС 12% : 15.29 [14:42:44]line Наличными: 144.00 [14:42:44]line Безнал.: 0.00 [14:42:44]line Место: АЗС № 163 "Партнер Нефть" [14:42:44]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [14:42:44]line СНО: Общий режим [14:42:44]line Чек 72 20.10.2024 14:42 [14:42:44]line Смена: 526 ФФД: 1.0 [14:42:44]line ЗНМ: 0300000101 [14:42:44]line РНМ: 0000000000091770 [14:42:44]line Версия ККМ: 001 [14:42:44]line ФМ: 0000000000871749 [14:42:44]line ФД: 69782 [14:42:44]line ФПД: 99579293203915 [14:42:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T144245&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69782&fm=99579293203915&tin=02508201610067®Number=0000000000091770&sum=14400 [14:42:44]line 0 [14:42:44]written 0, free lines is 4095 [14:42:44]OFD Sender: Processing packet 69782 [packets to send 32, broken 31] [14:42:44]ProducePacketName [14:42:44]name=ofd_packets/00069782 [14:42:44]OFD Sender: To server: pG, [14:42:44]CommunicateWithHost lk.salyk.kg:30040 [14:42:44]ConnectInit lk.salyk.kg [14:42:45]Connected sock=11 [14: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 31 37 34 39 27 01 00 00 24 67 1F 01 83 2A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E5 16 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 96 10 01 00 35 04 06 00 5A 91 1C 65 FD CB 74 DA 32 84 9E 7E 0F 30 [14:42:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 CF 5B 47 00 15 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 31 37 34 39 10 04 04 00 96 10 01 00 F4 03 04 00 67 BC 14 67 B6 04 01 00 00 26 8C 87 23 3E 70 EF 88 [14:42:45]CommunicateWithHost err = 0 [14:42:45]CheckOFDResponse [14:42:45]1017 (14) - 77093643461234 [14:42:45]1041 (16) - 0000000000871749 [14:42:45]1040 (4) - 69782 [14:42:45]1012 (4) - 20.10.2024 08:16 [14:42:45]1206 (1) - 0 [14:42:45]OFD Sender: Remove packet 69782 [14:42:45]ProducePacketName [14:42:45]name=ofd_packets/00069782 [14:42:45]NVStorageDeleteData [14:42:45]Write to MH i2c: 01 00 00 FC 12 0E [14:42:45]Write i2c OK [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: 01 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: 01 07 00 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: 01 07 00 FC 12 00 00 00 00 00 F6 0C 17 [14:42:45]RasterBufferAndPrint [14:42:45]line [14:42:45]line [14:42:45]line [14:42:45]line [14:42:45]line [14:42:45]written 0, free lines is 3327 [14:42:45]MH_Cut [14:42:45]Write to MH i2c: D1 01 00 03 13 01 E8 [14:42:45]Write i2c OK [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: D1 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: D1 01 00 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: D1 01 00 03 13 00 E7 [14:42:45]Write to MH i2c: 01 00 00 04 13 17 [14:42:45]Write i2c OK [14:42:45]MH_I2C_Read... [14:42:45]OFD Sender: No OFD packet to send [14:42:46]*** Cut start [14:42:46]*** Partial cut [14:42:46]*** CUTSNS_PIN = 1 [14:42:46]*** CUTSNS_PIN = 0 [14:42:46]*** Brake cut motor [14:42:46]Read from MH i2c: 01 [14:42:46]MH_I2C_Read... [14:42:46]*** Stop cut motor [14:42:46]*** Cut end [14:42:46]Read from MH i2c: 01 07 00 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: 01 07 00 04 13 00 00 00 00 00 FF 0F 2C [14:42:46]process_action close_receipt done [14:42:46]requested_data is exist [14:42:46]produce_requested_data [14:42:46]requested_item fm.sn is exist - process it [14:42:46]wFMCommunicate request_size=4 [14:42:46]MH_SAM_APDU [14:42:46]CAPDU: 80 11 00 00 [14:42:46]Write to MH i2c: E2 08 00 05 13 80 11 00 00 00 00 00 00 92 [14:42:46]Write i2c OK [14:42:46]MH_I2C_Read... [14:42:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:46]Read from MH i2c: E2 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 17 00 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 17 00 05 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 E9 [14:42:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [14:42:46]wFMCommunicate OK [14:42:46]requested_item fd.num is exist - process it [14:42:46]SAM_PROTO_GetFieldsCounters [14:42:46]wFMCommunicate request_size=4 [14:42:46]MH_SAM_APDU [14:42:46]CAPDU: 80 13 00 00 [14:42:46]Write to MH i2c: E2 08 00 06 13 80 13 00 00 00 00 00 00 95 [14:42:46]Write i2c OK [14:42:46]MH_I2C_Read... [14:42:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:47]Read from MH i2c: E2 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: E2 62 00 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: E2 62 00 06 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 96 10 01 00 0E 04 04 00 0E 02 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 48 [14: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 96 10 01 00 0E 04 04 00 0E 02 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 [14:42:47]wFMCommunicate OK [14:42:47]SAM_PROTO_GetFieldsCounters done [14:42:47]requested_item shift.num is exist - process it [14:42:47]requested_item shift.opened is exist - process it [14:42:47]req_shift_opened [14:42:47]FM_GetShiftState [14:42:47]SAM_PROTO_GetShiftState [14:42:47]wFMCommunicate request_size=4 [14:42:47]MH_SAM_APDU [14:42:47]CAPDU: 80 13 01 00 [14:42:47]Write to MH i2c: E2 08 00 07 13 80 13 01 00 00 00 00 00 97 [14:42:47]Write i2c OK [14:42:47]MH_I2C_Read... [14:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:47]Read from MH i2c: E2 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: E2 0E 00 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: E2 0E 00 07 13 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 29 [14:42:47]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [14:42:47]wFMCommunicate OK [14:42:47]SAM_PROTO_GetShiftState done [14:42:47]FM_GetShiftState done [14:42:47]req_shift_opened done [14:42:47]requested_item shift.open_date is exist - process it [14:42:47]req_shift_open_date [14:42:47]req_shift_open_date done [14:42:47]produce_requested_data done [14:42:47]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69782,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [14:42:47]process_action_free close_receipt [14:42:47]json_value_free [14:42:47]json_value_free done [14:42:47]process_json_proto returns [14:42:47]Send response to host [14:42:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69782,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [14:42:47]free response buf [14:42:47]execute_script done [14:42:47]execute_script returns [14:42:47]free content buf [14:42:47]Sock 7.Close socket [14:42:47]Sock 7.Thread stoped [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [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:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]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]accept exits with 9 [15:07:16]New connection [15:07:16]New thread 3066486116 created [15:07:16]Thread 3066629476 joined [15:07:16]Waiting for new connection... [15:07:16] Sock 9.Parse request [15:07:16]Sock 9.Check first char [15:07:16]Sock 9.First char is OK [15:07:16]request: POST /json_proto HTTP/1.0 [15:07:16]Method: POST [15:07:16]URL: /json_proto [15:07:16]Method is POST - this is cgi request [15:07:16]url: /json_proto [15:07:16]query_string will be loaded in cgi processing [15:07:16]execute_cgi json_proto POST (null) [15:07:16]execute_cgi path=json_proto method=POST [15:07:16]POST find Content-Length [15:07:16]Host: 172.17.52.196:8080 [15:07:16]Content-Length: 668 [15:07:16]Content-Type: application/json [15:07:16] [15:07:16]POST finish read [15:07:16]Found Content-Length = 668 [15:07:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127181", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:16]execute_script... [15: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 : (3)127181", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:16]POST & json_proto [15:07:16]process_json_proto [15:07:16]json parsed OK: [15:07:16]protocol is kg_v1.0 [15:07:16]action value=close_receipt [15:07:16]process_action close_receipt [15:07:16]cmd_close_receipt [15:07:16]MH_GetDate [15:07:16]Write to MH i2c: F0 00 00 08 13 0A [15:07:16]Write i2c OK [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: F0 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: F0 09 00 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: F0 09 00 08 13 00 A7 1C 15 67 60 05 E4 66 01 [15:07:16]GetLastDocTimeStamp 1729435365 [15:07:16]current date 1729436839 [15:07:16]FM_GetShiftState [15:07:16]SAM_PROTO_GetShiftState [15:07:16]wFMCommunicate request_size=4 [15:07:16]MH_SAM_APDU [15:07:16]CAPDU: 80 13 01 00 [15:07:16]Write to MH i2c: E2 08 00 09 13 80 13 01 00 00 00 00 00 99 [15:07:16]Write i2c OK [15:07:16]MH_I2C_Read... [15:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:16]Read from MH i2c: E2 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: E2 0E 00 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: E2 0E 00 09 13 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 2B [15:07:16]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:07:16]wFMCommunicate OK [15:07:16]SAM_PROTO_GetShiftState done [15:07:16]FM_GetShiftState done [15:07:16]opened in 1729384380 [15:07:16]opened+sec_in_day 1729470780 [15:07:16]quantity*price = 5900 [15:07:16]sum+1 = 5901 [15:07:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 73 20.10.2024 15:07 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69783 ФПД: 117368737257236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150719&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69783&fm=117368737257236&tin=02508201610067®Number=0000000000091770&sum=5900 0 [15:07:17]StoreToDocumentArchive [15:07:17]shift 526 fd 69783 [15:07:17]save to /storage/0526/doc_00069783 [15:07:17]save last doc name /storage/0526/doc_00069783 to /storage/kkm_last_doc_name [15:07:17]save OK [15:07:17]Clear old archive folders... [15:07:17]ProcessDocumentItem done err = 0, tmpTLVsize=283 [15:07:17]tlvbuf is 009EEC10 [15:07:17]SAM_PROTO_ClearQueue [15:07:17]wFMCommunicate request_size=4 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 09 00 00 [15:07:17]Write to MH i2c: E2 08 00 16 13 80 09 00 00 00 00 00 00 9B [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 16 13 00 90 00 9D [15:07:17]RAPDU: 90 00 [15:07:17]wFMCommunicate OK [15:07:17]SAM_PROTO_ClearQueue done [15:07:17]KKMCreateOFDPacket [15:07:17]OFDProtocolAddRootSTLVToBuf [15:07:17]FM_MakeSignedData [15:07:17]FM_MakeSignedData [15:07:17]SAM_PROTO_SignData [15:07:17]wFMCommunicate request_size=4 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 0D 01 02 [15:07:17]Write to MH i2c: E2 08 00 17 13 80 0D 01 02 00 00 00 00 A3 [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 17 13 00 90 00 9E [15:07:17]RAPDU: 90 00 [15:07:17]wFMCommunicate OK [15:07:17]wFMCommunicate request_size=255 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A7 1C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 [15:07:17]Write to MH i2c: E2 02 01 18 13 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A7 1C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 00 00 98 [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:18]Read from MH i2c: E2 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 03 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 03 00 18 13 00 90 00 9F [15:07:18]RAPDU: 90 00 [15:07:18]wFMCommunicate OK [15:07:18]wFMCommunicate request_size=42 [15:07:18]MH_SAM_APDU [15:07:18]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 97 10 01 00 35 04 06 00 6A BF 09 E4 57 14 [15:07:18]Write to MH i2c: E2 2D 00 19 13 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 97 10 01 00 35 04 06 00 6A BF 09 E4 57 14 00 00 A8 [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:18]Read from MH i2c: E2 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 03 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 03 00 19 13 00 90 00 A0 [15:07:18]RAPDU: 90 00 [15:07:18]wFMCommunicate OK [15:07:18]wFMCommunicate request_size=4 [15:07:18]MH_SAM_APDU [15:07:18]CAPDU: 80 0D 03 02 [15:07:18]Write to MH i2c: E2 08 00 1A 13 80 0D 03 02 00 00 00 00 A8 [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:18]Read from MH i2c: E2 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 0B 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 0B 00 1A 13 00 F1 E7 C7 32 3C F8 D0 5D 90 00 DB [15:07:18]RAPDU: F1 E7 C7 32 3C F8 D0 5D 90 00 [15:07:18]wFMCommunicate OK [15:07:18]SAM_PROTO_SignData done [15:07:18]FM_MakeSignedData done [15:07:18]CreateOFDProtocolMessage [15:07:18]wFMCommunicate request_size=4 [15:07:18]MH_SAM_APDU [15:07:18]CAPDU: 80 11 00 00 [15:07:18]Write to MH i2c: E2 08 00 1B 13 80 11 00 00 00 00 00 00 A8 [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:18]Read from MH i2c: E2 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 17 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 17 00 1B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 FF [15:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:07:18]wFMCommunicate OK [15:07:18]CreateOFDProtocolMessage done [15:07:18]OFDSenderStorePacket 69783 [15:07:18]StoreOFDPacket docnum=69783 [15:07:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2F 01 00 00 EA A8 27 01 05 A4 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A7 1C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 97 10 01 00 35 04 06 00 6A BF 09 E4 57 14 F1 E7 C7 32 3C F8 D0 5D [15:07:18]CheckFolder [15:07:18]dirname=/storage/ofd_packets [15:07:18]CheckFolder done [15:07:18]ProducePacketName [15:07:18]name=ofd_packets/00069783 [15:07:18]NVStorageSaveData ofd_packets/00069783 [15:07:18]File name is /storage/ofd_packets/00069783 [15:07:18]Write 333 bytes [15:07:18]NVStorageSaveData done [15:07:18]OFDSenderStorePacket done [15:07:18]KKMCreateOFDPacket done [15:07:18]NVStorageSaveData kkm_last_timestamp [15:07:18]File name is /storage/kkm_last_timestamp [15:07:18]Write 4 bytes [15:07:18]NVStorageSaveData done [15:07:18]ExternCall_PrintAddStr [15:07:18]wPrintStart [15:07:18]Write to MH i2c: 01 00 00 1C 13 2F [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 07 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 07 00 1C 13 00 00 00 00 00 FF 0F 44 [15:07:18]RasterBufferAndPrint [15:07:18]line Счет N : (3)127181 [15:07:18]line ИНН: 02508201610067 [15:07:18]line Контрольно-Кассовый Чек [15:07:18]line ПРОДАЖА [15:07:18]line Товар: 4011100977624 [15:07:18]line Шок Батончик Баунти 55г [15:07:18]line 1.000 * 59.00 [15:07:18]line = 59.00 [15:07:18]line НДС 12% НСП 1% [15:07:18]line > о реализуемом товаре [15:07:18]line ИТОГО: 59.00 [15:07:18]line НСП 1% : 0.52 [15:07:18]line НДС 12% : 6.26 [15:07:18]line Наличными: 59.00 [15:07:18]line Безнал.: 0.00 [15:07:18]line Место: АЗС № 163 "Партнер Нефть" [15:07:18]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [15:07:18]line СНО: Общий режим [15:07:18]line Чек 73 20.10.2024 15:07 [15:07:18]line Смена: 526 ФФД: 1.0 [15:07:18]line ЗНМ: 0300000101 [15:07:18]line РНМ: 0000000000091770 [15:07:18]line Версия ККМ: 001 [15:07:18]line ФМ: 0000000000871749 [15:07:18]line ФД: 69783 [15:07:18]line ФПД: 117368737257236 [15:07:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150719&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69783&fm=117368737257236&tin=02508201610067®Number=0000000000091770&sum=5900 [15:07:18]line 0 [15:07:18]OFD Sender: Processing packet 69783 [packets to send 32, broken 31] [15:07:18]ProducePacketName [15:07:18]name=ofd_packets/00069783 [15:07:18]OFD Sender: To server: pG, [15:07:18]CommunicateWithHost lk.salyk.kg:30040 [15:07:18]ConnectInit lk.salyk.kg [15:07:18]written 0, free lines is 4095 [15:07:18]Connected sock=10 [15: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 31 37 34 39 2F 01 00 00 EA A8 27 01 05 A4 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A7 1C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 97 10 01 00 35 04 06 00 6A BF 09 E4 57 14 F1 E7 C7 32 3C F8 D0 5D [15:07:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 CD 0A 47 00 73 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 97 10 01 00 F4 03 04 00 29 C2 14 67 B6 04 01 00 00 D0 20 01 2A CA D8 88 89 [15:07:19]CommunicateWithHost err = 0 [15:07:19]CheckOFDResponse [15:07:19]1017 (14) - 77093643461234 [15:07:19]1041 (16) - 0000000000871749 [15:07:19]1040 (4) - 69783 [15:07:19]1012 (4) - 20.10.2024 08:41 [15:07:19]1206 (1) - 0 [15:07:19]OFD Sender: Remove packet 69783 [15:07:19]ProducePacketName [15:07:19]name=ofd_packets/00069783 [15:07:19]NVStorageDeleteData [15:07:19]Write to MH i2c: 01 00 00 44 13 57 [15:07:19]Write i2c OK [15:07:19]MH_I2C_Read... [15:07:19]Read from MH i2c: 01 [15:07:19]MH_I2C_Read... [15:07:19]Read from MH i2c: 01 07 00 [15:07:19]MH_I2C_Read... [15:07:19]Read from MH i2c: 01 07 00 44 13 00 00 00 00 00 00 0D 6B [15:07:19]RasterBufferAndPrint [15:07:19]line [15:07:19]line [15:07:19]line [15:07:19]line [15:07:19]line [15:07:19]written 0, free lines is 3334 [15:07:19]MH_Cut [15:07:19]Write to MH i2c: D1 01 00 4B 13 01 30 [15:07:19]Write i2c OK [15:07:19]MH_I2C_Read... [15:07:19]Read from MH i2c: D1 [15:07:19]MH_I2C_Read... [15:07:19]Read from MH i2c: D1 01 00 [15:07:19]MH_I2C_Read... [15:07:19]Read from MH i2c: D1 01 00 4B 13 00 2F [15:07:19]Write to MH i2c: 01 00 00 4C 13 5F [15:07:19]Write i2c OK [15:07:19]MH_I2C_Read... [15:07:19]OFD Sender: No OFD packet to send [15:07:19]*** Cut start [15:07:19]*** Partial cut [15:07:19]*** CUTSNS_PIN = 1 [15:07:20]*** CUTSNS_PIN = 0 [15:07:20]*** Brake cut motor [15:07:20]Read from MH i2c: 01 [15:07:20]MH_I2C_Read... [15:07:20]*** Stop cut motor [15:07:20]*** Cut end [15:07:20]Read from MH i2c: 01 07 00 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: 01 07 00 4C 13 00 00 00 00 00 FF 0F 74 [15:07:20]process_action close_receipt done [15:07:20]requested_data is exist [15:07:20]produce_requested_data [15:07:20]requested_item fm.sn is exist - process it [15:07:20]wFMCommunicate request_size=4 [15:07:20]MH_SAM_APDU [15:07:20]CAPDU: 80 11 00 00 [15:07:20]Write to MH i2c: E2 08 00 4D 13 80 11 00 00 00 00 00 00 DA [15:07:20]Write i2c OK [15:07:20]MH_I2C_Read... [15:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:20]Read from MH i2c: E2 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: E2 17 00 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: E2 17 00 4D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 31 [15:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:07:20]wFMCommunicate OK [15:07:20]requested_item fd.num is exist - process it [15:07:20]SAM_PROTO_GetFieldsCounters [15:07:20]wFMCommunicate request_size=4 [15:07:20]MH_SAM_APDU [15:07:20]CAPDU: 80 13 00 00 [15:07:20]Write to MH i2c: E2 08 00 4E 13 80 13 00 00 00 00 00 00 DD [15:07:20]Write i2c OK [15:07:20]MH_I2C_Read... [15:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:20]Read from MH i2c: E2 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: E2 62 00 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: E2 62 00 4E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 97 10 01 00 0E 04 04 00 0E 02 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 94 [15: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 97 10 01 00 0E 04 04 00 0E 02 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 [15:07:20]wFMCommunicate OK [15:07:20]SAM_PROTO_GetFieldsCounters done [15:07:20]requested_item shift.num is exist - process it [15:07:20]requested_item shift.opened is exist - process it [15:07:20]req_shift_opened [15:07:20]FM_GetShiftState [15:07:20]SAM_PROTO_GetShiftState [15:07:20]wFMCommunicate request_size=4 [15:07:20]MH_SAM_APDU [15:07:20]CAPDU: 80 13 01 00 [15:07:20]Write to MH i2c: E2 08 00 4F 13 80 13 01 00 00 00 00 00 DF [15:07:20]Write i2c OK [15:07:20]MH_I2C_Read... [15:07:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:21]Read from MH i2c: E2 [15:07:21]MH_I2C_Read... [15:07:21]Read from MH i2c: E2 0E 00 [15:07:21]MH_I2C_Read... [15:07:21]Read from MH i2c: E2 0E 00 4F 13 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 71 [15:07:21]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:07:21]wFMCommunicate OK [15:07:21]SAM_PROTO_GetShiftState done [15:07:21]FM_GetShiftState done [15:07:21]req_shift_opened done [15:07:21]requested_item shift.open_date is exist - process it [15:07:21]req_shift_open_date [15:07:21]req_shift_open_date done [15:07:21]produce_requested_data done [15:07:21]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69783,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [15:07:21]process_action_free close_receipt [15:07:21]json_value_free [15:07:21]json_value_free done [15:07:21]process_json_proto returns [15:07:21]Send response to host [15:07:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69783,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [15:07:21]free response buf [15:07:21]execute_script done [15:07:21]execute_script returns [15:07:21]free content buf [15:07:21]Sock 9.Close socket [15:07:21]Sock 9.Thread stoped [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:31]accept exits with 7 [15:07:31]New connection [15:07:31]New thread 3066629476 created [15:07:31]Thread 3066486116 joined [15:07:31]Waiting for new connection... [15:07:31] Sock 7.Parse request [15:07:31]Sock 7.Check first char [15:07:31]Sock 7.First char is OK [15:07:31]request: POST /json_proto HTTP/1.0 [15:07:31]Method: POST [15:07:31]URL: /json_proto [15:07:31]Method is POST - this is cgi request [15:07:31]url: /json_proto [15:07:31]query_string will be loaded in cgi processing [15:07:31]execute_cgi json_proto POST (null) [15:07:31]execute_cgi path=json_proto method=POST [15:07:31]POST find Content-Length [15:07:31]Host: 172.17.52.196:8080 [15:07:31]Content-Length: 626 [15:07:31]Content-Type: application/json [15:07:31] [15:07:31]POST finish read [15:07:31]Found Content-Length = 626 [15:07:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127182", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:31]execute_script... [15:07:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127182", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:31]POST & json_proto [15:07:31]process_json_proto [15:07:31]json parsed OK: [15:07:31]protocol is kg_v1.0 [15:07:31]action value=close_receipt [15:07:31]process_action close_receipt [15:07:31]cmd_close_receipt [15:07:31]MH_GetDate [15:07:31]Write to MH i2c: F0 00 00 50 13 52 [15:07:31]Write i2c OK [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: F0 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: F0 09 00 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: F0 09 00 50 13 00 B6 1C 15 67 60 05 E4 66 58 [15:07:31]GetLastDocTimeStamp 1729436839 [15:07:31]current date 1729436854 [15:07:31]FM_GetShiftState [15:07:31]SAM_PROTO_GetShiftState [15:07:31]wFMCommunicate request_size=4 [15:07:31]MH_SAM_APDU [15:07:31]CAPDU: 80 13 01 00 [15:07:31]Write to MH i2c: E2 08 00 51 13 80 13 01 00 00 00 00 00 E1 [15:07:31]Write i2c OK [15:07:31]MH_I2C_Read... [15:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:31]Read from MH i2c: E2 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 0E 00 [15:07:31]MH_I2C_Read... [15:07:31]Read from MH i2c: E2 0E 00 51 13 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 73 [15:07:31]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:07:31]wFMCommunicate OK [15:07:31]SAM_PROTO_GetShiftState done [15:07:31]FM_GetShiftState done [15:07:31]opened in 1729384380 [15:07:31]opened+sec_in_day 1729470780 [15:07:31]quantity*price = 13900 [15:07:31]sum+1 = 13901 [15:07:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 74 20.10.2024 15:07 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69784 ФПД: 170865734294453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150734&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69784&fm=170865734294453&tin=02508201610067®Number=0000000000091770&sum=13900 0 [15:07:32]StoreToDocumentArchive [15:07:32]shift 526 fd 69784 [15:07:32]save to /storage/0526/doc_00069784 [15:07:32]save last doc name /storage/0526/doc_00069784 to /storage/kkm_last_doc_name [15:07:32]save OK [15:07:32]Clear old archive folders... [15:07:32]ProcessDocumentItem done err = 0, tmpTLVsize=278 [15:07:32]tlvbuf is 009F4680 [15:07:32]SAM_PROTO_ClearQueue [15:07:32]wFMCommunicate request_size=4 [15:07:32]MH_SAM_APDU [15:07:32]CAPDU: 80 09 00 00 [15:07:32]Write to MH i2c: E2 08 00 5E 13 80 09 00 00 00 00 00 00 E3 [15:07:32]Write i2c OK [15:07:32]MH_I2C_Read... [15:07:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:32]Read from MH i2c: E2 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: E2 03 00 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: E2 03 00 5E 13 00 90 00 E5 [15:07:32]RAPDU: 90 00 [15:07:32]wFMCommunicate OK [15:07:32]SAM_PROTO_ClearQueue done [15:07:32]KKMCreateOFDPacket [15:07:32]OFDProtocolAddRootSTLVToBuf [15:07:32]FM_MakeSignedData [15:07:32]FM_MakeSignedData [15:07:32]SAM_PROTO_SignData [15:07:32]wFMCommunicate request_size=4 [15:07:32]MH_SAM_APDU [15:07:32]CAPDU: 80 0D 01 02 [15:07:32]Write to MH i2c: E2 08 00 5F 13 80 0D 01 02 00 00 00 00 EB [15:07:32]Write i2c OK [15:07:32]MH_I2C_Read... [15:07:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:32]Read from MH i2c: E2 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: E2 03 00 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: E2 03 00 5F 13 00 90 00 E6 [15:07:32]RAPDU: 90 00 [15:07:32]wFMCommunicate OK [15:07:32]wFMCommunicate request_size=255 [15:07:32]MH_SAM_APDU [15:07:32]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 B6 1C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 [15:07:32]Write to MH i2c: E2 02 01 60 13 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 B6 1C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 00 00 D2 [15:07:32]Write i2c OK [15:07:32]MH_I2C_Read... [15:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:33]Read from MH i2c: E2 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: E2 03 00 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: E2 03 00 60 13 00 90 00 E7 [15:07:33]RAPDU: 90 00 [15:07:33]wFMCommunicate OK [15:07:33]wFMCommunicate request_size=37 [15:07:33]MH_SAM_APDU [15:07:33]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 98 10 01 00 35 04 06 00 9B 66 C7 65 9B B5 [15:07:33]Write to MH i2c: E2 28 00 61 13 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 98 10 01 00 35 04 06 00 9B 66 C7 65 9B B5 00 00 6F [15:07:33]Write i2c OK [15:07:33]MH_I2C_Read... [15:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:33]Read from MH i2c: E2 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: E2 03 00 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: E2 03 00 61 13 00 90 00 E8 [15:07:33]RAPDU: 90 00 [15:07:33]wFMCommunicate OK [15:07:33]wFMCommunicate request_size=4 [15:07:33]MH_SAM_APDU [15:07:33]CAPDU: 80 0D 03 02 [15:07:33]Write to MH i2c: E2 08 00 62 13 80 0D 03 02 00 00 00 00 F0 [15:07:33]Write i2c OK [15:07:33]MH_I2C_Read... [15:07:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:33]Read from MH i2c: E2 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: E2 0B 00 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: E2 0B 00 62 13 00 45 7B B4 97 EE 04 47 DA 90 00 0F [15:07:33]RAPDU: 45 7B B4 97 EE 04 47 DA 90 00 [15:07:33]wFMCommunicate OK [15:07:33]SAM_PROTO_SignData done [15:07:33]FM_MakeSignedData done [15:07:33]CreateOFDProtocolMessage [15:07:33]wFMCommunicate request_size=4 [15:07:33]MH_SAM_APDU [15:07:33]CAPDU: 80 11 00 00 [15:07:33]Write to MH i2c: E2 08 00 63 13 80 11 00 00 00 00 00 00 F0 [15:07:33]Write i2c OK [15:07:33]MH_I2C_Read... [15:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:33]Read from MH i2c: E2 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: E2 17 00 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: E2 17 00 63 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 47 [15:07:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:07:33]wFMCommunicate OK [15:07:33]CreateOFDProtocolMessage done [15:07:33]OFDSenderStorePacket 69784 [15:07:33]StoreOFDPacket docnum=69784 [15:07:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2A 01 00 00 F6 A6 22 01 8C DA 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 B6 1C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 98 10 01 00 35 04 06 00 9B 66 C7 65 9B B5 45 7B B4 97 EE 04 47 DA [15:07:33]CheckFolder [15:07:33]dirname=/storage/ofd_packets [15:07:33]CheckFolder done [15:07:33]ProducePacketName [15:07:33]name=ofd_packets/00069784 [15:07:33]NVStorageSaveData ofd_packets/00069784 [15:07:33]File name is /storage/ofd_packets/00069784 [15:07:33]Write 328 bytes [15:07:33]NVStorageSaveData done [15:07:33]OFDSenderStorePacket done [15:07:33]KKMCreateOFDPacket done [15:07:33]NVStorageSaveData kkm_last_timestamp [15:07:33]File name is /storage/kkm_last_timestamp [15:07:33]Write 4 bytes [15:07:33]NVStorageSaveData done [15:07:33]ExternCall_PrintAddStr [15:07:33]wPrintStart [15:07:33]Write to MH i2c: 01 00 00 64 13 77 [15:07:33]Write i2c OK [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: 01 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: 01 07 00 [15:07:33]MH_I2C_Read... [15:07:33]Read from MH i2c: 01 07 00 64 13 00 00 00 00 00 FF 0F 8C [15:07:33]RasterBufferAndPrint [15:07:33]line Счет N : (3)127182 [15:07:33]line ИНН: 02508201610067 [15:07:33]line Контрольно-Кассовый Чек [15:07:33]line ПРОДАЖА [15:07:33]line Товар: 48741224 [15:07:33]line Сигареты Winston Super Slims Blue [15:07:33]line 1.000 * 139.00 [15:07:33]line = 139.00 [15:07:33]line НДС 12% НСП 1% [15:07:33]line > о реализуемом товаре [15:07:33]line ИТОГО: 139.00 [15:07:33]line НСП 1% : 1.23 [15:07:33]line НДС 12% : 14.76 [15:07:33]line Наличными: 139.00 [15:07:33]line Безнал.: 0.00 [15:07:33]line Место: АЗС № 163 "Партнер Нефть" [15:07:33]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [15:07:33]line СНО: Общий режим [15:07:33]line Чек 74 20.10.2024 15:07 [15:07:33]line Смена: 526 ФФД: 1.0 [15:07:33]line ЗНМ: 0300000101 [15:07:33]line РНМ: 0000000000091770 [15:07:33]line Версия ККМ: 001 [15:07:33]line ФМ: 0000000000871749 [15:07:33]line ФД: 69784 [15:07:33]line ФПД: 170865734294453 [15:07:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T150734&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69784&fm=170865734294453&tin=02508201610067®Number=0000000000091770&sum=13900 [15:07:33]line 0 [15:07:33]OFD Sender: Processing packet 69784 [packets to send 32, broken 31] [15:07:33]ProducePacketName [15:07:33]name=ofd_packets/00069784 [15:07:33]OFD Sender: To server: pG, [15:07:33]CommunicateWithHost lk.salyk.kg:30040 [15:07:33]ConnectInit lk.salyk.kg [15:07:33]written 0, free lines is 4095 [15:07:33]Connected sock=11 [15:07:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2A 01 00 00 F6 A6 22 01 8C DA 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 B6 1C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 98 10 01 00 35 04 06 00 9B 66 C7 65 9B B5 45 7B B4 97 EE 04 47 DA [15:07:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 51 F5 47 00 49 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 31 37 34 39 10 04 04 00 98 10 01 00 F4 03 04 00 38 C2 14 67 B6 04 01 00 00 42 94 FE B4 CA 7A EF 0A [15:07:33]CommunicateWithHost err = 0 [15:07:33]CheckOFDResponse [15:07:33]1017 (14) - 77093643461234 [15:07:33]1041 (16) - 0000000000871749 [15:07:33]1040 (4) - 69784 [15:07:33]1012 (4) - 20.10.2024 08:41 [15:07:33]1206 (1) - 0 [15:07:33]OFD Sender: Remove packet 69784 [15:07:33]ProducePacketName [15:07:33]name=ofd_packets/00069784 [15:07:33]NVStorageDeleteData [15:07:34]Write to MH i2c: 01 00 00 8D 13 A0 [15:07:34]Write i2c OK [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: 01 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: 01 07 00 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: 01 07 00 8D 13 00 00 00 00 00 DA 0C 8D [15:07:34]RasterBufferAndPrint [15:07:34]line [15:07:34]line [15:07:34]line [15:07:34]line [15:07:34]line [15:07:34]written 0, free lines is 3296 [15:07:34]MH_Cut [15:07:34]Write to MH i2c: D1 01 00 94 13 01 79 [15:07:34]Write i2c OK [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: D1 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: D1 01 00 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: D1 01 00 94 13 00 78 [15:07:34]Write to MH i2c: 01 00 00 95 13 A8 [15:07:34]Write i2c OK [15:07:34]MH_I2C_Read... [15:07:34]OFD Sender: No OFD packet to send [15:07:34]*** Cut start [15:07:34]*** Partial cut [15:07:34]*** CUTSNS_PIN = 1 [15:07:34]*** CUTSNS_PIN = 0 [15:07:35]*** Brake cut motor [15:07:35]Read from MH i2c: 01 [15:07:35]MH_I2C_Read... [15:07:35]*** Stop cut motor [15:07:35]*** Cut end [15:07:35]Read from MH i2c: 01 07 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: 01 07 00 95 13 00 00 00 00 00 FF 0F BD [15:07:35]process_action close_receipt done [15:07:35]requested_data is exist [15:07:35]produce_requested_data [15:07:35]requested_item fm.sn is exist - process it [15:07:35]wFMCommunicate request_size=4 [15:07:35]MH_SAM_APDU [15:07:35]CAPDU: 80 11 00 00 [15:07:35]Write to MH i2c: E2 08 00 96 13 80 11 00 00 00 00 00 00 23 [15:07:35]Write i2c OK [15:07:35]MH_I2C_Read... [15:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:35]Read from MH i2c: E2 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 17 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 17 00 96 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 7A [15:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:07:35]wFMCommunicate OK [15:07:35]requested_item fd.num is exist - process it [15:07:35]SAM_PROTO_GetFieldsCounters [15:07:35]wFMCommunicate request_size=4 [15:07:35]MH_SAM_APDU [15:07:35]CAPDU: 80 13 00 00 [15:07:35]Write to MH i2c: E2 08 00 97 13 80 13 00 00 00 00 00 00 26 [15:07:35]Write i2c OK [15:07:35]MH_I2C_Read... [15:07:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:35]Read from MH i2c: E2 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 62 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 62 00 97 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 98 10 01 00 0E 04 04 00 0E 02 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 E1 [15:07:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 98 10 01 00 0E 04 04 00 0E 02 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:07:35]wFMCommunicate OK [15:07:35]SAM_PROTO_GetFieldsCounters done [15:07:35]requested_item shift.num is exist - process it [15:07:35]requested_item shift.opened is exist - process it [15:07:35]req_shift_opened [15:07:35]FM_GetShiftState [15:07:35]SAM_PROTO_GetShiftState [15:07:35]wFMCommunicate request_size=4 [15:07:35]MH_SAM_APDU [15:07:35]CAPDU: 80 13 01 00 [15:07:35]Write to MH i2c: E2 08 00 98 13 80 13 01 00 00 00 00 00 28 [15:07:35]Write i2c OK [15:07:35]MH_I2C_Read... [15:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:35]Read from MH i2c: E2 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 0E 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 0E 00 98 13 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 BA [15:07:35]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:07:35]wFMCommunicate OK [15:07:35]SAM_PROTO_GetShiftState done [15:07:35]FM_GetShiftState done [15:07:35]req_shift_opened done [15:07:35]requested_item shift.open_date is exist - process it [15:07:35]req_shift_open_date [15:07:35]req_shift_open_date done [15:07:35]produce_requested_data done [15:07:35]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69784,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [15:07:35]process_action_free close_receipt [15:07:35]json_value_free [15:07:35]json_value_free done [15:07:35]process_json_proto returns [15:07:35]Send response to host [15:07:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69784,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [15:07:35]free response buf [15:07:35]execute_script done [15:07:35]execute_script returns [15:07:35]free content buf [15:07:35]Sock 7.Close socket [15:07:35]Sock 7.Thread stoped [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18: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:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [15:35:35]OFD Sender: No OFD packet to send [15:35:40]accept exits with 9 [15:35:40]New connection [15:35:40]New thread 3066486116 created [15:35:40]Thread 3066629476 joined [15:35:40]Waiting for new connection... [15:35:40] Sock 9.Parse request [15:35:40]Sock 9.Check first char [15:35:40]Sock 9.First char is OK [15:35:40]request: POST /json_proto HTTP/1.0 [15:35:40]Method: POST [15:35:40]URL: /json_proto [15:35:40]Method is POST - this is cgi request [15:35:40]url: /json_proto [15:35:40]query_string will be loaded in cgi processing [15:35:40]execute_cgi json_proto POST (null) [15:35:40]execute_cgi path=json_proto method=POST [15:35:40]POST find Content-Length [15:35:40]Host: 172.17.52.196:8080 [15:35:40]Content-Length: 836 [15:35:40]Content-Type: application/json [15:35:40] [15:35:40]POST finish read [15:35:40]Found Content-Length = 836 [15:35:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127183", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:40]execute_script... [15:35:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127183", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:40]POST & json_proto [15:35:40]process_json_proto [15:35:40]json parsed OK: [15:35:40]protocol is kg_v1.0 [15:35:40]action value=close_receipt [15:35:40]process_action close_receipt [15:35:40]cmd_close_receipt [15:35:40]MH_GetDate [15:35:40]Write to MH i2c: F0 00 00 99 13 9B [15:35:40]Write i2c OK [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: F0 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: F0 09 00 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: F0 09 00 99 13 00 4F 23 15 67 60 05 E4 66 41 [15:35:40]GetLastDocTimeStamp 1729436854 [15:35:40]current date 1729438543 [15:35:40]FM_GetShiftState [15:35:40]SAM_PROTO_GetShiftState [15:35:40]wFMCommunicate request_size=4 [15:35:40]MH_SAM_APDU [15:35:40]CAPDU: 80 13 01 00 [15:35:40]Write to MH i2c: E2 08 00 9A 13 80 13 01 00 00 00 00 00 2A [15:35:40]Write i2c OK [15:35:40]MH_I2C_Read... [15:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:40]Read from MH i2c: E2 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 0E 00 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 0E 00 9A 13 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 BC [15:35:40]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:35:40]wFMCommunicate OK [15:35:40]SAM_PROTO_GetShiftState done [15:35:40]FM_GetShiftState done [15:35:40]opened in 1729384380 [15:35:40]opened+sec_in_day 1729470780 [15:35:40]quantity*price = 9500 [15:35:40]sum+1 = 9501 [15:35:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 75 20.10.2024 15:35 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69785 ФПД: 276558100192549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153543&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69785&fm=276558100192549&tin=02508201610067®Number=0000000000091770&sum=9500 0 [15:35:41]StoreToDocumentArchive [15:35:41]shift 526 fd 69785 [15:35:41]save to /storage/0526/doc_00069785 [15:35:41]save last doc name /storage/0526/doc_00069785 to /storage/kkm_last_doc_name [15:35:41]save OK [15:35:41]Clear old archive folders... [15:35:41]ProcessDocumentItem done err = 0, tmpTLVsize=304 [15:35:41]tlvbuf is 009F4480 [15:35:41]SAM_PROTO_ClearQueue [15:35:41]wFMCommunicate request_size=4 [15:35:41]MH_SAM_APDU [15:35:41]CAPDU: 80 09 00 00 [15:35:41]Write to MH i2c: E2 08 00 A7 13 80 09 00 00 00 00 00 00 2C [15:35:41]Write i2c OK [15:35:41]MH_I2C_Read... [15:35:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:41]Read from MH i2c: E2 [15:35:41]MH_I2C_Read... [15:35:41]Read from MH i2c: E2 03 00 [15:35:41]MH_I2C_Read... [15:35:41]Read from MH i2c: E2 03 00 A7 13 00 90 00 2E [15:35:41]RAPDU: 90 00 [15:35:41]wFMCommunicate OK [15:35:41]SAM_PROTO_ClearQueue done [15:35:41]KKMCreateOFDPacket [15:35:41]OFDProtocolAddRootSTLVToBuf [15:35:41]FM_MakeSignedData [15:35:41]FM_MakeSignedData [15:35:41]SAM_PROTO_SignData [15:35:41]wFMCommunicate request_size=4 [15:35:41]MH_SAM_APDU [15:35:41]CAPDU: 80 0D 01 02 [15:35:41]Write to MH i2c: E2 08 00 A8 13 80 0D 01 02 00 00 00 00 34 [15:35:41]Write i2c OK [15:35:41]MH_I2C_Read... [15:35:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:41]Read from MH i2c: E2 [15:35:41]MH_I2C_Read... [15:35:41]Read from MH i2c: E2 03 00 [15:35:41]MH_I2C_Read... [15:35:41]Read from MH i2c: E2 03 00 A8 13 00 90 00 2F [15:35:41]RAPDU: 90 00 [15:35:41]wFMCommunicate OK [15:35:41]wFMCommunicate request_size=255 [15:35:41]MH_SAM_APDU [15:35:41]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 4F 23 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 [15:35:41]Write to MH i2c: E2 02 01 A9 13 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 4F 23 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 00 00 C3 [15:35:41]Write i2c OK [15:35:41]MH_I2C_Read... [15:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:42]Read from MH i2c: E2 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 03 00 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 03 00 A9 13 00 90 00 30 [15:35:42]RAPDU: 90 00 [15:35:42]wFMCommunicate OK [15:35:42]wFMCommunicate request_size=63 [15:35:42]MH_SAM_APDU [15:35:42]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 99 10 01 00 35 04 06 00 FB 87 33 52 5D 25 [15:35:42]Write to MH i2c: E2 42 00 AA 13 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 99 10 01 00 35 04 06 00 FB 87 33 52 5D 25 00 00 B7 [15:35:42]Write i2c OK [15:35:42]MH_I2C_Read... [15:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:42]Read from MH i2c: E2 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 03 00 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 03 00 AA 13 00 90 00 31 [15:35:42]RAPDU: 90 00 [15:35:42]wFMCommunicate OK [15:35:42]wFMCommunicate request_size=4 [15:35:42]MH_SAM_APDU [15:35:42]CAPDU: 80 0D 03 02 [15:35:42]Write to MH i2c: E2 08 00 AB 13 80 0D 03 02 00 00 00 00 39 [15:35:42]Write i2c OK [15:35:42]MH_I2C_Read... [15:35:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:42]Read from MH i2c: E2 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 0B 00 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 0B 00 AB 13 00 04 17 78 CE AB 3E D8 77 90 00 D3 [15:35:42]RAPDU: 04 17 78 CE AB 3E D8 77 90 00 [15:35:42]wFMCommunicate OK [15:35:42]SAM_PROTO_SignData done [15:35:42]FM_MakeSignedData done [15:35:42]CreateOFDProtocolMessage [15:35:42]wFMCommunicate request_size=4 [15:35:42]MH_SAM_APDU [15:35:42]CAPDU: 80 11 00 00 [15:35:42]Write to MH i2c: E2 08 00 AC 13 80 11 00 00 00 00 00 00 39 [15:35:42]Write i2c OK [15:35:42]MH_I2C_Read... [15:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:42]Read from MH i2c: E2 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 17 00 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 17 00 AC 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 90 [15:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:35:42]wFMCommunicate OK [15:35:42]CreateOFDProtocolMessage done [15:35:42]OFDSenderStorePacket 69785 [15:35:42]StoreOFDPacket docnum=69785 [15:35:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 44 01 00 00 59 C1 3C 01 C4 34 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 4F 23 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 99 10 01 00 35 04 06 00 FB 87 33 52 5D 25 04 17 78 CE AB 3E D8 77 [15:35:42]CheckFolder [15:35:42]dirname=/storage/ofd_packets [15:35:42]CheckFolder done [15:35:42]ProducePacketName [15:35:42]name=ofd_packets/00069785 [15:35:42]NVStorageSaveData ofd_packets/00069785 [15:35:42]File name is /storage/ofd_packets/00069785 [15:35:42]Write 354 bytes [15:35:42]NVStorageSaveData done [15:35:42]OFDSenderStorePacket done [15:35:42]KKMCreateOFDPacket done [15:35:42]NVStorageSaveData kkm_last_timestamp [15:35:42]File name is /storage/kkm_last_timestamp [15:35:42]Write 4 bytes [15:35:42]NVStorageSaveData done [15:35:42]ExternCall_PrintAddStr [15:35:42]wPrintStart [15:35:42]Write to MH i2c: 01 00 00 AD 13 C0 [15:35:42]OFD Sender: Processing packet 69785 [packets to send 32, broken 31] [15:35:42]ProducePacketName [15:35:42]name=ofd_packets/00069785 [15:35:42]OFD Sender: To server: pG, [15:35:42]CommunicateWithHost lk.salyk.kg:30040 [15:35:42]ConnectInit lk.salyk.kg [15:35:42]Write i2c OK [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: 01 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: 01 07 00 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: 01 07 00 AD 13 00 00 00 00 00 FF 0F D5 [15:35:42]RasterBufferAndPrint [15:35:42]line Счет N : (3)127183 [15:35:42]line ИНН: 02508201610067 [15:35:42]line Контрольно-Кассовый Чек [15:35:42]line ПРОДАЖА [15:35:42]line Товар: 4700000480302 [15:35:42]line Напиток энерг Nitro манго-клуб 0.45 ж/б [15:35:42]line 1.000 * 95.00 [15:35:42]line = 95.00 [15:35:42]line НДС 12% НСП 1% [15:35:42]line > о реализуемом товаре [15:35:42]line ИТОГО: 95.00 [15:35:42]line НСП 1% : 0.84 [15:35:42]line НДС 12% : 10.09 [15:35:42]line Наличными: 0.00 [15:35:42]line Безнал.: 95.00 [15:35:42]line Место: АЗС № 163 "Партнер Нефть" [15:35:42]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [15:35:42]line СНО: Общий режим [15:35:42]line Чек 75 20.10.2024 15:35 [15:35:42]line Смена: 526 ФФД: 1.0 [15:35:42]line ЗНМ: 0300000101 [15:35:42]line РНМ: 0000000000091770 [15:35:42]line Версия ККМ: 001 [15:35:42]line Платежная система: Mbank [15:35:42]line ФМ: 0000000000871749 [15:35:42]line ФД: 69785 [15:35:42]line ФПД: 276558100192549 [15:35:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153543&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69785&fm=276558100192549&tin=02508201610067®Number=0000000000091770&sum=9500 [15:35:42]line 0 [15:35:42]Connected sock=10 [15:35:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 44 01 00 00 59 C1 3C 01 C4 34 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 4F 23 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 99 10 01 00 35 04 06 00 FB 87 33 52 5D 25 04 17 78 CE AB 3E D8 77 [15:35:42]written 0, free lines is 4095 [15:35:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 34 99 47 00 9D A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 99 10 01 00 F4 03 04 00 D1 C8 14 67 B6 04 01 00 00 6B AF 11 F5 91 F8 50 17 [15:35:42]CommunicateWithHost err = 0 [15:35:42]CheckOFDResponse [15:35:42]1017 (14) - 77093643461234 [15:35:42]1041 (16) - 0000000000871749 [15:35:42]1040 (4) - 69785 [15:35:42]1012 (4) - 20.10.2024 09:09 [15:35:42]1206 (1) - 0 [15:35:42]OFD Sender: Remove packet 69785 [15:35:42]ProducePacketName [15:35:42]name=ofd_packets/00069785 [15:35:42]NVStorageDeleteData [15:35:43]Write to MH i2c: 01 00 00 D7 13 EA [15:35:43]Write i2c OK [15:35:43]MH_I2C_Read... [15:35:43]Read from MH i2c: 01 [15:35:43]MH_I2C_Read... [15:35:43]Read from MH i2c: 01 07 00 [15:35:43]MH_I2C_Read... [15:35:43]Read from MH i2c: 01 07 00 D7 13 00 00 00 00 00 D7 0C D4 [15:35:43]RasterBufferAndPrint [15:35:43]line [15:35:43]line [15:35:43]line [15:35:43]line [15:35:43]line [15:35:43]written 0, free lines is 3293 [15:35:43]MH_Cut [15:35:43]Write to MH i2c: D1 01 00 DE 13 01 C3 [15:35:43]Write i2c OK [15:35:43]MH_I2C_Read... [15:35:43]Read from MH i2c: D1 [15:35:43]MH_I2C_Read... [15:35:43]Read from MH i2c: D1 01 00 [15:35:43]MH_I2C_Read... [15:35:43]Read from MH i2c: D1 01 00 DE 13 00 C2 [15:35:43]Write to MH i2c: 01 00 00 DF 13 F2 [15:35:43]Write i2c OK [15:35:43]MH_I2C_Read... [15:35:43]OFD Sender: No OFD packet to send [15:35:44]*** Cut start [15:35:44]*** Partial cut [15:35:44]*** CUTSNS_PIN = 1 [15:35:44]*** CUTSNS_PIN = 0 [15:35:44]*** Brake cut motor [15:35:44]Read from MH i2c: 01 [15:35:44]MH_I2C_Read... [15:35:44]*** Stop cut motor [15:35:44]*** Cut end [15:35:44]Read from MH i2c: 01 07 00 [15:35:44]MH_I2C_Read... [15:35:44]Read from MH i2c: 01 07 00 DF 13 00 00 00 00 00 FF 0F 07 [15:35:44]process_action close_receipt done [15:35:44]requested_data is exist [15:35:44]produce_requested_data [15:35:44]requested_item fm.sn is exist - process it [15:35:44]wFMCommunicate request_size=4 [15:35:44]MH_SAM_APDU [15:35:44]CAPDU: 80 11 00 00 [15:35:44]Write to MH i2c: E2 08 00 E0 13 80 11 00 00 00 00 00 00 6D [15:35:44]Write i2c OK [15:35:44]MH_I2C_Read... [15:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:44]Read from MH i2c: E2 [15:35:44]MH_I2C_Read... [15:35:44]Read from MH i2c: E2 17 00 [15:35:44]MH_I2C_Read... [15:35:44]Read from MH i2c: E2 17 00 E0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 C4 [15:35:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:35:44]wFMCommunicate OK [15:35:44]requested_item fd.num is exist - process it [15:35:44]SAM_PROTO_GetFieldsCounters [15:35:44]wFMCommunicate request_size=4 [15:35:44]MH_SAM_APDU [15:35:44]CAPDU: 80 13 00 00 [15:35:44]Write to MH i2c: E2 08 00 E1 13 80 13 00 00 00 00 00 00 70 [15:35:44]Write i2c OK [15:35:44]MH_I2C_Read... [15:35:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:45]Read from MH i2c: E2 [15:35:45]MH_I2C_Read... [15:35:45]Read from MH i2c: E2 62 00 [15:35:45]MH_I2C_Read... [15:35:45]Read from MH i2c: E2 62 00 E1 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 99 10 01 00 0E 04 04 00 0E 02 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 2F [15:35: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 99 10 01 00 0E 04 04 00 0E 02 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 [15:35:45]wFMCommunicate OK [15:35:45]SAM_PROTO_GetFieldsCounters done [15:35:45]requested_item shift.num is exist - process it [15:35:45]requested_item shift.opened is exist - process it [15:35:45]req_shift_opened [15:35:45]FM_GetShiftState [15:35:45]SAM_PROTO_GetShiftState [15:35:45]wFMCommunicate request_size=4 [15:35:45]MH_SAM_APDU [15:35:45]CAPDU: 80 13 01 00 [15:35:45]Write to MH i2c: E2 08 00 E2 13 80 13 01 00 00 00 00 00 72 [15:35:45]Write i2c OK [15:35:45]MH_I2C_Read... [15:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:45]Read from MH i2c: E2 [15:35:45]MH_I2C_Read... [15:35:45]Read from MH i2c: E2 0E 00 [15:35:45]MH_I2C_Read... [15:35:45]Read from MH i2c: E2 0E 00 E2 13 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 04 [15:35:45]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:35:45]wFMCommunicate OK [15:35:45]SAM_PROTO_GetShiftState done [15:35:45]FM_GetShiftState done [15:35:45]req_shift_opened done [15:35:45]requested_item shift.open_date is exist - process it [15:35:45]req_shift_open_date [15:35:45]req_shift_open_date done [15:35:45]produce_requested_data done [15:35:45]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69785,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [15:35:45]process_action_free close_receipt [15:35:45]json_value_free [15:35:45]json_value_free done [15:35:45]process_json_proto returns [15:35:45]Send response to host [15:35:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69785,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [15:35:45]free response buf [15:35:45]execute_script done [15:35:45]execute_script returns [15:35:45]free content buf [15:35:45]Sock 9.Close socket [15:35:45]Sock 9.Thread stoped [15:35:48]OFD Sender: No OFD packet to send [15:35:53]OFD Sender: No OFD packet to send [15:35:58]OFD Sender: No OFD packet to send [15:36:03]OFD Sender: No OFD packet to send [15:36:08]OFD Sender: No OFD packet to send [15:36:09]accept exits with 7 [15:36:09]New connection [15:36:09]New thread 3066629476 created [15:36:09]Thread 3066486116 joined [15:36:09]Waiting for new connection... [15:36:09] Sock 7.Parse request [15:36:09]Sock 7.Check first char [15:36:09]Sock 7.First char is OK [15:36:09]request: POST /json_proto HTTP/1.0 [15:36:09]Method: POST [15:36:09]URL: /json_proto [15:36:09]Method is POST - this is cgi request [15:36:09]url: /json_proto [15:36:09]query_string will be loaded in cgi processing [15:36:09]execute_cgi json_proto POST (null) [15:36:09]execute_cgi path=json_proto method=POST [15:36:09]POST find Content-Length [15:36:09]Host: 172.17.52.196:8080 [15:36:09]Content-Length: 618 [15:36:09]Content-Type: application/json [15:36:09] [15:36:09]POST finish read [15:36:09]Found Content-Length = 618 [15:36:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127184", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 134.00, "quantity" : 2.000, "sum" : 268.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 268.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:09]execute_script... [15:36:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127184", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 134.00, "quantity" : 2.000, "sum" : 268.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 268.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:09]POST & json_proto [15:36:09]process_json_proto [15:36:09]json parsed OK: [15:36:09]protocol is kg_v1.0 [15:36:09]action value=close_receipt [15:36:09]process_action close_receipt [15:36:09]cmd_close_receipt [15:36:09]MH_GetDate [15:36:09]Write to MH i2c: F0 00 00 E3 13 E5 [15:36:09]Write i2c OK [15:36:09]MH_I2C_Read... [15:36:09]Read from MH i2c: F0 [15:36:09]MH_I2C_Read... [15:36:09]Read from MH i2c: F0 09 00 [15:36:09]MH_I2C_Read... [15:36:09]Read from MH i2c: F0 09 00 E3 13 00 6C 23 15 67 60 05 E4 66 A8 [15:36:09]GetLastDocTimeStamp 1729438543 [15:36:09]current date 1729438572 [15:36:09]FM_GetShiftState [15:36:09]SAM_PROTO_GetShiftState [15:36:09]wFMCommunicate request_size=4 [15:36:09]MH_SAM_APDU [15:36:09]CAPDU: 80 13 01 00 [15:36:09]Write to MH i2c: E2 08 00 E4 13 80 13 01 00 00 00 00 00 74 [15:36:09]Write i2c OK [15:36:09]MH_I2C_Read... [15:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:09]Read from MH i2c: E2 [15:36:09]MH_I2C_Read... [15:36:09]Read from MH i2c: E2 0E 00 [15:36:09]MH_I2C_Read... [15:36:09]Read from MH i2c: E2 0E 00 E4 13 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 06 [15:36:09]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:36:09]wFMCommunicate OK [15:36:09]SAM_PROTO_GetShiftState done [15:36:09]FM_GetShiftState done [15:36:09]opened in 1729384380 [15:36:09]opened+sec_in_day 1729470780 [15:36:09]quantity*price = 26800 [15:36:09]sum+1 = 26801 [15:36:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 268.00 НСП 1% : 2.37 НДС 12% : 28.46 Наличными: 268.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 76 20.10.2024 15:36 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69786 ФПД: 213899339561797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153612&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69786&fm=213899339561797&tin=02508201610067®Number=0000000000091770&sum=26800 0 [15:36:10]StoreToDocumentArchive [15:36:10]shift 526 fd 69786 [15:36:10]save to /storage/0526/doc_00069786 [15:36:10]save last doc name /storage/0526/doc_00069786 to /storage/kkm_last_doc_name [15:36:10]save OK [15:36:10]Clear old archive folders... [15:36:10]ProcessDocumentItem done err = 0, tmpTLVsize=270 [15:36:10]tlvbuf is B6E72150 [15:36:10]SAM_PROTO_ClearQueue [15:36:10]wFMCommunicate request_size=4 [15:36:10]MH_SAM_APDU [15:36:10]CAPDU: 80 09 00 00 [15:36:10]Write to MH i2c: E2 08 00 F1 13 80 09 00 00 00 00 00 00 76 [15:36:10]Write i2c OK [15:36:10]MH_I2C_Read... [15:36:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:10]Read from MH i2c: E2 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: E2 03 00 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: E2 03 00 F1 13 00 90 00 78 [15:36:10]RAPDU: 90 00 [15:36:10]wFMCommunicate OK [15:36:10]SAM_PROTO_ClearQueue done [15:36:10]KKMCreateOFDPacket [15:36:10]OFDProtocolAddRootSTLVToBuf [15:36:10]FM_MakeSignedData [15:36:10]FM_MakeSignedData [15:36:10]SAM_PROTO_SignData [15:36:10]wFMCommunicate request_size=4 [15:36:10]MH_SAM_APDU [15:36:10]CAPDU: 80 0D 01 02 [15:36:10]Write to MH i2c: E2 08 00 F2 13 80 0D 01 02 00 00 00 00 7E [15:36:10]Write i2c OK [15:36:10]MH_I2C_Read... [15:36:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:10]Read from MH i2c: E2 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: E2 03 00 [15:36:10]MH_I2C_Read... [15:36:10]Read from MH i2c: E2 03 00 F2 13 00 90 00 79 [15:36:10]RAPDU: 90 00 [15:36:10]wFMCommunicate OK [15:36:10]wFMCommunicate request_size=255 [15:36:10]MH_SAM_APDU [15:36:10]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 B0 68 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 6C 23 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [15:36:10]Write to MH i2c: E2 02 01 F3 13 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 B0 68 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 6C 23 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 EB [15:36:10]Write i2c OK [15:36:10]MH_I2C_Read... [15:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:11]Read from MH i2c: E2 [15:36:11]MH_I2C_Read... [15:36:11]Read from MH i2c: E2 03 00 [15:36:11]MH_I2C_Read... [15:36:11]Read from MH i2c: E2 03 00 F3 13 00 90 00 7A [15:36:11]RAPDU: 90 00 [15:36:11]wFMCommunicate OK [15:36:11]wFMCommunicate request_size=29 [15:36:11]MH_SAM_APDU [15:36:11]CAPDU: 80 0D 02 02 18 38 37 31 37 34 39 10 04 04 00 9A 10 01 00 35 04 06 00 C2 8A 52 26 FB 45 [15:36:11]Write to MH i2c: E2 20 00 F4 13 80 0D 02 02 18 00 38 37 31 37 34 39 10 04 04 00 9A 10 01 00 35 04 06 00 C2 8A 52 26 FB 45 00 00 FB [15:36:11]Write i2c OK [15:36:11]MH_I2C_Read... [15:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:11]Read from MH i2c: E2 [15:36:11]MH_I2C_Read... [15:36:11]Read from MH i2c: E2 03 00 [15:36:11]MH_I2C_Read... [15:36:11]Read from MH i2c: E2 03 00 F4 13 00 90 00 7B [15:36:11]RAPDU: 90 00 [15:36:11]wFMCommunicate OK [15:36:11]wFMCommunicate request_size=4 [15:36:11]MH_SAM_APDU [15:36:11]CAPDU: 80 0D 03 02 [15:36:11]Write to MH i2c: E2 08 00 F5 13 80 0D 03 02 00 00 00 00 83 [15:36:11]Write i2c OK [15:36:11]MH_I2C_Read... [15:36:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:11]Read from MH i2c: E2 [15:36:11]MH_I2C_Read... [15:36:11]Read from MH i2c: E2 0B 00 [15:36:11]MH_I2C_Read... [15:36:11]Read from MH i2c: E2 0B 00 F5 13 00 0C 04 AB A2 31 AB FD 31 90 00 EB [15:36:11]RAPDU: 0C 04 AB A2 31 AB FD 31 90 00 [15:36:11]wFMCommunicate OK [15:36:11]SAM_PROTO_SignData done [15:36:11]FM_MakeSignedData done [15:36:11]CreateOFDProtocolMessage [15:36:11]wFMCommunicate request_size=4 [15:36:11]MH_SAM_APDU [15:36:11]CAPDU: 80 11 00 00 [15:36:11]Write to MH i2c: E2 08 00 F6 13 80 11 00 00 00 00 00 00 83 [15:36:11]Write i2c OK [15:36:11]MH_I2C_Read... [15:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:11]Read from MH i2c: E2 [15:36:11]MH_I2C_Read... [15:36:11]Read from MH i2c: E2 17 00 [15:36:11]MH_I2C_Read... [15:36:11]Read from MH i2c: E2 17 00 F6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 DA [15:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:36:11]wFMCommunicate OK [15:36:11]CreateOFDProtocolMessage done [15:36:11]OFDSenderStorePacket 69786 [15:36:11]StoreOFDPacket docnum=69786 [15:36:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 22 01 00 00 AF 76 1A 01 6B 25 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 B0 68 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 6C 23 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9A 10 01 00 35 04 06 00 C2 8A 52 26 FB 45 0C 04 AB A2 31 AB FD 31 [15:36:11]CheckFolder [15:36:11]dirname=/storage/ofd_packets [15:36:11]CheckFolder done [15:36:11]ProducePacketName [15:36:11]name=ofd_packets/00069786 [15:36:11]NVStorageSaveData ofd_packets/00069786 [15:36:11]File name is /storage/ofd_packets/00069786 [15:36:11]Write 320 bytes [15:36:11]NVStorageSaveData done [15:36:11]OFDSenderStorePacket done [15:36:11]KKMCreateOFDPacket done [15:36:11]NVStorageSaveData kkm_last_timestamp [15:36:11]File name is /storage/kkm_last_timestamp [15:36:11]Write 4 bytes [15:36:11]NVStorageSaveData done [15:36:11]ExternCall_PrintAddStr [15:36:11]wPrintStart [15:36:11]Write to MH i2c: 01 00 00 F7 13 0A [15:36:11]Write i2c OK [15:36:11]MH_I2C_Read... [15:36:11]Read from MH i2c: 01 [15:36:11]MH_I2C_Read... [15:36:11]Read from MH i2c: 01 07 00 [15:36:11]MH_I2C_Read... [15:36:11]Read from MH i2c: 01 07 00 F7 13 00 00 00 00 00 FF 0F 1F [15:36:11]RasterBufferAndPrint [15:36:11]line Счет N : (3)127184 [15:36:11]line ИНН: 02508201610067 [15:36:11]line Контрольно-Кассовый Чек [15:36:11]line ПРОДАЖА [15:36:11]line Товар: 48742191 [15:36:11]line Сигареты Bond Street Blue [15:36:11]line 2.000 * 134.00 [15:36:11]line = 268.00 [15:36:11]line НДС 12% НСП 1% [15:36:11]line > о реализуемом товаре [15:36:11]line ИТОГО: 268.00 [15:36:11]line НСП 1% : 2.37 [15:36:11]line НДС 12% : 28.46 [15:36:11]line Наличными: 268.00 [15:36:11]line Безнал.: 0.00 [15:36:11]line Место: АЗС № 163 "Партнер Нефть" [15:36:11]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [15:36:11]line СНО: Общий режим [15:36:11]line Чек 76 20.10.2024 15:36 [15:36:11]line Смена: 526 ФФД: 1.0 [15:36:11]line ЗНМ: 0300000101 [15:36:11]line РНМ: 0000000000091770 [15:36:11]line Версия ККМ: 001 [15:36:11]line ФМ: 0000000000871749 [15:36:11]line ФД: 69786 [15:36:11]line ФПД: 213899339561797 [15:36:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153612&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69786&fm=213899339561797&tin=02508201610067®Number=0000000000091770&sum=26800 [15:36:11]OFD Sender: Processing packet 69786 [packets to send 32, broken 31] [15:36:11]ProducePacketName [15:36:11]name=ofd_packets/00069786 [15:36:11]OFD Sender: To server: pG, [15:36:11]CommunicateWithHost lk.salyk.kg:30040 [15:36:11]ConnectInit lk.salyk.kg [15:36:11]line 0 [15:36:11]written 0, free lines is 4095 [15:36:11]Connected sock=10 [15:36:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 22 01 00 00 AF 76 1A 01 6B 25 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 B0 68 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 0B 00 00 00 00 07 04 06 00 B0 68 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 6C 23 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9A 10 01 00 35 04 06 00 C2 8A 52 26 FB 45 0C 04 AB A2 31 AB FD 31 [15:36:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 99 01 47 00 9C 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9A 10 01 00 F4 03 04 00 EE C8 14 67 B6 04 01 00 00 A9 8B 78 E6 2F 5F A1 FB [15:36:12]CommunicateWithHost err = 0 [15:36:12]CheckOFDResponse [15:36:12]1017 (14) - 77093643461234 [15:36:12]1041 (16) - 0000000000871749 [15:36:12]1040 (4) - 69786 [15:36:12]1012 (4) - 20.10.2024 09:10 [15:36:12]1206 (1) - 0 [15:36:12]OFD Sender: Remove packet 69786 [15:36:12]ProducePacketName [15:36:12]name=ofd_packets/00069786 [15:36:12]NVStorageDeleteData [15:36:12]Write to MH i2c: 01 00 00 1F 14 33 [15:36:12]Write i2c OK [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: 01 [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: 01 07 00 [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: 01 07 00 1F 14 00 00 00 00 00 10 0D 57 [15:36:12]RasterBufferAndPrint [15:36:12]line [15:36:12]line [15:36:12]line [15:36:12]line [15:36:12]line [15:36:12]written 0, free lines is 3350 [15:36:12]MH_Cut [15:36:12]Write to MH i2c: D1 01 00 26 14 01 0C [15:36:12]Write i2c OK [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: D1 [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: D1 01 00 [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: D1 01 00 26 14 00 0B [15:36:12]Write to MH i2c: 01 00 00 27 14 3B [15:36:12]Write i2c OK [15:36:12]MH_I2C_Read... [15:36:12]OFD Sender: No OFD packet to send [15:36:12]*** Cut start [15:36:12]*** Partial cut [15:36:12]*** CUTSNS_PIN = 1 [15:36:12]*** CUTSNS_PIN = 0 [15:36:13]*** Brake cut motor [15:36:13]Read from MH i2c: 01 [15:36:13]MH_I2C_Read... [15:36:13]*** Stop cut motor [15:36:13]*** Cut end [15:36:13]Read from MH i2c: 01 07 00 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: 01 07 00 27 14 00 00 00 00 00 FF 0F 50 [15:36:13]process_action close_receipt done [15:36:13]requested_data is exist [15:36:13]produce_requested_data [15:36:13]requested_item fm.sn is exist - process it [15:36:13]wFMCommunicate request_size=4 [15:36:13]MH_SAM_APDU [15:36:13]CAPDU: 80 11 00 00 [15:36:13]Write to MH i2c: E2 08 00 28 14 80 11 00 00 00 00 00 00 B6 [15:36:13]Write i2c OK [15:36:13]MH_I2C_Read... [15:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:13]Read from MH i2c: E2 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 17 00 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 17 00 28 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 0D [15:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:36:13]wFMCommunicate OK [15:36:13]requested_item fd.num is exist - process it [15:36:13]SAM_PROTO_GetFieldsCounters [15:36:13]wFMCommunicate request_size=4 [15:36:13]MH_SAM_APDU [15:36:13]CAPDU: 80 13 00 00 [15:36:13]Write to MH i2c: E2 08 00 29 14 80 13 00 00 00 00 00 00 B9 [15:36:13]Write i2c OK [15:36:13]MH_I2C_Read... [15:36:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:13]Read from MH i2c: E2 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 62 00 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 62 00 29 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 9A 10 01 00 0E 04 04 00 0E 02 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 7C [15:36: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 9A 10 01 00 0E 04 04 00 0E 02 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 [15:36:13]wFMCommunicate OK [15:36:13]SAM_PROTO_GetFieldsCounters done [15:36:13]requested_item shift.num is exist - process it [15:36:13]requested_item shift.opened is exist - process it [15:36:13]req_shift_opened [15:36:13]FM_GetShiftState [15:36:13]SAM_PROTO_GetShiftState [15:36:13]wFMCommunicate request_size=4 [15:36:13]MH_SAM_APDU [15:36:13]CAPDU: 80 13 01 00 [15:36:13]Write to MH i2c: E2 08 00 2A 14 80 13 01 00 00 00 00 00 BB [15:36:13]Write i2c OK [15:36:13]MH_I2C_Read... [15:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:13]Read from MH i2c: E2 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 0E 00 [15:36:13]MH_I2C_Read... [15:36:13]Read from MH i2c: E2 0E 00 2A 14 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 4D [15:36:13]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:36:13]wFMCommunicate OK [15:36:13]SAM_PROTO_GetShiftState done [15:36:13]FM_GetShiftState done [15:36:13]req_shift_opened done [15:36:13]requested_item shift.open_date is exist - process it [15:36:13]req_shift_open_date [15:36:13]req_shift_open_date done [15:36:13]produce_requested_data done [15:36:13]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69786,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [15:36:13]process_action_free close_receipt [15:36:13]json_value_free [15:36:13]json_value_free done [15:36:13]process_json_proto returns [15:36:13]Send response to host [15:36:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69786,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [15:36:13]free response buf [15:36:13]execute_script done [15:36:13]execute_script returns [15:36:13]free content buf [15:36:13]Sock 7.Close socket [15:36:13]Sock 7.Thread stoped [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:34]accept exits with 9 [15:36:34]New connection [15:36:34]New thread 3066486116 created [15:36:34]Thread 3066629476 joined [15:36:34]Waiting for new connection... [15:36:34] Sock 9.Parse request [15:36:34]Sock 9.Check first char [15:36:34]Sock 9.First char is OK [15:36:34]request: POST /json_proto HTTP/1.0 [15:36:34]Method: POST [15:36:34]URL: /json_proto [15:36:34]Method is POST - this is cgi request [15:36:34]url: /json_proto [15:36:34]query_string will be loaded in cgi processing [15:36:34]execute_cgi json_proto POST (null) [15:36:34]execute_cgi path=json_proto method=POST [15:36:34]POST find Content-Length [15:36:34]Host: 172.17.52.196:8080 [15:36:34]Content-Length: 735 [15:36:34]Content-Type: application/json [15:36:34] [15:36:34]POST finish read [15:36:34]Found Content-Length = 735 [15:36:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127185", "tax_sys" : 0, "items" : [ { "code": "4823063110945", "name": "\u0421\u0430\u0434\u043E\u0447\u043E\u043A 0,2 \u041C\u0443\u043B\u044C\u0442\u0438\u0444\u0440\u0443\u043A\u0442\u043E\u0432\u044B\u0439 \u043D\u0435\u043A\u0442\u0430\u0440 1/200", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:34]execute_script... [15:36:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127185", "tax_sys" : 0, "items" : [ { "code": "4823063110945", "name": "\u0421\u0430\u0434\u043E\u0447\u043E\u043A 0,2 \u041C\u0443\u043B\u044C\u0442\u0438\u0444\u0440\u0443\u043A\u0442\u043E\u0432\u044B\u0439 \u043D\u0435\u043A\u0442\u0430\u0440 1/200", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:34]POST & json_proto [15:36:34]process_json_proto [15:36:34]json parsed OK: [15:36:34]protocol is kg_v1.0 [15:36:34]action value=close_receipt [15:36:34]process_action close_receipt [15:36:34]cmd_close_receipt [15:36:34]MH_GetDate [15:36:34]Write to MH i2c: F0 00 00 2B 14 2E [15:36:34]Write i2c OK [15:36:34]MH_I2C_Read... [15:36:34]Read from MH i2c: F0 [15:36:34]MH_I2C_Read... [15:36:34]Read from MH i2c: F0 09 00 [15:36:34]MH_I2C_Read... [15:36:34]Read from MH i2c: F0 09 00 2B 14 00 85 23 15 67 60 05 E4 66 0A [15:36:34]GetLastDocTimeStamp 1729438572 [15:36:34]current date 1729438597 [15:36:34]FM_GetShiftState [15:36:34]SAM_PROTO_GetShiftState [15:36:34]wFMCommunicate request_size=4 [15:36:34]MH_SAM_APDU [15:36:34]CAPDU: 80 13 01 00 [15:36:34]Write to MH i2c: E2 08 00 2C 14 80 13 01 00 00 00 00 00 BD [15:36:34]Write i2c OK [15:36:34]MH_I2C_Read... [15:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:34]Read from MH i2c: E2 [15:36:34]MH_I2C_Read... [15:36:34]Read from MH i2c: E2 0E 00 [15:36:34]MH_I2C_Read... [15:36:34]Read from MH i2c: E2 0E 00 2C 14 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 4F [15:36:34]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:36:34]wFMCommunicate OK [15:36:34]SAM_PROTO_GetShiftState done [15:36:34]FM_GetShiftState done [15:36:34]opened in 1729384380 [15:36:34]opened+sec_in_day 1729470780 [15:36:34]quantity*price = 4500 [15:36:34]sum+1 = 4501 [15:36:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 77 20.10.2024 15:36 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69787 ФПД: 275227489400895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153637&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69787&fm=275227489400895&tin=02508201610067®Number=0000000000091770&sum=4500 0 [15:36:35]StoreToDocumentArchive [15:36:35]shift 526 fd 69787 [15:36:35]save to /storage/0526/doc_00069787 [15:36:35]save last doc name /storage/0526/doc_00069787 to /storage/kkm_last_doc_name [15:36:35]save OK [15:36:35]Clear old archive folders... [15:36:35]ProcessDocumentItem done err = 0, tmpTLVsize=310 [15:36:35]tlvbuf is 00A05450 [15:36:35]SAM_PROTO_ClearQueue [15:36:35]wFMCommunicate request_size=4 [15:36:35]MH_SAM_APDU [15:36:35]CAPDU: 80 09 00 00 [15:36:35]Write to MH i2c: E2 08 00 39 14 80 09 00 00 00 00 00 00 BF [15:36:35]Write i2c OK [15:36:35]MH_I2C_Read... [15:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:35]Read from MH i2c: E2 [15:36:35]MH_I2C_Read... [15:36:35]Read from MH i2c: E2 03 00 [15:36:35]MH_I2C_Read... [15:36:35]Read from MH i2c: E2 03 00 39 14 00 90 00 C1 [15:36:35]RAPDU: 90 00 [15:36:35]wFMCommunicate OK [15:36:35]SAM_PROTO_ClearQueue done [15:36:35]KKMCreateOFDPacket [15:36:35]OFDProtocolAddRootSTLVToBuf [15:36:35]FM_MakeSignedData [15:36:35]FM_MakeSignedData [15:36:35]SAM_PROTO_SignData [15:36:35]wFMCommunicate request_size=4 [15:36:35]MH_SAM_APDU [15:36:35]CAPDU: 80 0D 01 02 [15:36:35]Write to MH i2c: E2 08 00 3A 14 80 0D 01 02 00 00 00 00 C7 [15:36:35]Write i2c OK [15:36:35]MH_I2C_Read... [15:36:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:35]Read from MH i2c: E2 [15:36:35]MH_I2C_Read... [15:36:35]Read from MH i2c: E2 03 00 [15:36:35]MH_I2C_Read... [15:36:35]Read from MH i2c: E2 03 00 3A 14 00 90 00 C2 [15:36:35]RAPDU: 90 00 [15:36:35]wFMCommunicate OK [15:36:35]wFMCommunicate request_size=255 [15:36:35]MH_SAM_APDU [15:36:35]CAPDU: 80 0D 02 02 FA 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 32 33 30 36 33 31 31 30 39 34 35 06 04 44 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 9C D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 BA D1 82 D0 B0 D1 80 20 31 2F 32 30 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 85 23 15 67 0E 04 04 00 0E 02 00 [15:36:35]Write to MH i2c: E2 02 01 3B 14 80 0D 02 02 FA 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 32 33 30 36 33 31 31 30 39 34 35 06 04 44 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 9C D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 BA D1 82 D0 B0 D1 80 20 31 2F 32 30 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 85 23 15 67 0E 04 04 00 0E 02 00 00 00 A7 [15:36:35]Write i2c OK [15:36:35]MH_I2C_Read... [15:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:36]Read from MH i2c: E2 [15:36:36]MH_I2C_Read... [15:36:36]Read from MH i2c: E2 03 00 [15:36:36]MH_I2C_Read... [15:36:36]Read from MH i2c: E2 03 00 3B 14 00 90 00 C3 [15:36:36]RAPDU: 90 00 [15:36:36]wFMCommunicate OK [15:36:36]wFMCommunicate request_size=69 [15:36:36]MH_SAM_APDU [15:36:36]CAPDU: 80 0D 02 02 40 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9B 10 01 00 35 04 06 00 FA 51 64 BC F8 3F [15:36:36]Write to MH i2c: E2 48 00 3C 14 80 0D 02 02 40 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9B 10 01 00 35 04 06 00 FA 51 64 BC F8 3F 00 00 30 [15:36:36]Write i2c OK [15:36:36]MH_I2C_Read... [15:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:36]Read from MH i2c: E2 [15:36:36]MH_I2C_Read... [15:36:36]Read from MH i2c: E2 03 00 [15:36:36]MH_I2C_Read... [15:36:36]Read from MH i2c: E2 03 00 3C 14 00 90 00 C4 [15:36:36]RAPDU: 90 00 [15:36:36]wFMCommunicate OK [15:36:36]wFMCommunicate request_size=4 [15:36:36]MH_SAM_APDU [15:36:36]CAPDU: 80 0D 03 02 [15:36:36]Write to MH i2c: E2 08 00 3D 14 80 0D 03 02 00 00 00 00 CC [15:36:36]Write i2c OK [15:36:36]MH_I2C_Read... [15:36:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:36]Read from MH i2c: E2 [15:36:36]MH_I2C_Read... [15:36:36]Read from MH i2c: E2 0B 00 [15:36:36]MH_I2C_Read... [15:36:36]Read from MH i2c: E2 0B 00 3D 14 00 D2 57 B8 43 39 C0 D4 BD 90 00 7B [15:36:36]RAPDU: D2 57 B8 43 39 C0 D4 BD 90 00 [15:36:36]wFMCommunicate OK [15:36:36]SAM_PROTO_SignData done [15:36:36]FM_MakeSignedData done [15:36:36]CreateOFDProtocolMessage [15:36:36]wFMCommunicate request_size=4 [15:36:36]MH_SAM_APDU [15:36:36]CAPDU: 80 11 00 00 [15:36:36]Write to MH i2c: E2 08 00 3E 14 80 11 00 00 00 00 00 00 CC [15:36:36]Write i2c OK [15:36:36]MH_I2C_Read... [15:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:36]Read from MH i2c: E2 [15:36:36]MH_I2C_Read... [15:36:36]Read from MH i2c: E2 17 00 [15:36:36]MH_I2C_Read... [15:36:36]Read from MH i2c: E2 17 00 3E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 23 [15:36:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:36:36]wFMCommunicate OK [15:36:36]CreateOFDProtocolMessage done [15:36:36]OFDSenderStorePacket 69787 [15:36:36]StoreOFDPacket docnum=69787 [15:36:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4A 01 00 00 E2 AA 42 01 EF A7 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 32 33 30 36 33 31 31 30 39 34 35 06 04 44 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 9C D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 BA D1 82 D0 B0 D1 80 20 31 2F 32 30 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 85 23 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9B 10 01 00 35 04 06 00 FA 51 64 BC F8 3F D2 57 B8 43 39 C0 D4 BD [15:36:36]CheckFolder [15:36:36]dirname=/storage/ofd_packets [15:36:36]CheckFolder done [15:36:36]ProducePacketName [15:36:36]name=ofd_packets/00069787 [15:36:36]NVStorageSaveData ofd_packets/00069787 [15:36:36]File name is /storage/ofd_packets/00069787 [15:36:36]Write 360 bytes [15:36:36]NVStorageSaveData done [15:36:36]OFDSenderStorePacket done [15:36:36]KKMCreateOFDPacket done [15:36:36]NVStorageSaveData kkm_last_timestamp [15:36:36]File name is /storage/kkm_last_timestamp [15:36:36]Write 4 bytes [15:36:36]NVStorageSaveData done [15:36:36]ExternCall_PrintAddStr [15:36:36]wPrintStart [15:36:36]Write to MH i2c: 01 00 00 3F 14 53 [15:36:36]Write i2c OK [15:36:36]MH_I2C_Read... [15:36:36]Read from MH i2c: 01 [15:36:36]MH_I2C_Read... [15:36:36]Read from MH i2c: 01 07 00 [15:36:36]MH_I2C_Read... [15:36:36]Read from MH i2c: 01 07 00 3F 14 00 00 00 00 00 FF 0F 68 [15:36:36]RasterBufferAndPrint [15:36:36]line Счет N : (3)127185 [15:36:36]line ИНН: 02508201610067 [15:36:36]line Контрольно-Кассовый Чек [15:36:36]line ПРОДАЖА [15:36:36]line Товар: 4823063110945 [15:36:36]line Садочок 0,2 Мультифруктовый нектар 1/200 [15:36:36]line 1.000 * 45.00 [15:36:36]line = 45.00 [15:36:36]line НДС 12% НСП 1% [15:36:36]line > о реализуемом товаре [15:36:36]line ИТОГО: 45.00 [15:36:36]line НСП 1% : 0.40 [15:36:36]line НДС 12% : 4.78 [15:36:36]line Наличными: 45.00 [15:36:36]line Безнал.: 0.00 [15:36:36]line Место: АЗС № 163 "Партнер Нефть" [15:36:36]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [15:36:36]line СНО: Общий режим [15:36:36]line Чек 77 20.10.2024 15:36 [15:36:36]line Смена: 526 ФФД: 1.0 [15:36:36]line ЗНМ: 0300000101 [15:36:36]line РНМ: 0000000000091770 [15:36:36]line Версия ККМ: 001 [15:36:36]line ФМ: 0000000000871749 [15:36:36]line ФД: 69787 [15:36:36]line ФПД: 275227489400895 [15:36:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153637&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69787&fm=275227489400895&tin=02508201610067®Number=0000000000091770&sum=4500 [15:36:36]line 0 [15:36:36]OFD Sender: Processing packet 69787 [packets to send 32, broken 31] [15:36:36]ProducePacketName [15:36:36]name=ofd_packets/00069787 [15:36:36]OFD Sender: To server: pG, [15:36:36]CommunicateWithHost lk.salyk.kg:30040 [15:36:36]ConnectInit lk.salyk.kg [15:36:36]written 0, free lines is 4095 [15:36:36]Connected sock=10 [15:36:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4A 01 00 00 E2 AA 42 01 EF A7 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 32 33 30 36 33 31 31 30 39 34 35 06 04 44 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 9C D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 BA D1 82 D0 B0 D1 80 20 31 2F 32 30 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 85 23 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9B 10 01 00 35 04 06 00 FA 51 64 BC F8 3F D2 57 B8 43 39 C0 D4 BD [15:36:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 76 24 47 00 2F 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 31 37 34 39 10 04 04 00 9B 10 01 00 F4 03 04 00 07 C9 14 67 B6 04 01 00 00 D1 76 D3 5D D2 D7 C5 39 [15:36:36]CommunicateWithHost err = 0 [15:36:36]CheckOFDResponse [15:36:36]1017 (14) - 77093643461234 [15:36:36]1041 (16) - 0000000000871749 [15:36:36]1040 (4) - 69787 [15:36:36]1012 (4) - 20.10.2024 09:10 [15:36:36]1206 (1) - 0 [15:36:36]OFD Sender: Remove packet 69787 [15:36:36]ProducePacketName [15:36:36]name=ofd_packets/00069787 [15:36:36]NVStorageDeleteData [15:36:37]Write to MH i2c: 01 00 00 68 14 7C [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: 01 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: 01 07 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: 01 07 00 68 14 00 00 00 00 00 E8 0C 77 [15:36:37]RasterBufferAndPrint [15:36:37]line [15:36:37]line [15:36:37]line [15:36:37]line [15:36:37]line [15:36:37]written 0, free lines is 3310 [15:36:37]MH_Cut [15:36:37]Write to MH i2c: D1 01 00 6F 14 01 55 [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: D1 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: D1 01 00 [15:36:37]MH_I2C_Read... [15:36:37]Read from MH i2c: D1 01 00 6F 14 00 54 [15:36:37]Write to MH i2c: 01 00 00 70 14 84 [15:36:37]Write i2c OK [15:36:37]MH_I2C_Read... [15:36:37]OFD Sender: No OFD packet to send [15:36:37]*** Cut start [15:36:37]*** Partial cut [15:36:37]*** CUTSNS_PIN = 1 [15:36:37]*** CUTSNS_PIN = 0 [15:36:38]*** Brake cut motor [15:36:38]Read from MH i2c: 01 [15:36:38]MH_I2C_Read... [15:36:38]*** Stop cut motor [15:36:38]*** Cut end [15:36:38]Read from MH i2c: 01 07 00 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: 01 07 00 70 14 00 00 00 00 00 FF 0F 99 [15:36:38]process_action close_receipt done [15:36:38]requested_data is exist [15:36:38]produce_requested_data [15:36:38]requested_item fm.sn is exist - process it [15:36:38]wFMCommunicate request_size=4 [15:36:38]MH_SAM_APDU [15:36:38]CAPDU: 80 11 00 00 [15:36:38]Write to MH i2c: E2 08 00 71 14 80 11 00 00 00 00 00 00 FF [15:36:38]Write i2c OK [15:36:38]MH_I2C_Read... [15:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:38]Read from MH i2c: E2 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: E2 17 00 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: E2 17 00 71 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 56 [15:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:36:38]wFMCommunicate OK [15:36:38]requested_item fd.num is exist - process it [15:36:38]SAM_PROTO_GetFieldsCounters [15:36:38]wFMCommunicate request_size=4 [15:36:38]MH_SAM_APDU [15:36:38]CAPDU: 80 13 00 00 [15:36:38]Write to MH i2c: E2 08 00 72 14 80 13 00 00 00 00 00 00 02 [15:36:38]Write i2c OK [15:36:38]MH_I2C_Read... [15:36:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:38]Read from MH i2c: E2 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: E2 62 00 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: E2 62 00 72 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 9B 10 01 00 0E 04 04 00 0E 02 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 C9 [15:36: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 9B 10 01 00 0E 04 04 00 0E 02 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 [15:36:38]wFMCommunicate OK [15:36:38]SAM_PROTO_GetFieldsCounters done [15:36:38]requested_item shift.num is exist - process it [15:36:38]requested_item shift.opened is exist - process it [15:36:38]req_shift_opened [15:36:38]FM_GetShiftState [15:36:38]SAM_PROTO_GetShiftState [15:36:38]wFMCommunicate request_size=4 [15:36:38]MH_SAM_APDU [15:36:38]CAPDU: 80 13 01 00 [15:36:38]Write to MH i2c: E2 08 00 73 14 80 13 01 00 00 00 00 00 04 [15:36:38]Write i2c OK [15:36:38]MH_I2C_Read... [15:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:38]Read from MH i2c: E2 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: E2 0E 00 [15:36:38]MH_I2C_Read... [15:36:38]Read from MH i2c: E2 0E 00 73 14 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 96 [15:36:38]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:36:38]wFMCommunicate OK [15:36:38]SAM_PROTO_GetShiftState done [15:36:38]FM_GetShiftState done [15:36:38]req_shift_opened done [15:36:38]requested_item shift.open_date is exist - process it [15:36:38]req_shift_open_date [15:36:38]req_shift_open_date done [15:36:38]produce_requested_data done [15:36:38]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69787,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [15:36:38]process_action_free close_receipt [15:36:38]json_value_free [15:36:38]json_value_free done [15:36:38]process_json_proto returns [15:36:38]Send response to host [15:36:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69787,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [15:36:38]free response buf [15:36:38]execute_script done [15:36:38]execute_script returns [15:36:38]free content buf [15:36:38]Sock 9.Close socket [15:36:38]Sock 9.Thread stoped [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:01]accept exits with 7 [15:37:01]New connection [15:37:01]New thread 3066629476 created [15:37:01]Thread 3066486116 joined [15:37:01]Waiting for new connection... [15:37:01] Sock 7.Parse request [15:37:01]Sock 7.Check first char [15:37:01]Sock 7.First char is OK [15:37:01]request: POST /json_proto HTTP/1.0 [15:37:01]Method: POST [15:37:01]URL: /json_proto [15:37:01]Method is POST - this is cgi request [15:37:01]url: /json_proto [15:37:01]query_string will be loaded in cgi processing [15:37:01]execute_cgi json_proto POST (null) [15:37:01]execute_cgi path=json_proto method=POST [15:37:01]POST find Content-Length [15:37:01]Host: 172.17.52.196:8080 [15:37:01]Content-Length: 748 [15:37:01]Content-Type: application/json [15:37:01] [15:37:01]POST finish read [15:37:01]Found Content-Length = 748 [15:37:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127186", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:01]execute_script... [15:37: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)127186", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:01]POST & json_proto [15:37:01]process_json_proto [15:37:01]json parsed OK: [15:37:01]protocol is kg_v1.0 [15:37:01]action value=close_receipt [15:37:01]process_action close_receipt [15:37:01]cmd_close_receipt [15:37:01]MH_GetDate [15:37:01]Write to MH i2c: F0 00 00 74 14 77 [15:37:01]Write i2c OK [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: F0 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: F0 09 00 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: F0 09 00 74 14 00 A0 23 15 67 60 05 E4 66 6E [15:37:01]GetLastDocTimeStamp 1729438597 [15:37:01]current date 1729438624 [15:37:01]FM_GetShiftState [15:37:01]SAM_PROTO_GetShiftState [15:37:01]wFMCommunicate request_size=4 [15:37:01]MH_SAM_APDU [15:37:01]CAPDU: 80 13 01 00 [15:37:01]Write to MH i2c: E2 08 00 75 14 80 13 01 00 00 00 00 00 06 [15:37:01]Write i2c OK [15:37:01]MH_I2C_Read... [15:37:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:01]Read from MH i2c: E2 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: E2 0E 00 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: E2 0E 00 75 14 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 98 [15:37:01]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:37:01]wFMCommunicate OK [15:37:01]SAM_PROTO_GetShiftState done [15:37:01]FM_GetShiftState done [15:37:01]opened in 1729384380 [15:37:01]opened+sec_in_day 1729470780 [15:37:01]quantity*price = 14400 [15:37:01]sum+1 = 14401 [15:37:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 78 20.10.2024 15:37 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69788 ФПД: 156896543199768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153704&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69788&fm=156896543199768&tin=02508201610067®Number=0000000000091770&sum=14400 0 [15:37:02]StoreToDocumentArchive [15:37:02]shift 526 fd 69788 [15:37:02]save to /storage/0526/doc_00069788 [15:37:02]save last doc name /storage/0526/doc_00069788 to /storage/kkm_last_doc_name [15:37:02]save OK [15:37:02]Clear old archive folders... [15:37:02]ProcessDocumentItem done err = 0, tmpTLVsize=273 [15:37:02]tlvbuf is 009EEC10 [15:37:02]SAM_PROTO_ClearQueue [15:37:02]wFMCommunicate request_size=4 [15:37:02]MH_SAM_APDU [15:37:02]CAPDU: 80 09 00 00 [15:37:02]Write to MH i2c: E2 08 00 82 14 80 09 00 00 00 00 00 00 08 [15:37:02]Write i2c OK [15:37:02]MH_I2C_Read... [15:37:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:02]Read from MH i2c: E2 [15:37:02]MH_I2C_Read... [15:37:02]Read from MH i2c: E2 03 00 [15:37:02]MH_I2C_Read... [15:37:02]Read from MH i2c: E2 03 00 82 14 00 90 00 0A [15:37:02]RAPDU: 90 00 [15:37:02]wFMCommunicate OK [15:37:02]SAM_PROTO_ClearQueue done [15:37:02]KKMCreateOFDPacket [15:37:02]OFDProtocolAddRootSTLVToBuf [15:37:02]FM_MakeSignedData [15:37:02]FM_MakeSignedData [15:37:02]SAM_PROTO_SignData [15:37:02]wFMCommunicate request_size=4 [15:37:02]MH_SAM_APDU [15:37:02]CAPDU: 80 0D 01 02 [15:37:02]Write to MH i2c: E2 08 00 83 14 80 0D 01 02 00 00 00 00 10 [15:37:02]Write i2c OK [15:37:02]MH_I2C_Read... [15:37:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:02]Read from MH i2c: E2 [15:37:02]MH_I2C_Read... [15:37:02]Read from MH i2c: E2 03 00 [15:37:02]MH_I2C_Read... [15:37:02]Read from MH i2c: E2 03 00 83 14 00 90 00 0B [15:37:02]RAPDU: 90 00 [15:37:02]wFMCommunicate OK [15:37:02]wFMCommunicate request_size=255 [15:37:02]MH_SAM_APDU [15:37:02]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A0 23 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [15:37:02]Write to MH i2c: E2 02 01 84 14 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A0 23 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 16 [15:37:03]Write i2c OK [15:37:03]MH_I2C_Read... [15:37:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:03]Read from MH i2c: E2 [15:37:03]MH_I2C_Read... [15:37:03]Read from MH i2c: E2 03 00 [15:37:03]MH_I2C_Read... [15:37:03]Read from MH i2c: E2 03 00 84 14 00 90 00 0C [15:37:03]RAPDU: 90 00 [15:37:03]wFMCommunicate OK [15:37:03]wFMCommunicate request_size=32 [15:37:03]MH_SAM_APDU [15:37:03]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 9C 10 01 00 35 04 06 00 8E B2 52 B9 52 18 [15:37:03]Write to MH i2c: E2 23 00 85 14 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 9C 10 01 00 35 04 06 00 8E B2 52 B9 52 18 00 00 D6 [15:37:03]Write i2c OK [15:37:03]MH_I2C_Read... [15:37:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:03]Read from MH i2c: E2 [15:37:03]MH_I2C_Read... [15:37:03]Read from MH i2c: E2 03 00 [15:37:03]MH_I2C_Read... [15:37:03]Read from MH i2c: E2 03 00 85 14 00 90 00 0D [15:37:03]RAPDU: 90 00 [15:37:03]wFMCommunicate OK [15:37:03]wFMCommunicate request_size=4 [15:37:03]MH_SAM_APDU [15:37:03]CAPDU: 80 0D 03 02 [15:37:03]Write to MH i2c: E2 08 00 86 14 80 0D 03 02 00 00 00 00 15 [15:37:03]Write i2c OK [15:37:03]MH_I2C_Read... [15:37:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:03]Read from MH i2c: E2 [15:37:03]MH_I2C_Read... [15:37:03]Read from MH i2c: E2 0B 00 [15:37:03]MH_I2C_Read... [15:37:03]Read from MH i2c: E2 0B 00 86 14 00 DE F9 C5 E6 00 A8 13 60 90 00 B3 [15:37:03]RAPDU: DE F9 C5 E6 00 A8 13 60 90 00 [15:37:03]wFMCommunicate OK [15:37:03]SAM_PROTO_SignData done [15:37:03]FM_MakeSignedData done [15:37:03]CreateOFDProtocolMessage [15:37:03]wFMCommunicate request_size=4 [15:37:03]MH_SAM_APDU [15:37:03]CAPDU: 80 11 00 00 [15:37:03]Write to MH i2c: E2 08 00 87 14 80 11 00 00 00 00 00 00 15 [15:37:03]Write i2c OK [15:37:03]MH_I2C_Read... [15:37:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:03]Read from MH i2c: E2 [15:37:03]MH_I2C_Read... [15:37:03]Read from MH i2c: E2 17 00 [15:37:03]MH_I2C_Read... [15:37:03]Read from MH i2c: E2 17 00 87 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 6C [15:37:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:37:03]wFMCommunicate OK [15:37:03]CreateOFDProtocolMessage done [15:37:03]OFDSenderStorePacket 69788 [15:37:03]StoreOFDPacket docnum=69788 [15:37:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 99 1D 1D 01 8E 50 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A0 23 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9C 10 01 00 35 04 06 00 8E B2 52 B9 52 18 DE F9 C5 E6 00 A8 13 60 [15:37:03]CheckFolder [15:37:03]dirname=/storage/ofd_packets [15:37:03]CheckFolder done [15:37:03]ProducePacketName [15:37:03]name=ofd_packets/00069788 [15:37:03]NVStorageSaveData ofd_packets/00069788 [15:37:03]File name is /storage/ofd_packets/00069788 [15:37:03]Write 323 bytes [15:37:03]NVStorageSaveData done [15:37:03]OFDSenderStorePacket done [15:37:03]KKMCreateOFDPacket done [15:37:03]NVStorageSaveData kkm_last_timestamp [15:37:03]File name is /storage/kkm_last_timestamp [15:37:03]Write 4 bytes [15:37:03]NVStorageSaveData done [15:37:03]ExternCall_PrintAddStr [15:37:03]wPrintStart [15:37:03]Write to MH i2c: 01 00 00 88 14 9C [15:37:03]OFD Sender: Processing packet 69788 [packets to send 32, broken 31] [15:37:03]ProducePacketName [15:37:03]name=ofd_packets/00069788 [15:37:03]OFD Sender: To server: pG, [15:37:03]CommunicateWithHost lk.salyk.kg:30040 [15:37:03]ConnectInit lk.salyk.kg [15:37:03]Write i2c OK [15:37:03]MH_I2C_Read... [15:37:03]Read from MH i2c: 01 [15:37:03]MH_I2C_Read... [15:37:03]Read from MH i2c: 01 07 00 [15:37:03]MH_I2C_Read... [15:37:03]Read from MH i2c: 01 07 00 88 14 00 00 00 00 00 FF 0F B1 [15:37:03]RasterBufferAndPrint [15:37:03]line Счет N : (3)127186 [15:37:03]line ИНН: 02508201610067 [15:37:03]line Контрольно-Кассовый Чек [15:37:03]line ПРОДАЖА [15:37:03]line Товар: 48743570 [15:37:03]line Сигареты Winston XStyle Blue [15:37:03]line 1.000 * 144.00 [15:37:03]line = 144.00 [15:37:03]line НДС 12% НСП 1% [15:37:03]line > о реализуемом товаре [15:37:03]line ИТОГО: 144.00 [15:37:03]line НСП 1% : 1.27 [15:37:03]line НДС 12% : 15.29 [15:37:03]line Наличными: 0.00 [15:37:03]line Безнал.: 144.00 [15:37:03]line Место: АЗС № 163 "Партнер Нефть" [15:37:03]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [15:37:03]line СНО: Общий режим [15:37:03]line Чек 78 20.10.2024 15:37 [15:37:03]line Смена: 526 ФФД: 1.0 [15:37:03]line ЗНМ: 0300000101 [15:37:03]line РНМ: 0000000000091770 [15:37:03]line Версия ККМ: 001 [15:37:03]line Платежная система: Mbank [15:37:03]line ФМ: 0000000000871749 [15:37:03]line ФД: 69788 [15:37:03]line ФПД: 156896543199768 [15:37:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153704&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69788&fm=156896543199768&tin=02508201610067®Number=0000000000091770&sum=14400 [15:37:03]line 0 [15:37:03]Connected sock=10 [15:37:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 99 1D 1D 01 8E 50 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A0 23 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9C 10 01 00 35 04 06 00 8E B2 52 B9 52 18 DE F9 C5 E6 00 A8 13 60 [15:37:03]written 0, free lines is 4095 [15:37:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 27 97 47 00 17 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 31 37 34 39 10 04 04 00 9C 10 01 00 F4 03 04 00 22 C9 14 67 B6 04 01 00 00 E4 2D B5 25 D2 3A 01 96 [15:37:03]CommunicateWithHost err = 0 [15:37:03]CheckOFDResponse [15:37:03]1017 (14) - 77093643461234 [15:37:03]1041 (16) - 0000000000871749 [15:37:03]1040 (4) - 69788 [15:37:03]1012 (4) - 20.10.2024 09:10 [15:37:03]1206 (1) - 0 [15:37:03]OFD Sender: Remove packet 69788 [15:37:03]ProducePacketName [15:37:03]name=ofd_packets/00069788 [15:37:03]NVStorageDeleteData [15:37:04]Write to MH i2c: 01 00 00 B1 14 C5 [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: 01 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: 01 07 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: 01 07 00 B1 14 00 00 00 00 00 F1 0C C9 [15:37:04]RasterBufferAndPrint [15:37:04]line [15:37:04]line [15:37:04]line [15:37:04]line [15:37:04]line [15:37:04]written 0, free lines is 3319 [15:37:04]MH_Cut [15:37:04]Write to MH i2c: D1 01 00 B8 14 01 9E [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: D1 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: D1 01 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: D1 01 00 B8 14 00 9D [15:37:04]Write to MH i2c: 01 00 00 B9 14 CD [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]OFD Sender: No OFD packet to send [15:37:04]*** Cut start [15:37:04]*** Partial cut [15:37:04]*** CUTSNS_PIN = 1 [15:37:05]*** CUTSNS_PIN = 0 [15:37:05]*** Brake cut motor [15:37:05]Read from MH i2c: 01 [15:37:05]MH_I2C_Read... [15:37:05]*** Stop cut motor [15:37:05]*** Cut end [15:37:05]Read from MH i2c: 01 07 00 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: 01 07 00 B9 14 00 00 00 00 00 FF 0F E2 [15:37:05]process_action close_receipt done [15:37:05]requested_data is exist [15:37:05]produce_requested_data [15:37:05]requested_item fm.sn is exist - process it [15:37:05]wFMCommunicate request_size=4 [15:37:05]MH_SAM_APDU [15:37:05]CAPDU: 80 11 00 00 [15:37:05]Write to MH i2c: E2 08 00 BA 14 80 11 00 00 00 00 00 00 48 [15:37:05]Write i2c OK [15:37:05]MH_I2C_Read... [15:37:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:05]Read from MH i2c: E2 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: E2 17 00 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: E2 17 00 BA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 9F [15:37:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:37:05]wFMCommunicate OK [15:37:05]requested_item fd.num is exist - process it [15:37:05]SAM_PROTO_GetFieldsCounters [15:37:05]wFMCommunicate request_size=4 [15:37:05]MH_SAM_APDU [15:37:05]CAPDU: 80 13 00 00 [15:37:05]Write to MH i2c: E2 08 00 BB 14 80 13 00 00 00 00 00 00 4B [15:37:05]Write i2c OK [15:37:05]MH_I2C_Read... [15:37:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:06]Read from MH i2c: E2 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: E2 62 00 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: E2 62 00 BB 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 9C 10 01 00 0E 04 04 00 0E 02 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 16 [15:37: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 9C 10 01 00 0E 04 04 00 0E 02 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 [15:37:06]wFMCommunicate OK [15:37:06]SAM_PROTO_GetFieldsCounters done [15:37:06]requested_item shift.num is exist - process it [15:37:06]requested_item shift.opened is exist - process it [15:37:06]req_shift_opened [15:37:06]FM_GetShiftState [15:37:06]SAM_PROTO_GetShiftState [15:37:06]wFMCommunicate request_size=4 [15:37:06]MH_SAM_APDU [15:37:06]CAPDU: 80 13 01 00 [15:37:06]Write to MH i2c: E2 08 00 BC 14 80 13 01 00 00 00 00 00 4D [15:37:06]Write i2c OK [15:37:06]MH_I2C_Read... [15:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:06]Read from MH i2c: E2 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: E2 0E 00 [15:37:06]MH_I2C_Read... [15:37:06]Read from MH i2c: E2 0E 00 BC 14 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 DF [15:37:06]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:37:06]wFMCommunicate OK [15:37:06]SAM_PROTO_GetShiftState done [15:37:06]FM_GetShiftState done [15:37:06]req_shift_opened done [15:37:06]requested_item shift.open_date is exist - process it [15:37:06]req_shift_open_date [15:37:06]req_shift_open_date done [15:37:06]produce_requested_data done [15:37:06]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69788,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [15:37:06]process_action_free close_receipt [15:37:06]json_value_free [15:37:06]json_value_free done [15:37:06]process_json_proto returns [15:37:06]Send response to host [15:37:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69788,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [15:37:06]free response buf [15:37:06]execute_script done [15:37:06]execute_script returns [15:37:06]free content buf [15:37:06]Sock 7.Close socket [15:37:06]Sock 7.Thread stoped [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:58]accept exits with 9 [15:38:58]New connection [15:38:58]New thread 3066486116 created [15:38:58]Thread 3066629476 joined [15:38:58]Waiting for new connection... [15:38:58] Sock 9.Parse request [15:38:58]Sock 9.Check first char [15:38:58]Sock 9.First char is OK [15:38:58]request: POST /json_proto HTTP/1.0 [15:38:58]Method: POST [15:38:58]URL: /json_proto [15:38:58]Method is POST - this is cgi request [15:38:58]url: /json_proto [15:38:58]query_string will be loaded in cgi processing [15:38:58]execute_cgi json_proto POST (null) [15:38:58]execute_cgi path=json_proto method=POST [15:38:58]POST find Content-Length [15:38:58]Host: 172.17.52.196:8080 [15:38:58]Content-Length: 590 [15:38:58]Content-Type: application/json [15:38:58] [15:38:58]POST finish read [15:38:58]Found Content-Length = 590 [15:38:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127187", "tax_sys" : 0, "items" : [ { "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:58]execute_script... [15:38:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127187", "tax_sys" : 0, "items" : [ { "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:58]POST & json_proto [15:38:58]process_json_proto [15:38:58]json parsed OK: [15:38:58]protocol is kg_v1.0 [15:38:58]action value=close_receipt [15:38:58]process_action close_receipt [15:38:58]cmd_close_receipt [15:38:58]MH_GetDate [15:38:58]Write to MH i2c: F0 00 00 BD 14 C0 [15:38:58]Write i2c OK [15:38:58]MH_I2C_Read... [15:38:58]Read from MH i2c: F0 [15:38:58]MH_I2C_Read... [15:38:58]Read from MH i2c: F0 09 00 [15:38:58]MH_I2C_Read... [15:38:58]Read from MH i2c: F0 09 00 BD 14 00 15 24 15 67 60 05 E4 66 2D [15:38:58]GetLastDocTimeStamp 1729438624 [15:38:58]current date 1729438741 [15:38:58]FM_GetShiftState [15:38:58]SAM_PROTO_GetShiftState [15:38:58]wFMCommunicate request_size=4 [15:38:58]MH_SAM_APDU [15:38:58]CAPDU: 80 13 01 00 [15:38:58]Write to MH i2c: E2 08 00 BE 14 80 13 01 00 00 00 00 00 4F [15:38:58]Write i2c OK [15:38:58]MH_I2C_Read... [15:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:58]Read from MH i2c: E2 [15:38:58]MH_I2C_Read... [15:38:58]Read from MH i2c: E2 0E 00 [15:38:58]MH_I2C_Read... [15:38:58]Read from MH i2c: E2 0E 00 BE 14 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 E1 [15:38:58]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:38:58]wFMCommunicate OK [15:38:58]SAM_PROTO_GetShiftState done [15:38:58]FM_GetShiftState done [15:38:58]opened in 1729384380 [15:38:58]opened+sec_in_day 1729470780 [15:38:58]quantity*price = 4500 [15:38:58]sum+1 = 4501 [15:38:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 79 20.10.2024 15:39 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69789 ФПД: 147211160860162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153901&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69789&fm=147211160860162&tin=02508201610067®Number=0000000000091770&sum=4500 0 [15:38:59]StoreToDocumentArchive [15:38:59]shift 526 fd 69789 [15:38:59]save to /storage/0526/doc_00069789 [15:38:59]save last doc name /storage/0526/doc_00069789 to /storage/kkm_last_doc_name [15:38:59]save OK [15:38:59]Clear old archive folders... [15:38:59]ProcessDocumentItem done err = 0, tmpTLVsize=265 [15:38:59]tlvbuf is 00A0E790 [15:38:59]SAM_PROTO_ClearQueue [15:38:59]wFMCommunicate request_size=4 [15:38:59]MH_SAM_APDU [15:38:59]CAPDU: 80 09 00 00 [15:38:59]Write to MH i2c: E2 08 00 CB 14 80 09 00 00 00 00 00 00 51 [15:38:59]Write i2c OK [15:38:59]MH_I2C_Read... [15:38:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:59]Read from MH i2c: E2 [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: E2 03 00 [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: E2 03 00 CB 14 00 90 00 53 [15:38:59]RAPDU: 90 00 [15:38:59]wFMCommunicate OK [15:38:59]SAM_PROTO_ClearQueue done [15:38:59]KKMCreateOFDPacket [15:38:59]OFDProtocolAddRootSTLVToBuf [15:38:59]FM_MakeSignedData [15:38:59]FM_MakeSignedData [15:38:59]SAM_PROTO_SignData [15:38:59]wFMCommunicate request_size=4 [15:38:59]MH_SAM_APDU [15:38:59]CAPDU: 80 0D 01 02 [15:38:59]Write to MH i2c: E2 08 00 CC 14 80 0D 01 02 00 00 00 00 59 [15:38:59]Write i2c OK [15:38:59]MH_I2C_Read... [15:38:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:59]Read from MH i2c: E2 [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: E2 03 00 [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: E2 03 00 CC 14 00 90 00 54 [15:38:59]RAPDU: 90 00 [15:38:59]wFMCommunicate OK [15:38:59]wFMCommunicate request_size=255 [15:38:59]MH_SAM_APDU [15:38:59]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 15 24 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 [15:38:59]Write to MH i2c: E2 02 01 CD 14 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 15 24 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 00 00 44 [15:38:59]Write i2c OK [15:38:59]MH_I2C_Read... [15:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:00]Read from MH i2c: E2 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 03 00 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 03 00 CD 14 00 90 00 55 [15:39:00]RAPDU: 90 00 [15:39:00]wFMCommunicate OK [15:39:00]wFMCommunicate request_size=24 [15:39:00]MH_SAM_APDU [15:39:00]CAPDU: 80 0D 02 02 13 39 10 04 04 00 9D 10 01 00 35 04 06 00 85 E3 44 F3 36 02 [15:39:00]Write to MH i2c: E2 1B 00 CE 14 80 0D 02 02 13 00 39 10 04 04 00 9D 10 01 00 35 04 06 00 85 E3 44 F3 36 02 00 00 97 [15:39:00]Write i2c OK [15:39:00]MH_I2C_Read... [15:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:00]Read from MH i2c: E2 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 03 00 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 03 00 CE 14 00 90 00 56 [15:39:00]RAPDU: 90 00 [15:39:00]wFMCommunicate OK [15:39:00]wFMCommunicate request_size=4 [15:39:00]MH_SAM_APDU [15:39:00]CAPDU: 80 0D 03 02 [15:39:00]Write to MH i2c: E2 08 00 CF 14 80 0D 03 02 00 00 00 00 5E [15:39:00]Write i2c OK [15:39:00]MH_I2C_Read... [15:39:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:00]Read from MH i2c: E2 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 0B 00 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 0B 00 CF 14 00 2D A0 AA 33 80 C7 B2 1A 90 00 1C [15:39:00]RAPDU: 2D A0 AA 33 80 C7 B2 1A 90 00 [15:39:00]wFMCommunicate OK [15:39:00]SAM_PROTO_SignData done [15:39:00]FM_MakeSignedData done [15:39:00]CreateOFDProtocolMessage [15:39:00]wFMCommunicate request_size=4 [15:39:00]MH_SAM_APDU [15:39:00]CAPDU: 80 11 00 00 [15:39:00]Write to MH i2c: E2 08 00 D0 14 80 11 00 00 00 00 00 00 5E [15:39:00]Write i2c OK [15:39:00]MH_I2C_Read... [15:39:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:00]Read from MH i2c: E2 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 17 00 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 17 00 D0 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 B5 [15:39:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:39:00]wFMCommunicate OK [15:39:00]CreateOFDProtocolMessage done [15:39:00]OFDSenderStorePacket 69789 [15:39:00]StoreOFDPacket docnum=69789 [15:39:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 1D 01 00 00 41 67 15 01 17 73 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 15 24 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9D 10 01 00 35 04 06 00 85 E3 44 F3 36 02 2D A0 AA 33 80 C7 B2 1A [15:39:00]CheckFolder [15:39:00]dirname=/storage/ofd_packets [15:39:00]CheckFolder done [15:39:00]ProducePacketName [15:39:00]name=ofd_packets/00069789 [15:39:00]NVStorageSaveData ofd_packets/00069789 [15:39:00]File name is /storage/ofd_packets/00069789 [15:39:00]Write 315 bytes [15:39:00]NVStorageSaveData done [15:39:00]OFDSenderStorePacket done [15:39:00]KKMCreateOFDPacket done [15:39:00]NVStorageSaveData kkm_last_timestamp [15:39:00]File name is /storage/kkm_last_timestamp [15:39:00]Write 4 bytes [15:39:00]NVStorageSaveData done [15:39:00]ExternCall_PrintAddStr [15:39:00]wPrintStart [15:39:00]Write to MH i2c: 01 00 00 D1 14 E5 [15:39:00]Write i2c OK [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: 01 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: 01 07 00 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: 01 07 00 D1 14 00 00 00 00 00 FF 0F FA [15:39:00]RasterBufferAndPrint [15:39:00]line Счет N : (3)127187 [15:39:00]line ИНН: 02508201610067 [15:39:00]line Контрольно-Кассовый Чек [15:39:00]line ПРОДАЖА [15:39:00]line Товар: 42113164 [15:39:00]line Жев Orbit White Spearmint [15:39:00]line 1.000 * 45.00 [15:39:00]line = 45.00 [15:39:00]line НДС 12% НСП 1% [15:39:00]line > о реализуемом товаре [15:39:00]line ИТОГО: 45.00 [15:39:00]line НСП 1% : 0.40 [15:39:00]line НДС 12% : 4.78 [15:39:00]line Наличными: 45.00 [15:39:00]line Безнал.: 0.00 [15:39:00]line Место: АЗС № 163 "Партнер Нефть" [15:39:00]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [15:39:00]line СНО: Общий режим [15:39:00]line Чек 79 20.10.2024 15:39 [15:39:00]line Смена: 526 ФФД: 1.0 [15:39:00]line ЗНМ: 0300000101 [15:39:00]line РНМ: 0000000000091770 [15:39:00]line Версия ККМ: 001 [15:39:00]line ФМ: 0000000000871749 [15:39:00]line ФД: 69789 [15:39:00]line ФПД: 147211160860162 [15:39:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T153901&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69789&fm=147211160860162&tin=02508201610067®Number=0000000000091770&sum=4500 [15:39:00]OFD Sender: Processing packet 69789 [packets to send 32, broken 31] [15:39:00]ProducePacketName [15:39:00]name=ofd_packets/00069789 [15:39:00]OFD Sender: To server: pG, [15:39:00]CommunicateWithHost lk.salyk.kg:30040 [15:39:00]ConnectInit lk.salyk.kg [15:39:00]line 0 [15:39:00]written 0, free lines is 4095 [15:39:00]Connected sock=10 [15:39:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 1D 01 00 00 41 67 15 01 17 73 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 15 24 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9D 10 01 00 35 04 06 00 85 E3 44 F3 36 02 2D A0 AA 33 80 C7 B2 1A [15:39:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 A0 C2 47 00 D8 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9D 10 01 00 F4 03 04 00 97 C9 14 67 B6 04 01 00 00 67 96 90 18 92 84 99 9E [15:39:01]CommunicateWithHost err = 0 [15:39:01]CheckOFDResponse [15:39:01]1017 (14) - 77093643461234 [15:39:01]1041 (16) - 0000000000871749 [15:39:01]1040 (4) - 69789 [15:39:01]1012 (4) - 20.10.2024 09:12 [15:39:01]1206 (1) - 0 [15:39:01]OFD Sender: Remove packet 69789 [15:39:01]ProducePacketName [15:39:01]name=ofd_packets/00069789 [15:39:01]NVStorageDeleteData [15:39:01]Write to MH i2c: 01 00 00 F9 14 0D [15:39:01]Write i2c OK [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: 01 [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: 01 07 00 [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: 01 07 00 F9 14 00 00 00 00 00 06 0D 27 [15:39:01]RasterBufferAndPrint [15:39:01]line [15:39:01]line [15:39:01]line [15:39:01]line [15:39:01]line [15:39:01]written 0, free lines is 3340 [15:39:01]MH_Cut [15:39:01]Write to MH i2c: D1 01 00 00 15 01 E7 [15:39:01]Write i2c OK [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: D1 [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: D1 01 00 [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: D1 01 00 00 15 00 E6 [15:39:01]Write to MH i2c: 01 00 00 01 15 16 [15:39:01]Write i2c OK [15:39:01]MH_I2C_Read... [15:39:01]OFD Sender: No OFD packet to send [15:39:01]*** Cut start [15:39:01]*** Partial cut [15:39:01]*** CUTSNS_PIN = 1 [15:39:01]*** CUTSNS_PIN = 0 [15:39:02]*** Brake cut motor [15:39:02]Read from MH i2c: 01 [15:39:02]MH_I2C_Read... [15:39:02]*** Stop cut motor [15:39:02]*** Cut end [15:39:02]Read from MH i2c: 01 07 00 [15:39:02]MH_I2C_Read... [15:39:02]Read from MH i2c: 01 07 00 01 15 00 00 00 00 00 FF 0F 2B [15:39:02]process_action close_receipt done [15:39:02]requested_data is exist [15:39:02]produce_requested_data [15:39:02]requested_item fm.sn is exist - process it [15:39:02]wFMCommunicate request_size=4 [15:39:02]MH_SAM_APDU [15:39:02]CAPDU: 80 11 00 00 [15:39:02]Write to MH i2c: E2 08 00 02 15 80 11 00 00 00 00 00 00 91 [15:39:02]Write i2c OK [15:39:02]MH_I2C_Read... [15:39:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:02]Read from MH i2c: E2 [15:39:02]MH_I2C_Read... [15:39:02]Read from MH i2c: E2 17 00 [15:39:02]MH_I2C_Read... [15:39:02]Read from MH i2c: E2 17 00 02 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 E8 [15:39:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:39:02]wFMCommunicate OK [15:39:02]requested_item fd.num is exist - process it [15:39:02]SAM_PROTO_GetFieldsCounters [15:39:02]wFMCommunicate request_size=4 [15:39:02]MH_SAM_APDU [15:39:02]CAPDU: 80 13 00 00 [15:39:02]Write to MH i2c: E2 08 00 03 15 80 13 00 00 00 00 00 00 94 [15:39:02]Write i2c OK [15:39:02]MH_I2C_Read... [15:39:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:02]Read from MH i2c: E2 [15:39:02]MH_I2C_Read... [15:39:02]Read from MH i2c: E2 62 00 [15:39:02]MH_I2C_Read... [15:39:02]Read from MH i2c: E2 62 00 03 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 9D 10 01 00 0E 04 04 00 0E 02 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 63 [15:39: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 9D 10 01 00 0E 04 04 00 0E 02 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 [15:39:02]wFMCommunicate OK [15:39:02]SAM_PROTO_GetFieldsCounters done [15:39:02]requested_item shift.num is exist - process it [15:39:02]requested_item shift.opened is exist - process it [15:39:02]req_shift_opened [15:39:02]FM_GetShiftState [15:39:02]SAM_PROTO_GetShiftState [15:39:02]wFMCommunicate request_size=4 [15:39:02]MH_SAM_APDU [15:39:02]CAPDU: 80 13 01 00 [15:39:02]Write to MH i2c: E2 08 00 04 15 80 13 01 00 00 00 00 00 96 [15:39:02]Write i2c OK [15:39:02]MH_I2C_Read... [15:39:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:02]Read from MH i2c: E2 [15:39:02]MH_I2C_Read... [15:39:02]Read from MH i2c: E2 0E 00 [15:39:02]MH_I2C_Read... [15:39:02]Read from MH i2c: E2 0E 00 04 15 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 28 [15:39:02]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:39:02]wFMCommunicate OK [15:39:02]SAM_PROTO_GetShiftState done [15:39:02]FM_GetShiftState done [15:39:02]req_shift_opened done [15:39:02]requested_item shift.open_date is exist - process it [15:39:02]req_shift_open_date [15:39:02]req_shift_open_date done [15:39:02]produce_requested_data done [15:39:02]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69789,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [15:39:02]process_action_free close_receipt [15:39:02]json_value_free [15:39:02]json_value_free done [15:39:02]process_json_proto returns [15:39:02]Send response to host [15:39:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69789,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [15:39:02]free response buf [15:39:02]execute_script done [15:39:02]execute_script returns [15:39:02]free content buf [15:39:02]Sock 9.Close socket [15:39:02]Sock 9.Thread stoped [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:45]accept exits with 7 [15:40:45]New connection [15:40:45]New thread 3066629476 created [15:40:45]Thread 3066486116 joined [15:40:45]Waiting for new connection... [15:40:45] Sock 7.Parse request [15:40:45]Sock 7.Check first char [15:40:45]Sock 7.First char is OK [15:40:45]request: POST /json_proto HTTP/1.0 [15:40:45]Method: POST [15:40:45]URL: /json_proto [15:40:45]Method is POST - this is cgi request [15:40:45]url: /json_proto [15:40:45]query_string will be loaded in cgi processing [15:40:45]execute_cgi json_proto POST (null) [15:40:45]execute_cgi path=json_proto method=POST [15:40:45]POST find Content-Length [15:40:45]Host: 172.17.52.196:8080 [15:40:45]Content-Length: 782 [15:40:45]Content-Type: application/json [15:40:45] [15:40:45]POST finish read [15:40:45]Found Content-Length = 782 [15:40:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127188", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:45]execute_script... [15:40: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)127188", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:45]POST & json_proto [15:40:45]process_json_proto [15:40:45]json parsed OK: [15:40:45]protocol is kg_v1.0 [15:40:45]action value=close_receipt [15:40:45]process_action close_receipt [15:40:45]cmd_close_receipt [15:40:45]MH_GetDate [15:40:45]Write to MH i2c: F0 00 00 05 15 09 [15:40:45]Write i2c OK [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: F0 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: F0 09 00 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: F0 09 00 05 15 00 80 24 15 67 60 05 E4 66 E1 [15:40:45]GetLastDocTimeStamp 1729438741 [15:40:45]current date 1729438848 [15:40:45]FM_GetShiftState [15:40:45]SAM_PROTO_GetShiftState [15:40:45]wFMCommunicate request_size=4 [15:40:45]MH_SAM_APDU [15:40:45]CAPDU: 80 13 01 00 [15:40:45]Write to MH i2c: E2 08 00 06 15 80 13 01 00 00 00 00 00 98 [15:40:45]Write i2c OK [15:40:45]MH_I2C_Read... [15:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:45]Read from MH i2c: E2 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: E2 0E 00 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: E2 0E 00 06 15 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 2A [15:40:45]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:40:45]wFMCommunicate OK [15:40:45]SAM_PROTO_GetShiftState done [15:40:45]FM_GetShiftState done [15:40:45]opened in 1729384380 [15:40:45]opened+sec_in_day 1729470780 [15:40:45]quantity*price = 6900 [15:40:45]sum+1 = 6901 [15:40:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 69.00 НСП 1% : 0.61 НДС 12% : 7.33 Наличными: 0.00 Безнал.: 69.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 80 20.10.2024 15:40 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69790 ФПД: 11389889722258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154048&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69790&fm=11389889722258&tin=02508201610067®Number=0000000000091770&sum=6900 0 [15:40:46]StoreToDocumentArchive [15:40:46]shift 526 fd 69790 [15:40:46]save to /storage/0526/doc_00069790 [15:40:46]save last doc name /storage/0526/doc_00069790 to /storage/kkm_last_doc_name [15:40:46]save OK [15:40:46]Clear old archive folders... [15:40:46]ProcessDocumentItem done err = 0, tmpTLVsize=294 [15:40:46]tlvbuf is 00A05670 [15:40:46]SAM_PROTO_ClearQueue [15:40:46]wFMCommunicate request_size=4 [15:40:46]MH_SAM_APDU [15:40:46]CAPDU: 80 09 00 00 [15:40:46]Write to MH i2c: E2 08 00 13 15 80 09 00 00 00 00 00 00 9A [15:40:46]Write i2c OK [15:40:46]MH_I2C_Read... [15:40:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:46]Read from MH i2c: E2 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: E2 03 00 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: E2 03 00 13 15 00 90 00 9C [15:40:46]RAPDU: 90 00 [15:40:46]wFMCommunicate OK [15:40:46]SAM_PROTO_ClearQueue done [15:40:46]KKMCreateOFDPacket [15:40:46]OFDProtocolAddRootSTLVToBuf [15:40:46]FM_MakeSignedData [15:40:46]FM_MakeSignedData [15:40:46]SAM_PROTO_SignData [15:40:46]wFMCommunicate request_size=4 [15:40:46]MH_SAM_APDU [15:40:46]CAPDU: 80 0D 01 02 [15:40:46]Write to MH i2c: E2 08 00 14 15 80 0D 01 02 00 00 00 00 A2 [15:40:46]Write i2c OK [15:40:46]MH_I2C_Read... [15:40:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:46]Read from MH i2c: E2 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: E2 03 00 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: E2 03 00 14 15 00 90 00 9D [15:40:46]RAPDU: 90 00 [15:40:46]wFMCommunicate OK [15:40:46]wFMCommunicate request_size=255 [15:40:46]MH_SAM_APDU [15:40:46]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 80 24 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [15:40:46]Write to MH i2c: E2 02 01 15 15 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 80 24 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 31 [15:40:46]Write i2c OK [15:40:46]MH_I2C_Read... [15:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:47]Read from MH i2c: E2 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 03 00 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 03 00 15 15 00 90 00 9E [15:40:47]RAPDU: 90 00 [15:40:47]wFMCommunicate OK [15:40:47]wFMCommunicate request_size=53 [15:40:47]MH_SAM_APDU [15:40:47]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9E 10 01 00 35 04 06 00 0A 5B EA 54 B7 92 [15:40:47]Write to MH i2c: E2 38 00 16 15 80 0D 02 02 30 00 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9E 10 01 00 35 04 06 00 0A 5B EA 54 B7 92 00 00 38 [15:40:47]Write i2c OK [15:40:47]MH_I2C_Read... [15:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:47]Read from MH i2c: E2 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 03 00 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 03 00 16 15 00 90 00 9F [15:40:47]RAPDU: 90 00 [15:40:47]wFMCommunicate OK [15:40:47]wFMCommunicate request_size=4 [15:40:47]MH_SAM_APDU [15:40:47]CAPDU: 80 0D 03 02 [15:40:47]Write to MH i2c: E2 08 00 17 15 80 0D 03 02 00 00 00 00 A7 [15:40:47]Write i2c OK [15:40:47]MH_I2C_Read... [15:40:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:47]Read from MH i2c: E2 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 0B 00 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 0B 00 17 15 00 0C E8 0F 4E F2 28 D6 7C 90 00 65 [15:40:47]RAPDU: 0C E8 0F 4E F2 28 D6 7C 90 00 [15:40:47]wFMCommunicate OK [15:40:47]SAM_PROTO_SignData done [15:40:47]FM_MakeSignedData done [15:40:47]CreateOFDProtocolMessage [15:40:47]wFMCommunicate request_size=4 [15:40:47]MH_SAM_APDU [15:40:47]CAPDU: 80 11 00 00 [15:40:47]Write to MH i2c: E2 08 00 18 15 80 11 00 00 00 00 00 00 A7 [15:40:47]Write i2c OK [15:40:47]MH_I2C_Read... [15:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:47]Read from MH i2c: E2 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 17 00 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 17 00 18 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 FE [15:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:40:47]wFMCommunicate OK [15:40:47]CreateOFDProtocolMessage done [15:40:47]OFDSenderStorePacket 69790 [15:40:47]StoreOFDPacket docnum=69790 [15:40:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 3A 01 00 00 51 AA 32 01 A9 4D 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 80 24 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9E 10 01 00 35 04 06 00 0A 5B EA 54 B7 92 0C E8 0F 4E F2 28 D6 7C [15:40:47]CheckFolder [15:40:47]dirname=/storage/ofd_packets [15:40:47]CheckFolder done [15:40:47]ProducePacketName [15:40:47]name=ofd_packets/00069790 [15:40:47]NVStorageSaveData ofd_packets/00069790 [15:40:47]File name is /storage/ofd_packets/00069790 [15:40:47]Write 344 bytes [15:40:47]NVStorageSaveData done [15:40:47]OFDSenderStorePacket done [15:40:47]KKMCreateOFDPacket done [15:40:47]NVStorageSaveData kkm_last_timestamp [15:40:47]File name is /storage/kkm_last_timestamp [15:40:47]Write 4 bytes [15:40:47]NVStorageSaveData done [15:40:47]ExternCall_PrintAddStr [15:40:47]wPrintStart [15:40:47]Write to MH i2c: 01 00 00 19 15 2E [15:40:47]Write i2c OK [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: 01 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: 01 07 00 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: 01 07 00 19 15 00 00 00 00 00 FF 0F 43 [15:40:47]RasterBufferAndPrint [15:40:47]line Счет N : (3)127188 [15:40:47]line ИНН: 02508201610067 [15:40:47]line Контрольно-Кассовый Чек [15:40:47]line ПРОДАЖА [15:40:47]line Товар: 4600682557456 [15:40:47]line Напиток FLash up energy эн ж/б 0,5/0,45л [15:40:47]line 1.000 * 69.00 [15:40:47]line = 69.00 [15:40:47]line НДС 12% НСП 1% [15:40:47]line > о реализуемом товаре [15:40:47]line ИТОГО: 69.00 [15:40:47]line НСП 1% : 0.61 [15:40:47]line НДС 12% : 7.33 [15:40:47]line Наличными: 0.00 [15:40:47]line Безнал.: 69.00 [15:40:47]line Место: АЗС № 163 "Партнер Нефть" [15:40:47]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [15:40:47]line СНО: Общий режим [15:40:47]line Чек 80 20.10.2024 15:40 [15:40:47]line Смена: 526 ФФД: 1.0 [15:40:47]line ЗНМ: 0300000101 [15:40:47]line РНМ: 0000000000091770 [15:40:47]line Версия ККМ: 001 [15:40:47]line Платежная система: Mbank [15:40:47]line ФМ: 0000000000871749 [15:40:47]line ФД: 69790 [15:40:47]line ФПД: 11389889722258 [15:40:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154048&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69790&fm=11389889722258&tin=02508201610067®Number=0000000000091770&sum=6900 [15:40:47]line 0 [15:40:47]OFD Sender: Processing packet 69790 [packets to send 32, broken 31] [15:40:47]ProducePacketName [15:40:47]name=ofd_packets/00069790 [15:40:47]OFD Sender: To server: pG, [15:40:47]CommunicateWithHost lk.salyk.kg:30040 [15:40:47]ConnectInit lk.salyk.kg [15:40:47]written 0, free lines is 4095 [15:40:47]Connected sock=10 [15:40:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 3A 01 00 00 51 AA 32 01 A9 4D 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 80 24 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9E 10 01 00 35 04 06 00 0A 5B EA 54 B7 92 0C E8 0F 4E F2 28 D6 7C [15:40:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 34 82 47 00 7C 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9E 10 01 00 F4 03 04 00 02 CA 14 67 B6 04 01 00 00 A2 35 1E 03 A3 A2 85 44 [15:40:47]CommunicateWithHost err = 0 [15:40:47]CheckOFDResponse [15:40:47]1017 (14) - 77093643461234 [15:40:47]1041 (16) - 0000000000871749 [15:40:47]1040 (4) - 69790 [15:40:47]1012 (4) - 20.10.2024 09:14 [15:40:47]1206 (1) - 0 [15:40:47]OFD Sender: Remove packet 69790 [15:40:47]ProducePacketName [15:40:47]name=ofd_packets/00069790 [15:40:47]NVStorageDeleteData [15:40:48]Write to MH i2c: 01 00 00 43 15 58 [15:40:48]Write i2c OK [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: 01 [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: 01 07 00 [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: 01 07 00 43 15 00 00 00 00 00 E4 0C 4F [15:40:48]RasterBufferAndPrint [15:40:48]line [15:40:48]line [15:40:48]line [15:40:48]line [15:40:48]line [15:40:48]written 0, free lines is 3307 [15:40:48]MH_Cut [15:40:48]Write to MH i2c: D1 01 00 4A 15 01 31 [15:40:48]Write i2c OK [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: D1 [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: D1 01 00 [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: D1 01 00 4A 15 00 30 [15:40:48]Write to MH i2c: 01 00 00 4B 15 60 [15:40:48]Write i2c OK [15:40:48]MH_I2C_Read... [15:40:48]OFD Sender: No OFD packet to send [15:40:48]*** Cut start [15:40:48]*** Partial cut [15:40:48]*** CUTSNS_PIN = 1 [15:40:48]*** CUTSNS_PIN = 0 [15:40:49]*** Brake cut motor [15:40:49]Read from MH i2c: 01 [15:40:49]MH_I2C_Read... [15:40:49]*** Stop cut motor [15:40:49]*** Cut end [15:40:49]Read from MH i2c: 01 07 00 [15:40:49]MH_I2C_Read... [15:40:49]Read from MH i2c: 01 07 00 4B 15 00 00 00 00 00 FF 0F 75 [15:40:49]process_action close_receipt done [15:40:49]requested_data is exist [15:40:49]produce_requested_data [15:40:49]requested_item fm.sn is exist - process it [15:40:49]wFMCommunicate request_size=4 [15:40:49]MH_SAM_APDU [15:40:49]CAPDU: 80 11 00 00 [15:40:49]Write to MH i2c: E2 08 00 4C 15 80 11 00 00 00 00 00 00 DB [15:40:49]Write i2c OK [15:40:49]MH_I2C_Read... [15:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:49]Read from MH i2c: E2 [15:40:49]MH_I2C_Read... [15:40:49]Read from MH i2c: E2 17 00 [15:40:49]MH_I2C_Read... [15:40:49]Read from MH i2c: E2 17 00 4C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 32 [15:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:40:49]wFMCommunicate OK [15:40:49]requested_item fd.num is exist - process it [15:40:49]SAM_PROTO_GetFieldsCounters [15:40:49]wFMCommunicate request_size=4 [15:40:49]MH_SAM_APDU [15:40:49]CAPDU: 80 13 00 00 [15:40:49]Write to MH i2c: E2 08 00 4D 15 80 13 00 00 00 00 00 00 DE [15:40:49]Write i2c OK [15:40:49]MH_I2C_Read... [15:40:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:49]Read from MH i2c: E2 [15:40:49]MH_I2C_Read... [15:40:49]Read from MH i2c: E2 62 00 [15:40:49]MH_I2C_Read... [15:40:49]Read from MH i2c: E2 62 00 4D 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 9E 10 01 00 0E 04 04 00 0E 02 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 B1 [15:40: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 9E 10 01 00 0E 04 04 00 0E 02 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 [15:40:49]wFMCommunicate OK [15:40:49]SAM_PROTO_GetFieldsCounters done [15:40:49]requested_item shift.num is exist - process it [15:40:49]requested_item shift.opened is exist - process it [15:40:49]req_shift_opened [15:40:49]FM_GetShiftState [15:40:49]SAM_PROTO_GetShiftState [15:40:49]wFMCommunicate request_size=4 [15:40:49]MH_SAM_APDU [15:40:49]CAPDU: 80 13 01 00 [15:40:49]Write to MH i2c: E2 08 00 4E 15 80 13 01 00 00 00 00 00 E0 [15:40:49]Write i2c OK [15:40:49]MH_I2C_Read... [15:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:49]Read from MH i2c: E2 [15:40:49]MH_I2C_Read... [15:40:49]Read from MH i2c: E2 0E 00 [15:40:49]MH_I2C_Read... [15:40:49]Read from MH i2c: E2 0E 00 4E 15 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 72 [15:40:49]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:40:49]wFMCommunicate OK [15:40:49]SAM_PROTO_GetShiftState done [15:40:49]FM_GetShiftState done [15:40:49]req_shift_opened done [15:40:49]requested_item shift.open_date is exist - process it [15:40:49]req_shift_open_date [15:40:49]req_shift_open_date done [15:40:49]produce_requested_data done [15:40:49]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69790,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [15:40:49]process_action_free close_receipt [15:40:49]json_value_free [15:40:49]json_value_free done [15:40:49]process_json_proto returns [15:40:49]Send response to host [15:40:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69790,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [15:40:49]free response buf [15:40:49]execute_script done [15:40:49]execute_script returns [15:40:49]free content buf [15:40:49]Sock 7.Close socket [15:40:49]Sock 7.Thread stoped [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:36]accept exits with 9 [15:41:36]New connection [15:41:36]New thread 3066486116 created [15:41:36]Thread 3066629476 joined [15:41:36]Waiting for new connection... [15:41:36] Sock 9.Parse request [15:41:36]Sock 9.Check first char [15:41:36]Sock 9.First char is OK [15:41:36]request: POST /json_proto HTTP/1.0 [15:41:36]Method: POST [15:41:36]URL: /json_proto [15:41:36]Method is POST - this is cgi request [15:41:36]url: /json_proto [15:41:36]query_string will be loaded in cgi processing [15:41:36]execute_cgi json_proto POST (null) [15:41:36]execute_cgi path=json_proto method=POST [15:41:36]POST find Content-Length [15:41:36]Host: 172.17.52.196:8080 [15:41:36]Content-Length: 633 [15:41:36]Content-Type: application/json [15:41:36] [15:41:36]POST finish read [15:41:36]Found Content-Length = 633 [15:41:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127189", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:36]execute_script... [15:41:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127189", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:36]POST & json_proto [15:41:36]process_json_proto [15:41:36]json parsed OK: [15:41:36]protocol is kg_v1.0 [15:41:36]action value=close_receipt [15:41:36]process_action close_receipt [15:41:36]cmd_close_receipt [15:41:36]MH_GetDate [15:41:36]Write to MH i2c: F0 00 00 4F 15 53 [15:41:36]Write i2c OK [15:41:36]MH_I2C_Read... [15:41:36]Read from MH i2c: F0 [15:41:36]MH_I2C_Read... [15:41:36]Read from MH i2c: F0 09 00 [15:41:36]MH_I2C_Read... [15:41:36]Read from MH i2c: F0 09 00 4F 15 00 B3 24 15 67 60 05 E4 66 5E [15:41:36]GetLastDocTimeStamp 1729438848 [15:41:36]current date 1729438899 [15:41:36]FM_GetShiftState [15:41:36]SAM_PROTO_GetShiftState [15:41:36]wFMCommunicate request_size=4 [15:41:36]MH_SAM_APDU [15:41:36]CAPDU: 80 13 01 00 [15:41:36]Write to MH i2c: E2 08 00 50 15 80 13 01 00 00 00 00 00 E2 [15:41:36]Write i2c OK [15:41:36]MH_I2C_Read... [15:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:36]Read from MH i2c: E2 [15:41:36]MH_I2C_Read... [15:41:36]Read from MH i2c: E2 0E 00 [15:41:36]MH_I2C_Read... [15:41:36]Read from MH i2c: E2 0E 00 50 15 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 74 [15:41:36]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:41:36]wFMCommunicate OK [15:41:36]SAM_PROTO_GetShiftState done [15:41:36]FM_GetShiftState done [15:41:36]opened in 1729384380 [15:41:36]opened+sec_in_day 1729470780 [15:41:36]quantity*price = 7500 [15:41:36]sum+1 = 7501 [15:41:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 81 20.10.2024 15:41 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69791 ФПД: 146091518069238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154139&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69791&fm=146091518069238&tin=02508201610067®Number=0000000000091770&sum=7500 0 [15:41:37]StoreToDocumentArchive [15:41:37]shift 526 fd 69791 [15:41:37]save to /storage/0526/doc_00069791 [15:41:37]save last doc name /storage/0526/doc_00069791 to /storage/kkm_last_doc_name [15:41:37]save OK [15:41:37]Clear old archive folders... [15:41:37]ProcessDocumentItem done err = 0, tmpTLVsize=268 [15:41:37]tlvbuf is 00A051E0 [15:41:37]SAM_PROTO_ClearQueue [15:41:37]wFMCommunicate request_size=4 [15:41:37]MH_SAM_APDU [15:41:37]CAPDU: 80 09 00 00 [15:41:37]Write to MH i2c: E2 08 00 5D 15 80 09 00 00 00 00 00 00 E4 [15:41:37]Write i2c OK [15:41:37]MH_I2C_Read... [15:41:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:37]Read from MH i2c: E2 [15:41:37]MH_I2C_Read... [15:41:37]Read from MH i2c: E2 03 00 [15:41:37]MH_I2C_Read... [15:41:37]Read from MH i2c: E2 03 00 5D 15 00 90 00 E6 [15:41:37]RAPDU: 90 00 [15:41:37]wFMCommunicate OK [15:41:37]SAM_PROTO_ClearQueue done [15:41:37]KKMCreateOFDPacket [15:41:37]OFDProtocolAddRootSTLVToBuf [15:41:37]FM_MakeSignedData [15:41:37]FM_MakeSignedData [15:41:37]SAM_PROTO_SignData [15:41:37]wFMCommunicate request_size=4 [15:41:37]MH_SAM_APDU [15:41:37]CAPDU: 80 0D 01 02 [15:41:37]Write to MH i2c: E2 08 00 5E 15 80 0D 01 02 00 00 00 00 EC [15:41:37]Write i2c OK [15:41:37]MH_I2C_Read... [15:41:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:37]Read from MH i2c: E2 [15:41:37]MH_I2C_Read... [15:41:37]Read from MH i2c: E2 03 00 [15:41:37]MH_I2C_Read... [15:41:37]Read from MH i2c: E2 03 00 5E 15 00 90 00 E7 [15:41:37]RAPDU: 90 00 [15:41:37]wFMCommunicate OK [15:41:37]wFMCommunicate request_size=255 [15:41:37]MH_SAM_APDU [15:41:37]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 B3 24 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [15:41:37]Write to MH i2c: E2 02 01 5F 15 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 B3 24 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 FA [15:41:37]Write i2c OK [15:41:37]MH_I2C_Read... [15:41:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:38]Read from MH i2c: E2 [15:41:38]MH_I2C_Read... [15:41:38]Read from MH i2c: E2 03 00 [15:41:38]MH_I2C_Read... [15:41:38]Read from MH i2c: E2 03 00 5F 15 00 90 00 E8 [15:41:38]RAPDU: 90 00 [15:41:38]wFMCommunicate OK [15:41:38]wFMCommunicate request_size=27 [15:41:38]MH_SAM_APDU [15:41:38]CAPDU: 80 0D 02 02 16 31 37 34 39 10 04 04 00 9F 10 01 00 35 04 06 00 84 DE 95 0A 09 F6 [15:41:38]Write to MH i2c: E2 1E 00 60 15 80 0D 02 02 16 00 31 37 34 39 10 04 04 00 9F 10 01 00 35 04 06 00 84 DE 95 0A 09 F6 00 00 F7 [15:41:38]Write i2c OK [15:41:38]MH_I2C_Read... [15:41:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:38]Read from MH i2c: E2 [15:41:38]MH_I2C_Read... [15:41:38]Read from MH i2c: E2 03 00 [15:41:38]MH_I2C_Read... [15:41:38]Read from MH i2c: E2 03 00 60 15 00 90 00 E9 [15:41:38]RAPDU: 90 00 [15:41:38]wFMCommunicate OK [15:41:38]wFMCommunicate request_size=4 [15:41:38]MH_SAM_APDU [15:41:38]CAPDU: 80 0D 03 02 [15:41:38]Write to MH i2c: E2 08 00 61 15 80 0D 03 02 00 00 00 00 F1 [15:41:38]Write i2c OK [15:41:38]MH_I2C_Read... [15:41:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:38]Read from MH i2c: E2 [15:41:38]MH_I2C_Read... [15:41:38]Read from MH i2c: E2 0B 00 [15:41:38]MH_I2C_Read... [15:41:38]Read from MH i2c: E2 0B 00 61 15 00 1F 12 EC 55 A1 43 8C F1 90 00 C5 [15:41:38]RAPDU: 1F 12 EC 55 A1 43 8C F1 90 00 [15:41:38]wFMCommunicate OK [15:41:38]SAM_PROTO_SignData done [15:41:38]FM_MakeSignedData done [15:41:38]CreateOFDProtocolMessage [15:41:38]wFMCommunicate request_size=4 [15:41:38]MH_SAM_APDU [15:41:38]CAPDU: 80 11 00 00 [15:41:38]Write to MH i2c: E2 08 00 62 15 80 11 00 00 00 00 00 00 F1 [15:41:38]Write i2c OK [15:41:38]MH_I2C_Read... [15:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:38]Read from MH i2c: E2 [15:41:38]MH_I2C_Read... [15:41:38]Read from MH i2c: E2 17 00 [15:41:38]MH_I2C_Read... [15:41:38]Read from MH i2c: E2 17 00 62 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 48 [15:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:41:38]wFMCommunicate OK [15:41:38]CreateOFDProtocolMessage done [15:41:38]OFDSenderStorePacket 69791 [15:41:38]StoreOFDPacket docnum=69791 [15:41:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 20 01 00 00 63 8D 18 01 35 56 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 B3 24 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9F 10 01 00 35 04 06 00 84 DE 95 0A 09 F6 1F 12 EC 55 A1 43 8C F1 [15:41:38]CheckFolder [15:41:38]dirname=/storage/ofd_packets [15:41:38]CheckFolder done [15:41:38]ProducePacketName [15:41:38]name=ofd_packets/00069791 [15:41:38]NVStorageSaveData ofd_packets/00069791 [15:41:38]File name is /storage/ofd_packets/00069791 [15:41:38]Write 318 bytes [15:41:38]NVStorageSaveData done [15:41:38]OFDSenderStorePacket done [15:41:38]KKMCreateOFDPacket done [15:41:38]NVStorageSaveData kkm_last_timestamp [15:41:38]File name is /storage/kkm_last_timestamp [15:41:38]Write 4 bytes [15:41:38]NVStorageSaveData done [15:41:38]ExternCall_PrintAddStr [15:41:38]wPrintStart [15:41:38]Write to MH i2c: 01 00 00 63 15 78 [15:41:38]Write i2c OK [15:41:38]MH_I2C_Read... [15:41:38]Read from MH i2c: 01 [15:41:38]MH_I2C_Read... [15:41:38]Read from MH i2c: 01 07 00 [15:41:38]MH_I2C_Read... [15:41:38]Read from MH i2c: 01 07 00 63 15 00 00 00 00 00 FF 0F 8D [15:41:38]RasterBufferAndPrint [15:41:38]line Счет N : (3)127189 [15:41:38]line ИНН: 02508201610067 [15:41:38]line Контрольно-Кассовый Чек [15:41:38]line ПРОДАЖА [15:41:38]line Товар: 40822938 [15:41:38]line Напиток Фанта 0,5л [15:41:38]line 1.000 * 75.00 [15:41:38]line = 75.00 [15:41:38]line НДС 12% НСП 1% [15:41:38]line > о реализуемом товаре [15:41:38]line ИТОГО: 75.00 [15:41:38]line НСП 1% : 0.66 [15:41:38]line НДС 12% : 7.96 [15:41:38]line Наличными: 75.00 [15:41:38]line Безнал.: 0.00 [15:41:38]line Место: АЗС № 163 "Партнер Нефть" [15:41:38]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [15:41:38]line СНО: Общий режим [15:41:38]line Чек 81 20.10.2024 15:41 [15:41:38]line Смена: 526 ФФД: 1.0 [15:41:38]line ЗНМ: 0300000101 [15:41:38]line РНМ: 0000000000091770 [15:41:38]line Версия ККМ: 001 [15:41:38]line ФМ: 0000000000871749 [15:41:38]line ФД: 69791 [15:41:38]line ФПД: 146091518069238 [15:41:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154139&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69791&fm=146091518069238&tin=02508201610067®Number=0000000000091770&sum=7500 [15:41:38]line 0 [15:41:38]OFD Sender: Processing packet 69791 [packets to send 32, broken 31] [15:41:38]ProducePacketName [15:41:38]name=ofd_packets/00069791 [15:41:38]OFD Sender: To server: pG, [15:41:38]CommunicateWithHost lk.salyk.kg:30040 [15:41:38]ConnectInit lk.salyk.kg [15:41:38]written 0, free lines is 4095 [15:41:38]Connected sock=10 [15:41:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 20 01 00 00 63 8D 18 01 35 56 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 B3 24 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9F 10 01 00 35 04 06 00 84 DE 95 0A 09 F6 1F 12 EC 55 A1 43 8C F1 [15:41:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 32 2D 47 00 B3 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 9F 10 01 00 F4 03 04 00 35 CA 14 67 B6 04 01 00 00 80 69 9A 99 7A 84 F6 3A [15:41:38]CommunicateWithHost err = 0 [15:41:38]CheckOFDResponse [15:41:38]1017 (14) - 77093643461234 [15:41:38]1041 (16) - 0000000000871749 [15:41:38]1040 (4) - 69791 [15:41:38]1012 (4) - 20.10.2024 09:15 [15:41:38]1206 (1) - 0 [15:41:38]OFD Sender: Remove packet 69791 [15:41:38]ProducePacketName [15:41:38]name=ofd_packets/00069791 [15:41:38]NVStorageDeleteData [15:41:39]Write to MH i2c: 01 00 00 8B 15 A0 [15:41:39]Write i2c OK [15:41:39]MH_I2C_Read... [15:41:39]Read from MH i2c: 01 [15:41:39]MH_I2C_Read... [15:41:39]Read from MH i2c: 01 07 00 [15:41:39]MH_I2C_Read... [15:41:39]Read from MH i2c: 01 07 00 8B 15 00 00 00 00 00 0F 0D C3 [15:41:39]RasterBufferAndPrint [15:41:39]line [15:41:39]line [15:41:39]line [15:41:39]line [15:41:39]line [15:41:39]written 0, free lines is 3353 [15:41:39]MH_Cut [15:41:39]Write to MH i2c: D1 01 00 92 15 01 79 [15:41:39]Write i2c OK [15:41:39]MH_I2C_Read... [15:41:39]Read from MH i2c: D1 [15:41:39]MH_I2C_Read... [15:41:39]Read from MH i2c: D1 01 00 [15:41:39]MH_I2C_Read... [15:41:39]Read from MH i2c: D1 01 00 92 15 00 78 [15:41:39]Write to MH i2c: 01 00 00 93 15 A8 [15:41:39]Write i2c OK [15:41:39]MH_I2C_Read... [15:41:39]OFD Sender: No OFD packet to send [15:41:39]*** Cut start [15:41:39]*** Partial cut [15:41:39]*** CUTSNS_PIN = 1 [15:41:39]*** CUTSNS_PIN = 0 [15:41:40]*** Brake cut motor [15:41:40]Read from MH i2c: 01 [15:41:40]MH_I2C_Read... [15:41:40]*** Stop cut motor [15:41:40]*** Cut end [15:41:40]Read from MH i2c: 01 07 00 [15:41:40]MH_I2C_Read... [15:41:40]Read from MH i2c: 01 07 00 93 15 00 00 00 00 00 FF 0F BD [15:41:40]process_action close_receipt done [15:41:40]requested_data is exist [15:41:40]produce_requested_data [15:41:40]requested_item fm.sn is exist - process it [15:41:40]wFMCommunicate request_size=4 [15:41:40]MH_SAM_APDU [15:41:40]CAPDU: 80 11 00 00 [15:41:40]Write to MH i2c: E2 08 00 94 15 80 11 00 00 00 00 00 00 23 [15:41:40]Write i2c OK [15:41:40]MH_I2C_Read... [15:41:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:40]Read from MH i2c: E2 [15:41:40]MH_I2C_Read... [15:41:40]Read from MH i2c: E2 17 00 [15:41:40]MH_I2C_Read... [15:41:40]Read from MH i2c: E2 17 00 94 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 7A [15:41:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:41:40]wFMCommunicate OK [15:41:40]requested_item fd.num is exist - process it [15:41:40]SAM_PROTO_GetFieldsCounters [15:41:40]wFMCommunicate request_size=4 [15:41:40]MH_SAM_APDU [15:41:40]CAPDU: 80 13 00 00 [15:41:40]Write to MH i2c: E2 08 00 95 15 80 13 00 00 00 00 00 00 26 [15:41:40]Write i2c OK [15:41:40]MH_I2C_Read... [15:41:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:40]Read from MH i2c: E2 [15:41:40]MH_I2C_Read... [15:41:40]Read from MH i2c: E2 62 00 [15:41:40]MH_I2C_Read... [15:41:40]Read from MH i2c: E2 62 00 95 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 9F 10 01 00 0E 04 04 00 0E 02 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 FD [15:41: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 9F 10 01 00 0E 04 04 00 0E 02 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 [15:41:40]wFMCommunicate OK [15:41:40]SAM_PROTO_GetFieldsCounters done [15:41:40]requested_item shift.num is exist - process it [15:41:40]requested_item shift.opened is exist - process it [15:41:40]req_shift_opened [15:41:40]FM_GetShiftState [15:41:40]SAM_PROTO_GetShiftState [15:41:40]wFMCommunicate request_size=4 [15:41:40]MH_SAM_APDU [15:41:40]CAPDU: 80 13 01 00 [15:41:40]Write to MH i2c: E2 08 00 96 15 80 13 01 00 00 00 00 00 28 [15:41:40]Write i2c OK [15:41:40]MH_I2C_Read... [15:41:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:40]Read from MH i2c: E2 [15:41:40]MH_I2C_Read... [15:41:40]Read from MH i2c: E2 0E 00 [15:41:40]MH_I2C_Read... [15:41:40]Read from MH i2c: E2 0E 00 96 15 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 BA [15:41:40]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:41:40]wFMCommunicate OK [15:41:40]SAM_PROTO_GetShiftState done [15:41:40]FM_GetShiftState done [15:41:40]req_shift_opened done [15:41:40]requested_item shift.open_date is exist - process it [15:41:40]req_shift_open_date [15:41:40]req_shift_open_date done [15:41:40]produce_requested_data done [15:41:40]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69791,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [15:41:40]process_action_free close_receipt [15:41:40]json_value_free [15:41:40]json_value_free done [15:41:40]process_json_proto returns [15:41:40]Send response to host [15:41:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69791,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [15:41:40]free response buf [15:41:40]execute_script done [15:41:40]execute_script returns [15:41:40]free content buf [15:41:40]Sock 9.Close socket [15:41:40]Sock 9.Thread stoped [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:58]accept exits with 7 [15:41:58]New connection [15:41:58]New thread 3066629476 created [15:41:58]Thread 3066486116 joined [15:41:58]Waiting for new connection... [15:41:58] Sock 7.Parse request [15:41:58]Sock 7.Check first char [15:41:58]Sock 7.First char is OK [15:41:58]request: POST /json_proto HTTP/1.0 [15:41:58]Method: POST [15:41:58]URL: /json_proto [15:41:58]Method is POST - this is cgi request [15:41:58]url: /json_proto [15:41:58]query_string will be loaded in cgi processing [15:41:58]execute_cgi json_proto POST (null) [15:41:58]execute_cgi path=json_proto method=POST [15:41:58]POST find Content-Length [15:41:58]Host: 172.17.52.196:8080 [15:41:58]Content-Length: 622 [15:41:58]Content-Type: application/json [15:41:58] [15:41:58]POST finish read [15:41:58]Found Content-Length = 622 [15:41:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127190", "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" ] } } [15:41:58]execute_script... [15:41:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127190", "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" ] } } [15:41:58]POST & json_proto [15:41:58]process_json_proto [15:41:58]json parsed OK: [15:41:58]protocol is kg_v1.0 [15:41:58]action value=close_receipt [15:41:58]process_action close_receipt [15:41:58]cmd_close_receipt [15:41:58]MH_GetDate [15:41:58]Write to MH i2c: F0 00 00 97 15 9B [15:41:58]Write i2c OK [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: F0 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: F0 09 00 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: F0 09 00 97 15 00 C9 24 15 67 60 05 E4 66 BC [15:41:58]GetLastDocTimeStamp 1729438899 [15:41:58]current date 1729438921 [15:41:58]FM_GetShiftState [15:41:58]SAM_PROTO_GetShiftState [15:41:58]wFMCommunicate request_size=4 [15:41:58]MH_SAM_APDU [15:41:58]CAPDU: 80 13 01 00 [15:41:58]Write to MH i2c: E2 08 00 98 15 80 13 01 00 00 00 00 00 2A [15:41:58]Write i2c OK [15:41:58]MH_I2C_Read... [15:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:58]Read from MH i2c: E2 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: E2 0E 00 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: E2 0E 00 98 15 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 BC [15:41:58]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:41:58]wFMCommunicate OK [15:41:58]SAM_PROTO_GetShiftState done [15:41:58]FM_GetShiftState done [15:41:58]opened in 1729384380 [15:41:58]opened+sec_in_day 1729470780 [15:41:58]quantity*price = 15000 [15:41:58]sum+1 = 15001 [15:41:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 82 20.10.2024 15:42 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69792 ФПД: 212543633738290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154201&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69792&fm=212543633738290&tin=02508201610067®Number=0000000000091770&sum=15000 0 [15:41:59]StoreToDocumentArchive [15:41:59]shift 526 fd 69792 [15:41:59]save to /storage/0526/doc_00069792 [15:41:59]save last doc name /storage/0526/doc_00069792 to /storage/kkm_last_doc_name [15:41:59]save OK [15:41:59]Clear old archive folders... [15:41:59]ProcessDocumentItem done err = 0, tmpTLVsize=274 [15:41:59]tlvbuf is 00A05620 [15:41:59]SAM_PROTO_ClearQueue [15:41:59]wFMCommunicate request_size=4 [15:41:59]MH_SAM_APDU [15:41:59]CAPDU: 80 09 00 00 [15:41:59]Write to MH i2c: E2 08 00 A5 15 80 09 00 00 00 00 00 00 2C [15:41:59]Write i2c OK [15:41:59]MH_I2C_Read... [15:41:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:59]Read from MH i2c: E2 [15:41:59]MH_I2C_Read... [15:41:59]Read from MH i2c: E2 03 00 [15:41:59]MH_I2C_Read... [15:41:59]Read from MH i2c: E2 03 00 A5 15 00 90 00 2E [15:41:59]RAPDU: 90 00 [15:41:59]wFMCommunicate OK [15:41:59]SAM_PROTO_ClearQueue done [15:41:59]KKMCreateOFDPacket [15:41:59]OFDProtocolAddRootSTLVToBuf [15:41:59]FM_MakeSignedData [15:41:59]FM_MakeSignedData [15:41:59]SAM_PROTO_SignData [15:41:59]wFMCommunicate request_size=4 [15:41:59]MH_SAM_APDU [15:41:59]CAPDU: 80 0D 01 02 [15:41:59]Write to MH i2c: E2 08 00 A6 15 80 0D 01 02 00 00 00 00 34 [15:41:59]Write i2c OK [15:41:59]MH_I2C_Read... [15:41:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:59]Read from MH i2c: E2 [15:41:59]MH_I2C_Read... [15:41:59]Read from MH i2c: E2 03 00 [15:41:59]MH_I2C_Read... [15:41:59]Read from MH i2c: E2 03 00 A6 15 00 90 00 2F [15:41:59]RAPDU: 90 00 [15:41:59]wFMCommunicate OK [15:41:59]wFMCommunicate request_size=255 [15:41:59]MH_SAM_APDU [15:41:59]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 52 00 00 00 F4 03 04 00 C9 24 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 [15:41:59]Write to MH i2c: E2 02 01 A7 15 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 52 00 00 00 F4 03 04 00 C9 24 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 00 00 9B [15:41:59]Write i2c OK [15:41:59]MH_I2C_Read... [15:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:00]Read from MH i2c: E2 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 03 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 03 00 A7 15 00 90 00 30 [15:42:00]RAPDU: 90 00 [15:42:00]wFMCommunicate OK [15:42:00]wFMCommunicate request_size=33 [15:42:00]MH_SAM_APDU [15:42:00]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A0 10 01 00 35 04 06 00 C1 4E AB C9 CA 32 [15:42:00]Write to MH i2c: E2 24 00 A8 15 80 0D 02 02 1C 00 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A0 10 01 00 35 04 06 00 C1 4E AB C9 CA 32 00 00 FA [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:00]Read from MH i2c: E2 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 03 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 03 00 A8 15 00 90 00 31 [15:42:00]RAPDU: 90 00 [15:42:00]wFMCommunicate OK [15:42:00]wFMCommunicate request_size=4 [15:42:00]MH_SAM_APDU [15:42:00]CAPDU: 80 0D 03 02 [15:42:00]Write to MH i2c: E2 08 00 A9 15 80 0D 03 02 00 00 00 00 39 [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:00]Read from MH i2c: E2 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 0B 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 0B 00 A9 15 00 CE DC 60 46 AC 42 02 D5 90 00 4F [15:42:00]RAPDU: CE DC 60 46 AC 42 02 D5 90 00 [15:42:00]wFMCommunicate OK [15:42:00]SAM_PROTO_SignData done [15:42:00]FM_MakeSignedData done [15:42:00]CreateOFDProtocolMessage [15:42:00]wFMCommunicate request_size=4 [15:42:00]MH_SAM_APDU [15:42:00]CAPDU: 80 11 00 00 [15:42:00]Write to MH i2c: E2 08 00 AA 15 80 11 00 00 00 00 00 00 39 [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:00]Read from MH i2c: E2 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 17 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: E2 17 00 AA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 90 [15:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:42:00]wFMCommunicate OK [15:42:00]CreateOFDProtocolMessage done [15:42:00]OFDSenderStorePacket 69792 [15:42:00]StoreOFDPacket docnum=69792 [15:42:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 BF BA 1E 01 59 8C 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 52 00 00 00 F4 03 04 00 C9 24 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A0 10 01 00 35 04 06 00 C1 4E AB C9 CA 32 CE DC 60 46 AC 42 02 D5 [15:42:00]CheckFolder [15:42:00]dirname=/storage/ofd_packets [15:42:00]CheckFolder done [15:42:00]ProducePacketName [15:42:00]name=ofd_packets/00069792 [15:42:00]NVStorageSaveData ofd_packets/00069792 [15:42:00]File name is /storage/ofd_packets/00069792 [15:42:00]Write 324 bytes [15:42:00]NVStorageSaveData done [15:42:00]OFDSenderStorePacket done [15:42:00]KKMCreateOFDPacket done [15:42:00]NVStorageSaveData kkm_last_timestamp [15:42:00]File name is /storage/kkm_last_timestamp [15:42:00]Write 4 bytes [15:42:00]NVStorageSaveData done [15:42:00]ExternCall_PrintAddStr [15:42:00]wPrintStart [15:42:00]Write to MH i2c: 01 00 00 AB 15 C0 [15:42:00]Write i2c OK [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: 01 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: 01 07 00 [15:42:00]MH_I2C_Read... [15:42:00]Read from MH i2c: 01 07 00 AB 15 00 00 00 00 00 FF 0F D5 [15:42:00]RasterBufferAndPrint [15:42:00]line Счет N : (3)127190 [15:42:00]line ИНН: 02508201610067 [15:42:00]line Контрольно-Кассовый Чек [15:42:00]line ПРОДАЖА [15:42:00]line Товар: 4640030091645 [15:42:00]line Сигареты ESSE Exchange M [15:42:00]line 1.000 * 150.00 [15:42:00]line = 150.00 [15:42:00]line НДС 12% НСП 1% [15:42:00]line > о реализуемом товаре [15:42:00]line ИТОГО: 150.00 [15:42:00]line НСП 1% : 1.33 [15:42:00]line НДС 12% : 15.93 [15:42:00]line Наличными: 150.00 [15:42:00]line Безнал.: 0.00 [15:42:00]line Место: АЗС № 163 "Партнер Нефть" [15:42:00]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [15:42:00]line СНО: Общий режим [15:42:00]line Чек 82 20.10.2024 15:42 [15:42:00]line Смена: 526 ФФД: 1.0 [15:42:00]line ЗНМ: 0300000101 [15:42:00]line РНМ: 0000000000091770 [15:42:00]line Версия ККМ: 001 [15:42:00]line ФМ: 0000000000871749 [15:42:00]line ФД: 69792 [15:42:00]line ФПД: 212543633738290 [15:42:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154201&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69792&fm=212543633738290&tin=02508201610067®Number=0000000000091770&sum=15000 [15:42:00]OFD Sender: Processing packet 69792 [packets to send 32, broken 31] [15:42:00]ProducePacketName [15:42:00]name=ofd_packets/00069792 [15:42:00]OFD Sender: To server: pG, [15:42:00]CommunicateWithHost lk.salyk.kg:30040 [15:42:00]ConnectInit lk.salyk.kg [15:42:00]line 0 [15:42:00]written 0, free lines is 4095 [15:42:00]Connected sock=10 [15:42:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 BF BA 1E 01 59 8C 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 52 00 00 00 F4 03 04 00 C9 24 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A0 10 01 00 35 04 06 00 C1 4E AB C9 CA 32 CE DC 60 46 AC 42 02 D5 [15:42:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 E0 3A 47 00 02 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A0 10 01 00 F4 03 04 00 4B CA 14 67 B6 04 01 00 00 C3 CD 69 8D 99 1A C5 51 [15:42:00]CommunicateWithHost err = 0 [15:42:00]CheckOFDResponse [15:42:00]1017 (14) - 77093643461234 [15:42:00]1041 (16) - 0000000000871749 [15:42:00]1040 (4) - 69792 [15:42:00]1012 (4) - 20.10.2024 09:15 [15:42:00]1206 (1) - 0 [15:42:00]OFD Sender: Remove packet 69792 [15:42:00]ProducePacketName [15:42:00]name=ofd_packets/00069792 [15:42:00]NVStorageDeleteData [15:42:01]Write to MH i2c: 01 00 00 D3 15 E8 [15:42:01]Write i2c OK [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: 01 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: 01 07 00 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: 01 07 00 D3 15 00 00 00 00 00 13 0D 0F [15:42:01]RasterBufferAndPrint [15:42:01]line [15:42:01]line [15:42:01]line [15:42:01]line [15:42:01]line [15:42:01]written 0, free lines is 3353 [15:42:01]MH_Cut [15:42:01]Write to MH i2c: D1 01 00 DA 15 01 C1 [15:42:01]Write i2c OK [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: D1 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: D1 01 00 [15:42:01]MH_I2C_Read... [15:42:01]Read from MH i2c: D1 01 00 DA 15 00 C0 [15:42:01]Write to MH i2c: 01 00 00 DB 15 F0 [15:42:01]Write i2c OK [15:42:01]MH_I2C_Read... [15:42:01]OFD Sender: No OFD packet to send [15:42:01]*** Cut start [15:42:01]*** Partial cut [15:42:01]*** CUTSNS_PIN = 1 [15:42:01]*** CUTSNS_PIN = 0 [15:42:02]*** Brake cut motor [15:42:02]Read from MH i2c: 01 [15:42:02]MH_I2C_Read... [15:42:02]*** Stop cut motor [15:42:02]*** Cut end [15:42:02]Read from MH i2c: 01 07 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: 01 07 00 DB 15 00 00 00 00 00 FF 0F 05 [15:42:02]process_action close_receipt done [15:42:02]requested_data is exist [15:42:02]produce_requested_data [15:42:02]requested_item fm.sn is exist - process it [15:42:02]wFMCommunicate request_size=4 [15:42:02]MH_SAM_APDU [15:42:02]CAPDU: 80 11 00 00 [15:42:02]Write to MH i2c: E2 08 00 DC 15 80 11 00 00 00 00 00 00 6B [15:42:02]Write i2c OK [15:42:02]MH_I2C_Read... [15:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:02]Read from MH i2c: E2 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 17 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 17 00 DC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 C2 [15:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:42:02]wFMCommunicate OK [15:42:02]requested_item fd.num is exist - process it [15:42:02]SAM_PROTO_GetFieldsCounters [15:42:02]wFMCommunicate request_size=4 [15:42:02]MH_SAM_APDU [15:42:02]CAPDU: 80 13 00 00 [15:42:02]Write to MH i2c: E2 08 00 DD 15 80 13 00 00 00 00 00 00 6E [15:42:02]Write i2c OK [15:42:02]MH_I2C_Read... [15:42:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:02]Read from MH i2c: E2 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 62 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 62 00 DD 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A0 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [15:42: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A0 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:02]wFMCommunicate OK [15:42:02]SAM_PROTO_GetFieldsCounters done [15:42:02]requested_item shift.num is exist - process it [15:42:02]requested_item shift.opened is exist - process it [15:42:02]req_shift_opened [15:42:02]FM_GetShiftState [15:42:02]SAM_PROTO_GetShiftState [15:42:02]wFMCommunicate request_size=4 [15:42:02]MH_SAM_APDU [15:42:02]CAPDU: 80 13 01 00 [15:42:02]Write to MH i2c: E2 08 00 DE 15 80 13 01 00 00 00 00 00 70 [15:42:02]Write i2c OK [15:42:02]MH_I2C_Read... [15:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:02]Read from MH i2c: E2 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 0E 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 0E 00 DE 15 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 02 [15:42:02]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:42:02]wFMCommunicate OK [15:42:02]SAM_PROTO_GetShiftState done [15:42:02]FM_GetShiftState done [15:42:02]req_shift_opened done [15:42:02]requested_item shift.open_date is exist - process it [15:42:02]req_shift_open_date [15:42:02]req_shift_open_date done [15:42:02]produce_requested_data done [15:42:02]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69792,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [15:42:02]process_action_free close_receipt [15:42:02]json_value_free [15:42:02]json_value_free done [15:42:02]process_json_proto returns [15:42:02]Send response to host [15:42:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69792,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [15:42:02]free response buf [15:42:02]execute_script done [15:42:02]execute_script returns [15:42:02]free content buf [15:42:02]Sock 7.Close socket [15:42:02]Sock 7.Thread stoped [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]OFD Sender: No OFD packet to send [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:31]accept exits with 9 [15:43:31]New connection [15:43:31]New thread 3066486116 created [15:43:31]Thread 3066629476 joined [15:43:31]Waiting for new connection... [15:43:31] Sock 9.Parse request [15:43:31]Sock 9.Check first char [15:43:31]Sock 9.First char is OK [15:43:31]request: POST /json_proto HTTP/1.0 [15:43:31]Method: POST [15:43:31]URL: /json_proto [15:43:31]Method is POST - this is cgi request [15:43:31]url: /json_proto [15:43:31]query_string will be loaded in cgi processing [15:43:31]execute_cgi json_proto POST (null) [15:43:31]execute_cgi path=json_proto method=POST [15:43:31]POST find Content-Length [15:43:31]Host: 172.17.52.196:8080 [15:43:31]Content-Length: 621 [15:43:31]Content-Type: application/json [15:43:31] [15:43:31]POST finish read [15:43:31]Found Content-Length = 621 [15:43:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127191", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:31]execute_script... [15:43:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127191", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:31]POST & json_proto [15:43:31]process_json_proto [15:43:31]json parsed OK: [15:43:31]protocol is kg_v1.0 [15:43:31]action value=close_receipt [15:43:31]process_action close_receipt [15:43:31]cmd_close_receipt [15:43:31]MH_GetDate [15:43:31]Write to MH i2c: F0 00 00 DF 15 E3 [15:43:31]Write i2c OK [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: F0 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: F0 09 00 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: F0 09 00 DF 15 00 26 25 15 67 60 05 E4 66 62 [15:43:31]GetLastDocTimeStamp 1729438921 [15:43:31]current date 1729439014 [15:43:31]FM_GetShiftState [15:43:31]SAM_PROTO_GetShiftState [15:43:31]wFMCommunicate request_size=4 [15:43:31]MH_SAM_APDU [15:43:31]CAPDU: 80 13 01 00 [15:43:31]Write to MH i2c: E2 08 00 E0 15 80 13 01 00 00 00 00 00 72 [15:43:31]Write i2c OK [15:43:31]MH_I2C_Read... [15:43:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:31]Read from MH i2c: E2 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: E2 0E 00 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: E2 0E 00 E0 15 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 04 [15:43:31]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:43:31]wFMCommunicate OK [15:43:31]SAM_PROTO_GetShiftState done [15:43:31]FM_GetShiftState done [15:43:31]opened in 1729384380 [15:43:31]opened+sec_in_day 1729470780 [15:43:31]quantity*price = 14400 [15:43:31]sum+1 = 14401 [15:43:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 83 20.10.2024 15:43 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69793 ФПД: 38788619823808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154334&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69793&fm=38788619823808&tin=02508201610067®Number=0000000000091770&sum=14400 0 [15:43:32]StoreToDocumentArchive [15:43:32]shift 526 fd 69793 [15:43:32]save to /storage/0526/doc_00069793 [15:43:32]save last doc name /storage/0526/doc_00069793 to /storage/kkm_last_doc_name [15:43:32]save OK [15:43:32]Clear old archive folders... [15:43:32]ProcessDocumentItem done err = 0, tmpTLVsize=273 [15:43:32]tlvbuf is 00A052C0 [15:43:32]SAM_PROTO_ClearQueue [15:43:32]wFMCommunicate request_size=4 [15:43:32]MH_SAM_APDU [15:43:32]CAPDU: 80 09 00 00 [15:43:32]Write to MH i2c: E2 08 00 ED 15 80 09 00 00 00 00 00 00 74 [15:43:32]Write i2c OK [15:43:32]MH_I2C_Read... [15:43:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:32]Read from MH i2c: E2 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: E2 03 00 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: E2 03 00 ED 15 00 90 00 76 [15:43:32]RAPDU: 90 00 [15:43:32]wFMCommunicate OK [15:43:32]SAM_PROTO_ClearQueue done [15:43:32]KKMCreateOFDPacket [15:43:32]OFDProtocolAddRootSTLVToBuf [15:43:32]FM_MakeSignedData [15:43:32]FM_MakeSignedData [15:43:32]SAM_PROTO_SignData [15:43:32]wFMCommunicate request_size=4 [15:43:32]MH_SAM_APDU [15:43:32]CAPDU: 80 0D 01 02 [15:43:32]Write to MH i2c: E2 08 00 EE 15 80 0D 01 02 00 00 00 00 7C [15:43:32]Write i2c OK [15:43:32]MH_I2C_Read... [15:43:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:32]Read from MH i2c: E2 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: E2 03 00 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: E2 03 00 EE 15 00 90 00 77 [15:43:32]RAPDU: 90 00 [15:43:32]wFMCommunicate OK [15:43:32]wFMCommunicate request_size=255 [15:43:32]MH_SAM_APDU [15:43:32]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 26 25 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [15:43:32]Write to MH i2c: E2 02 01 EF 15 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 26 25 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 0F [15:43:32]Write i2c OK [15:43:32]MH_I2C_Read... [15:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:33]Read from MH i2c: E2 [15:43:33]MH_I2C_Read... [15:43:33]Read from MH i2c: E2 03 00 [15:43:33]MH_I2C_Read... [15:43:33]Read from MH i2c: E2 03 00 EF 15 00 90 00 78 [15:43:33]RAPDU: 90 00 [15:43:33]wFMCommunicate OK [15:43:33]wFMCommunicate request_size=32 [15:43:33]MH_SAM_APDU [15:43:33]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 A1 10 01 00 35 04 06 00 23 47 2D E7 EA C0 [15:43:33]Write to MH i2c: E2 23 00 F0 15 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 A1 10 01 00 35 04 06 00 23 47 2D E7 EA C0 00 00 BA [15:43:33]Write i2c OK [15:43:33]MH_I2C_Read... [15:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:33]Read from MH i2c: E2 [15:43:33]MH_I2C_Read... [15:43:33]Read from MH i2c: E2 03 00 [15:43:33]MH_I2C_Read... [15:43:33]Read from MH i2c: E2 03 00 F0 15 00 90 00 79 [15:43:33]RAPDU: 90 00 [15:43:33]wFMCommunicate OK [15:43:33]wFMCommunicate request_size=4 [15:43:33]MH_SAM_APDU [15:43:33]CAPDU: 80 0D 03 02 [15:43:33]Write to MH i2c: E2 08 00 F1 15 80 0D 03 02 00 00 00 00 81 [15:43:33]Write i2c OK [15:43:33]MH_I2C_Read... [15:43:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:33]Read from MH i2c: E2 [15:43:33]MH_I2C_Read... [15:43:33]Read from MH i2c: E2 0B 00 [15:43:33]MH_I2C_Read... [15:43:33]Read from MH i2c: E2 0B 00 F1 15 00 71 8D BA DE 6F BD 4B C1 90 00 50 [15:43:33]RAPDU: 71 8D BA DE 6F BD 4B C1 90 00 [15:43:33]wFMCommunicate OK [15:43:33]SAM_PROTO_SignData done [15:43:33]FM_MakeSignedData done [15:43:33]CreateOFDProtocolMessage [15:43:33]wFMCommunicate request_size=4 [15:43:33]MH_SAM_APDU [15:43:33]CAPDU: 80 11 00 00 [15:43:33]Write to MH i2c: E2 08 00 F2 15 80 11 00 00 00 00 00 00 81 [15:43:33]Write i2c OK [15:43:33]MH_I2C_Read... [15:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:33]Read from MH i2c: E2 [15:43:33]MH_I2C_Read... [15:43:33]Read from MH i2c: E2 17 00 [15:43:33]MH_I2C_Read... [15:43:33]Read from MH i2c: E2 17 00 F2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 D8 [15:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:43:33]wFMCommunicate OK [15:43:33]CreateOFDProtocolMessage done [15:43:33]OFDSenderStorePacket 69793 [15:43:33]StoreOFDPacket docnum=69793 [15:43:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 4C 6B 1D 01 64 F1 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 26 25 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A1 10 01 00 35 04 06 00 23 47 2D E7 EA C0 71 8D BA DE 6F BD 4B C1 [15:43:33]CheckFolder [15:43:33]dirname=/storage/ofd_packets [15:43:33]CheckFolder done [15:43:33]ProducePacketName [15:43:33]name=ofd_packets/00069793 [15:43:33]NVStorageSaveData ofd_packets/00069793 [15:43:33]File name is /storage/ofd_packets/00069793 [15:43:33]Write 323 bytes [15:43:33]NVStorageSaveData done [15:43:33]OFDSenderStorePacket done [15:43:33]KKMCreateOFDPacket done [15:43:33]NVStorageSaveData kkm_last_timestamp [15:43:33]File name is /storage/kkm_last_timestamp [15:43:33]Write 4 bytes [15:43:33]NVStorageSaveData done [15:43:33]ExternCall_PrintAddStr [15:43:33]wPrintStart [15:43:33]Write to MH i2c: 01 00 00 F3 15 08 [15:43:33]Write i2c OK [15:43:33]MH_I2C_Read... [15:43:33]Read from MH i2c: 01 [15:43:33]MH_I2C_Read... [15:43:33]Read from MH i2c: 01 07 00 [15:43:33]MH_I2C_Read... [15:43:33]Read from MH i2c: 01 07 00 F3 15 00 00 00 00 00 FF 0F 1D [15:43:33]RasterBufferAndPrint [15:43:33]line Счет N : (3)127191 [15:43:33]line ИНН: 02508201610067 [15:43:33]line Контрольно-Кассовый Чек [15:43:33]line ПРОДАЖА [15:43:33]line Товар: 48743570 [15:43:33]line Сигареты Winston XStyle Blue [15:43:33]line 1.000 * 144.00 [15:43:33]line = 144.00 [15:43:33]line НДС 12% НСП 1% [15:43:33]line > о реализуемом товаре [15:43:33]line ИТОГО: 144.00 [15:43:33]line НСП 1% : 1.27 [15:43:33]line НДС 12% : 15.29 [15:43:33]line Наличными: 144.00 [15:43:33]line Безнал.: 0.00 [15:43:33]line Место: АЗС № 163 "Партнер Нефть" [15:43:33]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [15:43:33]line СНО: Общий режим [15:43:33]line Чек 83 20.10.2024 15:43 [15:43:33]line Смена: 526 ФФД: 1.0 [15:43:33]line ЗНМ: 0300000101 [15:43:33]line РНМ: 0000000000091770 [15:43:33]line Версия ККМ: 001 [15:43:33]line ФМ: 0000000000871749 [15:43:33]line ФД: 69793 [15:43:33]line ФПД: 38788619823808 [15:43:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154334&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69793&fm=38788619823808&tin=02508201610067®Number=0000000000091770&sum=14400 [15:43:33]line 0 [15:43:33]OFD Sender: Processing packet 69793 [packets to send 32, broken 31] [15:43:33]ProducePacketName [15:43:33]name=ofd_packets/00069793 [15:43:33]OFD Sender: To server: pG, [15:43:33]CommunicateWithHost lk.salyk.kg:30040 [15:43:33]ConnectInit lk.salyk.kg [15:43:33]written 0, free lines is 4095 [15:43:33]Connected sock=10 [15:43:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 4C 6B 1D 01 64 F1 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 26 25 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A1 10 01 00 35 04 06 00 23 47 2D E7 EA C0 71 8D BA DE 6F BD 4B C1 [15:43:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 29 AC 47 00 8D 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 31 37 34 39 10 04 04 00 A1 10 01 00 F4 03 04 00 A8 CA 14 67 B6 04 01 00 00 22 9F 72 95 94 03 55 70 [15:43:34]CommunicateWithHost err = 0 [15:43:34]CheckOFDResponse [15:43:34]1017 (14) - 77093643461234 [15:43:34]1041 (16) - 0000000000871749 [15:43:34]1040 (4) - 69793 [15:43:34]1012 (4) - 20.10.2024 09:17 [15:43:34]1206 (1) - 0 [15:43:34]OFD Sender: Remove packet 69793 [15:43:34]ProducePacketName [15:43:34]name=ofd_packets/00069793 [15:43:34]NVStorageDeleteData [15:43:34]Write to MH i2c: 01 00 00 1B 16 31 [15:43:34]Write i2c OK [15:43:34]MH_I2C_Read... [15:43:34]Read from MH i2c: 01 [15:43:34]MH_I2C_Read... [15:43:34]Read from MH i2c: 01 07 00 [15:43:34]MH_I2C_Read... [15:43:34]Read from MH i2c: 01 07 00 1B 16 00 00 00 00 00 01 0D 46 [15:43:34]RasterBufferAndPrint [15:43:34]line [15:43:34]line [15:43:34]line [15:43:34]line [15:43:34]line [15:43:34]written 0, free lines is 3336 [15:43:34]MH_Cut [15:43:34]Write to MH i2c: D1 01 00 22 16 01 0A [15:43:34]Write i2c OK [15:43:34]MH_I2C_Read... [15:43:34]Read from MH i2c: D1 [15:43:34]MH_I2C_Read... [15:43:34]Read from MH i2c: D1 01 00 [15:43:34]MH_I2C_Read... [15:43:34]Read from MH i2c: D1 01 00 22 16 00 09 [15:43:34]Write to MH i2c: 01 00 00 23 16 39 [15:43:34]Write i2c OK [15:43:34]MH_I2C_Read... [15:43:34]OFD Sender: No OFD packet to send [15:43:34]*** Cut start [15:43:34]*** Partial cut [15:43:34]*** CUTSNS_PIN = 1 [15:43:34]*** CUTSNS_PIN = 0 [15:43:35]*** Brake cut motor [15:43:35]Read from MH i2c: 01 [15:43:35]MH_I2C_Read... [15:43:35]*** Stop cut motor [15:43:35]*** Cut end [15:43:35]Read from MH i2c: 01 07 00 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: 01 07 00 23 16 00 00 00 00 00 FF 0F 4E [15:43:35]process_action close_receipt done [15:43:35]requested_data is exist [15:43:35]produce_requested_data [15:43:35]requested_item fm.sn is exist - process it [15:43:35]wFMCommunicate request_size=4 [15:43:35]MH_SAM_APDU [15:43:35]CAPDU: 80 11 00 00 [15:43:35]Write to MH i2c: E2 08 00 24 16 80 11 00 00 00 00 00 00 B4 [15:43:35]Write i2c OK [15:43:35]MH_I2C_Read... [15:43:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:35]Read from MH i2c: E2 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 17 00 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 17 00 24 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 0B [15:43:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:43:35]wFMCommunicate OK [15:43:35]requested_item fd.num is exist - process it [15:43:35]SAM_PROTO_GetFieldsCounters [15:43:35]wFMCommunicate request_size=4 [15:43:35]MH_SAM_APDU [15:43:35]CAPDU: 80 13 00 00 [15:43:35]Write to MH i2c: E2 08 00 25 16 80 13 00 00 00 00 00 00 B7 [15:43:35]Write i2c OK [15:43:35]MH_I2C_Read... [15:43:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:35]Read from MH i2c: E2 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 62 00 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 62 00 25 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A1 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [15:43:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A1 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:35]wFMCommunicate OK [15:43:35]SAM_PROTO_GetFieldsCounters done [15:43:35]requested_item shift.num is exist - process it [15:43:35]requested_item shift.opened is exist - process it [15:43:35]req_shift_opened [15:43:35]FM_GetShiftState [15:43:35]SAM_PROTO_GetShiftState [15:43:35]wFMCommunicate request_size=4 [15:43:35]MH_SAM_APDU [15:43:35]CAPDU: 80 13 01 00 [15:43:35]Write to MH i2c: E2 08 00 26 16 80 13 01 00 00 00 00 00 B9 [15:43:35]Write i2c OK [15:43:35]MH_I2C_Read... [15:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:35]Read from MH i2c: E2 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 0E 00 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 0E 00 26 16 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 4B [15:43:35]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:43:35]wFMCommunicate OK [15:43:35]SAM_PROTO_GetShiftState done [15:43:35]FM_GetShiftState done [15:43:35]req_shift_opened done [15:43:35]requested_item shift.open_date is exist - process it [15:43:35]req_shift_open_date [15:43:35]req_shift_open_date done [15:43:35]produce_requested_data done [15:43:35]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69793,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [15:43:35]process_action_free close_receipt [15:43:35]json_value_free [15:43:35]json_value_free done [15:43:35]process_json_proto returns [15:43:35]Send response to host [15:43:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69793,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [15:43:35]free response buf [15:43:35]execute_script done [15:43:35]execute_script returns [15:43:35]free content buf [15:43:35]Sock 9.Close socket [15:43:35]Sock 9.Thread stoped [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:14]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:34]OFD Sender: No OFD packet to send [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:54]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:14]OFD Sender: No OFD packet to send [15:46:19]OFD Sender: No OFD packet to send [15:46:24]OFD Sender: No OFD packet to send [15:46:29]OFD Sender: No OFD packet to send [15:46:34]OFD Sender: No OFD packet to send [15:46:39]OFD Sender: No OFD packet to send [15:46:44]OFD Sender: No OFD packet to send [15:46:49]OFD Sender: No OFD packet to send [15:46:54]OFD Sender: No OFD packet to send [15:46:59]OFD Sender: No OFD packet to send [15:47:04]OFD Sender: No OFD packet to send [15:47:09]OFD Sender: No OFD packet to send [15:47:14]OFD Sender: No OFD packet to send [15:47:19]OFD Sender: No OFD packet to send [15:47:24]OFD Sender: No OFD packet to send [15:47:29]accept exits with 7 [15:47:29]New connection [15:47:29]New thread 3066629476 created [15:47:29]Thread 3066486116 joined [15:47:29]Waiting for new connection... [15:47:29] Sock 7.Parse request [15:47:29]Sock 7.Check first char [15:47:29]Sock 7.First char is OK [15:47:29]request: POST /json_proto HTTP/1.0 [15:47:29]Method: POST [15:47:29]URL: /json_proto [15:47:29]Method is POST - this is cgi request [15:47:29]url: /json_proto [15:47:29]query_string will be loaded in cgi processing [15:47:29]execute_cgi json_proto POST (null) [15:47:29]execute_cgi path=json_proto method=POST [15:47:29]POST find Content-Length [15:47:29]Host: 172.17.52.196:8080 [15:47:29]Content-Length: 749 [15:47:29]Content-Type: application/json [15:47:29] [15:47:29]POST finish read [15:47:29]Found Content-Length = 749 [15:47:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127192", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:29]execute_script... [15:47:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127192", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:29]POST & json_proto [15:47:29]process_json_proto [15:47:29]json parsed OK: [15:47:29]protocol is kg_v1.0 [15:47:29]action value=close_receipt [15:47:29]process_action close_receipt [15:47:29]cmd_close_receipt [15:47:29]MH_GetDate [15:47:29]Write to MH i2c: F0 00 00 27 16 2C [15:47:29]Write i2c OK [15:47:29]MH_I2C_Read... [15:47:29]Read from MH i2c: F0 [15:47:29]MH_I2C_Read... [15:47:29]Read from MH i2c: F0 09 00 [15:47:29]MH_I2C_Read... [15:47:29]Read from MH i2c: F0 09 00 27 16 00 14 26 15 67 60 05 E4 66 9A [15:47:29]GetLastDocTimeStamp 1729439014 [15:47:29]current date 1729439252 [15:47:29]FM_GetShiftState [15:47:29]SAM_PROTO_GetShiftState [15:47:29]wFMCommunicate request_size=4 [15:47:29]MH_SAM_APDU [15:47:29]CAPDU: 80 13 01 00 [15:47:29]Write to MH i2c: E2 08 00 28 16 80 13 01 00 00 00 00 00 BB [15:47:29]Write i2c OK [15:47:29]MH_I2C_Read... [15:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:29]Read from MH i2c: E2 [15:47:29]MH_I2C_Read... [15:47:29]Read from MH i2c: E2 0E 00 [15:47:29]MH_I2C_Read... [15:47:29]Read from MH i2c: E2 0E 00 28 16 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 4D [15:47:29]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:47:29]wFMCommunicate OK [15:47:29]SAM_PROTO_GetShiftState done [15:47:29]FM_GetShiftState done [15:47:29]opened in 1729384380 [15:47:29]opened+sec_in_day 1729470780 [15:47:29]quantity*price = 16000 [15:47:29]sum+1 = 16001 [15:47:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 0.00 Безнал.: 160.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 84 20.10.2024 15:47 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69794 ФПД: 213513069380279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154732&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69794&fm=213513069380279&tin=02508201610067®Number=0000000000091770&sum=16000 0 [15:47:30]StoreToDocumentArchive [15:47:30]shift 526 fd 69794 [15:47:30]save to /storage/0526/doc_00069794 [15:47:30]save last doc name /storage/0526/doc_00069794 to /storage/kkm_last_doc_name [15:47:30]save OK [15:47:30]Clear old archive folders... [15:47:30]ProcessDocumentItem done err = 0, tmpTLVsize=274 [15:47:30]tlvbuf is 0097C6A0 [15:47:30]SAM_PROTO_ClearQueue [15:47:30]wFMCommunicate request_size=4 [15:47:30]MH_SAM_APDU [15:47:30]CAPDU: 80 09 00 00 [15:47:30]Write to MH i2c: E2 08 00 35 16 80 09 00 00 00 00 00 00 BD [15:47:30]Write i2c OK [15:47:30]MH_I2C_Read... [15:47:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:30]Read from MH i2c: E2 [15:47:30]MH_I2C_Read... [15:47:30]Read from MH i2c: E2 03 00 [15:47:30]MH_I2C_Read... [15:47:30]Read from MH i2c: E2 03 00 35 16 00 90 00 BF [15:47:30]RAPDU: 90 00 [15:47:30]wFMCommunicate OK [15:47:30]SAM_PROTO_ClearQueue done [15:47:30]KKMCreateOFDPacket [15:47:30]OFDProtocolAddRootSTLVToBuf [15:47:30]FM_MakeSignedData [15:47:30]FM_MakeSignedData [15:47:30]SAM_PROTO_SignData [15:47:30]wFMCommunicate request_size=4 [15:47:30]MH_SAM_APDU [15:47:30]CAPDU: 80 0D 01 02 [15:47:30]Write to MH i2c: E2 08 00 36 16 80 0D 01 02 00 00 00 00 C5 [15:47:30]Write i2c OK [15:47:30]MH_I2C_Read... [15:47:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:30]Read from MH i2c: E2 [15:47:30]MH_I2C_Read... [15:47:30]Read from MH i2c: E2 03 00 [15:47:30]MH_I2C_Read... [15:47:30]Read from MH i2c: E2 03 00 36 16 00 90 00 C0 [15:47:30]RAPDU: 90 00 [15:47:30]wFMCommunicate OK [15:47:30]wFMCommunicate request_size=255 [15:47:30]MH_SAM_APDU [15:47:30]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 14 26 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 [15:47:30]Write to MH i2c: E2 02 01 37 16 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 14 26 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 00 00 2F [15:47:30]Write i2c OK [15:47:30]MH_I2C_Read... [15:47:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:31]Read from MH i2c: E2 [15:47:31]MH_I2C_Read... [15:47:31]Read from MH i2c: E2 03 00 [15:47:31]MH_I2C_Read... [15:47:31]Read from MH i2c: E2 03 00 37 16 00 90 00 C1 [15:47:31]RAPDU: 90 00 [15:47:31]wFMCommunicate OK [15:47:31]wFMCommunicate request_size=33 [15:47:31]MH_SAM_APDU [15:47:31]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A2 10 01 00 35 04 06 00 C2 30 62 A7 C2 B7 [15:47:31]Write to MH i2c: E2 24 00 38 16 80 0D 02 02 1C 00 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A2 10 01 00 35 04 06 00 C2 30 62 A7 C2 B7 00 00 82 [15:47:31]Write i2c OK [15:47:31]MH_I2C_Read... [15:47:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:31]Read from MH i2c: E2 [15:47:31]MH_I2C_Read... [15:47:31]Read from MH i2c: E2 03 00 [15:47:31]MH_I2C_Read... [15:47:31]Read from MH i2c: E2 03 00 38 16 00 90 00 C2 [15:47:31]RAPDU: 90 00 [15:47:31]wFMCommunicate OK [15:47:31]wFMCommunicate request_size=4 [15:47:31]MH_SAM_APDU [15:47:31]CAPDU: 80 0D 03 02 [15:47:31]Write to MH i2c: E2 08 00 39 16 80 0D 03 02 00 00 00 00 CA [15:47:31]Write i2c OK [15:47:31]MH_I2C_Read... [15:47:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:31]Read from MH i2c: E2 [15:47:31]MH_I2C_Read... [15:47:31]Read from MH i2c: E2 0B 00 [15:47:31]MH_I2C_Read... [15:47:31]Read from MH i2c: E2 0B 00 39 16 00 41 29 89 18 88 97 4E 2B 90 00 6E [15:47:31]RAPDU: 41 29 89 18 88 97 4E 2B 90 00 [15:47:31]wFMCommunicate OK [15:47:31]SAM_PROTO_SignData done [15:47:31]FM_MakeSignedData done [15:47:31]CreateOFDProtocolMessage [15:47:31]wFMCommunicate request_size=4 [15:47:31]MH_SAM_APDU [15:47:31]CAPDU: 80 11 00 00 [15:47:31]Write to MH i2c: E2 08 00 3A 16 80 11 00 00 00 00 00 00 CA [15:47:31]Write i2c OK [15:47:31]MH_I2C_Read... [15:47:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:31]Read from MH i2c: E2 [15:47:31]MH_I2C_Read... [15:47:31]Read from MH i2c: E2 17 00 [15:47:31]MH_I2C_Read... [15:47:31]Read from MH i2c: E2 17 00 3A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 21 [15:47:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:47:31]wFMCommunicate OK [15:47:31]CreateOFDProtocolMessage done [15:47:31]OFDSenderStorePacket 69794 [15:47:31]StoreOFDPacket docnum=69794 [15:47:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 EC B3 1E 01 02 90 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 14 26 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A2 10 01 00 35 04 06 00 C2 30 62 A7 C2 B7 41 29 89 18 88 97 4E 2B [15:47:31]CheckFolder [15:47:31]dirname=/storage/ofd_packets [15:47:31]CheckFolder done [15:47:31]ProducePacketName [15:47:31]name=ofd_packets/00069794 [15:47:31]NVStorageSaveData ofd_packets/00069794 [15:47:31]File name is /storage/ofd_packets/00069794 [15:47:31]Write 324 bytes [15:47:31]NVStorageSaveData done [15:47:31]OFDSenderStorePacket done [15:47:31]KKMCreateOFDPacket done [15:47:31]NVStorageSaveData kkm_last_timestamp [15:47:31]File name is /storage/kkm_last_timestamp [15:47:31]Write 4 bytes [15:47:31]NVStorageSaveData done [15:47:31]ExternCall_PrintAddStr [15:47:31]wPrintStart [15:47:31]Write to MH i2c: 01 00 00 3B 16 51 [15:47:31]Write i2c OK [15:47:31]MH_I2C_Read... [15:47:31]Read from MH i2c: 01 [15:47:31]MH_I2C_Read... [15:47:31]Read from MH i2c: 01 07 00 [15:47:31]MH_I2C_Read... [15:47:31]Read from MH i2c: 01 07 00 3B 16 00 00 00 00 00 FF 0F 66 [15:47:31]RasterBufferAndPrint [15:47:31]line Счет N : (3)127192 [15:47:31]line ИНН: 02508201610067 [15:47:31]line Контрольно-Кассовый Чек [15:47:31]line ПРОДАЖА [15:47:31]line Товар: 48741958 [15:47:31]line Сигареты Parliament Aqua Blue [15:47:31]line 1.000 * 160.00 [15:47:31]line = 160.00 [15:47:31]line НДС 12% НСП 1% [15:47:31]line > о реализуемом товаре [15:47:31]line ИТОГО: 160.00 [15:47:31]line НСП 1% : 1.42 [15:47:31]line НДС 12% : 16.99 [15:47:31]line Наличными: 0.00 [15:47:31]line Безнал.: 160.00 [15:47:31]line Место: АЗС № 163 "Партнер Нефть" [15:47:31]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [15:47:31]line СНО: Общий режим [15:47:31]line Чек 84 20.10.2024 15:47 [15:47:31]line Смена: 526 ФФД: 1.0 [15:47:31]line ЗНМ: 0300000101 [15:47:31]line РНМ: 0000000000091770 [15:47:31]line Версия ККМ: 001 [15:47:31]line Платежная система: Mbank [15:47:31]line ФМ: 0000000000871749 [15:47:31]line ФД: 69794 [15:47:31]line ФПД: 213513069380279 [15:47:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T154732&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69794&fm=213513069380279&tin=02508201610067®Number=0000000000091770&sum=16000 [15:47:31]line 0 [15:47:31]OFD Sender: Processing packet 69794 [packets to send 32, broken 31] [15:47:31]ProducePacketName [15:47:31]name=ofd_packets/00069794 [15:47:31]OFD Sender: To server: pG, [15:47:31]CommunicateWithHost lk.salyk.kg:30040 [15:47:31]ConnectInit lk.salyk.kg [15:47:31]written 0, free lines is 4095 [15:47:31]Connected sock=10 [15:47:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 EC B3 1E 01 02 90 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 14 26 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A2 10 01 00 35 04 06 00 C2 30 62 A7 C2 B7 41 29 89 18 88 97 4E 2B [15:47:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 45 4D 47 00 0A 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A2 10 01 00 F4 03 04 00 96 CB 14 67 B6 04 01 00 00 92 6D E8 83 72 BE 3A 01 [15:47:31]CommunicateWithHost err = 0 [15:47:31]CheckOFDResponse [15:47:31]1017 (14) - 77093643461234 [15:47:31]1041 (16) - 0000000000871749 [15:47:31]1040 (4) - 69794 [15:47:31]1012 (4) - 20.10.2024 09:21 [15:47:31]1206 (1) - 0 [15:47:31]OFD Sender: Remove packet 69794 [15:47:31]ProducePacketName [15:47:31]name=ofd_packets/00069794 [15:47:31]NVStorageDeleteData [15:47:32]Write to MH i2c: 01 00 00 65 16 7B [15:47:32]Write i2c OK [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: 01 [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: 01 07 00 [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: 01 07 00 65 16 00 00 00 00 00 CB 0C 59 [15:47:32]RasterBufferAndPrint [15:47:32]line [15:47:32]line [15:47:32]line [15:47:32]line [15:47:32]line [15:47:32]written 0, free lines is 3282 [15:47:32]MH_Cut [15:47:32]Write to MH i2c: D1 01 00 6C 16 01 54 [15:47:32]Write i2c OK [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: D1 [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: D1 01 00 [15:47:32]MH_I2C_Read... [15:47:32]Read from MH i2c: D1 01 00 6C 16 00 53 [15:47:32]Write to MH i2c: 01 00 00 6D 16 83 [15:47:32]Write i2c OK [15:47:32]MH_I2C_Read... [15:47:32]OFD Sender: No OFD packet to send [15:47:32]*** Cut start [15:47:32]*** Partial cut [15:47:32]*** CUTSNS_PIN = 1 [15:47:32]*** CUTSNS_PIN = 0 [15:47:33]*** Brake cut motor [15:47:33]Read from MH i2c: 01 [15:47:33]MH_I2C_Read... [15:47:33]*** Stop cut motor [15:47:33]*** Cut end [15:47:33]Read from MH i2c: 01 07 00 [15:47:33]MH_I2C_Read... [15:47:33]Read from MH i2c: 01 07 00 6D 16 00 00 00 00 00 FF 0F 98 [15:47:33]process_action close_receipt done [15:47:33]requested_data is exist [15:47:33]produce_requested_data [15:47:33]requested_item fm.sn is exist - process it [15:47:33]wFMCommunicate request_size=4 [15:47:33]MH_SAM_APDU [15:47:33]CAPDU: 80 11 00 00 [15:47:33]Write to MH i2c: E2 08 00 6E 16 80 11 00 00 00 00 00 00 FE [15:47:33]Write i2c OK [15:47:33]MH_I2C_Read... [15:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:33]Read from MH i2c: E2 [15:47:33]MH_I2C_Read... [15:47:33]Read from MH i2c: E2 17 00 [15:47:33]MH_I2C_Read... [15:47:33]Read from MH i2c: E2 17 00 6E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 55 [15:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:47:33]wFMCommunicate OK [15:47:33]requested_item fd.num is exist - process it [15:47:33]SAM_PROTO_GetFieldsCounters [15:47:33]wFMCommunicate request_size=4 [15:47:33]MH_SAM_APDU [15:47:33]CAPDU: 80 13 00 00 [15:47:33]Write to MH i2c: E2 08 00 6F 16 80 13 00 00 00 00 00 00 01 [15:47:33]Write i2c OK [15:47:33]MH_I2C_Read... [15:47:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:33]Read from MH i2c: E2 [15:47:33]MH_I2C_Read... [15:47:33]Read from MH i2c: E2 62 00 [15:47:33]MH_I2C_Read... [15:47:33]Read from MH i2c: E2 62 00 6F 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A2 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [15:47: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A2 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:33]wFMCommunicate OK [15:47:33]SAM_PROTO_GetFieldsCounters done [15:47:33]requested_item shift.num is exist - process it [15:47:33]requested_item shift.opened is exist - process it [15:47:33]req_shift_opened [15:47:33]FM_GetShiftState [15:47:33]SAM_PROTO_GetShiftState [15:47:33]wFMCommunicate request_size=4 [15:47:33]MH_SAM_APDU [15:47:33]CAPDU: 80 13 01 00 [15:47:33]Write to MH i2c: E2 08 00 70 16 80 13 01 00 00 00 00 00 03 [15:47:33]Write i2c OK [15:47:33]MH_I2C_Read... [15:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:33]Read from MH i2c: E2 [15:47:33]MH_I2C_Read... [15:47:33]Read from MH i2c: E2 0E 00 [15:47:33]MH_I2C_Read... [15:47:33]Read from MH i2c: E2 0E 00 70 16 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 95 [15:47:33]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:47:33]wFMCommunicate OK [15:47:33]SAM_PROTO_GetShiftState done [15:47:33]FM_GetShiftState done [15:47:33]req_shift_opened done [15:47:33]requested_item shift.open_date is exist - process it [15:47:33]req_shift_open_date [15:47:33]req_shift_open_date done [15:47:33]produce_requested_data done [15:47:33]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69794,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [15:47:33]process_action_free close_receipt [15:47:33]json_value_free [15:47:33]json_value_free done [15:47:33]process_json_proto returns [15:47:33]Send response to host [15:47:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69794,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [15:47:33]free response buf [15:47:33]execute_script done [15:47:33]execute_script returns [15:47:33]free content buf [15:47:33]Sock 7.Close socket [15:47:33]Sock 7.Thread stoped [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:46]accept exits with 9 [15:52:46]New connection [15:52:46]New thread 3066486116 created [15:52:46]Thread 3066629476 joined [15:52:46]Waiting for new connection... [15:52:46] Sock 9.Parse request [15:52:46]Sock 9.Check first char [15:52:46]Sock 9.First char is OK [15:52:46]request: POST /json_proto HTTP/1.0 [15:52:46]Method: POST [15:52:46]URL: /json_proto [15:52:46]Method is POST - this is cgi request [15:52:46]url: /json_proto [15:52:46]query_string will be loaded in cgi processing [15:52:46]execute_cgi json_proto POST (null) [15:52:46]execute_cgi path=json_proto method=POST [15:52:46]POST find Content-Length [15:52:46]Host: 172.17.52.196:8080 [15:52:46]Content-Length: 789 [15:52:46]Content-Type: application/json [15:52:46] [15:52:46]POST finish read [15:52:46]Found Content-Length = 789 [15:52:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127193", "tax_sys" : 0, "items" : [ { "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:46]execute_script... [15:52:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127193", "tax_sys" : 0, "items" : [ { "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:46]POST & json_proto [15:52:46]process_json_proto [15:52:46]json parsed OK: [15:52:46]protocol is kg_v1.0 [15:52:46]action value=close_receipt [15:52:46]process_action close_receipt [15:52:46]cmd_close_receipt [15:52:46]MH_GetDate [15:52:46]Write to MH i2c: F0 00 00 71 16 76 [15:52:46]Write i2c OK [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: F0 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: F0 09 00 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: F0 09 00 71 16 00 50 27 15 67 60 05 E4 66 21 [15:52:46]GetLastDocTimeStamp 1729439252 [15:52:46]current date 1729439568 [15:52:46]FM_GetShiftState [15:52:46]SAM_PROTO_GetShiftState [15:52:46]wFMCommunicate request_size=4 [15:52:46]MH_SAM_APDU [15:52:46]CAPDU: 80 13 01 00 [15:52:46]Write to MH i2c: E2 08 00 72 16 80 13 01 00 00 00 00 00 05 [15:52:46]Write i2c OK [15:52:46]MH_I2C_Read... [15:52:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:46]Read from MH i2c: E2 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 0E 00 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 0E 00 72 16 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 97 [15:52:46]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:52:46]wFMCommunicate OK [15:52:46]SAM_PROTO_GetShiftState done [15:52:46]FM_GetShiftState done [15:52:46]opened in 1729384380 [15:52:46]opened+sec_in_day 1729470780 [15:52:46]quantity*price = 9500 [15:52:46]sum+1 = 9501 [15:52:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 85 20.10.2024 15:52 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69795 ФПД: 10989004829228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155248&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69795&fm=10989004829228&tin=02508201610067®Number=0000000000091770&sum=9500 0 [15:52:47]StoreToDocumentArchive [15:52:47]shift 526 fd 69795 [15:52:47]save to /storage/0526/doc_00069795 [15:52:47]save last doc name /storage/0526/doc_00069795 to /storage/kkm_last_doc_name [15:52:47]save OK [15:52:47]Clear old archive folders... [15:52:47]ProcessDocumentItem done err = 0, tmpTLVsize=289 [15:52:47]tlvbuf is B6E720E0 [15:52:47]SAM_PROTO_ClearQueue [15:52:47]wFMCommunicate request_size=4 [15:52:47]MH_SAM_APDU [15:52:47]CAPDU: 80 09 00 00 [15:52:47]Write to MH i2c: E2 08 00 7F 16 80 09 00 00 00 00 00 00 07 [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:47]Read from MH i2c: E2 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 03 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 03 00 7F 16 00 90 00 09 [15:52:47]RAPDU: 90 00 [15:52:47]wFMCommunicate OK [15:52:47]SAM_PROTO_ClearQueue done [15:52:47]KKMCreateOFDPacket [15:52:47]OFDProtocolAddRootSTLVToBuf [15:52:47]FM_MakeSignedData [15:52:47]FM_MakeSignedData [15:52:47]SAM_PROTO_SignData [15:52:47]wFMCommunicate request_size=4 [15:52:47]MH_SAM_APDU [15:52:47]CAPDU: 80 0D 01 02 [15:52:47]Write to MH i2c: E2 08 00 80 16 80 0D 01 02 00 00 00 00 0F [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:47]Read from MH i2c: E2 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 03 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 03 00 80 16 00 90 00 0A [15:52:47]RAPDU: 90 00 [15:52:47]wFMCommunicate OK [15:52:47]wFMCommunicate request_size=255 [15:52:47]MH_SAM_APDU [15:52:47]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 50 27 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [15:52:47]Write to MH i2c: E2 02 01 81 16 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 50 27 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 D7 [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:47]Read from MH i2c: E2 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 03 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 03 00 81 16 00 90 00 0B [15:52:47]RAPDU: 90 00 [15:52:47]wFMCommunicate OK [15:52:47]wFMCommunicate request_size=48 [15:52:47]MH_SAM_APDU [15:52:47]CAPDU: 80 0D 02 02 2B 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A3 10 01 00 35 04 06 00 09 FE 93 BA B2 2C [15:52:47]Write to MH i2c: E2 33 00 82 16 80 0D 02 02 2B 00 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A3 10 01 00 35 04 06 00 09 FE 93 BA B2 2C 00 00 F6 [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 [15:52:47]MH_I2C_Read... [15:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:47]Read from MH i2c: E2 03 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 03 00 82 16 00 90 00 0C [15:52:47]RAPDU: 90 00 [15:52:47]wFMCommunicate OK [15:52:47]wFMCommunicate request_size=4 [15:52:47]MH_SAM_APDU [15:52:47]CAPDU: 80 0D 03 02 [15:52:47]Write to MH i2c: E2 08 00 83 16 80 0D 03 02 00 00 00 00 14 [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]OFD Sender: No OFD packet to send [15:52:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:47]Read from MH i2c: E2 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 0B 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 0B 00 83 16 00 1E 8F 0A DA 14 E8 7A 81 90 00 9D [15:52:47]RAPDU: 1E 8F 0A DA 14 E8 7A 81 90 00 [15:52:47]wFMCommunicate OK [15:52:47]SAM_PROTO_SignData done [15:52:47]FM_MakeSignedData done [15:52:47]CreateOFDProtocolMessage [15:52:47]wFMCommunicate request_size=4 [15:52:47]MH_SAM_APDU [15:52:47]CAPDU: 80 11 00 00 [15:52:47]Write to MH i2c: E2 08 00 84 16 80 11 00 00 00 00 00 00 14 [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:47]Read from MH i2c: E2 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 17 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 17 00 84 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 6B [15:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:52:47]wFMCommunicate OK [15:52:47]CreateOFDProtocolMessage done [15:52:47]OFDSenderStorePacket 69795 [15:52:47]StoreOFDPacket docnum=69795 [15:52:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 35 01 00 00 A8 E7 2D 01 1B 2D 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 50 27 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A3 10 01 00 35 04 06 00 09 FE 93 BA B2 2C 1E 8F 0A DA 14 E8 7A 81 [15:52:47]CheckFolder [15:52:47]dirname=/storage/ofd_packets [15:52:47]CheckFolder done [15:52:47]ProducePacketName [15:52:47]name=ofd_packets/00069795 [15:52:47]NVStorageSaveData ofd_packets/00069795 [15:52:47]File name is /storage/ofd_packets/00069795 [15:52:47]Write 339 bytes [15:52:47]NVStorageSaveData done [15:52:47]OFDSenderStorePacket done [15:52:47]KKMCreateOFDPacket done [15:52:47]NVStorageSaveData kkm_last_timestamp [15:52:47]File name is /storage/kkm_last_timestamp [15:52:47]Write 4 bytes [15:52:47]NVStorageSaveData done [15:52:47]ExternCall_PrintAddStr [15:52:47]wPrintStart [15:52:47]Write to MH i2c: 01 00 00 85 16 9B [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: 01 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: 01 07 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: 01 07 00 85 16 00 00 00 00 00 FF 0F B0 [15:52:47]RasterBufferAndPrint [15:52:47]line Счет N : (3)127193 [15:52:47]line ИНН: 02508201610067 [15:52:47]line Контрольно-Кассовый Чек [15:52:47]line ПРОДАЖА [15:52:47]line Товар: 5449000176431 [15:52:47]line Сок Piko Pulpy апельсин ПЭТ 0,5л [15:52:47]line 1.000 * 95.00 [15:52:47]line = 95.00 [15:52:47]line НДС 12% НСП 1% [15:52:47]line > о реализуемом товаре [15:52:47]line ИТОГО: 95.00 [15:52:47]line НСП 1% : 0.84 [15:52:47]line НДС 12% : 10.09 [15:52:47]line Наличными: 0.00 [15:52:47]line Безнал.: 95.00 [15:52:47]line Место: АЗС № 163 "Партнер Нефть" [15:52:47]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [15:52:47]line СНО: Общий режим [15:52:47]line Чек 85 20.10.2024 15:52 [15:52:47]line Смена: 526 ФФД: 1.0 [15:52:47]line ЗНМ: 0300000101 [15:52:47]line РНМ: 0000000000091770 [15:52:47]line Версия ККМ: 001 [15:52:47]line Платежная система: Mbank [15:52:47]line ФМ: 0000000000871749 [15:52:47]line ФД: 69795 [15:52:47]line ФПД: 10989004829228 [15:52:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T155248&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69795&fm=10989004829228&tin=02508201610067®Number=0000000000091770&sum=9500 [15:52:47]line 0 [15:52:48]OFD Sender: Processing packet 69795 [packets to send 32, broken 31] [15:52:48]ProducePacketName [15:52:48]name=ofd_packets/00069795 [15:52:48]OFD Sender: To server: pG, [15:52:48]CommunicateWithHost lk.salyk.kg:30040 [15:52:48]ConnectInit lk.salyk.kg [15:52:48]written 0, free lines is 4095 [15:52:48]Connected sock=10 [15:52:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 35 01 00 00 A8 E7 2D 01 1B 2D 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 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 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 50 27 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A3 10 01 00 35 04 06 00 09 FE 93 BA B2 2C 1E 8F 0A DA 14 E8 7A 81 [15:52:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 36 C7 47 00 71 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 31 37 34 39 10 04 04 00 A3 10 01 00 F4 03 04 00 D3 CC 14 67 B6 04 01 00 00 98 15 C7 1F BA C7 91 96 [15:52:48]CommunicateWithHost err = 0 [15:52:48]CheckOFDResponse [15:52:48]1017 (14) - 77093643461234 [15:52:48]1041 (16) - 0000000000871749 [15:52:48]1040 (4) - 69795 [15:52:48]1012 (4) - 20.10.2024 09:26 [15:52:48]1206 (1) - 0 [15:52:48]OFD Sender: Remove packet 69795 [15:52:48]ProducePacketName [15:52:48]name=ofd_packets/00069795 [15:52:48]NVStorageDeleteData [15:52:48]Write to MH i2c: 01 00 00 AF 16 C5 [15:52:48]Write i2c OK [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: 01 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: 01 07 00 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: 01 07 00 AF 16 00 00 00 00 00 E2 0C BA [15:52:48]RasterBufferAndPrint [15:52:48]line [15:52:48]line [15:52:48]line [15:52:48]line [15:52:48]line [15:52:48]written 0, free lines is 3304 [15:52:48]MH_Cut [15:52:48]Write to MH i2c: D1 01 00 B6 16 01 9E [15:52:48]Write i2c OK [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: D1 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: D1 01 00 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: D1 01 00 B6 16 00 9D [15:52:48]Write to MH i2c: 01 00 00 B7 16 CD [15:52:48]Write i2c OK [15:52:48]MH_I2C_Read... [15:52:49]OFD Sender: No OFD packet to send [15:52:49]*** Cut start [15:52:49]*** Partial cut [15:52:49]*** CUTSNS_PIN = 1 [15:52:49]*** CUTSNS_PIN = 0 [15:52:49]*** Brake cut motor [15:52:50]Read from MH i2c: 01 [15:52:50]MH_I2C_Read... [15:52:50]*** Stop cut motor [15:52:50]*** Cut end [15:52:50]Read from MH i2c: 01 07 00 [15:52:50]MH_I2C_Read... [15:52:50]Read from MH i2c: 01 07 00 B7 16 00 00 00 00 00 FF 0F E2 [15:52:50]process_action close_receipt done [15:52:50]requested_data is exist [15:52:50]produce_requested_data [15:52:50]requested_item fm.sn is exist - process it [15:52:50]wFMCommunicate request_size=4 [15:52:50]MH_SAM_APDU [15:52:50]CAPDU: 80 11 00 00 [15:52:50]Write to MH i2c: E2 08 00 B8 16 80 11 00 00 00 00 00 00 48 [15:52:50]Write i2c OK [15:52:50]MH_I2C_Read... [15:52:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:50]Read from MH i2c: E2 [15:52:50]MH_I2C_Read... [15:52:50]Read from MH i2c: E2 17 00 [15:52:50]MH_I2C_Read... [15:52:50]Read from MH i2c: E2 17 00 B8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 9F [15:52:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [15:52:50]wFMCommunicate OK [15:52:50]requested_item fd.num is exist - process it [15:52:50]SAM_PROTO_GetFieldsCounters [15:52:50]wFMCommunicate request_size=4 [15:52:50]MH_SAM_APDU [15:52:50]CAPDU: 80 13 00 00 [15:52:50]Write to MH i2c: E2 08 00 B9 16 80 13 00 00 00 00 00 00 4B [15:52:50]Write i2c OK [15:52:50]MH_I2C_Read... [15:52:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:50]Read from MH i2c: E2 [15:52:50]MH_I2C_Read... [15:52:50]Read from MH i2c: E2 62 00 [15:52:50]MH_I2C_Read... [15:52:50]Read from MH i2c: E2 62 00 B9 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A3 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [15:52: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A3 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:50]wFMCommunicate OK [15:52:50]SAM_PROTO_GetFieldsCounters done [15:52:50]requested_item shift.num is exist - process it [15:52:50]requested_item shift.opened is exist - process it [15:52:50]req_shift_opened [15:52:50]FM_GetShiftState [15:52:50]SAM_PROTO_GetShiftState [15:52:50]wFMCommunicate request_size=4 [15:52:50]MH_SAM_APDU [15:52:50]CAPDU: 80 13 01 00 [15:52:50]Write to MH i2c: E2 08 00 BA 16 80 13 01 00 00 00 00 00 4D [15:52:50]Write i2c OK [15:52:50]MH_I2C_Read... [15:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:50]Read from MH i2c: E2 [15:52:50]MH_I2C_Read... [15:52:50]Read from MH i2c: E2 0E 00 [15:52:50]MH_I2C_Read... [15:52:50]Read from MH i2c: E2 0E 00 BA 16 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 DF [15:52:50]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [15:52:50]wFMCommunicate OK [15:52:50]SAM_PROTO_GetShiftState done [15:52:50]FM_GetShiftState done [15:52:50]req_shift_opened done [15:52:50]requested_item shift.open_date is exist - process it [15:52:50]req_shift_open_date [15:52:50]req_shift_open_date done [15:52:50]produce_requested_data done [15:52:50]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69795,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [15:52:50]process_action_free close_receipt [15:52:50]json_value_free [15:52:50]json_value_free done [15:52:50]process_json_proto returns [15:52:50]Send response to host [15:52:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69795,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [15:52:50]free response buf [15:52:50]execute_script done [15:52:50]execute_script returns [15:52:50]free content buf [15:52:50]Sock 9.Close socket [15:52:50]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [15:58:34]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:54]OFD Sender: No OFD packet to send [15:58:59]OFD Sender: No OFD packet to send [15:59:04]OFD Sender: No OFD packet to send [15:59:09]OFD Sender: No OFD packet to send [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:37]accept exits with 7 [16:03:37]New connection [16:03:37]New thread 3066629476 created [16:03:37]Thread 3066486116 joined [16:03:37]Waiting for new connection... [16:03:37] Sock 7.Parse request [16:03:37]Sock 7.Check first char [16:03:37]Sock 7.First char is OK [16:03:37]request: POST /json_proto HTTP/1.0 [16:03:37]Method: POST [16:03:37]URL: /json_proto [16:03:37]Method is POST - this is cgi request [16:03:37]url: /json_proto [16:03:37]query_string will be loaded in cgi processing [16:03:37]execute_cgi json_proto POST (null) [16:03:37]execute_cgi path=json_proto method=POST [16:03:37]POST find Content-Length [16:03:37]Host: 172.17.52.196:8080 [16:03:37]Content-Length: 626 [16:03:37]Content-Type: application/json [16:03:37] [16:03:37]POST finish read [16:03:37]Found Content-Length = 626 [16:03:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127194", "tax_sys" : 0, "items" : [ { "code": "48743389", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B BOND STREET compact blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:37]execute_script... [16:03: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 : (3)127194", "tax_sys" : 0, "items" : [ { "code": "48743389", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B BOND STREET compact blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:37]POST & json_proto [16:03:37]process_json_proto [16:03:37]json parsed OK: [16:03:37]protocol is kg_v1.0 [16:03:37]action value=close_receipt [16:03:37]process_action close_receipt [16:03:37]cmd_close_receipt [16:03:37]MH_GetDate [16:03:37]Write to MH i2c: F0 00 00 BB 16 C0 [16:03:37]Write i2c OK [16:03:37]MH_I2C_Read... [16:03:37]Read from MH i2c: F0 [16:03:37]MH_I2C_Read... [16:03:37]Read from MH i2c: F0 09 00 [16:03:37]MH_I2C_Read... [16:03:37]Read from MH i2c: F0 09 00 BB 16 00 DC 29 15 67 60 05 E4 66 F9 [16:03:37]GetLastDocTimeStamp 1729439568 [16:03:37]current date 1729440220 [16:03:37]FM_GetShiftState [16:03:37]SAM_PROTO_GetShiftState [16:03:37]wFMCommunicate request_size=4 [16:03:37]MH_SAM_APDU [16:03:37]CAPDU: 80 13 01 00 [16:03:37]Write to MH i2c: E2 08 00 BC 16 80 13 01 00 00 00 00 00 4F [16:03:37]Write i2c OK [16:03:37]MH_I2C_Read... [16:03:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:37]Read from MH i2c: E2 [16:03:37]MH_I2C_Read... [16:03:37]Read from MH i2c: E2 0E 00 [16:03:37]MH_I2C_Read... [16:03:37]Read from MH i2c: E2 0E 00 BC 16 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 E1 [16:03:37]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [16:03:37]wFMCommunicate OK [16:03:37]SAM_PROTO_GetShiftState done [16:03:37]FM_GetShiftState done [16:03:37]opened in 1729384380 [16:03:37]opened+sec_in_day 1729470780 [16:03:37]quantity*price = 13400 [16:03:37]sum+1 = 13401 [16:03:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 86 20.10.2024 16:03 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69796 ФПД: 145279784827973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160340&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69796&fm=145279784827973&tin=02508201610067®Number=0000000000091770&sum=13400 0 [16:03:38]StoreToDocumentArchive [16:03:38]shift 526 fd 69796 [16:03:38]save to /storage/0526/doc_00069796 [16:03:38]save last doc name /storage/0526/doc_00069796 to /storage/kkm_last_doc_name [16:03:38]save OK [16:03:38]Clear old archive folders... [16:03:38]ProcessDocumentItem done err = 0, tmpTLVsize=278 [16:03:38]tlvbuf is 00A0E500 [16:03:38]SAM_PROTO_ClearQueue [16:03:38]wFMCommunicate request_size=4 [16:03:38]MH_SAM_APDU [16:03:38]CAPDU: 80 09 00 00 [16:03:38]Write to MH i2c: E2 08 00 C9 16 80 09 00 00 00 00 00 00 51 [16:03:38]Write i2c OK [16:03:38]MH_I2C_Read... [16:03:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:38]Read from MH i2c: E2 [16:03:38]MH_I2C_Read... [16:03:38]Read from MH i2c: E2 03 00 [16:03:38]MH_I2C_Read... [16:03:38]Read from MH i2c: E2 03 00 C9 16 00 90 00 53 [16:03:38]RAPDU: 90 00 [16:03:38]wFMCommunicate OK [16:03:38]SAM_PROTO_ClearQueue done [16:03:38]KKMCreateOFDPacket [16:03:38]OFDProtocolAddRootSTLVToBuf [16:03:38]FM_MakeSignedData [16:03:38]FM_MakeSignedData [16:03:38]SAM_PROTO_SignData [16:03:38]wFMCommunicate request_size=4 [16:03:38]MH_SAM_APDU [16:03:38]CAPDU: 80 0D 01 02 [16:03:38]Write to MH i2c: E2 08 00 CA 16 80 0D 01 02 00 00 00 00 59 [16:03:38]Write i2c OK [16:03:38]MH_I2C_Read... [16:03:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:38]Read from MH i2c: E2 [16:03:38]MH_I2C_Read... [16:03:38]Read from MH i2c: E2 03 00 [16:03:38]MH_I2C_Read... [16:03:38]Read from MH i2c: E2 03 00 CA 16 00 90 00 54 [16:03:38]RAPDU: 90 00 [16:03:38]wFMCommunicate OK [16:03:38]wFMCommunicate request_size=255 [16:03:38]MH_SAM_APDU [16:03:38]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 DC 29 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 [16:03:38]Write to MH i2c: E2 02 01 CB 16 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 DC 29 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 00 00 74 [16:03:38]Write i2c OK [16:03:38]MH_I2C_Read... [16:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:39]Read from MH i2c: E2 [16:03:39]MH_I2C_Read... [16:03:39]Read from MH i2c: E2 03 00 [16:03:39]MH_I2C_Read... [16:03:39]Read from MH i2c: E2 03 00 CB 16 00 90 00 55 [16:03:39]RAPDU: 90 00 [16:03:39]wFMCommunicate OK [16:03:39]wFMCommunicate request_size=37 [16:03:39]MH_SAM_APDU [16:03:39]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A4 10 01 00 35 04 06 00 84 21 95 F7 BC 45 [16:03:39]Write to MH i2c: E2 28 00 CC 16 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A4 10 01 00 35 04 06 00 84 21 95 F7 BC 45 00 00 9E [16:03:39]Write i2c OK [16:03:39]MH_I2C_Read... [16:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:39]Read from MH i2c: E2 [16:03:39]MH_I2C_Read... [16:03:39]Read from MH i2c: E2 03 00 [16:03:39]MH_I2C_Read... [16:03:39]Read from MH i2c: E2 03 00 CC 16 00 90 00 56 [16:03:39]RAPDU: 90 00 [16:03:39]wFMCommunicate OK [16:03:39]wFMCommunicate request_size=4 [16:03:39]MH_SAM_APDU [16:03:39]CAPDU: 80 0D 03 02 [16:03:39]Write to MH i2c: E2 08 00 CD 16 80 0D 03 02 00 00 00 00 5E [16:03:39]Write i2c OK [16:03:39]MH_I2C_Read... [16:03:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:39]Read from MH i2c: E2 [16:03:39]MH_I2C_Read... [16:03:39]Read from MH i2c: E2 0B 00 [16:03:39]MH_I2C_Read... [16:03:39]Read from MH i2c: E2 0B 00 CD 16 00 4A 35 A1 5A B0 9C F5 97 90 00 B1 [16:03:39]RAPDU: 4A 35 A1 5A B0 9C F5 97 90 00 [16:03:39]wFMCommunicate OK [16:03:39]SAM_PROTO_SignData done [16:03:39]FM_MakeSignedData done [16:03:39]CreateOFDProtocolMessage [16:03:39]wFMCommunicate request_size=4 [16:03:39]MH_SAM_APDU [16:03:39]CAPDU: 80 11 00 00 [16:03:39]Write to MH i2c: E2 08 00 CE 16 80 11 00 00 00 00 00 00 5E [16:03:39]Write i2c OK [16:03:39]MH_I2C_Read... [16:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:39]Read from MH i2c: E2 [16:03:39]MH_I2C_Read... [16:03:39]Read from MH i2c: E2 17 00 [16:03:39]MH_I2C_Read... [16:03:39]Read from MH i2c: E2 17 00 CE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 B5 [16:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [16:03:39]wFMCommunicate OK [16:03:39]CreateOFDProtocolMessage done [16:03:39]OFDSenderStorePacket 69796 [16:03:39]StoreOFDPacket docnum=69796 [16:03:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2A 01 00 00 EB 8D 22 01 C8 9F 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 DC 29 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A4 10 01 00 35 04 06 00 84 21 95 F7 BC 45 4A 35 A1 5A B0 9C F5 97 [16:03:39]CheckFolder [16:03:39]dirname=/storage/ofd_packets [16:03:39]CheckFolder done [16:03:39]ProducePacketName [16:03:39]name=ofd_packets/00069796 [16:03:39]NVStorageSaveData ofd_packets/00069796 [16:03:39]File name is /storage/ofd_packets/00069796 [16:03:39]Write 328 bytes [16:03:39]NVStorageSaveData done [16:03:39]OFDSenderStorePacket done [16:03:39]KKMCreateOFDPacket done [16:03:39]NVStorageSaveData kkm_last_timestamp [16:03:39]File name is /storage/kkm_last_timestamp [16:03:39]Write 4 bytes [16:03:39]NVStorageSaveData done [16:03:39]ExternCall_PrintAddStr [16:03:39]wPrintStart [16:03:39]Write to MH i2c: 01 00 00 CF 16 E5 [16:03:39]OFD Sender: Processing packet 69796 [packets to send 32, broken 31] [16:03:39]ProducePacketName [16:03:39]name=ofd_packets/00069796 [16:03:39]OFD Sender: To server: pG, [16:03:39]CommunicateWithHost lk.salyk.kg:30040 [16:03:39]ConnectInit lk.salyk.kg [16:03:39]Write i2c OK [16:03:39]MH_I2C_Read... [16:03:39]Read from MH i2c: 01 [16:03:39]MH_I2C_Read... [16:03:39]Read from MH i2c: 01 07 00 [16:03:39]MH_I2C_Read... [16:03:39]Read from MH i2c: 01 07 00 CF 16 00 00 00 00 00 FF 0F FA [16:03:39]RasterBufferAndPrint [16:03:39]line Счет N : (3)127194 [16:03:39]line ИНН: 02508201610067 [16:03:39]line Контрольно-Кассовый Чек [16:03:39]line ПРОДАЖА [16:03:39]line Товар: 48743389 [16:03:39]line Сигареты BOND STREET compact blue [16:03:39]line 1.000 * 134.00 [16:03:39]line = 134.00 [16:03:39]line НДС 12% НСП 1% [16:03:39]line > о реализуемом товаре [16:03:39]line ИТОГО: 134.00 [16:03:39]line НСП 1% : 1.19 [16:03:39]line НДС 12% : 14.23 [16:03:39]line Наличными: 134.00 [16:03:39]line Безнал.: 0.00 [16:03:39]line Место: АЗС № 163 "Партнер Нефть" [16:03:39]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [16:03:39]line СНО: Общий режим [16:03:39]line Чек 86 20.10.2024 16:03 [16:03:39]line Смена: 526 ФФД: 1.0 [16:03:39]line ЗНМ: 0300000101 [16:03:39]line РНМ: 0000000000091770 [16:03:39]line Версия ККМ: 001 [16:03:39]line ФМ: 0000000000871749 [16:03:39]line ФД: 69796 [16:03:39]line ФПД: 145279784827973 [16:03:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T160340&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69796&fm=145279784827973&tin=02508201610067®Number=0000000000091770&sum=13400 [16:03:39]Connected sock=10 [16:03:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2A 01 00 00 EB 8D 22 01 C8 9F 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 DC 29 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A4 10 01 00 35 04 06 00 84 21 95 F7 BC 45 4A 35 A1 5A B0 9C F5 97 [16:03:39]line 0 [16:03:39]written 0, free lines is 4095 [16:03:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 1E E5 47 00 4C 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 31 37 34 39 10 04 04 00 A4 10 01 00 F4 03 04 00 5E CF 14 67 B6 04 01 00 00 18 B1 ED 91 DE 9E 51 02 [16:03:39]CommunicateWithHost err = 0 [16:03:39]CheckOFDResponse [16:03:39]1017 (14) - 77093643461234 [16:03:39]1041 (16) - 0000000000871749 [16:03:39]1040 (4) - 69796 [16:03:39]1012 (4) - 20.10.2024 09:37 [16:03:39]1206 (1) - 0 [16:03:39]OFD Sender: Remove packet 69796 [16:03:39]ProducePacketName [16:03:39]name=ofd_packets/00069796 [16:03:39]NVStorageDeleteData [16:03:40]Write to MH i2c: 01 00 00 F8 16 0E [16:03:40]Write i2c OK [16:03:40]MH_I2C_Read... [16:03:40]Read from MH i2c: 01 [16:03:40]MH_I2C_Read... [16:03:40]Read from MH i2c: 01 07 00 [16:03:40]MH_I2C_Read... [16:03:40]Read from MH i2c: 01 07 00 F8 16 00 00 00 00 00 DE 0C FF [16:03:40]RasterBufferAndPrint [16:03:40]line [16:03:40]line [16:03:40]line [16:03:40]line [16:03:40]line [16:03:40]written 0, free lines is 3302 [16:03:40]MH_Cut [16:03:40]Write to MH i2c: D1 01 00 FF 16 01 E7 [16:03:40]Write i2c OK [16:03:40]MH_I2C_Read... [16:03:40]Read from MH i2c: D1 [16:03:40]MH_I2C_Read... [16:03:40]Read from MH i2c: D1 01 00 [16:03:40]MH_I2C_Read... [16:03:40]Read from MH i2c: D1 01 00 FF 16 00 E6 [16:03:40]Write to MH i2c: 01 00 00 00 17 17 [16:03:40]Write i2c OK [16:03:40]MH_I2C_Read... [16:03:40]OFD Sender: No OFD packet to send [16:03:40]*** Cut start [16:03:40]*** Partial cut [16:03:40]*** CUTSNS_PIN = 1 [16:03:40]*** CUTSNS_PIN = 0 [16:03:41]*** Brake cut motor [16:03:41]Read from MH i2c: 01 [16:03:41]MH_I2C_Read... [16:03:41]*** Stop cut motor [16:03:41]*** Cut end [16:03:41]Read from MH i2c: 01 07 00 [16:03:41]MH_I2C_Read... [16:03:41]Read from MH i2c: 01 07 00 00 17 00 00 00 00 00 FF 0F 2C [16:03:41]process_action close_receipt done [16:03:41]requested_data is exist [16:03:41]produce_requested_data [16:03:41]requested_item fm.sn is exist - process it [16:03:41]wFMCommunicate request_size=4 [16:03:41]MH_SAM_APDU [16:03:41]CAPDU: 80 11 00 00 [16:03:41]Write to MH i2c: E2 08 00 01 17 80 11 00 00 00 00 00 00 92 [16:03:41]Write i2c OK [16:03:41]MH_I2C_Read... [16:03:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:41]Read from MH i2c: E2 [16:03:41]MH_I2C_Read... [16:03:41]Read from MH i2c: E2 17 00 [16:03:41]MH_I2C_Read... [16:03:41]Read from MH i2c: E2 17 00 01 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 E9 [16:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [16:03:41]wFMCommunicate OK [16:03:41]requested_item fd.num is exist - process it [16:03:41]SAM_PROTO_GetFieldsCounters [16:03:41]wFMCommunicate request_size=4 [16:03:41]MH_SAM_APDU [16:03:41]CAPDU: 80 13 00 00 [16:03:41]Write to MH i2c: E2 08 00 02 17 80 13 00 00 00 00 00 00 95 [16:03:41]Write i2c OK [16:03:41]MH_I2C_Read... [16:03:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:41]Read from MH i2c: E2 [16:03:41]MH_I2C_Read... [16:03:41]Read from MH i2c: E2 62 00 [16:03:41]MH_I2C_Read... [16:03:41]Read from MH i2c: E2 62 00 02 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A4 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [16:03: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A4 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:41]wFMCommunicate OK [16:03:41]SAM_PROTO_GetFieldsCounters done [16:03:41]requested_item shift.num is exist - process it [16:03:41]requested_item shift.opened is exist - process it [16:03:41]req_shift_opened [16:03:41]FM_GetShiftState [16:03:41]SAM_PROTO_GetShiftState [16:03:41]wFMCommunicate request_size=4 [16:03:41]MH_SAM_APDU [16:03:41]CAPDU: 80 13 01 00 [16:03:41]Write to MH i2c: E2 08 00 03 17 80 13 01 00 00 00 00 00 97 [16:03:41]Write i2c OK [16:03:41]MH_I2C_Read... [16:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:41]Read from MH i2c: E2 [16:03:41]MH_I2C_Read... [16:03:41]Read from MH i2c: E2 0E 00 [16:03:41]MH_I2C_Read... [16:03:41]Read from MH i2c: E2 0E 00 03 17 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 29 [16:03:41]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [16:03:41]wFMCommunicate OK [16:03:41]SAM_PROTO_GetShiftState done [16:03:41]FM_GetShiftState done [16:03:41]req_shift_opened done [16:03:41]requested_item shift.open_date is exist - process it [16:03:41]req_shift_open_date [16:03:41]req_shift_open_date done [16:03:41]produce_requested_data done [16:03:41]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69796,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [16:03:41]process_action_free close_receipt [16:03:41]json_value_free [16:03:41]json_value_free done [16:03:41]process_json_proto returns [16:03:41]Send response to host [16:03:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69796,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [16:03:41]free response buf [16:03:41]execute_script done [16:03:41]execute_script returns [16:03:41]free content buf [16:03:41]Sock 7.Close socket [16:03:41]Sock 7.Thread stoped [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:09]accept exits with 9 [16:10:09]New connection [16:10:09]New thread 3066486116 created [16:10:09]Thread 3066629476 joined [16:10:09]Waiting for new connection... [16:10:09] Sock 9.Parse request [16:10:09]Sock 9.Check first char [16:10:09]Sock 9.First char is OK [16:10:09]request: POST /json_proto HTTP/1.0 [16:10:09]Method: POST [16:10:09]URL: /json_proto [16:10:09]Method is POST - this is cgi request [16:10:09]url: /json_proto [16:10:09]query_string will be loaded in cgi processing [16:10:09]execute_cgi json_proto POST (null) [16:10:09]execute_cgi path=json_proto method=POST [16:10:09]POST find Content-Length [16:10:09]Host: 172.17.52.196:8080 [16:10:09]Content-Length: 855 [16:10:09]Content-Type: application/json [16:10:09] [16:10:09]POST finish read [16:10:09]Found Content-Length = 855 [16:10:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127195", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:09]execute_script... [16:10:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127195", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:09]POST & json_proto [16:10:09]process_json_proto [16:10:09]json parsed OK: [16:10:09]protocol is kg_v1.0 [16:10:09]action value=close_receipt [16:10:09]process_action close_receipt [16:10:09]cmd_close_receipt [16:10:09]MH_GetDate [16:10:09]Write to MH i2c: F0 00 00 04 17 0A [16:10:09]Write i2c OK [16:10:09]MH_I2C_Read... [16:10:09]Read from MH i2c: F0 [16:10:09]MH_I2C_Read... [16:10:09]Read from MH i2c: F0 09 00 [16:10:09]MH_I2C_Read... [16:10:09]Read from MH i2c: F0 09 00 04 17 00 64 2B 15 67 60 05 E4 66 CD [16:10:09]GetLastDocTimeStamp 1729440220 [16:10:09]current date 1729440612 [16:10:09]FM_GetShiftState [16:10:09]SAM_PROTO_GetShiftState [16:10:09]wFMCommunicate request_size=4 [16:10:09]MH_SAM_APDU [16:10:09]CAPDU: 80 13 01 00 [16:10:09]Write to MH i2c: E2 08 00 05 17 80 13 01 00 00 00 00 00 99 [16:10:09]Write i2c OK [16:10:09]MH_I2C_Read... [16:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:09]Read from MH i2c: E2 [16:10:09]MH_I2C_Read... [16:10:09]Read from MH i2c: E2 0E 00 [16:10:09]MH_I2C_Read... [16:10:09]Read from MH i2c: E2 0E 00 05 17 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 2B [16:10:09]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [16:10:09]wFMCommunicate OK [16:10:09]SAM_PROTO_GetShiftState done [16:10:09]FM_GetShiftState done [16:10:09]opened in 1729384380 [16:10:09]opened+sec_in_day 1729470780 [16:10:09]quantity*price = 12000 [16:10:09]sum+1 = 12001 [16:10:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 0.00 Безнал.: 120.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 87 20.10.2024 16:10 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69797 ФПД: 260774286488270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161012&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69797&fm=260774286488270&tin=02508201610067®Number=0000000000091770&sum=12000 0 [16:10:10]StoreToDocumentArchive [16:10:10]shift 526 fd 69797 [16:10:10]save to /storage/0526/doc_00069797 [16:10:10]save last doc name /storage/0526/doc_00069797 to /storage/kkm_last_doc_name [16:10:10]save OK [16:10:10]Clear old archive folders... [16:10:10]ProcessDocumentItem done err = 0, tmpTLVsize=308 [16:10:10]tlvbuf is 00A04F90 [16:10:10]SAM_PROTO_ClearQueue [16:10:10]wFMCommunicate request_size=4 [16:10:10]MH_SAM_APDU [16:10:10]CAPDU: 80 09 00 00 [16:10:10]Write to MH i2c: E2 08 00 12 17 80 09 00 00 00 00 00 00 9B [16:10:10]Write i2c OK [16:10:10]MH_I2C_Read... [16:10:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:10]Read from MH i2c: E2 [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: E2 03 00 [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: E2 03 00 12 17 00 90 00 9D [16:10:10]RAPDU: 90 00 [16:10:10]wFMCommunicate OK [16:10:10]SAM_PROTO_ClearQueue done [16:10:10]KKMCreateOFDPacket [16:10:10]OFDProtocolAddRootSTLVToBuf [16:10:10]FM_MakeSignedData [16:10:10]FM_MakeSignedData [16:10:10]SAM_PROTO_SignData [16:10:10]wFMCommunicate request_size=4 [16:10:10]MH_SAM_APDU [16:10:10]CAPDU: 80 0D 01 02 [16:10:10]Write to MH i2c: E2 08 00 13 17 80 0D 01 02 00 00 00 00 A3 [16:10:10]Write i2c OK [16:10:10]MH_I2C_Read... [16:10:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:10]Read from MH i2c: E2 [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: E2 03 00 [16:10:10]MH_I2C_Read... [16:10:10]Read from MH i2c: E2 03 00 13 17 00 90 00 9E [16:10:10]RAPDU: 90 00 [16:10:10]wFMCommunicate OK [16:10:10]wFMCommunicate request_size=255 [16:10:10]MH_SAM_APDU [16:10:10]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 64 2B 15 67 0E 04 04 00 0E 02 00 00 B9 [16:10:10]Write to MH i2c: E2 02 01 14 17 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 64 2B 15 67 0E 04 04 00 0E 02 00 00 B9 00 00 45 [16:10:10]Write i2c OK [16:10:10]MH_I2C_Read... [16:10:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:11]Read from MH i2c: E2 [16:10:11]MH_I2C_Read... [16:10:11]Read from MH i2c: E2 03 00 [16:10:11]MH_I2C_Read... [16:10:11]Read from MH i2c: E2 03 00 14 17 00 90 00 9F [16:10:11]RAPDU: 90 00 [16:10:11]wFMCommunicate OK [16:10:11]wFMCommunicate request_size=67 [16:10:11]MH_SAM_APDU [16:10:11]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A5 10 01 00 35 04 06 00 ED 2C 3E B6 72 CE [16:10:11]Write to MH i2c: E2 46 00 15 17 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A5 10 01 00 35 04 06 00 ED 2C 3E B6 72 CE 00 00 04 [16:10:11]Write i2c OK [16:10:11]MH_I2C_Read... [16:10:11]Read from MH i2c: E2 [16:10:11]MH_I2C_Read... [16:10:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:11]Read from MH i2c: E2 03 00 [16:10:11]MH_I2C_Read... [16:10:11]Read from MH i2c: E2 03 00 15 17 00 90 00 A0 [16:10:11]RAPDU: 90 00 [16:10:11]wFMCommunicate OK [16:10:11]wFMCommunicate request_size=4 [16:10:11]MH_SAM_APDU [16:10:11]CAPDU: 80 0D 03 02 [16:10:11]Write to MH i2c: E2 08 00 16 17 80 0D 03 02 00 00 00 00 A8 [16:10:11]Write i2c OK [16:10:11]MH_I2C_Read... [16:10:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:11]Read from MH i2c: E2 [16:10:11]MH_I2C_Read... [16:10:11]Read from MH i2c: E2 0B 00 [16:10:11]MH_I2C_Read... [16:10:11]Read from MH i2c: E2 0B 00 16 17 00 06 33 44 A8 FB 6F 15 71 90 00 BE [16:10:11]RAPDU: 06 33 44 A8 FB 6F 15 71 90 00 [16:10:11]wFMCommunicate OK [16:10:11]SAM_PROTO_SignData done [16:10:11]FM_MakeSignedData done [16:10:11]CreateOFDProtocolMessage [16:10:11]wFMCommunicate request_size=4 [16:10:11]MH_SAM_APDU [16:10:11]CAPDU: 80 11 00 00 [16:10:11]Write to MH i2c: E2 08 00 17 17 80 11 00 00 00 00 00 00 A8 [16:10:11]Write i2c OK [16:10:11]MH_I2C_Read... [16:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:11]Read from MH i2c: E2 [16:10:11]MH_I2C_Read... [16:10:11]Read from MH i2c: E2 17 00 [16:10:11]MH_I2C_Read... [16:10:11]Read from MH i2c: E2 17 00 17 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 FF [16:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [16:10:11]wFMCommunicate OK [16:10:11]CreateOFDProtocolMessage done [16:10:11]OFDSenderStorePacket 69797 [16:10:11]StoreOFDPacket docnum=69797 [16:10:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 48 01 00 00 7F B8 40 01 DE D1 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 64 2B 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A5 10 01 00 35 04 06 00 ED 2C 3E B6 72 CE 06 33 44 A8 FB 6F 15 71 [16:10:11]CheckFolder [16:10:11]dirname=/storage/ofd_packets [16:10:11]CheckFolder done [16:10:11]ProducePacketName [16:10:11]name=ofd_packets/00069797 [16:10:11]NVStorageSaveData ofd_packets/00069797 [16:10:11]File name is /storage/ofd_packets/00069797 [16:10:11]Write 358 bytes [16:10:11]NVStorageSaveData done [16:10:11]OFDSenderStorePacket done [16:10:11]KKMCreateOFDPacket done [16:10:11]NVStorageSaveData kkm_last_timestamp [16:10:11]File name is /storage/kkm_last_timestamp [16:10:11]Write 4 bytes [16:10:11]NVStorageSaveData done [16:10:11]ExternCall_PrintAddStr [16:10:11]wPrintStart [16:10:11]Write to MH i2c: 01 00 00 18 17 2F [16:10:11]Write i2c OK [16:10:11]MH_I2C_Read... [16:10:11]Read from MH i2c: 01 [16:10:11]MH_I2C_Read... [16:10:11]Read from MH i2c: 01 07 00 [16:10:11]MH_I2C_Read... [16:10:11]Read from MH i2c: 01 07 00 18 17 00 00 00 00 00 FF 0F 44 [16:10:11]RasterBufferAndPrint [16:10:11]line Счет N : (3)127195 [16:10:11]line ИНН: 02508201610067 [16:10:11]line Контрольно-Кассовый Чек [16:10:11]line ПРОДАЖА [16:10:11]line Товар: 5449000027474 [16:10:11]line Напиток FuzeTea зел чай манго,ромашка 1л [16:10:11]line 1.000 * 120.00 [16:10:11]line = 120.00 [16:10:11]line НДС 12% НСП 1% [16:10:11]line > о реализуемом товаре [16:10:11]line ИТОГО: 120.00 [16:10:11]line НСП 1% : 1.06 [16:10:11]line НДС 12% : 12.74 [16:10:11]line Наличными: 0.00 [16:10:11]line Безнал.: 120.00 [16:10:11]line Место: АЗС № 163 "Партнер Нефть" [16:10:11]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [16:10:11]line СНО: Общий режим [16:10:11]line Чек 87 20.10.2024 16:10 [16:10:11]line Смена: 526 ФФД: 1.0 [16:10:11]line ЗНМ: 0300000101 [16:10:11]line РНМ: 0000000000091770 [16:10:11]line Версия ККМ: 001 [16:10:11]line Платежная система: Mbank [16:10:11]line ФМ: 0000000000871749 [16:10:11]line ФД: 69797 [16:10:11]line ФПД: 260774286488270 [16:10:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T161012&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69797&fm=260774286488270&tin=02508201610067®Number=0000000000091770&sum=12000 [16:10:11]line 0 [16:10:11]OFD Sender: Processing packet 69797 [packets to send 32, broken 31] [16:10:11]ProducePacketName [16:10:11]name=ofd_packets/00069797 [16:10:11]OFD Sender: To server: pG, [16:10:11]CommunicateWithHost lk.salyk.kg:30040 [16:10:11]ConnectInit lk.salyk.kg [16:10:11]written 0, free lines is 4095 [16:10:11]Connected sock=10 [16:10:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 48 01 00 00 7F B8 40 01 DE D1 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 64 2B 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A5 10 01 00 35 04 06 00 ED 2C 3E B6 72 CE 06 33 44 A8 FB 6F 15 71 [16:10:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 87 89 47 00 0F FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A5 10 01 00 F4 03 04 00 E6 D0 14 67 B6 04 01 00 00 81 77 B9 77 0E 2C FD AB [16:10:12]CommunicateWithHost err = 0 [16:10:12]CheckOFDResponse [16:10:12]1017 (14) - 77093643461234 [16:10:12]1041 (16) - 0000000000871749 [16:10:12]1040 (4) - 69797 [16:10:12]1012 (4) - 20.10.2024 09:44 [16:10:12]1206 (1) - 0 [16:10:12]OFD Sender: Remove packet 69797 [16:10:12]ProducePacketName [16:10:12]name=ofd_packets/00069797 [16:10:12]NVStorageDeleteData [16:10:12]Write to MH i2c: 01 00 00 42 17 59 [16:10:12]Write i2c OK [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: 01 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: 01 07 00 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: 01 07 00 42 17 00 00 00 00 00 D5 0C 41 [16:10:12]RasterBufferAndPrint [16:10:12]line [16:10:12]line [16:10:12]line [16:10:12]line [16:10:12]line [16:10:12]written 0, free lines is 3293 [16:10:12]MH_Cut [16:10:12]Write to MH i2c: D1 01 00 49 17 01 32 [16:10:12]Write i2c OK [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: D1 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: D1 01 00 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: D1 01 00 49 17 00 31 [16:10:12]Write to MH i2c: 01 00 00 4A 17 61 [16:10:12]Write i2c OK [16:10:12]MH_I2C_Read... [16:10:12]OFD Sender: No OFD packet to send [16:10:12]*** Cut start [16:10:12]*** Partial cut [16:10:12]*** CUTSNS_PIN = 1 [16:10:13]*** CUTSNS_PIN = 0 [16:10:13]*** Brake cut motor [16:10:13]Read from MH i2c: 01 [16:10:13]MH_I2C_Read... [16:10:13]*** Stop cut motor [16:10:13]*** Cut end [16:10:13]Read from MH i2c: 01 07 00 [16:10:13]MH_I2C_Read... [16:10:13]Read from MH i2c: 01 07 00 4A 17 00 00 00 00 00 FF 0F 76 [16:10:13]process_action close_receipt done [16:10:13]requested_data is exist [16:10:13]produce_requested_data [16:10:13]requested_item fm.sn is exist - process it [16:10:13]wFMCommunicate request_size=4 [16:10:13]MH_SAM_APDU [16:10:13]CAPDU: 80 11 00 00 [16:10:13]Write to MH i2c: E2 08 00 4B 17 80 11 00 00 00 00 00 00 DC [16:10:13]Write i2c OK [16:10:13]MH_I2C_Read... [16:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:13]Read from MH i2c: E2 [16:10:13]MH_I2C_Read... [16:10:13]Read from MH i2c: E2 17 00 [16:10:13]MH_I2C_Read... [16:10:13]Read from MH i2c: E2 17 00 4B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 33 [16:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [16:10:13]wFMCommunicate OK [16:10:13]requested_item fd.num is exist - process it [16:10:13]SAM_PROTO_GetFieldsCounters [16:10:13]wFMCommunicate request_size=4 [16:10:13]MH_SAM_APDU [16:10:13]CAPDU: 80 13 00 00 [16:10:13]Write to MH i2c: E2 08 00 4C 17 80 13 00 00 00 00 00 00 DF [16:10:13]Write i2c OK [16:10:13]MH_I2C_Read... [16:10:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:13]Read from MH i2c: E2 [16:10:13]MH_I2C_Read... [16:10:13]Read from MH i2c: E2 62 00 [16:10:13]MH_I2C_Read... [16:10:13]Read from MH i2c: E2 62 00 4C 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A5 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [16:10: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A5 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:13]wFMCommunicate OK [16:10:13]SAM_PROTO_GetFieldsCounters done [16:10:13]requested_item shift.num is exist - process it [16:10:13]requested_item shift.opened is exist - process it [16:10:13]req_shift_opened [16:10:13]FM_GetShiftState [16:10:13]SAM_PROTO_GetShiftState [16:10:13]wFMCommunicate request_size=4 [16:10:13]MH_SAM_APDU [16:10:13]CAPDU: 80 13 01 00 [16:10:13]Write to MH i2c: E2 08 00 4D 17 80 13 01 00 00 00 00 00 E1 [16:10:13]Write i2c OK [16:10:13]MH_I2C_Read... [16:10:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:14]Read from MH i2c: E2 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: E2 0E 00 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: E2 0E 00 4D 17 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 73 [16:10:14]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [16:10:14]wFMCommunicate OK [16:10:14]SAM_PROTO_GetShiftState done [16:10:14]FM_GetShiftState done [16:10:14]req_shift_opened done [16:10:14]requested_item shift.open_date is exist - process it [16:10:14]req_shift_open_date [16:10:14]req_shift_open_date done [16:10:14]produce_requested_data done [16:10:14]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69797,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [16:10:14]process_action_free close_receipt [16:10:14]json_value_free [16:10:14]json_value_free done [16:10:14]process_json_proto returns [16:10:14]Send response to host [16:10:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69797,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [16:10:14]free response buf [16:10:14]execute_script done [16:10:14]execute_script returns [16:10:14]free content buf [16:10:14]Sock 9.Close socket [16:10:14]Sock 9.Thread stoped [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:57]OFD Sender: No OFD packet to send [16:12:02]OFD Sender: No OFD packet to send [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:17]OFD Sender: No OFD packet to send [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]accept exits with 7 [16:16:37]New connection [16:16:37]New thread 3066629476 created [16:16:37]Thread 3066486116 joined [16:16:37]Waiting for new connection... [16:16:37] Sock 7.Parse request [16:16:37]Sock 7.Check first char [16:16:37]Sock 7.First char is OK [16:16:37]request: POST /json_proto HTTP/1.0 [16:16:37]Method: POST [16:16:37]URL: /json_proto [16:16:37]Method is POST - this is cgi request [16:16:37]url: /json_proto [16:16:37]query_string will be loaded in cgi processing [16:16:37]execute_cgi json_proto POST (null) [16:16:37]execute_cgi path=json_proto method=POST [16:16:37]POST find Content-Length [16:16:37]Host: 172.17.52.196:8080 [16:16:37]Content-Length: 215 [16:16:37]Content-Type: application/json [16:16:37] [16:16:37]POST finish read [16:16:37]Found Content-Length = 215 [16:16:37]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:16:37]execute_script... [16:16:37]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:16:37]POST & json_proto [16:16:37]process_json_proto [16:16:37]json parsed OK: [16:16:37]protocol is kg_v1.0 [16:16:37]action value=get_value [16:16:37]process_action get_value [16:16:37]cmd_get_value [16:16:37]process_action get_value done [16:16:37]requested_data is exist [16:16:37]produce_requested_data [16:16:37]requested_item kkm.sn is exist - process it [16:16:37]requested_item kkm.ver is exist - process it [16:16:37]requested_item fm.sn is exist - process it [16:16:37]wFMCommunicate request_size=4 [16:16:37]MH_SAM_APDU [16:16:37]CAPDU: 80 11 00 00 [16:16:37]Write to MH i2c: E2 08 00 4E 17 80 11 00 00 00 00 00 00 DF [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:37]Read from MH i2c: E2 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 17 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 17 00 4E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 36 [16:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [16:16:37]wFMCommunicate OK [16:16:37]requested_item fd.num is exist - process it [16:16:37]SAM_PROTO_GetFieldsCounters [16:16:37]wFMCommunicate request_size=4 [16:16:37]MH_SAM_APDU [16:16:37]CAPDU: 80 13 00 00 [16:16:37]Write to MH i2c: E2 08 00 4F 17 80 13 00 00 00 00 00 00 E2 [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:37]Read from MH i2c: E2 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 62 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 62 00 4F 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A5 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [16:16: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A5 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:37]wFMCommunicate OK [16:16:37]SAM_PROTO_GetFieldsCounters done [16:16:37]requested_item shift.num is exist - process it [16:16:37]requested_item shift.opened is exist - process it [16:16:37]req_shift_opened [16:16:37]FM_GetShiftState [16:16:37]SAM_PROTO_GetShiftState [16:16:37]wFMCommunicate request_size=4 [16:16:37]MH_SAM_APDU [16:16:37]CAPDU: 80 13 01 00 [16:16:37]Write to MH i2c: E2 08 00 50 17 80 13 01 00 00 00 00 00 E4 [16:16:37]Write i2c OK [16:16:37]MH_I2C_Read... [16:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:37]Read from MH i2c: E2 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 0E 00 [16:16:37]MH_I2C_Read... [16:16:37]Read from MH i2c: E2 0E 00 50 17 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 76 [16:16:37]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [16:16:37]wFMCommunicate OK [16:16:37]SAM_PROTO_GetShiftState done [16:16:37]FM_GetShiftState done [16:16:37]req_shift_opened done [16:16:37]requested_item shift.open_date is exist - process it [16:16:37]req_shift_open_date [16:16:37]req_shift_open_date done [16:16:37]produce_requested_data done [16:16:37]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69797,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [16:16:37]process_action_free get_value [16:16:37]json_value_free [16:16:37]json_value_free done [16:16:37]process_json_proto returns [16:16:37]Send response to host [16:16:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69797,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [16:16:37]free response buf [16:16:37]execute_script done [16:16:37]execute_script returns [16:16:37]free content buf [16:16:37]Sock 7.Close socket [16:16:37]Sock 7.Thread stoped [16:16:37]accept exits with 10 [16:16:37]New connection [16:16:37]New thread 3066486116 created [16:16:37]Thread 3066629476 joined [16:16:37]Waiting for new connection... [16:16:37] Sock 10.Parse request [16:16:37]Sock 10.Check first char [16:16:37]Sock 10.First char is OK [16:16:37]request: POST /json_proto HTTP/1.0 [16:16:37]Method: POST [16:16:37]URL: /json_proto [16:16:37]Method is POST - this is cgi request [16:16:37]url: /json_proto [16:16:37]query_string will be loaded in cgi processing [16:16:37]execute_cgi json_proto POST (null) [16:16:37]execute_cgi path=json_proto method=POST [16:16:37]POST find Content-Length [16:16:37]Host: 172.17.52.196:8080 [16:16:37]Content-Length: 331 [16:16:37]Content-Type: application/json [16:16:37] [16:16:37]POST finish read [16:16:37]Found Content-Length = 331 [16:16:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:16:37]execute_script... [16:16:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:16:37]POST & json_proto [16:16:37]process_json_proto [16:16:37]json parsed OK: [16:16:37]protocol is kg_v1.0 [16:16:37]action value=get_value [16:16:37]process_action get_value [16:16:37]cmd_get_value [16:16:37]process_action get_value done [16:16:37]requested_data is exist [16:16:37]produce_requested_data [16:16:38]requested_item fm.sale.total is exist - process it [16:16:38]SAM_PROTO_GetFMData [16:16:38]wFMCommunicate request_size=4 [16:16:38]MH_SAM_APDU [16:16:38]CAPDU: 80 13 03 00 [16:16:38]Write to MH i2c: E2 08 00 51 17 80 13 03 00 00 00 00 00 E7 [16:16:38]OFD Sender: No OFD packet to send [16:16:38]Write i2c OK [16:16:38]MH_I2C_Read... [16:16:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:16:38]Read from MH i2c: E2 [16:16:38]MH_I2C_Read... [16:16:38]Read from MH i2c: E2 FD 00 [16:16:38]MH_I2C_Read... [16:16:38]Read from MH i2c: E2 FD 00 51 17 00 C3 04 85 04 BF 04 6E 04 04 00 89 0C 01 00 69 04 A1 00 6F 04 04 00 2B 0C 01 00 B1 04 04 00 1F 24 82 78 70 04 04 00 DC 42 97 67 72 04 04 00 43 E1 EA 10 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 98 9F CC 0C 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 69 F0 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 92 [16:16:38]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 89 0C 01 00 69 04 A1 00 6F 04 04 00 2B 0C 01 00 B1 04 04 00 1F 24 82 78 70 04 04 00 DC 42 97 67 72 04 04 00 43 E1 EA 10 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 98 9F CC 0C 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 69 F0 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [16:16:38]wFMCommunicate OK [16:16:38]wFMCommunicate request_size=4 [16:16:38]MH_SAM_APDU [16:16:38]CAPDU: 80 17 00 00 [16:16:38]Write to MH i2c: E2 08 00 52 17 80 17 00 00 00 00 00 00 E9 [16:16:38]Write i2c OK [16:16:38]MH_I2C_Read... [16:16:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:16:38]Read from MH i2c: E2 [16:16:38]MH_I2C_Read... [16:16:38]Read from MH i2c: E2 FD 00 [16:16:38]MH_I2C_Read... [16:16:38]Read from MH i2c: E2 FD 00 52 17 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 ED [16:16:38]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [16:16:38]wFMCommunicate OK [16:16:38]wFMCommunicate request_size=4 [16:16:38]MH_SAM_APDU [16:16:38]CAPDU: 80 17 00 00 [16:16:38]Write to MH i2c: E2 08 00 53 17 80 17 00 00 00 00 00 00 EA [16:16:38]Write i2c OK [16:16:38]MH_I2C_Read... [16:16:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:16:39]Read from MH i2c: E2 [16:16:39]MH_I2C_Read... [16:16:39]Read from MH i2c: E2 FD 00 [16:16:39]MH_I2C_Read... [16:16:39]Read from MH i2c: E2 FD 00 53 17 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 08 [16:16:39]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [16:16:39]wFMCommunicate OK [16:16:39]wFMCommunicate request_size=4 [16:16:39]MH_SAM_APDU [16:16:39]CAPDU: 80 17 00 00 [16:16:39]Write to MH i2c: E2 08 00 54 17 80 17 00 00 00 00 00 00 EB [16:16:39]Write i2c OK [16:16:39]MH_I2C_Read... [16:16:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:16:39]Read from MH i2c: E2 [16:16:39]MH_I2C_Read... [16:16:39]Read from MH i2c: E2 FD 00 [16:16:39]MH_I2C_Read... [16:16:39]Read from MH i2c: E2 FD 00 54 17 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5D [16:16:39]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:16:39]wFMCommunicate OK [16:16:39]wFMCommunicate request_size=4 [16:16:39]MH_SAM_APDU [16:16:39]CAPDU: 80 17 00 00 [16:16:39]Write to MH i2c: E2 08 00 55 17 80 17 00 00 00 00 00 00 EC [16:16:39]Write i2c OK [16:16:39]MH_I2C_Read... [16:16:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [16:16:39]Read from MH i2c: E2 [16:16:39]MH_I2C_Read... [16:16:39]Read from MH i2c: E2 E0 00 [16:16:39]MH_I2C_Read... [16:16:39]Read from MH i2c: E2 E0 00 55 17 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D6 [16:16:39]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:16:39]wFMCommunicate OK [16:16:39]SAM_PROTO_GetFMData done [16:16:39]requested_item fm.sale_refund.total is exist - process it [16:16:39]requested_item fm.buy.total is exist - process it [16:16:39]requested_item shift.sale.total is exist - process it [16:16:39]SAM_PROTO_GetShiftData [16:16:39]wFMCommunicate request_size=4 [16:16:39]MH_SAM_APDU [16:16:39]CAPDU: 80 13 02 00 [16:16:39]Write to MH i2c: E2 08 00 56 17 80 13 02 00 00 00 00 00 EB [16:16:39]Write i2c OK [16:16:39]MH_I2C_Read... [16:16:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:16:40]Read from MH i2c: E2 [16:16:40]MH_I2C_Read... [16:16:40]Read from MH i2c: E2 FD 00 [16:16:40]MH_I2C_Read... [16:16:40]Read from MH i2c: E2 FD 00 56 17 00 AE 04 AA 04 AA 04 6E 04 04 00 57 00 00 00 69 04 9B 00 6F 04 04 00 57 00 00 00 B1 04 03 00 7F B4 25 70 04 03 00 F0 C0 1C 72 04 03 00 8F F3 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 01 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 64 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 CD [16:16:40]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 57 00 00 00 69 04 9B 00 6F 04 04 00 57 00 00 00 B1 04 03 00 7F B4 25 70 04 03 00 F0 C0 1C 72 04 03 00 8F F3 08 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 07 01 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 64 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [16:16:40]wFMCommunicate OK [16:16:40]wFMCommunicate request_size=4 [16:16:40]MH_SAM_APDU [16:16:40]CAPDU: 80 17 00 00 [16:16:40]Write to MH i2c: E2 08 00 57 17 80 17 00 00 00 00 00 00 EE [16:16:40]Write i2c OK [16:16:40]MH_I2C_Read... [16:16:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:16:40]Read from MH i2c: E2 [16:16:40]MH_I2C_Read... [16:16:40]Read from MH i2c: E2 FD 00 [16:16:40]MH_I2C_Read... [16:16:40]Read from MH i2c: E2 FD 00 57 17 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 10 [16:16:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [16:16:40]wFMCommunicate OK [16:16:40]wFMCommunicate request_size=4 [16:16:40]MH_SAM_APDU [16:16:40]CAPDU: 80 17 00 00 [16:16:40]Write to MH i2c: E2 08 00 58 17 80 17 00 00 00 00 00 00 EF [16:16:40]Write i2c OK [16:16:40]MH_I2C_Read... [16:16:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:16:40]Read from MH i2c: E2 [16:16:40]MH_I2C_Read... [16:16:40]Read from MH i2c: E2 FD 00 [16:16:40]MH_I2C_Read... [16:16:40]Read from MH i2c: E2 FD 00 58 17 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 A6 [16:16:40]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [16:16:40]wFMCommunicate OK [16:16:40]wFMCommunicate request_size=4 [16:16:40]MH_SAM_APDU [16:16:40]CAPDU: 80 17 00 00 [16:16:40]Write to MH i2c: E2 08 00 59 17 80 17 00 00 00 00 00 00 F0 [16:16:40]Write i2c OK [16:16:40]MH_I2C_Read... [16:16:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:16:40]Read from MH i2c: E2 [16:16:40]MH_I2C_Read... [16:16:40]Read from MH i2c: E2 FD 00 [16:16:40]MH_I2C_Read... [16:16:40]Read from MH i2c: E2 FD 00 59 17 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 62 [16:16:40]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [16:16:40]wFMCommunicate OK [16:16:40]wFMCommunicate request_size=4 [16:16:40]MH_SAM_APDU [16:16:40]CAPDU: 80 17 00 00 [16:16:40]Write to MH i2c: E2 08 00 5A 17 80 17 00 00 00 00 00 00 F1 [16:16:40]Write i2c OK [16:16:40]MH_I2C_Read... [16:16:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [16:16:41]Read from MH i2c: E2 [16:16:41]MH_I2C_Read... [16:16:41]Read from MH i2c: E2 CB 00 [16:16:41]MH_I2C_Read... [16:16:41]Read from MH i2c: E2 CB 00 5A 17 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DA [16:16:41]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:16:41]wFMCommunicate OK [16:16:41]SAM_PROTO_GetShiftData done [16:16:41]requested_item shift.sale.total_cash is exist - process it [16:16:41]requested_item shift.sale_refund.total is exist - process it [16:16:41]requested_item shift.sale_refund.total_cash is exist - process it [16:16:41]requested_item shift.buy.total is exist - process it [16:16:41]requested_item shift.buy.total_cash is exist - process it [16:16:41]produce_requested_data done [16:16:41]produce_requested_data return {"fm.sale.total":20217948.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":24710.39,"shift.sale.total_cash":18844.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} [16:16:41]process_action_free get_value [16:16:41]json_value_free [16:16:41]json_value_free done [16:16:41]process_json_proto returns [16:16:41]Send response to host [16:16:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20217948.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":24710.39,"shift.sale.total_cash":18844.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}}} [16:16:41]free response buf [16:16:41]execute_script done [16:16:41]execute_script returns [16:16:41]free content buf [16:16:41]Sock 10.Close socket [16:16:41]Sock 10.Thread stoped [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:53]OFD Sender: No OFD packet to send [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:48]OFD Sender: No OFD packet to send [16:31:53]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:23]OFD Sender: No OFD packet to send [16:32:28]OFD Sender: No OFD packet to send [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]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:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]OFD Sender: No OFD packet to send [17:02:50]OFD Sender: No OFD packet to send [17:02:55]OFD Sender: No OFD packet to send [17:03:00]OFD Sender: No OFD packet to send [17:03:05]OFD Sender: No OFD packet to send [17:03:10]OFD Sender: No OFD packet to send [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:08]accept exits with 7 [17:07:08]New connection [17:07:08]New thread 3066629476 created [17:07:08]Thread 3066486116 joined [17:07:08]Waiting for new connection... [17:07:08] Sock 7.Parse request [17:07:08]Sock 7.Check first char [17:07:08]Sock 7.First char is OK [17:07:08]request: POST /json_proto HTTP/1.0 [17:07:08]Method: POST [17:07:08]URL: /json_proto [17:07:08]Method is POST - this is cgi request [17:07:08]url: /json_proto [17:07:08]query_string will be loaded in cgi processing [17:07:08]execute_cgi json_proto POST (null) [17:07:08]execute_cgi path=json_proto method=POST [17:07:08]POST find Content-Length [17:07:08]Host: 172.17.52.196:8080 [17:07:08]Content-Length: 645 [17:07:08]Content-Type: application/json [17:07:08] [17:07:08]POST finish read [17:07:08]Found Content-Length = 645 [17:07:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127196", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:08]execute_script... [17:07:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127196", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:08]POST & json_proto [17:07:08]process_json_proto [17:07:08]json parsed OK: [17:07:08]protocol is kg_v1.0 [17:07:08]action value=close_receipt [17:07:08]process_action close_receipt [17:07:08]cmd_close_receipt [17:07:08]MH_GetDate [17:07:08]Write to MH i2c: F0 00 00 5B 17 61 [17:07:08]Write i2c OK [17:07:08]MH_I2C_Read... [17:07:08]Read from MH i2c: F0 [17:07:08]MH_I2C_Read... [17:07:08]Read from MH i2c: F0 09 00 [17:07:08]MH_I2C_Read... [17:07:08]Read from MH i2c: F0 09 00 5B 17 00 BF 38 15 67 60 05 E4 66 8C [17:07:08]GetLastDocTimeStamp 1729440612 [17:07:08]current date 1729444031 [17:07:08]FM_GetShiftState [17:07:08]SAM_PROTO_GetShiftState [17:07:08]wFMCommunicate request_size=4 [17:07:08]MH_SAM_APDU [17:07:08]CAPDU: 80 13 01 00 [17:07:08]Write to MH i2c: E2 08 00 5C 17 80 13 01 00 00 00 00 00 F0 [17:07:08]Write i2c OK [17:07:08]MH_I2C_Read... [17:07:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:08]Read from MH i2c: E2 [17:07:08]MH_I2C_Read... [17:07:08]Read from MH i2c: E2 0E 00 [17:07:08]MH_I2C_Read... [17:07:08]Read from MH i2c: E2 0E 00 5C 17 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 82 [17:07:08]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [17:07:08]wFMCommunicate OK [17:07:08]SAM_PROTO_GetShiftState done [17:07:08]FM_GetShiftState done [17:07:08]opened in 1729384380 [17:07:08]opened+sec_in_day 1729470780 [17:07:08]quantity*price = 6500 [17:07:08]sum+1 = 6501 [17:07:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 88 20.10.2024 17:07 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69798 ФПД: 44883526754509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170711&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69798&fm=44883526754509&tin=02508201610067®Number=0000000000091770&sum=6500 0 [17:07:09]StoreToDocumentArchive [17:07:09]shift 526 fd 69798 [17:07:09]save to /storage/0526/doc_00069798 [17:07:09]save last doc name /storage/0526/doc_00069798 to /storage/kkm_last_doc_name [17:07:09]save OK [17:07:09]Clear old archive folders... [17:07:09]ProcessDocumentItem done err = 0, tmpTLVsize=272 [17:07:09]tlvbuf is 009C90B0 [17:07:09]SAM_PROTO_ClearQueue [17:07:09]wFMCommunicate request_size=4 [17:07:09]MH_SAM_APDU [17:07:09]CAPDU: 80 09 00 00 [17:07:09]Write to MH i2c: E2 08 00 69 17 80 09 00 00 00 00 00 00 F2 [17:07:09]Write i2c OK [17:07:09]MH_I2C_Read... [17:07:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:09]Read from MH i2c: E2 [17:07:09]MH_I2C_Read... [17:07:09]Read from MH i2c: E2 03 00 [17:07:09]MH_I2C_Read... [17:07:09]Read from MH i2c: E2 03 00 69 17 00 90 00 F4 [17:07:09]RAPDU: 90 00 [17:07:09]wFMCommunicate OK [17:07:09]SAM_PROTO_ClearQueue done [17:07:09]KKMCreateOFDPacket [17:07:09]OFDProtocolAddRootSTLVToBuf [17:07:09]FM_MakeSignedData [17:07:09]FM_MakeSignedData [17:07:09]SAM_PROTO_SignData [17:07:09]wFMCommunicate request_size=4 [17:07:09]MH_SAM_APDU [17:07:09]CAPDU: 80 0D 01 02 [17:07:09]Write to MH i2c: E2 08 00 6A 17 80 0D 01 02 00 00 00 00 FA [17:07:09]Write i2c OK [17:07:09]MH_I2C_Read... [17:07:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:09]Read from MH i2c: E2 [17:07:09]MH_I2C_Read... [17:07:09]Read from MH i2c: E2 03 00 [17:07:09]MH_I2C_Read... [17:07:09]Read from MH i2c: E2 03 00 6A 17 00 90 00 F5 [17:07:09]RAPDU: 90 00 [17:07:09]wFMCommunicate OK [17:07:09]wFMCommunicate request_size=255 [17:07:09]MH_SAM_APDU [17:07:09]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 BF 38 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 [17:07:09]Write to MH i2c: E2 02 01 6B 17 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 BF 38 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 20 [17:07:09]Write i2c OK [17:07:09]MH_I2C_Read... [17:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:10]Read from MH i2c: E2 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: E2 03 00 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: E2 03 00 6B 17 00 90 00 F6 [17:07:10]RAPDU: 90 00 [17:07:10]wFMCommunicate OK [17:07:10]wFMCommunicate request_size=31 [17:07:10]MH_SAM_APDU [17:07:10]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 37 34 39 10 04 04 00 A6 10 01 00 35 04 06 00 28 D2 42 AB 20 CD [17:07:10]Write to MH i2c: E2 22 00 6C 17 80 0D 02 02 1A 00 30 30 38 37 31 37 34 39 10 04 04 00 A6 10 01 00 35 04 06 00 28 D2 42 AB 20 CD 00 00 B7 [17:07:10]Write i2c OK [17:07:10]MH_I2C_Read... [17:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:10]Read from MH i2c: E2 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: E2 03 00 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: E2 03 00 6C 17 00 90 00 F7 [17:07:10]RAPDU: 90 00 [17:07:10]wFMCommunicate OK [17:07:10]wFMCommunicate request_size=4 [17:07:10]MH_SAM_APDU [17:07:10]CAPDU: 80 0D 03 02 [17:07:10]Write to MH i2c: E2 08 00 6D 17 80 0D 03 02 00 00 00 00 FF [17:07:10]Write i2c OK [17:07:10]MH_I2C_Read... [17:07:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:10]Read from MH i2c: E2 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: E2 0B 00 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: E2 0B 00 6D 17 00 3A CB A3 5B 1D 4B 23 B0 90 00 3E [17:07:10]RAPDU: 3A CB A3 5B 1D 4B 23 B0 90 00 [17:07:10]wFMCommunicate OK [17:07:10]SAM_PROTO_SignData done [17:07:10]FM_MakeSignedData done [17:07:10]CreateOFDProtocolMessage [17:07:10]wFMCommunicate request_size=4 [17:07:10]MH_SAM_APDU [17:07:10]CAPDU: 80 11 00 00 [17:07:10]Write to MH i2c: E2 08 00 6E 17 80 11 00 00 00 00 00 00 FF [17:07:10]Write i2c OK [17:07:10]MH_I2C_Read... [17:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:10]Read from MH i2c: E2 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: E2 17 00 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: E2 17 00 6E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 56 [17:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [17:07:10]wFMCommunicate OK [17:07:10]CreateOFDProtocolMessage done [17:07:10]OFDSenderStorePacket 69798 [17:07:10]StoreOFDPacket docnum=69798 [17:07:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 A3 EA 1C 01 E2 6F 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 BF 38 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A6 10 01 00 35 04 06 00 28 D2 42 AB 20 CD 3A CB A3 5B 1D 4B 23 B0 [17:07:10]CheckFolder [17:07:10]dirname=/storage/ofd_packets [17:07:10]CheckFolder done [17:07:10]ProducePacketName [17:07:10]name=ofd_packets/00069798 [17:07:10]NVStorageSaveData ofd_packets/00069798 [17:07:10]File name is /storage/ofd_packets/00069798 [17:07:10]Write 322 bytes [17:07:10]NVStorageSaveData done [17:07:10]OFDSenderStorePacket done [17:07:10]KKMCreateOFDPacket done [17:07:10]NVStorageSaveData kkm_last_timestamp [17:07:10]File name is /storage/kkm_last_timestamp [17:07:10]Write 4 bytes [17:07:10]NVStorageSaveData done [17:07:10]ExternCall_PrintAddStr [17:07:10]wPrintStart [17:07:10]Write to MH i2c: 01 00 00 6F 17 86 [17:07:10]Write i2c OK [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: 01 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: 01 07 00 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: 01 07 00 6F 17 00 00 00 00 00 FF 0F 9B [17:07:10]RasterBufferAndPrint [17:07:10]line Счет N : (3)127196 [17:07:10]line ИНН: 02508201610067 [17:07:10]line Контрольно-Кассовый Чек [17:07:10]line ПРОДАЖА [17:07:10]line Товар: 47011656 [17:07:10]line Водка Пшеничная 0,1л [17:07:10]line 1.000 * 65.00 [17:07:10]line = 65.00 [17:07:10]line НДС 12% НСП 1% [17:07:10]line > о реализуемом товаре [17:07:10]line ИТОГО: 65.00 [17:07:10]line НСП 1% : 0.57 [17:07:10]line НДС 12% : 6.90 [17:07:10]line Наличными: 65.00 [17:07:10]line Безнал.: 0.00 [17:07:10]line Место: АЗС № 163 "Партнер Нефть" [17:07:10]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [17:07:10]line СНО: Общий режим [17:07:10]line Чек 88 20.10.2024 17:07 [17:07:10]line Смена: 526 ФФД: 1.0 [17:07:10]line ЗНМ: 0300000101 [17:07:10]line РНМ: 0000000000091770 [17:07:10]line Версия ККМ: 001 [17:07:10]line ФМ: 0000000000871749 [17:07:10]line ФД: 69798 [17:07:10]line ФПД: 44883526754509 [17:07:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T170711&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69798&fm=44883526754509&tin=02508201610067®Number=0000000000091770&sum=6500 [17:07:10]OFD Sender: Processing packet 69798 [packets to send 32, broken 31] [17:07:10]ProducePacketName [17:07:10]name=ofd_packets/00069798 [17:07:10]OFD Sender: To server: pG, [17:07:10]CommunicateWithHost lk.salyk.kg:30040 [17:07:10]ConnectInit lk.salyk.kg [17:07:10]line 0 [17:07:10]written 0, free lines is 4095 [17:07:10]Connected sock=10 [17:07:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 A3 EA 1C 01 E2 6F 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 BF 38 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A6 10 01 00 35 04 06 00 28 D2 42 AB 20 CD 3A CB A3 5B 1D 4B 23 B0 [17:07:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 00 16 47 00 A0 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A6 10 01 00 F4 03 04 00 41 DE 14 67 B6 04 01 00 00 2D 3B 7E 97 82 9A 79 63 [17:07:10]CommunicateWithHost err = 0 [17:07:10]CheckOFDResponse [17:07:10]1017 (14) - 77093643461234 [17:07:10]1041 (16) - 0000000000871749 [17:07:10]1040 (4) - 69798 [17:07:10]1012 (4) - 20.10.2024 10:41 [17:07:10]1206 (1) - 0 [17:07:10]OFD Sender: Remove packet 69798 [17:07:10]ProducePacketName [17:07:10]name=ofd_packets/00069798 [17:07:10]NVStorageDeleteData [17:07:11]Write to MH i2c: 01 00 00 97 17 AE [17:07:11]Write i2c OK [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: 01 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: 01 07 00 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: 01 07 00 97 17 00 00 00 00 00 04 0D C6 [17:07:11]RasterBufferAndPrint [17:07:11]line [17:07:11]line [17:07:11]line [17:07:11]line [17:07:11]line [17:07:11]written 0, free lines is 3338 [17:07:11]MH_Cut [17:07:11]Write to MH i2c: D1 01 00 9E 17 01 87 [17:07:11]Write i2c OK [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: D1 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: D1 01 00 [17:07:11]MH_I2C_Read... [17:07:11]Read from MH i2c: D1 01 00 9E 17 00 86 [17:07:11]Write to MH i2c: 01 00 00 9F 17 B6 [17:07:11]Write i2c OK [17:07:11]MH_I2C_Read... [17:07:11]OFD Sender: No OFD packet to send [17:07:11]*** Cut start [17:07:11]*** Partial cut [17:07:11]*** CUTSNS_PIN = 1 [17:07:11]*** CUTSNS_PIN = 0 [17:07:12]*** Brake cut motor [17:07:12]Read from MH i2c: 01 [17:07:12]MH_I2C_Read... [17:07:12]*** Stop cut motor [17:07:12]*** Cut end [17:07:12]Read from MH i2c: 01 07 00 [17:07:12]MH_I2C_Read... [17:07:12]Read from MH i2c: 01 07 00 9F 17 00 00 00 00 00 FF 0F CB [17:07:12]process_action close_receipt done [17:07:12]requested_data is exist [17:07:12]produce_requested_data [17:07:12]requested_item fm.sn is exist - process it [17:07:12]wFMCommunicate request_size=4 [17:07:12]MH_SAM_APDU [17:07:12]CAPDU: 80 11 00 00 [17:07:12]Write to MH i2c: E2 08 00 A0 17 80 11 00 00 00 00 00 00 31 [17:07:12]Write i2c OK [17:07:12]MH_I2C_Read... [17:07:12]Read from MH i2c: E2 [17:07:12]MH_I2C_Read... [17:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:12]Read from MH i2c: E2 17 00 [17:07:12]MH_I2C_Read... [17:07:12]Read from MH i2c: E2 17 00 A0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 88 [17:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [17:07:12]wFMCommunicate OK [17:07:12]requested_item fd.num is exist - process it [17:07:12]SAM_PROTO_GetFieldsCounters [17:07:12]wFMCommunicate request_size=4 [17:07:12]MH_SAM_APDU [17:07:12]CAPDU: 80 13 00 00 [17:07:12]Write to MH i2c: E2 08 00 A1 17 80 13 00 00 00 00 00 00 34 [17:07:12]Write i2c OK [17:07:12]MH_I2C_Read... [17:07:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:12]Read from MH i2c: E2 [17:07:12]MH_I2C_Read... [17:07:12]Read from MH i2c: E2 62 00 [17:07:12]MH_I2C_Read... [17:07:12]Read from MH i2c: E2 62 00 A1 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A6 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [17:07:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A6 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:12]wFMCommunicate OK [17:07:12]SAM_PROTO_GetFieldsCounters done [17:07:12]requested_item shift.num is exist - process it [17:07:12]requested_item shift.opened is exist - process it [17:07:12]req_shift_opened [17:07:12]FM_GetShiftState [17:07:12]SAM_PROTO_GetShiftState [17:07:12]wFMCommunicate request_size=4 [17:07:12]MH_SAM_APDU [17:07:12]CAPDU: 80 13 01 00 [17:07:12]Write to MH i2c: E2 08 00 A2 17 80 13 01 00 00 00 00 00 36 [17:07:12]Write i2c OK [17:07:12]MH_I2C_Read... [17:07:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:12]Read from MH i2c: E2 [17:07:12]MH_I2C_Read... [17:07:12]Read from MH i2c: E2 0E 00 [17:07:12]MH_I2C_Read... [17:07:12]Read from MH i2c: E2 0E 00 A2 17 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 C8 [17:07:12]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [17:07:12]wFMCommunicate OK [17:07:12]SAM_PROTO_GetShiftState done [17:07:12]FM_GetShiftState done [17:07:12]req_shift_opened done [17:07:12]requested_item shift.open_date is exist - process it [17:07:12]req_shift_open_date [17:07:12]req_shift_open_date done [17:07:12]produce_requested_data done [17:07:12]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69798,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [17:07:12]process_action_free close_receipt [17:07:12]json_value_free [17:07:12]json_value_free done [17:07:12]process_json_proto returns [17:07:12]Send response to host [17:07:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69798,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [17:07:12]free response buf [17:07:12]execute_script done [17:07:12]execute_script returns [17:07:12]free content buf [17:07:12]Sock 7.Close socket [17:07:12]Sock 7.Thread stoped [17:07:16]OFD Sender: No OFD packet to send [17:07:21]OFD Sender: No OFD packet to send [17:07:26]OFD Sender: No OFD packet to send [17:07:31]OFD Sender: No OFD packet to send [17:07:36]OFD Sender: No OFD packet to send [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:55]accept exits with 9 [17:19:55]New connection [17:19:55]New thread 3066486116 created [17:19:55]Thread 3066629476 joined [17:19:55]Waiting for new connection... [17:19:55] Sock 9.Parse request [17:19:55]Sock 9.Check first char [17:19:55]Sock 9.First char is OK [17:19:55]request: POST /json_proto HTTP/1.0 [17:19:55]Method: POST [17:19:55]URL: /json_proto [17:19:55]Method is POST - this is cgi request [17:19:55]url: /json_proto [17:19:55]query_string will be loaded in cgi processing [17:19:55]execute_cgi json_proto POST (null) [17:19:55]execute_cgi path=json_proto method=POST [17:19:55]POST find Content-Length [17:19:55]Host: 172.17.52.196:8080 [17:19:55]Content-Length: 630 [17:19:55]Content-Type: application/json [17:19:55] [17:19:55]POST finish read [17:19:55]Found Content-Length = 630 [17:19:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127197", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:55]execute_script... [17:19:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127197", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:55]POST & json_proto [17:19:55]process_json_proto [17:19:55]json parsed OK: [17:19:55]protocol is kg_v1.0 [17:19:55]action value=close_receipt [17:19:55]process_action close_receipt [17:19:55]cmd_close_receipt [17:19:55]MH_GetDate [17:19:55]Write to MH i2c: F0 00 00 A3 17 A9 [17:19:55]Write i2c OK [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: F0 [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: F0 09 00 [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: F0 09 00 A3 17 00 BE 3B 15 67 60 05 E4 66 D6 [17:19:55]GetLastDocTimeStamp 1729444031 [17:19:55]current date 1729444798 [17:19:55]FM_GetShiftState [17:19:55]SAM_PROTO_GetShiftState [17:19:55]wFMCommunicate request_size=4 [17:19:55]MH_SAM_APDU [17:19:55]CAPDU: 80 13 01 00 [17:19:55]Write to MH i2c: E2 08 00 A4 17 80 13 01 00 00 00 00 00 38 [17:19:55]Write i2c OK [17:19:55]MH_I2C_Read... [17:19:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:55]Read from MH i2c: E2 [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: E2 0E 00 [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: E2 0E 00 A4 17 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 CA [17:19:55]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [17:19:55]wFMCommunicate OK [17:19:55]SAM_PROTO_GetShiftState done [17:19:55]FM_GetShiftState done [17:19:55]opened in 1729384380 [17:19:55]opened+sec_in_day 1729470780 [17:19:55]quantity*price = 5000 [17:19:55]sum+1 = 5001 [17:19:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 89 20.10.2024 17:19 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69799 ФПД: 267755130748184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171958&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69799&fm=267755130748184&tin=02508201610067®Number=0000000000091770&sum=5000 0 [17:19:56]StoreToDocumentArchive [17:19:56]shift 526 fd 69799 [17:19:56]save to /storage/0526/doc_00069799 [17:19:56]save last doc name /storage/0526/doc_00069799 to /storage/kkm_last_doc_name [17:19:56]save OK [17:19:56]Clear old archive folders... [17:19:56]ProcessDocumentItem done err = 0, tmpTLVsize=269 [17:19:56]tlvbuf is 009C8960 [17:19:56]SAM_PROTO_ClearQueue [17:19:56]wFMCommunicate request_size=4 [17:19:56]MH_SAM_APDU [17:19:56]CAPDU: 80 09 00 00 [17:19:56]Write to MH i2c: E2 08 00 B1 17 80 09 00 00 00 00 00 00 3A [17:19:56]Write i2c OK [17:19:56]MH_I2C_Read... [17:19:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:56]Read from MH i2c: E2 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 03 00 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 03 00 B1 17 00 90 00 3C [17:19:56]RAPDU: 90 00 [17:19:56]wFMCommunicate OK [17:19:56]SAM_PROTO_ClearQueue done [17:19:56]KKMCreateOFDPacket [17:19:56]OFDProtocolAddRootSTLVToBuf [17:19:56]FM_MakeSignedData [17:19:56]FM_MakeSignedData [17:19:56]SAM_PROTO_SignData [17:19:56]wFMCommunicate request_size=4 [17:19:56]MH_SAM_APDU [17:19:56]CAPDU: 80 0D 01 02 [17:19:56]Write to MH i2c: E2 08 00 B2 17 80 0D 01 02 00 00 00 00 42 [17:19:56]Write i2c OK [17:19:56]MH_I2C_Read... [17:19:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:56]Read from MH i2c: E2 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 03 00 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 03 00 B2 17 00 90 00 3D [17:19:56]RAPDU: 90 00 [17:19:56]wFMCommunicate OK [17:19:56]wFMCommunicate request_size=255 [17:19:56]MH_SAM_APDU [17:19:56]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 BE 3B 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [17:19:56]Write to MH i2c: E2 02 01 B3 17 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 BE 3B 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 36 [17:19:56]Write i2c OK [17:19:56]MH_I2C_Read... [17:19:57]OFD Sender: No OFD packet to send [17:19:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:57]Read from MH i2c: E2 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 03 00 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 03 00 B3 17 00 90 00 3E [17:19:57]RAPDU: 90 00 [17:19:57]wFMCommunicate OK [17:19:57]wFMCommunicate request_size=28 [17:19:57]MH_SAM_APDU [17:19:57]CAPDU: 80 0D 02 02 17 37 31 37 34 39 10 04 04 00 A7 10 01 00 35 04 06 00 F3 85 99 74 7D 18 [17:19:57]Write to MH i2c: E2 1F 00 B4 17 80 0D 02 02 17 00 37 31 37 34 39 10 04 04 00 A7 10 01 00 35 04 06 00 F3 85 99 74 7D 18 00 00 A8 [17:19:57]Write i2c OK [17:19:57]MH_I2C_Read... [17:19:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:57]Read from MH i2c: E2 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 03 00 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 03 00 B4 17 00 90 00 3F [17:19:57]RAPDU: 90 00 [17:19:57]wFMCommunicate OK [17:19:57]wFMCommunicate request_size=4 [17:19:57]MH_SAM_APDU [17:19:57]CAPDU: 80 0D 03 02 [17:19:57]Write to MH i2c: E2 08 00 B5 17 80 0D 03 02 00 00 00 00 47 [17:19:57]Write i2c OK [17:19:57]MH_I2C_Read... [17:19:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:57]Read from MH i2c: E2 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 0B 00 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 0B 00 B5 17 00 9B CE 79 B2 4B E4 75 D5 90 00 55 [17:19:57]RAPDU: 9B CE 79 B2 4B E4 75 D5 90 00 [17:19:57]wFMCommunicate OK [17:19:57]SAM_PROTO_SignData done [17:19:57]FM_MakeSignedData done [17:19:57]CreateOFDProtocolMessage [17:19:57]wFMCommunicate request_size=4 [17:19:57]MH_SAM_APDU [17:19:57]CAPDU: 80 11 00 00 [17:19:57]Write to MH i2c: E2 08 00 B6 17 80 11 00 00 00 00 00 00 47 [17:19:57]Write i2c OK [17:19:57]MH_I2C_Read... [17:19:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:57]Read from MH i2c: E2 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 17 00 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: E2 17 00 B6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 9E [17:19:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [17:19:57]wFMCommunicate OK [17:19:57]CreateOFDProtocolMessage done [17:19:57]OFDSenderStorePacket 69799 [17:19:57]StoreOFDPacket docnum=69799 [17:19:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 21 01 00 00 0B FC 19 01 B2 E2 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 BE 3B 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A7 10 01 00 35 04 06 00 F3 85 99 74 7D 18 9B CE 79 B2 4B E4 75 D5 [17:19:57]CheckFolder [17:19:57]dirname=/storage/ofd_packets [17:19:57]CheckFolder done [17:19:57]ProducePacketName [17:19:57]name=ofd_packets/00069799 [17:19:57]NVStorageSaveData ofd_packets/00069799 [17:19:57]File name is /storage/ofd_packets/00069799 [17:19:57]Write 319 bytes [17:19:57]NVStorageSaveData done [17:19:57]OFDSenderStorePacket done [17:19:57]KKMCreateOFDPacket done [17:19:57]NVStorageSaveData kkm_last_timestamp [17:19:57]File name is /storage/kkm_last_timestamp [17:19:57]Write 4 bytes [17:19:57]NVStorageSaveData done [17:19:57]ExternCall_PrintAddStr [17:19:57]wPrintStart [17:19:57]Write to MH i2c: 01 00 00 B7 17 CE [17:19:57]Write i2c OK [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: 01 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: 01 07 00 [17:19:57]MH_I2C_Read... [17:19:57]Read from MH i2c: 01 07 00 B7 17 00 00 00 00 00 FF 0F E3 [17:19:57]RasterBufferAndPrint [17:19:57]line Счет N : (3)127197 [17:19:57]line ИНН: 02508201610067 [17:19:57]line Контрольно-Кассовый Чек [17:19:57]line ПРОДАЖА [17:19:57]line Товар: 4700000160358 [17:19:57]line Вода Легенда 1л [17:19:57]line 1.000 * 50.00 [17:19:57]line = 50.00 [17:19:57]line НДС 12% НСП 1% [17:19:57]line > о реализуемом товаре [17:19:57]line ИТОГО: 50.00 [17:19:57]line НСП 1% : 0.44 [17:19:57]line НДС 12% : 5.31 [17:19:57]line Наличными: 50.00 [17:19:57]line Безнал.: 0.00 [17:19:57]line Место: АЗС № 163 "Партнер Нефть" [17:19:57]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [17:19:57]line СНО: Общий режим [17:19:57]line Чек 89 20.10.2024 17:19 [17:19:57]line Смена: 526 ФФД: 1.0 [17:19:57]line ЗНМ: 0300000101 [17:19:57]line РНМ: 0000000000091770 [17:19:57]line Версия ККМ: 001 [17:19:57]line ФМ: 0000000000871749 [17:19:57]line ФД: 69799 [17:19:57]line ФПД: 267755130748184 [17:19:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T171958&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69799&fm=267755130748184&tin=02508201610067®Number=0000000000091770&sum=5000 [17:19:57]line 0 [17:19:57]OFD Sender: Processing packet 69799 [packets to send 32, broken 31] [17:19:57]ProducePacketName [17:19:57]name=ofd_packets/00069799 [17:19:57]OFD Sender: To server: pG, [17:19:57]CommunicateWithHost lk.salyk.kg:30040 [17:19:57]ConnectInit lk.salyk.kg [17:19:57]written 0, free lines is 4095 [17:19:57]Connected sock=10 [17:19:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 21 01 00 00 0B FC 19 01 B2 E2 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 BE 3B 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A7 10 01 00 35 04 06 00 F3 85 99 74 7D 18 9B CE 79 B2 4B E4 75 D5 [17:19:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 AA B9 47 00 1B 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A7 10 01 00 F4 03 04 00 40 E1 14 67 B6 04 01 00 00 59 E2 7D 31 06 D9 C6 C5 [17:19:57]CommunicateWithHost err = 0 [17:19:57]CheckOFDResponse [17:19:57]1017 (14) - 77093643461234 [17:19:57]1041 (16) - 0000000000871749 [17:19:57]1040 (4) - 69799 [17:19:57]1012 (4) - 20.10.2024 10:53 [17:19:57]1206 (1) - 0 [17:19:57]OFD Sender: Remove packet 69799 [17:19:57]ProducePacketName [17:19:57]name=ofd_packets/00069799 [17:19:57]NVStorageDeleteData [17:19:58]Write to MH i2c: 01 00 00 DF 17 F6 [17:19:58]Write i2c OK [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: 01 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: 01 07 00 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: 01 07 00 DF 17 00 00 00 00 00 02 0D 0C [17:19:58]RasterBufferAndPrint [17:19:58]line [17:19:58]line [17:19:58]line [17:19:58]line [17:19:58]line [17:19:58]written 0, free lines is 3336 [17:19:58]MH_Cut [17:19:58]Write to MH i2c: D1 01 00 E6 17 01 CF [17:19:58]Write i2c OK [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: D1 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: D1 01 00 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: D1 01 00 E6 17 00 CE [17:19:58]Write to MH i2c: 01 00 00 E7 17 FE [17:19:58]Write i2c OK [17:19:58]MH_I2C_Read... [17:19:58]OFD Sender: No OFD packet to send [17:19:58]*** Cut start [17:19:58]*** Partial cut [17:19:58]*** CUTSNS_PIN = 1 [17:19:58]*** CUTSNS_PIN = 0 [17:19:59]*** Brake cut motor [17:19:59]Read from MH i2c: 01 [17:19:59]MH_I2C_Read... [17:19:59]*** Stop cut motor [17:19:59]*** Cut end [17:19:59]Read from MH i2c: 01 07 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: 01 07 00 E7 17 00 00 00 00 00 FF 0F 13 [17:19:59]process_action close_receipt done [17:19:59]requested_data is exist [17:19:59]produce_requested_data [17:19:59]requested_item fm.sn is exist - process it [17:19:59]wFMCommunicate request_size=4 [17:19:59]MH_SAM_APDU [17:19:59]CAPDU: 80 11 00 00 [17:19:59]Write to MH i2c: E2 08 00 E8 17 80 11 00 00 00 00 00 00 79 [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:59]Read from MH i2c: E2 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 17 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 17 00 E8 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 D0 [17:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [17:19:59]wFMCommunicate OK [17:19:59]requested_item fd.num is exist - process it [17:19:59]SAM_PROTO_GetFieldsCounters [17:19:59]wFMCommunicate request_size=4 [17:19:59]MH_SAM_APDU [17:19:59]CAPDU: 80 13 00 00 [17:19:59]Write to MH i2c: E2 08 00 E9 17 80 13 00 00 00 00 00 00 7C [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:59]Read from MH i2c: E2 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 62 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 62 00 E9 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A7 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [17:19: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A7 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:59]wFMCommunicate OK [17:19:59]SAM_PROTO_GetFieldsCounters done [17:19:59]requested_item shift.num is exist - process it [17:19:59]requested_item shift.opened is exist - process it [17:19:59]req_shift_opened [17:19:59]FM_GetShiftState [17:19:59]SAM_PROTO_GetShiftState [17:19:59]wFMCommunicate request_size=4 [17:19:59]MH_SAM_APDU [17:19:59]CAPDU: 80 13 01 00 [17:19:59]Write to MH i2c: E2 08 00 EA 17 80 13 01 00 00 00 00 00 7E [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 [17:19:59]MH_I2C_Read... [17:19:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:59]Read from MH i2c: E2 0E 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 0E 00 EA 17 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 10 [17:19:59]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [17:19:59]wFMCommunicate OK [17:19:59]SAM_PROTO_GetShiftState done [17:19:59]FM_GetShiftState done [17:19:59]req_shift_opened done [17:19:59]requested_item shift.open_date is exist - process it [17:19:59]req_shift_open_date [17:19:59]req_shift_open_date done [17:19:59]produce_requested_data done [17:19:59]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69799,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [17:19:59]process_action_free close_receipt [17:19:59]json_value_free [17:19:59]json_value_free done [17:19:59]process_json_proto returns [17:19:59]Send response to host [17:19:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69799,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [17:19:59]free response buf [17:19:59]execute_script done [17:19:59]execute_script returns [17:19:59]free content buf [17:19:59]Sock 9.Close socket [17:19:59]Sock 9.Thread stoped [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:38]accept exits with 7 [17:20:38]New connection [17:20:38]New thread 3066629476 created [17:20:38]Thread 3066486116 joined [17:20:38]Waiting for new connection... [17:20:38] Sock 7.Parse request [17:20:38]Sock 7.Check first char [17:20:38]Sock 7.First char is OK [17:20:38]request: POST /json_proto HTTP/1.0 [17:20:38]Method: POST [17:20:38]URL: /json_proto [17:20:38]Method is POST - this is cgi request [17:20:38]url: /json_proto [17:20:38]query_string will be loaded in cgi processing [17:20:38]execute_cgi json_proto POST (null) [17:20:38]execute_cgi path=json_proto method=POST [17:20:38]POST find Content-Length [17:20:38]Host: 172.17.52.196:8080 [17:20:38]Content-Length: 870 [17:20:38]Content-Type: application/json [17:20:38] [17:20:38]POST finish read [17:20:38]Found Content-Length = 870 [17:20:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127198", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:38]execute_script... [17:20:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127198", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:38]POST & json_proto [17:20:38]process_json_proto [17:20:38]json parsed OK: [17:20:38]protocol is kg_v1.0 [17:20:38]action value=close_receipt [17:20:38]process_action close_receipt [17:20:38]cmd_close_receipt [17:20:38]MH_GetDate [17:20:38]Write to MH i2c: F0 00 00 EB 17 F1 [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: F0 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: F0 09 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: F0 09 00 EB 17 00 E9 3B 15 67 60 05 E4 66 49 [17:20:38]GetLastDocTimeStamp 1729444798 [17:20:38]current date 1729444841 [17:20:38]FM_GetShiftState [17:20:38]SAM_PROTO_GetShiftState [17:20:38]wFMCommunicate request_size=4 [17:20:38]MH_SAM_APDU [17:20:38]CAPDU: 80 13 01 00 [17:20:38]Write to MH i2c: E2 08 00 EC 17 80 13 01 00 00 00 00 00 80 [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:38]Read from MH i2c: E2 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 0E 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 0E 00 EC 17 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 12 [17:20:38]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [17:20:38]wFMCommunicate OK [17:20:38]SAM_PROTO_GetShiftState done [17:20:38]FM_GetShiftState done [17:20:38]opened in 1729384380 [17:20:38]opened+sec_in_day 1729470780 [17:20:38]quantity*price = 14400 [17:20:38]sum+1 = 14401 [17:20:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 194.00 НСП 1% : 1.71 НДС 12% : 20.60 Наличными: 194.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 90 20.10.2024 17:20 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69800 ФПД: 160057864482041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172041&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69800&fm=160057864482041&tin=02508201610067®Number=0000000000091770&sum=19400 0 [17:20:39]StoreToDocumentArchive [17:20:39]shift 526 fd 69800 [17:20:39]save to /storage/0526/doc_00069800 [17:20:39]save last doc name /storage/0526/doc_00069800 to /storage/kkm_last_doc_name [17:20:39]save OK [17:20:39]Clear old archive folders... [17:20:39]ProcessDocumentItem done err = 0, tmpTLVsize=374 [17:20:39]tlvbuf is 009C8560 [17:20:39]SAM_PROTO_ClearQueue [17:20:39]wFMCommunicate request_size=4 [17:20:39]MH_SAM_APDU [17:20:39]CAPDU: 80 09 00 00 [17:20:39]Write to MH i2c: E2 08 00 F9 17 80 09 00 00 00 00 00 00 82 [17:20:39]Write i2c OK [17:20:39]MH_I2C_Read... [17:20:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:39]Read from MH i2c: E2 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 03 00 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 03 00 F9 17 00 90 00 84 [17:20:39]RAPDU: 90 00 [17:20:39]wFMCommunicate OK [17:20:39]SAM_PROTO_ClearQueue done [17:20:39]KKMCreateOFDPacket [17:20:39]OFDProtocolAddRootSTLVToBuf [17:20:39]FM_MakeSignedData [17:20:39]FM_MakeSignedData [17:20:39]SAM_PROTO_SignData [17:20:39]wFMCommunicate request_size=4 [17:20:39]MH_SAM_APDU [17:20:39]CAPDU: 80 0D 01 02 [17:20:39]Write to MH i2c: E2 08 00 FA 17 80 0D 01 02 00 00 00 00 8A [17:20:39]Write i2c OK [17:20:39]MH_I2C_Read... [17:20:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:39]Read from MH i2c: E2 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 03 00 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 03 00 FA 17 00 90 00 85 [17:20:39]RAPDU: 90 00 [17:20:39]wFMCommunicate OK [17:20:39]wFMCommunicate request_size=255 [17:20:39]MH_SAM_APDU [17:20:39]CAPDU: 80 0D 02 02 FA 03 00 76 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 [17:20:39]Write to MH i2c: E2 02 01 FB 17 80 0D 02 02 FA 00 03 00 76 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 00 00 2E [17:20:39]Write i2c OK [17:20:39]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 03 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 03 00 FB 17 00 90 00 86 [17:20:40]RAPDU: 90 00 [17:20:40]wFMCommunicate OK [17:20:40]wFMCommunicate request_size=133 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 E9 3B 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A8 10 01 00 35 04 06 00 91 92 60 27 EC F9 [17:20:40]Write to MH i2c: E2 88 00 FC 17 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 E9 3B 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A8 10 01 00 35 04 06 00 91 92 60 27 EC F9 00 00 36 [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 03 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 03 00 FC 17 00 90 00 87 [17:20:40]RAPDU: 90 00 [17:20:40]wFMCommunicate OK [17:20:40]wFMCommunicate request_size=4 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 0D 03 02 [17:20:40]Write to MH i2c: E2 08 00 FD 17 80 0D 03 02 00 00 00 00 8F [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 0B 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 0B 00 FD 17 00 73 5D 58 B4 43 66 BB 44 90 00 14 [17:20:40]RAPDU: 73 5D 58 B4 43 66 BB 44 90 00 [17:20:40]wFMCommunicate OK [17:20:40]SAM_PROTO_SignData done [17:20:40]FM_MakeSignedData done [17:20:40]CreateOFDProtocolMessage [17:20:40]wFMCommunicate request_size=4 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 11 00 00 [17:20:40]Write to MH i2c: E2 08 00 FE 17 80 11 00 00 00 00 00 00 8F [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 17 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 17 00 FE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 E6 [17:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [17:20:40]wFMCommunicate OK [17:20:40]CreateOFDProtocolMessage done [17:20:40]OFDSenderStorePacket 69800 [17:20:40]StoreOFDPacket docnum=69800 [17:20:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 8A 01 00 00 66 A3 82 01 EA 05 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 E9 3B 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A8 10 01 00 35 04 06 00 91 92 60 27 EC F9 73 5D 58 B4 43 66 BB 44 [17:20:40]CheckFolder [17:20:40]dirname=/storage/ofd_packets [17:20:40]CheckFolder done [17:20:40]ProducePacketName [17:20:40]name=ofd_packets/00069800 [17:20:40]NVStorageSaveData ofd_packets/00069800 [17:20:40]File name is /storage/ofd_packets/00069800 [17:20:40]Write 424 bytes [17:20:40]NVStorageSaveData done [17:20:40]OFDSenderStorePacket done [17:20:40]KKMCreateOFDPacket done [17:20:40]NVStorageSaveData kkm_last_timestamp [17:20:40]File name is /storage/kkm_last_timestamp [17:20:40]Write 4 bytes [17:20:40]NVStorageSaveData done [17:20:40]ExternCall_PrintAddStr [17:20:40]wPrintStart [17:20:40]Write to MH i2c: 01 00 00 FF 17 16 [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: 01 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: 01 07 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: 01 07 00 FF 17 00 00 00 00 00 FF 0F 2B [17:20:40]RasterBufferAndPrint [17:20:40]line Счет N : (3)127198 [17:20:40]line ИНН: 02508201610067 [17:20:40]line Контрольно-Кассовый Чек [17:20:40]line ПРОДАЖА [17:20:40]line Товар: 48743587 [17:20:40]line Сигареты Winston XStyle Silver [17:20:40]line 1.000 * 144.00 [17:20:40]line = 144.00 [17:20:40]line НДС 12% НСП 1% [17:20:40]line > о реализуемом товаре [17:20:40]line Товар: 4700000160358 [17:20:40]line Вода Легенда 1л [17:20:40]line 1.000 * 50.00 [17:20:40]line = 50.00 [17:20:40]line НДС 12% НСП 1% [17:20:40]line > о реализуемом товаре [17:20:40]line ИТОГО: 194.00 [17:20:40]line НСП 1% : 1.71 [17:20:40]line НДС 12% : 20.60 [17:20:40]line Наличными: 194.00 [17:20:40]line Безнал.: 0.00 [17:20:40]line Место: АЗС № 163 "Партнер Нефть" [17:20:40]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [17:20:40]line СНО: Общий режим [17:20:40]line Чек 90 20.10.2024 17:20 [17:20:40]line Смена: 526 ФФД: 1.0 [17:20:40]line ЗНМ: 0300000101 [17:20:40]line РНМ: 0000000000091770 [17:20:40]line Версия ККМ: 001 [17:20:40]line ФМ: 0000000000871749 [17:20:40]line ФД: 69800 [17:20:40]line ФПД: 160057864482041 [17:20:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T172041&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69800&fm=160057864482041&tin=02508201610067®Number=0000000000091770&sum=19400 [17:20:40]line 0 [17:20:40]OFD Sender: Processing packet 69800 [packets to send 32, broken 31] [17:20:40]ProducePacketName [17:20:40]name=ofd_packets/00069800 [17:20:40]OFD Sender: To server: pG, [17:20:40]CommunicateWithHost lk.salyk.kg:30040 [17:20:40]ConnectInit lk.salyk.kg [17:20:40]written 0, free lines is 4095 [17:20:40]Connected sock=10 [17:20:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 8A 01 00 00 66 A3 82 01 EA 05 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 E9 3B 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A8 10 01 00 35 04 06 00 91 92 60 27 EC F9 73 5D 58 B4 43 66 BB 44 [17:20:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 C3 DF 47 00 EB BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A8 10 01 00 F4 03 04 00 6C E1 14 67 B6 04 01 00 00 B1 13 60 E5 21 FB E2 DF [17:20:41]CommunicateWithHost err = 0 [17:20:41]CheckOFDResponse [17:20:41]1017 (14) - 77093643461234 [17:20:41]1041 (16) - 0000000000871749 [17:20:41]1040 (4) - 69800 [17:20:41]1012 (4) - 20.10.2024 10:54 [17:20:41]1206 (1) - 0 [17:20:41]OFD Sender: Remove packet 69800 [17:20:41]ProducePacketName [17:20:41]name=ofd_packets/00069800 [17:20:41]NVStorageDeleteData [17:20:41]Write to MH i2c: 01 00 00 2E 18 46 [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 07 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 07 00 2E 18 00 00 00 00 00 90 0C E9 [17:20:41]RasterBufferAndPrint [17:20:41]line [17:20:41]line [17:20:41]line [17:20:41]line [17:20:41]line [17:20:41]written 0, free lines is 3221 [17:20:41]MH_Cut [17:20:41]Write to MH i2c: D1 01 00 35 18 01 1F [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: D1 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: D1 01 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: D1 01 00 35 18 00 1E [17:20:41]Write to MH i2c: 01 00 00 36 18 4E [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]OFD Sender: No OFD packet to send [17:20:42]*** Cut start [17:20:42]*** Partial cut [17:20:42]*** CUTSNS_PIN = 1 [17:20:42]*** CUTSNS_PIN = 0 [17:20:42]*** Brake cut motor [17:20:42]Read from MH i2c: 01 [17:20:42]MH_I2C_Read... [17:20:42]*** Stop cut motor [17:20:42]*** Cut end [17:20:42]Read from MH i2c: 01 07 00 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: 01 07 00 36 18 00 00 00 00 00 FF 0F 63 [17:20:42]process_action close_receipt done [17:20:42]requested_data is exist [17:20:42]produce_requested_data [17:20:42]requested_item fm.sn is exist - process it [17:20:42]wFMCommunicate request_size=4 [17:20:42]MH_SAM_APDU [17:20:42]CAPDU: 80 11 00 00 [17:20:42]Write to MH i2c: E2 08 00 37 18 80 11 00 00 00 00 00 00 C9 [17:20:42]Write i2c OK [17:20:42]MH_I2C_Read... [17:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:42]Read from MH i2c: E2 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: E2 17 00 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: E2 17 00 37 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 20 [17:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [17:20:42]wFMCommunicate OK [17:20:42]requested_item fd.num is exist - process it [17:20:42]SAM_PROTO_GetFieldsCounters [17:20:42]wFMCommunicate request_size=4 [17:20:42]MH_SAM_APDU [17:20:42]CAPDU: 80 13 00 00 [17:20:42]Write to MH i2c: E2 08 00 38 18 80 13 00 00 00 00 00 00 CC [17:20:42]Write i2c OK [17:20:42]MH_I2C_Read... [17:20:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:43]Read from MH i2c: E2 [17:20:43]MH_I2C_Read... [17:20:43]Read from MH i2c: E2 62 00 [17:20:43]MH_I2C_Read... [17:20:43]Read from MH i2c: E2 62 00 38 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A8 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [17:20: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A8 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:43]wFMCommunicate OK [17:20:43]SAM_PROTO_GetFieldsCounters done [17:20:43]requested_item shift.num is exist - process it [17:20:43]requested_item shift.opened is exist - process it [17:20:43]req_shift_opened [17:20:43]FM_GetShiftState [17:20:43]SAM_PROTO_GetShiftState [17:20:43]wFMCommunicate request_size=4 [17:20:43]MH_SAM_APDU [17:20:43]CAPDU: 80 13 01 00 [17:20:43]Write to MH i2c: E2 08 00 39 18 80 13 01 00 00 00 00 00 CE [17:20:43]Write i2c OK [17:20:43]MH_I2C_Read... [17:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:43]Read from MH i2c: E2 [17:20:43]MH_I2C_Read... [17:20:43]Read from MH i2c: E2 0E 00 [17:20:43]MH_I2C_Read... [17:20:43]Read from MH i2c: E2 0E 00 39 18 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 60 [17:20:43]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [17:20:43]wFMCommunicate OK [17:20:43]SAM_PROTO_GetShiftState done [17:20:43]FM_GetShiftState done [17:20:43]req_shift_opened done [17:20:43]requested_item shift.open_date is exist - process it [17:20:43]req_shift_open_date [17:20:43]req_shift_open_date done [17:20:43]produce_requested_data done [17:20:43]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69800,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [17:20:43]process_action_free close_receipt [17:20:43]json_value_free [17:20:43]json_value_free done [17:20:43]process_json_proto returns [17:20:43]Send response to host [17:20:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69800,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [17:20:43]free response buf [17:20:43]execute_script done [17:20:43]execute_script returns [17:20:43]free content buf [17:20:43]Sock 7.Close socket [17:20:43]Sock 7.Thread stoped [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:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]OFD Sender: No OFD packet to send [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:24]accept exits with 9 [17:34:24]New connection [17:34:24]New thread 3066486116 created [17:34:24]Thread 3066629476 joined [17:34:24]Waiting for new connection... [17:34:24] Sock 9.Parse request [17:34:24]Sock 9.Check first char [17:34:24]Sock 9.First char is OK [17:34:24]request: POST /json_proto HTTP/1.0 [17:34:24]Method: POST [17:34:24]URL: /json_proto [17:34:24]Method is POST - this is cgi request [17:34:24]url: /json_proto [17:34:24]query_string will be loaded in cgi processing [17:34:24]execute_cgi json_proto POST (null) [17:34:24]execute_cgi path=json_proto method=POST [17:34:24]POST find Content-Length [17:34:24]Host: 172.17.52.196:8080 [17:34:24]Content-Length: 1522 [17:34:24]Content-Type: application/json [17:34:24] [17:34:24]POST finish read [17:34:24]Found Content-Length = 1522 [17:34:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127199", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 3.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 720.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:24]execute_script... [17:34:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127199", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 3.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 720.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:24]POST & json_proto [17:34:24]process_json_proto [17:34:24]json parsed OK: [17:34:24]protocol is kg_v1.0 [17:34:24]action value=close_receipt [17:34:24]process_action close_receipt [17:34:24]cmd_close_receipt [17:34:24]MH_GetDate [17:34:24]Write to MH i2c: F0 00 00 3A 18 41 [17:34:24]Write i2c OK [17:34:24]MH_I2C_Read... [17:34:24]Read from MH i2c: F0 [17:34:24]MH_I2C_Read... [17:34:24]Read from MH i2c: F0 09 00 [17:34:24]MH_I2C_Read... [17:34:24]Read from MH i2c: F0 09 00 3A 18 00 23 3F 15 67 60 05 E4 66 D7 [17:34:24]GetLastDocTimeStamp 1729444841 [17:34:24]current date 1729445667 [17:34:24]FM_GetShiftState [17:34:24]SAM_PROTO_GetShiftState [17:34:24]wFMCommunicate request_size=4 [17:34:24]MH_SAM_APDU [17:34:24]CAPDU: 80 13 01 00 [17:34:24]Write to MH i2c: E2 08 00 3B 18 80 13 01 00 00 00 00 00 D0 [17:34:24]Write i2c OK [17:34:24]MH_I2C_Read... [17:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:24]Read from MH i2c: E2 [17:34:24]MH_I2C_Read... [17:34:24]Read from MH i2c: E2 0E 00 [17:34:24]MH_I2C_Read... [17:34:24]Read from MH i2c: E2 0E 00 3B 18 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 62 [17:34:24]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [17:34:24]wFMCommunicate OK [17:34:24]SAM_PROTO_GetShiftState done [17:34:24]FM_GetShiftState done [17:34:24]opened in 1729384380 [17:34:24]opened+sec_in_day 1729470780 [17:34:24]quantity*price = 39000 [17:34:24]sum+1 = 39001 [17:34:24]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007400990 Семечки ДЖИНН Великан 100гр 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 720.00 НСП 1% : 6.37 НДС 12% : 76.46 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 91 20.10.2024 17:34 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69801 ФПД: 113223739138202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173427&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69801&fm=113223739138202&tin=02508201610067®Number=0000000000091770&sum=72000 0 [17:34:25]StoreToDocumentArchive [17:34:25]shift 526 fd 69801 [17:34:25]save to /storage/0526/doc_00069801 [17:34:25]save last doc name /storage/0526/doc_00069801 to /storage/kkm_last_doc_name [17:34:25]save OK [17:34:25]Clear old archive folders... [17:34:25]ProcessDocumentItem done err = 0, tmpTLVsize=631 [17:34:25]tlvbuf is 009A7690 [17:34:25]SAM_PROTO_ClearQueue [17:34:25]wFMCommunicate request_size=4 [17:34:25]MH_SAM_APDU [17:34:25]CAPDU: 80 09 00 00 [17:34:25]Write to MH i2c: E2 08 00 48 18 80 09 00 00 00 00 00 00 D2 [17:34:25]Write i2c OK [17:34:25]MH_I2C_Read... [17:34:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:25]Read from MH i2c: E2 [17:34:25]MH_I2C_Read... [17:34:25]Read from MH i2c: E2 03 00 [17:34:25]MH_I2C_Read... [17:34:25]Read from MH i2c: E2 03 00 48 18 00 90 00 D4 [17:34:25]RAPDU: 90 00 [17:34:25]wFMCommunicate OK [17:34:25]SAM_PROTO_ClearQueue done [17:34:25]KKMCreateOFDPacket [17:34:25]OFDProtocolAddRootSTLVToBuf [17:34:25]FM_MakeSignedData [17:34:25]FM_MakeSignedData [17:34:25]SAM_PROTO_SignData [17:34:25]wFMCommunicate request_size=4 [17:34:25]MH_SAM_APDU [17:34:25]CAPDU: 80 0D 01 02 [17:34:25]Write to MH i2c: E2 08 00 49 18 80 0D 01 02 00 00 00 00 DA [17:34:25]Write i2c OK [17:34:25]MH_I2C_Read... [17:34:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:25]Read from MH i2c: E2 [17:34:25]MH_I2C_Read... [17:34:25]Read from MH i2c: E2 03 00 [17:34:25]MH_I2C_Read... [17:34:25]Read from MH i2c: E2 03 00 49 18 00 90 00 D5 [17:34:25]RAPDU: 90 00 [17:34:25]wFMCommunicate OK [17:34:25]wFMCommunicate request_size=255 [17:34:25]MH_SAM_APDU [17:34:25]CAPDU: 80 0D 02 02 FA 03 00 77 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 [17:34:25]Write to MH i2c: E2 02 01 4A 18 80 0D 02 02 FA 00 03 00 77 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 00 00 FA [17:34:25]Write i2c OK [17:34:25]MH_I2C_Read... [17:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:26]Read from MH i2c: E2 [17:34:26]MH_I2C_Read... [17:34:26]Read from MH i2c: E2 03 00 [17:34:26]MH_I2C_Read... [17:34:26]Read from MH i2c: E2 03 00 4A 18 00 90 00 D6 [17:34:26]RAPDU: 90 00 [17:34:26]wFMCommunicate OK [17:34:26]wFMCommunicate request_size=255 [17:34:26]MH_SAM_APDU [17:34:26]CAPDU: 80 0D 02 02 FA D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 [17:34:26]Write to MH i2c: E2 02 01 4B 18 80 0D 02 02 FA 00 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 1B [17:34:26]Write i2c OK [17:34:26]MH_I2C_Read... [17:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:26]Read from MH i2c: E2 [17:34:26]MH_I2C_Read... [17:34:26]Read from MH i2c: E2 03 00 [17:34:26]MH_I2C_Read... [17:34:26]Read from MH i2c: E2 03 00 4B 18 00 90 00 D7 [17:34:26]RAPDU: 90 00 [17:34:26]wFMCommunicate OK [17:34:26]wFMCommunicate request_size=140 [17:34:26]MH_SAM_APDU [17:34:26]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 23 3F 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A9 10 01 00 35 04 06 00 66 F9 F4 C0 60 9A [17:34:26]Write to MH i2c: E2 8F 00 4C 18 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 23 3F 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A9 10 01 00 35 04 06 00 66 F9 F4 C0 60 9A 00 00 81 [17:34:26]Write i2c OK [17:34:26]MH_I2C_Read... [17:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:26]Read from MH i2c: E2 [17:34:26]MH_I2C_Read... [17:34:26]Read from MH i2c: E2 03 00 [17:34:26]MH_I2C_Read... [17:34:26]Read from MH i2c: E2 03 00 4C 18 00 90 00 D8 [17:34:26]RAPDU: 90 00 [17:34:26]wFMCommunicate OK [17:34:26]wFMCommunicate request_size=4 [17:34:26]MH_SAM_APDU [17:34:26]CAPDU: 80 0D 03 02 [17:34:26]Write to MH i2c: E2 08 00 4D 18 80 0D 03 02 00 00 00 00 E0 [17:34:26]Write i2c OK [17:34:26]MH_I2C_Read... [17:34:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:26]Read from MH i2c: E2 [17:34:26]MH_I2C_Read... [17:34:26]Read from MH i2c: E2 0B 00 [17:34:26]MH_I2C_Read... [17:34:26]Read from MH i2c: E2 0B 00 4D 18 00 5A 3D 3F 7D E4 BF DF 17 90 00 CD [17:34:26]RAPDU: 5A 3D 3F 7D E4 BF DF 17 90 00 [17:34:26]wFMCommunicate OK [17:34:26]SAM_PROTO_SignData done [17:34:26]FM_MakeSignedData done [17:34:26]CreateOFDProtocolMessage [17:34:26]wFMCommunicate request_size=4 [17:34:26]MH_SAM_APDU [17:34:26]CAPDU: 80 11 00 00 [17:34:26]Write to MH i2c: E2 08 00 4E 18 80 11 00 00 00 00 00 00 E0 [17:34:26]Write i2c OK [17:34:26]MH_I2C_Read... [17:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:26]Read from MH i2c: E2 [17:34:26]MH_I2C_Read... [17:34:26]Read from MH i2c: E2 17 00 [17:34:26]MH_I2C_Read... [17:34:26]Read from MH i2c: E2 17 00 4E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 37 [17:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [17:34:26]wFMCommunicate OK [17:34:26]CreateOFDProtocolMessage done [17:34:26]OFDSenderStorePacket 69801 [17:34:26]StoreOFDPacket docnum=69801 [17:34:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 8B 02 00 00 0C E9 83 02 F3 9F 5A 03 01 00 03 00 77 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 23 3F 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A9 10 01 00 35 04 06 00 66 F9 F4 C0 60 9A 5A 3D 3F 7D E4 BF DF 17 [17:34:26]CheckFolder [17:34:26]dirname=/storage/ofd_packets [17:34:26]CheckFolder done [17:34:26]ProducePacketName [17:34:26]name=ofd_packets/00069801 [17:34:26]NVStorageSaveData ofd_packets/00069801 [17:34:26]File name is /storage/ofd_packets/00069801 [17:34:26]Write 681 bytes [17:34:26]NVStorageSaveData done [17:34:26]OFDSenderStorePacket done [17:34:26]KKMCreateOFDPacket done [17:34:26]NVStorageSaveData kkm_last_timestamp [17:34:26]File name is /storage/kkm_last_timestamp [17:34:26]Write 4 bytes [17:34:26]NVStorageSaveData done [17:34:26]ExternCall_PrintAddStr [17:34:26]wPrintStart [17:34:26]Write to MH i2c: 01 00 00 4F 18 67 [17:34:26]Write i2c OK [17:34:26]MH_I2C_Read... [17:34:26]Read from MH i2c: 01 [17:34:26]MH_I2C_Read... [17:34:26]Read from MH i2c: 01 07 00 [17:34:26]MH_I2C_Read... [17:34:26]Read from MH i2c: 01 07 00 4F 18 00 00 00 00 00 FF 0F 7C [17:34:26]RasterBufferAndPrint [17:34:26]line Счет N : (3)127199 [17:34:26]line ИНН: 02508201610067 [17:34:26]line Контрольно-Кассовый Чек [17:34:26]line ПРОДАЖА [17:34:26]line Товар: 2000036230011 [17:34:26]line Кофе Латте XL(GABB TRADE) [17:34:26]line 3.000 * 130.00 [17:34:26]line = 390.00 [17:34:26]line НДС 12% НСП 1% [17:34:26]line > о реализуемом товаре [17:34:26]line Товар: 4700000310043 [17:34:26]line Вода Жалалабат 27 1л [17:34:26]line 2.000 * 60.00 [17:34:26]line = 120.00 [17:34:26]line НДС 12% НСП 1% [17:34:26]line > о реализуемом товаре [17:34:26]line Товар: 4630007400990 [17:34:26]line Семечки ДЖИНН Великан 100гр [17:34:26]line 1.000 * 120.00 [17:34:26]line = 120.00 [17:34:26]line НДС 12% НСП 1% [17:34:26]line > о реализуемом товаре [17:34:26]line Товар: 4660085515163 [17:34:26]line Шок Батончик Сникерс супер 95/80г [17:34:26]line 1.000 * 90.00 [17:34:26]line = 90.00 [17:34:26]line НДС 12% НСП 1% [17:34:26]line > о реализуемом товаре [17:34:26]line ИТОГО: 720.00 [17:34:26]line НСП 1% : 6.37 [17:34:26]line НДС 12% : 76.46 [17:34:26]line Наличными: 720.00 [17:34:26]line Безнал.: 0.00 [17:34:26]line Место: АЗС № 163 "Партнер Нефть" [17:34:26]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [17:34:26]line СНО: Общий режим [17:34:26]line Чек 91 20.10.2024 17:34 [17:34:26]line Смена: 526 ФФД: 1.0 [17:34:26]line ЗНМ: 0300000101 [17:34:26]line РНМ: 0000000000091770 [17:34:26]line Версия ККМ: 001 [17:34:26]line ФМ: 0000000000871749 [17:34:26]line ФД: 69801 [17:34:26]line ФПД: 113223739138202 [17:34:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173427&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69801&fm=113223739138202&tin=02508201610067®Number=0000000000091770&sum=72000 [17:34:26]line 0 [17:34:26]OFD Sender: Processing packet 69801 [packets to send 32, broken 31] [17:34:26]ProducePacketName [17:34:26]name=ofd_packets/00069801 [17:34:26]OFD Sender: To server: pG, [17:34:26]CommunicateWithHost lk.salyk.kg:30040 [17:34:26]ConnectInit lk.salyk.kg [17:34:26]written 0, free lines is 4095 [17:34:27]Connected sock=10 [17:34:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 8B 02 00 00 0C E9 83 02 F3 9F 5A 03 01 00 03 00 77 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 23 3F 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 A9 10 01 00 35 04 06 00 66 F9 F4 C0 60 9A 5A 3D 3F 7D E4 BF DF 17 [17:34:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 14 E9 47 00 8E 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 31 37 34 39 10 04 04 00 A9 10 01 00 F4 03 04 00 A6 E4 14 67 B6 04 01 00 00 86 8F A3 55 58 61 63 58 [17:34:27]CommunicateWithHost err = 0 [17:34:27]CheckOFDResponse [17:34:27]1017 (14) - 77093643461234 [17:34:27]1041 (16) - 0000000000871749 [17:34:27]1040 (4) - 69801 [17:34:27]1012 (4) - 20.10.2024 11:08 [17:34:27]1206 (1) - 0 [17:34:27]OFD Sender: Remove packet 69801 [17:34:27]ProducePacketName [17:34:27]name=ofd_packets/00069801 [17:34:27]NVStorageDeleteData [17:34:27]Write to MH i2c: 01 00 00 8B 18 A3 [17:34:27]Write i2c OK [17:34:27]MH_I2C_Read... [17:34:27]Read from MH i2c: 01 [17:34:27]MH_I2C_Read... [17:34:27]Read from MH i2c: 01 07 00 [17:34:27]MH_I2C_Read... [17:34:27]Read from MH i2c: 01 07 00 8B 18 00 00 00 00 00 D4 0B 89 [17:34:27]RasterBufferAndPrint [17:34:27]line [17:34:27]line [17:34:27]line [17:34:27]line [17:34:27]line [17:34:27]written 0, free lines is 3036 [17:34:27]MH_Cut [17:34:27]Write to MH i2c: D1 01 00 92 18 01 7C [17:34:27]Write i2c OK [17:34:27]MH_I2C_Read... [17:34:27]Read from MH i2c: D1 [17:34:27]MH_I2C_Read... [17:34:27]Read from MH i2c: D1 01 00 [17:34:27]MH_I2C_Read... [17:34:27]Read from MH i2c: D1 01 00 92 18 00 7B [17:34:27]Write to MH i2c: 01 00 00 93 18 AB [17:34:27]Write i2c OK [17:34:27]MH_I2C_Read... [17:34:27]OFD Sender: No OFD packet to send [17:34:28]*** Cut start [17:34:28]*** Partial cut [17:34:28]*** CUTSNS_PIN = 1 [17:34:28]*** CUTSNS_PIN = 0 [17:34:28]*** Brake cut motor [17:34:29]Read from MH i2c: 01 [17:34:29]MH_I2C_Read... [17:34:29]*** Stop cut motor [17:34:29]*** Cut end [17:34:29]Read from MH i2c: 01 07 00 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: 01 07 00 93 18 00 00 00 00 00 FF 0F C0 [17:34:29]process_action close_receipt done [17:34:29]requested_data is exist [17:34:29]produce_requested_data [17:34:29]requested_item fm.sn is exist - process it [17:34:29]wFMCommunicate request_size=4 [17:34:29]MH_SAM_APDU [17:34:29]CAPDU: 80 11 00 00 [17:34:29]Write to MH i2c: E2 08 00 94 18 80 11 00 00 00 00 00 00 26 [17:34:29]Write i2c OK [17:34:29]MH_I2C_Read... [17:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:29]Read from MH i2c: E2 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: E2 17 00 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: E2 17 00 94 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 7D [17:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [17:34:29]wFMCommunicate OK [17:34:29]requested_item fd.num is exist - process it [17:34:29]SAM_PROTO_GetFieldsCounters [17:34:29]wFMCommunicate request_size=4 [17:34:29]MH_SAM_APDU [17:34:29]CAPDU: 80 13 00 00 [17:34:29]Write to MH i2c: E2 08 00 95 18 80 13 00 00 00 00 00 00 29 [17:34:29]Write i2c OK [17:34:29]MH_I2C_Read... [17:34:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:29]Read from MH i2c: E2 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: E2 62 00 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: E2 62 00 95 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A9 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [17:34: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 A9 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:29]wFMCommunicate OK [17:34:29]SAM_PROTO_GetFieldsCounters done [17:34:29]requested_item shift.num is exist - process it [17:34:29]requested_item shift.opened is exist - process it [17:34:29]req_shift_opened [17:34:29]FM_GetShiftState [17:34:29]SAM_PROTO_GetShiftState [17:34:29]wFMCommunicate request_size=4 [17:34:29]MH_SAM_APDU [17:34:29]CAPDU: 80 13 01 00 [17:34:29]Write to MH i2c: E2 08 00 96 18 80 13 01 00 00 00 00 00 2B [17:34:29]Write i2c OK [17:34:29]MH_I2C_Read... [17:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:29]Read from MH i2c: E2 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: E2 0E 00 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: E2 0E 00 96 18 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 BD [17:34:29]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [17:34:29]wFMCommunicate OK [17:34:29]SAM_PROTO_GetShiftState done [17:34:29]FM_GetShiftState done [17:34:29]req_shift_opened done [17:34:29]requested_item shift.open_date is exist - process it [17:34:29]req_shift_open_date [17:34:29]req_shift_open_date done [17:34:29]produce_requested_data done [17:34:29]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69801,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [17:34:29]process_action_free close_receipt [17:34:29]json_value_free [17:34:29]json_value_free done [17:34:29]process_json_proto returns [17:34:29]Send response to host [17:34:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69801,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [17:34:29]free response buf [17:34:29]execute_script done [17:34:29]execute_script returns [17:34:29]free content buf [17:34:29]Sock 9.Close socket [17:34:29]Sock 9.Thread stoped [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:05]accept exits with 7 [17:36:05]New connection [17:36:05]New thread 3066629476 created [17:36:05]Thread 3066486116 joined [17:36:05]Waiting for new connection... [17:36:05] Sock 7.Parse request [17:36:05]Sock 7.Check first char [17:36:05]Sock 7.First char is OK [17:36:05]request: POST /json_proto HTTP/1.0 [17:36:05]Method: POST [17:36:05]URL: /json_proto [17:36:05]Method is POST - this is cgi request [17:36:05]url: /json_proto [17:36:05]query_string will be loaded in cgi processing [17:36:05]execute_cgi json_proto POST (null) [17:36:05]execute_cgi path=json_proto method=POST [17:36:05]POST find Content-Length [17:36:05]Host: 172.17.52.196:8080 [17:36:05]Content-Length: 1275 [17:36:05]Content-Type: application/json [17:36:05] [17:36:05]POST finish read [17:36:05]Found Content-Length = 1275 [17:36:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127202", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 204.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:05]execute_script... [17:36:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127202", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226617", "name": "Mentos \u041F\u0412 \u041D\u0435\u0436\u043D\u0430\u044F \u041C\u044F\u0442\u0430 6*100*2\u0433", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 204.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:05]POST & json_proto [17:36:05]process_json_proto [17:36:05]json parsed OK: [17:36:05]protocol is kg_v1.0 [17:36:05]action value=close_receipt [17:36:05]process_action close_receipt [17:36:05]cmd_close_receipt [17:36:05]MH_GetDate [17:36:05]Write to MH i2c: F0 00 00 97 18 9E [17:36:05]Write i2c OK [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: F0 [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: F0 09 00 [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: F0 09 00 97 18 00 89 3F 15 67 60 05 E4 66 9A [17:36:05]GetLastDocTimeStamp 1729445667 [17:36:05]current date 1729445769 [17:36:05]FM_GetShiftState [17:36:05]SAM_PROTO_GetShiftState [17:36:05]wFMCommunicate request_size=4 [17:36:05]MH_SAM_APDU [17:36:05]CAPDU: 80 13 01 00 [17:36:05]Write to MH i2c: E2 08 00 98 18 80 13 01 00 00 00 00 00 2D [17:36:05]Write i2c OK [17:36:05]MH_I2C_Read... [17:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:06]Read from MH i2c: E2 [17:36:06]MH_I2C_Read... [17:36:06]Read from MH i2c: E2 0E 00 [17:36:06]MH_I2C_Read... [17:36:06]Read from MH i2c: E2 0E 00 98 18 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 BF [17:36:06]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [17:36:06]wFMCommunicate OK [17:36:06]SAM_PROTO_GetShiftState done [17:36:06]FM_GetShiftState done [17:36:06]opened in 1729384380 [17:36:06]opened+sec_in_day 1729470780 [17:36:06]quantity*price = 5000 [17:36:06]sum+1 = 5001 [17:36:06]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226617 Mentos ПВ Нежная Мята 6*100*2г 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48745031 Сигареты Winston Superslims Expand Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 204.00 НСП 1% : 1.80 НДС 12% : 21.66 Наличными: 0.00 Безнал.: 204.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 92 20.10.2024 17:36 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69802 ФПД: 231116700938048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173609&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69802&fm=231116700938048&tin=02508201610067®Number=0000000000091770&sum=20400 0 [17:36:07]StoreToDocumentArchive [17:36:07]shift 526 fd 69802 [17:36:07]save to /storage/0526/doc_00069802 [17:36:07]save last doc name /storage/0526/doc_00069802 to /storage/kkm_last_doc_name [17:36:07]save OK [17:36:07]Clear old archive folders... [17:36:07]ProcessDocumentItem done err = 0, tmpTLVsize=496 [17:36:07]tlvbuf is 00964C80 [17:36:07]SAM_PROTO_ClearQueue [17:36:07]wFMCommunicate request_size=4 [17:36:07]MH_SAM_APDU [17:36:07]CAPDU: 80 09 00 00 [17:36:07]Write to MH i2c: E2 08 00 A5 18 80 09 00 00 00 00 00 00 2F [17:36:07]Write i2c OK [17:36:07]MH_I2C_Read... [17:36:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:07]Read from MH i2c: E2 [17:36:07]MH_I2C_Read... [17:36:07]Read from MH i2c: E2 03 00 [17:36:07]MH_I2C_Read... [17:36:07]Read from MH i2c: E2 03 00 A5 18 00 90 00 31 [17:36:07]RAPDU: 90 00 [17:36:07]wFMCommunicate OK [17:36:07]SAM_PROTO_ClearQueue done [17:36:07]KKMCreateOFDPacket [17:36:07]OFDProtocolAddRootSTLVToBuf [17:36:07]FM_MakeSignedData [17:36:07]FM_MakeSignedData [17:36:07]SAM_PROTO_SignData [17:36:07]wFMCommunicate request_size=4 [17:36:07]MH_SAM_APDU [17:36:07]CAPDU: 80 0D 01 02 [17:36:07]Write to MH i2c: E2 08 00 A6 18 80 0D 01 02 00 00 00 00 37 [17:36:07]Write i2c OK [17:36:07]MH_I2C_Read... [17:36:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:07]Read from MH i2c: E2 [17:36:07]MH_I2C_Read... [17:36:07]Read from MH i2c: E2 03 00 [17:36:07]MH_I2C_Read... [17:36:07]Read from MH i2c: E2 03 00 A6 18 00 90 00 32 [17:36:07]RAPDU: 90 00 [17:36:07]wFMCommunicate OK [17:36:07]wFMCommunicate request_size=255 [17:36:07]MH_SAM_APDU [17:36:07]CAPDU: 80 0D 02 02 FA 03 00 F0 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 [17:36:07]Write to MH i2c: E2 02 01 A7 18 80 0D 02 02 FA 00 03 00 F0 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 00 00 6C [17:36:07]Write i2c OK [17:36:07]MH_I2C_Read... [17:36:07]OFD Sender: No OFD packet to send [17:36:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:07]Read from MH i2c: E2 [17:36:07]MH_I2C_Read... [17:36:07]Read from MH i2c: E2 03 00 [17:36:07]MH_I2C_Read... [17:36:07]Read from MH i2c: E2 03 00 A7 18 00 90 00 33 [17:36:07]RAPDU: 90 00 [17:36:07]wFMCommunicate OK [17:36:07]wFMCommunicate request_size=255 [17:36:07]MH_SAM_APDU [17:36:07]CAPDU: 80 0D 02 02 FA 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 4F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 89 3F 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AA 10 01 00 35 04 06 00 D2 33 0C DC 6F 40 [17:36:07]Write to MH i2c: E2 02 01 A8 18 80 0D 02 02 FA 00 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 4F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 89 3F 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AA 10 01 00 35 04 06 00 D2 33 0C DC 6F 40 00 00 EA [17:36:07]Write i2c OK [17:36:07]MH_I2C_Read... [17:36:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:08]Read from MH i2c: E2 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: E2 03 00 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: E2 03 00 A8 18 00 90 00 34 [17:36:08]RAPDU: 90 00 [17:36:08]wFMCommunicate OK [17:36:08]wFMCommunicate request_size=4 [17:36:08]MH_SAM_APDU [17:36:08]CAPDU: 80 0D 03 02 [17:36:08]Write to MH i2c: E2 08 00 A9 18 80 0D 03 02 00 00 00 00 3C [17:36:08]Write i2c OK [17:36:08]MH_I2C_Read... [17:36:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:08]Read from MH i2c: E2 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: E2 0B 00 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: E2 0B 00 A9 18 00 B3 1D 73 4D 68 59 BE 39 90 00 85 [17:36:08]RAPDU: B3 1D 73 4D 68 59 BE 39 90 00 [17:36:08]wFMCommunicate OK [17:36:08]SAM_PROTO_SignData done [17:36:08]FM_MakeSignedData done [17:36:08]CreateOFDProtocolMessage [17:36:08]wFMCommunicate request_size=4 [17:36:08]MH_SAM_APDU [17:36:08]CAPDU: 80 11 00 00 [17:36:08]Write to MH i2c: E2 08 00 AA 18 80 11 00 00 00 00 00 00 3C [17:36:08]Write i2c OK [17:36:08]MH_I2C_Read... [17:36:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:08]Read from MH i2c: E2 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: E2 17 00 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: E2 17 00 AA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 93 [17:36:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [17:36:08]wFMCommunicate OK [17:36:08]CreateOFDProtocolMessage done [17:36:08]OFDSenderStorePacket 69802 [17:36:08]StoreOFDPacket docnum=69802 [17:36:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 04 02 00 00 39 05 FC 01 55 4D 5A 03 01 00 03 00 F0 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 4F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 89 3F 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AA 10 01 00 35 04 06 00 D2 33 0C DC 6F 40 B3 1D 73 4D 68 59 BE 39 [17:36:08]CheckFolder [17:36:08]dirname=/storage/ofd_packets [17:36:08]CheckFolder done [17:36:08]ProducePacketName [17:36:08]name=ofd_packets/00069802 [17:36:08]NVStorageSaveData ofd_packets/00069802 [17:36:08]File name is /storage/ofd_packets/00069802 [17:36:08]Write 546 bytes [17:36:08]NVStorageSaveData done [17:36:08]OFDSenderStorePacket done [17:36:08]KKMCreateOFDPacket done [17:36:08]NVStorageSaveData kkm_last_timestamp [17:36:08]File name is /storage/kkm_last_timestamp [17:36:08]Write 4 bytes [17:36:08]NVStorageSaveData done [17:36:08]ExternCall_PrintAddStr [17:36:08]wPrintStart [17:36:08]Write to MH i2c: 01 00 00 AB 18 C3 [17:36:08]Write i2c OK [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: 01 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: 01 07 00 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: 01 07 00 AB 18 00 00 00 00 00 FF 0F D8 [17:36:08]RasterBufferAndPrint [17:36:08]line Счет N : (3)127202 [17:36:08]line ИНН: 02508201610067 [17:36:08]line Контрольно-Кассовый Чек [17:36:08]line ПРОДАЖА [17:36:08]line Товар: 4700000160051 [17:36:08]line Вода Ыссык Ата 1л [17:36:08]line 1.000 * 50.00 [17:36:08]line = 50.00 [17:36:08]line НДС 12% НСП 1% [17:36:08]line > о реализуемом товаре [17:36:08]line Товар: 46226617 [17:36:08]line Mentos ПВ Нежная Мята 6*100*2г [17:36:08]line 1.000 * 10.00 [17:36:08]line = 10.00 [17:36:08]line НДС 12% НСП 1% [17:36:08]line > о реализуемом товаре [17:36:08]line Товар: 48745031 [17:36:08]line Сигареты Winston Superslims Expand Blue [17:36:08]line 1.000 * 144.00 [17:36:08]line = 144.00 [17:36:08]line НДС 12% НСП 1% [17:36:08]line > о реализуемом товаре [17:36:08]line ИТОГО: 204.00 [17:36:08]line НСП 1% : 1.80 [17:36:08]line НДС 12% : 21.66 [17:36:08]line Наличными: 0.00 [17:36:08]line Безнал.: 204.00 [17:36:08]line Место: АЗС № 163 "Партнер Нефть" [17:36:08]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [17:36:08]line СНО: Общий режим [17:36:08]line Чек 92 20.10.2024 17:36 [17:36:08]line Смена: 526 ФФД: 1.0 [17:36:08]line ЗНМ: 0300000101 [17:36:08]line РНМ: 0000000000091770 [17:36:08]line Версия ККМ: 001 [17:36:08]line Платежная система: Mbank [17:36:08]line ФМ: 0000000000871749 [17:36:08]line ФД: 69802 [17:36:08]line ФПД: 231116700938048 [17:36:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T173609&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69802&fm=231116700938048&tin=02508201610067®Number=0000000000091770&sum=20400 [17:36:08]OFD Sender: Processing packet 69802 [packets to send 32, broken 31] [17:36:08]ProducePacketName [17:36:08]name=ofd_packets/00069802 [17:36:08]OFD Sender: To server: pG, [17:36:08]CommunicateWithHost lk.salyk.kg:30040 [17:36:08]ConnectInit lk.salyk.kg [17:36:08]Connected sock=10 [17:36:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 04 02 00 00 39 05 FC 01 55 4D 5A 03 01 00 03 00 F0 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 36 32 32 36 36 31 37 06 04 2B 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9D D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 9C D1 8F D1 82 D0 B0 20 36 2A 31 30 30 2A 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 4F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 4F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 89 3F 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AA 10 01 00 35 04 06 00 D2 33 0C DC 6F 40 B3 1D 73 4D 68 59 BE 39 [17:36:08]line 0 [17:36:08]written 0, free lines is 4095 [17:36:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 DD D5 47 00 FF 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AA 10 01 00 F4 03 04 00 0B E5 14 67 B6 04 01 00 00 FC B8 24 E3 F5 D2 33 61 [17:36:08]CommunicateWithHost err = 0 [17:36:08]CheckOFDResponse [17:36:08]1017 (14) - 77093643461234 [17:36:08]1041 (16) - 0000000000871749 [17:36:08]1040 (4) - 69802 [17:36:08]1012 (4) - 20.10.2024 11:10 [17:36:08]1206 (1) - 0 [17:36:08]OFD Sender: Remove packet 69802 [17:36:08]ProducePacketName [17:36:08]name=ofd_packets/00069802 [17:36:08]NVStorageDeleteData [17:36:09]Write to MH i2c: 01 00 00 E2 18 FA [17:36:09]Write i2c OK [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: 01 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: 01 07 00 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: 01 07 00 E2 18 00 00 00 00 00 13 0C 20 [17:36:09]RasterBufferAndPrint [17:36:09]line [17:36:09]line [17:36:09]line [17:36:09]line [17:36:09]line [17:36:09]written 0, free lines is 3097 [17:36:09]MH_Cut [17:36:09]Write to MH i2c: D1 01 00 E9 18 01 D3 [17:36:09]Write i2c OK [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: D1 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: D1 01 00 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: D1 01 00 E9 18 00 D2 [17:36:09]Write to MH i2c: 01 00 00 EA 18 02 [17:36:09]Write i2c OK [17:36:09]MH_I2C_Read... [17:36:09]OFD Sender: No OFD packet to send [17:36:10]*** Cut start [17:36:10]*** Partial cut [17:36:10]*** CUTSNS_PIN = 1 [17:36:10]*** CUTSNS_PIN = 0 [17:36:10]*** Brake cut motor [17:36:10]Read from MH i2c: 01 [17:36:10]MH_I2C_Read... [17:36:10]*** Stop cut motor [17:36:10]*** Cut end [17:36:10]Read from MH i2c: 01 07 00 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: 01 07 00 EA 18 00 00 00 00 00 FF 0F 17 [17:36:10]process_action close_receipt done [17:36:10]requested_data is exist [17:36:10]produce_requested_data [17:36:10]requested_item fm.sn is exist - process it [17:36:10]wFMCommunicate request_size=4 [17:36:10]MH_SAM_APDU [17:36:10]CAPDU: 80 11 00 00 [17:36:10]Write to MH i2c: E2 08 00 EB 18 80 11 00 00 00 00 00 00 7D [17:36:10]Write i2c OK [17:36:10]MH_I2C_Read... [17:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:11]Read from MH i2c: E2 [17:36:11]MH_I2C_Read... [17:36:11]Read from MH i2c: E2 17 00 [17:36:11]MH_I2C_Read... [17:36:11]Read from MH i2c: E2 17 00 EB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 D4 [17:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [17:36:11]wFMCommunicate OK [17:36:11]requested_item fd.num is exist - process it [17:36:11]SAM_PROTO_GetFieldsCounters [17:36:11]wFMCommunicate request_size=4 [17:36:11]MH_SAM_APDU [17:36:11]CAPDU: 80 13 00 00 [17:36:11]Write to MH i2c: E2 08 00 EC 18 80 13 00 00 00 00 00 00 80 [17:36:11]Write i2c OK [17:36:11]MH_I2C_Read... [17:36:11]Read from MH i2c: E2 [17:36:11]MH_I2C_Read... [17:36:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:11]Read from MH i2c: E2 62 00 [17:36:11]MH_I2C_Read... [17:36:11]Read from MH i2c: E2 62 00 EC 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 AA 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [17:36: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 AA 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:11]wFMCommunicate OK [17:36:11]SAM_PROTO_GetFieldsCounters done [17:36:11]requested_item shift.num is exist - process it [17:36:11]requested_item shift.opened is exist - process it [17:36:11]req_shift_opened [17:36:11]FM_GetShiftState [17:36:11]SAM_PROTO_GetShiftState [17:36:11]wFMCommunicate request_size=4 [17:36:11]MH_SAM_APDU [17:36:11]CAPDU: 80 13 01 00 [17:36:11]Write to MH i2c: E2 08 00 ED 18 80 13 01 00 00 00 00 00 82 [17:36:11]Write i2c OK [17:36:11]MH_I2C_Read... [17:36:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:11]Read from MH i2c: E2 [17:36:11]MH_I2C_Read... [17:36:11]Read from MH i2c: E2 0E 00 [17:36:11]MH_I2C_Read... [17:36:11]Read from MH i2c: E2 0E 00 ED 18 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 14 [17:36:11]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [17:36:11]wFMCommunicate OK [17:36:11]SAM_PROTO_GetShiftState done [17:36:11]FM_GetShiftState done [17:36:11]req_shift_opened done [17:36:11]requested_item shift.open_date is exist - process it [17:36:11]req_shift_open_date [17:36:11]req_shift_open_date done [17:36:11]produce_requested_data done [17:36:11]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69802,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [17:36:11]process_action_free close_receipt [17:36:11]json_value_free [17:36:11]json_value_free done [17:36:11]process_json_proto returns [17:36:11]Send response to host [17:36:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69802,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [17:36:11]free response buf [17:36:11]execute_script done [17:36:11]execute_script returns [17:36:11]free content buf [17:36:11]Sock 7.Close socket [17:36:11]Sock 7.Thread stoped [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:40:59]OFD Sender: No OFD packet to send [17:41:04]OFD Sender: No OFD packet to send [17:41:09]OFD Sender: No OFD packet to send [17:41:14]OFD Sender: No OFD packet to send [17:41:19]OFD Sender: No OFD packet to send [17:41:24]OFD Sender: No OFD packet to send [17:41:29]OFD Sender: No OFD packet to send [17:41:34]OFD Sender: No OFD packet to send [17:41:39]OFD Sender: No OFD packet to send [17:41:44]OFD Sender: No OFD packet to send [17:41:49]OFD Sender: No OFD packet to send [17:41:54]OFD Sender: No OFD packet to send [17:41:59]OFD Sender: No OFD packet to send [17:42:04]OFD Sender: No OFD packet to send [17:42:09]OFD Sender: No OFD packet to send [17:42:14]OFD Sender: No OFD packet to send [17:42:19]OFD Sender: No OFD packet to send [17:42:24]OFD Sender: No OFD packet to send [17:42:29]OFD Sender: No OFD packet to send [17:42:34]OFD Sender: No OFD packet to send [17:42:39]OFD Sender: No OFD packet to send [17:42:44]OFD Sender: No OFD packet to send [17:42:49]OFD Sender: No OFD packet to send [17:42:54]OFD Sender: No OFD packet to send [17:42:59]OFD Sender: No OFD packet to send [17:43:04]OFD Sender: No OFD packet to send [17:43:09]OFD Sender: No OFD packet to send [17:43:14]OFD Sender: No OFD packet to send [17:43:19]OFD Sender: No OFD packet to send [17:43:24]OFD Sender: No OFD packet to send [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:11]accept exits with 9 [17:47:11]New connection [17:47:11]New thread 3066486116 created [17:47:11]Thread 3066629476 joined [17:47:11]Waiting for new connection... [17:47:11] Sock 9.Parse request [17:47:11]Sock 9.Check first char [17:47:11]Sock 9.First char is OK [17:47:11]request: POST /json_proto HTTP/1.0 [17:47:11]Method: POST [17:47:11]URL: /json_proto [17:47:11]Method is POST - this is cgi request [17:47:11]url: /json_proto [17:47:11]query_string will be loaded in cgi processing [17:47:11]execute_cgi json_proto POST (null) [17:47:11]execute_cgi path=json_proto method=POST [17:47:11]POST find Content-Length [17:47:11]Host: 172.17.52.196:8080 [17:47:11]Content-Length: 750 [17:47:11]Content-Type: application/json [17:47:11] [17:47:11]POST finish read [17:47:11]Found Content-Length = 750 [17:47:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127203", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:11]execute_script... [17:47:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127203", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:11]POST & json_proto [17:47:11]process_json_proto [17:47:11]json parsed OK: [17:47:11]protocol is kg_v1.0 [17:47:11]action value=close_receipt [17:47:11]process_action close_receipt [17:47:11]cmd_close_receipt [17:47:11]MH_GetDate [17:47:11]Write to MH i2c: F0 00 00 EE 18 F5 [17:47:11]Write i2c OK [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: F0 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: F0 09 00 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: F0 09 00 EE 18 00 22 42 15 67 60 05 E4 66 8D [17:47:11]GetLastDocTimeStamp 1729445769 [17:47:11]current date 1729446434 [17:47:11]FM_GetShiftState [17:47:11]SAM_PROTO_GetShiftState [17:47:11]wFMCommunicate request_size=4 [17:47:11]MH_SAM_APDU [17:47:11]CAPDU: 80 13 01 00 [17:47:11]Write to MH i2c: E2 08 00 EF 18 80 13 01 00 00 00 00 00 84 [17:47:11]Write i2c OK [17:47:11]MH_I2C_Read... [17:47:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:11]Read from MH i2c: E2 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: E2 0E 00 [17:47:11]MH_I2C_Read... [17:47:11]Read from MH i2c: E2 0E 00 EF 18 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 16 [17:47:11]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [17:47:11]wFMCommunicate OK [17:47:11]SAM_PROTO_GetShiftState done [17:47:11]FM_GetShiftState done [17:47:11]opened in 1729384380 [17:47:11]opened+sec_in_day 1729470780 [17:47:11]quantity*price = 14400 [17:47:11]sum+1 = 14401 [17:47:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 93 20.10.2024 17:47 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69803 ФПД: 209421595154757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174714&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69803&fm=209421595154757&tin=02508201610067®Number=0000000000091770&sum=14400 0 [17:47:12]StoreToDocumentArchive [17:47:12]shift 526 fd 69803 [17:47:12]save to /storage/0526/doc_00069803 [17:47:12]save last doc name /storage/0526/doc_00069803 to /storage/kkm_last_doc_name [17:47:12]save OK [17:47:12]Clear old archive folders... [17:47:12]ProcessDocumentItem done err = 0, tmpTLVsize=275 [17:47:12]tlvbuf is 009D4910 [17:47:12]SAM_PROTO_ClearQueue [17:47:12]wFMCommunicate request_size=4 [17:47:12]MH_SAM_APDU [17:47:12]CAPDU: 80 09 00 00 [17:47:12]Write to MH i2c: E2 08 00 FC 18 80 09 00 00 00 00 00 00 86 [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:12]Read from MH i2c: E2 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 03 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 03 00 FC 18 00 90 00 88 [17:47:12]RAPDU: 90 00 [17:47:12]wFMCommunicate OK [17:47:12]SAM_PROTO_ClearQueue done [17:47:12]KKMCreateOFDPacket [17:47:12]OFDProtocolAddRootSTLVToBuf [17:47:12]FM_MakeSignedData [17:47:12]FM_MakeSignedData [17:47:12]SAM_PROTO_SignData [17:47:12]wFMCommunicate request_size=4 [17:47:12]MH_SAM_APDU [17:47:12]CAPDU: 80 0D 01 02 [17:47:12]Write to MH i2c: E2 08 00 FD 18 80 0D 01 02 00 00 00 00 8E [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:12]Read from MH i2c: E2 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 03 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 03 00 FD 18 00 90 00 89 [17:47:12]RAPDU: 90 00 [17:47:12]wFMCommunicate OK [17:47:12]wFMCommunicate request_size=255 [17:47:12]MH_SAM_APDU [17:47:12]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 22 42 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 [17:47:12]Write to MH i2c: E2 02 01 FE 18 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 22 42 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 00 00 DF [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:12]Read from MH i2c: E2 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 03 00 [17:47:12]MH_I2C_Read... [17:47:12]Read from MH i2c: E2 03 00 FE 18 00 90 00 8A [17:47:12]RAPDU: 90 00 [17:47:12]wFMCommunicate OK [17:47:12]wFMCommunicate request_size=34 [17:47:12]MH_SAM_APDU [17:47:12]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AB 10 01 00 35 04 06 00 BE 77 C3 C9 99 45 [17:47:12]Write to MH i2c: E2 25 00 FF 18 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AB 10 01 00 35 04 06 00 BE 77 C3 C9 99 45 00 00 B1 [17:47:12]Write i2c OK [17:47:12]MH_I2C_Read... [17:47:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:13]Read from MH i2c: E2 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 03 00 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 03 00 FF 18 00 90 00 8B [17:47:13]RAPDU: 90 00 [17:47:13]wFMCommunicate OK [17:47:13]wFMCommunicate request_size=4 [17:47:13]MH_SAM_APDU [17:47:13]CAPDU: 80 0D 03 02 [17:47:13]Write to MH i2c: E2 08 00 00 19 80 0D 03 02 00 00 00 00 94 [17:47:13]Write i2c OK [17:47:13]MH_I2C_Read... [17:47:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:13]Read from MH i2c: E2 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 0B 00 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 0B 00 00 19 00 59 86 16 F1 75 09 49 04 90 00 46 [17:47:13]RAPDU: 59 86 16 F1 75 09 49 04 90 00 [17:47:13]wFMCommunicate OK [17:47:13]SAM_PROTO_SignData done [17:47:13]FM_MakeSignedData done [17:47:13]CreateOFDProtocolMessage [17:47:13]wFMCommunicate request_size=4 [17:47:13]MH_SAM_APDU [17:47:13]CAPDU: 80 11 00 00 [17:47:13]Write to MH i2c: E2 08 00 01 19 80 11 00 00 00 00 00 00 94 [17:47:13]Write i2c OK [17:47:13]MH_I2C_Read... [17:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:13]Read from MH i2c: E2 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 17 00 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: E2 17 00 01 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 EB [17:47:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [17:47:13]wFMCommunicate OK [17:47:13]CreateOFDProtocolMessage done [17:47:13]OFDSenderStorePacket 69803 [17:47:13]StoreOFDPacket docnum=69803 [17:47:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 18 64 1F 01 88 96 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 22 42 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AB 10 01 00 35 04 06 00 BE 77 C3 C9 99 45 59 86 16 F1 75 09 49 04 [17:47:13]CheckFolder [17:47:13]dirname=/storage/ofd_packets [17:47:13]CheckFolder done [17:47:13]ProducePacketName [17:47:13]name=ofd_packets/00069803 [17:47:13]NVStorageSaveData ofd_packets/00069803 [17:47:13]File name is /storage/ofd_packets/00069803 [17:47:13]Write 325 bytes [17:47:13]NVStorageSaveData done [17:47:13]OFDSenderStorePacket done [17:47:13]KKMCreateOFDPacket done [17:47:13]NVStorageSaveData kkm_last_timestamp [17:47:13]File name is /storage/kkm_last_timestamp [17:47:13]Write 4 bytes [17:47:13]NVStorageSaveData done [17:47:13]ExternCall_PrintAddStr [17:47:13]wPrintStart [17:47:13]Write to MH i2c: 01 00 00 02 19 1B [17:47:13]OFD Sender: Processing packet 69803 [packets to send 32, broken 31] [17:47:13]ProducePacketName [17:47:13]name=ofd_packets/00069803 [17:47:13]OFD Sender: To server: pG, [17:47:13]CommunicateWithHost lk.salyk.kg:30040 [17:47:13]ConnectInit lk.salyk.kg [17:47:13]Write i2c OK [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: 01 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: 01 07 00 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: 01 07 00 02 19 00 00 00 00 00 FF 0F 30 [17:47:13]RasterBufferAndPrint [17:47:13]line Счет N : (3)127203 [17:47:13]line ИНН: 02508201610067 [17:47:13]line Контрольно-Кассовый Чек [17:47:13]line ПРОДАЖА [17:47:13]line Товар: 48743587 [17:47:13]line Сигареты Winston XStyle Silver [17:47:13]line 1.000 * 144.00 [17:47:13]line = 144.00 [17:47:13]line НДС 12% НСП 1% [17:47:13]line > о реализуемом товаре [17:47:13]line ИТОГО: 144.00 [17:47:13]line НСП 1% : 1.27 [17:47:13]line НДС 12% : 15.29 [17:47:13]line Наличными: 0.00 [17:47:13]line Безнал.: 144.00 [17:47:13]line Место: АЗС № 163 "Партнер Нефть" [17:47:13]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [17:47:13]line СНО: Общий режим [17:47:13]line Чек 93 20.10.2024 17:47 [17:47:13]line Смена: 526 ФФД: 1.0 [17:47:13]line ЗНМ: 0300000101 [17:47:13]line РНМ: 0000000000091770 [17:47:13]line Версия ККМ: 001 [17:47:13]line Платежная система: Mbank [17:47:13]line ФМ: 0000000000871749 [17:47:13]line ФД: 69803 [17:47:13]line ФПД: 209421595154757 [17:47:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T174714&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69803&fm=209421595154757&tin=02508201610067®Number=0000000000091770&sum=14400 [17:47:13]Connected sock=10 [17:47:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 18 64 1F 01 88 96 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 22 42 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AB 10 01 00 35 04 06 00 BE 77 C3 C9 99 45 59 86 16 F1 75 09 49 04 [17:47:13]line 0 [17:47:13]written 0, free lines is 4095 [17:47:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 DD A1 47 00 0A A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AB 10 01 00 F4 03 04 00 A4 E7 14 67 B6 04 01 00 00 B3 93 9E 4C 8D A8 8B 3B [17:47:13]CommunicateWithHost err = 0 [17:47:13]CheckOFDResponse [17:47:13]1017 (14) - 77093643461234 [17:47:13]1041 (16) - 0000000000871749 [17:47:13]1040 (4) - 69803 [17:47:13]1012 (4) - 20.10.2024 11:21 [17:47:13]1206 (1) - 0 [17:47:13]OFD Sender: Remove packet 69803 [17:47:13]ProducePacketName [17:47:13]name=ofd_packets/00069803 [17:47:13]NVStorageDeleteData [17:47:13]Write to MH i2c: 01 00 00 2C 19 45 [17:47:13]Write i2c OK [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: 01 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: 01 07 00 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: 01 07 00 2C 19 00 00 00 00 00 D3 0C 2B [17:47:13]RasterBufferAndPrint [17:47:13]line [17:47:13]line [17:47:13]line [17:47:13]line [17:47:13]line [17:47:13]written 0, free lines is 3289 [17:47:13]MH_Cut [17:47:13]Write to MH i2c: D1 01 00 33 19 01 1E [17:47:13]Write i2c OK [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: D1 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: D1 01 00 [17:47:13]MH_I2C_Read... [17:47:13]Read from MH i2c: D1 01 00 33 19 00 1D [17:47:14]Write to MH i2c: 01 00 00 34 19 4D [17:47:14]Write i2c OK [17:47:14]MH_I2C_Read... [17:47:14]OFD Sender: No OFD packet to send [17:47:14]*** Cut start [17:47:14]*** Partial cut [17:47:14]*** CUTSNS_PIN = 1 [17:47:14]*** CUTSNS_PIN = 0 [17:47:15]*** Brake cut motor [17:47:15]Read from MH i2c: 01 [17:47:15]MH_I2C_Read... [17:47:15]*** Stop cut motor [17:47:15]*** Cut end [17:47:15]Read from MH i2c: 01 07 00 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: 01 07 00 34 19 00 00 00 00 00 FF 0F 62 [17:47:15]process_action close_receipt done [17:47:15]requested_data is exist [17:47:15]produce_requested_data [17:47:15]requested_item fm.sn is exist - process it [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 35 19 80 11 00 00 00 00 00 00 C8 [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:15]Read from MH i2c: E2 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 17 00 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 17 00 35 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 1F [17:47:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [17:47:15]wFMCommunicate OK [17:47:15]requested_item fd.num is exist - process it [17:47:15]SAM_PROTO_GetFieldsCounters [17:47:15]wFMCommunicate request_size=4 [17:47:15]MH_SAM_APDU [17:47:15]CAPDU: 80 13 00 00 [17:47:15]Write to MH i2c: E2 08 00 36 19 80 13 00 00 00 00 00 00 CB [17:47:15]Write i2c OK [17:47:15]MH_I2C_Read... [17:47:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:15]Read from MH i2c: E2 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 62 00 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 62 00 36 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 AB 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [17:47: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 AB 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:15]wFMCommunicate OK [17:47:15]SAM_PROTO_GetFieldsCounters done [17:47:15]requested_item shift.num is exist - process it [17:47:15]requested_item shift.opened is exist - process it [17:47:15]req_shift_opened [17:47:15]FM_GetShiftState [17:47:15]SAM_PROTO_GetShiftState [17:47:15]wFMCommunicate request_size=4 [17:47:15]MH_SAM_APDU [17:47:15]CAPDU: 80 13 01 00 [17:47:15]Write to MH i2c: E2 08 00 37 19 80 13 01 00 00 00 00 00 CD [17:47:15]Write i2c OK [17:47:15]MH_I2C_Read... [17:47:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:15]Read from MH i2c: E2 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 0E 00 [17:47:15]MH_I2C_Read... [17:47:15]Read from MH i2c: E2 0E 00 37 19 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 5F [17:47:15]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [17:47:15]wFMCommunicate OK [17:47:15]SAM_PROTO_GetShiftState done [17:47:15]FM_GetShiftState done [17:47:15]req_shift_opened done [17:47:15]requested_item shift.open_date is exist - process it [17:47:15]req_shift_open_date [17:47:15]req_shift_open_date done [17:47:15]produce_requested_data done [17:47:15]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69803,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [17:47:15]process_action_free close_receipt [17:47:15]json_value_free [17:47:15]json_value_free done [17:47:15]process_json_proto returns [17:47:15]Send response to host [17:47:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69803,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [17:47:15]free response buf [17:47:15]execute_script done [17:47:15]execute_script returns [17:47:15]free content buf [17:47:15]Sock 9.Close socket [17:47:15]Sock 9.Thread stoped [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:54]OFD Sender: No OFD packet to send [17:50:59]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:29]OFD Sender: No OFD packet to send [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]OFD Sender: No OFD packet to send [18:05:35]OFD Sender: No OFD packet to send [18:05:40]OFD Sender: No OFD packet to send [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:55]OFD Sender: No OFD packet to send [18:06:00]OFD Sender: No OFD packet to send [18:06:05]OFD Sender: No OFD packet to send [18:06:10]OFD Sender: No OFD packet to send [18:06:15]OFD Sender: No OFD packet to send [18:06:20]OFD Sender: No OFD packet to send [18:06:25]OFD Sender: No OFD packet to send [18:06:30]OFD Sender: No OFD packet to send [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:25]OFD Sender: No OFD packet to send [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:05]OFD Sender: No OFD packet to send [18:10:10]OFD Sender: No OFD packet to send [18:10:15]OFD Sender: No OFD packet to send [18:10:20]OFD Sender: No OFD packet to send [18:10:25]OFD Sender: No OFD packet to send [18:10:30]OFD Sender: No OFD packet to send [18:10:35]OFD Sender: No OFD packet to send [18:10:40]OFD Sender: No OFD packet to send [18:10:45]OFD Sender: No OFD packet to send [18:10:50]OFD Sender: No OFD packet to send [18:10:55]OFD Sender: No OFD packet to send [18:11:00]OFD Sender: No OFD packet to send [18:11:05]OFD Sender: No OFD packet to send [18:11:10]OFD Sender: No OFD packet to send [18:11:15]OFD Sender: No OFD packet to send [18:11:20]OFD Sender: No OFD packet to send [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:10]OFD Sender: No OFD packet to send [18:12:15]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:25]OFD Sender: No OFD packet to send [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:40]OFD Sender: No OFD packet to send [18:12:45]OFD Sender: No OFD packet to send [18:12:50]OFD Sender: No OFD packet to send [18:12:55]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:40]OFD Sender: No OFD packet to send [18:13:45]OFD Sender: No OFD packet to send [18:13:50]OFD Sender: No OFD packet to send [18:13:55]OFD Sender: No OFD packet to send [18:14:00]OFD Sender: No OFD packet to send [18:14:05]OFD Sender: No OFD packet to send [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:02]accept exits with 7 [18:17:02]New connection [18:17:02]New thread 3066629476 created [18:17:02]Thread 3066486116 joined [18:17:02]Waiting for new connection... [18:17:02] Sock 7.Parse request [18:17:02]Sock 7.Check first char [18:17:02]Sock 7.First char is OK [18:17:02]request: POST /json_proto HTTP/1.0 [18:17:02]Method: POST [18:17:02]URL: /json_proto [18:17:02]Method is POST - this is cgi request [18:17:02]url: /json_proto [18:17:02]query_string will be loaded in cgi processing [18:17:02]execute_cgi json_proto POST (null) [18:17:02]execute_cgi path=json_proto method=POST [18:17:02]POST find Content-Length [18:17:02]Host: 172.17.52.196:8080 [18:17:02]Content-Length: 672 [18:17:02]Content-Type: application/json [18:17:02] [18:17:02]POST finish read [18:17:02]Found Content-Length = 672 [18:17:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127204", "tax_sys" : 0, "items" : [ { "code": "4630007400662", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:02]execute_script... [18:17:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127204", "tax_sys" : 0, "items" : [ { "code": "4630007400662", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:02]POST & json_proto [18:17:02]process_json_proto [18:17:02]json parsed OK: [18:17:02]protocol is kg_v1.0 [18:17:02]action value=close_receipt [18:17:02]process_action close_receipt [18:17:02]cmd_close_receipt [18:17:02]MH_GetDate [18:17:02]Write to MH i2c: F0 00 00 38 19 40 [18:17:02]Write i2c OK [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: F0 [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: F0 09 00 [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: F0 09 00 38 19 00 21 49 15 67 60 05 E4 66 DE [18:17:02]GetLastDocTimeStamp 1729446434 [18:17:02]current date 1729448225 [18:17:02]FM_GetShiftState [18:17:02]SAM_PROTO_GetShiftState [18:17:02]wFMCommunicate request_size=4 [18:17:02]MH_SAM_APDU [18:17:02]CAPDU: 80 13 01 00 [18:17:02]Write to MH i2c: E2 08 00 39 19 80 13 01 00 00 00 00 00 CF [18:17:02]Write i2c OK [18:17:02]MH_I2C_Read... [18:17:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:02]Read from MH i2c: E2 [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: E2 0E 00 [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: E2 0E 00 39 19 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 61 [18:17:02]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [18:17:02]wFMCommunicate OK [18:17:02]SAM_PROTO_GetShiftState done [18:17:02]FM_GetShiftState done [18:17:02]opened in 1729384380 [18:17:02]opened+sec_in_day 1729470780 [18:17:02]quantity*price = 13000 [18:17:02]sum+1 = 13001 [18:17:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 94 20.10.2024 18:17 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69804 ФПД: 75383599422788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181705&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69804&fm=75383599422788&tin=02508201610067®Number=0000000000091770&sum=13000 0 [18:17:03]StoreToDocumentArchive [18:17:03]shift 526 fd 69804 [18:17:03]save to /storage/0526/doc_00069804 [18:17:03]save last doc name /storage/0526/doc_00069804 to /storage/kkm_last_doc_name [18:17:03]save OK [18:17:03]Clear old archive folders... [18:17:03]ProcessDocumentItem done err = 0, tmpTLVsize=284 [18:17:03]tlvbuf is 00A1C5D0 [18:17:03]SAM_PROTO_ClearQueue [18:17:03]wFMCommunicate request_size=4 [18:17:03]MH_SAM_APDU [18:17:03]CAPDU: 80 09 00 00 [18:17:03]Write to MH i2c: E2 08 00 46 19 80 09 00 00 00 00 00 00 D1 [18:17:03]Write i2c OK [18:17:03]MH_I2C_Read... [18:17:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:03]Read from MH i2c: E2 [18:17:03]MH_I2C_Read... [18:17:03]Read from MH i2c: E2 03 00 [18:17:03]MH_I2C_Read... [18:17:03]Read from MH i2c: E2 03 00 46 19 00 90 00 D3 [18:17:03]RAPDU: 90 00 [18:17:03]wFMCommunicate OK [18:17:03]SAM_PROTO_ClearQueue done [18:17:03]KKMCreateOFDPacket [18:17:03]OFDProtocolAddRootSTLVToBuf [18:17:03]FM_MakeSignedData [18:17:03]FM_MakeSignedData [18:17:03]SAM_PROTO_SignData [18:17:03]wFMCommunicate request_size=4 [18:17:03]MH_SAM_APDU [18:17:03]CAPDU: 80 0D 01 02 [18:17:03]Write to MH i2c: E2 08 00 47 19 80 0D 01 02 00 00 00 00 D9 [18:17:03]Write i2c OK [18:17:03]MH_I2C_Read... [18:17:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:03]Read from MH i2c: E2 [18:17:03]MH_I2C_Read... [18:17:03]Read from MH i2c: E2 03 00 [18:17:03]MH_I2C_Read... [18:17:03]Read from MH i2c: E2 03 00 47 19 00 90 00 D4 [18:17:03]RAPDU: 90 00 [18:17:03]wFMCommunicate OK [18:17:03]wFMCommunicate request_size=255 [18:17:03]MH_SAM_APDU [18:17:03]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 21 49 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 [18:17:03]Write to MH i2c: E2 02 01 48 19 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 21 49 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 00 00 42 [18:17:03]Write i2c OK [18:17:03]MH_I2C_Read... [18:17:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:03]Read from MH i2c: E2 [18:17:03]MH_I2C_Read... [18:17:03]Read from MH i2c: E2 03 00 [18:17:03]MH_I2C_Read... [18:17:03]Read from MH i2c: E2 03 00 48 19 00 90 00 D5 [18:17:03]RAPDU: 90 00 [18:17:03]wFMCommunicate OK [18:17:03]wFMCommunicate request_size=43 [18:17:03]MH_SAM_APDU [18:17:03]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AC 10 01 00 35 04 06 00 44 8F 9C AA 5D 44 [18:17:03]Write to MH i2c: E2 2E 00 49 19 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AC 10 01 00 35 04 06 00 44 8F 9C AA 5D 44 00 00 3F [18:17:03]Write i2c OK [18:17:03]MH_I2C_Read... [18:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:04]Read from MH i2c: E2 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: E2 03 00 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: E2 03 00 49 19 00 90 00 D6 [18:17:04]RAPDU: 90 00 [18:17:04]wFMCommunicate OK [18:17:04]wFMCommunicate request_size=4 [18:17:04]MH_SAM_APDU [18:17:04]CAPDU: 80 0D 03 02 [18:17:04]Write to MH i2c: E2 08 00 4A 19 80 0D 03 02 00 00 00 00 DE [18:17:04]Write i2c OK [18:17:04]MH_I2C_Read... [18:17:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:04]Read from MH i2c: E2 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: E2 0B 00 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: E2 0B 00 4A 19 00 AB 45 04 93 CE A5 8E D6 90 00 3D [18:17:04]RAPDU: AB 45 04 93 CE A5 8E D6 90 00 [18:17:04]wFMCommunicate OK [18:17:04]SAM_PROTO_SignData done [18:17:04]FM_MakeSignedData done [18:17:04]CreateOFDProtocolMessage [18:17:04]wFMCommunicate request_size=4 [18:17:04]MH_SAM_APDU [18:17:04]CAPDU: 80 11 00 00 [18:17:04]Write to MH i2c: E2 08 00 4B 19 80 11 00 00 00 00 00 00 DE [18:17:04]Write i2c OK [18:17:04]MH_I2C_Read... [18:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:04]Read from MH i2c: E2 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: E2 17 00 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: E2 17 00 4B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 35 [18:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [18:17:04]wFMCommunicate OK [18:17:04]CreateOFDProtocolMessage done [18:17:04]OFDSenderStorePacket 69804 [18:17:04]StoreOFDPacket docnum=69804 [18:17:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 30 01 00 00 C8 6F 28 01 55 51 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 21 49 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AC 10 01 00 35 04 06 00 44 8F 9C AA 5D 44 AB 45 04 93 CE A5 8E D6 [18:17:04]CheckFolder [18:17:04]dirname=/storage/ofd_packets [18:17:04]CheckFolder done [18:17:04]ProducePacketName [18:17:04]name=ofd_packets/00069804 [18:17:04]NVStorageSaveData ofd_packets/00069804 [18:17:04]File name is /storage/ofd_packets/00069804 [18:17:04]Write 334 bytes [18:17:04]NVStorageSaveData done [18:17:04]OFDSenderStorePacket done [18:17:04]KKMCreateOFDPacket done [18:17:04]NVStorageSaveData kkm_last_timestamp [18:17:04]File name is /storage/kkm_last_timestamp [18:17:04]OFD Sender: Processing packet 69804 [packets to send 32, broken 31] [18:17:04]ProducePacketName [18:17:04]name=ofd_packets/00069804 [18:17:04]OFD Sender: To server: pG, [18:17:04]CommunicateWithHost lk.salyk.kg:30040 [18:17:04]ConnectInit lk.salyk.kg [18:17:04]Write 4 bytes [18:17:04]NVStorageSaveData done [18:17:04]ExternCall_PrintAddStr [18:17:04]wPrintStart [18:17:04]Write to MH i2c: 01 00 00 4C 19 65 [18:17:04]Write i2c OK [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: 01 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: 01 07 00 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: 01 07 00 4C 19 00 00 00 00 00 FF 0F 7A [18:17:04]RasterBufferAndPrint [18:17:04]line Счет N : (3)127204 [18:17:04]line ИНН: 02508201610067 [18:17:04]line Контрольно-Кассовый Чек [18:17:04]line ПРОДАЖА [18:17:04]line Товар: 4630007400662 [18:17:04]line Семечки ДЖИНН 140г синий [18:17:04]line 1.000 * 130.00 [18:17:04]line = 130.00 [18:17:04]line НДС 12% НСП 1% [18:17:04]line > о реализуемом товаре [18:17:04]line ИТОГО: 130.00 [18:17:04]line НСП 1% : 1.15 [18:17:04]line НДС 12% : 13.80 [18:17:04]line Наличными: 130.00 [18:17:04]line Безнал.: 0.00 [18:17:04]line Место: АЗС № 163 "Партнер Нефть" [18:17:04]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [18:17:04]line СНО: Общий режим [18:17:04]line Чек 94 20.10.2024 18:17 [18:17:04]line Смена: 526 ФФД: 1.0 [18:17:04]line ЗНМ: 0300000101 [18:17:04]line РНМ: 0000000000091770 [18:17:04]line Версия ККМ: 001 [18:17:04]line ФМ: 0000000000871749 [18:17:04]line ФД: 69804 [18:17:04]line ФПД: 75383599422788 [18:17:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181705&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69804&fm=75383599422788&tin=02508201610067®Number=0000000000091770&sum=13000 [18:17:04]line 0 [18:17:04]Connected sock=11 [18:17:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 30 01 00 00 C8 6F 28 01 55 51 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 36 32 06 04 2A 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 21 49 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AC 10 01 00 35 04 06 00 44 8F 9C AA 5D 44 AB 45 04 93 CE A5 8E D6 [18:17:04]written 0, free lines is 4095 [18:17:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 1D B9 47 00 22 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 31 37 34 39 10 04 04 00 AC 10 01 00 F4 03 04 00 A3 EE 14 67 B6 04 01 00 00 76 97 72 51 4B EF 8D 8E [18:17:04]CommunicateWithHost err = 0 [18:17:04]CheckOFDResponse [18:17:04]1017 (14) - 77093643461234 [18:17:04]1041 (16) - 0000000000871749 [18:17:04]1040 (4) - 69804 [18:17:04]1012 (4) - 20.10.2024 11:50 [18:17:04]1206 (1) - 0 [18:17:04]OFD Sender: Remove packet 69804 [18:17:04]ProducePacketName [18:17:04]name=ofd_packets/00069804 [18:17:04]NVStorageDeleteData [18:17:04]Write to MH i2c: 01 00 00 74 19 8D [18:17:04]Write i2c OK [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: 01 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: 01 07 00 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: 01 07 00 74 19 00 00 00 00 00 04 0D A5 [18:17:04]RasterBufferAndPrint [18:17:04]line [18:17:04]line [18:17:04]line [18:17:04]line [18:17:04]line [18:17:04]written 0, free lines is 3340 [18:17:04]MH_Cut [18:17:04]Write to MH i2c: D1 01 00 7B 19 01 66 [18:17:04]Write i2c OK [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: D1 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: D1 01 00 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: D1 01 00 7B 19 00 65 [18:17:04]Write to MH i2c: 01 00 00 7C 19 95 [18:17:04]Write i2c OK [18:17:04]MH_I2C_Read... [18:17:05]OFD Sender: No OFD packet to send [18:17:05]*** Cut start [18:17:05]*** Partial cut [18:17:05]*** CUTSNS_PIN = 1 [18:17:05]*** CUTSNS_PIN = 0 [18:17:06]*** Brake cut motor [18:17:06]Read from MH i2c: 01 [18:17:06]MH_I2C_Read... [18:17:06]*** Stop cut motor [18:17:06]*** Cut end [18:17:06]Read from MH i2c: 01 07 00 [18:17:06]MH_I2C_Read... [18:17:06]Read from MH i2c: 01 07 00 7C 19 00 00 00 00 00 FF 0F AA [18:17:06]process_action close_receipt done [18:17:06]requested_data is exist [18:17:06]produce_requested_data [18:17:06]requested_item fm.sn is exist - process it [18:17:06]wFMCommunicate request_size=4 [18:17:06]MH_SAM_APDU [18:17:06]CAPDU: 80 11 00 00 [18:17:06]Write to MH i2c: E2 08 00 7D 19 80 11 00 00 00 00 00 00 10 [18:17:06]Write i2c OK [18:17:06]MH_I2C_Read... [18:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:06]Read from MH i2c: E2 [18:17:06]MH_I2C_Read... [18:17:06]Read from MH i2c: E2 17 00 [18:17:06]MH_I2C_Read... [18:17:06]Read from MH i2c: E2 17 00 7D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 67 [18:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [18:17:06]wFMCommunicate OK [18:17:06]requested_item fd.num is exist - process it [18:17:06]SAM_PROTO_GetFieldsCounters [18:17:06]wFMCommunicate request_size=4 [18:17:06]MH_SAM_APDU [18:17:06]CAPDU: 80 13 00 00 [18:17:06]Write to MH i2c: E2 08 00 7E 19 80 13 00 00 00 00 00 00 13 [18:17:06]Write i2c OK [18:17:06]MH_I2C_Read... [18:17:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:06]Read from MH i2c: E2 [18:17:06]MH_I2C_Read... [18:17:06]Read from MH i2c: E2 62 00 [18:17:06]MH_I2C_Read... [18:17:06]Read from MH i2c: E2 62 00 7E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 AC 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [18: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 AC 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:06]wFMCommunicate OK [18:17:06]SAM_PROTO_GetFieldsCounters done [18:17:06]requested_item shift.num is exist - process it [18:17:06]requested_item shift.opened is exist - process it [18:17:06]req_shift_opened [18:17:06]FM_GetShiftState [18:17:06]SAM_PROTO_GetShiftState [18:17:06]wFMCommunicate request_size=4 [18:17:06]MH_SAM_APDU [18:17:06]CAPDU: 80 13 01 00 [18:17:06]Write to MH i2c: E2 08 00 7F 19 80 13 01 00 00 00 00 00 15 [18:17:06]Write i2c OK [18:17:06]MH_I2C_Read... [18:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:06]Read from MH i2c: E2 [18:17:06]MH_I2C_Read... [18:17:06]Read from MH i2c: E2 0E 00 [18:17:06]MH_I2C_Read... [18:17:06]Read from MH i2c: E2 0E 00 7F 19 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 A7 [18:17:06]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [18:17:06]wFMCommunicate OK [18:17:06]SAM_PROTO_GetShiftState done [18:17:06]FM_GetShiftState done [18:17:06]req_shift_opened done [18:17:06]requested_item shift.open_date is exist - process it [18:17:06]req_shift_open_date [18:17:06]req_shift_open_date done [18:17:06]produce_requested_data done [18:17:06]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69804,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [18:17:06]process_action_free close_receipt [18:17:06]json_value_free [18:17:06]json_value_free done [18:17:06]process_json_proto returns [18:17:06]Send response to host [18:17:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69804,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [18:17:06]free response buf [18:17:06]execute_script done [18:17:06]execute_script returns [18:17:06]free content buf [18:17:06]Sock 7.Close socket [18:17:06]Sock 7.Thread stoped [18:17:08]accept exits with 9 [18:17:08]New connection [18:17:08]New thread 3066486116 created [18:17:08]Thread 3066629476 joined [18:17:08]Waiting for new connection... [18:17:08] Sock 9.Parse request [18:17:08]Sock 9.Check first char [18:17:08]Sock 9.First char is OK [18:17:08]request: POST /json_proto HTTP/1.0 [18:17:08]Method: POST [18:17:08]URL: /json_proto [18:17:08]Method is POST - this is cgi request [18:17:08]url: /json_proto [18:17:08]query_string will be loaded in cgi processing [18:17:08]execute_cgi json_proto POST (null) [18:17:08]execute_cgi path=json_proto method=POST [18:17:08]POST find Content-Length [18:17:08]Host: 172.17.52.196:8080 [18:17:08]Content-Length: 623 [18:17:08]Content-Type: application/json [18:17:08] [18:17:08]POST finish read [18:17:08]Found Content-Length = 623 [18:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127205", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:08]execute_script... [18:17:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127205", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:08]POST & json_proto [18:17:08]process_json_proto [18:17:08]json parsed OK: [18:17:08]protocol is kg_v1.0 [18:17:08]action value=close_receipt [18:17:08]process_action close_receipt [18:17:08]cmd_close_receipt [18:17:08]MH_GetDate [18:17:08]Write to MH i2c: F0 00 00 80 19 88 [18:17:08]Write i2c OK [18:17:08]MH_I2C_Read... [18:17:08]Read from MH i2c: F0 [18:17:08]MH_I2C_Read... [18:17:08]Read from MH i2c: F0 09 00 [18:17:08]MH_I2C_Read... [18:17:08]Read from MH i2c: F0 09 00 80 19 00 27 49 15 67 60 05 E4 66 2C [18:17:08]GetLastDocTimeStamp 1729448225 [18:17:08]current date 1729448231 [18:17:08]FM_GetShiftState [18:17:08]SAM_PROTO_GetShiftState [18:17:08]wFMCommunicate request_size=4 [18:17:08]MH_SAM_APDU [18:17:08]CAPDU: 80 13 01 00 [18:17:08]Write to MH i2c: E2 08 00 81 19 80 13 01 00 00 00 00 00 17 [18:17:08]Write i2c OK [18:17:08]MH_I2C_Read... [18:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:08]Read from MH i2c: E2 [18:17:08]MH_I2C_Read... [18:17:08]Read from MH i2c: E2 0E 00 [18:17:08]MH_I2C_Read... [18:17:08]Read from MH i2c: E2 0E 00 81 19 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 A9 [18:17:08]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [18:17:08]wFMCommunicate OK [18:17:08]SAM_PROTO_GetShiftState done [18:17:08]FM_GetShiftState done [18:17:08]opened in 1729384380 [18:17:08]opened+sec_in_day 1729470780 [18:17:08]quantity*price = 14400 [18:17:08]sum+1 = 14401 [18:17:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 95 20.10.2024 18:17 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69805 ФПД: 186444763574267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181711&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69805&fm=186444763574267&tin=02508201610067®Number=0000000000091770&sum=14400 0 [18:17:09]StoreToDocumentArchive [18:17:09]shift 526 fd 69805 [18:17:09]save to /storage/0526/doc_00069805 [18:17:09]save last doc name /storage/0526/doc_00069805 to /storage/kkm_last_doc_name [18:17:09]save OK [18:17:09]Clear old archive folders... [18:17:09]ProcessDocumentItem done err = 0, tmpTLVsize=275 [18:17:09]tlvbuf is 009A3AD0 [18:17:09]SAM_PROTO_ClearQueue [18:17:09]wFMCommunicate request_size=4 [18:17:09]MH_SAM_APDU [18:17:09]CAPDU: 80 09 00 00 [18:17:09]Write to MH i2c: E2 08 00 8E 19 80 09 00 00 00 00 00 00 19 [18:17:09]Write i2c OK [18:17:09]MH_I2C_Read... [18:17:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:09]Read from MH i2c: E2 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 03 00 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 03 00 8E 19 00 90 00 1B [18:17:09]RAPDU: 90 00 [18:17:09]wFMCommunicate OK [18:17:09]SAM_PROTO_ClearQueue done [18:17:09]KKMCreateOFDPacket [18:17:09]OFDProtocolAddRootSTLVToBuf [18:17:09]FM_MakeSignedData [18:17:09]FM_MakeSignedData [18:17:09]SAM_PROTO_SignData [18:17:09]wFMCommunicate request_size=4 [18:17:09]MH_SAM_APDU [18:17:09]CAPDU: 80 0D 01 02 [18:17:09]Write to MH i2c: E2 08 00 8F 19 80 0D 01 02 00 00 00 00 21 [18:17:09]Write i2c OK [18:17:09]MH_I2C_Read... [18:17:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:09]Read from MH i2c: E2 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 03 00 [18:17:09]MH_I2C_Read... [18:17:09]Read from MH i2c: E2 03 00 8F 19 00 90 00 1C [18:17:09]RAPDU: 90 00 [18:17:09]wFMCommunicate OK [18:17:09]wFMCommunicate request_size=255 [18:17:09]MH_SAM_APDU [18:17:09]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 27 49 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 [18:17:09]Write to MH i2c: E2 02 01 90 19 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 27 49 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 00 00 80 [18:17:09]Write i2c OK [18:17:09]MH_I2C_Read... [18:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:10]Read from MH i2c: E2 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: E2 03 00 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: E2 03 00 90 19 00 90 00 1D [18:17:10]RAPDU: 90 00 [18:17:10]wFMCommunicate OK [18:17:10]wFMCommunicate request_size=34 [18:17:10]MH_SAM_APDU [18:17:10]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AD 10 01 00 35 04 06 00 A9 92 0D E7 2F FB [18:17:10]Write to MH i2c: E2 25 00 91 19 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AD 10 01 00 35 04 06 00 A9 92 0D E7 2F FB 00 00 00 [18:17:10]Write i2c OK [18:17:10]MH_I2C_Read... [18:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:10]Read from MH i2c: E2 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: E2 03 00 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: E2 03 00 91 19 00 90 00 1E [18:17:10]RAPDU: 90 00 [18:17:10]wFMCommunicate OK [18:17:10]wFMCommunicate request_size=4 [18:17:10]MH_SAM_APDU [18:17:10]CAPDU: 80 0D 03 02 [18:17:10]Write to MH i2c: E2 08 00 92 19 80 0D 03 02 00 00 00 00 26 [18:17:10]Write i2c OK [18:17:10]MH_I2C_Read... [18:17:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:10]Read from MH i2c: E2 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: E2 0B 00 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: E2 0B 00 92 19 00 C9 ED DE 7E CF 59 96 F6 90 00 ED [18:17:10]RAPDU: C9 ED DE 7E CF 59 96 F6 90 00 [18:17:10]wFMCommunicate OK [18:17:10]SAM_PROTO_SignData done [18:17:10]FM_MakeSignedData done [18:17:10]CreateOFDProtocolMessage [18:17:10]wFMCommunicate request_size=4 [18:17:10]MH_SAM_APDU [18:17:10]CAPDU: 80 11 00 00 [18:17:10]Write to MH i2c: E2 08 00 93 19 80 11 00 00 00 00 00 00 26 [18:17:10]OFD Sender: No OFD packet to send [18:17:10]Write i2c OK [18:17:10]MH_I2C_Read... [18:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:10]Read from MH i2c: E2 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: E2 17 00 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: E2 17 00 93 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 7D [18:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [18:17:10]wFMCommunicate OK [18:17:10]CreateOFDProtocolMessage done [18:17:10]OFDSenderStorePacket 69805 [18:17:10]StoreOFDPacket docnum=69805 [18:17:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 73 F0 1F 01 36 13 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 27 49 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AD 10 01 00 35 04 06 00 A9 92 0D E7 2F FB C9 ED DE 7E CF 59 96 F6 [18:17:10]CheckFolder [18:17:10]dirname=/storage/ofd_packets [18:17:10]CheckFolder done [18:17:10]ProducePacketName [18:17:10]name=ofd_packets/00069805 [18:17:10]NVStorageSaveData ofd_packets/00069805 [18:17:10]File name is /storage/ofd_packets/00069805 [18:17:10]Write 325 bytes [18:17:10]NVStorageSaveData done [18:17:10]OFDSenderStorePacket done [18:17:10]KKMCreateOFDPacket done [18:17:10]NVStorageSaveData kkm_last_timestamp [18:17:10]File name is /storage/kkm_last_timestamp [18:17:10]Write 4 bytes [18:17:10]NVStorageSaveData done [18:17:10]ExternCall_PrintAddStr [18:17:10]wPrintStart [18:17:10]Write to MH i2c: 01 00 00 94 19 AD [18:17:10]Write i2c OK [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: 01 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: 01 07 00 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: 01 07 00 94 19 00 00 00 00 00 FF 0F C2 [18:17:10]RasterBufferAndPrint [18:17:10]line Счет N : (3)127205 [18:17:10]line ИНН: 02508201610067 [18:17:10]line Контрольно-Кассовый Чек [18:17:10]line ПРОДАЖА [18:17:10]line Товар: 48743587 [18:17:10]line Сигареты Winston XStyle Silver [18:17:10]line 1.000 * 144.00 [18:17:10]line = 144.00 [18:17:10]line НДС 12% НСП 1% [18:17:10]line > о реализуемом товаре [18:17:10]line ИТОГО: 144.00 [18:17:10]line НСП 1% : 1.27 [18:17:10]line НДС 12% : 15.29 [18:17:10]line Наличными: 144.00 [18:17:10]line Безнал.: 0.00 [18:17:10]line Место: АЗС № 163 "Партнер Нефть" [18:17:10]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [18:17:10]line СНО: Общий режим [18:17:10]line Чек 95 20.10.2024 18:17 [18:17:10]line Смена: 526 ФФД: 1.0 [18:17:10]line ЗНМ: 0300000101 [18:17:10]line РНМ: 0000000000091770 [18:17:10]line Версия ККМ: 001 [18:17:10]line ФМ: 0000000000871749 [18:17:10]line ФД: 69805 [18:17:10]line ФПД: 186444763574267 [18:17:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T181711&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69805&fm=186444763574267&tin=02508201610067®Number=0000000000091770&sum=14400 [18:17:10]line 0 [18:17:10]written 0, free lines is 4095 [18:17:10]OFD Sender: Processing packet 69805 [packets to send 32, broken 31] [18:17:10]ProducePacketName [18:17:10]name=ofd_packets/00069805 [18:17:10]OFD Sender: To server: pG, [18:17:10]CommunicateWithHost lk.salyk.kg:30040 [18:17:10]ConnectInit lk.salyk.kg [18:17:10]Connected sock=11 [18:17:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 73 F0 1F 01 36 13 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 27 49 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AD 10 01 00 35 04 06 00 A9 92 0D E7 2F FB C9 ED DE 7E CF 59 96 F6 [18:17:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 CC 1C 47 00 B9 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AD 10 01 00 F4 03 04 00 A9 EE 14 67 B6 04 01 00 00 68 4B 49 C9 19 59 FF CF [18:17:10]CommunicateWithHost err = 0 [18:17:10]CheckOFDResponse [18:17:10]1017 (14) - 77093643461234 [18:17:10]1041 (16) - 0000000000871749 [18:17:10]1040 (4) - 69805 [18:17:10]1012 (4) - 20.10.2024 11:51 [18:17:10]1206 (1) - 0 [18:17:10]OFD Sender: Remove packet 69805 [18:17:10]ProducePacketName [18:17:10]name=ofd_packets/00069805 [18:17:10]NVStorageDeleteData [18:17:10]Write to MH i2c: 01 00 00 BD 19 D6 [18:17:10]Write i2c OK [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: 01 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: 01 07 00 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: 01 07 00 BD 19 00 00 00 00 00 F1 0C DA [18:17:10]RasterBufferAndPrint [18:17:10]line [18:17:10]line [18:17:10]line [18:17:10]line [18:17:10]line [18:17:10]written 0, free lines is 3323 [18:17:10]MH_Cut [18:17:10]Write to MH i2c: D1 01 00 C4 19 01 AF [18:17:10]Write i2c OK [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: D1 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: D1 01 00 [18:17:10]MH_I2C_Read... [18:17:10]Read from MH i2c: D1 01 00 C4 19 00 AE [18:17:10]Write to MH i2c: 01 00 00 C5 19 DE [18:17:10]Write i2c OK [18:17:10]MH_I2C_Read... [18:17:11]OFD Sender: No OFD packet to send [18:17:11]*** Cut start [18:17:11]*** Partial cut [18:17:11]*** CUTSNS_PIN = 1 [18:17:11]*** CUTSNS_PIN = 0 [18:17:11]*** Brake cut motor [18:17:12]Read from MH i2c: 01 [18:17:12]MH_I2C_Read... [18:17:12]*** Stop cut motor [18:17:12]*** Cut end [18:17:12]Read from MH i2c: 01 07 00 [18:17:12]MH_I2C_Read... [18:17:12]Read from MH i2c: 01 07 00 C5 19 00 00 00 00 00 FF 0F F3 [18:17:12]process_action close_receipt done [18:17:12]requested_data is exist [18:17:12]produce_requested_data [18:17:12]requested_item fm.sn is exist - process it [18:17:12]wFMCommunicate request_size=4 [18:17:12]MH_SAM_APDU [18:17:12]CAPDU: 80 11 00 00 [18:17:12]Write to MH i2c: E2 08 00 C6 19 80 11 00 00 00 00 00 00 59 [18:17:12]Write i2c OK [18:17:12]MH_I2C_Read... [18:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:12]Read from MH i2c: E2 [18:17:12]MH_I2C_Read... [18:17:12]Read from MH i2c: E2 17 00 [18:17:12]MH_I2C_Read... [18:17:12]Read from MH i2c: E2 17 00 C6 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 B0 [18:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [18:17:12]wFMCommunicate OK [18:17:12]requested_item fd.num is exist - process it [18:17:12]SAM_PROTO_GetFieldsCounters [18:17:12]wFMCommunicate request_size=4 [18:17:12]MH_SAM_APDU [18:17:12]CAPDU: 80 13 00 00 [18:17:12]Write to MH i2c: E2 08 00 C7 19 80 13 00 00 00 00 00 00 5C [18:17:12]Write i2c OK [18:17:12]MH_I2C_Read... [18:17:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:12]Read from MH i2c: E2 [18:17:12]MH_I2C_Read... [18:17:12]Read from MH i2c: E2 62 00 [18:17:12]MH_I2C_Read... [18:17:12]Read from MH i2c: E2 62 00 C7 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 AD 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [18:17:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 AD 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:12]wFMCommunicate OK [18:17:12]SAM_PROTO_GetFieldsCounters done [18:17:12]requested_item shift.num is exist - process it [18:17:12]requested_item shift.opened is exist - process it [18:17:12]req_shift_opened [18:17:12]FM_GetShiftState [18:17:12]SAM_PROTO_GetShiftState [18:17:12]wFMCommunicate request_size=4 [18:17:12]MH_SAM_APDU [18:17:12]CAPDU: 80 13 01 00 [18:17:12]Write to MH i2c: E2 08 00 C8 19 80 13 01 00 00 00 00 00 5E [18:17:12]Write i2c OK [18:17:12]MH_I2C_Read... [18:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:12]Read from MH i2c: E2 [18:17:12]MH_I2C_Read... [18:17:12]Read from MH i2c: E2 0E 00 [18:17:12]MH_I2C_Read... [18:17:12]Read from MH i2c: E2 0E 00 C8 19 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 F0 [18:17:12]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [18:17:12]wFMCommunicate OK [18:17:12]SAM_PROTO_GetShiftState done [18:17:12]FM_GetShiftState done [18:17:12]req_shift_opened done [18:17:12]requested_item shift.open_date is exist - process it [18:17:12]req_shift_open_date [18:17:12]req_shift_open_date done [18:17:12]produce_requested_data done [18:17:12]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69805,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [18:17:12]process_action_free close_receipt [18:17:12]json_value_free [18:17:12]json_value_free done [18:17:12]process_json_proto returns [18:17:12]Send response to host [18:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69805,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [18:17:12]free response buf [18:17:12]execute_script done [18:17:12]execute_script returns [18:17:12]free content buf [18:17:12]Sock 9.Close socket [18:17:12]Sock 9.Thread stoped [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:41]accept exits with 7 [18:20:41]New connection [18:20:41]New thread 3066629476 created [18:20:41]Thread 3066486116 joined [18:20:41]Waiting for new connection... [18:20:41] Sock 7.Parse request [18:20:41]Sock 7.Check first char [18:20:41]Sock 7.First char is OK [18:20:41]request: POST /json_proto HTTP/1.0 [18:20:41]Method: POST [18:20:41]URL: /json_proto [18:20:41]Method is POST - this is cgi request [18:20:41]url: /json_proto [18:20:41]query_string will be loaded in cgi processing [18:20:41]execute_cgi json_proto POST (null) [18:20:41]execute_cgi path=json_proto method=POST [18:20:41]POST find Content-Length [18:20:41]Host: 172.17.52.196:8080 [18:20:41]Content-Length: 624 [18:20:41]Content-Type: application/json [18:20:41] [18:20:41]POST finish read [18:20:41]Found Content-Length = 624 [18:20:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127206", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:41]execute_script... [18:20:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127206", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:41]POST & json_proto [18:20:41]process_json_proto [18:20:41]json parsed OK: [18:20:41]protocol is kg_v1.0 [18:20:41]action value=close_receipt [18:20:41]process_action close_receipt [18:20:41]cmd_close_receipt [18:20:41]MH_GetDate [18:20:41]Write to MH i2c: F0 00 00 C9 19 D1 [18:20:41]Write i2c OK [18:20:41]MH_I2C_Read... [18:20:41]Read from MH i2c: F0 [18:20:41]MH_I2C_Read... [18:20:41]Read from MH i2c: F0 09 00 [18:20:41]MH_I2C_Read... [18:20:41]Read from MH i2c: F0 09 00 C9 19 00 FC 49 15 67 60 05 E4 66 4A [18:20:41]GetLastDocTimeStamp 1729448231 [18:20:41]current date 1729448444 [18:20:41]FM_GetShiftState [18:20:41]SAM_PROTO_GetShiftState [18:20:41]wFMCommunicate request_size=4 [18:20:41]MH_SAM_APDU [18:20:41]CAPDU: 80 13 01 00 [18:20:41]Write to MH i2c: E2 08 00 CA 19 80 13 01 00 00 00 00 00 60 [18:20:41]Write i2c OK [18:20:41]MH_I2C_Read... [18:20:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:41]Read from MH i2c: E2 [18:20:41]MH_I2C_Read... [18:20:41]Read from MH i2c: E2 0E 00 [18:20:41]MH_I2C_Read... [18:20:41]Read from MH i2c: E2 0E 00 CA 19 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 F2 [18:20:41]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [18:20:41]wFMCommunicate OK [18:20:41]SAM_PROTO_GetShiftState done [18:20:41]FM_GetShiftState done [18:20:41]opened in 1729384380 [18:20:41]opened+sec_in_day 1729470780 [18:20:41]quantity*price = 14700 [18:20:41]sum+1 = 14701 [18:20:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 147.00 НСП 1% : 1.30 НДС 12% : 15.61 Наличными: 147.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 96 20.10.2024 18:20 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69806 ФПД: 109509902945931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182044&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69806&fm=109509902945931&tin=02508201610067®Number=0000000000091770&sum=14700 0 [18:20:42]StoreToDocumentArchive [18:20:42]shift 526 fd 69806 [18:20:42]save to /storage/0526/doc_00069806 [18:20:42]save last doc name /storage/0526/doc_00069806 to /storage/kkm_last_doc_name [18:20:42]save OK [18:20:42]Clear old archive folders... [18:20:42]ProcessDocumentItem done err = 0, tmpTLVsize=276 [18:20:42]tlvbuf is 0097A840 [18:20:42]SAM_PROTO_ClearQueue [18:20:42]wFMCommunicate request_size=4 [18:20:42]MH_SAM_APDU [18:20:42]CAPDU: 80 09 00 00 [18:20:42]Write to MH i2c: E2 08 00 D7 19 80 09 00 00 00 00 00 00 62 [18:20:42]Write i2c OK [18:20:42]MH_I2C_Read... [18:20:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:42]Read from MH i2c: E2 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 03 00 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 03 00 D7 19 00 90 00 64 [18:20:42]RAPDU: 90 00 [18:20:42]wFMCommunicate OK [18:20:42]SAM_PROTO_ClearQueue done [18:20:42]KKMCreateOFDPacket [18:20:42]OFDProtocolAddRootSTLVToBuf [18:20:42]FM_MakeSignedData [18:20:42]FM_MakeSignedData [18:20:42]SAM_PROTO_SignData [18:20:42]wFMCommunicate request_size=4 [18:20:42]MH_SAM_APDU [18:20:42]CAPDU: 80 0D 01 02 [18:20:42]Write to MH i2c: E2 08 00 D8 19 80 0D 01 02 00 00 00 00 6A [18:20:42]Write i2c OK [18:20:42]MH_I2C_Read... [18:20:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:42]Read from MH i2c: E2 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 03 00 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 03 00 D8 19 00 90 00 65 [18:20:42]RAPDU: 90 00 [18:20:42]wFMCommunicate OK [18:20:42]wFMCommunicate request_size=255 [18:20:42]MH_SAM_APDU [18:20:42]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 FC 49 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 [18:20:42]Write to MH i2c: E2 02 01 D9 19 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 FC 49 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 00 00 60 [18:20:42]Write i2c OK [18:20:42]MH_I2C_Read... [18:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:42]Read from MH i2c: E2 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 03 00 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 03 00 D9 19 00 90 00 66 [18:20:42]RAPDU: 90 00 [18:20:42]wFMCommunicate OK [18:20:42]wFMCommunicate request_size=35 [18:20:42]MH_SAM_APDU [18:20:42]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AE 10 01 00 35 04 06 00 63 99 42 DD 4E 8B [18:20:42]Write to MH i2c: E2 26 00 DA 19 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AE 10 01 00 35 04 06 00 63 99 42 DD 4E 8B 00 00 17 [18:20:42]Write i2c OK [18:20:42]MH_I2C_Read... [18:20:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:43]Read from MH i2c: E2 [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: E2 03 00 [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: E2 03 00 DA 19 00 90 00 67 [18:20:43]RAPDU: 90 00 [18:20:43]wFMCommunicate OK [18:20:43]wFMCommunicate request_size=4 [18:20:43]MH_SAM_APDU [18:20:43]CAPDU: 80 0D 03 02 [18:20:43]Write to MH i2c: E2 08 00 DB 19 80 0D 03 02 00 00 00 00 6F [18:20:43]Write i2c OK [18:20:43]MH_I2C_Read... [18:20:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:43]Read from MH i2c: E2 [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: E2 0B 00 [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: E2 0B 00 DB 19 00 4B 05 89 9E 98 3D 21 7F 90 00 5C [18:20:43]RAPDU: 4B 05 89 9E 98 3D 21 7F 90 00 [18:20:43]wFMCommunicate OK [18:20:43]SAM_PROTO_SignData done [18:20:43]FM_MakeSignedData done [18:20:43]CreateOFDProtocolMessage [18:20:43]wFMCommunicate request_size=4 [18:20:43]MH_SAM_APDU [18:20:43]CAPDU: 80 11 00 00 [18:20:43]Write to MH i2c: E2 08 00 DC 19 80 11 00 00 00 00 00 00 6F [18:20:43]Write i2c OK [18:20:43]MH_I2C_Read... [18:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:43]Read from MH i2c: E2 [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: E2 17 00 [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: E2 17 00 DC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 C6 [18:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [18:20:43]wFMCommunicate OK [18:20:43]CreateOFDProtocolMessage done [18:20:43]OFDSenderStorePacket 69806 [18:20:43]StoreOFDPacket docnum=69806 [18:20:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 28 01 00 00 C4 22 20 01 6A E4 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 FC 49 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AE 10 01 00 35 04 06 00 63 99 42 DD 4E 8B 4B 05 89 9E 98 3D 21 7F [18:20:43]CheckFolder [18:20:43]dirname=/storage/ofd_packets [18:20:43]CheckFolder done [18:20:43]ProducePacketName [18:20:43]name=ofd_packets/00069806 [18:20:43]NVStorageSaveData ofd_packets/00069806 [18:20:43]File name is /storage/ofd_packets/00069806 [18:20:43]Write 326 bytes [18:20:43]NVStorageSaveData done [18:20:43]OFDSenderStorePacket done [18:20:43]KKMCreateOFDPacket done [18:20:43]NVStorageSaveData kkm_last_timestamp [18:20:43]File name is /storage/kkm_last_timestamp [18:20:43]Write 4 bytes [18:20:43]NVStorageSaveData done [18:20:43]ExternCall_PrintAddStr [18:20:43]wPrintStart [18:20:43]Write to MH i2c: 01 00 00 DD 19 F6 [18:20:43]Write i2c OK [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: 01 [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: 01 07 00 [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: 01 07 00 DD 19 00 00 00 00 00 FF 0F 0B [18:20:43]RasterBufferAndPrint [18:20:43]line Счет N : (3)127206 [18:20:43]line ИНН: 02508201610067 [18:20:43]line Контрольно-Кассовый Чек [18:20:43]line ПРОДАЖА [18:20:43]line Товар: 48744683 [18:20:43]line Сигареты Winston XStyle Caster+ [18:20:43]line 1.000 * 147.00 [18:20:43]line = 147.00 [18:20:43]line НДС 12% НСП 1% [18:20:43]line > о реализуемом товаре [18:20:43]line ИТОГО: 147.00 [18:20:43]line НСП 1% : 1.30 [18:20:43]line НДС 12% : 15.61 [18:20:43]line Наличными: 147.00 [18:20:43]line Безнал.: 0.00 [18:20:43]line Место: АЗС № 163 "Партнер Нефть" [18:20:43]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [18:20:43]line СНО: Общий режим [18:20:43]line Чек 96 20.10.2024 18:20 [18:20:43]line Смена: 526 ФФД: 1.0 [18:20:43]line ЗНМ: 0300000101 [18:20:43]line РНМ: 0000000000091770 [18:20:43]line Версия ККМ: 001 [18:20:43]line ФМ: 0000000000871749 [18:20:43]line ФД: 69806 [18:20:43]line ФПД: 109509902945931 [18:20:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182044&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69806&fm=109509902945931&tin=02508201610067®Number=0000000000091770&sum=14700 [18:20:43]line 0 [18:20:43]OFD Sender: Processing packet 69806 [packets to send 32, broken 31] [18:20:43]ProducePacketName [18:20:43]name=ofd_packets/00069806 [18:20:43]OFD Sender: To server: pG, [18:20:43]CommunicateWithHost lk.salyk.kg:30040 [18:20:43]ConnectInit lk.salyk.kg [18:20:43]written 0, free lines is 4095 [18:20:43]Connected sock=10 [18:20:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 28 01 00 00 C4 22 20 01 6A E4 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 FC 49 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AE 10 01 00 35 04 06 00 63 99 42 DD 4E 8B 4B 05 89 9E 98 3D 21 7F [18:20:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 8D A2 47 00 1D B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AE 10 01 00 F4 03 04 00 7F EF 14 67 B6 04 01 00 00 08 B0 A0 CC D5 B5 A1 0A [18:20:43]CommunicateWithHost err = 0 [18:20:43]CheckOFDResponse [18:20:43]1017 (14) - 77093643461234 [18:20:43]1041 (16) - 0000000000871749 [18:20:43]1040 (4) - 69806 [18:20:43]1012 (4) - 20.10.2024 11:54 [18:20:43]1206 (1) - 0 [18:20:43]OFD Sender: Remove packet 69806 [18:20:43]ProducePacketName [18:20:43]name=ofd_packets/00069806 [18:20:43]NVStorageDeleteData [18:20:43]Write to MH i2c: 01 00 00 06 1A 20 [18:20:43]Write i2c OK [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: 01 [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: 01 07 00 [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: 01 07 00 06 1A 00 00 00 00 00 E2 0C 15 [18:20:43]RasterBufferAndPrint [18:20:43]line [18:20:43]line [18:20:43]line [18:20:43]line [18:20:43]line [18:20:43]written 0, free lines is 3304 [18:20:43]MH_Cut [18:20:43]Write to MH i2c: D1 01 00 0D 1A 01 F9 [18:20:43]Write i2c OK [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: D1 [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: D1 01 00 [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: D1 01 00 0D 1A 00 F8 [18:20:43]Write to MH i2c: 01 00 00 0E 1A 28 [18:20:43]Write i2c OK [18:20:43]MH_I2C_Read... [18:20:44]OFD Sender: No OFD packet to send [18:20:44]*** Cut start [18:20:44]*** Partial cut [18:20:44]*** CUTSNS_PIN = 1 [18:20:44]*** CUTSNS_PIN = 0 [18:20:45]*** Brake cut motor [18:20:45]Read from MH i2c: 01 [18:20:45]MH_I2C_Read... [18:20:45]*** Stop cut motor [18:20:45]*** Cut end [18:20:45]Read from MH i2c: 01 07 00 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: 01 07 00 0E 1A 00 00 00 00 00 FF 0F 3D [18:20:45]process_action close_receipt done [18:20:45]requested_data is exist [18:20:45]produce_requested_data [18:20:45]requested_item fm.sn is exist - process it [18:20:45]wFMCommunicate request_size=4 [18:20:45]MH_SAM_APDU [18:20:45]CAPDU: 80 11 00 00 [18:20:45]Write to MH i2c: E2 08 00 0F 1A 80 11 00 00 00 00 00 00 A3 [18:20:45]Write i2c OK [18:20:45]MH_I2C_Read... [18:20:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:45]Read from MH i2c: E2 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: E2 17 00 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: E2 17 00 0F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 FA [18:20:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [18:20:45]wFMCommunicate OK [18:20:45]requested_item fd.num is exist - process it [18:20:45]SAM_PROTO_GetFieldsCounters [18:20:45]wFMCommunicate request_size=4 [18:20:45]MH_SAM_APDU [18:20:45]CAPDU: 80 13 00 00 [18:20:45]Write to MH i2c: E2 08 00 10 1A 80 13 00 00 00 00 00 00 A6 [18:20:45]Write i2c OK [18:20:45]MH_I2C_Read... [18:20:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:45]Read from MH i2c: E2 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: E2 62 00 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: E2 62 00 10 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 AE 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [18:20: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 AE 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:45]wFMCommunicate OK [18:20:45]SAM_PROTO_GetFieldsCounters done [18:20:45]requested_item shift.num is exist - process it [18:20:45]requested_item shift.opened is exist - process it [18:20:45]req_shift_opened [18:20:45]FM_GetShiftState [18:20:45]SAM_PROTO_GetShiftState [18:20:45]wFMCommunicate request_size=4 [18:20:45]MH_SAM_APDU [18:20:45]CAPDU: 80 13 01 00 [18:20:45]Write to MH i2c: E2 08 00 11 1A 80 13 01 00 00 00 00 00 A8 [18:20:45]Write i2c OK [18:20:45]MH_I2C_Read... [18:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:45]Read from MH i2c: E2 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: E2 0E 00 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: E2 0E 00 11 1A 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 3A [18:20:45]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [18:20:45]wFMCommunicate OK [18:20:45]SAM_PROTO_GetShiftState done [18:20:45]FM_GetShiftState done [18:20:45]req_shift_opened done [18:20:45]requested_item shift.open_date is exist - process it [18:20:45]req_shift_open_date [18:20:45]req_shift_open_date done [18:20:45]produce_requested_data done [18:20:45]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69806,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [18:20:45]process_action_free close_receipt [18:20:45]json_value_free [18:20:45]json_value_free done [18:20:45]process_json_proto returns [18:20:45]Send response to host [18:20:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69806,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [18:20:45]free response buf [18:20:45]execute_script done [18:20:45]execute_script returns [18:20:45]free content buf [18:20:45]Sock 7.Close socket [18:20:45]Sock 7.Thread stoped [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:14]accept exits with 9 [18:22:14]New connection [18:22:14]New thread 3066486116 created [18:22:14]Thread 3066629476 joined [18:22:14]Waiting for new connection... [18:22:14] Sock 9.Parse request [18:22:14]Sock 9.Check first char [18:22:14]Sock 9.First char is OK [18:22:14]request: POST /json_proto HTTP/1.0 [18:22:14]Method: POST [18:22:14]URL: /json_proto [18:22:14]Method is POST - this is cgi request [18:22:14]url: /json_proto [18:22:14]query_string will be loaded in cgi processing [18:22:14]execute_cgi json_proto POST (null) [18:22:14]execute_cgi path=json_proto method=POST [18:22:14]POST find Content-Length [18:22:14]Host: 172.17.52.196:8080 [18:22:14]Content-Length: 928 [18:22:14]Content-Type: application/json [18:22:14] [18:22:14]POST finish read [18:22:14]Found Content-Length = 928 [18:22:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127207", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 169.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:14]execute_script... [18:22:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127207", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 169.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:14]POST & json_proto [18:22:14]process_json_proto [18:22:14]json parsed OK: [18:22:14]protocol is kg_v1.0 [18:22:14]action value=close_receipt [18:22:14]process_action close_receipt [18:22:14]cmd_close_receipt [18:22:14]MH_GetDate [18:22:14]Write to MH i2c: F0 00 00 12 1A 1B [18:22:14]Write i2c OK [18:22:14]MH_I2C_Read... [18:22:14]Read from MH i2c: F0 [18:22:14]MH_I2C_Read... [18:22:14]Read from MH i2c: F0 09 00 [18:22:14]MH_I2C_Read... [18:22:14]Read from MH i2c: F0 09 00 12 1A 00 59 4A 15 67 60 05 E4 66 F2 [18:22:14]GetLastDocTimeStamp 1729448444 [18:22:14]current date 1729448537 [18:22:14]FM_GetShiftState [18:22:14]SAM_PROTO_GetShiftState [18:22:14]wFMCommunicate request_size=4 [18:22:14]MH_SAM_APDU [18:22:14]CAPDU: 80 13 01 00 [18:22:14]Write to MH i2c: E2 08 00 13 1A 80 13 01 00 00 00 00 00 AA [18:22:14]Write i2c OK [18:22:14]MH_I2C_Read... [18:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:14]Read from MH i2c: E2 [18:22:14]MH_I2C_Read... [18:22:14]Read from MH i2c: E2 0E 00 [18:22:14]MH_I2C_Read... [18:22:14]Read from MH i2c: E2 0E 00 13 1A 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 3C [18:22:14]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [18:22:14]wFMCommunicate OK [18:22:14]SAM_PROTO_GetShiftState done [18:22:14]FM_GetShiftState done [18:22:14]opened in 1729384380 [18:22:14]opened+sec_in_day 1729470780 [18:22:14]quantity*price = 8900 [18:22:14]sum+1 = 8901 [18:22:14]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 40822426 Вода Бонаква 0,5л б/г 2.000 * 40.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 169.00 НСП 1% : 1.50 НДС 12% : 17.95 Наличными: 169.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 97 20.10.2024 18:22 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69807 ФПД: 63442134414659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182218&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69807&fm=63442134414659&tin=02508201610067®Number=0000000000091770&sum=16900 0 [18:22:15]StoreToDocumentArchive [18:22:15]shift 526 fd 69807 [18:22:15]save to /storage/0526/doc_00069807 [18:22:15]save last doc name /storage/0526/doc_00069807 to /storage/kkm_last_doc_name [18:22:15]save OK [18:22:15]Clear old archive folders... [18:22:15]ProcessDocumentItem done err = 0, tmpTLVsize=386 [18:22:15]tlvbuf is 00A04EF0 [18:22:15]SAM_PROTO_ClearQueue [18:22:15]wFMCommunicate request_size=4 [18:22:15]MH_SAM_APDU [18:22:15]CAPDU: 80 09 00 00 [18:22:15]Write to MH i2c: E2 08 00 20 1A 80 09 00 00 00 00 00 00 AC [18:22:15]Write i2c OK [18:22:15]MH_I2C_Read... [18:22:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:15]Read from MH i2c: E2 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 03 00 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 03 00 20 1A 00 90 00 AE [18:22:15]RAPDU: 90 00 [18:22:15]wFMCommunicate OK [18:22:15]SAM_PROTO_ClearQueue done [18:22:15]KKMCreateOFDPacket [18:22:15]OFDProtocolAddRootSTLVToBuf [18:22:15]FM_MakeSignedData [18:22:15]FM_MakeSignedData [18:22:15]SAM_PROTO_SignData [18:22:15]wFMCommunicate request_size=4 [18:22:15]MH_SAM_APDU [18:22:15]CAPDU: 80 0D 01 02 [18:22:15]Write to MH i2c: E2 08 00 21 1A 80 0D 01 02 00 00 00 00 B4 [18:22:15]Write i2c OK [18:22:15]MH_I2C_Read... [18:22:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:15]Read from MH i2c: E2 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 03 00 [18:22:15]MH_I2C_Read... [18:22:15]Read from MH i2c: E2 03 00 21 1A 00 90 00 AF [18:22:15]RAPDU: 90 00 [18:22:15]wFMCommunicate OK [18:22:15]wFMCommunicate request_size=255 [18:22:15]MH_SAM_APDU [18:22:15]CAPDU: 80 0D 02 02 FA 03 00 82 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [18:22:15]Write to MH i2c: E2 02 01 22 1A 80 0D 02 02 FA 00 03 00 82 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 57 [18:22:15]Write i2c OK [18:22:15]MH_I2C_Read... [18:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:16]Read from MH i2c: E2 [18:22:16]MH_I2C_Read... [18:22:16]Read from MH i2c: E2 03 00 [18:22:16]MH_I2C_Read... [18:22:16]Read from MH i2c: E2 03 00 22 1A 00 90 00 B0 [18:22:16]RAPDU: 90 00 [18:22:16]wFMCommunicate OK [18:22:16]wFMCommunicate request_size=145 [18:22:16]MH_SAM_APDU [18:22:16]CAPDU: 80 0D 02 02 8C 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 07 00 00 00 00 07 04 06 00 04 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 5A 4A 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AF 10 01 00 35 04 06 00 39 B3 45 E2 B5 43 [18:22:16]Write to MH i2c: E2 94 00 23 1A 80 0D 02 02 8C 00 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 07 00 00 00 00 07 04 06 00 04 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 5A 4A 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AF 10 01 00 35 04 06 00 39 B3 45 E2 B5 43 00 00 47 [18:22:16]Write i2c OK [18:22:16]MH_I2C_Read... [18:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:16]Read from MH i2c: E2 [18:22:16]MH_I2C_Read... [18:22:16]Read from MH i2c: E2 03 00 [18:22:16]MH_I2C_Read... [18:22:16]Read from MH i2c: E2 03 00 23 1A 00 90 00 B1 [18:22:16]RAPDU: 90 00 [18:22:16]wFMCommunicate OK [18:22:16]wFMCommunicate request_size=4 [18:22:16]MH_SAM_APDU [18:22:16]CAPDU: 80 0D 03 02 [18:22:16]Write to MH i2c: E2 08 00 24 1A 80 0D 03 02 00 00 00 00 B9 [18:22:16]Write i2c OK [18:22:16]MH_I2C_Read... [18:22:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:16]Read from MH i2c: E2 [18:22:16]MH_I2C_Read... [18:22:16]Read from MH i2c: E2 0B 00 [18:22:16]MH_I2C_Read... [18:22:16]Read from MH i2c: E2 0B 00 24 1A 00 7F CB 84 F1 A2 3A DA 51 90 00 80 [18:22:16]RAPDU: 7F CB 84 F1 A2 3A DA 51 90 00 [18:22:16]wFMCommunicate OK [18:22:16]SAM_PROTO_SignData done [18:22:16]FM_MakeSignedData done [18:22:16]CreateOFDProtocolMessage [18:22:16]wFMCommunicate request_size=4 [18:22:16]MH_SAM_APDU [18:22:16]CAPDU: 80 11 00 00 [18:22:16]Write to MH i2c: E2 08 00 25 1A 80 11 00 00 00 00 00 00 B9 [18:22:16]Write i2c OK [18:22:16]MH_I2C_Read... [18:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:16]Read from MH i2c: E2 [18:22:16]MH_I2C_Read... [18:22:16]Read from MH i2c: E2 17 00 [18:22:16]MH_I2C_Read... [18:22:16]Read from MH i2c: E2 17 00 25 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 10 [18:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [18:22:16]wFMCommunicate OK [18:22:16]CreateOFDProtocolMessage done [18:22:16]OFDSenderStorePacket 69807 [18:22:16]StoreOFDPacket docnum=69807 [18:22:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 96 01 00 00 8D 3E 8E 01 2F 4D 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 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 03 07 00 00 00 00 07 04 06 00 04 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 5A 4A 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AF 10 01 00 35 04 06 00 39 B3 45 E2 B5 43 7F CB 84 F1 A2 3A DA 51 [18:22:16]CheckFolder [18:22:16]dirname=/storage/ofd_packets [18:22:16]CheckFolder done [18:22:16]ProducePacketName [18:22:16]name=ofd_packets/00069807 [18:22:16]NVStorageSaveData ofd_packets/00069807 [18:22:16]File name is /storage/ofd_packets/00069807 [18:22:16]Write 436 bytes [18:22:16]NVStorageSaveData done [18:22:16]OFDSenderStorePacket done [18:22:16]KKMCreateOFDPacket done [18:22:16]NVStorageSaveData kkm_last_timestamp [18:22:16]File name is /storage/kkm_last_timestamp [18:22:16]Write 4 bytes [18:22:16]NVStorageSaveData done [18:22:16]ExternCall_PrintAddStr [18:22:16]wPrintStart [18:22:16]Write to MH i2c: 01 00 00 26 1A 40 [18:22:16]Write i2c OK [18:22:16]MH_I2C_Read... [18:22:16]Read from MH i2c: 01 [18:22:16]MH_I2C_Read... [18:22:16]Read from MH i2c: 01 07 00 [18:22:16]MH_I2C_Read... [18:22:16]Read from MH i2c: 01 07 00 26 1A 00 00 00 00 00 FF 0F 55 [18:22:16]RasterBufferAndPrint [18:22:16]line Счет N : (3)127207 [18:22:16]line ИНН: 02508201610067 [18:22:16]line Контрольно-Кассовый Чек [18:22:16]line ПРОДАЖА [18:22:16]line Товар: 4700040114137 [18:22:16]line Султан чай 1л. зел лимон [18:22:16]line 1.000 * 89.00 [18:22:16]line = 89.00 [18:22:16]line НДС 12% НСП 1% [18:22:16]line > о реализуемом товаре [18:22:16]line Товар: 40822426 [18:22:16]line Вода Бонаква 0,5л б/г [18:22:16]line 2.000 * 40.00 [18:22:16]line = 80.00 [18:22:16]line НДС 12% НСП 1% [18:22:16]line > о реализуемом товаре [18:22:16]line ИТОГО: 169.00 [18:22:16]line НСП 1% : 1.50 [18:22:16]line НДС 12% : 17.95 [18:22:16]line Наличными: 169.00 [18:22:16]line Безнал.: 0.00 [18:22:16]line Место: АЗС № 163 "Партнер Нефть" [18:22:16]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [18:22:16]line СНО: Общий режим [18:22:16]line Чек 97 20.10.2024 18:22 [18:22:16]line Смена: 526 ФФД: 1.0 [18:22:16]line ЗНМ: 0300000101 [18:22:16]line РНМ: 0000000000091770 [18:22:16]line Версия ККМ: 001 [18:22:16]line ФМ: 0000000000871749 [18:22:16]line ФД: 69807 [18:22:16]line ФПД: 63442134414659 [18:22:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T182218&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69807&fm=63442134414659&tin=02508201610067®Number=0000000000091770&sum=16900 [18:22:16]line 0 [18:22:16]OFD Sender: Processing packet 69807 [packets to send 32, broken 31] [18:22:16]ProducePacketName [18:22:16]name=ofd_packets/00069807 [18:22:16]OFD Sender: To server: pG, [18:22:16]CommunicateWithHost lk.salyk.kg:30040 [18:22:16]ConnectInit lk.salyk.kg [18:22:16]written 0, free lines is 4095 [18:22:17]Write to MH i2c: 01 00 00 54 1A 6E [18:22:17]Write i2c OK [18:22:17]MH_I2C_Read... [18:22:17]Read from MH i2c: 01 [18:22:17]MH_I2C_Read... [18:22:17]Read from MH i2c: 01 07 00 [18:22:17]MH_I2C_Read... [18:22:17]Read from MH i2c: 01 07 00 54 1A 00 00 00 00 00 A5 0C 26 [18:22:17]RasterBufferAndPrint [18:22:17]line [18:22:17]line [18:22:17]line [18:22:17]line [18:22:17]line [18:22:17]written 0, free lines is 3241 [18:22:17]MH_Cut [18:22:17]Write to MH i2c: D1 01 00 5B 1A 01 47 [18:22:17]Write i2c OK [18:22:17]MH_I2C_Read... [18:22:17]Read from MH i2c: D1 [18:22:17]MH_I2C_Read... [18:22:17]Read from MH i2c: D1 01 00 [18:22:17]MH_I2C_Read... [18:22:17]Read from MH i2c: D1 01 00 5B 1A 00 46 [18:22:17]Write to MH i2c: 01 00 00 5C 1A 76 [18:22:17]Write i2c OK [18:22:17]MH_I2C_Read... [18:22:18]*** Cut start [18:22:18]*** Partial cut [18:22:18]*** CUTSNS_PIN = 1 [18:22:18]*** CUTSNS_PIN = 0 [18:22:18]*** Brake cut motor [18:22:18]Read from MH i2c: 01 [18:22:18]MH_I2C_Read... [18:22:18]*** Stop cut motor [18:22:18]*** Cut end [18:22:18]Read from MH i2c: 01 07 00 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: 01 07 00 5C 1A 00 00 00 00 00 FF 0F 8B [18:22:18]process_action close_receipt done [18:22:18]requested_data is exist [18:22:18]produce_requested_data [18:22:18]requested_item fm.sn is exist - process it [18:22:18]wFMCommunicate request_size=4 [18:22:18]MH_SAM_APDU [18:22:18]CAPDU: 80 11 00 00 [18:22:18]Write to MH i2c: E2 08 00 5D 1A 80 11 00 00 00 00 00 00 F1 [18:22:18]Write i2c OK [18:22:18]MH_I2C_Read... [18:22:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:19]Read from MH i2c: E2 [18:22:19]MH_I2C_Read... [18:22:19]Read from MH i2c: E2 17 00 [18:22:19]MH_I2C_Read... [18:22:19]Read from MH i2c: E2 17 00 5D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 48 [18:22:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [18:22:19]wFMCommunicate OK [18:22:19]requested_item fd.num is exist - process it [18:22:19]SAM_PROTO_GetFieldsCounters [18:22:19]wFMCommunicate request_size=4 [18:22:19]MH_SAM_APDU [18:22:19]CAPDU: 80 13 00 00 [18:22:19]Write to MH i2c: E2 08 00 5E 1A 80 13 00 00 00 00 00 00 F4 [18:22:19]Write i2c OK [18:22:19]MH_I2C_Read... [18:22:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:19]Read from MH i2c: E2 [18:22:19]MH_I2C_Read... [18:22:19]Read from MH i2c: E2 62 00 [18:22:19]MH_I2C_Read... [18:22:19]Read from MH i2c: E2 62 00 5E 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 AF 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [18:22: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 AF 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:19]wFMCommunicate OK [18:22:19]SAM_PROTO_GetFieldsCounters done [18:22:19]requested_item shift.num is exist - process it [18:22:19]requested_item shift.opened is exist - process it [18:22:19]req_shift_opened [18:22:19]FM_GetShiftState [18:22:19]SAM_PROTO_GetShiftState [18:22:19]wFMCommunicate request_size=4 [18:22:19]MH_SAM_APDU [18:22:19]CAPDU: 80 13 01 00 [18:22:19]Write to MH i2c: E2 08 00 5F 1A 80 13 01 00 00 00 00 00 F6 [18:22:19]Write i2c OK [18:22:19]MH_I2C_Read... [18:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:19]Read from MH i2c: E2 [18:22:19]MH_I2C_Read... [18:22:19]Read from MH i2c: E2 0E 00 [18:22:19]MH_I2C_Read... [18:22:19]Read from MH i2c: E2 0E 00 5F 1A 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 88 [18:22:19]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [18:22:19]wFMCommunicate OK [18:22:19]SAM_PROTO_GetShiftState done [18:22:19]FM_GetShiftState done [18:22:19]req_shift_opened done [18:22:19]requested_item shift.open_date is exist - process it [18:22:19]req_shift_open_date [18:22:19]req_shift_open_date done [18:22:19]produce_requested_data done [18:22:19]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69807,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [18:22:19]process_action_free close_receipt [18:22:19]json_value_free [18:22:19]json_value_free done [18:22:19]process_json_proto returns [18:22:19]Send response to host [18:22:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69807,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [18:22:19]free response buf [18:22:19]execute_script done [18:22:19]execute_script returns [18:22:19]free content buf [18:22:19]Sock 9.Close socket [18:22:19]Sock 9.Thread stoped [18:24:26]ConnectInit Can't connect to host [18:24:26]CommunicateWithHost connect error [18:24:26]CommunicateWithHost err = -1 [18:24:26]OFD Sender: Server communicate error [18:24:31]OFD Sender: Processing packet 69807 [packets to send 32, broken 31] [18:24:31]ProducePacketName [18:24:31]name=ofd_packets/00069807 [18:24:31]OFD Sender: To server: pG, [18:24:31]CommunicateWithHost lk.salyk.kg:30040 [18:24:31]ConnectInit lk.salyk.kg [18:24:31]Connected sock=9 [18:24:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 96 01 00 00 8D 3E 8E 01 2F 4D 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 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 03 07 00 00 00 00 07 04 06 00 04 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 5A 4A 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AF 10 01 00 35 04 06 00 39 B3 45 E2 B5 43 7F CB 84 F1 A2 3A DA 51 [18:24:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 14 86 47 00 B9 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 AF 10 01 00 F4 03 04 00 63 F0 14 67 B6 04 01 00 00 D1 8B EE EB F9 46 BF C0 [18:24:32]CommunicateWithHost err = 0 [18:24:32]CheckOFDResponse [18:24:32]1017 (14) - 77093643461234 [18:24:32]1041 (16) - 0000000000871749 [18:24:32]1040 (4) - 69807 [18:24:32]1012 (4) - 20.10.2024 11:58 [18:24:32]1206 (1) - 0 [18:24:32]OFD Sender: Remove packet 69807 [18:24:32]ProducePacketName [18:24:32]name=ofd_packets/00069807 [18:24:32]NVStorageDeleteData [18:24:32]OFD Sender: No OFD packet to send [18:24:37]OFD Sender: No OFD packet to send [18:24:42]OFD Sender: No OFD packet to send [18:24:47]OFD Sender: No OFD packet to send [18:24:52]OFD Sender: No OFD packet to send [18:24:57]OFD Sender: No OFD packet to send [18:25:02]OFD Sender: No OFD packet to send [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:17]OFD Sender: No OFD packet to send [18:25:22]OFD Sender: No OFD packet to send [18:25:27]OFD Sender: No OFD packet to send [18:25:32]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:42]OFD Sender: No OFD packet to send [18:25:47]OFD Sender: No OFD packet to send [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26:27]OFD Sender: No OFD packet to send [18:26:32]OFD Sender: No OFD packet to send [18:26:37]OFD Sender: No OFD packet to send [18:26:42]OFD Sender: No OFD packet to send [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:57]OFD Sender: No OFD packet to send [18:27:02]OFD Sender: No OFD packet to send [18:27:07]OFD Sender: No OFD packet to send [18:27:12]OFD Sender: No OFD packet to send [18:27:17]OFD Sender: No OFD packet to send [18:27:22]OFD Sender: No OFD packet to send [18:27:27]OFD Sender: No OFD packet to send [18:27:32]OFD Sender: No OFD packet to send [18:27:37]OFD Sender: No OFD packet to send [18:27:42]OFD Sender: No OFD packet to send [18:27:47]OFD Sender: No OFD packet to send [18:27:52]OFD Sender: No OFD packet to send [18:27:57]OFD Sender: No OFD packet to send [18:28:02]OFD Sender: No OFD packet to send [18:28:07]OFD Sender: No OFD packet to send [18:28:12]OFD Sender: No OFD packet to send [18:28:17]OFD Sender: No OFD packet to send [18:28:22]OFD Sender: No OFD packet to send [18:28:27]OFD Sender: No OFD packet to send [18:28:32]OFD Sender: No OFD packet to send [18:28:37]OFD Sender: No OFD packet to send [18:28:42]OFD Sender: No OFD packet to send [18:28:47]OFD Sender: No OFD packet to send [18:28:52]OFD Sender: No OFD packet to send [18:28:57]OFD Sender: No OFD packet to send [18:29:02]OFD Sender: No OFD packet to send [18:29:07]OFD Sender: No OFD packet to send [18:29:12]OFD Sender: No OFD packet to send [18:29:17]OFD Sender: No OFD packet to send [18:29:22]OFD Sender: No OFD packet to send [18:29:27]OFD Sender: No OFD packet to send [18:29:32]OFD Sender: No OFD packet to send [18:29:37]OFD Sender: No OFD packet to send [18:29:42]OFD Sender: No OFD packet to send [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:17]OFD Sender: No OFD packet to send [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:42]OFD Sender: No OFD packet to send [18:30:47]OFD Sender: No OFD packet to send [18:30:52]OFD Sender: No OFD packet to send [18:30:57]OFD Sender: No OFD packet to send [18:31:02]OFD Sender: No OFD packet to send [18:31:03]accept exits with 7 [18:31:03]New connection [18:31:03]New thread 3066629476 created [18:31:03]Thread 3066486116 joined [18:31:03]Waiting for new connection... [18:31:03] Sock 7.Parse request [18:31:03]Sock 7.Check first char [18:31:03]Sock 7.First char is OK [18:31:03]request: POST /json_proto HTTP/1.0 [18:31:03]Method: POST [18:31:03]URL: /json_proto [18:31:03]Method is POST - this is cgi request [18:31:03]url: /json_proto [18:31:03]query_string will be loaded in cgi processing [18:31:03]execute_cgi json_proto POST (null) [18:31:03]execute_cgi path=json_proto method=POST [18:31:03]POST find Content-Length [18:31:03]Host: 172.17.52.196:8080 [18:31:03]Content-Length: 675 [18:31:03]Content-Type: application/json [18:31:03] [18:31:03]POST finish read [18:31:03]Found Content-Length = 675 [18:31:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127208", "tax_sys" : 0, "items" : [ { "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:03]execute_script... [18:31:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127208", "tax_sys" : 0, "items" : [ { "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:03]POST & json_proto [18:31:03]process_json_proto [18:31:03]json parsed OK: [18:31:03]protocol is kg_v1.0 [18:31:03]action value=close_receipt [18:31:03]process_action close_receipt [18:31:03]cmd_close_receipt [18:31:03]MH_GetDate [18:31:03]Write to MH i2c: F0 00 00 60 1A 69 [18:31:03]Write i2c OK [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: F0 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: F0 09 00 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: F0 09 00 60 1A 00 6A 4C 15 67 60 05 E4 66 53 [18:31:03]GetLastDocTimeStamp 1729448538 [18:31:03]current date 1729449066 [18:31:03]FM_GetShiftState [18:31:03]SAM_PROTO_GetShiftState [18:31:03]wFMCommunicate request_size=4 [18:31:03]MH_SAM_APDU [18:31:03]CAPDU: 80 13 01 00 [18:31:03]Write to MH i2c: E2 08 00 61 1A 80 13 01 00 00 00 00 00 F8 [18:31:03]Write i2c OK [18:31:03]MH_I2C_Read... [18:31:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:03]Read from MH i2c: E2 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: E2 0E 00 [18:31:03]MH_I2C_Read... [18:31:03]Read from MH i2c: E2 0E 00 61 1A 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 8A [18:31:03]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [18:31:03]wFMCommunicate OK [18:31:03]SAM_PROTO_GetShiftState done [18:31:03]FM_GetShiftState done [18:31:03]opened in 1729384380 [18:31:03]opened+sec_in_day 1729470780 [18:31:03]quantity*price = 9900 [18:31:03]sum+1 = 9901 [18:31:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.88 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 98 20.10.2024 18:31 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69808 ФПД: 146355954654861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183106&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69808&fm=146355954654861&tin=02508201610067®Number=0000000000091770&sum=9900 0 [18:31:04]StoreToDocumentArchive [18:31:04]shift 526 fd 69808 [18:31:04]save to /storage/0526/doc_00069808 [18:31:04]save last doc name /storage/0526/doc_00069808 to /storage/kkm_last_doc_name [18:31:04]save OK [18:31:04]Clear old archive folders... [18:31:04]ProcessDocumentItem done err = 0, tmpTLVsize=294 [18:31:04]tlvbuf is 0097A020 [18:31:04]SAM_PROTO_ClearQueue [18:31:04]wFMCommunicate request_size=4 [18:31:04]MH_SAM_APDU [18:31:04]CAPDU: 80 09 00 00 [18:31:04]Write to MH i2c: E2 08 00 6E 1A 80 09 00 00 00 00 00 00 FA [18:31:04]Write i2c OK [18:31:04]MH_I2C_Read... [18:31:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:04]Read from MH i2c: E2 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: E2 03 00 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: E2 03 00 6E 1A 00 90 00 FC [18:31:04]RAPDU: 90 00 [18:31:04]wFMCommunicate OK [18:31:04]SAM_PROTO_ClearQueue done [18:31:04]KKMCreateOFDPacket [18:31:04]OFDProtocolAddRootSTLVToBuf [18:31:04]FM_MakeSignedData [18:31:04]FM_MakeSignedData [18:31:04]SAM_PROTO_SignData [18:31:04]wFMCommunicate request_size=4 [18:31:04]MH_SAM_APDU [18:31:04]CAPDU: 80 0D 01 02 [18:31:04]Write to MH i2c: E2 08 00 6F 1A 80 0D 01 02 00 00 00 00 02 [18:31:04]Write i2c OK [18:31:04]MH_I2C_Read... [18:31:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:04]Read from MH i2c: E2 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: E2 03 00 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: E2 03 00 6F 1A 00 90 00 FD [18:31:04]RAPDU: 90 00 [18:31:04]wFMCommunicate OK [18:31:04]wFMCommunicate request_size=255 [18:31:04]MH_SAM_APDU [18:31:04]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 6A 4C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [18:31:04]Write to MH i2c: E2 02 01 70 1A 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 6A 4C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 AE [18:31:04]Write i2c OK [18:31:04]MH_I2C_Read... [18:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:04]Read from MH i2c: E2 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: E2 03 00 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: E2 03 00 70 1A 00 90 00 FE [18:31:04]RAPDU: 90 00 [18:31:04]wFMCommunicate OK [18:31:04]wFMCommunicate request_size=53 [18:31:04]MH_SAM_APDU [18:31:04]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B0 10 01 00 35 04 06 00 85 1C 26 B0 1E 8D [18:31:04]Write to MH i2c: E2 38 00 71 1A 80 0D 02 02 30 00 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B0 10 01 00 35 04 06 00 85 1C 26 B0 1E 8D 00 00 E0 [18:31:04]Write i2c OK [18:31:04]MH_I2C_Read... [18:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:04]Read from MH i2c: E2 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: E2 03 00 [18:31:04]MH_I2C_Read... [18:31:04]Read from MH i2c: E2 03 00 71 1A 00 90 00 FF [18:31:04]RAPDU: 90 00 [18:31:04]wFMCommunicate OK [18:31:04]wFMCommunicate request_size=4 [18:31:04]MH_SAM_APDU [18:31:04]CAPDU: 80 0D 03 02 [18:31:04]Write to MH i2c: E2 08 00 72 1A 80 0D 03 02 00 00 00 00 07 [18:31:04]Write i2c OK [18:31:04]MH_I2C_Read... [18:31:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:05]Read from MH i2c: E2 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: E2 0B 00 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: E2 0B 00 72 1A 00 73 9D 41 65 7D 0B F4 08 90 00 42 [18:31:05]RAPDU: 73 9D 41 65 7D 0B F4 08 90 00 [18:31:05]wFMCommunicate OK [18:31:05]SAM_PROTO_SignData done [18:31:05]FM_MakeSignedData done [18:31:05]CreateOFDProtocolMessage [18:31:05]wFMCommunicate request_size=4 [18:31:05]MH_SAM_APDU [18:31:05]CAPDU: 80 11 00 00 [18:31:05]Write to MH i2c: E2 08 00 73 1A 80 11 00 00 00 00 00 00 07 [18:31:05]Write i2c OK [18:31:05]MH_I2C_Read... [18:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:05]Read from MH i2c: E2 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: E2 17 00 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: E2 17 00 73 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 5E [18:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [18:31:05]wFMCommunicate OK [18:31:05]CreateOFDProtocolMessage done [18:31:05]OFDSenderStorePacket 69808 [18:31:05]StoreOFDPacket docnum=69808 [18:31:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 3A 01 00 00 48 D9 32 01 EB 2C 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 6A 4C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B0 10 01 00 35 04 06 00 85 1C 26 B0 1E 8D 73 9D 41 65 7D 0B F4 08 [18:31:05]CheckFolder [18:31:05]dirname=/storage/ofd_packets [18:31:05]CheckFolder done [18:31:05]ProducePacketName [18:31:05]name=ofd_packets/00069808 [18:31:05]NVStorageSaveData ofd_packets/00069808 [18:31:05]File name is /storage/ofd_packets/00069808 [18:31:05]Write 344 bytes [18:31:05]NVStorageSaveData done [18:31:05]OFDSenderStorePacket done [18:31:05]KKMCreateOFDPacket done [18:31:05]NVStorageSaveData kkm_last_timestamp [18:31:05]File name is /storage/kkm_last_timestamp [18:31:05]Write 4 bytes [18:31:05]NVStorageSaveData done [18:31:05]ExternCall_PrintAddStr [18:31:05]wPrintStart [18:31:05]Write to MH i2c: 01 00 00 74 1A 8E [18:31:05]Write i2c OK [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: 01 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: 01 07 00 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: 01 07 00 74 1A 00 00 00 00 00 FF 0F A3 [18:31:05]RasterBufferAndPrint [18:31:05]line Счет N : (3)127208 [18:31:05]line ИНН: 02508201610067 [18:31:05]line Контрольно-Кассовый Чек [18:31:05]line ПРОДАЖА [18:31:05]line Товар: 4870022003312 [18:31:05]line Gorilla эн нап манго-кокос 0,45 ж/б [18:31:05]line 1.000 * 99.00 [18:31:05]line = 99.00 [18:31:05]line НДС 12% НСП 1% [18:31:05]line > о реализуемом товаре [18:31:05]line ИТОГО: 99.00 [18:31:05]line НСП 1% : 0.88 [18:31:05]line НДС 12% : 10.51 [18:31:05]line Наличными: 99.00 [18:31:05]line Безнал.: 0.00 [18:31:05]line Место: АЗС № 163 "Партнер Нефть" [18:31:05]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [18:31:05]line СНО: Общий режим [18:31:05]line Чек 98 20.10.2024 18:31 [18:31:05]line Смена: 526 ФФД: 1.0 [18:31:05]line ЗНМ: 0300000101 [18:31:05]line РНМ: 0000000000091770 [18:31:05]line Версия ККМ: 001 [18:31:05]line ФМ: 0000000000871749 [18:31:05]line ФД: 69808 [18:31:05]line ФПД: 146355954654861 [18:31:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183106&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69808&fm=146355954654861&tin=02508201610067®Number=0000000000091770&sum=9900 [18:31:05]line 0 [18:31:05]OFD Sender: Processing packet 69808 [packets to send 32, broken 31] [18:31:05]ProducePacketName [18:31:05]name=ofd_packets/00069808 [18:31:05]OFD Sender: To server: pG, [18:31:05]CommunicateWithHost lk.salyk.kg:30040 [18:31:05]ConnectInit lk.salyk.kg [18:31:05]written 0, free lines is 4095 [18:31:05]Connected sock=10 [18:31:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 3A 01 00 00 48 D9 32 01 EB 2C 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 6A 4C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B0 10 01 00 35 04 06 00 85 1C 26 B0 1E 8D 73 9D 41 65 7D 0B F4 08 [18:31:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 56 58 47 00 27 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 31 37 34 39 10 04 04 00 B0 10 01 00 F4 03 04 00 EC F1 14 67 B6 04 01 00 00 14 E6 E1 A1 F3 8D 37 49 [18:31:05]CommunicateWithHost err = 0 [18:31:05]CheckOFDResponse [18:31:05]1017 (14) - 77093643461234 [18:31:05]1041 (16) - 0000000000871749 [18:31:05]1040 (4) - 69808 [18:31:05]1012 (4) - 20.10.2024 12:05 [18:31:05]1206 (1) - 0 [18:31:05]OFD Sender: Remove packet 69808 [18:31:05]ProducePacketName [18:31:05]name=ofd_packets/00069808 [18:31:05]NVStorageDeleteData [18:31:05]Write to MH i2c: 01 00 00 9D 1A B7 [18:31:05]Write i2c OK [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: 01 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: 01 07 00 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: 01 07 00 9D 1A 00 00 00 00 00 EB 0C B5 [18:31:05]RasterBufferAndPrint [18:31:05]line [18:31:05]line [18:31:05]line [18:31:05]line [18:31:05]line [18:31:05]written 0, free lines is 3313 [18:31:05]MH_Cut [18:31:05]Write to MH i2c: D1 01 00 A4 1A 01 90 [18:31:05]Write i2c OK [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: D1 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: D1 01 00 [18:31:05]MH_I2C_Read... [18:31:05]Read from MH i2c: D1 01 00 A4 1A 00 8F [18:31:05]Write to MH i2c: 01 00 00 A5 1A BF [18:31:05]Write i2c OK [18:31:05]MH_I2C_Read... [18:31:06]OFD Sender: No OFD packet to send [18:31:06]*** Cut start [18:31:06]*** Partial cut [18:31:06]*** CUTSNS_PIN = 1 [18:31:06]*** CUTSNS_PIN = 0 [18:31:07]*** Brake cut motor [18:31:07]Read from MH i2c: 01 [18:31:07]MH_I2C_Read... [18:31:07]*** Stop cut motor [18:31:07]*** Cut end [18:31:07]Read from MH i2c: 01 07 00 [18:31:07]MH_I2C_Read... [18:31:07]Read from MH i2c: 01 07 00 A5 1A 00 00 00 00 00 FF 0F D4 [18:31:07]process_action close_receipt done [18:31:07]requested_data is exist [18:31:07]produce_requested_data [18:31:07]requested_item fm.sn is exist - process it [18:31:07]wFMCommunicate request_size=4 [18:31:07]MH_SAM_APDU [18:31:07]CAPDU: 80 11 00 00 [18:31:07]Write to MH i2c: E2 08 00 A6 1A 80 11 00 00 00 00 00 00 3A [18:31:07]Write i2c OK [18:31:07]MH_I2C_Read... [18:31:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:07]Read from MH i2c: E2 [18:31:07]MH_I2C_Read... [18:31:07]Read from MH i2c: E2 17 00 [18:31:07]MH_I2C_Read... [18:31:07]Read from MH i2c: E2 17 00 A6 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 91 [18:31:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [18:31:07]wFMCommunicate OK [18:31:07]requested_item fd.num is exist - process it [18:31:07]SAM_PROTO_GetFieldsCounters [18:31:07]wFMCommunicate request_size=4 [18:31:07]MH_SAM_APDU [18:31:07]CAPDU: 80 13 00 00 [18:31:07]Write to MH i2c: E2 08 00 A7 1A 80 13 00 00 00 00 00 00 3D [18:31:07]Write i2c OK [18:31:07]MH_I2C_Read... [18:31:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:07]Read from MH i2c: E2 [18:31:07]MH_I2C_Read... [18:31:07]Read from MH i2c: E2 62 00 [18:31:07]MH_I2C_Read... [18:31:07]Read from MH i2c: E2 62 00 A7 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B0 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [18:31: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B0 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:07]wFMCommunicate OK [18:31:07]SAM_PROTO_GetFieldsCounters done [18:31:07]requested_item shift.num is exist - process it [18:31:07]requested_item shift.opened is exist - process it [18:31:07]req_shift_opened [18:31:07]FM_GetShiftState [18:31:07]SAM_PROTO_GetShiftState [18:31:07]wFMCommunicate request_size=4 [18:31:07]MH_SAM_APDU [18:31:07]CAPDU: 80 13 01 00 [18:31:07]Write to MH i2c: E2 08 00 A8 1A 80 13 01 00 00 00 00 00 3F [18:31:07]Write i2c OK [18:31:07]MH_I2C_Read... [18:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:07]Read from MH i2c: E2 [18:31:07]MH_I2C_Read... [18:31:07]Read from MH i2c: E2 0E 00 [18:31:07]MH_I2C_Read... [18:31:07]Read from MH i2c: E2 0E 00 A8 1A 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 D1 [18:31:07]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [18:31:07]wFMCommunicate OK [18:31:07]SAM_PROTO_GetShiftState done [18:31:07]FM_GetShiftState done [18:31:07]req_shift_opened done [18:31:07]requested_item shift.open_date is exist - process it [18:31:07]req_shift_open_date [18:31:07]req_shift_open_date done [18:31:07]produce_requested_data done [18:31:07]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69808,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [18:31:07]process_action_free close_receipt [18:31:07]json_value_free [18:31:07]json_value_free done [18:31:07]process_json_proto returns [18:31:07]Send response to host [18:31:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69808,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [18:31:07]free response buf [18:31:07]execute_script done [18:31:07]execute_script returns [18:31:07]free content buf [18:31:07]Sock 7.Close socket [18:31:07]Sock 7.Thread stoped [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:15]accept exits with 9 [18:34:15]New connection [18:34:15]New thread 3066486116 created [18:34:15]Thread 3066629476 joined [18:34:15]Waiting for new connection... [18:34:15] Sock 9.Parse request [18:34:15]Sock 9.Check first char [18:34:15]Sock 9.First char is OK [18:34:15]request: POST /json_proto HTTP/1.0 [18:34:15]Method: POST [18:34:15]URL: /json_proto [18:34:15]Method is POST - this is cgi request [18:34:15]url: /json_proto [18:34:15]query_string will be loaded in cgi processing [18:34:15]execute_cgi json_proto POST (null) [18:34:15]execute_cgi path=json_proto method=POST [18:34:15]POST find Content-Length [18:34:15]Host: 172.17.52.196:8080 [18:34:15]Content-Length: 623 [18:34:15]Content-Type: application/json [18:34:15] [18:34:15]POST finish read [18:34:15]Found Content-Length = 623 [18:34:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127209", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:15]execute_script... [18:34:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127209", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:15]POST & json_proto [18:34:15]process_json_proto [18:34:15]json parsed OK: [18:34:15]protocol is kg_v1.0 [18:34:15]action value=close_receipt [18:34:15]process_action close_receipt [18:34:15]cmd_close_receipt [18:34:15]MH_GetDate [18:34:15]Write to MH i2c: F0 00 00 A9 1A B2 [18:34:15]Write i2c OK [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: F0 [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: F0 09 00 [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: F0 09 00 A9 1A 00 2A 4D 15 67 60 05 E4 66 5D [18:34:15]GetLastDocTimeStamp 1729449066 [18:34:15]current date 1729449258 [18:34:15]FM_GetShiftState [18:34:15]SAM_PROTO_GetShiftState [18:34:15]wFMCommunicate request_size=4 [18:34:15]MH_SAM_APDU [18:34:15]CAPDU: 80 13 01 00 [18:34:15]Write to MH i2c: E2 08 00 AA 1A 80 13 01 00 00 00 00 00 41 [18:34:15]Write i2c OK [18:34:15]MH_I2C_Read... [18:34:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:15]Read from MH i2c: E2 [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: E2 0E 00 [18:34:15]MH_I2C_Read... [18:34:15]Read from MH i2c: E2 0E 00 AA 1A 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 D3 [18:34:15]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [18:34:15]wFMCommunicate OK [18:34:15]SAM_PROTO_GetShiftState done [18:34:15]FM_GetShiftState done [18:34:15]opened in 1729384380 [18:34:15]opened+sec_in_day 1729470780 [18:34:15]quantity*price = 14400 [18:34:15]sum+1 = 14401 [18:34:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 99 20.10.2024 18:34 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69809 ФПД: 55809106511211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183418&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69809&fm=55809106511211&tin=02508201610067®Number=0000000000091770&sum=14400 0 [18:34:16]StoreToDocumentArchive [18:34:16]shift 526 fd 69809 [18:34:16]save to /storage/0526/doc_00069809 [18:34:16]save last doc name /storage/0526/doc_00069809 to /storage/kkm_last_doc_name [18:34:16]save OK [18:34:16]Clear old archive folders... [18:34:16]ProcessDocumentItem done err = 0, tmpTLVsize=275 [18:34:16]tlvbuf is 00979EB0 [18:34:16]SAM_PROTO_ClearQueue [18:34:16]wFMCommunicate request_size=4 [18:34:16]MH_SAM_APDU [18:34:16]CAPDU: 80 09 00 00 [18:34:16]Write to MH i2c: E2 08 00 B7 1A 80 09 00 00 00 00 00 00 43 [18:34:16]Write i2c OK [18:34:16]MH_I2C_Read... [18:34:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:16]Read from MH i2c: E2 [18:34:16]MH_I2C_Read... [18:34:16]Read from MH i2c: E2 03 00 [18:34:16]MH_I2C_Read... [18:34:16]Read from MH i2c: E2 03 00 B7 1A 00 90 00 45 [18:34:16]RAPDU: 90 00 [18:34:16]wFMCommunicate OK [18:34:16]SAM_PROTO_ClearQueue done [18:34:16]KKMCreateOFDPacket [18:34:16]OFDProtocolAddRootSTLVToBuf [18:34:16]FM_MakeSignedData [18:34:16]FM_MakeSignedData [18:34:16]SAM_PROTO_SignData [18:34:16]wFMCommunicate request_size=4 [18:34:16]MH_SAM_APDU [18:34:16]CAPDU: 80 0D 01 02 [18:34:16]Write to MH i2c: E2 08 00 B8 1A 80 0D 01 02 00 00 00 00 4B [18:34:16]Write i2c OK [18:34:16]MH_I2C_Read... [18:34:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:16]Read from MH i2c: E2 [18:34:16]MH_I2C_Read... [18:34:16]Read from MH i2c: E2 03 00 [18:34:16]MH_I2C_Read... [18:34:16]Read from MH i2c: E2 03 00 B8 1A 00 90 00 46 [18:34:16]RAPDU: 90 00 [18:34:16]wFMCommunicate OK [18:34:16]wFMCommunicate request_size=255 [18:34:16]MH_SAM_APDU [18:34:16]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 2A 4D 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 [18:34:16]Write to MH i2c: E2 02 01 B9 1A 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 2A 4D 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 00 00 B5 [18:34:16]Write i2c OK [18:34:16]MH_I2C_Read... [18:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:17]Read from MH i2c: E2 [18:34:17]MH_I2C_Read... [18:34:17]Read from MH i2c: E2 03 00 [18:34:17]MH_I2C_Read... [18:34:17]Read from MH i2c: E2 03 00 B9 1A 00 90 00 47 [18:34:17]RAPDU: 90 00 [18:34:17]wFMCommunicate OK [18:34:17]wFMCommunicate request_size=34 [18:34:17]MH_SAM_APDU [18:34:17]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B1 10 01 00 35 04 06 00 32 C2 11 F8 05 6B [18:34:17]Write to MH i2c: E2 25 00 BA 1A 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B1 10 01 00 35 04 06 00 32 C2 11 F8 05 6B 00 00 42 [18:34:17]Write i2c OK [18:34:17]MH_I2C_Read... [18:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:17]Read from MH i2c: E2 [18:34:17]MH_I2C_Read... [18:34:17]Read from MH i2c: E2 03 00 [18:34:17]MH_I2C_Read... [18:34:17]Read from MH i2c: E2 03 00 BA 1A 00 90 00 48 [18:34:17]RAPDU: 90 00 [18:34:17]wFMCommunicate OK [18:34:17]wFMCommunicate request_size=4 [18:34:17]MH_SAM_APDU [18:34:17]CAPDU: 80 0D 03 02 [18:34:17]Write to MH i2c: E2 08 00 BB 1A 80 0D 03 02 00 00 00 00 50 [18:34:17]Write i2c OK [18:34:17]MH_I2C_Read... [18:34:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:17]Read from MH i2c: E2 [18:34:17]MH_I2C_Read... [18:34:17]Read from MH i2c: E2 0B 00 [18:34:17]MH_I2C_Read... [18:34:17]Read from MH i2c: E2 0B 00 BB 1A 00 B5 7A 45 2D F5 02 69 0F 90 00 61 [18:34:17]RAPDU: B5 7A 45 2D F5 02 69 0F 90 00 [18:34:17]wFMCommunicate OK [18:34:17]SAM_PROTO_SignData done [18:34:17]FM_MakeSignedData done [18:34:17]CreateOFDProtocolMessage [18:34:17]wFMCommunicate request_size=4 [18:34:17]MH_SAM_APDU [18:34:17]CAPDU: 80 11 00 00 [18:34:17]Write to MH i2c: E2 08 00 BC 1A 80 11 00 00 00 00 00 00 50 [18:34:17]Write i2c OK [18:34:17]MH_I2C_Read... [18:34:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:17]Read from MH i2c: E2 [18:34:17]MH_I2C_Read... [18:34:17]Read from MH i2c: E2 17 00 [18:34:17]MH_I2C_Read... [18:34:17]Read from MH i2c: E2 17 00 BC 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 A7 [18:34:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [18:34:17]wFMCommunicate OK [18:34:17]CreateOFDProtocolMessage done [18:34:17]OFDSenderStorePacket 69809 [18:34:17]StoreOFDPacket docnum=69809 [18:34:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 7B 0B 1F 01 B4 5A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 2A 4D 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B1 10 01 00 35 04 06 00 32 C2 11 F8 05 6B B5 7A 45 2D F5 02 69 0F [18:34:17]CheckFolder [18:34:17]dirname=/storage/ofd_packets [18:34:17]CheckFolder done [18:34:17]ProducePacketName [18:34:17]name=ofd_packets/00069809 [18:34:17]NVStorageSaveData ofd_packets/00069809 [18:34:17]File name is /storage/ofd_packets/00069809 [18:34:17]Write 325 bytes [18:34:17]NVStorageSaveData done [18:34:17]OFDSenderStorePacket done [18:34:17]KKMCreateOFDPacket done [18:34:17]NVStorageSaveData kkm_last_timestamp [18:34:17]File name is /storage/kkm_last_timestamp [18:34:17]Write 4 bytes [18:34:17]NVStorageSaveData done [18:34:17]OFD Sender: Processing packet 69809 [packets to send 32, broken 31] [18:34:17]ProducePacketName [18:34:17]name=ofd_packets/00069809 [18:34:17]OFD Sender: To server: pG, [18:34:17]CommunicateWithHost lk.salyk.kg:30040 [18:34:17]ConnectInit lk.salyk.kg [18:34:17]ExternCall_PrintAddStr [18:34:17]wPrintStart [18:34:17]Write to MH i2c: 01 00 00 BD 1A D7 [18:34:17]Write i2c OK [18:34:17]MH_I2C_Read... [18:34:17]Read from MH i2c: 01 [18:34:17]MH_I2C_Read... [18:34:17]Read from MH i2c: 01 07 00 [18:34:17]MH_I2C_Read... [18:34:17]Read from MH i2c: 01 07 00 BD 1A 00 00 00 00 00 FF 0F EC [18:34:17]RasterBufferAndPrint [18:34:17]line Счет N : (3)127209 [18:34:17]line ИНН: 02508201610067 [18:34:17]line Контрольно-Кассовый Чек [18:34:17]line ПРОДАЖА [18:34:17]line Товар: 48743587 [18:34:17]line Сигареты Winston XStyle Silver [18:34:17]line 1.000 * 144.00 [18:34:17]line = 144.00 [18:34:17]line НДС 12% НСП 1% [18:34:17]line > о реализуемом товаре [18:34:17]line ИТОГО: 144.00 [18:34:17]line НСП 1% : 1.27 [18:34:17]line НДС 12% : 15.29 [18:34:17]line Наличными: 144.00 [18:34:17]line Безнал.: 0.00 [18:34:17]line Место: АЗС № 163 "Партнер Нефть" [18:34:17]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [18:34:17]line СНО: Общий режим [18:34:17]line Чек 99 20.10.2024 18:34 [18:34:17]line Смена: 526 ФФД: 1.0 [18:34:17]line ЗНМ: 0300000101 [18:34:17]line РНМ: 0000000000091770 [18:34:17]line Версия ККМ: 001 [18:34:17]line ФМ: 0000000000871749 [18:34:17]line ФД: 69809 [18:34:17]line ФПД: 55809106511211 [18:34:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183418&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69809&fm=55809106511211&tin=02508201610067®Number=0000000000091770&sum=14400 [18:34:17]line 0 [18:34:17]Connected sock=11 [18:34:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 7B 0B 1F 01 B4 5A 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 2A 4D 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B1 10 01 00 35 04 06 00 32 C2 11 F8 05 6B B5 7A 45 2D F5 02 69 0F [18:34:17]written 0, free lines is 4095 [18:34:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 47 AE 47 00 E2 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B1 10 01 00 F4 03 04 00 AC F2 14 67 B6 04 01 00 00 65 C3 12 20 4A 69 DE 92 [18:34:17]CommunicateWithHost err = 0 [18:34:17]CheckOFDResponse [18:34:17]1017 (14) - 77093643461234 [18:34:17]1041 (16) - 0000000000871749 [18:34:17]1040 (4) - 69809 [18:34:17]1012 (4) - 20.10.2024 12:08 [18:34:17]1206 (1) - 0 [18:34:17]OFD Sender: Remove packet 69809 [18:34:17]ProducePacketName [18:34:17]name=ofd_packets/00069809 [18:34:17]NVStorageDeleteData [18:34:18]Write to MH i2c: 01 00 00 E6 1A 00 [18:34:18]Write i2c OK [18:34:18]MH_I2C_Read... [18:34:18]Read from MH i2c: 01 [18:34:18]MH_I2C_Read... [18:34:18]Read from MH i2c: 01 07 00 [18:34:18]MH_I2C_Read... [18:34:18]Read from MH i2c: 01 07 00 E6 1A 00 00 00 00 00 DB 0C EE [18:34:18]RasterBufferAndPrint [18:34:18]line [18:34:18]line [18:34:18]line [18:34:18]line [18:34:18]line [18:34:18]written 0, free lines is 3297 [18:34:18]MH_Cut [18:34:18]Write to MH i2c: D1 01 00 ED 1A 01 D9 [18:34:18]Write i2c OK [18:34:18]MH_I2C_Read... [18:34:18]Read from MH i2c: D1 [18:34:18]MH_I2C_Read... [18:34:18]Read from MH i2c: D1 01 00 [18:34:18]MH_I2C_Read... [18:34:18]Read from MH i2c: D1 01 00 ED 1A 00 D8 [18:34:18]Write to MH i2c: 01 00 00 EE 1A 08 [18:34:18]Write i2c OK [18:34:18]MH_I2C_Read... [18:34:18]OFD Sender: No OFD packet to send [18:34:18]*** Cut start [18:34:18]*** Partial cut [18:34:18]*** CUTSNS_PIN = 1 [18:34:18]*** CUTSNS_PIN = 0 [18:34:19]*** Brake cut motor [18:34:19]Read from MH i2c: 01 [18:34:19]MH_I2C_Read... [18:34:19]*** Stop cut motor [18:34:19]*** Cut end [18:34:19]Read from MH i2c: 01 07 00 [18:34:19]MH_I2C_Read... [18:34:19]Read from MH i2c: 01 07 00 EE 1A 00 00 00 00 00 FF 0F 1D [18:34:19]process_action close_receipt done [18:34:19]requested_data is exist [18:34:19]produce_requested_data [18:34:19]requested_item fm.sn is exist - process it [18:34:19]wFMCommunicate request_size=4 [18:34:19]MH_SAM_APDU [18:34:19]CAPDU: 80 11 00 00 [18:34:19]Write to MH i2c: E2 08 00 EF 1A 80 11 00 00 00 00 00 00 83 [18:34:19]Write i2c OK [18:34:19]MH_I2C_Read... [18:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:19]Read from MH i2c: E2 [18:34:19]MH_I2C_Read... [18:34:19]Read from MH i2c: E2 17 00 [18:34:19]MH_I2C_Read... [18:34:19]Read from MH i2c: E2 17 00 EF 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 DA [18:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [18:34:19]wFMCommunicate OK [18:34:19]requested_item fd.num is exist - process it [18:34:19]SAM_PROTO_GetFieldsCounters [18:34:19]wFMCommunicate request_size=4 [18:34:19]MH_SAM_APDU [18:34:19]CAPDU: 80 13 00 00 [18:34:19]Write to MH i2c: E2 08 00 F0 1A 80 13 00 00 00 00 00 00 86 [18:34:19]Write i2c OK [18:34:19]MH_I2C_Read... [18:34:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:19]Read from MH i2c: E2 [18:34:19]MH_I2C_Read... [18:34:19]Read from MH i2c: E2 62 00 [18:34:19]MH_I2C_Read... [18:34:19]Read from MH i2c: E2 62 00 F0 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B1 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [18:34: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B1 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:19]wFMCommunicate OK [18:34:19]SAM_PROTO_GetFieldsCounters done [18:34:19]requested_item shift.num is exist - process it [18:34:19]requested_item shift.opened is exist - process it [18:34:19]req_shift_opened [18:34:19]FM_GetShiftState [18:34:19]SAM_PROTO_GetShiftState [18:34:19]wFMCommunicate request_size=4 [18:34:19]MH_SAM_APDU [18:34:19]CAPDU: 80 13 01 00 [18:34:19]Write to MH i2c: E2 08 00 F1 1A 80 13 01 00 00 00 00 00 88 [18:34:19]Write i2c OK [18:34:19]MH_I2C_Read... [18:34:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:19]Read from MH i2c: E2 [18:34:19]MH_I2C_Read... [18:34:19]Read from MH i2c: E2 0E 00 [18:34:19]MH_I2C_Read... [18:34:19]Read from MH i2c: E2 0E 00 F1 1A 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 1A [18:34:19]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [18:34:19]wFMCommunicate OK [18:34:19]SAM_PROTO_GetShiftState done [18:34:19]FM_GetShiftState done [18:34:19]req_shift_opened done [18:34:19]requested_item shift.open_date is exist - process it [18:34:19]req_shift_open_date [18:34:19]req_shift_open_date done [18:34:19]produce_requested_data done [18:34:19]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69809,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [18:34:19]process_action_free close_receipt [18:34:19]json_value_free [18:34:19]json_value_free done [18:34:19]process_json_proto returns [18:34:19]Send response to host [18:34:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69809,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [18:34:19]free response buf [18:34:19]execute_script done [18:34:19]execute_script returns [18:34:19]free content buf [18:34:19]Sock 9.Close socket [18:34:19]Sock 9.Thread stoped [18:34:23]OFD Sender: No OFD packet to send [18:34:28]OFD Sender: No OFD packet to send [18:34:33]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]OFD Sender: No OFD packet to send [18:34:48]OFD Sender: No OFD packet to send [18:34:53]OFD Sender: No OFD packet to send [18:34:58]OFD Sender: No OFD packet to send [18:35:03]OFD Sender: No OFD packet to send [18:35:08]OFD Sender: No OFD packet to send [18:35:13]OFD Sender: No OFD packet to send [18:35:18]OFD Sender: No OFD packet to send [18:35:23]OFD Sender: No OFD packet to send [18:35:28]OFD Sender: No OFD packet to send [18:35:33]OFD Sender: No OFD packet to send [18:35:38]OFD Sender: No OFD packet to send [18:35:43]OFD Sender: No OFD packet to send [18:35:48]OFD Sender: No OFD packet to send [18:35:53]OFD Sender: No OFD packet to send [18:35:58]OFD Sender: No OFD packet to send [18:36:03]OFD Sender: No OFD packet to send [18:36:08]OFD Sender: No OFD packet to send [18:36:13]OFD Sender: No OFD packet to send [18:36:18]OFD Sender: No OFD packet to send [18:36:23]OFD Sender: No OFD packet to send [18:36:28]OFD Sender: No OFD packet to send [18:36:33]OFD Sender: No OFD packet to send [18:36:38]OFD Sender: No OFD packet to send [18:36:42]accept exits with 7 [18:36:42]New connection [18:36:42]New thread 3066629476 created [18:36:42]Thread 3066486116 joined [18:36:42]Waiting for new connection... [18:36:42] Sock 7.Parse request [18:36:42]Sock 7.Check first char [18:36:42]Sock 7.First char is OK [18:36:42]request: POST /json_proto HTTP/1.0 [18:36:42]Method: POST [18:36:42]URL: /json_proto [18:36:42]Method is POST - this is cgi request [18:36:42]url: /json_proto [18:36:42]query_string will be loaded in cgi processing [18:36:42]execute_cgi json_proto POST (null) [18:36:42]execute_cgi path=json_proto method=POST [18:36:42]POST find Content-Length [18:36:42]Host: 172.17.52.196:8080 [18:36:42]Content-Length: 646 [18:36:42]Content-Type: application/json [18:36:42] [18:36:42]POST finish read [18:36:42]Found Content-Length = 646 [18:36:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127210", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:42]execute_script... [18:36: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)127210", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:42]POST & json_proto [18:36:42]process_json_proto [18:36:42]json parsed OK: [18:36:42]protocol is kg_v1.0 [18:36:42]action value=close_receipt [18:36:42]process_action close_receipt [18:36:42]cmd_close_receipt [18:36:42]MH_GetDate [18:36:42]Write to MH i2c: F0 00 00 F2 1A FB [18:36:42]Write i2c OK [18:36:42]MH_I2C_Read... [18:36:42]Read from MH i2c: F0 [18:36:42]MH_I2C_Read... [18:36:42]Read from MH i2c: F0 09 00 [18:36:42]MH_I2C_Read... [18:36:42]Read from MH i2c: F0 09 00 F2 1A 00 BD 4D 15 67 60 05 E4 66 39 [18:36:42]GetLastDocTimeStamp 1729449258 [18:36:42]current date 1729449405 [18:36:42]FM_GetShiftState [18:36:42]SAM_PROTO_GetShiftState [18:36:42]wFMCommunicate request_size=4 [18:36:42]MH_SAM_APDU [18:36:42]CAPDU: 80 13 01 00 [18:36:42]Write to MH i2c: E2 08 00 F3 1A 80 13 01 00 00 00 00 00 8A [18:36:42]Write i2c OK [18:36:42]MH_I2C_Read... [18:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:42]Read from MH i2c: E2 [18:36:42]MH_I2C_Read... [18:36:42]Read from MH i2c: E2 0E 00 [18:36:42]MH_I2C_Read... [18:36:42]Read from MH i2c: E2 0E 00 F3 1A 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 1C [18:36:42]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [18:36:42]wFMCommunicate OK [18:36:42]SAM_PROTO_GetShiftState done [18:36:42]FM_GetShiftState done [18:36:42]opened in 1729384380 [18:36:42]opened+sec_in_day 1729470780 [18:36:42]quantity*price = 13000 [18:36:42]sum+1 = 13001 [18:36:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 100 20.10.2024 18:36 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69810 ФПД: 31864925370957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183645&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69810&fm=31864925370957&tin=02508201610067®Number=0000000000091770&sum=13000 0 [18:36:43]StoreToDocumentArchive [18:36:43]shift 526 fd 69810 [18:36:43]save to /storage/0526/doc_00069810 [18:36:43]save last doc name /storage/0526/doc_00069810 to /storage/kkm_last_doc_name [18:36:43]save OK [18:36:43]Clear old archive folders... [18:36:43]ProcessDocumentItem done err = 0, tmpTLVsize=282 [18:36:43]tlvbuf is 009A6A10 [18:36:43]SAM_PROTO_ClearQueue [18:36:43]wFMCommunicate request_size=4 [18:36:43]MH_SAM_APDU [18:36:43]CAPDU: 80 09 00 00 [18:36:43]Write to MH i2c: E2 08 00 00 1B 80 09 00 00 00 00 00 00 8D [18:36:43]Write i2c OK [18:36:43]MH_I2C_Read... [18:36:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:43]Read from MH i2c: E2 [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: E2 03 00 [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: E2 03 00 00 1B 00 90 00 8F [18:36:43]RAPDU: 90 00 [18:36:43]wFMCommunicate OK [18:36:43]SAM_PROTO_ClearQueue done [18:36:43]KKMCreateOFDPacket [18:36:43]OFDProtocolAddRootSTLVToBuf [18:36:43]FM_MakeSignedData [18:36:43]FM_MakeSignedData [18:36:43]SAM_PROTO_SignData [18:36:43]wFMCommunicate request_size=4 [18:36:43]MH_SAM_APDU [18:36:43]CAPDU: 80 0D 01 02 [18:36:43]Write to MH i2c: E2 08 00 01 1B 80 0D 01 02 00 00 00 00 95 [18:36:43]Write i2c OK [18:36:43]MH_I2C_Read... [18:36:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:43]Read from MH i2c: E2 [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: E2 03 00 [18:36:43]MH_I2C_Read... [18:36:43]Read from MH i2c: E2 03 00 01 1B 00 90 00 90 [18:36:43]RAPDU: 90 00 [18:36:43]wFMCommunicate OK [18:36:43]wFMCommunicate request_size=255 [18:36:43]MH_SAM_APDU [18:36:43]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 BD 4D 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 [18:36:43]Write to MH i2c: E2 02 01 02 1B 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 BD 4D 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 00 00 9D [18:36:43]Write i2c OK [18:36:43]MH_I2C_Read... [18:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:44]Read from MH i2c: E2 [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: E2 03 00 [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: E2 03 00 02 1B 00 90 00 91 [18:36:44]RAPDU: 90 00 [18:36:44]wFMCommunicate OK [18:36:44]wFMCommunicate request_size=41 [18:36:44]MH_SAM_APDU [18:36:44]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B2 10 01 00 35 04 06 00 1C FB 21 8E BA 4D [18:36:44]Write to MH i2c: E2 2C 00 03 1B 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B2 10 01 00 35 04 06 00 1C FB 21 8E BA 4D 00 00 FB [18:36:44]Write i2c OK [18:36:44]MH_I2C_Read... [18:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:44]Read from MH i2c: E2 [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: E2 03 00 [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: E2 03 00 03 1B 00 90 00 92 [18:36:44]RAPDU: 90 00 [18:36:44]wFMCommunicate OK [18:36:44]wFMCommunicate request_size=4 [18:36:44]MH_SAM_APDU [18:36:44]CAPDU: 80 0D 03 02 [18:36:44]Write to MH i2c: E2 08 00 04 1B 80 0D 03 02 00 00 00 00 9A [18:36:44]Write i2c OK [18:36:44]MH_I2C_Read... [18:36:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:44]Read from MH i2c: E2 [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: E2 0B 00 [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: E2 0B 00 04 1B 00 79 2C 30 22 E6 F3 45 D0 90 00 80 [18:36:44]RAPDU: 79 2C 30 22 E6 F3 45 D0 90 00 [18:36:44]wFMCommunicate OK [18:36:44]SAM_PROTO_SignData done [18:36:44]FM_MakeSignedData done [18:36:44]CreateOFDProtocolMessage [18:36:44]wFMCommunicate request_size=4 [18:36:44]MH_SAM_APDU [18:36:44]CAPDU: 80 11 00 00 [18:36:44]Write to MH i2c: E2 08 00 05 1B 80 11 00 00 00 00 00 00 9A [18:36:44]Write i2c OK [18:36:44]MH_I2C_Read... [18:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:44]Read from MH i2c: E2 [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: E2 17 00 [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: E2 17 00 05 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 F1 [18:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [18:36:44]wFMCommunicate OK [18:36:44]CreateOFDProtocolMessage done [18:36:44]OFDSenderStorePacket 69810 [18:36:44]StoreOFDPacket docnum=69810 [18:36:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2E 01 00 00 80 5A 26 01 70 EE 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 BD 4D 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B2 10 01 00 35 04 06 00 1C FB 21 8E BA 4D 79 2C 30 22 E6 F3 45 D0 [18:36:44]CheckFolder [18:36:44]dirname=/storage/ofd_packets [18:36:44]CheckFolder done [18:36:44]ProducePacketName [18:36:44]name=ofd_packets/00069810 [18:36:44]NVStorageSaveData ofd_packets/00069810 [18:36:44]File name is /storage/ofd_packets/00069810 [18:36:44]Write 332 bytes [18:36:44]NVStorageSaveData done [18:36:44]OFDSenderStorePacket done [18:36:44]KKMCreateOFDPacket done [18:36:44]NVStorageSaveData kkm_last_timestamp [18:36:44]File name is /storage/kkm_last_timestamp [18:36:44]Write 4 bytes [18:36:44]NVStorageSaveData done [18:36:44]ExternCall_PrintAddStr [18:36:44]wPrintStart [18:36:44]Write to MH i2c: 01 00 00 06 1B 21 [18:36:44]Write i2c OK [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: 01 [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: 01 07 00 [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: 01 07 00 06 1B 00 00 00 00 00 FF 0F 36 [18:36:44]RasterBufferAndPrint [18:36:44]line Счет N : (3)127210 [18:36:44]line ИНН: 02508201610067 [18:36:44]line Контрольно-Кассовый Чек [18:36:44]line ПРОДАЖА [18:36:44]line Товар: 2000036220012 [18:36:44]line Кофе Капучино XL(GABB TRADE) [18:36:44]line 1.000 * 130.00 [18:36:44]line = 130.00 [18:36:44]line НДС 12% НСП 1% [18:36:44]line > о реализуемом товаре [18:36:44]line ИТОГО: 130.00 [18:36:44]line НСП 1% : 1.15 [18:36:44]line НДС 12% : 13.80 [18:36:44]line Наличными: 130.00 [18:36:44]line Безнал.: 0.00 [18:36:44]line Место: АЗС № 163 "Партнер Нефть" [18:36:44]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [18:36:44]line СНО: Общий режим [18:36:44]line Чек 100 20.10.2024 18:36 [18:36:44]line Смена: 526 ФФД: 1.0 [18:36:44]line ЗНМ: 0300000101 [18:36:44]line РНМ: 0000000000091770 [18:36:44]line Версия ККМ: 001 [18:36:44]line ФМ: 0000000000871749 [18:36:44]line ФД: 69810 [18:36:44]line ФПД: 31864925370957 [18:36:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T183645&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69810&fm=31864925370957&tin=02508201610067®Number=0000000000091770&sum=13000 [18:36:44]OFD Sender: Processing packet 69810 [packets to send 32, broken 31] [18:36:44]ProducePacketName [18:36:44]name=ofd_packets/00069810 [18:36:44]OFD Sender: To server: pG, [18:36:44]CommunicateWithHost lk.salyk.kg:30040 [18:36:44]ConnectInit lk.salyk.kg [18:36:44]line 0 [18:36:44]written 0, free lines is 4095 [18:36:44]Connected sock=10 [18:36:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2E 01 00 00 80 5A 26 01 70 EE 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 BD 4D 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B2 10 01 00 35 04 06 00 1C FB 21 8E BA 4D 79 2C 30 22 E6 F3 45 D0 [18:36:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 F3 A2 47 00 22 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B2 10 01 00 F4 03 04 00 40 F3 14 67 B6 04 01 00 00 AE A8 0A 67 D8 C2 F9 E1 [18:36:44]CommunicateWithHost err = 0 [18:36:44]CheckOFDResponse [18:36:44]1017 (14) - 77093643461234 [18:36:44]1041 (16) - 0000000000871749 [18:36:44]1040 (4) - 69810 [18:36:44]1012 (4) - 20.10.2024 12:10 [18:36:44]1206 (1) - 0 [18:36:44]OFD Sender: Remove packet 69810 [18:36:44]ProducePacketName [18:36:44]name=ofd_packets/00069810 [18:36:44]NVStorageDeleteData [18:36:45]Write to MH i2c: 01 00 00 2F 1B 4A [18:36:45]Write i2c OK [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: 01 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: 01 07 00 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: 01 07 00 2F 1B 00 00 00 00 00 FE 0C 5B [18:36:45]RasterBufferAndPrint [18:36:45]line [18:36:45]line [18:36:45]line [18:36:45]line [18:36:45]line [18:36:45]written 0, free lines is 3336 [18:36:45]MH_Cut [18:36:45]Write to MH i2c: D1 01 00 36 1B 01 23 [18:36:45]Write i2c OK [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: D1 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: D1 01 00 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: D1 01 00 36 1B 00 22 [18:36:45]Write to MH i2c: 01 00 00 37 1B 52 [18:36:45]Write i2c OK [18:36:45]MH_I2C_Read... [18:36:45]OFD Sender: No OFD packet to send [18:36:45]*** Cut start [18:36:45]*** Partial cut [18:36:45]*** CUTSNS_PIN = 1 [18:36:45]*** CUTSNS_PIN = 0 [18:36:46]*** Brake cut motor [18:36:46]Read from MH i2c: 01 [18:36:46]MH_I2C_Read... [18:36:46]*** Stop cut motor [18:36:46]*** Cut end [18:36:46]Read from MH i2c: 01 07 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: 01 07 00 37 1B 00 00 00 00 00 FF 0F 67 [18:36:46]process_action close_receipt done [18:36:46]requested_data is exist [18:36:46]produce_requested_data [18:36:46]requested_item fm.sn is exist - process it [18:36:46]wFMCommunicate request_size=4 [18:36:46]MH_SAM_APDU [18:36:46]CAPDU: 80 11 00 00 [18:36:46]Write to MH i2c: E2 08 00 38 1B 80 11 00 00 00 00 00 00 CD [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:46]Read from MH i2c: E2 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 17 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 17 00 38 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 24 [18:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [18:36:46]wFMCommunicate OK [18:36:46]requested_item fd.num is exist - process it [18:36:46]SAM_PROTO_GetFieldsCounters [18:36:46]wFMCommunicate request_size=4 [18:36:46]MH_SAM_APDU [18:36:46]CAPDU: 80 13 00 00 [18:36:46]Write to MH i2c: E2 08 00 39 1B 80 13 00 00 00 00 00 00 D0 [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:46]Read from MH i2c: E2 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 62 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 62 00 39 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B2 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [18:36: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B2 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:46]wFMCommunicate OK [18:36:46]SAM_PROTO_GetFieldsCounters done [18:36:46]requested_item shift.num is exist - process it [18:36:46]requested_item shift.opened is exist - process it [18:36:46]req_shift_opened [18:36:46]FM_GetShiftState [18:36:46]SAM_PROTO_GetShiftState [18:36:46]wFMCommunicate request_size=4 [18:36:46]MH_SAM_APDU [18:36:46]CAPDU: 80 13 01 00 [18:36:46]Write to MH i2c: E2 08 00 3A 1B 80 13 01 00 00 00 00 00 D2 [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:46]Read from MH i2c: E2 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 0E 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 0E 00 3A 1B 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 64 [18:36:46]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [18:36:46]wFMCommunicate OK [18:36:46]SAM_PROTO_GetShiftState done [18:36:46]FM_GetShiftState done [18:36:46]req_shift_opened done [18:36:46]requested_item shift.open_date is exist - process it [18:36:46]req_shift_open_date [18:36:46]req_shift_open_date done [18:36:46]produce_requested_data done [18:36:46]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69810,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [18:36:46]process_action_free close_receipt [18:36:46]json_value_free [18:36:46]json_value_free done [18:36:46]process_json_proto returns [18:36:46]Send response to host [18:36:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69810,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [18:36:46]free response buf [18:36:46]execute_script done [18:36:46]execute_script returns [18:36:46]free content buf [18:36:46]Sock 7.Close socket [18:36:46]Sock 7.Thread stoped [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:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:11]OFD Sender: No OFD packet to send [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]OFD Sender: No OFD packet to send [18:49:41]OFD Sender: No OFD packet to send [18:49:46]OFD Sender: No OFD packet to send [18:49:51]OFD Sender: No OFD packet to send [18:49:56]OFD Sender: No OFD packet to send [18:50:01]OFD Sender: No OFD packet to send [18:50:06]OFD Sender: No OFD packet to send [18:50:11]OFD Sender: No OFD packet to send [18:50:16]OFD Sender: No OFD packet to send [18:50:21]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:41]OFD Sender: No OFD packet to send [18:59:46]OFD Sender: No OFD packet to send [18:59:51]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:01:01]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:01:57]int [19:01:57]Write to MH i2c: 01 00 00 3B 1B 56 [19:01:57]*** FLAG_PRN_KEY set [19:01:57]Write i2c OK [19:01:57]MH_I2C_Read... [19:01:57]Read from MH i2c: 01 [19:01:57]MH_I2C_Read... [19:01:57]Read from MH i2c: 01 07 00 [19:01:57]MH_I2C_Read... [19:01:57]Read from MH i2c: 01 07 00 3B 1B 00 08 00 00 00 FF 0F 73 [19:01:57]state=0 [19:01:57]Key pressed [19:01:57]Feed [19:01:57]Write to MH i2c: D8 00 00 3C 1B 2E [19:01:57]Write i2c OK [19:01:57]MH_I2C_Read... [19:01:57]Read from MH i2c: D8 [19:01:57]MH_I2C_Read... [19:01:57]Read from MH i2c: D8 01 00 [19:01:57]MH_I2C_Read... [19:01:57]Read from MH i2c: D8 01 00 3C 1B 00 2F [19:01:57]int [19:01:57]Write to MH i2c: 01 00 00 3D 1B 58 [19:01:57]Write i2c OK [19:01:57]MH_I2C_Read... [19:01:57]Read from MH i2c: 01 [19:01:57]MH_I2C_Read... [19:01:57]Read from MH i2c: 01 07 00 [19:01:57]MH_I2C_Read... [19:01:57]Read from MH i2c: 01 07 00 3D 1B 00 48 00 00 00 3C 00 E3 [19:01:57]state=2 [19:01:57]Key pressed [19:01:58]int [19:01:58]Write to MH i2c: 01 00 00 3E 1B 59 [19:01:58]*** FLAG_PRN_KEY reset [19:01:58]Write i2c OK [19:01:58]MH_I2C_Read... [19:01:58]Read from MH i2c: 01 [19:01:58]MH_I2C_Read... [19:01:58]Read from MH i2c: 01 07 00 [19:01:58]MH_I2C_Read... [19:01:58]Read from MH i2c: 01 07 00 3E 1B 00 00 00 00 00 F6 0F 65 [19:01:58]state=2 [19:01:58]Stop feed [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:35]accept exits with 9 [19:05:35]New connection [19:05:35]New thread 3066486116 created [19:05:35]Thread 3066629476 joined [19:05:35]Waiting for new connection... [19:05:35] Sock 9.Parse request [19:05:35]Sock 9.Check first char [19:05:35]Sock 9.First char is OK [19:05:35]request: POST /json_proto HTTP/1.0 [19:05:35]Method: POST [19:05:35]URL: /json_proto [19:05:35]Method is POST - this is cgi request [19:05:35]url: /json_proto [19:05:35]query_string will be loaded in cgi processing [19:05:35]execute_cgi json_proto POST (null) [19:05:35]execute_cgi path=json_proto method=POST [19:05:35]POST find Content-Length [19:05:35]Host: 172.17.52.196:8080 [19:05:35]Content-Length: 621 [19:05:35]Content-Type: application/json [19:05:35] [19:05:35]POST finish read [19:05:35]Found Content-Length = 621 [19:05:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127211", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:35]execute_script... [19:05:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127211", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:35]POST & json_proto [19:05:35]process_json_proto [19:05:35]json parsed OK: [19:05:35]protocol is kg_v1.0 [19:05:35]action value=close_receipt [19:05:35]process_action close_receipt [19:05:35]cmd_close_receipt [19:05:35]MH_GetDate [19:05:35]Write to MH i2c: F0 00 00 3F 1B 49 [19:05:35]Write i2c OK [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: F0 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: F0 09 00 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: F0 09 00 3F 1B 00 82 54 15 67 60 05 E4 66 53 [19:05:35]GetLastDocTimeStamp 1729449405 [19:05:35]current date 1729451138 [19:05:35]FM_GetShiftState [19:05:35]SAM_PROTO_GetShiftState [19:05:35]wFMCommunicate request_size=4 [19:05:35]MH_SAM_APDU [19:05:35]CAPDU: 80 13 01 00 [19:05:35]Write to MH i2c: E2 08 00 40 1B 80 13 01 00 00 00 00 00 D8 [19:05:35]Write i2c OK [19:05:35]MH_I2C_Read... [19:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:35]Read from MH i2c: E2 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: E2 0E 00 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: E2 0E 00 40 1B 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 6A [19:05:35]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:05:35]wFMCommunicate OK [19:05:35]SAM_PROTO_GetShiftState done [19:05:35]FM_GetShiftState done [19:05:35]opened in 1729384380 [19:05:35]opened+sec_in_day 1729470780 [19:05:35]quantity*price = 14400 [19:05:35]sum+1 = 14401 [19:05:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 101 20.10.2024 19:05 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69811 ФПД: 272055665268418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190538&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69811&fm=272055665268418&tin=02508201610067®Number=0000000000091770&sum=14400 0 [19:05:36]StoreToDocumentArchive [19:05:36]shift 526 fd 69811 [19:05:36]save to /storage/0526/doc_00069811 [19:05:36]save last doc name /storage/0526/doc_00069811 to /storage/kkm_last_doc_name [19:05:36]save OK [19:05:36]Clear old archive folders... [19:05:36]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:05:36]tlvbuf is B6E59790 [19:05:36]SAM_PROTO_ClearQueue [19:05:36]wFMCommunicate request_size=4 [19:05:36]MH_SAM_APDU [19:05:36]CAPDU: 80 09 00 00 [19:05:36]Write to MH i2c: E2 08 00 4D 1B 80 09 00 00 00 00 00 00 DA [19:05:36]Write i2c OK [19:05:36]MH_I2C_Read... [19:05:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:36]Read from MH i2c: E2 [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: E2 03 00 [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: E2 03 00 4D 1B 00 90 00 DC [19:05:36]RAPDU: 90 00 [19:05:36]wFMCommunicate OK [19:05:36]SAM_PROTO_ClearQueue done [19:05:36]KKMCreateOFDPacket [19:05:36]OFDProtocolAddRootSTLVToBuf [19:05:36]FM_MakeSignedData [19:05:36]FM_MakeSignedData [19:05:36]SAM_PROTO_SignData [19:05:36]wFMCommunicate request_size=4 [19:05:36]MH_SAM_APDU [19:05:36]CAPDU: 80 0D 01 02 [19:05:36]Write to MH i2c: E2 08 00 4E 1B 80 0D 01 02 00 00 00 00 E2 [19:05:36]Write i2c OK [19:05:36]MH_I2C_Read... [19:05:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:36]Read from MH i2c: E2 [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: E2 03 00 [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: E2 03 00 4E 1B 00 90 00 DD [19:05:36]RAPDU: 90 00 [19:05:36]wFMCommunicate OK [19:05:36]wFMCommunicate request_size=255 [19:05:36]MH_SAM_APDU [19:05:36]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 82 54 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [19:05:36]Write to MH i2c: E2 02 01 4F 1B 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 82 54 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 12 [19:05:36]Write i2c OK [19:05:36]MH_I2C_Read... [19:05:36]OFD Sender: No OFD packet to send [19:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:36]Read from MH i2c: E2 [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: E2 03 00 [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: E2 03 00 4F 1B 00 90 00 DE [19:05:36]RAPDU: 90 00 [19:05:36]wFMCommunicate OK [19:05:36]wFMCommunicate request_size=32 [19:05:36]MH_SAM_APDU [19:05:36]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 B3 10 01 00 35 04 06 00 F7 6E E5 49 96 C2 [19:05:36]Write to MH i2c: E2 23 00 50 1B 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 B3 10 01 00 35 04 06 00 F7 6E E5 49 96 C2 00 00 F5 [19:05:36]Write i2c OK [19:05:36]MH_I2C_Read... [19:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:36]Read from MH i2c: E2 [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: E2 03 00 [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: E2 03 00 50 1B 00 90 00 DF [19:05:36]RAPDU: 90 00 [19:05:36]wFMCommunicate OK [19:05:36]wFMCommunicate request_size=4 [19:05:36]MH_SAM_APDU [19:05:36]CAPDU: 80 0D 03 02 [19:05:36]Write to MH i2c: E2 08 00 51 1B 80 0D 03 02 00 00 00 00 E7 [19:05:36]Write i2c OK [19:05:36]MH_I2C_Read... [19:05:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:37]Read from MH i2c: E2 [19:05:37]MH_I2C_Read... [19:05:37]Read from MH i2c: E2 0B 00 [19:05:37]MH_I2C_Read... [19:05:37]Read from MH i2c: E2 0B 00 51 1B 00 7B 70 F5 58 45 5F 75 00 90 00 39 [19:05:37]RAPDU: 7B 70 F5 58 45 5F 75 00 90 00 [19:05:37]wFMCommunicate OK [19:05:37]SAM_PROTO_SignData done [19:05:37]FM_MakeSignedData done [19:05:37]CreateOFDProtocolMessage [19:05:37]wFMCommunicate request_size=4 [19:05:37]MH_SAM_APDU [19:05:37]CAPDU: 80 11 00 00 [19:05:37]Write to MH i2c: E2 08 00 52 1B 80 11 00 00 00 00 00 00 E7 [19:05:37]Write i2c OK [19:05:37]MH_I2C_Read... [19:05:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:37]Read from MH i2c: E2 [19:05:37]MH_I2C_Read... [19:05:37]Read from MH i2c: E2 17 00 [19:05:37]MH_I2C_Read... [19:05:37]Read from MH i2c: E2 17 00 52 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 3E [19:05:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:05:37]wFMCommunicate OK [19:05:37]CreateOFDProtocolMessage done [19:05:37]OFDSenderStorePacket 69811 [19:05:37]StoreOFDPacket docnum=69811 [19:05:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 94 73 1D 01 BC DA 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 82 54 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B3 10 01 00 35 04 06 00 F7 6E E5 49 96 C2 7B 70 F5 58 45 5F 75 00 [19:05:37]CheckFolder [19:05:37]dirname=/storage/ofd_packets [19:05:37]CheckFolder done [19:05:37]ProducePacketName [19:05:37]name=ofd_packets/00069811 [19:05:37]NVStorageSaveData ofd_packets/00069811 [19:05:37]File name is /storage/ofd_packets/00069811 [19:05:37]Write 323 bytes [19:05:37]NVStorageSaveData done [19:05:37]OFDSenderStorePacket done [19:05:37]KKMCreateOFDPacket done [19:05:37]NVStorageSaveData kkm_last_timestamp [19:05:37]File name is /storage/kkm_last_timestamp [19:05:37]Write 4 bytes [19:05:37]NVStorageSaveData done [19:05:37]ExternCall_PrintAddStr [19:05:37]wPrintStart [19:05:37]Write to MH i2c: 01 00 00 53 1B 6E [19:05:37]Write i2c OK [19:05:37]MH_I2C_Read... [19:05:37]Read from MH i2c: 01 [19:05:37]MH_I2C_Read... [19:05:37]Read from MH i2c: 01 07 00 [19:05:37]MH_I2C_Read... [19:05:37]Read from MH i2c: 01 07 00 53 1B 00 00 00 00 00 FF 0F 83 [19:05:37]RasterBufferAndPrint [19:05:37]line Счет N : (3)127211 [19:05:37]line ИНН: 02508201610067 [19:05:37]line Контрольно-Кассовый Чек [19:05:37]line ПРОДАЖА [19:05:37]line Товар: 48743570 [19:05:37]line Сигареты Winston XStyle Blue [19:05:37]line 1.000 * 144.00 [19:05:37]line = 144.00 [19:05:37]line НДС 12% НСП 1% [19:05:37]line > о реализуемом товаре [19:05:37]line ИТОГО: 144.00 [19:05:37]line НСП 1% : 1.27 [19:05:37]line НДС 12% : 15.29 [19:05:37]line Наличными: 144.00 [19:05:37]line Безнал.: 0.00 [19:05:37]line Место: АЗС № 163 "Партнер Нефть" [19:05:37]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [19:05:37]line СНО: Общий режим [19:05:37]line Чек 101 20.10.2024 19:05 [19:05:37]line Смена: 526 ФФД: 1.0 [19:05:37]line ЗНМ: 0300000101 [19:05:37]line РНМ: 0000000000091770 [19:05:37]line Версия ККМ: 001 [19:05:37]line ФМ: 0000000000871749 [19:05:37]line ФД: 69811 [19:05:37]line ФПД: 272055665268418 [19:05:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190538&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69811&fm=272055665268418&tin=02508201610067®Number=0000000000091770&sum=14400 [19:05:37]line 0 [19:05:37]OFD Sender: Processing packet 69811 [packets to send 32, broken 31] [19:05:37]ProducePacketName [19:05:37]name=ofd_packets/00069811 [19:05:37]OFD Sender: To server: pG, [19:05:37]CommunicateWithHost lk.salyk.kg:30040 [19:05:37]ConnectInit lk.salyk.kg [19:05:37]written 0, free lines is 4095 [19:05:37]Connected sock=10 [19:05:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 94 73 1D 01 BC DA 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 82 54 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B3 10 01 00 35 04 06 00 F7 6E E5 49 96 C2 7B 70 F5 58 45 5F 75 00 [19:05:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 3D BD 47 00 82 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B3 10 01 00 F4 03 04 00 04 FA 14 67 B6 04 01 00 00 A5 93 CF 16 37 AE 7F 49 [19:05:37]CommunicateWithHost err = 0 [19:05:37]CheckOFDResponse [19:05:37]1017 (14) - 77093643461234 [19:05:37]1041 (16) - 0000000000871749 [19:05:37]1040 (4) - 69811 [19:05:37]1012 (4) - 20.10.2024 12:39 [19:05:37]1206 (1) - 0 [19:05:37]OFD Sender: Remove packet 69811 [19:05:37]ProducePacketName [19:05:37]name=ofd_packets/00069811 [19:05:37]NVStorageDeleteData [19:05:37]Write to MH i2c: 01 00 00 7B 1B 96 [19:05:37]Write i2c OK [19:05:37]MH_I2C_Read... [19:05:37]Read from MH i2c: 01 [19:05:37]MH_I2C_Read... [19:05:37]Read from MH i2c: 01 07 00 [19:05:37]MH_I2C_Read... [19:05:37]Read from MH i2c: 01 07 00 7B 1B 00 00 00 00 00 F5 0C 9E [19:05:37]RasterBufferAndPrint [19:05:37]line [19:05:37]line [19:05:37]line [19:05:37]line [19:05:37]line [19:05:37]written 0, free lines is 3324 [19:05:37]MH_Cut [19:05:37]Write to MH i2c: D1 01 00 82 1B 01 6F [19:05:37]Write i2c OK [19:05:37]MH_I2C_Read... [19:05:37]Read from MH i2c: D1 [19:05:37]MH_I2C_Read... [19:05:37]Read from MH i2c: D1 01 00 [19:05:37]MH_I2C_Read... [19:05:37]Read from MH i2c: D1 01 00 82 1B 00 6E [19:05:37]Write to MH i2c: 01 00 00 83 1B 9E [19:05:37]Write i2c OK [19:05:37]MH_I2C_Read... [19:05:38]OFD Sender: No OFD packet to send [19:05:38]*** Cut start [19:05:38]*** Partial cut [19:05:38]*** CUTSNS_PIN = 1 [19:05:38]*** CUTSNS_PIN = 0 [19:05:39]*** Brake cut motor [19:05:39]Read from MH i2c: 01 [19:05:39]MH_I2C_Read... [19:05:39]*** Stop cut motor [19:05:39]*** Cut end [19:05:39]Read from MH i2c: 01 07 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: 01 07 00 83 1B 00 00 00 00 00 FF 0F B3 [19:05:39]process_action close_receipt done [19:05:39]requested_data is exist [19:05:39]produce_requested_data [19:05:39]requested_item fm.sn is exist - process it [19:05:39]wFMCommunicate request_size=4 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 11 00 00 [19:05:39]Write to MH i2c: E2 08 00 84 1B 80 11 00 00 00 00 00 00 19 [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 17 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 17 00 84 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 70 [19:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:05:39]wFMCommunicate OK [19:05:39]requested_item fd.num is exist - process it [19:05:39]SAM_PROTO_GetFieldsCounters [19:05:39]wFMCommunicate request_size=4 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 13 00 00 [19:05:39]Write to MH i2c: E2 08 00 85 1B 80 13 00 00 00 00 00 00 1C [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 62 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 62 00 85 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B3 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [19:05: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B3 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:39]wFMCommunicate OK [19:05:39]SAM_PROTO_GetFieldsCounters done [19:05:39]requested_item shift.num is exist - process it [19:05:39]requested_item shift.opened is exist - process it [19:05:39]req_shift_opened [19:05:39]FM_GetShiftState [19:05:39]SAM_PROTO_GetShiftState [19:05:39]wFMCommunicate request_size=4 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 13 01 00 [19:05:39]Write to MH i2c: E2 08 00 86 1B 80 13 01 00 00 00 00 00 1E [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 0E 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 0E 00 86 1B 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 B0 [19:05:39]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:05:39]wFMCommunicate OK [19:05:39]SAM_PROTO_GetShiftState done [19:05:39]FM_GetShiftState done [19:05:39]req_shift_opened done [19:05:39]requested_item shift.open_date is exist - process it [19:05:39]req_shift_open_date [19:05:39]req_shift_open_date done [19:05:39]produce_requested_data done [19:05:39]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69811,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [19:05:39]process_action_free close_receipt [19:05:39]json_value_free [19:05:39]json_value_free done [19:05:39]process_json_proto returns [19:05:39]Send response to host [19:05:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69811,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [19:05:39]free response buf [19:05:39]execute_script done [19:05:39]execute_script returns [19:05:39]free content buf [19:05:39]Sock 9.Close socket [19:05:39]Sock 9.Thread stoped [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:18]accept exits with 7 [19:06:18]New connection [19:06:18]New thread 3066629476 created [19:06:18]Thread 3066486116 joined [19:06:18]Waiting for new connection... [19:06:18] Sock 7.Parse request [19:06:18]Sock 7.Check first char [19:06:18]Sock 7.First char is OK [19:06:18]request: POST /json_proto HTTP/1.0 [19:06:18]Method: POST [19:06:18]URL: /json_proto [19:06:18]Method is POST - this is cgi request [19:06:18]url: /json_proto [19:06:18]query_string will be loaded in cgi processing [19:06:18]execute_cgi json_proto POST (null) [19:06:18]execute_cgi path=json_proto method=POST [19:06:18]POST find Content-Length [19:06:18]Host: 172.17.52.196:8080 [19:06:18]Content-Length: 774 [19:06:18]Content-Type: application/json [19:06:18] [19:06:18]POST finish read [19:06:18]Found Content-Length = 774 [19:06:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127212", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 3.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:18]execute_script... [19:06: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)127212", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 3.000, "sum" : 195.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:18]POST & json_proto [19:06:18]process_json_proto [19:06:18]json parsed OK: [19:06:18]protocol is kg_v1.0 [19:06:18]action value=close_receipt [19:06:18]process_action close_receipt [19:06:18]cmd_close_receipt [19:06:18]MH_GetDate [19:06:18]Write to MH i2c: F0 00 00 87 1B 91 [19:06:18]Write i2c OK [19:06:18]MH_I2C_Read... [19:06:18]Read from MH i2c: F0 [19:06:18]MH_I2C_Read... [19:06:18]Read from MH i2c: F0 09 00 [19:06:18]MH_I2C_Read... [19:06:18]Read from MH i2c: F0 09 00 87 1B 00 AD 54 15 67 60 05 E4 66 C6 [19:06:18]GetLastDocTimeStamp 1729451138 [19:06:18]current date 1729451181 [19:06:18]FM_GetShiftState [19:06:18]SAM_PROTO_GetShiftState [19:06:18]wFMCommunicate request_size=4 [19:06:18]MH_SAM_APDU [19:06:18]CAPDU: 80 13 01 00 [19:06:18]Write to MH i2c: E2 08 00 88 1B 80 13 01 00 00 00 00 00 20 [19:06:18]Write i2c OK [19:06:18]MH_I2C_Read... [19:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:18]Read from MH i2c: E2 [19:06:18]MH_I2C_Read... [19:06:18]Read from MH i2c: E2 0E 00 [19:06:18]MH_I2C_Read... [19:06:18]Read from MH i2c: E2 0E 00 88 1B 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 B2 [19:06:18]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:06:18]wFMCommunicate OK [19:06:18]SAM_PROTO_GetShiftState done [19:06:18]FM_GetShiftState done [19:06:18]opened in 1729384380 [19:06:18]opened+sec_in_day 1729470780 [19:06:18]quantity*price = 19500 [19:06:18]sum+1 = 19501 [19:06:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.73 НДС 12% : 20.71 Наличными: 0.00 Безнал.: 195.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 102 20.10.2024 19:06 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69812 ФПД: 50761562887410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190621&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69812&fm=50761562887410&tin=02508201610067®Number=0000000000091770&sum=19500 0 [19:06:19]StoreToDocumentArchive [19:06:19]shift 526 fd 69812 [19:06:19]save to /storage/0526/doc_00069812 [19:06:19]save last doc name /storage/0526/doc_00069812 to /storage/kkm_last_doc_name [19:06:19]save OK [19:06:19]Clear old archive folders... [19:06:19]ProcessDocumentItem done err = 0, tmpTLVsize=272 [19:06:19]tlvbuf is 009D40A0 [19:06:19]SAM_PROTO_ClearQueue [19:06:19]wFMCommunicate request_size=4 [19:06:19]MH_SAM_APDU [19:06:19]CAPDU: 80 09 00 00 [19:06:19]Write to MH i2c: E2 08 00 95 1B 80 09 00 00 00 00 00 00 22 [19:06:19]Write i2c OK [19:06:19]MH_I2C_Read... [19:06:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:19]Read from MH i2c: E2 [19:06:19]MH_I2C_Read... [19:06:19]Read from MH i2c: E2 03 00 [19:06:19]MH_I2C_Read... [19:06:19]Read from MH i2c: E2 03 00 95 1B 00 90 00 24 [19:06:19]RAPDU: 90 00 [19:06:19]wFMCommunicate OK [19:06:19]SAM_PROTO_ClearQueue done [19:06:19]KKMCreateOFDPacket [19:06:19]OFDProtocolAddRootSTLVToBuf [19:06:19]FM_MakeSignedData [19:06:19]FM_MakeSignedData [19:06:19]SAM_PROTO_SignData [19:06:19]wFMCommunicate request_size=4 [19:06:19]MH_SAM_APDU [19:06:19]CAPDU: 80 0D 01 02 [19:06:19]Write to MH i2c: E2 08 00 96 1B 80 0D 01 02 00 00 00 00 2A [19:06:19]Write i2c OK [19:06:19]MH_I2C_Read... [19:06:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:19]Read from MH i2c: E2 [19:06:19]MH_I2C_Read... [19:06:19]Read from MH i2c: E2 03 00 [19:06:19]MH_I2C_Read... [19:06:19]Read from MH i2c: E2 03 00 96 1B 00 90 00 25 [19:06:19]RAPDU: 90 00 [19:06:19]wFMCommunicate OK [19:06:19]wFMCommunicate request_size=255 [19:06:19]MH_SAM_APDU [19:06:19]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 AD 54 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 [19:06:19]Write to MH i2c: E2 02 01 97 1B 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 AD 54 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 10 [19:06:19]Write i2c OK [19:06:19]MH_I2C_Read... [19:06:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:19]Read from MH i2c: E2 [19:06:19]MH_I2C_Read... [19:06:19]Read from MH i2c: E2 03 00 [19:06:19]MH_I2C_Read... [19:06:19]Read from MH i2c: E2 03 00 97 1B 00 90 00 26 [19:06:19]RAPDU: 90 00 [19:06:19]wFMCommunicate OK [19:06:19]wFMCommunicate request_size=31 [19:06:19]MH_SAM_APDU [19:06:19]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 37 34 39 10 04 04 00 B4 10 01 00 35 04 06 00 2E 2A D8 EC 94 F2 [19:06:19]Write to MH i2c: E2 22 00 98 1B 80 0D 02 02 1A 00 30 30 38 37 31 37 34 39 10 04 04 00 B4 10 01 00 35 04 06 00 2E 2A D8 EC 94 F2 00 00 C3 [19:06:19]Write i2c OK [19:06:19]MH_I2C_Read... [19:06:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:19]Read from MH i2c: E2 [19:06:19]MH_I2C_Read... [19:06:19]Read from MH i2c: E2 03 00 [19:06:19]MH_I2C_Read... [19:06:19]Read from MH i2c: E2 03 00 98 1B 00 90 00 27 [19:06:19]RAPDU: 90 00 [19:06:19]wFMCommunicate OK [19:06:19]wFMCommunicate request_size=4 [19:06:19]MH_SAM_APDU [19:06:19]CAPDU: 80 0D 03 02 [19:06:19]Write to MH i2c: E2 08 00 99 1B 80 0D 03 02 00 00 00 00 2F [19:06:19]Write i2c OK [19:06:19]MH_I2C_Read... [19:06:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:20]Read from MH i2c: E2 [19:06:20]MH_I2C_Read... [19:06:20]Read from MH i2c: E2 0B 00 [19:06:20]MH_I2C_Read... [19:06:20]Read from MH i2c: E2 0B 00 99 1B 00 E4 93 32 64 CC E0 E0 52 90 00 1B [19:06:20]RAPDU: E4 93 32 64 CC E0 E0 52 90 00 [19:06:20]wFMCommunicate OK [19:06:20]SAM_PROTO_SignData done [19:06:20]FM_MakeSignedData done [19:06:20]CreateOFDProtocolMessage [19:06:20]wFMCommunicate request_size=4 [19:06:20]MH_SAM_APDU [19:06:20]CAPDU: 80 11 00 00 [19:06:20]Write to MH i2c: E2 08 00 9A 1B 80 11 00 00 00 00 00 00 2F [19:06:20]Write i2c OK [19:06:20]MH_I2C_Read... [19:06:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:20]Read from MH i2c: E2 [19:06:20]MH_I2C_Read... [19:06:20]Read from MH i2c: E2 17 00 [19:06:20]MH_I2C_Read... [19:06:20]Read from MH i2c: E2 17 00 9A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 86 [19:06:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:06:20]wFMCommunicate OK [19:06:20]CreateOFDProtocolMessage done [19:06:20]OFDSenderStorePacket 69812 [19:06:20]StoreOFDPacket docnum=69812 [19:06:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 A0 43 1C 01 29 AA 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 AD 54 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B4 10 01 00 35 04 06 00 2E 2A D8 EC 94 F2 E4 93 32 64 CC E0 E0 52 [19:06:20]CheckFolder [19:06:20]dirname=/storage/ofd_packets [19:06:20]CheckFolder done [19:06:20]ProducePacketName [19:06:20]name=ofd_packets/00069812 [19:06:20]NVStorageSaveData ofd_packets/00069812 [19:06:20]File name is /storage/ofd_packets/00069812 [19:06:20]Write 322 bytes [19:06:20]NVStorageSaveData done [19:06:20]OFDSenderStorePacket done [19:06:20]KKMCreateOFDPacket done [19:06:20]NVStorageSaveData kkm_last_timestamp [19:06:20]File name is /storage/kkm_last_timestamp [19:06:20]Write 4 bytes [19:06:20]NVStorageSaveData done [19:06:20]ExternCall_PrintAddStr [19:06:20]wPrintStart [19:06:20]Write to MH i2c: 01 00 00 9B 1B B6 [19:06:20]Write i2c OK [19:06:20]MH_I2C_Read... [19:06:20]Read from MH i2c: 01 [19:06:20]MH_I2C_Read... [19:06:20]Read from MH i2c: 01 07 00 [19:06:20]MH_I2C_Read... [19:06:20]Read from MH i2c: 01 07 00 9B 1B 00 00 00 00 00 FF 0F CB [19:06:20]RasterBufferAndPrint [19:06:20]line Счет N : (3)127212 [19:06:20]line ИНН: 02508201610067 [19:06:20]line Контрольно-Кассовый Чек [19:06:20]line ПРОДАЖА [19:06:20]line Товар: 47011656 [19:06:20]line Водка Пшеничная 0,1л [19:06:20]line 3.000 * 65.00 [19:06:20]line = 195.00 [19:06:20]line НДС 12% НСП 1% [19:06:20]line > о реализуемом товаре [19:06:20]line ИТОГО: 195.00 [19:06:20]line НСП 1% : 1.73 [19:06:20]line НДС 12% : 20.71 [19:06:20]line Наличными: 0.00 [19:06:20]line Безнал.: 195.00 [19:06:20]line Место: АЗС № 163 "Партнер Нефть" [19:06:20]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [19:06:20]line СНО: Общий режим [19:06:20]line Чек 102 20.10.2024 19:06 [19:06:20]line Смена: 526 ФФД: 1.0 [19:06:20]line ЗНМ: 0300000101 [19:06:20]line РНМ: 0000000000091770 [19:06:20]line Версия ККМ: 001 [19:06:20]line Платежная система: Mbank [19:06:20]line ФМ: 0000000000871749 [19:06:20]line ФД: 69812 [19:06:20]line ФПД: 50761562887410 [19:06:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190621&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69812&fm=50761562887410&tin=02508201610067®Number=0000000000091770&sum=19500 [19:06:20]OFD Sender: Processing packet 69812 [packets to send 32, broken 31] [19:06:20]ProducePacketName [19:06:20]name=ofd_packets/00069812 [19:06:20]OFD Sender: To server: pG, [19:06:20]CommunicateWithHost lk.salyk.kg:30040 [19:06:20]ConnectInit lk.salyk.kg [19:06:20]line 0 [19:06:20]written 0, free lines is 4095 [19:06:20]Connected sock=10 [19:06:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 A0 43 1C 01 29 AA 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 AD 54 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B4 10 01 00 35 04 06 00 2E 2A D8 EC 94 F2 E4 93 32 64 CC E0 E0 52 [19:06:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 B8 34 47 00 43 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 31 37 34 39 10 04 04 00 B4 10 01 00 F4 03 04 00 2F FA 14 67 B6 04 01 00 00 4F 09 F7 BB B2 AC C7 72 [19:06:20]CommunicateWithHost err = 0 [19:06:20]CheckOFDResponse [19:06:20]1017 (14) - 77093643461234 [19:06:20]1041 (16) - 0000000000871749 [19:06:20]1040 (4) - 69812 [19:06:20]1012 (4) - 20.10.2024 12:40 [19:06:20]1206 (1) - 0 [19:06:20]OFD Sender: Remove packet 69812 [19:06:20]ProducePacketName [19:06:20]name=ofd_packets/00069812 [19:06:20]NVStorageDeleteData [19:06:20]Write to MH i2c: 01 00 00 C4 1B DF [19:06:20]Write i2c OK [19:06:20]MH_I2C_Read... [19:06:20]Read from MH i2c: 01 [19:06:20]MH_I2C_Read... [19:06:20]Read from MH i2c: 01 07 00 [19:06:20]MH_I2C_Read... [19:06:20]Read from MH i2c: 01 07 00 C4 1B 00 00 00 00 00 FB 0C ED [19:06:20]RasterBufferAndPrint [19:06:20]line [19:06:20]line [19:06:20]line [19:06:20]line [19:06:20]line [19:06:20]written 0, free lines is 3330 [19:06:20]MH_Cut [19:06:20]Write to MH i2c: D1 01 00 CB 1B 01 B8 [19:06:20]Write i2c OK [19:06:20]MH_I2C_Read... [19:06:20]Read from MH i2c: D1 [19:06:20]MH_I2C_Read... [19:06:20]Read from MH i2c: D1 01 00 [19:06:20]MH_I2C_Read... [19:06:20]Read from MH i2c: D1 01 00 CB 1B 00 B7 [19:06:20]Write to MH i2c: 01 00 00 CC 1B E7 [19:06:20]Write i2c OK [19:06:20]MH_I2C_Read... [19:06:21]OFD Sender: No OFD packet to send [19:06:21]*** Cut start [19:06:21]*** Partial cut [19:06:21]*** CUTSNS_PIN = 1 [19:06:21]*** CUTSNS_PIN = 0 [19:06:22]*** Brake cut motor [19:06:22]Read from MH i2c: 01 [19:06:22]MH_I2C_Read... [19:06:22]*** Stop cut motor [19:06:22]*** Cut end [19:06:22]Read from MH i2c: 01 07 00 [19:06:22]MH_I2C_Read... [19:06:22]Read from MH i2c: 01 07 00 CC 1B 00 00 00 00 00 FF 0F FC [19:06:22]process_action close_receipt done [19:06:22]requested_data is exist [19:06:22]produce_requested_data [19:06:22]requested_item fm.sn is exist - process it [19:06:22]wFMCommunicate request_size=4 [19:06:22]MH_SAM_APDU [19:06:22]CAPDU: 80 11 00 00 [19:06:22]Write to MH i2c: E2 08 00 CD 1B 80 11 00 00 00 00 00 00 62 [19:06:22]Write i2c OK [19:06:22]MH_I2C_Read... [19:06:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:22]Read from MH i2c: E2 [19:06:22]MH_I2C_Read... [19:06:22]Read from MH i2c: E2 17 00 [19:06:22]MH_I2C_Read... [19:06:22]Read from MH i2c: E2 17 00 CD 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 B9 [19:06:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:06:22]wFMCommunicate OK [19:06:22]requested_item fd.num is exist - process it [19:06:22]SAM_PROTO_GetFieldsCounters [19:06:22]wFMCommunicate request_size=4 [19:06:22]MH_SAM_APDU [19:06:22]CAPDU: 80 13 00 00 [19:06:22]Write to MH i2c: E2 08 00 CE 1B 80 13 00 00 00 00 00 00 65 [19:06:22]Write i2c OK [19:06:22]MH_I2C_Read... [19:06:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:22]Read from MH i2c: E2 [19:06:22]MH_I2C_Read... [19:06:22]Read from MH i2c: E2 62 00 [19:06:22]MH_I2C_Read... [19:06:22]Read from MH i2c: E2 62 00 CE 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B4 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [19:06: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B4 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:22]wFMCommunicate OK [19:06:22]SAM_PROTO_GetFieldsCounters done [19:06:22]requested_item shift.num is exist - process it [19:06:22]requested_item shift.opened is exist - process it [19:06:22]req_shift_opened [19:06:22]FM_GetShiftState [19:06:22]SAM_PROTO_GetShiftState [19:06:22]wFMCommunicate request_size=4 [19:06:22]MH_SAM_APDU [19:06:22]CAPDU: 80 13 01 00 [19:06:22]Write to MH i2c: E2 08 00 CF 1B 80 13 01 00 00 00 00 00 67 [19:06:22]Write i2c OK [19:06:22]MH_I2C_Read... [19:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:22]Read from MH i2c: E2 [19:06:22]MH_I2C_Read... [19:06:22]Read from MH i2c: E2 0E 00 [19:06:22]MH_I2C_Read... [19:06:22]Read from MH i2c: E2 0E 00 CF 1B 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 F9 [19:06:22]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:06:22]wFMCommunicate OK [19:06:22]SAM_PROTO_GetShiftState done [19:06:22]FM_GetShiftState done [19:06:22]req_shift_opened done [19:06:22]requested_item shift.open_date is exist - process it [19:06:22]req_shift_open_date [19:06:22]req_shift_open_date done [19:06:22]produce_requested_data done [19:06:22]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69812,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [19:06:22]process_action_free close_receipt [19:06:22]json_value_free [19:06:22]json_value_free done [19:06:22]process_json_proto returns [19:06:22]Send response to host [19:06:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69812,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [19:06:22]free response buf [19:06:22]execute_script done [19:06:22]execute_script returns [19:06:22]free content buf [19:06:22]Sock 7.Close socket [19:06:22]Sock 7.Thread stoped [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:38]accept exits with 9 [19:06:38]New connection [19:06:38]New thread 3066486116 created [19:06:38]Thread 3066629476 joined [19:06:38]Waiting for new connection... [19:06:38] Sock 9.Parse request [19:06:38]Sock 9.Check first char [19:06:38]Sock 9.First char is OK [19:06:38]request: POST /json_proto HTTP/1.0 [19:06:38]Method: POST [19:06:38]URL: /json_proto [19:06:38]Method is POST - this is cgi request [19:06:38]url: /json_proto [19:06:38]query_string will be loaded in cgi processing [19:06:38]execute_cgi json_proto POST (null) [19:06:38]execute_cgi path=json_proto method=POST [19:06:38]POST find Content-Length [19:06:38]Host: 172.17.52.196:8080 [19:06:38]Content-Length: 626 [19:06:38]Content-Type: application/json [19:06:38] [19:06:38]POST finish read [19:06:38]Found Content-Length = 626 [19:06:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127213", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:38]execute_script... [19:06:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127213", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:38]POST & json_proto [19:06:38]process_json_proto [19:06:38]json parsed OK: [19:06:38]protocol is kg_v1.0 [19:06:38]action value=close_receipt [19:06:38]process_action close_receipt [19:06:38]cmd_close_receipt [19:06:38]MH_GetDate [19:06:38]Write to MH i2c: F0 00 00 D0 1B DA [19:06:38]Write i2c OK [19:06:38]MH_I2C_Read... [19:06:38]Read from MH i2c: F0 [19:06:38]MH_I2C_Read... [19:06:38]Read from MH i2c: F0 09 00 [19:06:38]MH_I2C_Read... [19:06:38]Read from MH i2c: F0 09 00 D0 1B 00 C1 54 15 67 60 05 E4 66 23 [19:06:38]GetLastDocTimeStamp 1729451181 [19:06:38]current date 1729451201 [19:06:38]FM_GetShiftState [19:06:38]SAM_PROTO_GetShiftState [19:06:38]wFMCommunicate request_size=4 [19:06:38]MH_SAM_APDU [19:06:38]CAPDU: 80 13 01 00 [19:06:38]Write to MH i2c: E2 08 00 D1 1B 80 13 01 00 00 00 00 00 69 [19:06:38]Write i2c OK [19:06:38]MH_I2C_Read... [19:06:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:38]Read from MH i2c: E2 [19:06:38]MH_I2C_Read... [19:06:38]Read from MH i2c: E2 0E 00 [19:06:38]MH_I2C_Read... [19:06:38]Read from MH i2c: E2 0E 00 D1 1B 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 FB [19:06:38]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:06:38]wFMCommunicate OK [19:06:38]SAM_PROTO_GetShiftState done [19:06:38]FM_GetShiftState done [19:06:38]opened in 1729384380 [19:06:38]opened+sec_in_day 1729470780 [19:06:38]quantity*price = 30000 [19:06:38]sum+1 = 30001 [19:06:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 103 20.10.2024 19:06 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69813 ФПД: 199777793559344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190641&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69813&fm=199777793559344&tin=02508201610067®Number=0000000000091770&sum=30000 0 [19:06:39]StoreToDocumentArchive [19:06:39]shift 526 fd 69813 [19:06:39]save to /storage/0526/doc_00069813 [19:06:39]save last doc name /storage/0526/doc_00069813 to /storage/kkm_last_doc_name [19:06:39]save OK [19:06:39]Clear old archive folders... [19:06:39]ProcessDocumentItem done err = 0, tmpTLVsize=278 [19:06:39]tlvbuf is B6E59C60 [19:06:39]SAM_PROTO_ClearQueue [19:06:39]wFMCommunicate request_size=4 [19:06:39]MH_SAM_APDU [19:06:39]CAPDU: 80 09 00 00 [19:06:39]Write to MH i2c: E2 08 00 DE 1B 80 09 00 00 00 00 00 00 6B [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:39]Read from MH i2c: E2 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 03 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 03 00 DE 1B 00 90 00 6D [19:06:39]RAPDU: 90 00 [19:06:39]wFMCommunicate OK [19:06:39]SAM_PROTO_ClearQueue done [19:06:39]KKMCreateOFDPacket [19:06:39]OFDProtocolAddRootSTLVToBuf [19:06:39]FM_MakeSignedData [19:06:39]FM_MakeSignedData [19:06:39]SAM_PROTO_SignData [19:06:39]wFMCommunicate request_size=4 [19:06:39]MH_SAM_APDU [19:06:39]CAPDU: 80 0D 01 02 [19:06:39]Write to MH i2c: E2 08 00 DF 1B 80 0D 01 02 00 00 00 00 73 [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:39]Read from MH i2c: E2 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 03 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 03 00 DF 1B 00 90 00 6E [19:06:39]RAPDU: 90 00 [19:06:39]wFMCommunicate OK [19:06:39]wFMCommunicate request_size=255 [19:06:39]MH_SAM_APDU [19:06:39]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 67 00 00 00 F4 03 04 00 C1 54 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 [19:06:39]Write to MH i2c: E2 02 01 E0 1B 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 67 00 00 00 F4 03 04 00 C1 54 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 00 00 C8 [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:39]Read from MH i2c: E2 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 03 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 03 00 E0 1B 00 90 00 6F [19:06:39]RAPDU: 90 00 [19:06:39]wFMCommunicate OK [19:06:39]wFMCommunicate request_size=37 [19:06:39]MH_SAM_APDU [19:06:39]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B5 10 01 00 35 04 06 00 B5 B2 64 6B 4B 30 [19:06:39]Write to MH i2c: E2 28 00 E1 1B 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B5 10 01 00 35 04 06 00 B5 B2 64 6B 4B 30 00 00 48 [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:39]Read from MH i2c: E2 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 03 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 03 00 E1 1B 00 90 00 70 [19:06:39]RAPDU: 90 00 [19:06:39]wFMCommunicate OK [19:06:39]wFMCommunicate request_size=4 [19:06:39]MH_SAM_APDU [19:06:39]CAPDU: 80 0D 03 02 [19:06:39]Write to MH i2c: E2 08 00 E2 1B 80 0D 03 02 00 00 00 00 78 [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:39]Read from MH i2c: E2 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 0B 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 0B 00 E2 1B 00 DA 52 9F 89 22 72 0B CC 90 00 38 [19:06:39]RAPDU: DA 52 9F 89 22 72 0B CC 90 00 [19:06:39]wFMCommunicate OK [19:06:39]SAM_PROTO_SignData done [19:06:39]FM_MakeSignedData done [19:06:39]CreateOFDProtocolMessage [19:06:39]wFMCommunicate request_size=4 [19:06:39]MH_SAM_APDU [19:06:39]CAPDU: 80 11 00 00 [19:06:39]Write to MH i2c: E2 08 00 E3 1B 80 11 00 00 00 00 00 00 78 [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:39]Read from MH i2c: E2 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 17 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 17 00 E3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 CF [19:06:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:06:39]wFMCommunicate OK [19:06:39]CreateOFDProtocolMessage done [19:06:39]OFDSenderStorePacket 69813 [19:06:39]StoreOFDPacket docnum=69813 [19:06:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2A 01 00 00 5E 0E 22 01 5D 90 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 67 00 00 00 F4 03 04 00 C1 54 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B5 10 01 00 35 04 06 00 B5 B2 64 6B 4B 30 DA 52 9F 89 22 72 0B CC [19:06:39]CheckFolder [19:06:39]dirname=/storage/ofd_packets [19:06:39]CheckFolder done [19:06:39]ProducePacketName [19:06:39]name=ofd_packets/00069813 [19:06:39]NVStorageSaveData ofd_packets/00069813 [19:06:39]File name is /storage/ofd_packets/00069813 [19:06:39]Write 328 bytes [19:06:39]NVStorageSaveData done [19:06:39]OFDSenderStorePacket done [19:06:39]KKMCreateOFDPacket done [19:06:39]NVStorageSaveData kkm_last_timestamp [19:06:39]File name is /storage/kkm_last_timestamp [19:06:39]Write 4 bytes [19:06:39]NVStorageSaveData done [19:06:39]ExternCall_PrintAddStr [19:06:39]wPrintStart [19:06:39]Write to MH i2c: 01 00 00 E4 1B FF [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: 01 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: 01 07 00 [19:06:39]MH_I2C_Read... [19:06:40]Read from MH i2c: 01 07 00 E4 1B 00 00 00 00 00 FF 0F 14 [19:06:40]RasterBufferAndPrint [19:06:40]line Счет N : (3)127213 [19:06:40]line ИНН: 02508201610067 [19:06:40]line Контрольно-Кассовый Чек [19:06:40]line ПРОДАЖА [19:06:40]line Товар: 4640030092499 [19:06:40]line Сигареты ESSE SENSE Himalaya [19:06:40]line 2.000 * 150.00 [19:06:40]line = 300.00 [19:06:40]line НДС 12% НСП 1% [19:06:40]line > о реализуемом товаре [19:06:40]line ИТОГО: 300.00 [19:06:40]line НСП 1% : 2.65 [19:06:40]line НДС 12% : 31.86 [19:06:40]line Наличными: 300.00 [19:06:40]line Безнал.: 0.00 [19:06:40]line Место: АЗС № 163 "Партнер Нефть" [19:06:40]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [19:06:40]line СНО: Общий режим [19:06:40]line Чек 103 20.10.2024 19:06 [19:06:40]line Смена: 526 ФФД: 1.0 [19:06:40]line ЗНМ: 0300000101 [19:06:40]line РНМ: 0000000000091770 [19:06:40]line Версия ККМ: 001 [19:06:40]line ФМ: 0000000000871749 [19:06:40]line ФД: 69813 [19:06:40]line ФПД: 199777793559344 [19:06:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190641&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69813&fm=199777793559344&tin=02508201610067®Number=0000000000091770&sum=30000 [19:06:40]line 0 [19:06:40]OFD Sender: Processing packet 69813 [packets to send 32, broken 31] [19:06:40]ProducePacketName [19:06:40]name=ofd_packets/00069813 [19:06:40]OFD Sender: To server: pG, [19:06:40]CommunicateWithHost lk.salyk.kg:30040 [19:06:40]ConnectInit lk.salyk.kg [19:06:40]written 0, free lines is 4095 [19:06:40]Connected sock=10 [19:06:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2A 01 00 00 5E 0E 22 01 5D 90 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 67 00 00 00 F4 03 04 00 C1 54 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B5 10 01 00 35 04 06 00 B5 B2 64 6B 4B 30 DA 52 9F 89 22 72 0B CC [19:06:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 72 43 47 00 85 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B5 10 01 00 F4 03 04 00 43 FA 14 67 B6 04 01 00 00 A2 67 01 5F 52 92 B8 80 [19:06:40]CommunicateWithHost err = 0 [19:06:40]CheckOFDResponse [19:06:40]1017 (14) - 77093643461234 [19:06:40]1041 (16) - 0000000000871749 [19:06:40]1040 (4) - 69813 [19:06:40]1012 (4) - 20.10.2024 12:40 [19:06:40]1206 (1) - 0 [19:06:40]OFD Sender: Remove packet 69813 [19:06:40]ProducePacketName [19:06:40]name=ofd_packets/00069813 [19:06:40]NVStorageDeleteData [19:06:40]Write to MH i2c: 01 00 00 0D 1C 29 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: 01 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: 01 07 00 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: 01 07 00 0D 1C 00 00 00 00 00 F5 0C 31 [19:06:40]RasterBufferAndPrint [19:06:40]line [19:06:40]line [19:06:40]line [19:06:40]line [19:06:40]line [19:06:40]written 0, free lines is 3328 [19:06:40]MH_Cut [19:06:40]Write to MH i2c: D1 01 00 14 1C 01 02 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: D1 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: D1 01 00 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: D1 01 00 14 1C 00 01 [19:06:40]Write to MH i2c: 01 00 00 15 1C 31 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:41]OFD Sender: No OFD packet to send [19:06:41]*** Cut start [19:06:41]*** Partial cut [19:06:41]*** CUTSNS_PIN = 1 [19:06:41]*** CUTSNS_PIN = 0 [19:06:41]*** Brake cut motor [19:06:42]Read from MH i2c: 01 [19:06:42]MH_I2C_Read... [19:06:42]*** Stop cut motor [19:06:42]*** Cut end [19:06:42]Read from MH i2c: 01 07 00 [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: 01 07 00 15 1C 00 00 00 00 00 FF 0F 46 [19:06:42]process_action close_receipt done [19:06:42]requested_data is exist [19:06:42]produce_requested_data [19:06:42]requested_item fm.sn is exist - process it [19:06:42]wFMCommunicate request_size=4 [19:06:42]MH_SAM_APDU [19:06:42]CAPDU: 80 11 00 00 [19:06:42]Write to MH i2c: E2 08 00 16 1C 80 11 00 00 00 00 00 00 AC [19:06:42]Write i2c OK [19:06:42]MH_I2C_Read... [19:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:42]Read from MH i2c: E2 [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: E2 17 00 [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: E2 17 00 16 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 03 [19:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:06:42]wFMCommunicate OK [19:06:42]requested_item fd.num is exist - process it [19:06:42]SAM_PROTO_GetFieldsCounters [19:06:42]wFMCommunicate request_size=4 [19:06:42]MH_SAM_APDU [19:06:42]CAPDU: 80 13 00 00 [19:06:42]Write to MH i2c: E2 08 00 17 1C 80 13 00 00 00 00 00 00 AF [19:06:42]Write i2c OK [19:06:42]MH_I2C_Read... [19:06:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:42]Read from MH i2c: E2 [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: E2 62 00 [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: E2 62 00 17 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B5 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [19:06: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B5 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:42]wFMCommunicate OK [19:06:42]SAM_PROTO_GetFieldsCounters done [19:06:42]requested_item shift.num is exist - process it [19:06:42]requested_item shift.opened is exist - process it [19:06:42]req_shift_opened [19:06:42]FM_GetShiftState [19:06:42]SAM_PROTO_GetShiftState [19:06:42]wFMCommunicate request_size=4 [19:06:42]MH_SAM_APDU [19:06:42]CAPDU: 80 13 01 00 [19:06:42]Write to MH i2c: E2 08 00 18 1C 80 13 01 00 00 00 00 00 B1 [19:06:42]Write i2c OK [19:06:42]MH_I2C_Read... [19:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:42]Read from MH i2c: E2 [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: E2 0E 00 [19:06:42]MH_I2C_Read... [19:06:42]Read from MH i2c: E2 0E 00 18 1C 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 43 [19:06:42]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:06:42]wFMCommunicate OK [19:06:42]SAM_PROTO_GetShiftState done [19:06:42]FM_GetShiftState done [19:06:42]req_shift_opened done [19:06:42]requested_item shift.open_date is exist - process it [19:06:42]req_shift_open_date [19:06:42]req_shift_open_date done [19:06:42]produce_requested_data done [19:06:42]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69813,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [19:06:42]process_action_free close_receipt [19:06:42]json_value_free [19:06:42]json_value_free done [19:06:42]process_json_proto returns [19:06:42]Send response to host [19:06:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69813,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [19:06:42]free response buf [19:06:42]execute_script done [19:06:42]execute_script returns [19:06:42]free content buf [19:06:42]Sock 9.Close socket [19:06:42]Sock 9.Thread stoped [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:45]accept exits with 7 [19:08:45]New connection [19:08:45]New thread 3066629476 created [19:08:45]Thread 3066486116 joined [19:08:45]Waiting for new connection... [19:08:45] Sock 7.Parse request [19:08:45]Sock 7.Check first char [19:08:45]Sock 7.First char is OK [19:08:45]request: POST /json_proto HTTP/1.0 [19:08:45]Method: POST [19:08:45]URL: /json_proto [19:08:45]Method is POST - this is cgi request [19:08:45]url: /json_proto [19:08:45]query_string will be loaded in cgi processing [19:08:45]execute_cgi json_proto POST (null) [19:08:45]execute_cgi path=json_proto method=POST [19:08:45]POST find Content-Length [19:08:45]Host: 172.17.52.196:8080 [19:08:45]Content-Length: 658 [19:08:45]Content-Type: application/json [19:08:45] [19:08:45]POST finish read [19:08:45]Found Content-Length = 658 [19:08:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127214", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:45]execute_script... [19:08:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127214", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:45]POST & json_proto [19:08:45]process_json_proto [19:08:45]json parsed OK: [19:08:45]protocol is kg_v1.0 [19:08:45]action value=close_receipt [19:08:45]process_action close_receipt [19:08:45]cmd_close_receipt [19:08:45]MH_GetDate [19:08:45]Write to MH i2c: F0 00 00 19 1C 24 [19:08:45]Write i2c OK [19:08:45]MH_I2C_Read... [19:08:45]Read from MH i2c: F0 [19:08:45]MH_I2C_Read... [19:08:45]Read from MH i2c: F0 09 00 [19:08:45]MH_I2C_Read... [19:08:45]Read from MH i2c: F0 09 00 19 1C 00 40 55 15 67 60 05 E4 66 ED [19:08:45]GetLastDocTimeStamp 1729451201 [19:08:45]current date 1729451328 [19:08:45]FM_GetShiftState [19:08:45]SAM_PROTO_GetShiftState [19:08:45]wFMCommunicate request_size=4 [19:08:45]MH_SAM_APDU [19:08:45]CAPDU: 80 13 01 00 [19:08:45]Write to MH i2c: E2 08 00 1A 1C 80 13 01 00 00 00 00 00 B3 [19:08:45]Write i2c OK [19:08:45]MH_I2C_Read... [19:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:45]Read from MH i2c: E2 [19:08:45]MH_I2C_Read... [19:08:45]Read from MH i2c: E2 0E 00 [19:08:45]MH_I2C_Read... [19:08:45]Read from MH i2c: E2 0E 00 1A 1C 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 45 [19:08:45]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:08:45]wFMCommunicate OK [19:08:45]SAM_PROTO_GetShiftState done [19:08:45]FM_GetShiftState done [19:08:45]opened in 1729384380 [19:08:45]opened+sec_in_day 1729470780 [19:08:45]quantity*price = 12500 [19:08:45]sum+1 = 12501 [19:08:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 104 20.10.2024 19:08 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69814 ФПД: 204854801350023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190848&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69814&fm=204854801350023&tin=02508201610067®Number=0000000000091770&sum=12500 0 [19:08:46]StoreToDocumentArchive [19:08:46]shift 526 fd 69814 [19:08:46]save to /storage/0526/doc_00069814 [19:08:46]save last doc name /storage/0526/doc_00069814 to /storage/kkm_last_doc_name [19:08:46]save OK [19:08:46]Clear old archive folders... [19:08:46]ProcessDocumentItem done err = 0, tmpTLVsize=278 [19:08:46]tlvbuf is 009D4840 [19:08:46]SAM_PROTO_ClearQueue [19:08:46]wFMCommunicate request_size=4 [19:08:46]MH_SAM_APDU [19:08:46]CAPDU: 80 09 00 00 [19:08:46]Write to MH i2c: E2 08 00 27 1C 80 09 00 00 00 00 00 00 B5 [19:08:46]Write i2c OK [19:08:46]MH_I2C_Read... [19:08:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:46]Read from MH i2c: E2 [19:08:46]MH_I2C_Read... [19:08:46]Read from MH i2c: E2 03 00 [19:08:46]MH_I2C_Read... [19:08:46]Read from MH i2c: E2 03 00 27 1C 00 90 00 B7 [19:08:46]RAPDU: 90 00 [19:08:46]wFMCommunicate OK [19:08:46]SAM_PROTO_ClearQueue done [19:08:46]KKMCreateOFDPacket [19:08:46]OFDProtocolAddRootSTLVToBuf [19:08:46]FM_MakeSignedData [19:08:46]FM_MakeSignedData [19:08:46]SAM_PROTO_SignData [19:08:46]wFMCommunicate request_size=4 [19:08:46]MH_SAM_APDU [19:08:46]CAPDU: 80 0D 01 02 [19:08:46]Write to MH i2c: E2 08 00 28 1C 80 0D 01 02 00 00 00 00 BD [19:08:46]Write i2c OK [19:08:46]MH_I2C_Read... [19:08:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:46]Read from MH i2c: E2 [19:08:46]MH_I2C_Read... [19:08:46]Read from MH i2c: E2 03 00 [19:08:46]MH_I2C_Read... [19:08:46]Read from MH i2c: E2 03 00 28 1C 00 90 00 B8 [19:08:46]RAPDU: 90 00 [19:08:46]wFMCommunicate OK [19:08:46]wFMCommunicate request_size=255 [19:08:46]MH_SAM_APDU [19:08:46]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 40 55 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 [19:08:46]Write to MH i2c: E2 02 01 29 1C 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 40 55 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 00 00 F1 [19:08:46]Write i2c OK [19:08:46]MH_I2C_Read... [19:08:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:46]Read from MH i2c: E2 [19:08:46]MH_I2C_Read... [19:08:46]Read from MH i2c: E2 03 00 [19:08:46]MH_I2C_Read... [19:08:46]Read from MH i2c: E2 03 00 29 1C 00 90 00 B9 [19:08:46]RAPDU: 90 00 [19:08:46]wFMCommunicate OK [19:08:46]wFMCommunicate request_size=37 [19:08:46]MH_SAM_APDU [19:08:46]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B6 10 01 00 35 04 06 00 BA 50 79 AA 3D 87 [19:08:46]Write to MH i2c: E2 28 00 2A 1C 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B6 10 01 00 35 04 06 00 BA 50 79 AA 3D 87 00 00 D3 [19:08:46]Write i2c OK [19:08:46]MH_I2C_Read... [19:08:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:46]Read from MH i2c: E2 [19:08:46]MH_I2C_Read... [19:08:46]Read from MH i2c: E2 03 00 [19:08:46]MH_I2C_Read... [19:08:46]Read from MH i2c: E2 03 00 2A 1C 00 90 00 BA [19:08:46]RAPDU: 90 00 [19:08:46]wFMCommunicate OK [19:08:46]wFMCommunicate request_size=4 [19:08:46]MH_SAM_APDU [19:08:46]CAPDU: 80 0D 03 02 [19:08:46]Write to MH i2c: E2 08 00 2B 1C 80 0D 03 02 00 00 00 00 C2 [19:08:46]Write i2c OK [19:08:46]MH_I2C_Read... [19:08:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:47]Read from MH i2c: E2 [19:08:47]MH_I2C_Read... [19:08:47]Read from MH i2c: E2 0B 00 [19:08:47]MH_I2C_Read... [19:08:47]Read from MH i2c: E2 0B 00 2B 1C 00 23 B5 FA DA 02 17 30 89 90 00 41 [19:08:47]RAPDU: 23 B5 FA DA 02 17 30 89 90 00 [19:08:47]wFMCommunicate OK [19:08:47]SAM_PROTO_SignData done [19:08:47]FM_MakeSignedData done [19:08:47]CreateOFDProtocolMessage [19:08:47]wFMCommunicate request_size=4 [19:08:47]MH_SAM_APDU [19:08:47]CAPDU: 80 11 00 00 [19:08:47]Write to MH i2c: E2 08 00 2C 1C 80 11 00 00 00 00 00 00 C2 [19:08:47]Write i2c OK [19:08:47]MH_I2C_Read... [19:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:47]Read from MH i2c: E2 [19:08:47]MH_I2C_Read... [19:08:47]Read from MH i2c: E2 17 00 [19:08:47]MH_I2C_Read... [19:08:47]Read from MH i2c: E2 17 00 2C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 19 [19:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:08:47]wFMCommunicate OK [19:08:47]CreateOFDProtocolMessage done [19:08:47]OFDSenderStorePacket 69814 [19:08:47]StoreOFDPacket docnum=69814 [19:08:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2A 01 00 00 37 6D 22 01 CD B5 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 40 55 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B6 10 01 00 35 04 06 00 BA 50 79 AA 3D 87 23 B5 FA DA 02 17 30 89 [19:08:47]CheckFolder [19:08:47]dirname=/storage/ofd_packets [19:08:47]CheckFolder done [19:08:47]ProducePacketName [19:08:47]name=ofd_packets/00069814 [19:08:47]NVStorageSaveData ofd_packets/00069814 [19:08:47]File name is /storage/ofd_packets/00069814 [19:08:47]Write 328 bytes [19:08:47]NVStorageSaveData done [19:08:47]OFDSenderStorePacket done [19:08:47]KKMCreateOFDPacket done [19:08:47]NVStorageSaveData kkm_last_timestamp [19:08:47]File name is /storage/kkm_last_timestamp [19:08:47]Write 4 bytes [19:08:47]NVStorageSaveData done [19:08:47]ExternCall_PrintAddStr [19:08:47]wPrintStart [19:08:47]Write to MH i2c: 01 00 00 2D 1C 49 [19:08:47]Write i2c OK [19:08:47]MH_I2C_Read... [19:08:47]Read from MH i2c: 01 [19:08:47]MH_I2C_Read... [19:08:47]Read from MH i2c: 01 07 00 [19:08:47]MH_I2C_Read... [19:08:47]Read from MH i2c: 01 07 00 2D 1C 00 00 00 00 00 FF 0F 5E [19:08:47]RasterBufferAndPrint [19:08:47]line Счет N : (3)127214 [19:08:47]line ИНН: 02508201610067 [19:08:47]line Контрольно-Кассовый Чек [19:08:47]line ПРОДАЖА [19:08:47]line Товар: 5449000054227 [19:08:47]line Напиток Кока-Кола 1л [19:08:47]line 1.000 * 125.00 [19:08:47]line = 125.00 [19:08:47]line НДС 12% НСП 1% [19:08:47]line > о реализуемом товаре [19:08:47]line ИТОГО: 125.00 [19:08:47]line НСП 1% : 1.11 [19:08:47]line НДС 12% : 13.27 [19:08:47]line Наличными: 125.00 [19:08:47]line Безнал.: 0.00 [19:08:47]line Место: АЗС № 163 "Партнер Нефть" [19:08:47]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [19:08:47]line СНО: Общий режим [19:08:47]line Чек 104 20.10.2024 19:08 [19:08:47]line Смена: 526 ФФД: 1.0 [19:08:47]line ЗНМ: 0300000101 [19:08:47]line РНМ: 0000000000091770 [19:08:47]line Версия ККМ: 001 [19:08:47]line ФМ: 0000000000871749 [19:08:47]line ФД: 69814 [19:08:47]line ФПД: 204854801350023 [19:08:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190848&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69814&fm=204854801350023&tin=02508201610067®Number=0000000000091770&sum=12500 [19:08:47]OFD Sender: Processing packet 69814 [packets to send 32, broken 31] [19:08:47]ProducePacketName [19:08:47]name=ofd_packets/00069814 [19:08:47]OFD Sender: To server: pG, [19:08:47]CommunicateWithHost lk.salyk.kg:30040 [19:08:47]ConnectInit lk.salyk.kg [19:08:47]line 0 [19:08:47]written 0, free lines is 4095 [19:08:47]Connected sock=10 [19:08:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2A 01 00 00 37 6D 22 01 CD B5 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 40 55 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B6 10 01 00 35 04 06 00 BA 50 79 AA 3D 87 23 B5 FA DA 02 17 30 89 [19:08:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 81 79 47 00 B8 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B6 10 01 00 F4 03 04 00 C2 FA 14 67 B6 04 01 00 00 F9 AF 8D 22 D5 A0 43 AE [19:08:47]CommunicateWithHost err = 0 [19:08:47]CheckOFDResponse [19:08:47]1017 (14) - 77093643461234 [19:08:47]1041 (16) - 0000000000871749 [19:08:47]1040 (4) - 69814 [19:08:47]1012 (4) - 20.10.2024 12:42 [19:08:47]1206 (1) - 0 [19:08:47]OFD Sender: Remove packet 69814 [19:08:47]ProducePacketName [19:08:47]name=ofd_packets/00069814 [19:08:47]NVStorageDeleteData [19:08:47]Write to MH i2c: 01 00 00 55 1C 71 [19:08:47]Write i2c OK [19:08:47]MH_I2C_Read... [19:08:47]Read from MH i2c: 01 [19:08:47]MH_I2C_Read... [19:08:47]Read from MH i2c: 01 07 00 [19:08:47]MH_I2C_Read... [19:08:47]Read from MH i2c: 01 07 00 55 1C 00 00 00 00 00 05 0D 8A [19:08:47]RasterBufferAndPrint [19:08:47]line [19:08:47]line [19:08:47]line [19:08:47]line [19:08:47]line [19:08:47]written 0, free lines is 3340 [19:08:47]MH_Cut [19:08:47]Write to MH i2c: D1 01 00 5C 1C 01 4A [19:08:47]Write i2c OK [19:08:47]MH_I2C_Read... [19:08:47]Read from MH i2c: D1 [19:08:47]MH_I2C_Read... [19:08:47]Read from MH i2c: D1 01 00 [19:08:47]MH_I2C_Read... [19:08:47]Read from MH i2c: D1 01 00 5C 1C 00 49 [19:08:47]Write to MH i2c: 01 00 00 5D 1C 79 [19:08:47]Write i2c OK [19:08:47]MH_I2C_Read... [19:08:48]OFD Sender: No OFD packet to send [19:08:48]*** Cut start [19:08:48]*** Partial cut [19:08:48]*** CUTSNS_PIN = 1 [19:08:48]*** CUTSNS_PIN = 0 [19:08:49]*** Brake cut motor [19:08:49]Read from MH i2c: 01 [19:08:49]MH_I2C_Read... [19:08:49]*** Stop cut motor [19:08:49]*** Cut end [19:08:49]Read from MH i2c: 01 07 00 [19:08:49]MH_I2C_Read... [19:08:49]Read from MH i2c: 01 07 00 5D 1C 00 00 00 00 00 FF 0F 8E [19:08:49]process_action close_receipt done [19:08:49]requested_data is exist [19:08:49]produce_requested_data [19:08:49]requested_item fm.sn is exist - process it [19:08:49]wFMCommunicate request_size=4 [19:08:49]MH_SAM_APDU [19:08:49]CAPDU: 80 11 00 00 [19:08:49]Write to MH i2c: E2 08 00 5E 1C 80 11 00 00 00 00 00 00 F4 [19:08:49]Write i2c OK [19:08:49]MH_I2C_Read... [19:08:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:49]Read from MH i2c: E2 [19:08:49]MH_I2C_Read... [19:08:49]Read from MH i2c: E2 17 00 [19:08:49]MH_I2C_Read... [19:08:49]Read from MH i2c: E2 17 00 5E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 4B [19:08:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:08:49]wFMCommunicate OK [19:08:49]requested_item fd.num is exist - process it [19:08:49]SAM_PROTO_GetFieldsCounters [19:08:49]wFMCommunicate request_size=4 [19:08:49]MH_SAM_APDU [19:08:49]CAPDU: 80 13 00 00 [19:08:49]Write to MH i2c: E2 08 00 5F 1C 80 13 00 00 00 00 00 00 F7 [19:08:49]Write i2c OK [19:08:49]MH_I2C_Read... [19:08:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:49]Read from MH i2c: E2 [19:08:49]MH_I2C_Read... [19:08:49]Read from MH i2c: E2 62 00 [19:08:49]MH_I2C_Read... [19:08:49]Read from MH i2c: E2 62 00 5F 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B6 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [19:08: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B6 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:49]wFMCommunicate OK [19:08:49]SAM_PROTO_GetFieldsCounters done [19:08:49]requested_item shift.num is exist - process it [19:08:49]requested_item shift.opened is exist - process it [19:08:49]req_shift_opened [19:08:49]FM_GetShiftState [19:08:49]SAM_PROTO_GetShiftState [19:08:49]wFMCommunicate request_size=4 [19:08:49]MH_SAM_APDU [19:08:49]CAPDU: 80 13 01 00 [19:08:49]Write to MH i2c: E2 08 00 60 1C 80 13 01 00 00 00 00 00 F9 [19:08:49]Write i2c OK [19:08:49]MH_I2C_Read... [19:08:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:49]Read from MH i2c: E2 [19:08:49]MH_I2C_Read... [19:08:49]Read from MH i2c: E2 0E 00 [19:08:49]MH_I2C_Read... [19:08:49]Read from MH i2c: E2 0E 00 60 1C 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 8B [19:08:49]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:08:49]wFMCommunicate OK [19:08:49]SAM_PROTO_GetShiftState done [19:08:49]FM_GetShiftState done [19:08:49]req_shift_opened done [19:08:49]requested_item shift.open_date is exist - process it [19:08:49]req_shift_open_date [19:08:49]req_shift_open_date done [19:08:49]produce_requested_data done [19:08:49]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69814,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [19:08:49]process_action_free close_receipt [19:08:49]json_value_free [19:08:49]json_value_free done [19:08:49]process_json_proto returns [19:08:49]Send response to host [19:08:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69814,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [19:08:49]free response buf [19:08:49]execute_script done [19:08:49]execute_script returns [19:08:49]free content buf [19:08:49]Sock 7.Close socket [19:08:49]Sock 7.Thread stoped [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:19]accept exits with 9 [19:09:19]New connection [19:09:19]New thread 3066486116 created [19:09:19]Thread 3066629476 joined [19:09:19]Waiting for new connection... [19:09:19] Sock 9.Parse request [19:09:19]Sock 9.Check first char [19:09:19]Sock 9.First char is OK [19:09:19]request: POST /json_proto HTTP/1.0 [19:09:19]Method: POST [19:09:19]URL: /json_proto [19:09:19]Method is POST - this is cgi request [19:09:19]url: /json_proto [19:09:19]query_string will be loaded in cgi processing [19:09:19]execute_cgi json_proto POST (null) [19:09:19]execute_cgi path=json_proto method=POST [19:09:19]POST find Content-Length [19:09:19]Host: 172.17.52.196:8080 [19:09:19]Content-Length: 678 [19:09:19]Content-Type: application/json [19:09:19] [19:09:19]POST finish read [19:09:19]Found Content-Length = 678 [19:09:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1004112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:19]execute_script... [19:09: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)1004112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:19]POST & json_proto [19:09:19]process_json_proto [19:09:19]json parsed OK: [19:09:19]protocol is kg_v1.0 [19:09:19]action value=close_receipt [19:09:19]process_action close_receipt [19:09:19]cmd_close_receipt [19:09:19]MH_GetDate [19:09:19]Write to MH i2c: F0 00 00 61 1C 6C [19:09:19]Write i2c OK [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: F0 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: F0 09 00 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: F0 09 00 61 1C 00 62 55 15 67 60 05 E4 66 57 [19:09:19]GetLastDocTimeStamp 1729451328 [19:09:19]current date 1729451362 [19:09:19]FM_GetShiftState [19:09:19]SAM_PROTO_GetShiftState [19:09:19]wFMCommunicate request_size=4 [19:09:19]MH_SAM_APDU [19:09:19]CAPDU: 80 13 01 00 [19:09:19]Write to MH i2c: E2 08 00 62 1C 80 13 01 00 00 00 00 00 FB [19:09:19]Write i2c OK [19:09:19]MH_I2C_Read... [19:09:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:19]Read from MH i2c: E2 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: E2 0E 00 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: E2 0E 00 62 1C 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 8D [19:09:19]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:09:19]wFMCommunicate OK [19:09:19]SAM_PROTO_GetShiftState done [19:09:19]FM_GetShiftState done [19:09:19]opened in 1729384380 [19:09:19]opened+sec_in_day 1729470780 [19:09:19]quantity*price = 50041 [19:09:19]sum+1 = 50042 [19:09:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 105 20.10.2024 19:09 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69815 ФПД: 185918026514026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190922&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69815&fm=185918026514026&tin=02508201610067®Number=0000000000091770&sum=50000 [19:09:20]StoreToDocumentArchive [19:09:20]shift 526 fd 69815 [19:09:20]save to /storage/0526/doc_00069815 [19:09:20]save last doc name /storage/0526/doc_00069815 to /storage/kkm_last_doc_name [19:09:20]save OK [19:09:20]Clear old archive folders... [19:09:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:20]tlvbuf is B6F09B00 [19:09:20]SAM_PROTO_ClearQueue [19:09:20]wFMCommunicate request_size=4 [19:09:20]MH_SAM_APDU [19:09:20]CAPDU: 80 09 00 00 [19:09:20]Write to MH i2c: E2 08 00 6F 1C 80 09 00 00 00 00 00 00 FD [19:09:20]Write i2c OK [19:09:20]MH_I2C_Read... [19:09:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:20]Read from MH i2c: E2 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: E2 03 00 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: E2 03 00 6F 1C 00 90 00 FF [19:09:20]RAPDU: 90 00 [19:09:20]wFMCommunicate OK [19:09:20]SAM_PROTO_ClearQueue done [19:09:20]KKMCreateOFDPacket [19:09:20]OFDProtocolAddRootSTLVToBuf [19:09:20]FM_MakeSignedData [19:09:20]FM_MakeSignedData [19:09:20]SAM_PROTO_SignData [19:09:20]wFMCommunicate request_size=4 [19:09:20]MH_SAM_APDU [19:09:20]CAPDU: 80 0D 01 02 [19:09:20]Write to MH i2c: E2 08 00 70 1C 80 0D 01 02 00 00 00 00 05 [19:09:20]Write i2c OK [19:09:20]MH_I2C_Read... [19:09:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:20]Read from MH i2c: E2 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: E2 03 00 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: E2 03 00 70 1C 00 90 00 00 [19:09:20]RAPDU: 90 00 [19:09:20]wFMCommunicate OK [19:09:20]wFMCommunicate request_size=255 [19:09:20]MH_SAM_APDU [19:09:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 62 55 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B7 10 01 00 35 04 06 00 A9 [19:09:20]Write to MH i2c: E2 02 01 71 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 62 55 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B7 10 01 00 35 04 06 00 A9 00 00 B1 [19:09:20]Write i2c OK [19:09:20]MH_I2C_Read... [19:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:20]Read from MH i2c: E2 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: E2 03 00 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: E2 03 00 71 1C 00 90 00 01 [19:09:20]RAPDU: 90 00 [19:09:20]wFMCommunicate OK [19:09:20]wFMCommunicate request_size=10 [19:09:20]MH_SAM_APDU [19:09:20]CAPDU: 80 0D 02 02 05 17 69 ED 7E 6A [19:09:20]Write to MH i2c: E2 0D 00 72 1C 80 0D 02 02 05 00 17 69 ED 7E 6A 00 00 67 [19:09:20]Write i2c OK [19:09:20]MH_I2C_Read... [19:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:20]Read from MH i2c: E2 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: E2 03 00 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: E2 03 00 72 1C 00 90 00 02 [19:09:20]RAPDU: 90 00 [19:09:20]wFMCommunicate OK [19:09:20]wFMCommunicate request_size=4 [19:09:20]MH_SAM_APDU [19:09:20]CAPDU: 80 0D 03 02 [19:09:20]Write to MH i2c: E2 08 00 73 1C 80 0D 03 02 00 00 00 00 0A [19:09:20]Write i2c OK [19:09:20]MH_I2C_Read... [19:09:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:20]Read from MH i2c: E2 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: E2 0B 00 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: E2 0B 00 73 1C 00 41 44 8A 4F 50 B7 D9 D3 90 00 1C [19:09:20]RAPDU: 41 44 8A 4F 50 B7 D9 D3 90 00 [19:09:20]wFMCommunicate OK [19:09:20]SAM_PROTO_SignData done [19:09:20]FM_MakeSignedData done [19:09:20]CreateOFDProtocolMessage [19:09:20]wFMCommunicate request_size=4 [19:09:20]MH_SAM_APDU [19:09:20]CAPDU: 80 11 00 00 [19:09:20]Write to MH i2c: E2 08 00 74 1C 80 11 00 00 00 00 00 00 0A [19:09:20]Write i2c OK [19:09:20]MH_I2C_Read... [19:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:20]Read from MH i2c: E2 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: E2 17 00 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: E2 17 00 74 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 61 [19:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:09:20]wFMCommunicate OK [19:09:20]CreateOFDProtocolMessage done [19:09:20]OFDSenderStorePacket 69815 [19:09:20]StoreOFDPacket docnum=69815 [19:09:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0F 01 00 00 17 80 07 01 13 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 62 55 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B7 10 01 00 35 04 06 00 A9 17 69 ED 7E 6A 41 44 8A 4F 50 B7 D9 D3 [19:09:20]CheckFolder [19:09:20]dirname=/storage/ofd_packets [19:09:20]CheckFolder done [19:09:20]ProducePacketName [19:09:20]name=ofd_packets/00069815 [19:09:20]NVStorageSaveData ofd_packets/00069815 [19:09:20]File name is /storage/ofd_packets/00069815 [19:09:20]Write 301 bytes [19:09:20]NVStorageSaveData done [19:09:20]OFDSenderStorePacket done [19:09:20]KKMCreateOFDPacket done [19:09:20]NVStorageSaveData kkm_last_timestamp [19:09:20]File name is /storage/kkm_last_timestamp [19:09:20]Write 4 bytes [19:09:20]NVStorageSaveData done [19:09:20]ExternCall_PrintAddStr [19:09:20]wPrintStart [19:09:20]Write to MH i2c: 01 00 00 75 1C 91 [19:09:20]Write i2c OK [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: 01 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: 01 07 00 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: 01 07 00 75 1C 00 00 00 00 00 FF 0F A6 [19:09:20]RasterBufferAndPrint [19:09:20]line Счет N : (1)1004112 [19:09:20]line ИНН: 02508201610067 [19:09:20]line Контрольно-Кассовый Чек [19:09:20]line ПРОДАЖА [19:09:20]line ТРК (МРК, ГНК) : 53 [19:09:20]line Товар: 2710124130 [19:09:20]line Аи-92-К-2 [19:09:20]line 7.480 * 66.90 [19:09:20]line = 500.41 [19:09:20]line НДС 12% НСП 1% [19:09:20]line > о реализуемом товаре [19:09:20]line ОКРУГЛЕНИЕ: -0.41 [19:09:20]line ИТОГО: 500.00 [19:09:20]line Внесено: 500.00 [19:09:20]line СДАЧА: 0.00 [19:09:20]line НСП 1% : 4.43 [19:09:20]line НДС 12% : 53.14 [19:09:20]line Наличными: 500.00 [19:09:20]line Безнал.: 0.00 [19:09:20]line Место: АЗС № 163 "Партнер Нефть" [19:09:20]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [19:09:20]line СНО: Общий режим [19:09:20]line Чек 105 20.10.2024 19:09 [19:09:20]line Смена: 526 ФФД: 1.0 [19:09:20]line ЗНМ: 0300000101 [19:09:20]line РНМ: 0000000000091770 [19:09:20]line Версия ККМ: 001 [19:09:20]line ФМ: 0000000000871749 [19:09:20]line ФД: 69815 [19:09:20]line ФПД: 185918026514026 [19:09:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T190922&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69815&fm=185918026514026&tin=02508201610067®Number=0000000000091770&sum=50000 [19:09:21]OFD Sender: Processing packet 69815 [packets to send 32, broken 31] [19:09:21]ProducePacketName [19:09:21]name=ofd_packets/00069815 [19:09:21]OFD Sender: To server: pG, [19:09:21]CommunicateWithHost lk.salyk.kg:30040 [19:09:21]ConnectInit lk.salyk.kg [19:09:21]written 0, free lines is 4095 [19:09:21]Connected sock=10 [19:09:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0F 01 00 00 17 80 07 01 13 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 62 55 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B7 10 01 00 35 04 06 00 A9 17 69 ED 7E 6A 41 44 8A 4F 50 B7 D9 D3 [19:09:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 C7 DB 47 00 4E 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B7 10 01 00 F4 03 04 00 E4 FA 14 67 B6 04 01 00 00 E8 14 CA 55 E2 82 27 F4 [19:09:21]CommunicateWithHost err = 0 [19:09:21]CheckOFDResponse [19:09:21]1017 (14) - 77093643461234 [19:09:21]1041 (16) - 0000000000871749 [19:09:21]1040 (4) - 69815 [19:09:21]1012 (4) - 20.10.2024 12:43 [19:09:21]1206 (1) - 0 [19:09:21]OFD Sender: Remove packet 69815 [19:09:21]ProducePacketName [19:09:21]name=ofd_packets/00069815 [19:09:21]NVStorageDeleteData [19:09:21]Write to MH i2c: 01 00 00 A0 1C BC [19:09:21]Write i2c OK [19:09:21]MH_I2C_Read... [19:09:21]Read from MH i2c: 01 [19:09:21]MH_I2C_Read... [19:09:21]Read from MH i2c: 01 07 00 [19:09:21]MH_I2C_Read... [19:09:21]Read from MH i2c: 01 07 00 A0 1C 00 00 00 00 00 E4 0C B3 [19:09:21]RasterBufferAndPrint [19:09:21]line [19:09:21]line [19:09:21]line [19:09:21]line [19:09:21]line [19:09:21]written 0, free lines is 3306 [19:09:21]MH_Cut [19:09:21]Write to MH i2c: D1 01 00 A7 1C 01 95 [19:09:21]Write i2c OK [19:09:21]MH_I2C_Read... [19:09:21]Read from MH i2c: D1 [19:09:21]MH_I2C_Read... [19:09:21]Read from MH i2c: D1 01 00 [19:09:21]MH_I2C_Read... [19:09:21]Read from MH i2c: D1 01 00 A7 1C 00 94 [19:09:21]Write to MH i2c: 01 00 00 A8 1C C4 [19:09:21]Write i2c OK [19:09:21]MH_I2C_Read... [19:09:22]OFD Sender: No OFD packet to send [19:09:22]*** Cut start [19:09:22]*** Partial cut [19:09:22]*** CUTSNS_PIN = 1 [19:09:22]*** CUTSNS_PIN = 0 [19:09:22]*** Brake cut motor [19:09:23]Read from MH i2c: 01 [19:09:23]MH_I2C_Read... [19:09:23]*** Stop cut motor [19:09:23]*** Cut end [19:09:23]Read from MH i2c: 01 07 00 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: 01 07 00 A8 1C 00 00 00 00 00 FF 0F D9 [19:09:23]process_action close_receipt done [19:09:23]requested_data is exist [19:09:23]produce_requested_data [19:09:23]requested_item fm.sn is exist - process it [19:09:23]wFMCommunicate request_size=4 [19:09:23]MH_SAM_APDU [19:09:23]CAPDU: 80 11 00 00 [19:09:23]Write to MH i2c: E2 08 00 A9 1C 80 11 00 00 00 00 00 00 3F [19:09:23]Write i2c OK [19:09:23]MH_I2C_Read... [19:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:23]Read from MH i2c: E2 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: E2 17 00 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: E2 17 00 A9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 96 [19:09:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:09:23]wFMCommunicate OK [19:09:23]requested_item fd.num is exist - process it [19:09:23]SAM_PROTO_GetFieldsCounters [19:09:23]wFMCommunicate request_size=4 [19:09:23]MH_SAM_APDU [19:09:23]CAPDU: 80 13 00 00 [19:09:23]Write to MH i2c: E2 08 00 AA 1C 80 13 00 00 00 00 00 00 42 [19:09:23]Write i2c OK [19:09:23]MH_I2C_Read... [19:09:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:23]Read from MH i2c: E2 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: E2 62 00 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: E2 62 00 AA 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B7 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [19:09:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B7 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:23]wFMCommunicate OK [19:09:23]SAM_PROTO_GetFieldsCounters done [19:09:23]requested_item shift.num is exist - process it [19:09:23]requested_item shift.opened is exist - process it [19:09:23]req_shift_opened [19:09:23]FM_GetShiftState [19:09:23]SAM_PROTO_GetShiftState [19:09:23]wFMCommunicate request_size=4 [19:09:23]MH_SAM_APDU [19:09:23]CAPDU: 80 13 01 00 [19:09:23]Write to MH i2c: E2 08 00 AB 1C 80 13 01 00 00 00 00 00 44 [19:09:23]Write i2c OK [19:09:23]MH_I2C_Read... [19:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:23]Read from MH i2c: E2 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: E2 0E 00 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: E2 0E 00 AB 1C 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 D6 [19:09:23]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:09:23]wFMCommunicate OK [19:09:23]SAM_PROTO_GetShiftState done [19:09:23]FM_GetShiftState done [19:09:23]req_shift_opened done [19:09:23]requested_item shift.open_date is exist - process it [19:09:23]req_shift_open_date [19:09:23]req_shift_open_date done [19:09:23]produce_requested_data done [19:09:23]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69815,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [19:09:23]process_action_free close_receipt [19:09:23]json_value_free [19:09:23]json_value_free done [19:09:23]process_json_proto returns [19:09:23]Send response to host [19:09:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69815,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [19:09:23]free response buf [19:09:23]execute_script done [19:09:23]execute_script returns [19:09:23]free content buf [19:09:23]Sock 9.Close socket [19:09:23]Sock 9.Thread stoped [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:44]accept exits with 7 [19:13:44]New connection [19:13:44]New thread 3066629476 created [19:13:44]Thread 3066486116 joined [19:13:44]Waiting for new connection... [19:13:44] Sock 7.Parse request [19:13:44]Sock 7.Check first char [19:13:44]Sock 7.First char is OK [19:13:44]request: POST /json_proto HTTP/1.0 [19:13:44]Method: POST [19:13:44]URL: /json_proto [19:13:44]Method is POST - this is cgi request [19:13:44]url: /json_proto [19:13:44]query_string will be loaded in cgi processing [19:13:44]execute_cgi json_proto POST (null) [19:13:44]execute_cgi path=json_proto method=POST [19:13:44]POST find Content-Length [19:13:44]Host: 172.17.52.196:8080 [19:13:44]Content-Length: 621 [19:13:44]Content-Type: application/json [19:13:44] [19:13:44]POST finish read [19:13:44]Found Content-Length = 621 [19:13:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127215", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:44]execute_script... [19:13:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127215", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:44]POST & json_proto [19:13:44]process_json_proto [19:13:44]json parsed OK: [19:13:44]protocol is kg_v1.0 [19:13:44]action value=close_receipt [19:13:44]process_action close_receipt [19:13:44]cmd_close_receipt [19:13:44]MH_GetDate [19:13:44]Write to MH i2c: F0 00 00 AC 1C B7 [19:13:44]Write i2c OK [19:13:44]MH_I2C_Read... [19:13:44]Read from MH i2c: F0 [19:13:44]MH_I2C_Read... [19:13:44]Read from MH i2c: F0 09 00 [19:13:44]MH_I2C_Read... [19:13:44]Read from MH i2c: F0 09 00 AC 1C 00 6B 56 15 67 60 05 E4 66 AC [19:13:44]GetLastDocTimeStamp 1729451362 [19:13:44]current date 1729451627 [19:13:44]FM_GetShiftState [19:13:44]SAM_PROTO_GetShiftState [19:13:44]wFMCommunicate request_size=4 [19:13:44]MH_SAM_APDU [19:13:44]CAPDU: 80 13 01 00 [19:13:44]Write to MH i2c: E2 08 00 AD 1C 80 13 01 00 00 00 00 00 46 [19:13:44]Write i2c OK [19:13:44]MH_I2C_Read... [19:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:44]Read from MH i2c: E2 [19:13:44]MH_I2C_Read... [19:13:44]Read from MH i2c: E2 0E 00 [19:13:44]MH_I2C_Read... [19:13:44]Read from MH i2c: E2 0E 00 AD 1C 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 D8 [19:13:44]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:13:44]wFMCommunicate OK [19:13:44]SAM_PROTO_GetShiftState done [19:13:44]FM_GetShiftState done [19:13:44]opened in 1729384380 [19:13:44]opened+sec_in_day 1729470780 [19:13:44]quantity*price = 28800 [19:13:44]sum+1 = 28801 [19:13:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 106 20.10.2024 19:13 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69816 ФПД: 234511170938738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191347&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69816&fm=234511170938738&tin=02508201610067®Number=0000000000091770&sum=28800 0 [19:13:45]StoreToDocumentArchive [19:13:45]shift 526 fd 69816 [19:13:45]save to /storage/0526/doc_00069816 [19:13:45]save last doc name /storage/0526/doc_00069816 to /storage/kkm_last_doc_name [19:13:45]save OK [19:13:45]Clear old archive folders... [19:13:45]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:13:45]tlvbuf is 009CB500 [19:13:45]SAM_PROTO_ClearQueue [19:13:45]wFMCommunicate request_size=4 [19:13:45]MH_SAM_APDU [19:13:45]CAPDU: 80 09 00 00 [19:13:45]Write to MH i2c: E2 08 00 BA 1C 80 09 00 00 00 00 00 00 48 [19:13:45]Write i2c OK [19:13:45]MH_I2C_Read... [19:13:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:45]Read from MH i2c: E2 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: E2 03 00 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: E2 03 00 BA 1C 00 90 00 4A [19:13:45]RAPDU: 90 00 [19:13:45]wFMCommunicate OK [19:13:45]SAM_PROTO_ClearQueue done [19:13:45]KKMCreateOFDPacket [19:13:45]OFDProtocolAddRootSTLVToBuf [19:13:45]FM_MakeSignedData [19:13:45]FM_MakeSignedData [19:13:45]SAM_PROTO_SignData [19:13:45]wFMCommunicate request_size=4 [19:13:45]MH_SAM_APDU [19:13:45]CAPDU: 80 0D 01 02 [19:13:45]Write to MH i2c: E2 08 00 BB 1C 80 0D 01 02 00 00 00 00 50 [19:13:45]Write i2c OK [19:13:45]MH_I2C_Read... [19:13:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:45]Read from MH i2c: E2 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: E2 03 00 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: E2 03 00 BB 1C 00 90 00 4B [19:13:45]RAPDU: 90 00 [19:13:45]wFMCommunicate OK [19:13:45]wFMCommunicate request_size=255 [19:13:45]MH_SAM_APDU [19:13:45]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 6B 56 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [19:13:45]Write to MH i2c: E2 02 01 BC 1C 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 6B 56 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 43 [19:13:45]Write i2c OK [19:13:45]MH_I2C_Read... [19:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:45]Read from MH i2c: E2 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: E2 03 00 [19:13:45]MH_I2C_Read... [19:13:45]Read from MH i2c: E2 03 00 BC 1C 00 90 00 4C [19:13:45]RAPDU: 90 00 [19:13:45]wFMCommunicate OK [19:13:45]wFMCommunicate request_size=32 [19:13:45]MH_SAM_APDU [19:13:45]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 B8 10 01 00 35 04 06 00 D5 49 63 0A 27 72 [19:13:45]Write to MH i2c: E2 23 00 BD 1C 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 B8 10 01 00 35 04 06 00 D5 49 63 0A 27 72 00 00 A1 [19:13:45]Write i2c OK [19:13:45]MH_I2C_Read... [19:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:46]Read from MH i2c: E2 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: E2 03 00 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: E2 03 00 BD 1C 00 90 00 4D [19:13:46]RAPDU: 90 00 [19:13:46]wFMCommunicate OK [19:13:46]wFMCommunicate request_size=4 [19:13:46]MH_SAM_APDU [19:13:46]CAPDU: 80 0D 03 02 [19:13:46]Write to MH i2c: E2 08 00 BE 1C 80 0D 03 02 00 00 00 00 55 [19:13:46]Write i2c OK [19:13:46]MH_I2C_Read... [19:13:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:46]Read from MH i2c: E2 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: E2 0B 00 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: E2 0B 00 BE 1C 00 A2 CE 37 66 57 8A 89 0A 90 00 D7 [19:13:46]RAPDU: A2 CE 37 66 57 8A 89 0A 90 00 [19:13:46]wFMCommunicate OK [19:13:46]SAM_PROTO_SignData done [19:13:46]FM_MakeSignedData done [19:13:46]CreateOFDProtocolMessage [19:13:46]wFMCommunicate request_size=4 [19:13:46]MH_SAM_APDU [19:13:46]CAPDU: 80 11 00 00 [19:13:46]Write to MH i2c: E2 08 00 BF 1C 80 11 00 00 00 00 00 00 55 [19:13:46]Write i2c OK [19:13:46]MH_I2C_Read... [19:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:46]Read from MH i2c: E2 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: E2 17 00 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: E2 17 00 BF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 AC [19:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:13:46]wFMCommunicate OK [19:13:46]CreateOFDProtocolMessage done [19:13:46]OFDSenderStorePacket 69816 [19:13:46]StoreOFDPacket docnum=69816 [19:13:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 04 83 1D 01 4B 38 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 6B 56 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B8 10 01 00 35 04 06 00 D5 49 63 0A 27 72 A2 CE 37 66 57 8A 89 0A [19:13:46]CheckFolder [19:13:46]dirname=/storage/ofd_packets [19:13:46]CheckFolder done [19:13:46]ProducePacketName [19:13:46]name=ofd_packets/00069816 [19:13:46]NVStorageSaveData ofd_packets/00069816 [19:13:46]File name is /storage/ofd_packets/00069816 [19:13:46]Write 323 bytes [19:13:46]NVStorageSaveData done [19:13:46]OFDSenderStorePacket done [19:13:46]KKMCreateOFDPacket done [19:13:46]NVStorageSaveData kkm_last_timestamp [19:13:46]File name is /storage/kkm_last_timestamp [19:13:46]Write 4 bytes [19:13:46]NVStorageSaveData done [19:13:46]ExternCall_PrintAddStr [19:13:46]wPrintStart [19:13:46]Write to MH i2c: 01 00 00 C0 1C DC [19:13:46]Write i2c OK [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: 01 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: 01 07 00 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: 01 07 00 C0 1C 00 00 00 00 00 FF 0F F1 [19:13:46]RasterBufferAndPrint [19:13:46]line Счет N : (3)127215 [19:13:46]line ИНН: 02508201610067 [19:13:46]line Контрольно-Кассовый Чек [19:13:46]line ПРОДАЖА [19:13:46]line Товар: 48743570 [19:13:46]line Сигареты Winston XStyle Blue [19:13:46]line 2.000 * 144.00 [19:13:46]line = 288.00 [19:13:46]line НДС 12% НСП 1% [19:13:46]line > о реализуемом товаре [19:13:46]line ИТОГО: 288.00 [19:13:46]line НСП 1% : 2.55 [19:13:46]line НДС 12% : 30.58 [19:13:46]line Наличными: 288.00 [19:13:46]line Безнал.: 0.00 [19:13:46]line Место: АЗС № 163 "Партнер Нефть" [19:13:46]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [19:13:46]line СНО: Общий режим [19:13:46]line Чек 106 20.10.2024 19:13 [19:13:46]line Смена: 526 ФФД: 1.0 [19:13:46]line ЗНМ: 0300000101 [19:13:46]line РНМ: 0000000000091770 [19:13:46]line Версия ККМ: 001 [19:13:46]line ФМ: 0000000000871749 [19:13:46]line ФД: 69816 [19:13:46]line ФПД: 234511170938738 [19:13:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191347&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69816&fm=234511170938738&tin=02508201610067®Number=0000000000091770&sum=28800 [19:13:46]OFD Sender: Processing packet 69816 [packets to send 32, broken 31] [19:13:46]ProducePacketName [19:13:46]name=ofd_packets/00069816 [19:13:46]OFD Sender: To server: pG, [19:13:46]CommunicateWithHost lk.salyk.kg:30040 [19:13:46]ConnectInit lk.salyk.kg [19:13:46]line 0 [19:13:46]written 0, free lines is 4095 [19:13:46]Connected sock=10 [19:13:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 04 83 1D 01 4B 38 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 6B 56 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B8 10 01 00 35 04 06 00 D5 49 63 0A 27 72 A2 CE 37 66 57 8A 89 0A [19:13:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 E5 77 47 00 53 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B8 10 01 00 F4 03 04 00 ED FB 14 67 B6 04 01 00 00 D7 07 A8 DF B0 4E 80 31 [19:13:46]CommunicateWithHost err = 0 [19:13:46]CheckOFDResponse [19:13:46]1017 (14) - 77093643461234 [19:13:46]1041 (16) - 0000000000871749 [19:13:46]1040 (4) - 69816 [19:13:46]1012 (4) - 20.10.2024 12:47 [19:13:46]1206 (1) - 0 [19:13:46]OFD Sender: Remove packet 69816 [19:13:46]ProducePacketName [19:13:46]name=ofd_packets/00069816 [19:13:46]NVStorageDeleteData [19:13:46]Write to MH i2c: 01 00 00 E8 1C 04 [19:13:46]Write i2c OK [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: 01 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: 01 07 00 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: 01 07 00 E8 1C 00 00 00 00 00 FE 0C 15 [19:13:46]RasterBufferAndPrint [19:13:46]line [19:13:46]line [19:13:46]line [19:13:46]line [19:13:46]line [19:13:46]written 0, free lines is 3332 [19:13:46]MH_Cut [19:13:46]Write to MH i2c: D1 01 00 EF 1C 01 DD [19:13:46]Write i2c OK [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: D1 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: D1 01 00 [19:13:46]MH_I2C_Read... [19:13:46]Read from MH i2c: D1 01 00 EF 1C 00 DC [19:13:46]Write to MH i2c: 01 00 00 F0 1C 0C [19:13:46]Write i2c OK [19:13:46]MH_I2C_Read... [19:13:47]OFD Sender: No OFD packet to send [19:13:47]*** Cut start [19:13:47]*** Partial cut [19:13:47]*** CUTSNS_PIN = 1 [19:13:47]*** CUTSNS_PIN = 0 [19:13:48]*** Brake cut motor [19:13:48]Read from MH i2c: 01 [19:13:48]MH_I2C_Read... [19:13:48]*** Stop cut motor [19:13:48]*** Cut end [19:13:48]Read from MH i2c: 01 07 00 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: 01 07 00 F0 1C 00 00 00 00 00 FF 0F 21 [19:13:48]process_action close_receipt done [19:13:48]requested_data is exist [19:13:48]produce_requested_data [19:13:48]requested_item fm.sn is exist - process it [19:13:48]wFMCommunicate request_size=4 [19:13:48]MH_SAM_APDU [19:13:48]CAPDU: 80 11 00 00 [19:13:48]Write to MH i2c: E2 08 00 F1 1C 80 11 00 00 00 00 00 00 87 [19:13:48]Write i2c OK [19:13:48]MH_I2C_Read... [19:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:48]Read from MH i2c: E2 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: E2 17 00 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: E2 17 00 F1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 DE [19:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:13:48]wFMCommunicate OK [19:13:48]requested_item fd.num is exist - process it [19:13:48]SAM_PROTO_GetFieldsCounters [19:13:48]wFMCommunicate request_size=4 [19:13:48]MH_SAM_APDU [19:13:48]CAPDU: 80 13 00 00 [19:13:48]Write to MH i2c: E2 08 00 F2 1C 80 13 00 00 00 00 00 00 8A [19:13:48]Write i2c OK [19:13:48]MH_I2C_Read... [19:13:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:48]Read from MH i2c: E2 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: E2 62 00 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: E2 62 00 F2 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B8 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [19:13: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B8 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:48]wFMCommunicate OK [19:13:48]SAM_PROTO_GetFieldsCounters done [19:13:48]requested_item shift.num is exist - process it [19:13:48]requested_item shift.opened is exist - process it [19:13:48]req_shift_opened [19:13:48]FM_GetShiftState [19:13:48]SAM_PROTO_GetShiftState [19:13:48]wFMCommunicate request_size=4 [19:13:48]MH_SAM_APDU [19:13:48]CAPDU: 80 13 01 00 [19:13:48]Write to MH i2c: E2 08 00 F3 1C 80 13 01 00 00 00 00 00 8C [19:13:48]Write i2c OK [19:13:48]MH_I2C_Read... [19:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:48]Read from MH i2c: E2 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: E2 0E 00 [19:13:48]MH_I2C_Read... [19:13:48]Read from MH i2c: E2 0E 00 F3 1C 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 1E [19:13:48]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:13:48]wFMCommunicate OK [19:13:48]SAM_PROTO_GetShiftState done [19:13:48]FM_GetShiftState done [19:13:48]req_shift_opened done [19:13:48]requested_item shift.open_date is exist - process it [19:13:48]req_shift_open_date [19:13:48]req_shift_open_date done [19:13:48]produce_requested_data done [19:13:48]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69816,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [19:13:48]process_action_free close_receipt [19:13:48]json_value_free [19:13:48]json_value_free done [19:13:48]process_json_proto returns [19:13:48]Send response to host [19:13:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69816,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [19:13:48]free response buf [19:13:48]execute_script done [19:13:48]execute_script returns [19:13:48]free content buf [19:13:48]Sock 7.Close socket [19:13:48]Sock 7.Thread stoped [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:12]accept exits with 9 [19:14:12]New connection [19:14:12]New thread 3066486116 created [19:14:12]Thread 3066629476 joined [19:14:12]Waiting for new connection... [19:14:12] Sock 9.Parse request [19:14:12]Sock 9.Check first char [19:14:12]Sock 9.First char is OK [19:14:12]request: POST /json_proto HTTP/1.0 [19:14:12]Method: POST [19:14:12]URL: /json_proto [19:14:12]Method is POST - this is cgi request [19:14:12]url: /json_proto [19:14:12]query_string will be loaded in cgi processing [19:14:12]execute_cgi json_proto POST (null) [19:14:12]execute_cgi path=json_proto method=POST [19:14:12]POST find Content-Length [19:14:12]Host: 172.17.52.196:8080 [19:14:12]Content-Length: 623 [19:14:12]Content-Type: application/json [19:14:12] [19:14:12]POST finish read [19:14:12]Found Content-Length = 623 [19:14:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127216", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:12]execute_script... [19:14: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)127216", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:12]POST & json_proto [19:14:12]process_json_proto [19:14:12]json parsed OK: [19:14:12]protocol is kg_v1.0 [19:14:12]action value=close_receipt [19:14:12]process_action close_receipt [19:14:12]cmd_close_receipt [19:14:12]MH_GetDate [19:14:12]Write to MH i2c: F0 00 00 F4 1C FF [19:14:12]Write i2c OK [19:14:12]MH_I2C_Read... [19:14:12]Read from MH i2c: F0 [19:14:12]MH_I2C_Read... [19:14:12]Read from MH i2c: F0 09 00 [19:14:12]MH_I2C_Read... [19:14:12]Read from MH i2c: F0 09 00 F4 1C 00 87 56 15 67 60 05 E4 66 10 [19:14:12]GetLastDocTimeStamp 1729451627 [19:14:12]current date 1729451655 [19:14:12]FM_GetShiftState [19:14:12]SAM_PROTO_GetShiftState [19:14:12]wFMCommunicate request_size=4 [19:14:12]MH_SAM_APDU [19:14:12]CAPDU: 80 13 01 00 [19:14:12]Write to MH i2c: E2 08 00 F5 1C 80 13 01 00 00 00 00 00 8E [19:14:12]Write i2c OK [19:14:12]MH_I2C_Read... [19:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:12]Read from MH i2c: E2 [19:14:12]MH_I2C_Read... [19:14:12]Read from MH i2c: E2 0E 00 [19:14:12]MH_I2C_Read... [19:14:12]Read from MH i2c: E2 0E 00 F5 1C 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 20 [19:14:12]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:14:12]wFMCommunicate OK [19:14:12]SAM_PROTO_GetShiftState done [19:14:12]FM_GetShiftState done [19:14:12]opened in 1729384380 [19:14:12]opened+sec_in_day 1729470780 [19:14:12]quantity*price = 28800 [19:14:12]sum+1 = 28801 [19:14:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 107 20.10.2024 19:14 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69817 ФПД: 80104146518561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191415&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69817&fm=80104146518561&tin=02508201610067®Number=0000000000091770&sum=28800 0 [19:14:13]StoreToDocumentArchive [19:14:13]shift 526 fd 69817 [19:14:13]save to /storage/0526/doc_00069817 [19:14:13]save last doc name /storage/0526/doc_00069817 to /storage/kkm_last_doc_name [19:14:13]save OK [19:14:13]Clear old archive folders... [19:14:13]ProcessDocumentItem done err = 0, tmpTLVsize=275 [19:14:13]tlvbuf is B6E59990 [19:14:13]SAM_PROTO_ClearQueue [19:14:13]wFMCommunicate request_size=4 [19:14:13]MH_SAM_APDU [19:14:13]CAPDU: 80 09 00 00 [19:14:13]Write to MH i2c: E2 08 00 02 1D 80 09 00 00 00 00 00 00 91 [19:14:13]Write i2c OK [19:14:13]MH_I2C_Read... [19:14:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:13]Read from MH i2c: E2 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 03 00 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 03 00 02 1D 00 90 00 93 [19:14:13]RAPDU: 90 00 [19:14:13]wFMCommunicate OK [19:14:13]SAM_PROTO_ClearQueue done [19:14:13]KKMCreateOFDPacket [19:14:13]OFDProtocolAddRootSTLVToBuf [19:14:13]FM_MakeSignedData [19:14:13]FM_MakeSignedData [19:14:13]SAM_PROTO_SignData [19:14:13]wFMCommunicate request_size=4 [19:14:13]MH_SAM_APDU [19:14:13]CAPDU: 80 0D 01 02 [19:14:13]Write to MH i2c: E2 08 00 03 1D 80 0D 01 02 00 00 00 00 99 [19:14:13]Write i2c OK [19:14:13]MH_I2C_Read... [19:14:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:13]Read from MH i2c: E2 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 03 00 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 03 00 03 1D 00 90 00 94 [19:14:13]RAPDU: 90 00 [19:14:13]wFMCommunicate OK [19:14:13]wFMCommunicate request_size=255 [19:14:13]MH_SAM_APDU [19:14: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 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 87 56 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 [19:14:13]Write to MH i2c: E2 02 01 04 1D 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 87 56 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 00 00 44 [19:14:13]Write i2c OK [19:14:13]MH_I2C_Read... [19:14:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:13]Read from MH i2c: E2 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 03 00 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 03 00 04 1D 00 90 00 95 [19:14:13]RAPDU: 90 00 [19:14:13]wFMCommunicate OK [19:14:13]wFMCommunicate request_size=34 [19:14:13]MH_SAM_APDU [19:14:13]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B9 10 01 00 35 04 06 00 48 DA B3 32 C2 21 [19:14:13]Write to MH i2c: E2 25 00 05 1D 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B9 10 01 00 35 04 06 00 48 DA B3 32 C2 21 00 00 15 [19:14:13]Write i2c OK [19:14:13]MH_I2C_Read... [19:14:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:13]Read from MH i2c: E2 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 03 00 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 03 00 05 1D 00 90 00 96 [19:14:13]RAPDU: 90 00 [19:14:13]wFMCommunicate OK [19:14:13]wFMCommunicate request_size=4 [19:14:13]MH_SAM_APDU [19:14:13]CAPDU: 80 0D 03 02 [19:14:13]Write to MH i2c: E2 08 00 06 1D 80 0D 03 02 00 00 00 00 9E [19:14:13]Write i2c OK [19:14:13]MH_I2C_Read... [19:14:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:13]Read from MH i2c: E2 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 0B 00 [19:14:13]MH_I2C_Read... [19:14:13]Read from MH i2c: E2 0B 00 06 1D 00 75 0B A8 6D 08 EC E1 7C 90 00 85 [19:14:13]RAPDU: 75 0B A8 6D 08 EC E1 7C 90 00 [19:14:13]wFMCommunicate OK [19:14:13]SAM_PROTO_SignData done [19:14:13]FM_MakeSignedData done [19:14:13]CreateOFDProtocolMessage [19:14:13]wFMCommunicate request_size=4 [19:14:13]MH_SAM_APDU [19:14:13]CAPDU: 80 11 00 00 [19:14:13]Write to MH i2c: E2 08 00 07 1D 80 11 00 00 00 00 00 00 9E [19:14:13]Write i2c OK [19:14:13]MH_I2C_Read... [19:14:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:14]Read from MH i2c: E2 [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: E2 17 00 [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: E2 17 00 07 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 F5 [19:14:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:14:14]wFMCommunicate OK [19:14:14]CreateOFDProtocolMessage done [19:14:14]OFDSenderStorePacket 69817 [19:14:14]StoreOFDPacket docnum=69817 [19:14:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 8E 43 1F 01 A4 CA 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 87 56 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B9 10 01 00 35 04 06 00 48 DA B3 32 C2 21 75 0B A8 6D 08 EC E1 7C [19:14:14]CheckFolder [19:14:14]dirname=/storage/ofd_packets [19:14:14]CheckFolder done [19:14:14]ProducePacketName [19:14:14]name=ofd_packets/00069817 [19:14:14]NVStorageSaveData ofd_packets/00069817 [19:14:14]File name is /storage/ofd_packets/00069817 [19:14:14]Write 325 bytes [19:14:14]NVStorageSaveData done [19:14:14]OFDSenderStorePacket done [19:14:14]KKMCreateOFDPacket done [19:14:14]NVStorageSaveData kkm_last_timestamp [19:14:14]File name is /storage/kkm_last_timestamp [19:14:14]Write 4 bytes [19:14:14]NVStorageSaveData done [19:14:14]ExternCall_PrintAddStr [19:14:14]wPrintStart [19:14:14]Write to MH i2c: 01 00 00 08 1D 25 [19:14:14]Write i2c OK [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: 01 [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: 01 07 00 [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: 01 07 00 08 1D 00 00 00 00 00 FF 0F 3A [19:14:14]RasterBufferAndPrint [19:14:14]line Счет N : (3)127216 [19:14:14]line ИНН: 02508201610067 [19:14:14]line Контрольно-Кассовый Чек [19:14:14]line ПРОДАЖА [19:14:14]line Товар: 48743587 [19:14:14]line Сигареты Winston XStyle Silver [19:14:14]line 2.000 * 144.00 [19:14:14]line = 288.00 [19:14:14]line НДС 12% НСП 1% [19:14:14]line > о реализуемом товаре [19:14:14]line ИТОГО: 288.00 [19:14:14]line НСП 1% : 2.55 [19:14:14]line НДС 12% : 30.58 [19:14:14]line Наличными: 288.00 [19:14:14]line Безнал.: 0.00 [19:14:14]line Место: АЗС № 163 "Партнер Нефть" [19:14:14]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [19:14:14]line СНО: Общий режим [19:14:14]line Чек 107 20.10.2024 19:14 [19:14:14]line Смена: 526 ФФД: 1.0 [19:14:14]line ЗНМ: 0300000101 [19:14:14]line РНМ: 0000000000091770 [19:14:14]line Версия ККМ: 001 [19:14:14]line ФМ: 0000000000871749 [19:14:14]line ФД: 69817 [19:14:14]line ФПД: 80104146518561 [19:14:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T191415&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69817&fm=80104146518561&tin=02508201610067®Number=0000000000091770&sum=28800 [19:14:14]line 0 [19:14:14]OFD Sender: Processing packet 69817 [packets to send 32, broken 31] [19:14:14]ProducePacketName [19:14:14]name=ofd_packets/00069817 [19:14:14]OFD Sender: To server: pG, [19:14:14]CommunicateWithHost lk.salyk.kg:30040 [19:14:14]ConnectInit lk.salyk.kg [19:14:14]written 0, free lines is 4095 [19:14:14]Connected sock=10 [19:14:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 27 01 00 00 8E 43 1F 01 A4 CA 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 87 56 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B9 10 01 00 35 04 06 00 48 DA B3 32 C2 21 75 0B A8 6D 08 EC E1 7C [19:14:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 CE 41 47 00 A1 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 B9 10 01 00 F4 03 04 00 09 FC 14 67 B6 04 01 00 00 07 66 6B DC 97 98 9F C7 [19:14:14]CommunicateWithHost err = 0 [19:14:14]CheckOFDResponse [19:14:14]1017 (14) - 77093643461234 [19:14:14]1041 (16) - 0000000000871749 [19:14:14]1040 (4) - 69817 [19:14:14]1012 (4) - 20.10.2024 12:48 [19:14:14]1206 (1) - 0 [19:14:14]OFD Sender: Remove packet 69817 [19:14:14]ProducePacketName [19:14:14]name=ofd_packets/00069817 [19:14:14]NVStorageDeleteData [19:14:14]Write to MH i2c: 01 00 00 31 1D 4E [19:14:14]Write i2c OK [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: 01 [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: 01 07 00 [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: 01 07 00 31 1D 00 00 00 00 00 EA 0C 4B [19:14:14]RasterBufferAndPrint [19:14:14]line [19:14:14]line [19:14:14]line [19:14:14]line [19:14:14]line [19:14:14]written 0, free lines is 3315 [19:14:14]MH_Cut [19:14:14]Write to MH i2c: D1 01 00 38 1D 01 27 [19:14:14]Write i2c OK [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: D1 [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: D1 01 00 [19:14:14]MH_I2C_Read... [19:14:14]Read from MH i2c: D1 01 00 38 1D 00 26 [19:14:14]Write to MH i2c: 01 00 00 39 1D 56 [19:14:14]Write i2c OK [19:14:14]MH_I2C_Read... [19:14:15]OFD Sender: No OFD packet to send [19:14:15]*** Cut start [19:14:15]*** Partial cut [19:14:15]*** CUTSNS_PIN = 1 [19:14:15]*** CUTSNS_PIN = 0 [19:14:16]*** Brake cut motor [19:14:16]Read from MH i2c: 01 [19:14:16]MH_I2C_Read... [19:14:16]*** Stop cut motor [19:14:16]*** Cut end [19:14:16]Read from MH i2c: 01 07 00 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: 01 07 00 39 1D 00 00 00 00 00 FF 0F 6B [19:14:16]process_action close_receipt done [19:14:16]requested_data is exist [19:14:16]produce_requested_data [19:14:16]requested_item fm.sn is exist - process it [19:14:16]wFMCommunicate request_size=4 [19:14:16]MH_SAM_APDU [19:14:16]CAPDU: 80 11 00 00 [19:14:16]Write to MH i2c: E2 08 00 3A 1D 80 11 00 00 00 00 00 00 D1 [19:14:16]Write i2c OK [19:14:16]MH_I2C_Read... [19:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:16]Read from MH i2c: E2 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: E2 17 00 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: E2 17 00 3A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 28 [19:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:14:16]wFMCommunicate OK [19:14:16]requested_item fd.num is exist - process it [19:14:16]SAM_PROTO_GetFieldsCounters [19:14:16]wFMCommunicate request_size=4 [19:14:16]MH_SAM_APDU [19:14:16]CAPDU: 80 13 00 00 [19:14:16]Write to MH i2c: E2 08 00 3B 1D 80 13 00 00 00 00 00 00 D4 [19:14:16]Write i2c OK [19:14:16]MH_I2C_Read... [19:14:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:16]Read from MH i2c: E2 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: E2 62 00 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: E2 62 00 3B 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B9 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [19:14: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 B9 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:16]wFMCommunicate OK [19:14:16]SAM_PROTO_GetFieldsCounters done [19:14:16]requested_item shift.num is exist - process it [19:14:16]requested_item shift.opened is exist - process it [19:14:16]req_shift_opened [19:14:16]FM_GetShiftState [19:14:16]SAM_PROTO_GetShiftState [19:14:16]wFMCommunicate request_size=4 [19:14:16]MH_SAM_APDU [19:14:16]CAPDU: 80 13 01 00 [19:14:16]Write to MH i2c: E2 08 00 3C 1D 80 13 01 00 00 00 00 00 D6 [19:14:16]Write i2c OK [19:14:16]MH_I2C_Read... [19:14:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:16]Read from MH i2c: E2 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: E2 0E 00 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: E2 0E 00 3C 1D 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 68 [19:14:16]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:14:16]wFMCommunicate OK [19:14:16]SAM_PROTO_GetShiftState done [19:14:16]FM_GetShiftState done [19:14:16]req_shift_opened done [19:14:16]requested_item shift.open_date is exist - process it [19:14:16]req_shift_open_date [19:14:16]req_shift_open_date done [19:14:16]produce_requested_data done [19:14:16]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69817,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [19:14:16]process_action_free close_receipt [19:14:16]json_value_free [19:14:16]json_value_free done [19:14:16]process_json_proto returns [19:14:16]Send response to host [19:14:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69817,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [19:14:16]free response buf [19:14:16]execute_script done [19:14:16]execute_script returns [19:14:16]free content buf [19:14:16]Sock 9.Close socket [19:14:16]Sock 9.Thread stoped [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:38]accept exits with 7 [19:21:38]New connection [19:21:38]New thread 3066629476 created [19:21:38]Thread 3066486116 joined [19:21:38]Waiting for new connection... [19:21:38] Sock 7.Parse request [19:21:38]Sock 7.Check first char [19:21:38]Sock 7.First char is OK [19:21:38]request: POST /json_proto HTTP/1.0 [19:21:38]Method: POST [19:21:38]URL: /json_proto [19:21:38]Method is POST - this is cgi request [19:21:38]url: /json_proto [19:21:38]query_string will be loaded in cgi processing [19:21:38]execute_cgi json_proto POST (null) [19:21:38]execute_cgi path=json_proto method=POST [19:21:38]POST find Content-Length [19:21:38]Host: 172.17.52.196:8080 [19:21:38]Content-Length: 621 [19:21:38]Content-Type: application/json [19:21:38] [19:21:38]POST finish read [19:21:38]Found Content-Length = 621 [19:21:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127217", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:38]execute_script... [19:21:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127217", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:38]POST & json_proto [19:21:38]process_json_proto [19:21:38]json parsed OK: [19:21:38]protocol is kg_v1.0 [19:21:38]action value=close_receipt [19:21:38]process_action close_receipt [19:21:38]cmd_close_receipt [19:21:38]MH_GetDate [19:21:38]Write to MH i2c: F0 00 00 3D 1D 49 [19:21:38]Write i2c OK [19:21:38]MH_I2C_Read... [19:21:38]Read from MH i2c: F0 [19:21:38]MH_I2C_Read... [19:21:38]Read from MH i2c: F0 09 00 [19:21:38]MH_I2C_Read... [19:21:38]Read from MH i2c: F0 09 00 3D 1D 00 45 58 15 67 60 05 E4 66 1A [19:21:38]GetLastDocTimeStamp 1729451655 [19:21:38]current date 1729452101 [19:21:38]FM_GetShiftState [19:21:38]SAM_PROTO_GetShiftState [19:21:38]wFMCommunicate request_size=4 [19:21:38]MH_SAM_APDU [19:21:38]CAPDU: 80 13 01 00 [19:21:38]Write to MH i2c: E2 08 00 3E 1D 80 13 01 00 00 00 00 00 D8 [19:21:38]Write i2c OK [19:21:38]MH_I2C_Read... [19:21:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:38]Read from MH i2c: E2 [19:21:38]MH_I2C_Read... [19:21:38]Read from MH i2c: E2 0E 00 [19:21:38]MH_I2C_Read... [19:21:38]Read from MH i2c: E2 0E 00 3E 1D 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 6A [19:21:38]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:21:38]wFMCommunicate OK [19:21:38]SAM_PROTO_GetShiftState done [19:21:38]FM_GetShiftState done [19:21:38]opened in 1729384380 [19:21:38]opened+sec_in_day 1729470780 [19:21:38]quantity*price = 14400 [19:21:38]sum+1 = 14401 [19:21:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 108 20.10.2024 19:21 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69818 ФПД: 12490534226089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192141&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69818&fm=12490534226089&tin=02508201610067®Number=0000000000091770&sum=14400 0 [19:21:39]StoreToDocumentArchive [19:21:39]shift 526 fd 69818 [19:21:39]save to /storage/0526/doc_00069818 [19:21:39]save last doc name /storage/0526/doc_00069818 to /storage/kkm_last_doc_name [19:21:39]save OK [19:21:39]Clear old archive folders... [19:21:39]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:21:39]tlvbuf is 009B86E0 [19:21:39]SAM_PROTO_ClearQueue [19:21:39]wFMCommunicate request_size=4 [19:21:39]MH_SAM_APDU [19:21:39]CAPDU: 80 09 00 00 [19:21:39]Write to MH i2c: E2 08 00 4B 1D 80 09 00 00 00 00 00 00 DA [19:21:39]Write i2c OK [19:21:39]MH_I2C_Read... [19:21:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:39]Read from MH i2c: E2 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 03 00 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 03 00 4B 1D 00 90 00 DC [19:21:39]RAPDU: 90 00 [19:21:39]wFMCommunicate OK [19:21:39]SAM_PROTO_ClearQueue done [19:21:39]KKMCreateOFDPacket [19:21:39]OFDProtocolAddRootSTLVToBuf [19:21:39]FM_MakeSignedData [19:21:39]FM_MakeSignedData [19:21:39]SAM_PROTO_SignData [19:21:39]wFMCommunicate request_size=4 [19:21:39]MH_SAM_APDU [19:21:39]CAPDU: 80 0D 01 02 [19:21:39]Write to MH i2c: E2 08 00 4C 1D 80 0D 01 02 00 00 00 00 E2 [19:21:39]Write i2c OK [19:21:39]MH_I2C_Read... [19:21:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:39]Read from MH i2c: E2 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 03 00 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 03 00 4C 1D 00 90 00 DD [19:21:39]RAPDU: 90 00 [19:21:39]wFMCommunicate OK [19:21:39]wFMCommunicate request_size=255 [19:21:39]MH_SAM_APDU [19:21:39]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 45 58 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [19:21:39]Write to MH i2c: E2 02 01 4D 1D 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 45 58 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 E0 [19:21:39]Write i2c OK [19:21:39]MH_I2C_Read... [19:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:39]Read from MH i2c: E2 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 03 00 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 03 00 4D 1D 00 90 00 DE [19:21:39]RAPDU: 90 00 [19:21:39]wFMCommunicate OK [19:21:39]wFMCommunicate request_size=32 [19:21:39]MH_SAM_APDU [19:21:39]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 BA 10 01 00 35 04 06 00 0B 5C 2D DB 08 A9 [19:21:39]Write to MH i2c: E2 23 00 4E 1D 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 BA 10 01 00 35 04 06 00 0B 5C 2D DB 08 A9 00 00 31 [19:21:39]Write i2c OK [19:21:39]MH_I2C_Read... [19:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:39]Read from MH i2c: E2 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 03 00 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 03 00 4E 1D 00 90 00 DF [19:21:39]RAPDU: 90 00 [19:21:39]wFMCommunicate OK [19:21:39]wFMCommunicate request_size=4 [19:21:39]MH_SAM_APDU [19:21:39]CAPDU: 80 0D 03 02 [19:21:39]Write to MH i2c: E2 08 00 4F 1D 80 0D 03 02 00 00 00 00 E7 [19:21:39]Write i2c OK [19:21:39]MH_I2C_Read... [19:21:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:39]Read from MH i2c: E2 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 0B 00 [19:21:39]MH_I2C_Read... [19:21:39]Read from MH i2c: E2 0B 00 4F 1D 00 7C B7 97 91 15 69 76 B0 90 00 E7 [19:21:39]RAPDU: 7C B7 97 91 15 69 76 B0 90 00 [19:21:39]wFMCommunicate OK [19:21:39]SAM_PROTO_SignData done [19:21:39]FM_MakeSignedData done [19:21:39]CreateOFDProtocolMessage [19:21:39]wFMCommunicate request_size=4 [19:21:39]MH_SAM_APDU [19:21:39]CAPDU: 80 11 00 00 [19:21:39]Write to MH i2c: E2 08 00 50 1D 80 11 00 00 00 00 00 00 E7 [19:21:39]Write i2c OK [19:21:39]MH_I2C_Read... [19:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:40]Read from MH i2c: E2 [19:21:40]MH_I2C_Read... [19:21:40]Read from MH i2c: E2 17 00 [19:21:40]MH_I2C_Read... [19:21:40]Read from MH i2c: E2 17 00 50 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 3E [19:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:21:40]wFMCommunicate OK [19:21:40]CreateOFDProtocolMessage done [19:21:40]OFDSenderStorePacket 69818 [19:21:40]StoreOFDPacket docnum=69818 [19:21:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 EA 8F 1D 01 41 CC 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 45 58 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BA 10 01 00 35 04 06 00 0B 5C 2D DB 08 A9 7C B7 97 91 15 69 76 B0 [19:21:40]CheckFolder [19:21:40]dirname=/storage/ofd_packets [19:21:40]CheckFolder done [19:21:40]ProducePacketName [19:21:40]name=ofd_packets/00069818 [19:21:40]NVStorageSaveData ofd_packets/00069818 [19:21:40]File name is /storage/ofd_packets/00069818 [19:21:40]Write 323 bytes [19:21:40]NVStorageSaveData done [19:21:40]OFDSenderStorePacket done [19:21:40]KKMCreateOFDPacket done [19:21:40]NVStorageSaveData kkm_last_timestamp [19:21:40]File name is /storage/kkm_last_timestamp [19:21:40]Write 4 bytes [19:21:40]NVStorageSaveData done [19:21:40]ExternCall_PrintAddStr [19:21:40]wPrintStart [19:21:40]Write to MH i2c: 01 00 00 51 1D 6E [19:21:40]Write i2c OK [19:21:40]MH_I2C_Read... [19:21:40]Read from MH i2c: 01 [19:21:40]MH_I2C_Read... [19:21:40]Read from MH i2c: 01 07 00 [19:21:40]MH_I2C_Read... [19:21:40]Read from MH i2c: 01 07 00 51 1D 00 00 00 00 00 FF 0F 83 [19:21:40]RasterBufferAndPrint [19:21:40]line Счет N : (3)127217 [19:21:40]line ИНН: 02508201610067 [19:21:40]line Контрольно-Кассовый Чек [19:21:40]line ПРОДАЖА [19:21:40]line Товар: 48743570 [19:21:40]line Сигареты Winston XStyle Blue [19:21:40]line 1.000 * 144.00 [19:21:40]line = 144.00 [19:21:40]line НДС 12% НСП 1% [19:21:40]line > о реализуемом товаре [19:21:40]line ИТОГО: 144.00 [19:21:40]line НСП 1% : 1.27 [19:21:40]line НДС 12% : 15.29 [19:21:40]line Наличными: 144.00 [19:21:40]line Безнал.: 0.00 [19:21:40]line Место: АЗС № 163 "Партнер Нефть" [19:21:40]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [19:21:40]line СНО: Общий режим [19:21:40]line Чек 108 20.10.2024 19:21 [19:21:40]line Смена: 526 ФФД: 1.0 [19:21:40]line ЗНМ: 0300000101 [19:21:40]line РНМ: 0000000000091770 [19:21:40]line Версия ККМ: 001 [19:21:40]line ФМ: 0000000000871749 [19:21:40]line ФД: 69818 [19:21:40]line ФПД: 12490534226089 [19:21:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192141&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69818&fm=12490534226089&tin=02508201610067®Number=0000000000091770&sum=14400 [19:21:40]line 0 [19:21:40]OFD Sender: Processing packet 69818 [packets to send 32, broken 31] [19:21:40]ProducePacketName [19:21:40]name=ofd_packets/00069818 [19:21:40]OFD Sender: To server: pG, [19:21:40]CommunicateWithHost lk.salyk.kg:30040 [19:21:40]ConnectInit lk.salyk.kg [19:21:40]written 0, free lines is 4095 [19:21:40]Connected sock=10 [19:21:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 EA 8F 1D 01 41 CC 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 45 58 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BA 10 01 00 35 04 06 00 0B 5C 2D DB 08 A9 7C B7 97 91 15 69 76 B0 [19:21:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 7C CA 47 00 91 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BA 10 01 00 F4 03 04 00 C7 FD 14 67 B6 04 01 00 00 7A 6A BE 02 9E 0C 55 1F [19:21:40]CommunicateWithHost err = 0 [19:21:40]CheckOFDResponse [19:21:40]1017 (14) - 77093643461234 [19:21:40]1041 (16) - 0000000000871749 [19:21:40]1040 (4) - 69818 [19:21:40]1012 (4) - 20.10.2024 12:55 [19:21:40]1206 (1) - 0 [19:21:40]OFD Sender: Remove packet 69818 [19:21:40]ProducePacketName [19:21:40]name=ofd_packets/00069818 [19:21:40]NVStorageDeleteData [19:21:40]Write to MH i2c: 01 00 00 79 1D 96 [19:21:40]Write i2c OK [19:21:40]MH_I2C_Read... [19:21:40]Read from MH i2c: 01 [19:21:40]MH_I2C_Read... [19:21:40]Read from MH i2c: 01 07 00 [19:21:40]MH_I2C_Read... [19:21:40]Read from MH i2c: 01 07 00 79 1D 00 00 00 00 00 F5 0C 9E [19:21:40]RasterBufferAndPrint [19:21:40]line [19:21:40]line [19:21:40]line [19:21:40]line [19:21:40]line [19:21:40]written 0, free lines is 3324 [19:21:40]MH_Cut [19:21:40]Write to MH i2c: D1 01 00 80 1D 01 6F [19:21:40]Write i2c OK [19:21:40]MH_I2C_Read... [19:21:40]Read from MH i2c: D1 [19:21:40]MH_I2C_Read... [19:21:40]Read from MH i2c: D1 01 00 [19:21:40]MH_I2C_Read... [19:21:40]Read from MH i2c: D1 01 00 80 1D 00 6E [19:21:40]Write to MH i2c: 01 00 00 81 1D 9E [19:21:40]Write i2c OK [19:21:40]MH_I2C_Read... [19:21:41]OFD Sender: No OFD packet to send [19:21:41]*** Cut start [19:21:41]*** Partial cut [19:21:41]*** CUTSNS_PIN = 1 [19:21:41]*** CUTSNS_PIN = 0 [19:21:41]*** Brake cut motor [19:21:42]Read from MH i2c: 01 [19:21:42]MH_I2C_Read... [19:21:42]*** Stop cut motor [19:21:42]*** Cut end [19:21:42]Read from MH i2c: 01 07 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: 01 07 00 81 1D 00 00 00 00 00 FF 0F B3 [19:21:42]process_action close_receipt done [19:21:42]requested_data is exist [19:21:42]produce_requested_data [19:21:42]requested_item fm.sn is exist - process it [19:21:42]wFMCommunicate request_size=4 [19:21:42]MH_SAM_APDU [19:21:42]CAPDU: 80 11 00 00 [19:21:42]Write to MH i2c: E2 08 00 82 1D 80 11 00 00 00 00 00 00 19 [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:42]Read from MH i2c: E2 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 17 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 17 00 82 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 70 [19:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:21:42]wFMCommunicate OK [19:21:42]requested_item fd.num is exist - process it [19:21:42]SAM_PROTO_GetFieldsCounters [19:21:42]wFMCommunicate request_size=4 [19:21:42]MH_SAM_APDU [19:21:42]CAPDU: 80 13 00 00 [19:21:42]Write to MH i2c: E2 08 00 83 1D 80 13 00 00 00 00 00 00 1C [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:42]Read from MH i2c: E2 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 62 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 62 00 83 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 BA 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [19:21: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 BA 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:42]wFMCommunicate OK [19:21:42]SAM_PROTO_GetFieldsCounters done [19:21:42]requested_item shift.num is exist - process it [19:21:42]requested_item shift.opened is exist - process it [19:21:42]req_shift_opened [19:21:42]FM_GetShiftState [19:21:42]SAM_PROTO_GetShiftState [19:21:42]wFMCommunicate request_size=4 [19:21:42]MH_SAM_APDU [19:21:42]CAPDU: 80 13 01 00 [19:21:42]Write to MH i2c: E2 08 00 84 1D 80 13 01 00 00 00 00 00 1E [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:42]Read from MH i2c: E2 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 0E 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 0E 00 84 1D 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 B0 [19:21:42]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:21:42]wFMCommunicate OK [19:21:42]SAM_PROTO_GetShiftState done [19:21:42]FM_GetShiftState done [19:21:42]req_shift_opened done [19:21:42]requested_item shift.open_date is exist - process it [19:21:42]req_shift_open_date [19:21:42]req_shift_open_date done [19:21:42]produce_requested_data done [19:21:42]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69818,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [19:21:42]process_action_free close_receipt [19:21:42]json_value_free [19:21:42]json_value_free done [19:21:42]process_json_proto returns [19:21:42]Send response to host [19:21:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69818,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [19:21:42]free response buf [19:21:42]execute_script done [19:21:42]execute_script returns [19:21:42]free content buf [19:21:42]Sock 7.Close socket [19:21:42]Sock 7.Thread stoped [19:21:46]OFD Sender: No OFD packet to send [19:21:51]OFD Sender: No OFD packet to send [19:21:56]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:06]OFD Sender: No OFD packet to send [19:22:11]OFD Sender: No OFD packet to send [19:22:16]OFD Sender: No OFD packet to send [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:41]OFD Sender: No OFD packet to send [19:23:46]OFD Sender: No OFD packet to send [19:23:51]OFD Sender: No OFD packet to send [19:23:56]OFD Sender: No OFD packet to send [19:24:01]OFD Sender: No OFD packet to send [19:24:06]OFD Sender: No OFD packet to send [19:24:11]OFD Sender: No OFD packet to send [19:24:16]OFD Sender: No OFD packet to send [19:24:21]OFD Sender: No OFD packet to send [19:24:26]OFD Sender: No OFD packet to send [19:24:31]OFD Sender: No OFD packet to send [19:24:36]OFD Sender: No OFD packet to send [19:24:41]OFD Sender: No OFD packet to send [19:24:46]OFD Sender: No OFD packet to send [19:24:51]OFD Sender: No OFD packet to send [19:24:56]OFD Sender: No OFD packet to send [19:25:01]OFD Sender: No OFD packet to send [19:25:06]OFD Sender: No OFD packet to send [19:25:11]OFD Sender: No OFD packet to send [19:25:16]OFD Sender: No OFD packet to send [19:25:21]OFD Sender: No OFD packet to send [19:25:26]OFD Sender: No OFD packet to send [19:25:28]accept exits with 9 [19:25:28]New connection [19:25:28]New thread 3066486116 created [19:25:28]Thread 3066629476 joined [19:25:28]Waiting for new connection... [19:25:28] Sock 9.Parse request [19:25:28]Sock 9.Check first char [19:25:28]Sock 9.First char is OK [19:25:28]request: POST /json_proto HTTP/1.0 [19:25:28]Method: POST [19:25:28]URL: /json_proto [19:25:28]Method is POST - this is cgi request [19:25:28]url: /json_proto [19:25:28]query_string will be loaded in cgi processing [19:25:28]execute_cgi json_proto POST (null) [19:25:28]execute_cgi path=json_proto method=POST [19:25:28]POST find Content-Length [19:25:28]Host: 172.17.52.196:8080 [19:25:28]Content-Length: 646 [19:25:28]Content-Type: application/json [19:25:28] [19:25:28]POST finish read [19:25:28]Found Content-Length = 646 [19:25:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127218", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:28]execute_script... [19:25:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127218", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:28]POST & json_proto [19:25:28]process_json_proto [19:25:28]json parsed OK: [19:25:28]protocol is kg_v1.0 [19:25:28]action value=close_receipt [19:25:28]process_action close_receipt [19:25:28]cmd_close_receipt [19:25:28]MH_GetDate [19:25:28]Write to MH i2c: F0 00 00 85 1D 91 [19:25:28]Write i2c OK [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: F0 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: F0 09 00 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: F0 09 00 85 1D 00 2B 59 15 67 60 05 E4 66 49 [19:25:28]GetLastDocTimeStamp 1729452101 [19:25:28]current date 1729452331 [19:25:28]FM_GetShiftState [19:25:28]SAM_PROTO_GetShiftState [19:25:28]wFMCommunicate request_size=4 [19:25:28]MH_SAM_APDU [19:25:28]CAPDU: 80 13 01 00 [19:25:28]Write to MH i2c: E2 08 00 86 1D 80 13 01 00 00 00 00 00 20 [19:25:28]Write i2c OK [19:25:28]MH_I2C_Read... [19:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:28]Read from MH i2c: E2 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: E2 0E 00 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: E2 0E 00 86 1D 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 B2 [19:25:28]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:25:28]wFMCommunicate OK [19:25:28]SAM_PROTO_GetShiftState done [19:25:28]FM_GetShiftState done [19:25:28]opened in 1729384380 [19:25:28]opened+sec_in_day 1729470780 [19:25:28]quantity*price = 13000 [19:25:28]sum+1 = 13001 [19:25:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 109 20.10.2024 19:25 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69819 ФПД: 47494916170074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192531&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69819&fm=47494916170074&tin=02508201610067®Number=0000000000091770&sum=13000 0 [19:25:29]StoreToDocumentArchive [19:25:29]shift 526 fd 69819 [19:25:29]save to /storage/0526/doc_00069819 [19:25:29]save last doc name /storage/0526/doc_00069819 to /storage/kkm_last_doc_name [19:25:29]save OK [19:25:29]Clear old archive folders... [19:25:29]ProcessDocumentItem done err = 0, tmpTLVsize=282 [19:25:29]tlvbuf is 009D44D0 [19:25:29]SAM_PROTO_ClearQueue [19:25:29]wFMCommunicate request_size=4 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 09 00 00 [19:25:29]Write to MH i2c: E2 08 00 93 1D 80 09 00 00 00 00 00 00 22 [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 03 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 03 00 93 1D 00 90 00 24 [19:25:29]RAPDU: 90 00 [19:25:29]wFMCommunicate OK [19:25:29]SAM_PROTO_ClearQueue done [19:25:29]KKMCreateOFDPacket [19:25:29]OFDProtocolAddRootSTLVToBuf [19:25:29]FM_MakeSignedData [19:25:29]FM_MakeSignedData [19:25:29]SAM_PROTO_SignData [19:25:29]wFMCommunicate request_size=4 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 0D 01 02 [19:25:29]Write to MH i2c: E2 08 00 94 1D 80 0D 01 02 00 00 00 00 2A [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 03 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 03 00 94 1D 00 90 00 25 [19:25:29]RAPDU: 90 00 [19:25:29]wFMCommunicate OK [19:25:29]wFMCommunicate request_size=255 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 2B 59 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 [19:25:29]Write to MH i2c: E2 02 01 95 1D 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 2B 59 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 00 00 B5 [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 03 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 03 00 95 1D 00 90 00 26 [19:25:29]RAPDU: 90 00 [19:25:29]wFMCommunicate OK [19:25:29]wFMCommunicate request_size=41 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BB 10 01 00 35 04 06 00 2B 32 45 9B 61 5A [19:25:29]Write to MH i2c: E2 2C 00 96 1D 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BB 10 01 00 35 04 06 00 2B 32 45 9B 61 5A 00 00 C4 [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 03 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 03 00 96 1D 00 90 00 27 [19:25:29]RAPDU: 90 00 [19:25:29]wFMCommunicate OK [19:25:29]wFMCommunicate request_size=4 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 0D 03 02 [19:25:29]Write to MH i2c: E2 08 00 97 1D 80 0D 03 02 00 00 00 00 2F [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 0B 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 0B 00 97 1D 00 E4 51 40 BA 2F 55 D3 11 90 00 C7 [19:25:29]RAPDU: E4 51 40 BA 2F 55 D3 11 90 00 [19:25:29]wFMCommunicate OK [19:25:29]SAM_PROTO_SignData done [19:25:29]FM_MakeSignedData done [19:25:29]CreateOFDProtocolMessage [19:25:29]wFMCommunicate request_size=4 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 11 00 00 [19:25:29]Write to MH i2c: E2 08 00 98 1D 80 11 00 00 00 00 00 00 2F [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 17 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 17 00 98 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 86 [19:25:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:25:29]wFMCommunicate OK [19:25:29]CreateOFDProtocolMessage done [19:25:29]OFDSenderStorePacket 69819 [19:25:29]StoreOFDPacket docnum=69819 [19:25:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2E 01 00 00 AE BD 26 01 35 7E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 2B 59 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BB 10 01 00 35 04 06 00 2B 32 45 9B 61 5A E4 51 40 BA 2F 55 D3 11 [19:25:29]CheckFolder [19:25:29]dirname=/storage/ofd_packets [19:25:29]CheckFolder done [19:25:29]ProducePacketName [19:25:29]name=ofd_packets/00069819 [19:25:29]NVStorageSaveData ofd_packets/00069819 [19:25:29]File name is /storage/ofd_packets/00069819 [19:25:29]Write 332 bytes [19:25:29]NVStorageSaveData done [19:25:29]OFDSenderStorePacket done [19:25:29]KKMCreateOFDPacket done [19:25:29]NVStorageSaveData kkm_last_timestamp [19:25:29]File name is /storage/kkm_last_timestamp [19:25:29]Write 4 bytes [19:25:29]NVStorageSaveData done [19:25:29]ExternCall_PrintAddStr [19:25:29]wPrintStart [19:25:29]Write to MH i2c: 01 00 00 99 1D B6 [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: 01 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: 01 07 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: 01 07 00 99 1D 00 00 00 00 00 FF 0F CB [19:25:29]RasterBufferAndPrint [19:25:29]line Счет N : (3)127218 [19:25:29]line ИНН: 02508201610067 [19:25:29]line Контрольно-Кассовый Чек [19:25:29]line ПРОДАЖА [19:25:29]line Товар: 2000036220012 [19:25:29]line Кофе Капучино XL(GABB TRADE) [19:25:29]line 1.000 * 130.00 [19:25:29]line = 130.00 [19:25:29]line НДС 12% НСП 1% [19:25:29]line > о реализуемом товаре [19:25:29]line ИТОГО: 130.00 [19:25:29]line НСП 1% : 1.15 [19:25:29]line НДС 12% : 13.80 [19:25:29]line Наличными: 130.00 [19:25:29]line Безнал.: 0.00 [19:25:29]line Место: АЗС № 163 "Партнер Нефть" [19:25:29]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [19:25:29]line СНО: Общий режим [19:25:29]line Чек 109 20.10.2024 19:25 [19:25:29]line Смена: 526 ФФД: 1.0 [19:25:29]line ЗНМ: 0300000101 [19:25:29]line РНМ: 0000000000091770 [19:25:29]line Версия ККМ: 001 [19:25:29]line ФМ: 0000000000871749 [19:25:29]line ФД: 69819 [19:25:29]line ФПД: 47494916170074 [19:25:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T192531&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69819&fm=47494916170074&tin=02508201610067®Number=0000000000091770&sum=13000 [19:25:30]line 0 [19:25:30]OFD Sender: Processing packet 69819 [packets to send 32, broken 31] [19:25:30]ProducePacketName [19:25:30]name=ofd_packets/00069819 [19:25:30]OFD Sender: To server: pG, [19:25:30]CommunicateWithHost lk.salyk.kg:30040 [19:25:30]ConnectInit lk.salyk.kg [19:25:30]written 0, free lines is 4095 [19:25:30]Connected sock=10 [19:25:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2E 01 00 00 AE BD 26 01 35 7E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 2B 59 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BB 10 01 00 35 04 06 00 2B 32 45 9B 61 5A E4 51 40 BA 2F 55 D3 11 [19:25:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 E3 36 47 00 FB 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 31 37 34 39 10 04 04 00 BB 10 01 00 F4 03 04 00 AD FE 14 67 B6 04 01 00 00 32 89 32 3B 0B 8D A4 41 [19:25:30]CommunicateWithHost err = 0 [19:25:30]CheckOFDResponse [19:25:30]1017 (14) - 77093643461234 [19:25:30]1041 (16) - 0000000000871749 [19:25:30]1040 (4) - 69819 [19:25:30]1012 (4) - 20.10.2024 12:59 [19:25:30]1206 (1) - 0 [19:25:30]OFD Sender: Remove packet 69819 [19:25:30]ProducePacketName [19:25:30]name=ofd_packets/00069819 [19:25:30]NVStorageDeleteData [19:25:30]Write to MH i2c: 01 00 00 C2 1D DF [19:25:30]Write i2c OK [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: 01 [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: 01 07 00 [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: 01 07 00 C2 1D 00 00 00 00 00 F3 0C E5 [19:25:30]RasterBufferAndPrint [19:25:30]line [19:25:30]line [19:25:30]line [19:25:30]line [19:25:30]line [19:25:30]written 0, free lines is 3324 [19:25:30]MH_Cut [19:25:30]Write to MH i2c: D1 01 00 C9 1D 01 B8 [19:25:30]Write i2c OK [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: D1 [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: D1 01 00 [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: D1 01 00 C9 1D 00 B7 [19:25:30]Write to MH i2c: 01 00 00 CA 1D E7 [19:25:30]Write i2c OK [19:25:30]MH_I2C_Read... [19:25:31]OFD Sender: No OFD packet to send [19:25:31]*** Cut start [19:25:31]*** Partial cut [19:25:31]*** CUTSNS_PIN = 1 [19:25:31]*** CUTSNS_PIN = 0 [19:25:31]*** Brake cut motor [19:25:32]Read from MH i2c: 01 [19:25:32]MH_I2C_Read... [19:25:32]*** Stop cut motor [19:25:32]*** Cut end [19:25:32]Read from MH i2c: 01 07 00 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: 01 07 00 CA 1D 00 00 00 00 00 FF 0F FC [19:25:32]process_action close_receipt done [19:25:32]requested_data is exist [19:25:32]produce_requested_data [19:25:32]requested_item fm.sn is exist - process it [19:25:32]wFMCommunicate request_size=4 [19:25:32]MH_SAM_APDU [19:25:32]CAPDU: 80 11 00 00 [19:25:32]Write to MH i2c: E2 08 00 CB 1D 80 11 00 00 00 00 00 00 62 [19:25:32]Write i2c OK [19:25:32]MH_I2C_Read... [19:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:32]Read from MH i2c: E2 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 17 00 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 17 00 CB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 B9 [19:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:25:32]wFMCommunicate OK [19:25:32]requested_item fd.num is exist - process it [19:25:32]SAM_PROTO_GetFieldsCounters [19:25:32]wFMCommunicate request_size=4 [19:25:32]MH_SAM_APDU [19:25:32]CAPDU: 80 13 00 00 [19:25:32]Write to MH i2c: E2 08 00 CC 1D 80 13 00 00 00 00 00 00 65 [19:25:32]Write i2c OK [19:25:32]MH_I2C_Read... [19:25:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:32]Read from MH i2c: E2 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 62 00 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 62 00 CC 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 BB 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [19:25:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 BB 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:32]wFMCommunicate OK [19:25:32]SAM_PROTO_GetFieldsCounters done [19:25:32]requested_item shift.num is exist - process it [19:25:32]requested_item shift.opened is exist - process it [19:25:32]req_shift_opened [19:25:32]FM_GetShiftState [19:25:32]SAM_PROTO_GetShiftState [19:25:32]wFMCommunicate request_size=4 [19:25:32]MH_SAM_APDU [19:25:32]CAPDU: 80 13 01 00 [19:25:32]Write to MH i2c: E2 08 00 CD 1D 80 13 01 00 00 00 00 00 67 [19:25:32]Write i2c OK [19:25:32]MH_I2C_Read... [19:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:32]Read from MH i2c: E2 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 0E 00 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 0E 00 CD 1D 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 F9 [19:25:32]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:25:32]wFMCommunicate OK [19:25:32]SAM_PROTO_GetShiftState done [19:25:32]FM_GetShiftState done [19:25:32]req_shift_opened done [19:25:32]requested_item shift.open_date is exist - process it [19:25:32]req_shift_open_date [19:25:32]req_shift_open_date done [19:25:32]produce_requested_data done [19:25:32]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69819,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [19:25:32]process_action_free close_receipt [19:25:32]json_value_free [19:25:32]json_value_free done [19:25:32]process_json_proto returns [19:25:32]Send response to host [19:25:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69819,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [19:25:32]free response buf [19:25:32]execute_script done [19:25:32]execute_script returns [19:25:32]free content buf [19:25:32]Sock 9.Close socket [19:25:32]Sock 9.Thread stoped [19:25:36]OFD Sender: No OFD packet to send [19:25:41]OFD Sender: No OFD packet to send [19:25:46]OFD Sender: No OFD packet to send [19:25:51]OFD Sender: No OFD packet to send [19:25:56]OFD Sender: No OFD packet to send [19:26:01]OFD Sender: No OFD packet to send [19:26:06]OFD Sender: No OFD packet to send [19:26:11]OFD Sender: No OFD packet to send [19:26:16]OFD Sender: No OFD packet to send [19:26:21]OFD Sender: No OFD packet to send [19:26:26]OFD Sender: No OFD packet to send [19:26:31]OFD Sender: No OFD packet to send [19:26:36]OFD Sender: No OFD packet to send [19:26:41]OFD Sender: No OFD packet to send [19:26:46]OFD Sender: No OFD packet to send [19:26:51]OFD Sender: No OFD packet to send [19:26:56]OFD Sender: No OFD packet to send [19:27:01]OFD Sender: No OFD packet to send [19:27:06]OFD Sender: No OFD packet to send [19:27:11]OFD Sender: No OFD packet to send [19:27:16]OFD Sender: No OFD packet to send [19:27:21]OFD Sender: No OFD packet to send [19:27:26]OFD Sender: No OFD packet to send [19:27:31]OFD Sender: No OFD packet to send [19:27:36]OFD Sender: No OFD packet to send [19:27:41]OFD Sender: No OFD packet to send [19:27:46]OFD Sender: No OFD packet to send [19:27:51]OFD Sender: No OFD packet to send [19:27:56]OFD Sender: No OFD packet to send [19:28:01]OFD Sender: No OFD packet to send [19:28:06]OFD Sender: No OFD packet to send [19:28:11]OFD Sender: No OFD packet to send [19:28:16]OFD Sender: No OFD packet to send [19:28:21]OFD Sender: No OFD packet to send [19:28:26]OFD Sender: No OFD packet to send [19:28:31]OFD Sender: No OFD packet to send [19:28:36]OFD Sender: No OFD packet to send [19:28:41]OFD Sender: No OFD packet to send [19:28:46]OFD Sender: No OFD packet to send [19:28:51]OFD Sender: No OFD packet to send [19:28:56]OFD Sender: No OFD packet to send [19:29:01]OFD Sender: No OFD packet to send [19:29:06]OFD Sender: No OFD packet to send [19:29:11]OFD Sender: No OFD packet to send [19:29:16]OFD Sender: No OFD packet to send [19:29:21]OFD Sender: No OFD packet to send [19:29:26]OFD Sender: No OFD packet to send [19:29:31]OFD Sender: No OFD packet to send [19:29:36]OFD Sender: No OFD packet to send [19:29:41]OFD Sender: No OFD packet to send [19:29:46]OFD Sender: No OFD packet to send [19:29:51]OFD Sender: No OFD packet to send [19:29:56]OFD Sender: No OFD packet to send [19:30:01]OFD Sender: No OFD packet to send [19:30:06]OFD Sender: No OFD packet to send [19:30:11]OFD Sender: No OFD packet to send [19:30:16]OFD Sender: No OFD packet to send [19:30:21]OFD Sender: No OFD packet to send [19:30:26]OFD Sender: No OFD packet to send [19:30:31]OFD Sender: No OFD packet to send [19:30:36]OFD Sender: No OFD packet to send [19:30:41]OFD Sender: No OFD packet to send [19:30:46]OFD Sender: No OFD packet to send [19:30:51]OFD Sender: No OFD packet to send [19:30:56]OFD Sender: No OFD packet to send [19:31:01]OFD Sender: No OFD packet to send [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:48]accept exits with 7 [19:40:48]New connection [19:40:48]New thread 3066629476 created [19:40:48]Thread 3066486116 joined [19:40:48]Waiting for new connection... [19:40:48] Sock 7.Parse request [19:40:48]Sock 7.Check first char [19:40:48]Sock 7.First char is OK [19:40:48]request: POST /json_proto HTTP/1.0 [19:40:48]Method: POST [19:40:48]URL: /json_proto [19:40:48]Method is POST - this is cgi request [19:40:48]url: /json_proto [19:40:48]query_string will be loaded in cgi processing [19:40:48]execute_cgi json_proto POST (null) [19:40:48]execute_cgi path=json_proto method=POST [19:40:48]POST find Content-Length [19:40:48]Host: 172.17.52.196:8080 [19:40:48]Content-Length: 215 [19:40:48]Content-Type: application/json [19:40:48] [19:40:48]POST finish read [19:40:48]Found Content-Length = 215 [19:40:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:48]execute_script... [19:40:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:48]POST & json_proto [19:40:48]process_json_proto [19:40:48]json parsed OK: [19:40:48]protocol is kg_v1.0 [19:40:48]action value=get_value [19:40:48]process_action get_value [19:40:48]cmd_get_value [19:40:48]process_action get_value done [19:40:48]requested_data is exist [19:40:48]produce_requested_data [19:40:48]requested_item kkm.sn is exist - process it [19:40:48]requested_item kkm.ver is exist - process it [19:40:48]requested_item fm.sn is exist - process it [19:40:48]wFMCommunicate request_size=4 [19:40:48]MH_SAM_APDU [19:40:48]CAPDU: 80 11 00 00 [19:40:48]Write to MH i2c: E2 08 00 CE 1D 80 11 00 00 00 00 00 00 65 [19:40:48]Write i2c OK [19:40:48]MH_I2C_Read... [19:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:49]Read from MH i2c: E2 [19:40:49]MH_I2C_Read... [19:40:49]Read from MH i2c: E2 17 00 [19:40:49]MH_I2C_Read... [19:40:49]Read from MH i2c: E2 17 00 CE 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 BC [19:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:40:49]wFMCommunicate OK [19:40:49]requested_item fd.num is exist - process it [19:40:49]SAM_PROTO_GetFieldsCounters [19:40:49]wFMCommunicate request_size=4 [19:40:49]MH_SAM_APDU [19:40:49]CAPDU: 80 13 00 00 [19:40:49]Write to MH i2c: E2 08 00 CF 1D 80 13 00 00 00 00 00 00 68 [19:40:49]Write i2c OK [19:40:49]MH_I2C_Read... [19:40:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:49]Read from MH i2c: E2 [19:40:49]MH_I2C_Read... [19:40:49]Read from MH i2c: E2 62 00 [19:40:49]MH_I2C_Read... [19:40:49]Read from MH i2c: E2 62 00 CF 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 BB 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [19:40: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 BB 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:49]wFMCommunicate OK [19:40:49]SAM_PROTO_GetFieldsCounters done [19:40:49]requested_item shift.num is exist - process it [19:40:49]requested_item shift.opened is exist - process it [19:40:49]req_shift_opened [19:40:49]FM_GetShiftState [19:40:49]SAM_PROTO_GetShiftState [19:40:49]wFMCommunicate request_size=4 [19:40:49]MH_SAM_APDU [19:40:49]CAPDU: 80 13 01 00 [19:40:49]Write to MH i2c: E2 08 00 D0 1D 80 13 01 00 00 00 00 00 6A [19:40:49]Write i2c OK [19:40:49]MH_I2C_Read... [19:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:49]Read from MH i2c: E2 [19:40:49]MH_I2C_Read... [19:40:49]Read from MH i2c: E2 0E 00 [19:40:49]MH_I2C_Read... [19:40:49]Read from MH i2c: E2 0E 00 D0 1D 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 FC [19:40:49]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:40:49]wFMCommunicate OK [19:40:49]SAM_PROTO_GetShiftState done [19:40:49]FM_GetShiftState done [19:40:49]req_shift_opened done [19:40:49]requested_item shift.open_date is exist - process it [19:40:49]req_shift_open_date [19:40:49]req_shift_open_date done [19:40:49]produce_requested_data done [19:40:49]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69819,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [19:40:49]process_action_free get_value [19:40:49]json_value_free [19:40:49]json_value_free done [19:40:49]process_json_proto returns [19:40:49]Send response to host [19:40:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69819,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [19:40:49]free response buf [19:40:49]execute_script done [19:40:49]execute_script returns [19:40:49]free content buf [19:40:49]Sock 7.Close socket [19:40:49]Sock 7.Thread stoped [19:40:49]accept exits with 9 [19:40:49]New connection [19:40:49]New thread 3066486116 created [19:40:49]Thread 3066629476 joined [19:40:49]Waiting for new connection... [19:40:49] Sock 9.Parse request [19:40:49]Sock 9.Check first char [19:40:49]Sock 9.First char is OK [19:40:49]request: POST /json_proto HTTP/1.0 [19:40:49]Method: POST [19:40:49]URL: /json_proto [19:40:49]Method is POST - this is cgi request [19:40:49]url: /json_proto [19:40:49]query_string will be loaded in cgi processing [19:40:49]execute_cgi json_proto POST (null) [19:40:49]execute_cgi path=json_proto method=POST [19:40:49]POST find Content-Length [19:40:49]Host: 172.17.52.196:8080 [19:40:49]Content-Length: 331 [19:40:49]Content-Type: application/json [19:40:49] [19:40:49]POST finish read [19:40:49]Found Content-Length = 331 [19:40:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:40:49]execute_script... [19:40:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:40:49]POST & json_proto [19:40:49]process_json_proto [19:40:49]json parsed OK: [19:40:49]protocol is kg_v1.0 [19:40:49]action value=get_value [19:40:49]process_action get_value [19:40:49]cmd_get_value [19:40:49]process_action get_value done [19:40:49]requested_data is exist [19:40:49]produce_requested_data [19:40:49]requested_item fm.sale.total is exist - process it [19:40:49]SAM_PROTO_GetFMData [19:40:49]wFMCommunicate request_size=4 [19:40:49]MH_SAM_APDU [19:40:49]CAPDU: 80 13 03 00 [19:40:49]Write to MH i2c: E2 08 00 D1 1D 80 13 03 00 00 00 00 00 6D [19:40:49]Write i2c OK [19:40:49]MH_I2C_Read... [19:40:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:40:49]Read from MH i2c: E2 [19:40:49]MH_I2C_Read... [19:40:49]Read from MH i2c: E2 FD 00 [19:40:49]MH_I2C_Read... [19:40:49]Read from MH i2c: E2 FD 00 D1 1D 00 C3 04 85 04 BF 04 6E 04 04 00 9F 0C 01 00 69 04 A1 00 6F 04 04 00 41 0C 01 00 B1 04 04 00 F7 EF 88 78 70 04 04 00 98 3A 9D 67 72 04 04 00 5F B5 EB 10 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 5B 58 CD 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 CC FF 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 87 [19:40:49]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 9F 0C 01 00 69 04 A1 00 6F 04 04 00 41 0C 01 00 B1 04 04 00 F7 EF 88 78 70 04 04 00 98 3A 9D 67 72 04 04 00 5F B5 EB 10 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 5B 58 CD 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 CC FF 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [19:40:49]wFMCommunicate OK [19:40:49]wFMCommunicate request_size=4 [19:40:49]MH_SAM_APDU [19:40:49]CAPDU: 80 17 00 00 [19:40:49]Write to MH i2c: E2 08 00 D2 1D 80 17 00 00 00 00 00 00 6F [19:40:49]Write i2c OK [19:40:49]MH_I2C_Read... [19:40:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:40:50]Read from MH i2c: E2 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: E2 FD 00 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: E2 FD 00 D2 1D 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 73 [19:40:50]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [19:40:50]wFMCommunicate OK [19:40:50]wFMCommunicate request_size=4 [19:40:50]MH_SAM_APDU [19:40:50]CAPDU: 80 17 00 00 [19:40:50]Write to MH i2c: E2 08 00 D3 1D 80 17 00 00 00 00 00 00 70 [19:40:50]Write i2c OK [19:40:50]MH_I2C_Read... [19:40:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:40:50]Read from MH i2c: E2 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: E2 FD 00 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: E2 FD 00 D3 1D 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 8E [19:40:50]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [19:40:50]wFMCommunicate OK [19:40:50]wFMCommunicate request_size=4 [19:40:50]MH_SAM_APDU [19:40:50]CAPDU: 80 17 00 00 [19:40:50]Write to MH i2c: E2 08 00 D4 1D 80 17 00 00 00 00 00 00 71 [19:40:50]Write i2c OK [19:40:50]MH_I2C_Read... [19:40:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:40:50]Read from MH i2c: E2 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: E2 FD 00 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: E2 FD 00 D4 1D 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E3 [19:40:50]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:40:50]wFMCommunicate OK [19:40:50]wFMCommunicate request_size=4 [19:40:50]MH_SAM_APDU [19:40:50]CAPDU: 80 17 00 00 [19:40:50]Write to MH i2c: E2 08 00 D5 1D 80 17 00 00 00 00 00 00 72 [19:40:50]Write i2c OK [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: E2 [19:40:50]MH_I2C_Read... [19:40:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [19:40:50]Read from MH i2c: E2 E0 00 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: E2 E0 00 D5 1D 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5C [19:40:51]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:40:51]wFMCommunicate OK [19:40:51]SAM_PROTO_GetFMData done [19:40:51]requested_item fm.sale_refund.total is exist - process it [19:40:51]requested_item fm.buy.total is exist - process it [19:40:51]requested_item shift.sale.total is exist - process it [19:40:51]SAM_PROTO_GetShiftData [19:40:51]wFMCommunicate request_size=4 [19:40:51]MH_SAM_APDU [19:40:51]CAPDU: 80 13 02 00 [19:40:51]Write to MH i2c: E2 08 00 D6 1D 80 13 02 00 00 00 00 00 71 [19:40:51]Write i2c OK [19:40:51]MH_I2C_Read... [19:40:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:40:51]Read from MH i2c: E2 [19:40:51]MH_I2C_Read... [19:40:51]Read from MH i2c: E2 FD 00 [19:40:51]MH_I2C_Read... [19:40:51]Read from MH i2c: E2 FD 00 D6 1D 00 AE 04 AA 04 AA 04 6E 04 04 00 6D 00 00 00 69 04 9B 00 6F 04 04 00 6D 00 00 00 B1 04 03 00 57 80 2C 70 04 03 00 AC B8 22 72 04 03 00 AB C7 09 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 CA B9 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 C7 64 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 C2 [19:40:51]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 6D 00 00 00 69 04 9B 00 6F 04 04 00 6D 00 00 00 B1 04 03 00 57 80 2C 70 04 03 00 AC B8 22 72 04 03 00 AB C7 09 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 CA B9 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 C7 64 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [19:40:51]wFMCommunicate OK [19:40:51]wFMCommunicate request_size=4 [19:40:51]MH_SAM_APDU [19:40:51]CAPDU: 80 17 00 00 [19:40:51]Write to MH i2c: E2 08 00 D7 1D 80 17 00 00 00 00 00 00 74 [19:40:51]Write i2c OK [19:40:51]MH_I2C_Read... [19:40:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:40:51]Read from MH i2c: E2 [19:40:51]MH_I2C_Read... [19:40:51]Read from MH i2c: E2 FD 00 [19:40:51]MH_I2C_Read... [19:40:51]Read from MH i2c: E2 FD 00 D7 1D 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 96 [19:40:51]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [19:40:51]wFMCommunicate OK [19:40:51]wFMCommunicate request_size=4 [19:40:51]MH_SAM_APDU [19:40:51]CAPDU: 80 17 00 00 [19:40:51]Write to MH i2c: E2 08 00 D8 1D 80 17 00 00 00 00 00 00 75 [19:40:51]Write i2c OK [19:40:51]MH_I2C_Read... [19:40:51]OFD Sender: No OFD packet to send [19:40:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:40:52]Read from MH i2c: E2 [19:40:52]MH_I2C_Read... [19:40:52]Read from MH i2c: E2 FD 00 [19:40:52]MH_I2C_Read... [19:40:52]Read from MH i2c: E2 FD 00 D8 1D 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 2C [19:40:52]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [19:40:52]wFMCommunicate OK [19:40:52]wFMCommunicate request_size=4 [19:40:52]MH_SAM_APDU [19:40:52]CAPDU: 80 17 00 00 [19:40:52]Write to MH i2c: E2 08 00 D9 1D 80 17 00 00 00 00 00 00 76 [19:40:52]Write i2c OK [19:40:52]MH_I2C_Read... [19:40:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:40:52]Read from MH i2c: E2 [19:40:52]MH_I2C_Read... [19:40:52]Read from MH i2c: E2 FD 00 [19:40:52]MH_I2C_Read... [19:40:52]Read from MH i2c: E2 FD 00 D9 1D 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 E8 [19:40:52]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [19:40:52]wFMCommunicate OK [19:40:52]wFMCommunicate request_size=4 [19:40:52]MH_SAM_APDU [19:40:52]CAPDU: 80 17 00 00 [19:40:52]Write to MH i2c: E2 08 00 DA 1D 80 17 00 00 00 00 00 00 77 [19:40:52]Write i2c OK [19:40:52]MH_I2C_Read... [19:40:52]Read from MH i2c: E2 [19:40:52]MH_I2C_Read... [19:40:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [19:40:52]Read from MH i2c: E2 CB 00 [19:40:52]MH_I2C_Read... [19:40:52]Read from MH i2c: E2 CB 00 DA 1D 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 60 [19:40:52]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:40:52]wFMCommunicate OK [19:40:52]SAM_PROTO_GetShiftData done [19:40:52]requested_item shift.sale.total_cash is exist - process it [19:40:52]requested_item shift.sale_refund.total is exist - process it [19:40:52]requested_item shift.sale_refund.total_cash is exist - process it [19:40:52]requested_item shift.buy.total is exist - process it [19:40:52]requested_item shift.buy.total_cash is exist - process it [19:40:52]produce_requested_data done [19:40:52]produce_requested_data return {"fm.sale.total":20222402.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":29164.39,"shift.sale.total_cash":22755.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:40:52]process_action_free get_value [19:40:52]json_value_free [19:40:52]json_value_free done [19:40:52]process_json_proto returns [19:40:52]Send response to host [19:40:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20222402.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":29164.39,"shift.sale.total_cash":22755.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:40:52]free response buf [19:40:52]execute_script done [19:40:52]execute_script returns [19:40:52]free content buf [19:40:52]Sock 9.Close socket [19:40:52]Sock 9.Thread stoped [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:07]accept exits with 7 [19:41:07]New connection [19:41:07]New thread 3066629476 created [19:41:07]Thread 3066486116 joined [19:41:07]Waiting for new connection... [19:41:07] Sock 7.Parse request [19:41:07]Sock 7.Check first char [19:41:07]Sock 7.First char is OK [19:41:07]request: POST /json_proto HTTP/1.0 [19:41:07]Method: POST [19:41:07]URL: /json_proto [19:41:07]Method is POST - this is cgi request [19:41:07]url: /json_proto [19:41:07]query_string will be loaded in cgi processing [19:41:07]execute_cgi json_proto POST (null) [19:41:07]execute_cgi path=json_proto method=POST [19:41:07]POST find Content-Length [19:41:07]Host: 172.17.52.196:8080 [19:41:07]Content-Length: 678 [19:41:07]Content-Type: application/json [19:41:07] [19:41:07]POST finish read [19:41:07]Found Content-Length = 678 [19:41:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1004147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:07]execute_script... [19:41:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1004147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:07]POST & json_proto [19:41:07]process_json_proto [19:41:07]json parsed OK: [19:41:07]protocol is kg_v1.0 [19:41:07]action value=close_receipt [19:41:07]process_action close_receipt [19:41:07]cmd_close_receipt [19:41:07]MH_GetDate [19:41:07]Write to MH i2c: F0 00 00 DB 1D E7 [19:41:07]Write i2c OK [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: F0 [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: F0 09 00 [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: F0 09 00 DB 1D 00 D7 5C 15 67 60 05 E4 66 4E [19:41:07]GetLastDocTimeStamp 1729452331 [19:41:07]current date 1729453271 [19:41:07]FM_GetShiftState [19:41:07]SAM_PROTO_GetShiftState [19:41:07]wFMCommunicate request_size=4 [19:41:07]MH_SAM_APDU [19:41:07]CAPDU: 80 13 01 00 [19:41:07]Write to MH i2c: E2 08 00 DC 1D 80 13 01 00 00 00 00 00 76 [19:41:07]Write i2c OK [19:41:07]MH_I2C_Read... [19:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:07]Read from MH i2c: E2 [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: E2 0E 00 [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: E2 0E 00 DC 1D 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 08 [19:41:07]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:41:07]wFMCommunicate OK [19:41:07]SAM_PROTO_GetShiftState done [19:41:07]FM_GetShiftState done [19:41:07]opened in 1729384380 [19:41:07]opened+sec_in_day 1729470780 [19:41:07]quantity*price = 30038 [19:41:07]sum+1 = 30039 [19:41:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 110 20.10.2024 19:41 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69820 ФПД: 199659065491908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194111&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69820&fm=199659065491908&tin=02508201610067®Number=0000000000091770&sum=30000 [19:41:08]StoreToDocumentArchive [19:41:08]shift 526 fd 69820 [19:41:08]save to /storage/0526/doc_00069820 [19:41:08]save last doc name /storage/0526/doc_00069820 to /storage/kkm_last_doc_name [19:41:08]save OK [19:41:08]Clear old archive folders... [19:41:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:41:08]tlvbuf is B6E720E0 [19:41:08]SAM_PROTO_ClearQueue [19:41:08]wFMCommunicate request_size=4 [19:41:08]MH_SAM_APDU [19:41:08]CAPDU: 80 09 00 00 [19:41:08]Write to MH i2c: E2 08 00 E9 1D 80 09 00 00 00 00 00 00 78 [19:41:08]Write i2c OK [19:41:08]MH_I2C_Read... [19:41:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:08]Read from MH i2c: E2 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 03 00 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 03 00 E9 1D 00 90 00 7A [19:41:08]RAPDU: 90 00 [19:41:08]wFMCommunicate OK [19:41:08]SAM_PROTO_ClearQueue done [19:41:08]KKMCreateOFDPacket [19:41:08]OFDProtocolAddRootSTLVToBuf [19:41:08]FM_MakeSignedData [19:41:08]FM_MakeSignedData [19:41:08]SAM_PROTO_SignData [19:41:08]wFMCommunicate request_size=4 [19:41:08]MH_SAM_APDU [19:41:08]CAPDU: 80 0D 01 02 [19:41:08]Write to MH i2c: E2 08 00 EA 1D 80 0D 01 02 00 00 00 00 80 [19:41:08]Write i2c OK [19:41:08]MH_I2C_Read... [19:41:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:08]Read from MH i2c: E2 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 03 00 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 03 00 EA 1D 00 90 00 7B [19:41:08]RAPDU: 90 00 [19:41:08]wFMCommunicate OK [19:41:08]wFMCommunicate request_size=255 [19:41:08]MH_SAM_APDU [19:41:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D7 5C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BC 10 01 00 35 04 06 00 B5 [19:41:08]Write to MH i2c: E2 02 01 EB 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D7 5C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BC 10 01 00 35 04 06 00 B5 00 00 B2 [19:41:08]Write i2c OK [19:41:08]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 EB 1D 00 90 00 7C [19:41:09]RAPDU: 90 00 [19:41:09]wFMCommunicate OK [19:41:09]wFMCommunicate request_size=10 [19:41:09]MH_SAM_APDU [19:41:09]CAPDU: 80 0D 02 02 05 96 BF AC C1 C4 [19:41:09]Write to MH i2c: E2 0D 00 EC 1D 80 0D 02 02 05 00 96 BF AC C1 C4 00 00 13 [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 EC 1D 00 90 00 7D [19:41:09]RAPDU: 90 00 [19:41:09]wFMCommunicate OK [19:41:09]wFMCommunicate request_size=4 [19:41:09]MH_SAM_APDU [19:41:09]CAPDU: 80 0D 03 02 [19:41:09]Write to MH i2c: E2 08 00 ED 1D 80 0D 03 02 00 00 00 00 85 [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 0B 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 0B 00 ED 1D 00 6D 9B DB 22 FC 73 E1 3E 90 00 19 [19:41:09]RAPDU: 6D 9B DB 22 FC 73 E1 3E 90 00 [19:41:09]wFMCommunicate OK [19:41:09]SAM_PROTO_SignData done [19:41:09]FM_MakeSignedData done [19:41:09]CreateOFDProtocolMessage [19:41:09]wFMCommunicate request_size=4 [19:41:09]MH_SAM_APDU [19:41:09]CAPDU: 80 11 00 00 [19:41:09]Write to MH i2c: E2 08 00 EE 1D 80 11 00 00 00 00 00 00 85 [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 17 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 17 00 EE 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 DC [19:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:41:09]wFMCommunicate OK [19:41:09]CreateOFDProtocolMessage done [19:41:09]OFDSenderStorePacket 69820 [19:41:09]StoreOFDPacket docnum=69820 [19:41:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0F 01 00 00 67 27 07 01 CE E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D7 5C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BC 10 01 00 35 04 06 00 B5 96 BF AC C1 C4 6D 9B DB 22 FC 73 E1 3E [19:41:09]CheckFolder [19:41:09]dirname=/storage/ofd_packets [19:41:09]CheckFolder done [19:41:09]ProducePacketName [19:41:09]name=ofd_packets/00069820 [19:41:09]NVStorageSaveData ofd_packets/00069820 [19:41:09]File name is /storage/ofd_packets/00069820 [19:41:09]Write 301 bytes [19:41:09]NVStorageSaveData done [19:41:09]OFDSenderStorePacket done [19:41:09]KKMCreateOFDPacket done [19:41:09]NVStorageSaveData kkm_last_timestamp [19:41:09]File name is /storage/kkm_last_timestamp [19:41:09]Write 4 bytes [19:41:09]NVStorageSaveData done [19:41:09]ExternCall_PrintAddStr [19:41:09]wPrintStart [19:41:09]Write to MH i2c: 01 00 00 EF 1D 0C [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: 01 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: 01 07 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: 01 07 00 EF 1D 00 00 00 00 00 FF 0F 21 [19:41:09]RasterBufferAndPrint [19:41:09]line Счет N : (1)1004147 [19:41:09]line ИНН: 02508201610067 [19:41:09]line Контрольно-Кассовый Чек [19:41:09]line ПРОДАЖА [19:41:09]line ТРК (МРК, ГНК) : 43 [19:41:09]line Товар: 2710124130 [19:41:09]line Аи-92-К-2 [19:41:09]line 4.490 * 66.90 [19:41:09]line = 300.38 [19:41:09]line НДС 12% НСП 1% [19:41:09]line > о реализуемом товаре [19:41:09]line ОКРУГЛЕНИЕ: -0.38 [19:41:09]line ИТОГО: 300.00 [19:41:09]line Внесено: 300.00 [19:41:09]line СДАЧА: 0.00 [19:41:09]line НСП 1% : 2.66 [19:41:09]line НДС 12% : 31.90 [19:41:09]line Наличными: 300.00 [19:41:09]line Безнал.: 0.00 [19:41:09]line Место: АЗС № 163 "Партнер Нефть" [19:41:09]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [19:41:09]line СНО: Общий режим [19:41:09]line Чек 110 20.10.2024 19:41 [19:41:09]line Смена: 526 ФФД: 1.0 [19:41:09]line ЗНМ: 0300000101 [19:41:09]line РНМ: 0000000000091770 [19:41:09]line Версия ККМ: 001 [19:41:09]line ФМ: 0000000000871749 [19:41:09]line ФД: 69820 [19:41:09]line ФПД: 199659065491908 [19:41:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T194111&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69820&fm=199659065491908&tin=02508201610067®Number=0000000000091770&sum=30000 [19:41:09]OFD Sender: Processing packet 69820 [packets to send 32, broken 31] [19:41:09]ProducePacketName [19:41:09]name=ofd_packets/00069820 [19:41:09]OFD Sender: To server: pG, [19:41:09]CommunicateWithHost lk.salyk.kg:30040 [19:41:09]ConnectInit lk.salyk.kg [19:41:09]written 0, free lines is 4095 [19:41:09]Connected sock=10 [19:41:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0F 01 00 00 67 27 07 01 CE E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 D7 5C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BC 10 01 00 35 04 06 00 B5 96 BF AC C1 C4 6D 9B DB 22 FC 73 E1 3E [19:41:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 2D B0 47 00 3D C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BC 10 01 00 F4 03 04 00 59 02 15 67 B6 04 01 00 00 16 E9 4D 5F EB 1F 80 68 [19:41:09]CommunicateWithHost err = 0 [19:41:09]CheckOFDResponse [19:41:09]1017 (14) - 77093643461234 [19:41:09]1041 (16) - 0000000000871749 [19:41:09]1040 (4) - 69820 [19:41:09]1012 (4) - 20.10.2024 13:15 [19:41:09]1206 (1) - 0 [19:41:09]OFD Sender: Remove packet 69820 [19:41:09]ProducePacketName [19:41:09]name=ofd_packets/00069820 [19:41:09]NVStorageDeleteData [19:41:10]Write to MH i2c: 01 00 00 1A 1E 38 [19:41:10]Write i2c OK [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: 01 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: 01 07 00 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: 01 07 00 1A 1E 00 00 00 00 00 E5 0C 30 [19:41:10]RasterBufferAndPrint [19:41:10]line [19:41:10]line [19:41:10]line [19:41:10]line [19:41:10]line [19:41:10]written 0, free lines is 3307 [19:41:10]MH_Cut [19:41:10]Write to MH i2c: D1 01 00 21 1E 01 11 [19:41:10]Write i2c OK [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: D1 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: D1 01 00 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: D1 01 00 21 1E 00 10 [19:41:10]Write to MH i2c: 01 00 00 22 1E 40 [19:41:10]Write i2c OK [19:41:10]MH_I2C_Read... [19:41:10]OFD Sender: No OFD packet to send [19:41:10]*** Cut start [19:41:10]*** Partial cut [19:41:10]*** CUTSNS_PIN = 1 [19:41:10]*** CUTSNS_PIN = 0 [19:41:11]*** Brake cut motor [19:41:11]Read from MH i2c: 01 [19:41:11]MH_I2C_Read... [19:41:11]*** Stop cut motor [19:41:11]*** Cut end [19:41:11]Read from MH i2c: 01 07 00 [19:41:11]MH_I2C_Read... [19:41:11]Read from MH i2c: 01 07 00 22 1E 00 00 00 00 00 FF 0F 55 [19:41:11]process_action close_receipt done [19:41:11]requested_data is exist [19:41:11]produce_requested_data [19:41:11]requested_item fm.sn is exist - process it [19:41:11]wFMCommunicate request_size=4 [19:41:11]MH_SAM_APDU [19:41:11]CAPDU: 80 11 00 00 [19:41:11]Write to MH i2c: E2 08 00 23 1E 80 11 00 00 00 00 00 00 BB [19:41:11]Write i2c OK [19:41:11]MH_I2C_Read... [19:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:11]Read from MH i2c: E2 [19:41:11]MH_I2C_Read... [19:41:11]Read from MH i2c: E2 17 00 [19:41:11]MH_I2C_Read... [19:41:11]Read from MH i2c: E2 17 00 23 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 12 [19:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:41:11]wFMCommunicate OK [19:41:11]requested_item fd.num is exist - process it [19:41:11]SAM_PROTO_GetFieldsCounters [19:41:11]wFMCommunicate request_size=4 [19:41:11]MH_SAM_APDU [19:41:11]CAPDU: 80 13 00 00 [19:41:11]Write to MH i2c: E2 08 00 24 1E 80 13 00 00 00 00 00 00 BE [19:41:11]Write i2c OK [19:41:11]MH_I2C_Read... [19:41:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:11]Read from MH i2c: E2 [19:41:11]MH_I2C_Read... [19:41:11]Read from MH i2c: E2 62 00 [19:41:11]MH_I2C_Read... [19:41:11]Read from MH i2c: E2 62 00 24 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 BC 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [19:41: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 BC 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:11]wFMCommunicate OK [19:41:11]SAM_PROTO_GetFieldsCounters done [19:41:11]requested_item shift.num is exist - process it [19:41:11]requested_item shift.opened is exist - process it [19:41:11]req_shift_opened [19:41:11]FM_GetShiftState [19:41:11]SAM_PROTO_GetShiftState [19:41:11]wFMCommunicate request_size=4 [19:41:11]MH_SAM_APDU [19:41:11]CAPDU: 80 13 01 00 [19:41:11]Write to MH i2c: E2 08 00 25 1E 80 13 01 00 00 00 00 00 C0 [19:41:11]Write i2c OK [19:41:11]MH_I2C_Read... [19:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:11]Read from MH i2c: E2 [19:41:11]MH_I2C_Read... [19:41:11]Read from MH i2c: E2 0E 00 [19:41:11]MH_I2C_Read... [19:41:11]Read from MH i2c: E2 0E 00 25 1E 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 52 [19:41:11]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:41:11]wFMCommunicate OK [19:41:11]SAM_PROTO_GetShiftState done [19:41:11]FM_GetShiftState done [19:41:11]req_shift_opened done [19:41:11]requested_item shift.open_date is exist - process it [19:41:11]req_shift_open_date [19:41:11]req_shift_open_date done [19:41:11]produce_requested_data done [19:41:11]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69820,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [19:41:11]process_action_free close_receipt [19:41:11]json_value_free [19:41:11]json_value_free done [19:41:11]process_json_proto returns [19:41:11]Send response to host [19:41:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69820,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [19:41:11]free response buf [19:41:11]execute_script done [19:41:11]execute_script returns [19:41:11]free content buf [19:41:11]Sock 7.Close socket [19:41:11]Sock 7.Thread stoped [19:41:15]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:40]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:05]OFD Sender: No OFD packet to send [19:42:10]OFD Sender: No OFD packet to send [19:42:15]OFD Sender: No OFD packet to send [19:42:20]OFD Sender: No OFD packet to send [19:42:25]OFD Sender: No OFD packet to send [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:40]OFD Sender: No OFD packet to send [19:42:45]OFD Sender: No OFD packet to send [19:42:50]OFD Sender: No OFD packet to send [19:42:55]OFD Sender: No OFD packet to send [19:43:00]OFD Sender: No OFD packet to send [19:43:05]OFD Sender: No OFD packet to send [19:43:10]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [19:43:20]OFD Sender: No OFD packet to send [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:45]OFD Sender: No OFD packet to send [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:10]OFD Sender: No OFD packet to send [19:45:15]OFD Sender: No OFD packet to send [19:45:20]OFD Sender: No OFD packet to send [19:45:25]OFD Sender: No OFD packet to send [19:45:30]OFD Sender: No OFD packet to send [19:45:35]OFD Sender: No OFD packet to send [19:45:40]OFD Sender: No OFD packet to send [19:45:45]OFD Sender: No OFD packet to send [19:45:50]OFD Sender: No OFD packet to send [19:45:55]OFD Sender: No OFD packet to send [19:46:00]OFD Sender: No OFD packet to send [19:46:05]OFD Sender: No OFD packet to send [19:46:10]OFD Sender: No OFD packet to send [19:46:15]OFD Sender: No OFD packet to send [19:46:20]OFD Sender: No OFD packet to send [19:46:25]OFD Sender: No OFD packet to send [19:46:30]OFD Sender: No OFD packet to send [19:46:35]OFD Sender: No OFD packet to send [19:46:40]OFD Sender: No OFD packet to send [19:46:45]OFD Sender: No OFD packet to send [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:05]OFD Sender: No OFD packet to send [19:47:10]OFD Sender: No OFD packet to send [19:47:15]OFD Sender: No OFD packet to send [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]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]accept exits with 9 [19:50:50]New connection [19:50:50]New thread 3066486116 created [19:50:50]Thread 3066629476 joined [19:50:50]Waiting for new connection... [19:50:50] Sock 9.Parse request [19:50:50]Sock 9.Check first char [19:50:50]Sock 9.First char is OK [19:50:50]request: POST /json_proto HTTP/1.0 [19:50:50]Method: POST [19:50:50]URL: /json_proto [19:50:50]Method is POST - this is cgi request [19:50:50]url: /json_proto [19:50:50]query_string will be loaded in cgi processing [19:50:50]execute_cgi json_proto POST (null) [19:50:50]execute_cgi path=json_proto method=POST [19:50:50]POST find Content-Length [19:50:50]Host: 172.17.52.196:8080 [19:50:50]Content-Length: 781 [19:50:50]Content-Type: application/json [19:50:50] [19:50:50]POST finish read [19:50:50]Found Content-Length = 781 [19:50:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127219", "tax_sys" : 0, "items" : [ { "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:50]execute_script... [19:50:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127219", "tax_sys" : 0, "items" : [ { "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:50]POST & json_proto [19:50:50]process_json_proto [19:50:50]json parsed OK: [19:50:50]protocol is kg_v1.0 [19:50:50]action value=close_receipt [19:50:50]process_action close_receipt [19:50:50]cmd_close_receipt [19:50:50]MH_GetDate [19:50:50]Write to MH i2c: F0 00 00 26 1E 33 [19:50:50]Write i2c OK [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: F0 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: F0 09 00 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: F0 09 00 26 1E 00 1D 5F 15 67 60 05 E4 66 E3 [19:50:50]GetLastDocTimeStamp 1729453271 [19:50:50]current date 1729453853 [19:50:50]FM_GetShiftState [19:50:50]SAM_PROTO_GetShiftState [19:50:50]wFMCommunicate request_size=4 [19:50:50]MH_SAM_APDU [19:50:50]CAPDU: 80 13 01 00 [19:50:50]Write to MH i2c: E2 08 00 27 1E 80 13 01 00 00 00 00 00 C2 [19:50:50]Write i2c OK [19:50:50]MH_I2C_Read... [19:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:50]Read from MH i2c: E2 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: E2 0E 00 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: E2 0E 00 27 1E 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 54 [19:50:50]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:50:50]wFMCommunicate OK [19:50:50]SAM_PROTO_GetShiftState done [19:50:50]FM_GetShiftState done [19:50:50]opened in 1729384380 [19:50:50]opened+sec_in_day 1729470780 [19:50:50]quantity*price = 4500 [19:50:50]sum+1 = 4501 [19:50:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 0.00 Безнал.: 45.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 111 20.10.2024 19:50 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69821 ФПД: 7652108840435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195053&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69821&fm=7652108840435&tin=02508201610067®Number=0000000000091770&sum=4500 0 [19:50:51]StoreToDocumentArchive [19:50:51]shift 526 fd 69821 [19:50:51]save to /storage/0526/doc_00069821 [19:50:51]save last doc name /storage/0526/doc_00069821 to /storage/kkm_last_doc_name [19:50:51]save OK [19:50:51]Clear old archive folders... [19:50:51]ProcessDocumentItem done err = 0, tmpTLVsize=277 [19:50:51]tlvbuf is 009B8210 [19:50:51]SAM_PROTO_ClearQueue [19:50:51]wFMCommunicate request_size=4 [19:50:51]MH_SAM_APDU [19:50:51]CAPDU: 80 09 00 00 [19:50:51]Write to MH i2c: E2 08 00 34 1E 80 09 00 00 00 00 00 00 C4 [19:50:51]Write i2c OK [19:50:51]MH_I2C_Read... [19:50:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:51]Read from MH i2c: E2 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 03 00 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 03 00 34 1E 00 90 00 C6 [19:50:51]RAPDU: 90 00 [19:50:51]wFMCommunicate OK [19:50:51]SAM_PROTO_ClearQueue done [19:50:51]KKMCreateOFDPacket [19:50:51]OFDProtocolAddRootSTLVToBuf [19:50:51]FM_MakeSignedData [19:50:51]FM_MakeSignedData [19:50:51]SAM_PROTO_SignData [19:50:51]wFMCommunicate request_size=4 [19:50:51]MH_SAM_APDU [19:50:51]CAPDU: 80 0D 01 02 [19:50:51]Write to MH i2c: E2 08 00 35 1E 80 0D 01 02 00 00 00 00 CC [19:50:51]Write i2c OK [19:50:51]MH_I2C_Read... [19:50:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:51]Read from MH i2c: E2 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 03 00 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 03 00 35 1E 00 90 00 C7 [19:50:51]RAPDU: 90 00 [19:50:51]wFMCommunicate OK [19:50:51]wFMCommunicate request_size=255 [19:50:51]MH_SAM_APDU [19:50:51]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1D 5F 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 [19:50:51]Write to MH i2c: E2 02 01 36 1E 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1D 5F 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 00 00 D6 [19:50:51]Write i2c OK [19:50:51]MH_I2C_Read... [19:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:51]Read from MH i2c: E2 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 03 00 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 03 00 36 1E 00 90 00 C8 [19:50:51]RAPDU: 90 00 [19:50:51]wFMCommunicate OK [19:50:51]wFMCommunicate request_size=36 [19:50:51]MH_SAM_APDU [19:50:51]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BD 10 01 00 35 04 06 00 06 F5 A5 3A AD F3 [19:50:51]Write to MH i2c: E2 27 00 37 1E 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BD 10 01 00 35 04 06 00 06 F5 A5 3A AD F3 00 00 40 [19:50:51]Write i2c OK [19:50:51]MH_I2C_Read... [19:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:51]Read from MH i2c: E2 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 03 00 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 03 00 37 1E 00 90 00 C9 [19:50:51]RAPDU: 90 00 [19:50:51]wFMCommunicate OK [19:50:51]wFMCommunicate request_size=4 [19:50:51]MH_SAM_APDU [19:50:51]CAPDU: 80 0D 03 02 [19:50:51]Write to MH i2c: E2 08 00 38 1E 80 0D 03 02 00 00 00 00 D1 [19:50:51]Write i2c OK [19:50:51]MH_I2C_Read... [19:50:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:51]Read from MH i2c: E2 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 0B 00 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 0B 00 38 1E 00 FE 00 74 7A 1E 7E 21 C7 90 00 42 [19:50:51]RAPDU: FE 00 74 7A 1E 7E 21 C7 90 00 [19:50:51]wFMCommunicate OK [19:50:51]SAM_PROTO_SignData done [19:50:51]FM_MakeSignedData done [19:50:51]CreateOFDProtocolMessage [19:50:51]wFMCommunicate request_size=4 [19:50:51]MH_SAM_APDU [19:50:51]CAPDU: 80 11 00 00 [19:50:51]Write to MH i2c: E2 08 00 39 1E 80 11 00 00 00 00 00 00 D1 [19:50:51]Write i2c OK [19:50:51]MH_I2C_Read... [19:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:51]Read from MH i2c: E2 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 17 00 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: E2 17 00 39 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 28 [19:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:50:51]wFMCommunicate OK [19:50:51]CreateOFDProtocolMessage done [19:50:51]OFDSenderStorePacket 69821 [19:50:51]StoreOFDPacket docnum=69821 [19:50:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 29 01 00 00 F1 F1 21 01 3A 82 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1D 5F 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BD 10 01 00 35 04 06 00 06 F5 A5 3A AD F3 FE 00 74 7A 1E 7E 21 C7 [19:50:51]CheckFolder [19:50:51]dirname=/storage/ofd_packets [19:50:51]CheckFolder done [19:50:51]ProducePacketName [19:50:51]name=ofd_packets/00069821 [19:50:51]NVStorageSaveData ofd_packets/00069821 [19:50:51]File name is /storage/ofd_packets/00069821 [19:50:51]Write 327 bytes [19:50:51]NVStorageSaveData done [19:50:51]OFDSenderStorePacket done [19:50:51]KKMCreateOFDPacket done [19:50:51]NVStorageSaveData kkm_last_timestamp [19:50:51]File name is /storage/kkm_last_timestamp [19:50:51]Write 4 bytes [19:50:51]NVStorageSaveData done [19:50:52]ExternCall_PrintAddStr [19:50:52]wPrintStart [19:50:52]Write to MH i2c: 01 00 00 3A 1E 58 [19:50:52]Write i2c OK [19:50:52]MH_I2C_Read... [19:50:52]Read from MH i2c: 01 [19:50:52]MH_I2C_Read... [19:50:52]Read from MH i2c: 01 07 00 [19:50:52]MH_I2C_Read... [19:50:52]Read from MH i2c: 01 07 00 3A 1E 00 00 00 00 00 FF 0F 6D [19:50:52]RasterBufferAndPrint [19:50:52]line Счет N : (3)127219 [19:50:52]line ИНН: 02508201610067 [19:50:52]line Контрольно-Кассовый Чек [19:50:52]line ПРОДАЖА [19:50:52]line Товар: 42203100 [19:50:52]line Жев Orbit банан-клубника [19:50:52]line 1.000 * 45.00 [19:50:52]line = 45.00 [19:50:52]line НДС 12% НСП 1% [19:50:52]line > о реализуемом товаре [19:50:52]line ИТОГО: 45.00 [19:50:52]line НСП 1% : 0.40 [19:50:52]line НДС 12% : 4.78 [19:50:52]line Наличными: 0.00 [19:50:52]line Безнал.: 45.00 [19:50:52]line Место: АЗС № 163 "Партнер Нефть" [19:50:52]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [19:50:52]line СНО: Общий режим [19:50:52]line Чек 111 20.10.2024 19:50 [19:50:52]line Смена: 526 ФФД: 1.0 [19:50:52]line ЗНМ: 0300000101 [19:50:52]line РНМ: 0000000000091770 [19:50:52]line Версия ККМ: 001 [19:50:52]line Платежная система: Mbank [19:50:52]line ФМ: 0000000000871749 [19:50:52]line ФД: 69821 [19:50:52]line ФПД: 7652108840435 [19:50:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T195053&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69821&fm=7652108840435&tin=02508201610067®Number=0000000000091770&sum=4500 [19:50:52]OFD Sender: Processing packet 69821 [packets to send 32, broken 31] [19:50:52]ProducePacketName [19:50:52]name=ofd_packets/00069821 [19:50:52]OFD Sender: To server: pG, [19:50:52]CommunicateWithHost lk.salyk.kg:30040 [19:50:52]ConnectInit lk.salyk.kg [19:50:52]line 0 [19:50:52]written 0, free lines is 4095 [19:50:52]Connected sock=10 [19:50:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 29 01 00 00 F1 F1 21 01 3A 82 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1D 5F 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BD 10 01 00 35 04 06 00 06 F5 A5 3A AD F3 FE 00 74 7A 1E 7E 21 C7 [19:50:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 D4 A2 47 00 E6 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BD 10 01 00 F4 03 04 00 9F 04 15 67 B6 04 01 00 00 D6 BF 12 48 E3 32 EA D8 [19:50:52]CommunicateWithHost err = 0 [19:50:52]CheckOFDResponse [19:50:52]1017 (14) - 77093643461234 [19:50:52]1041 (16) - 0000000000871749 [19:50:52]1040 (4) - 69821 [19:50:52]1012 (4) - 20.10.2024 13:24 [19:50:52]1206 (1) - 0 [19:50:52]OFD Sender: Remove packet 69821 [19:50:52]ProducePacketName [19:50:52]name=ofd_packets/00069821 [19:50:52]NVStorageDeleteData [19:50:52]Write to MH i2c: 01 00 00 63 1E 81 [19:50:52]Write i2c OK [19:50:52]MH_I2C_Read... [19:50:52]Read from MH i2c: 01 [19:50:52]MH_I2C_Read... [19:50:52]Read from MH i2c: 01 07 00 [19:50:52]MH_I2C_Read... [19:50:52]Read from MH i2c: 01 07 00 63 1E 00 00 00 00 00 FE 0C 92 [19:50:52]RasterBufferAndPrint [19:50:52]line [19:50:52]line [19:50:52]line [19:50:52]line [19:50:52]line [19:50:52]written 0, free lines is 3332 [19:50:52]MH_Cut [19:50:52]Write to MH i2c: D1 01 00 6A 1E 01 5A [19:50:52]Write i2c OK [19:50:52]MH_I2C_Read... [19:50:52]Read from MH i2c: D1 [19:50:52]MH_I2C_Read... [19:50:52]Read from MH i2c: D1 01 00 [19:50:52]MH_I2C_Read... [19:50:52]Read from MH i2c: D1 01 00 6A 1E 00 59 [19:50:52]Write to MH i2c: 01 00 00 6B 1E 89 [19:50:52]Write i2c OK [19:50:52]MH_I2C_Read... [19:50:53]OFD Sender: No OFD packet to send [19:50:53]*** Cut start [19:50:53]*** Partial cut [19:50:53]*** CUTSNS_PIN = 1 [19:50:53]*** CUTSNS_PIN = 0 [19:50:54]*** Brake cut motor [19:50:54]Read from MH i2c: 01 [19:50:54]MH_I2C_Read... [19:50:54]*** Stop cut motor [19:50:54]*** Cut end [19:50:54]Read from MH i2c: 01 07 00 [19:50:54]MH_I2C_Read... [19:50:54]Read from MH i2c: 01 07 00 6B 1E 00 00 00 00 00 FF 0F 9E [19:50:54]process_action close_receipt done [19:50:54]requested_data is exist [19:50:54]produce_requested_data [19:50:54]requested_item fm.sn is exist - process it [19:50:54]wFMCommunicate request_size=4 [19:50:54]MH_SAM_APDU [19:50:54]CAPDU: 80 11 00 00 [19:50:54]Write to MH i2c: E2 08 00 6C 1E 80 11 00 00 00 00 00 00 04 [19:50:54]Write i2c OK [19:50:54]MH_I2C_Read... [19:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:54]Read from MH i2c: E2 [19:50:54]MH_I2C_Read... [19:50:54]Read from MH i2c: E2 17 00 [19:50:54]MH_I2C_Read... [19:50:54]Read from MH i2c: E2 17 00 6C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 5B [19:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [19:50:54]wFMCommunicate OK [19:50:54]requested_item fd.num is exist - process it [19:50:54]SAM_PROTO_GetFieldsCounters [19:50:54]wFMCommunicate request_size=4 [19:50:54]MH_SAM_APDU [19:50:54]CAPDU: 80 13 00 00 [19:50:54]Write to MH i2c: E2 08 00 6D 1E 80 13 00 00 00 00 00 00 07 [19:50:54]Write i2c OK [19:50:54]MH_I2C_Read... [19:50:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:54]Read from MH i2c: E2 [19:50:54]MH_I2C_Read... [19:50:54]Read from MH i2c: E2 62 00 [19:50:54]MH_I2C_Read... [19:50:54]Read from MH i2c: E2 62 00 6D 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 BD 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [19:50: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 BD 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:54]wFMCommunicate OK [19:50:54]SAM_PROTO_GetFieldsCounters done [19:50:54]requested_item shift.num is exist - process it [19:50:54]requested_item shift.opened is exist - process it [19:50:54]req_shift_opened [19:50:54]FM_GetShiftState [19:50:54]SAM_PROTO_GetShiftState [19:50:54]wFMCommunicate request_size=4 [19:50:54]MH_SAM_APDU [19:50:54]CAPDU: 80 13 01 00 [19:50:54]Write to MH i2c: E2 08 00 6E 1E 80 13 01 00 00 00 00 00 09 [19:50:54]Write i2c OK [19:50:54]MH_I2C_Read... [19:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:54]Read from MH i2c: E2 [19:50:54]MH_I2C_Read... [19:50:54]Read from MH i2c: E2 0E 00 [19:50:54]MH_I2C_Read... [19:50:54]Read from MH i2c: E2 0E 00 6E 1E 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 9B [19:50:54]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [19:50:54]wFMCommunicate OK [19:50:54]SAM_PROTO_GetShiftState done [19:50:54]FM_GetShiftState done [19:50:54]req_shift_opened done [19:50:54]requested_item shift.open_date is exist - process it [19:50:54]req_shift_open_date [19:50:54]req_shift_open_date done [19:50:54]produce_requested_data done [19:50:54]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69821,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [19:50:54]process_action_free close_receipt [19:50:54]json_value_free [19:50:54]json_value_free done [19:50:54]process_json_proto returns [19:50:54]Send response to host [19:50:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69821,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [19:50:54]free response buf [19:50:54]execute_script done [19:50:54]execute_script returns [19:50:54]free content buf [19:50:54]Sock 9.Close socket [19:50:54]Sock 9.Thread stoped [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:58]OFD Sender: No OFD packet to send [19:56:03]OFD Sender: No OFD packet to send [19:56:08]OFD Sender: No OFD packet to send [19:56:13]OFD Sender: No OFD packet to send [19:56:18]OFD Sender: No OFD packet to send [19:56:23]OFD Sender: No OFD packet to send [19:56:28]OFD Sender: No OFD packet to send [19:56:33]OFD Sender: No OFD packet to send [19:56:38]OFD Sender: No OFD packet to send [19:56:43]OFD Sender: No OFD packet to send [19:56:48]OFD Sender: No OFD packet to send [19:56:53]OFD Sender: No OFD packet to send [19:56:58]OFD Sender: No OFD packet to send [19:57:03]OFD Sender: No OFD packet to send [19:57:08]OFD Sender: No OFD packet to send [19:57:13]OFD Sender: No OFD packet to send [19:57:18]OFD Sender: No OFD packet to send [19:57:23]OFD Sender: No OFD packet to send [19:57:28]OFD Sender: No OFD packet to send [19:57:33]OFD Sender: No OFD packet to send [19:57:38]OFD Sender: No OFD packet to send [19:57:43]OFD Sender: No OFD packet to send [19:57:48]OFD Sender: No OFD packet to send [19:57:53]OFD Sender: No OFD packet to send [19:57:58]OFD Sender: No OFD packet to send [19:58:03]OFD Sender: No OFD packet to send [19:58:08]OFD Sender: No OFD packet to send [19:58:13]OFD Sender: No OFD packet to send [19:58:18]OFD Sender: No OFD packet to send [19:58:23]OFD Sender: No OFD packet to send [19:58:28]OFD Sender: No OFD packet to send [19:58:33]OFD Sender: No OFD packet to send [19:58:38]OFD Sender: No OFD packet to send [19:58:43]OFD Sender: No OFD packet to send [19:58:48]OFD Sender: No OFD packet to send [19:58:53]OFD Sender: No OFD packet to send [19:58:58]OFD Sender: No OFD packet to send [19:59:03]OFD Sender: No OFD packet to send [19:59:08]OFD Sender: No OFD packet to send [19:59:13]OFD Sender: No OFD packet to send [19:59:18]OFD Sender: No OFD packet to send [19:59:23]OFD Sender: No OFD packet to send [19:59:28]OFD Sender: No OFD packet to send [19:59:33]OFD Sender: No OFD packet to send [19:59:38]OFD Sender: No OFD packet to send [19:59:43]OFD Sender: No OFD packet to send [19:59:48]OFD Sender: No OFD packet to send [19:59:53]OFD Sender: No OFD packet to send [19:59:58]OFD Sender: No OFD packet to send [20:00:03]OFD Sender: No OFD packet to send [20:00:08]OFD Sender: No OFD packet to send [20:00:13]OFD Sender: No OFD packet to send [20:00:18]OFD Sender: No OFD packet to send [20:00:23]OFD Sender: No OFD packet to send [20:00:28]OFD Sender: No OFD packet to send [20:00:33]OFD Sender: No OFD packet to send [20:00:38]OFD Sender: No OFD packet to send [20:00:43]OFD Sender: No OFD packet to send [20:00:48]OFD Sender: No OFD packet to send [20:00:53]OFD Sender: No OFD packet to send [20:00:58]OFD Sender: No OFD packet to send [20:01:03]OFD Sender: No OFD packet to send [20:01:08]OFD Sender: No OFD packet to send [20:01:13]OFD Sender: No OFD packet to send [20:01:18]OFD Sender: No OFD packet to send [20:01:23]OFD Sender: No OFD packet to send [20:01:28]OFD Sender: No OFD packet to send [20:01:33]OFD Sender: No OFD packet to send [20:01:38]OFD Sender: No OFD packet to send [20:01:43]OFD Sender: No OFD packet to send [20:01:48]OFD Sender: No OFD packet to send [20:01:53]OFD Sender: No OFD packet to send [20:01:58]OFD Sender: No OFD packet to send [20:02:03]OFD Sender: No OFD packet to send [20:02:08]OFD Sender: No OFD packet to send [20:02:13]OFD Sender: No OFD packet to send [20:02:18]OFD Sender: No OFD packet to send [20:02:23]OFD Sender: No OFD packet to send [20:02:28]OFD Sender: No OFD packet to send [20:02:33]OFD Sender: No OFD packet to send [20:02:38]OFD Sender: No OFD packet to send [20:02:43]OFD Sender: No OFD packet to send [20:02:48]OFD Sender: No OFD packet to send [20:02:53]OFD Sender: No OFD packet to send [20:02:58]OFD Sender: No OFD packet to send [20:03:03]OFD Sender: No OFD packet to send [20:03:08]OFD Sender: No OFD packet to send [20:03:13]OFD Sender: No OFD packet to send [20:03:18]OFD Sender: No OFD packet to send [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:03]OFD Sender: No OFD packet to send [20:05:08]OFD Sender: No OFD packet to send [20:05:13]OFD Sender: No OFD packet to send [20:05:18]OFD Sender: No OFD packet to send [20:05:23]OFD Sender: No OFD packet to send [20:05:28]OFD Sender: No OFD packet to send [20:05:33]OFD Sender: No OFD packet to send [20:05:38]OFD Sender: No OFD packet to send [20:05:43]OFD Sender: No OFD packet to send [20:05:48]OFD Sender: No OFD packet to send [20:05:53]OFD Sender: No OFD packet to send [20:05:58]OFD Sender: No OFD packet to send [20:06:03]OFD Sender: No OFD packet to send [20:06:08]OFD Sender: No OFD packet to send [20:06:13]OFD Sender: No OFD packet to send [20:06:18]OFD Sender: No OFD packet to send [20:06:23]OFD Sender: No OFD packet to send [20:06:28]OFD Sender: No OFD packet to send [20:06:33]OFD Sender: No OFD packet to send [20:06:38]OFD Sender: No OFD packet to send [20:06:43]OFD Sender: No OFD packet to send [20:06:48]OFD Sender: No OFD packet to send [20:06:53]OFD Sender: No OFD packet to send [20:06:58]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:27]accept exits with 7 [20:07:27]New connection [20:07:27]New thread 3066629476 created [20:07:27]Thread 3066486116 joined [20:07:27]Waiting for new connection... [20:07:27] Sock 7.Parse request [20:07:27]Sock 7.Check first char [20:07:27]Sock 7.First char is OK [20:07:27]request: POST /json_proto HTTP/1.0 [20:07:27]Method: POST [20:07:27]URL: /json_proto [20:07:27]Method is POST - this is cgi request [20:07:27]url: /json_proto [20:07:27]query_string will be loaded in cgi processing [20:07:27]execute_cgi json_proto POST (null) [20:07:27]execute_cgi path=json_proto method=POST [20:07:27]POST find Content-Length [20:07:27]Host: 172.17.52.196:8080 [20:07:27]Content-Length: 621 [20:07:27]Content-Type: application/json [20:07:27] [20:07:27]POST finish read [20:07:27]Found Content-Length = 621 [20:07:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127220", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:27]execute_script... [20:07:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127220", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:27]POST & json_proto [20:07:27]process_json_proto [20:07:27]json parsed OK: [20:07:27]protocol is kg_v1.0 [20:07:27]action value=close_receipt [20:07:27]process_action close_receipt [20:07:27]cmd_close_receipt [20:07:27]MH_GetDate [20:07:27]Write to MH i2c: F0 00 00 6F 1E 7C [20:07:27]Write i2c OK [20:07:27]MH_I2C_Read... [20:07:27]Read from MH i2c: F0 [20:07:27]MH_I2C_Read... [20:07:27]Read from MH i2c: F0 09 00 [20:07:27]MH_I2C_Read... [20:07:27]Read from MH i2c: F0 09 00 6F 1E 00 03 63 15 67 60 05 E4 66 16 [20:07:27]GetLastDocTimeStamp 1729453853 [20:07:27]current date 1729454851 [20:07:27]FM_GetShiftState [20:07:27]SAM_PROTO_GetShiftState [20:07:27]wFMCommunicate request_size=4 [20:07:27]MH_SAM_APDU [20:07:27]CAPDU: 80 13 01 00 [20:07:27]Write to MH i2c: E2 08 00 70 1E 80 13 01 00 00 00 00 00 0B [20:07:27]Write i2c OK [20:07:27]MH_I2C_Read... [20:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:27]Read from MH i2c: E2 [20:07:27]MH_I2C_Read... [20:07:27]Read from MH i2c: E2 0E 00 [20:07:27]MH_I2C_Read... [20:07:27]Read from MH i2c: E2 0E 00 70 1E 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 9D [20:07:27]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [20:07:27]wFMCommunicate OK [20:07:27]SAM_PROTO_GetShiftState done [20:07:27]FM_GetShiftState done [20:07:27]opened in 1729384380 [20:07:27]opened+sec_in_day 1729470780 [20:07:27]quantity*price = 14400 [20:07:27]sum+1 = 14401 [20:07:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 112 20.10.2024 20:07 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69822 ФПД: 245577546841675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200731&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69822&fm=245577546841675&tin=02508201610067®Number=0000000000091770&sum=14400 0 [20:07:28]StoreToDocumentArchive [20:07:28]shift 526 fd 69822 [20:07:28]save to /storage/0526/doc_00069822 [20:07:28]save last doc name /storage/0526/doc_00069822 to /storage/kkm_last_doc_name [20:07:28]save OK [20:07:28]Clear old archive folders... [20:07:28]ProcessDocumentItem done err = 0, tmpTLVsize=273 [20:07:28]tlvbuf is 009B86D0 [20:07:28]SAM_PROTO_ClearQueue [20:07:28]wFMCommunicate request_size=4 [20:07:28]MH_SAM_APDU [20:07:28]CAPDU: 80 09 00 00 [20:07:28]Write to MH i2c: E2 08 00 7D 1E 80 09 00 00 00 00 00 00 0D [20:07:28]Write i2c OK [20:07:28]MH_I2C_Read... [20:07:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:28]Read from MH i2c: E2 [20:07:28]MH_I2C_Read... [20:07:28]Read from MH i2c: E2 03 00 [20:07:28]MH_I2C_Read... [20:07:28]Read from MH i2c: E2 03 00 7D 1E 00 90 00 0F [20:07:28]RAPDU: 90 00 [20:07:28]wFMCommunicate OK [20:07:28]SAM_PROTO_ClearQueue done [20:07:28]KKMCreateOFDPacket [20:07:28]OFDProtocolAddRootSTLVToBuf [20:07:28]FM_MakeSignedData [20:07:28]FM_MakeSignedData [20:07:28]SAM_PROTO_SignData [20:07:28]wFMCommunicate request_size=4 [20:07:28]MH_SAM_APDU [20:07:28]CAPDU: 80 0D 01 02 [20:07:28]Write to MH i2c: E2 08 00 7E 1E 80 0D 01 02 00 00 00 00 15 [20:07:28]Write i2c OK [20:07:28]MH_I2C_Read... [20:07:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:28]Read from MH i2c: E2 [20:07:28]MH_I2C_Read... [20:07:28]Read from MH i2c: E2 03 00 [20:07:28]MH_I2C_Read... [20:07:28]Read from MH i2c: E2 03 00 7E 1E 00 90 00 10 [20:07:28]RAPDU: 90 00 [20:07:28]wFMCommunicate OK [20:07:28]wFMCommunicate request_size=255 [20:07:28]MH_SAM_APDU [20:07:28]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 03 63 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [20:07:28]Write to MH i2c: E2 02 01 7F 1E 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 03 63 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 CC [20:07:28]Write i2c OK [20:07:28]MH_I2C_Read... [20:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:28]Read from MH i2c: E2 [20:07:28]MH_I2C_Read... [20:07:28]Read from MH i2c: E2 03 00 [20:07:28]MH_I2C_Read... [20:07:28]Read from MH i2c: E2 03 00 7F 1E 00 90 00 11 [20:07:28]RAPDU: 90 00 [20:07:28]wFMCommunicate OK [20:07:28]wFMCommunicate request_size=32 [20:07:28]MH_SAM_APDU [20:07:28]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 BE 10 01 00 35 04 06 00 DF 59 FA 71 BE 4B [20:07:28]Write to MH i2c: E2 23 00 80 1E 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 BE 10 01 00 35 04 06 00 DF 59 FA 71 BE 4B 00 00 F4 [20:07:28]Write i2c OK [20:07:28]MH_I2C_Read... [20:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:29]Read from MH i2c: E2 [20:07:29]MH_I2C_Read... [20:07:29]Read from MH i2c: E2 03 00 [20:07:29]MH_I2C_Read... [20:07:29]Read from MH i2c: E2 03 00 80 1E 00 90 00 12 [20:07:29]RAPDU: 90 00 [20:07:29]wFMCommunicate OK [20:07:29]wFMCommunicate request_size=4 [20:07:29]MH_SAM_APDU [20:07:29]CAPDU: 80 0D 03 02 [20:07:29]Write to MH i2c: E2 08 00 81 1E 80 0D 03 02 00 00 00 00 1A [20:07:29]Write i2c OK [20:07:29]MH_I2C_Read... [20:07:29]OFD Sender: No OFD packet to send [20:07:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:29]Read from MH i2c: E2 [20:07:29]MH_I2C_Read... [20:07:29]Read from MH i2c: E2 0B 00 [20:07:29]MH_I2C_Read... [20:07:29]Read from MH i2c: E2 0B 00 81 1E 00 31 BD E4 C9 48 18 21 5A 90 00 91 [20:07:29]RAPDU: 31 BD E4 C9 48 18 21 5A 90 00 [20:07:29]wFMCommunicate OK [20:07:29]SAM_PROTO_SignData done [20:07:29]FM_MakeSignedData done [20:07:29]CreateOFDProtocolMessage [20:07:29]wFMCommunicate request_size=4 [20:07:29]MH_SAM_APDU [20:07:29]CAPDU: 80 11 00 00 [20:07:29]Write to MH i2c: E2 08 00 82 1E 80 11 00 00 00 00 00 00 1A [20:07:29]Write i2c OK [20:07:29]MH_I2C_Read... [20:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:29]Read from MH i2c: E2 [20:07:29]MH_I2C_Read... [20:07:29]Read from MH i2c: E2 17 00 [20:07:29]MH_I2C_Read... [20:07:29]Read from MH i2c: E2 17 00 82 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 71 [20:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [20:07:29]wFMCommunicate OK [20:07:29]CreateOFDProtocolMessage done [20:07:29]OFDSenderStorePacket 69822 [20:07:29]StoreOFDPacket docnum=69822 [20:07:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 C0 BE 1D 01 D6 6E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 03 63 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BE 10 01 00 35 04 06 00 DF 59 FA 71 BE 4B 31 BD E4 C9 48 18 21 5A [20:07:29]CheckFolder [20:07:29]dirname=/storage/ofd_packets [20:07:29]CheckFolder done [20:07:29]ProducePacketName [20:07:29]name=ofd_packets/00069822 [20:07:29]NVStorageSaveData ofd_packets/00069822 [20:07:29]File name is /storage/ofd_packets/00069822 [20:07:29]Write 323 bytes [20:07:29]NVStorageSaveData done [20:07:29]OFDSenderStorePacket done [20:07:29]KKMCreateOFDPacket done [20:07:29]NVStorageSaveData kkm_last_timestamp [20:07:29]File name is /storage/kkm_last_timestamp [20:07:29]Write 4 bytes [20:07:29]NVStorageSaveData done [20:07:29]ExternCall_PrintAddStr [20:07:29]wPrintStart [20:07:29]Write to MH i2c: 01 00 00 83 1E A1 [20:07:29]Write i2c OK [20:07:29]MH_I2C_Read... [20:07:29]Read from MH i2c: 01 [20:07:29]MH_I2C_Read... [20:07:29]Read from MH i2c: 01 07 00 [20:07:29]MH_I2C_Read... [20:07:29]Read from MH i2c: 01 07 00 83 1E 00 00 00 00 00 FF 0F B6 [20:07:29]RasterBufferAndPrint [20:07:29]line Счет N : (3)127220 [20:07:29]line ИНН: 02508201610067 [20:07:29]line Контрольно-Кассовый Чек [20:07:29]line ПРОДАЖА [20:07:29]line Товар: 48747059 [20:07:29]line Сигареты Winston Legend Blue [20:07:29]line 1.000 * 144.00 [20:07:29]line = 144.00 [20:07:29]line НДС 12% НСП 1% [20:07:29]line > о реализуемом товаре [20:07:29]line ИТОГО: 144.00 [20:07:29]line НСП 1% : 1.27 [20:07:29]line НДС 12% : 15.29 [20:07:29]line Наличными: 144.00 [20:07:29]line Безнал.: 0.00 [20:07:29]line Место: АЗС № 163 "Партнер Нефть" [20:07:29]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [20:07:29]line СНО: Общий режим [20:07:29]line Чек 112 20.10.2024 20:07 [20:07:29]line Смена: 526 ФФД: 1.0 [20:07:29]line ЗНМ: 0300000101 [20:07:29]line РНМ: 0000000000091770 [20:07:29]line Версия ККМ: 001 [20:07:29]line ФМ: 0000000000871749 [20:07:29]line ФД: 69822 [20:07:29]line ФПД: 245577546841675 [20:07:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T200731&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69822&fm=245577546841675&tin=02508201610067®Number=0000000000091770&sum=14400 [20:07:29]line 0 [20:07:29]OFD Sender: Processing packet 69822 [packets to send 32, broken 31] [20:07:29]ProducePacketName [20:07:29]name=ofd_packets/00069822 [20:07:29]written 0, free lines is 4095 [20:07:29]OFD Sender: To server: pG, [20:07:29]CommunicateWithHost lk.salyk.kg:30040 [20:07:29]ConnectInit lk.salyk.kg [20:07:29]Connected sock=10 [20:07:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 C0 BE 1D 01 D6 6E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 03 63 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BE 10 01 00 35 04 06 00 DF 59 FA 71 BE 4B 31 BD E4 C9 48 18 21 5A [20:07:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 0D E8 47 00 57 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BE 10 01 00 F4 03 04 00 85 08 15 67 B6 04 01 00 00 A8 3F 8C FA 43 1A F4 81 [20:07:29]CommunicateWithHost err = 0 [20:07:29]CheckOFDResponse [20:07:29]1017 (14) - 77093643461234 [20:07:29]1041 (16) - 0000000000871749 [20:07:29]1040 (4) - 69822 [20:07:29]1012 (4) - 20.10.2024 13:41 [20:07:29]1206 (1) - 0 [20:07:29]OFD Sender: Remove packet 69822 [20:07:29]ProducePacketName [20:07:29]name=ofd_packets/00069822 [20:07:29]NVStorageDeleteData [20:07:29]Write to MH i2c: 01 00 00 AC 1E CA [20:07:29]Write i2c OK [20:07:29]MH_I2C_Read... [20:07:29]Read from MH i2c: 01 [20:07:29]MH_I2C_Read... [20:07:29]Read from MH i2c: 01 07 00 [20:07:29]MH_I2C_Read... [20:07:29]Read from MH i2c: 01 07 00 AC 1E 00 00 00 00 00 00 0D DE [20:07:29]RasterBufferAndPrint [20:07:29]line [20:07:29]line [20:07:29]line [20:07:29]line [20:07:29]line [20:07:29]written 0, free lines is 3334 [20:07:29]MH_Cut [20:07:29]Write to MH i2c: D1 01 00 B3 1E 01 A3 [20:07:29]Write i2c OK [20:07:29]MH_I2C_Read... [20:07:29]Read from MH i2c: D1 [20:07:29]MH_I2C_Read... [20:07:29]Read from MH i2c: D1 01 00 [20:07:29]MH_I2C_Read... [20:07:29]Read from MH i2c: D1 01 00 B3 1E 00 A2 [20:07:29]Write to MH i2c: 01 00 00 B4 1E D2 [20:07:29]Write i2c OK [20:07:29]MH_I2C_Read... [20:07:30]OFD Sender: No OFD packet to send [20:07:30]*** Cut start [20:07:30]*** Partial cut [20:07:30]*** CUTSNS_PIN = 1 [20:07:30]*** CUTSNS_PIN = 0 [20:07:31]*** Brake cut motor [20:07:31]Read from MH i2c: 01 [20:07:31]MH_I2C_Read... [20:07:31]*** Stop cut motor [20:07:31]*** Cut end [20:07:31]Read from MH i2c: 01 07 00 [20:07:31]MH_I2C_Read... [20:07:31]Read from MH i2c: 01 07 00 B4 1E 00 00 00 00 00 FF 0F E7 [20:07:31]process_action close_receipt done [20:07:31]requested_data is exist [20:07:31]produce_requested_data [20:07:31]requested_item fm.sn is exist - process it [20:07:31]wFMCommunicate request_size=4 [20:07:31]MH_SAM_APDU [20:07:31]CAPDU: 80 11 00 00 [20:07:31]Write to MH i2c: E2 08 00 B5 1E 80 11 00 00 00 00 00 00 4D [20:07:31]Write i2c OK [20:07:31]MH_I2C_Read... [20:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:31]Read from MH i2c: E2 [20:07:31]MH_I2C_Read... [20:07:31]Read from MH i2c: E2 17 00 [20:07:31]MH_I2C_Read... [20:07:31]Read from MH i2c: E2 17 00 B5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 A4 [20:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [20:07:31]wFMCommunicate OK [20:07:31]requested_item fd.num is exist - process it [20:07:31]SAM_PROTO_GetFieldsCounters [20:07:31]wFMCommunicate request_size=4 [20:07:31]MH_SAM_APDU [20:07:31]CAPDU: 80 13 00 00 [20:07:31]Write to MH i2c: E2 08 00 B6 1E 80 13 00 00 00 00 00 00 50 [20:07:31]Write i2c OK [20:07:31]MH_I2C_Read... [20:07:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:31]Read from MH i2c: E2 [20:07:31]MH_I2C_Read... [20:07:31]Read from MH i2c: E2 62 00 [20:07:31]MH_I2C_Read... [20:07:31]Read from MH i2c: E2 62 00 B6 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 BE 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [20:07: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 BE 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:31]wFMCommunicate OK [20:07:31]SAM_PROTO_GetFieldsCounters done [20:07:31]requested_item shift.num is exist - process it [20:07:31]requested_item shift.opened is exist - process it [20:07:31]req_shift_opened [20:07:31]FM_GetShiftState [20:07:31]SAM_PROTO_GetShiftState [20:07:31]wFMCommunicate request_size=4 [20:07:31]MH_SAM_APDU [20:07:31]CAPDU: 80 13 01 00 [20:07:31]Write to MH i2c: E2 08 00 B7 1E 80 13 01 00 00 00 00 00 52 [20:07:31]Write i2c OK [20:07:31]MH_I2C_Read... [20:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:31]Read from MH i2c: E2 [20:07:31]MH_I2C_Read... [20:07:31]Read from MH i2c: E2 0E 00 [20:07:31]MH_I2C_Read... [20:07:31]Read from MH i2c: E2 0E 00 B7 1E 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 E4 [20:07:31]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [20:07:31]wFMCommunicate OK [20:07:31]SAM_PROTO_GetShiftState done [20:07:31]FM_GetShiftState done [20:07:31]req_shift_opened done [20:07:31]requested_item shift.open_date is exist - process it [20:07:31]req_shift_open_date [20:07:31]req_shift_open_date done [20:07:31]produce_requested_data done [20:07:31]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69822,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [20:07:31]process_action_free close_receipt [20:07:31]json_value_free [20:07:31]json_value_free done [20:07:31]process_json_proto returns [20:07:31]Send response to host [20:07:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69822,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [20:07:31]free response buf [20:07:31]execute_script done [20:07:31]execute_script returns [20:07:31]free content buf [20:07:31]Sock 7.Close socket [20:07:31]Sock 7.Thread stoped [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:30]accept exits with 9 [20:11:30]New connection [20:11:30]New thread 3066486116 created [20:11:30]Thread 3066629476 joined [20:11:30]Waiting for new connection... [20:11:30] Sock 9.Parse request [20:11:30]Sock 9.Check first char [20:11:30]Sock 9.First char is OK [20:11:30]request: POST /json_proto HTTP/1.0 [20:11:30]Method: POST [20:11:30]URL: /json_proto [20:11:30]Method is POST - this is cgi request [20:11:30]url: /json_proto [20:11:30]query_string will be loaded in cgi processing [20:11:30]execute_cgi json_proto POST (null) [20:11:30]execute_cgi path=json_proto method=POST [20:11:30]POST find Content-Length [20:11:30]Host: 172.17.52.196:8080 [20:11:30]Content-Length: 1094 [20:11:30]Content-Type: application/json [20:11:30] [20:11:30]POST finish read [20:11:30]Found Content-Length = 1094 [20:11:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127221", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:30]execute_script... [20:11:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127221", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173808", "name": "\u0416\u0435\u0432 Orbit Sweet Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:30]POST & json_proto [20:11:30]process_json_proto [20:11:30]json parsed OK: [20:11:30]protocol is kg_v1.0 [20:11:30]action value=close_receipt [20:11:30]process_action close_receipt [20:11:30]cmd_close_receipt [20:11:30]MH_GetDate [20:11:30]Write to MH i2c: F0 00 00 B8 1E C5 [20:11:30]Write i2c OK [20:11:30]MH_I2C_Read... [20:11:30]Read from MH i2c: F0 [20:11:30]MH_I2C_Read... [20:11:30]Read from MH i2c: F0 09 00 [20:11:30]MH_I2C_Read... [20:11:30]Read from MH i2c: F0 09 00 B8 1E 00 F6 63 15 67 60 05 E4 66 52 [20:11:30]GetLastDocTimeStamp 1729454851 [20:11:30]current date 1729455094 [20:11:30]FM_GetShiftState [20:11:30]SAM_PROTO_GetShiftState [20:11:30]wFMCommunicate request_size=4 [20:11:30]MH_SAM_APDU [20:11:30]CAPDU: 80 13 01 00 [20:11:30]Write to MH i2c: E2 08 00 B9 1E 80 13 01 00 00 00 00 00 54 [20:11:30]Write i2c OK [20:11:30]MH_I2C_Read... [20:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:30]Read from MH i2c: E2 [20:11:30]MH_I2C_Read... [20:11:30]Read from MH i2c: E2 0E 00 [20:11:30]MH_I2C_Read... [20:11:30]Read from MH i2c: E2 0E 00 B9 1E 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 E6 [20:11:30]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [20:11:30]wFMCommunicate OK [20:11:30]SAM_PROTO_GetShiftState done [20:11:30]FM_GetShiftState done [20:11:30]opened in 1729384380 [20:11:30]opened+sec_in_day 1729470780 [20:11:30]quantity*price = 10500 [20:11:30]sum+1 = 10501 [20:11:30]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173808 Жев Orbit Sweet Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.35 НДС 12% : 28.14 Наличными: 265.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 113 20.10.2024 20:11 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69823 ФПД: 278552909348486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201134&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69823&fm=278552909348486&tin=02508201610067®Number=0000000000091770&sum=26500 0 [20:11:31]StoreToDocumentArchive [20:11:31]shift 526 fd 69823 [20:11:31]save to /storage/0526/doc_00069823 [20:11:31]save last doc name /storage/0526/doc_00069823 to /storage/kkm_last_doc_name [20:11:31]save OK [20:11:31]Clear old archive folders... [20:11:31]ProcessDocumentItem done err = 0, tmpTLVsize=476 [20:11:31]tlvbuf is 009B8390 [20:11:31]SAM_PROTO_ClearQueue [20:11:31]wFMCommunicate request_size=4 [20:11:31]MH_SAM_APDU [20:11:31]CAPDU: 80 09 00 00 [20:11:31]Write to MH i2c: E2 08 00 C6 1E 80 09 00 00 00 00 00 00 56 [20:11:31]Write i2c OK [20:11:31]MH_I2C_Read... [20:11:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:31]Read from MH i2c: E2 [20:11:31]MH_I2C_Read... [20:11:31]Read from MH i2c: E2 03 00 [20:11:31]MH_I2C_Read... [20:11:31]Read from MH i2c: E2 03 00 C6 1E 00 90 00 58 [20:11:31]RAPDU: 90 00 [20:11:31]wFMCommunicate OK [20:11:31]SAM_PROTO_ClearQueue done [20:11:31]KKMCreateOFDPacket [20:11:31]OFDProtocolAddRootSTLVToBuf [20:11:31]FM_MakeSignedData [20:11:31]FM_MakeSignedData [20:11:31]SAM_PROTO_SignData [20:11:31]wFMCommunicate request_size=4 [20:11:31]MH_SAM_APDU [20:11:31]CAPDU: 80 0D 01 02 [20:11:31]Write to MH i2c: E2 08 00 C7 1E 80 0D 01 02 00 00 00 00 5E [20:11:31]Write i2c OK [20:11:31]MH_I2C_Read... [20:11:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:31]Read from MH i2c: E2 [20:11:31]MH_I2C_Read... [20:11:31]Read from MH i2c: E2 03 00 [20:11:31]MH_I2C_Read... [20:11:31]Read from MH i2c: E2 03 00 C7 1E 00 90 00 59 [20:11:31]RAPDU: 90 00 [20:11:31]wFMCommunicate OK [20:11:31]wFMCommunicate request_size=255 [20:11:31]MH_SAM_APDU [20:11:31]CAPDU: 80 0D 02 02 FA 03 00 DC 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 [20:11:32]Write to MH i2c: E2 02 01 C8 1E 80 0D 02 02 FA 00 03 00 DC 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 00 00 C7 [20:11:32]Write i2c OK [20:11:32]MH_I2C_Read... [20:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:32]Read from MH i2c: E2 [20:11:32]MH_I2C_Read... [20:11:32]Read from MH i2c: E2 03 00 [20:11:32]MH_I2C_Read... [20:11:32]Read from MH i2c: E2 03 00 C8 1E 00 90 00 5A [20:11:32]RAPDU: 90 00 [20:11:32]wFMCommunicate OK [20:11:32]wFMCommunicate request_size=235 [20:11:32]MH_SAM_APDU [20:11:32]CAPDU: 80 0D 02 02 E6 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 F6 63 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BF 10 01 00 35 04 06 00 FD 57 A7 36 7E 86 [20:11:32]Write to MH i2c: E2 EE 00 C9 1E 80 0D 02 02 E6 00 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 F6 63 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BF 10 01 00 35 04 06 00 FD 57 A7 36 7E 86 00 00 9C [20:11:32]Write i2c OK [20:11:32]MH_I2C_Read... [20:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:32]Read from MH i2c: E2 [20:11:32]MH_I2C_Read... [20:11:32]Read from MH i2c: E2 03 00 [20:11:32]MH_I2C_Read... [20:11:32]Read from MH i2c: E2 03 00 C9 1E 00 90 00 5B [20:11:32]RAPDU: 90 00 [20:11:32]wFMCommunicate OK [20:11:32]wFMCommunicate request_size=4 [20:11:32]MH_SAM_APDU [20:11:32]CAPDU: 80 0D 03 02 [20:11:32]Write to MH i2c: E2 08 00 CA 1E 80 0D 03 02 00 00 00 00 63 [20:11:32]Write i2c OK [20:11:32]MH_I2C_Read... [20:11:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:32]Read from MH i2c: E2 [20:11:32]MH_I2C_Read... [20:11:32]Read from MH i2c: E2 0B 00 [20:11:32]MH_I2C_Read... [20:11:32]Read from MH i2c: E2 0B 00 CA 1E 00 AF 42 5E 4D 0B 8D 3B 6B 90 00 3E [20:11:32]RAPDU: AF 42 5E 4D 0B 8D 3B 6B 90 00 [20:11:32]wFMCommunicate OK [20:11:32]SAM_PROTO_SignData done [20:11:32]FM_MakeSignedData done [20:11:32]CreateOFDProtocolMessage [20:11:32]wFMCommunicate request_size=4 [20:11:32]MH_SAM_APDU [20:11:32]CAPDU: 80 11 00 00 [20:11:32]Write to MH i2c: E2 08 00 CB 1E 80 11 00 00 00 00 00 00 63 [20:11:32]Write i2c OK [20:11:32]MH_I2C_Read... [20:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:32]Read from MH i2c: E2 [20:11:32]MH_I2C_Read... [20:11:32]Read from MH i2c: E2 17 00 [20:11:32]MH_I2C_Read... [20:11:32]Read from MH i2c: E2 17 00 CB 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 BA [20:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [20:11:32]wFMCommunicate OK [20:11:32]CreateOFDProtocolMessage done [20:11:32]OFDSenderStorePacket 69823 [20:11:32]StoreOFDPacket docnum=69823 [20:11:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 F0 01 00 00 95 13 E8 01 A6 4E 5A 03 01 00 03 00 DC 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 F6 63 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BF 10 01 00 35 04 06 00 FD 57 A7 36 7E 86 AF 42 5E 4D 0B 8D 3B 6B [20:11:32]CheckFolder [20:11:32]dirname=/storage/ofd_packets [20:11:32]CheckFolder done [20:11:32]ProducePacketName [20:11:32]name=ofd_packets/00069823 [20:11:32]NVStorageSaveData ofd_packets/00069823 [20:11:32]File name is /storage/ofd_packets/00069823 [20:11:32]Write 526 bytes [20:11:32]NVStorageSaveData done [20:11:32]OFDSenderStorePacket done [20:11:32]KKMCreateOFDPacket done [20:11:32]NVStorageSaveData kkm_last_timestamp [20:11:32]File name is /storage/kkm_last_timestamp [20:11:32]Write 4 bytes [20:11:32]NVStorageSaveData done [20:11:32]ExternCall_PrintAddStr [20:11:32]wPrintStart [20:11:32]Write to MH i2c: 01 00 00 CC 1E EA [20:11:32]Write i2c OK [20:11:32]MH_I2C_Read... [20:11:32]Read from MH i2c: 01 [20:11:32]MH_I2C_Read... [20:11:32]Read from MH i2c: 01 07 00 [20:11:32]MH_I2C_Read... [20:11:32]Read from MH i2c: 01 07 00 CC 1E 00 00 00 00 00 FF 0F FF [20:11:32]RasterBufferAndPrint [20:11:32]line Счет N : (3)127221 [20:11:32]line ИНН: 02508201610067 [20:11:32]line Контрольно-Кассовый Чек [20:11:32]line ПРОДАЖА [20:11:32]line Товар: 2000034730018 [20:11:32]line Кофе Американо (GABB TRADE) [20:11:32]line 1.000 * 105.00 [20:11:32]line = 105.00 [20:11:32]line НДС 12% НСП 1% [20:11:32]line > о реализуемом товаре [20:11:32]line Товар: 2000036240010 [20:11:32]line Кофе Латте (GABB TRADE) [20:11:32]line 1.000 * 115.00 [20:11:32]line = 115.00 [20:11:32]line НДС 12% НСП 1% [20:11:32]line > о реализуемом товаре [20:11:32]line Товар: 50173808 [20:11:32]line Жев Orbit Sweet Mint [20:11:32]line 1.000 * 45.00 [20:11:32]line = 45.00 [20:11:32]line НДС 12% НСП 1% [20:11:32]line > о реализуемом товаре [20:11:32]line ИТОГО: 265.00 [20:11:32]line НСП 1% : 2.35 [20:11:32]line НДС 12% : 28.14 [20:11:32]line Наличными: 265.00 [20:11:32]line Безнал.: 0.00 [20:11:32]line Место: АЗС № 163 "Партнер Нефть" [20:11:32]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [20:11:32]line СНО: Общий режим [20:11:32]line Чек 113 20.10.2024 20:11 [20:11:32]line Смена: 526 ФФД: 1.0 [20:11:32]line ЗНМ: 0300000101 [20:11:32]line РНМ: 0000000000091770 [20:11:32]line Версия ККМ: 001 [20:11:32]line ФМ: 0000000000871749 [20:11:32]line ФД: 69823 [20:11:32]line ФПД: 278552909348486 [20:11:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T201134&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69823&fm=278552909348486&tin=02508201610067®Number=0000000000091770&sum=26500 [20:11:32]line 0 [20:11:32]OFD Sender: Processing packet 69823 [packets to send 32, broken 31] [20:11:32]ProducePacketName [20:11:32]name=ofd_packets/00069823 [20:11:32]OFD Sender: To server: pG, [20:11:32]CommunicateWithHost lk.salyk.kg:30040 [20:11:32]ConnectInit lk.salyk.kg [20:11:32]written 0, free lines is 4095 [20:11:33]Connected sock=10 [20:11:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 F0 01 00 00 95 13 E8 01 A6 4E 5A 03 01 00 03 00 DC 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 38 30 38 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 53 77 65 65 74 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 F6 63 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 BF 10 01 00 35 04 06 00 FD 57 A7 36 7E 86 AF 42 5E 4D 0B 8D 3B 6B [20:11:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 D1 8F 47 00 6F 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 31 37 34 39 10 04 04 00 BF 10 01 00 F4 03 04 00 78 09 15 67 B6 04 01 00 00 4D 3E 33 52 09 64 47 9D [20:11:33]CommunicateWithHost err = 0 [20:11:33]CheckOFDResponse [20:11:33]1017 (14) - 77093643461234 [20:11:33]1041 (16) - 0000000000871749 [20:11:33]1040 (4) - 69823 [20:11:33]1012 (4) - 20.10.2024 13:45 [20:11:33]1206 (1) - 0 [20:11:33]OFD Sender: Remove packet 69823 [20:11:33]ProducePacketName [20:11:33]name=ofd_packets/00069823 [20:11:33]NVStorageDeleteData [20:11:33]Write to MH i2c: 01 00 00 01 1F 20 [20:11:33]Write i2c OK [20:11:33]MH_I2C_Read... [20:11:33]Read from MH i2c: 01 [20:11:33]MH_I2C_Read... [20:11:33]Read from MH i2c: 01 07 00 [20:11:33]MH_I2C_Read... [20:11:33]Read from MH i2c: 01 07 00 01 1F 00 00 00 00 00 4C 0C 7F [20:11:33]RasterBufferAndPrint [20:11:33]line [20:11:33]line [20:11:33]line [20:11:33]line [20:11:33]line [20:11:33]written 0, free lines is 3154 [20:11:33]MH_Cut [20:11:33]Write to MH i2c: D1 01 00 08 1F 01 F9 [20:11:33]Write i2c OK [20:11:33]MH_I2C_Read... [20:11:33]Read from MH i2c: D1 [20:11:33]MH_I2C_Read... [20:11:33]Read from MH i2c: D1 01 00 [20:11:33]MH_I2C_Read... [20:11:33]Read from MH i2c: D1 01 00 08 1F 00 F8 [20:11:33]Write to MH i2c: 01 00 00 09 1F 28 [20:11:33]Write i2c OK [20:11:33]MH_I2C_Read... [20:11:33]OFD Sender: No OFD packet to send [20:11:34]*** Cut start [20:11:34]*** Partial cut [20:11:34]*** CUTSNS_PIN = 1 [20:11:34]*** CUTSNS_PIN = 0 [20:11:34]*** Brake cut motor [20:11:35]Read from MH i2c: 01 [20:11:35]MH_I2C_Read... [20:11:35]*** Stop cut motor [20:11:35]*** Cut end [20:11:35]Read from MH i2c: 01 07 00 [20:11:35]MH_I2C_Read... [20:11:35]Read from MH i2c: 01 07 00 09 1F 00 00 00 00 00 FF 0F 3D [20:11:35]process_action close_receipt done [20:11:35]requested_data is exist [20:11:35]produce_requested_data [20:11:35]requested_item fm.sn is exist - process it [20:11:35]wFMCommunicate request_size=4 [20:11:35]MH_SAM_APDU [20:11:35]CAPDU: 80 11 00 00 [20:11:35]Write to MH i2c: E2 08 00 0A 1F 80 11 00 00 00 00 00 00 A3 [20:11:35]Write i2c OK [20:11:35]MH_I2C_Read... [20:11:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:35]Read from MH i2c: E2 [20:11:35]MH_I2C_Read... [20:11:35]Read from MH i2c: E2 17 00 [20:11:35]MH_I2C_Read... [20:11:35]Read from MH i2c: E2 17 00 0A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 FA [20:11:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [20:11:35]wFMCommunicate OK [20:11:35]requested_item fd.num is exist - process it [20:11:35]SAM_PROTO_GetFieldsCounters [20:11:35]wFMCommunicate request_size=4 [20:11:35]MH_SAM_APDU [20:11:35]CAPDU: 80 13 00 00 [20:11:35]Write to MH i2c: E2 08 00 0B 1F 80 13 00 00 00 00 00 00 A6 [20:11:35]Write i2c OK [20:11:35]MH_I2C_Read... [20:11:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:35]Read from MH i2c: E2 [20:11:35]MH_I2C_Read... [20:11:35]Read from MH i2c: E2 62 00 [20:11:35]MH_I2C_Read... [20:11:35]Read from MH i2c: E2 62 00 0B 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 BF 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [20:11:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 BF 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:11:35]wFMCommunicate OK [20:11:35]SAM_PROTO_GetFieldsCounters done [20:11:35]requested_item shift.num is exist - process it [20:11:35]requested_item shift.opened is exist - process it [20:11:35]req_shift_opened [20:11:35]FM_GetShiftState [20:11:35]SAM_PROTO_GetShiftState [20:11:35]wFMCommunicate request_size=4 [20:11:35]MH_SAM_APDU [20:11:35]CAPDU: 80 13 01 00 [20:11:35]Write to MH i2c: E2 08 00 0C 1F 80 13 01 00 00 00 00 00 A8 [20:11:35]Write i2c OK [20:11:35]MH_I2C_Read... [20:11:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:35]Read from MH i2c: E2 [20:11:35]MH_I2C_Read... [20:11:35]Read from MH i2c: E2 0E 00 [20:11:35]MH_I2C_Read... [20:11:35]Read from MH i2c: E2 0E 00 0C 1F 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 3A [20:11:35]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [20:11:35]wFMCommunicate OK [20:11:35]SAM_PROTO_GetShiftState done [20:11:35]FM_GetShiftState done [20:11:35]req_shift_opened done [20:11:35]requested_item shift.open_date is exist - process it [20:11:35]req_shift_open_date [20:11:35]req_shift_open_date done [20:11:35]produce_requested_data done [20:11:35]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69823,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [20:11:35]process_action_free close_receipt [20:11:35]json_value_free [20:11:35]json_value_free done [20:11:35]process_json_proto returns [20:11:35]Send response to host [20:11:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69823,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [20:11:35]free response buf [20:11:35]execute_script done [20:11:35]execute_script returns [20:11:35]free content buf [20:11:35]Sock 9.Close socket [20:11:35]Sock 9.Thread stoped [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:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:29]int [20:21:29]Write to MH i2c: 01 00 00 0D 1F 2C [20:21:29]*** FLAG_PRN_PAP1 set [20:21:29]Write i2c OK [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: 01 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: 01 07 00 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: 01 07 00 0D 1F 00 01 00 00 00 FF 0F 42 [20:21:29]state=0 [20:21:29]No paper [20:21:29]int [20:21:29]Write to MH i2c: 01 00 00 0E 1F 2D [20:21:29]*** FLAG_PRN_PAP2 set [20:21:29]Write i2c OK [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: 01 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: 01 07 00 [20:21:29]MH_I2C_Read... [20:21:29]Read from MH i2c: 01 07 00 0E 1F 00 03 00 00 00 FF 0F 45 [20:21:29]state=0 [20:21:29]No paper [20:21:29]Cover opened [20:21:30]int [20:21:30]Write to MH i2c: 01 00 00 0F 1F 2E [20:21:30]*** FLAG_PRN_PAP2 reset [20:21:30]Write i2c OK [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: 01 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: 01 07 00 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: 01 07 00 0F 1F 00 01 00 00 00 FF 0F 44 [20:21:30]state=3 [20:21:30]No paper [20:21:30]Cover closed [20:21:30]int [20:21:30]Write to MH i2c: 01 00 00 10 1F 2F [20:21:30]*** FLAG_PRN_PAP2 set [20:21:30]Write i2c OK [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: 01 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: 01 07 00 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: 01 07 00 10 1F 00 03 00 00 00 FF 0F 47 [20:21:30]state=0 [20:21:30]No paper [20:21:30]Cover opened [20:21:30]int [20:21:30]Write to MH i2c: 01 00 00 11 1F 30 [20:21:30]*** FLAG_PRN_PAP2 reset [20:21:30]Write i2c OK [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: 01 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: 01 07 00 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: 01 07 00 11 1F 00 01 00 00 00 FF 0F 46 [20:21:30]state=3 [20:21:30]No paper [20:21:30]Cover closed [20:21:30]int [20:21:30]Write to MH i2c: 01 00 00 12 1F 31 [20:21:30]*** FLAG_PRN_PAP2 set [20:21:30]Write i2c OK [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: 01 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: 01 07 00 [20:21:30]MH_I2C_Read... [20:21:30]Read from MH i2c: 01 07 00 12 1F 00 03 00 00 00 FF 0F 49 [20:21:30]state=0 [20:21:30]No paper [20:21:30]Cover opened [20:21:34]OFD Sender: No OFD packet to send [20:21:35]Write to MH i2c: 01 00 00 13 1F 32 [20:21:35]Write i2c OK [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: 01 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: 01 07 00 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: 01 07 00 13 1F 00 03 00 00 00 FF 0F 4A [20:21:35]state=3 [20:21:35]No paper [20:21:35]Cover opened [20:21:39]OFD Sender: No OFD packet to send [20:21:40]Write to MH i2c: 01 00 00 14 1F 33 [20:21:40]Write i2c OK [20:21:40]MH_I2C_Read... [20:21:40]Read from MH i2c: 01 [20:21:40]MH_I2C_Read... [20:21:40]Read from MH i2c: 01 07 00 [20:21:40]MH_I2C_Read... [20:21:40]Read from MH i2c: 01 07 00 14 1F 00 03 00 00 00 FF 0F 4B [20:21:40]state=3 [20:21:40]No paper [20:21:40]Cover opened [20:21:44]OFD Sender: No OFD packet to send [20:21:45]Write to MH i2c: 01 00 00 15 1F 34 [20:21:45]Write i2c OK [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: 01 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: 01 07 00 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: 01 07 00 15 1F 00 03 00 00 00 FF 0F 4C [20:21:45]state=3 [20:21:45]No paper [20:21:45]Cover opened [20:21:49]OFD Sender: No OFD packet to send [20:21:50]Write to MH i2c: 01 00 00 16 1F 35 [20:21:50]Write i2c OK [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: 01 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: 01 07 00 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: 01 07 00 16 1F 00 03 00 00 00 FF 0F 4D [20:21:50]state=3 [20:21:50]No paper [20:21:50]Cover opened [20:21:54]OFD Sender: No OFD packet to send [20:21:55]Write to MH i2c: 01 00 00 17 1F 36 [20:21:55]Write i2c OK [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: 01 [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: 01 07 00 [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: 01 07 00 17 1F 00 03 00 00 00 FF 0F 4E [20:21:55]state=3 [20:21:55]No paper [20:21:55]Cover opened [20:21:59]OFD Sender: No OFD packet to send [20:22:00]Write to MH i2c: 01 00 00 18 1F 37 [20:22:00]Write i2c OK [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: 01 [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: 01 07 00 [20:22:00]MH_I2C_Read... [20:22:00]Read from MH i2c: 01 07 00 18 1F 00 03 00 00 00 FF 0F 4F [20:22:00]state=3 [20:22:00]No paper [20:22:00]Cover opened [20:22:04]OFD Sender: No OFD packet to send [20:22:05]Write to MH i2c: 01 00 00 19 1F 38 [20:22:05]Write i2c OK [20:22:05]MH_I2C_Read... [20:22:05]Read from MH i2c: 01 [20:22:05]MH_I2C_Read... [20:22:05]Read from MH i2c: 01 07 00 [20:22:05]MH_I2C_Read... [20:22:05]Read from MH i2c: 01 07 00 19 1F 00 03 00 00 00 FF 0F 50 [20:22:05]state=3 [20:22:05]No paper [20:22:05]Cover opened [20:22:09]OFD Sender: No OFD packet to send [20:22:10]Write to MH i2c: 01 00 00 1A 1F 39 [20:22:10]Write i2c OK [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: 01 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: 01 07 00 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: 01 07 00 1A 1F 00 03 00 00 00 FF 0F 51 [20:22:10]state=3 [20:22:10]No paper [20:22:10]Cover opened [20:22:14]OFD Sender: No OFD packet to send [20:22:15]Write to MH i2c: 01 00 00 1B 1F 3A [20:22:15]Write i2c OK [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: 01 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: 01 07 00 [20:22:15]MH_I2C_Read... [20:22:15]Read from MH i2c: 01 07 00 1B 1F 00 03 00 00 00 FF 0F 52 [20:22:15]state=3 [20:22:15]No paper [20:22:15]Cover opened [20:22:19]OFD Sender: No OFD packet to send [20:22:20]Write to MH i2c: 01 00 00 1C 1F 3B [20:22:20]Write i2c OK [20:22:20]MH_I2C_Read... [20:22:20]Read from MH i2c: 01 [20:22:20]MH_I2C_Read... [20:22:20]Read from MH i2c: 01 07 00 [20:22:20]MH_I2C_Read... [20:22:20]Read from MH i2c: 01 07 00 1C 1F 00 03 00 00 00 FF 0F 53 [20:22:20]state=3 [20:22:20]No paper [20:22:20]Cover opened [20:22:24]OFD Sender: No OFD packet to send [20:22:25]Write to MH i2c: 01 00 00 1D 1F 3C [20:22:25]Write i2c OK [20:22:25]MH_I2C_Read... [20:22:25]Read from MH i2c: 01 [20:22:25]MH_I2C_Read... [20:22:25]Read from MH i2c: 01 07 00 [20:22:25]MH_I2C_Read... [20:22:25]Read from MH i2c: 01 07 00 1D 1F 00 03 00 00 00 FF 0F 54 [20:22:25]state=3 [20:22:25]No paper [20:22:25]Cover opened [20:22:29]OFD Sender: No OFD packet to send [20:22:30]Write to MH i2c: 01 00 00 1E 1F 3D [20:22:30]Write i2c OK [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: 01 [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: 01 07 00 [20:22:30]MH_I2C_Read... [20:22:30]Read from MH i2c: 01 07 00 1E 1F 00 03 00 00 00 FF 0F 55 [20:22:30]state=3 [20:22:30]No paper [20:22:30]Cover opened [20:22:34]OFD Sender: No OFD packet to send [20:22:35]Write to MH i2c: 01 00 00 1F 1F 3E [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: 01 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: 01 07 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: 01 07 00 1F 1F 00 03 00 00 00 FF 0F 56 [20:22:35]state=3 [20:22:35]No paper [20:22:35]Cover opened [20:22:39]OFD Sender: No OFD packet to send [20:22:40]Write to MH i2c: 01 00 00 20 1F 3F [20:22:40]Write i2c OK [20:22:40]MH_I2C_Read... [20:22:40]Read from MH i2c: 01 [20:22:40]MH_I2C_Read... [20:22:40]Read from MH i2c: 01 07 00 [20:22:40]MH_I2C_Read... [20:22:40]Read from MH i2c: 01 07 00 20 1F 00 03 00 00 00 FF 0F 57 [20:22:40]state=3 [20:22:40]No paper [20:22:40]Cover opened [20:22:44]OFD Sender: No OFD packet to send [20:22:45]Write to MH i2c: 01 00 00 21 1F 40 [20:22:45]Write i2c OK [20:22:45]MH_I2C_Read... [20:22:45]Read from MH i2c: 01 [20:22:45]MH_I2C_Read... [20:22:45]Read from MH i2c: 01 07 00 [20:22:45]MH_I2C_Read... [20:22:45]Read from MH i2c: 01 07 00 21 1F 00 03 00 00 00 FF 0F 58 [20:22:45]state=3 [20:22:45]No paper [20:22:45]Cover opened [20:22:49]OFD Sender: No OFD packet to send [20:22:50]Write to MH i2c: 01 00 00 22 1F 41 [20:22:50]Write i2c OK [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: 01 [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: 01 07 00 [20:22:50]MH_I2C_Read... [20:22:50]Read from MH i2c: 01 07 00 22 1F 00 03 00 00 00 FF 0F 59 [20:22:50]state=3 [20:22:50]No paper [20:22:50]Cover opened [20:22:54]OFD Sender: No OFD packet to send [20:22:55]Write to MH i2c: 01 00 00 23 1F 42 [20:22:55]Write i2c OK [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: 01 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: 01 07 00 [20:22:55]MH_I2C_Read... [20:22:55]Read from MH i2c: 01 07 00 23 1F 00 03 00 00 00 FF 0F 5A [20:22:55]state=3 [20:22:55]No paper [20:22:55]Cover opened [20:22:59]OFD Sender: No OFD packet to send [20:23:00]Write to MH i2c: 01 00 00 24 1F 43 [20:23:00]Write i2c OK [20:23:00]MH_I2C_Read... [20:23:00]Read from MH i2c: 01 [20:23:00]MH_I2C_Read... [20:23:00]Read from MH i2c: 01 07 00 [20:23:00]MH_I2C_Read... [20:23:00]Read from MH i2c: 01 07 00 24 1F 00 03 00 00 00 FF 0F 5B [20:23:00]state=3 [20:23:00]No paper [20:23:00]Cover opened [20:23:04]OFD Sender: No OFD packet to send [20:23:05]Write to MH i2c: 01 00 00 25 1F 44 [20:23:05]Write i2c OK [20:23:05]MH_I2C_Read... [20:23:05]Read from MH i2c: 01 [20:23:05]MH_I2C_Read... [20:23:05]Read from MH i2c: 01 07 00 [20:23:05]MH_I2C_Read... [20:23:05]Read from MH i2c: 01 07 00 25 1F 00 03 00 00 00 FF 0F 5C [20:23:05]state=3 [20:23:05]No paper [20:23:05]Cover opened [20:23:09]OFD Sender: No OFD packet to send [20:23:10]Write to MH i2c: 01 00 00 26 1F 45 [20:23:10]Write i2c OK [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: 01 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: 01 07 00 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: 01 07 00 26 1F 00 03 00 00 00 FF 0F 5D [20:23:10]state=3 [20:23:10]No paper [20:23:10]Cover opened [20:23:14]OFD Sender: No OFD packet to send [20:23:15]Write to MH i2c: 01 00 00 27 1F 46 [20:23:15]Write i2c OK [20:23:15]MH_I2C_Read... [20:23:15]Read from MH i2c: 01 [20:23:15]MH_I2C_Read... [20:23:15]Read from MH i2c: 01 07 00 [20:23:15]MH_I2C_Read... [20:23:15]Read from MH i2c: 01 07 00 27 1F 00 03 00 00 00 FF 0F 5E [20:23:15]state=3 [20:23:15]No paper [20:23:15]Cover opened [20:23:19]OFD Sender: No OFD packet to send [20:23:20]Write to MH i2c: 01 00 00 28 1F 47 [20:23:20]Write i2c OK [20:23:20]MH_I2C_Read... [20:23:20]Read from MH i2c: 01 [20:23:20]MH_I2C_Read... [20:23:20]Read from MH i2c: 01 07 00 [20:23:20]MH_I2C_Read... [20:23:20]Read from MH i2c: 01 07 00 28 1F 00 03 00 00 00 FF 0F 5F [20:23:20]state=3 [20:23:20]No paper [20:23:20]Cover opened [20:23:24]OFD Sender: No OFD packet to send [20:23:25]Write to MH i2c: 01 00 00 29 1F 48 [20:23:25]Write i2c OK [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: 01 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: 01 07 00 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: 01 07 00 29 1F 00 03 00 00 00 FF 0F 60 [20:23:25]state=3 [20:23:25]No paper [20:23:25]Cover opened [20:23:29]OFD Sender: No OFD packet to send [20:23:30]Write to MH i2c: 01 00 00 2A 1F 49 [20:23:30]Write i2c OK [20:23:30]MH_I2C_Read... [20:23:30]Read from MH i2c: 01 [20:23:30]MH_I2C_Read... [20:23:30]Read from MH i2c: 01 07 00 [20:23:30]MH_I2C_Read... [20:23:30]Read from MH i2c: 01 07 00 2A 1F 00 03 00 00 00 FF 0F 61 [20:23:30]state=3 [20:23:30]No paper [20:23:30]Cover opened [20:23:34]OFD Sender: No OFD packet to send [20:23:35]Write to MH i2c: 01 00 00 2B 1F 4A [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: 01 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: 01 07 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: 01 07 00 2B 1F 00 03 00 00 00 FF 0F 62 [20:23:35]state=3 [20:23:35]No paper [20:23:35]Cover opened [20:23:39]OFD Sender: No OFD packet to send [20:23:40]Write to MH i2c: 01 00 00 2C 1F 4B [20:23:40]Write i2c OK [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: 01 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: 01 07 00 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: 01 07 00 2C 1F 00 03 00 00 00 FF 0F 63 [20:23:40]state=3 [20:23:40]No paper [20:23:40]Cover opened [20:23:44]OFD Sender: No OFD packet to send [20:23:45]Write to MH i2c: 01 00 00 2D 1F 4C [20:23:45]Write i2c OK [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: 01 [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: 01 07 00 [20:23:45]MH_I2C_Read... [20:23:45]Read from MH i2c: 01 07 00 2D 1F 00 03 00 00 00 FF 0F 64 [20:23:45]state=3 [20:23:45]No paper [20:23:45]Cover opened [20:23:49]OFD Sender: No OFD packet to send [20:23:50]Write to MH i2c: 01 00 00 2E 1F 4D [20:23:50]Write i2c OK [20:23:50]MH_I2C_Read... [20:23:50]Read from MH i2c: 01 [20:23:50]MH_I2C_Read... [20:23:50]Read from MH i2c: 01 07 00 [20:23:50]MH_I2C_Read... [20:23:50]Read from MH i2c: 01 07 00 2E 1F 00 03 00 00 00 FF 0F 65 [20:23:50]state=3 [20:23:50]No paper [20:23:50]Cover opened [20:23:54]OFD Sender: No OFD packet to send [20:23:55]Write to MH i2c: 01 00 00 2F 1F 4E [20:23:56]Write i2c OK [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: 01 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: 01 07 00 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: 01 07 00 2F 1F 00 03 00 00 00 FF 0F 66 [20:23:56]state=3 [20:23:56]No paper [20:23:56]Cover opened [20:23:59]OFD Sender: No OFD packet to send [20:24:01]Write to MH i2c: 01 00 00 30 1F 4F [20:24:01]Write i2c OK [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: 01 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: 01 07 00 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: 01 07 00 30 1F 00 03 00 00 00 FF 0F 67 [20:24:01]state=3 [20:24:01]No paper [20:24:01]Cover opened [20:24:04]OFD Sender: No OFD packet to send [20:24:06]Write to MH i2c: 01 00 00 31 1F 50 [20:24:06]Write i2c OK [20:24:06]MH_I2C_Read... [20:24:06]Read from MH i2c: 01 [20:24:06]MH_I2C_Read... [20:24:06]Read from MH i2c: 01 07 00 [20:24:06]MH_I2C_Read... [20:24:06]Read from MH i2c: 01 07 00 31 1F 00 03 00 00 00 FF 0F 68 [20:24:06]state=3 [20:24:06]No paper [20:24:06]Cover opened [20:24:09]OFD Sender: No OFD packet to send [20:24:11]Write to MH i2c: 01 00 00 32 1F 51 [20:24:11]Write i2c OK [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: 01 [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: 01 07 00 [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: 01 07 00 32 1F 00 03 00 00 00 FF 0F 69 [20:24:11]state=3 [20:24:11]No paper [20:24:11]Cover opened [20:24:14]OFD Sender: No OFD packet to send [20:24:16]Write to MH i2c: 01 00 00 33 1F 52 [20:24:16]Write i2c OK [20:24:16]MH_I2C_Read... [20:24:16]Read from MH i2c: 01 [20:24:16]MH_I2C_Read... [20:24:16]Read from MH i2c: 01 07 00 [20:24:16]MH_I2C_Read... [20:24:16]Read from MH i2c: 01 07 00 33 1F 00 03 00 00 00 FF 0F 6A [20:24:16]state=3 [20:24:16]No paper [20:24:16]Cover opened [20:24:19]OFD Sender: No OFD packet to send [20:24:21]Write to MH i2c: 01 00 00 34 1F 53 [20:24:21]Write i2c OK [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: 01 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: 01 07 00 [20:24:21]MH_I2C_Read... [20:24:21]Read from MH i2c: 01 07 00 34 1F 00 03 00 00 00 FF 0F 6B [20:24:21]state=3 [20:24:21]No paper [20:24:21]Cover opened [20:24:24]OFD Sender: No OFD packet to send [20:24:26]Write to MH i2c: 01 00 00 35 1F 54 [20:24:26]Write i2c OK [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: 01 [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: 01 07 00 [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: 01 07 00 35 1F 00 03 00 00 00 FF 0F 6C [20:24:26]state=3 [20:24:26]No paper [20:24:26]Cover opened [20:24:29]OFD Sender: No OFD packet to send [20:24:31]Write to MH i2c: 01 00 00 36 1F 55 [20:24:31]Write i2c OK [20:24:31]MH_I2C_Read... [20:24:31]Read from MH i2c: 01 [20:24:31]MH_I2C_Read... [20:24:31]Read from MH i2c: 01 07 00 [20:24:31]MH_I2C_Read... [20:24:31]Read from MH i2c: 01 07 00 36 1F 00 03 00 00 00 FF 0F 6D [20:24:31]state=3 [20:24:31]No paper [20:24:31]Cover opened [20:24:34]OFD Sender: No OFD packet to send [20:24:36]Write to MH i2c: 01 00 00 37 1F 56 [20:24:36]Write i2c OK [20:24:36]MH_I2C_Read... [20:24:36]Read from MH i2c: 01 [20:24:36]MH_I2C_Read... [20:24:36]Read from MH i2c: 01 07 00 [20:24:36]MH_I2C_Read... [20:24:36]Read from MH i2c: 01 07 00 37 1F 00 03 00 00 00 FF 0F 6E [20:24:36]state=3 [20:24:36]No paper [20:24:36]Cover opened [20:24:39]OFD Sender: No OFD packet to send [20:24:41]Write to MH i2c: 01 00 00 38 1F 57 [20:24:41]Write i2c OK [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: 01 [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: 01 07 00 [20:24:41]MH_I2C_Read... [20:24:41]Read from MH i2c: 01 07 00 38 1F 00 03 00 00 00 FF 0F 6F [20:24:41]state=3 [20:24:41]No paper [20:24:41]Cover opened [20:24:44]OFD Sender: No OFD packet to send [20:24:46]Write to MH i2c: 01 00 00 39 1F 58 [20:24:46]Write i2c OK [20:24:46]MH_I2C_Read... [20:24:46]Read from MH i2c: 01 [20:24:46]MH_I2C_Read... [20:24:46]Read from MH i2c: 01 07 00 [20:24:46]MH_I2C_Read... [20:24:46]Read from MH i2c: 01 07 00 39 1F 00 03 00 00 00 FF 0F 70 [20:24:46]state=3 [20:24:46]No paper [20:24:46]Cover opened [20:24:49]OFD Sender: No OFD packet to send [20:24:51]Write to MH i2c: 01 00 00 3A 1F 59 [20:24:51]Write i2c OK [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: 01 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: 01 07 00 [20:24:51]MH_I2C_Read... [20:24:51]Read from MH i2c: 01 07 00 3A 1F 00 03 00 00 00 FF 0F 71 [20:24:51]state=3 [20:24:51]No paper [20:24:51]Cover opened [20:24:54]OFD Sender: No OFD packet to send [20:24:56]Write to MH i2c: 01 00 00 3B 1F 5A [20:24:56]Write i2c OK [20:24:56]MH_I2C_Read... [20:24:56]Read from MH i2c: 01 [20:24:56]MH_I2C_Read... [20:24:56]Read from MH i2c: 01 07 00 [20:24:56]MH_I2C_Read... [20:24:56]Read from MH i2c: 01 07 00 3B 1F 00 03 00 00 00 FF 0F 72 [20:24:56]state=3 [20:24:56]No paper [20:24:56]Cover opened [20:24:59]OFD Sender: No OFD packet to send [20:25:01]Write to MH i2c: 01 00 00 3C 1F 5B [20:25:01]Write i2c OK [20:25:01]MH_I2C_Read... [20:25:01]Read from MH i2c: 01 [20:25:01]MH_I2C_Read... [20:25:01]Read from MH i2c: 01 07 00 [20:25:01]MH_I2C_Read... [20:25:01]Read from MH i2c: 01 07 00 3C 1F 00 03 00 00 00 FF 0F 73 [20:25:01]state=3 [20:25:01]No paper [20:25:01]Cover opened [20:25:04]OFD Sender: No OFD packet to send [20:25:06]Write to MH i2c: 01 00 00 3D 1F 5C [20:25:06]Write i2c OK [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: 01 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: 01 07 00 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: 01 07 00 3D 1F 00 03 00 00 00 FF 0F 74 [20:25:06]state=3 [20:25:06]No paper [20:25:06]Cover opened [20:25:09]OFD Sender: No OFD packet to send [20:25:11]Write to MH i2c: 01 00 00 3E 1F 5D [20:25:11]Write i2c OK [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: 01 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: 01 07 00 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: 01 07 00 3E 1F 00 03 00 00 00 FF 0F 75 [20:25:11]state=3 [20:25:11]No paper [20:25:11]Cover opened [20:25:14]OFD Sender: No OFD packet to send [20:25:16]Write to MH i2c: 01 00 00 3F 1F 5E [20:25:16]Write i2c OK [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: 01 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: 01 07 00 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: 01 07 00 3F 1F 00 03 00 00 00 FF 0F 76 [20:25:16]state=3 [20:25:16]No paper [20:25:16]Cover opened [20:25:19]OFD Sender: No OFD packet to send [20:25:21]Write to MH i2c: 01 00 00 40 1F 5F [20:25:21]Write i2c OK [20:25:21]MH_I2C_Read... [20:25:21]Read from MH i2c: 01 [20:25:21]MH_I2C_Read... [20:25:21]Read from MH i2c: 01 07 00 [20:25:21]MH_I2C_Read... [20:25:21]Read from MH i2c: 01 07 00 40 1F 00 03 00 00 00 FF 0F 77 [20:25:21]state=3 [20:25:21]No paper [20:25:21]Cover opened [20:25:24]OFD Sender: No OFD packet to send [20:25:26]Write to MH i2c: 01 00 00 41 1F 60 [20:25:26]Write i2c OK [20:25:26]MH_I2C_Read... [20:25:26]Read from MH i2c: 01 [20:25:26]MH_I2C_Read... [20:25:26]Read from MH i2c: 01 07 00 [20:25:26]MH_I2C_Read... [20:25:26]Read from MH i2c: 01 07 00 41 1F 00 03 00 00 00 FF 0F 78 [20:25:26]state=3 [20:25:26]No paper [20:25:26]Cover opened [20:25:29]OFD Sender: No OFD packet to send [20:25:31]Write to MH i2c: 01 00 00 42 1F 61 [20:25:31]Write i2c OK [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: 01 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: 01 07 00 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: 01 07 00 42 1F 00 03 00 00 00 FF 0F 79 [20:25:31]state=3 [20:25:31]No paper [20:25:31]Cover opened [20:25:34]OFD Sender: No OFD packet to send [20:25:36]Write to MH i2c: 01 00 00 43 1F 62 [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 07 00 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 07 00 43 1F 00 03 00 00 00 FF 0F 7A [20:25:36]state=3 [20:25:36]No paper [20:25:36]Cover opened [20:25:39]OFD Sender: No OFD packet to send [20:25:41]Write to MH i2c: 01 00 00 44 1F 63 [20:25:41]Write i2c OK [20:25:41]MH_I2C_Read... [20:25:41]Read from MH i2c: 01 [20:25:41]MH_I2C_Read... [20:25:41]Read from MH i2c: 01 07 00 [20:25:41]MH_I2C_Read... [20:25:41]Read from MH i2c: 01 07 00 44 1F 00 03 00 00 00 FF 0F 7B [20:25:41]state=3 [20:25:41]No paper [20:25:41]Cover opened [20:25:44]OFD Sender: No OFD packet to send [20:25:46]Write to MH i2c: 01 00 00 45 1F 64 [20:25:46]Write i2c OK [20:25:46]MH_I2C_Read... [20:25:46]Read from MH i2c: 01 [20:25:46]MH_I2C_Read... [20:25:46]Read from MH i2c: 01 07 00 [20:25:46]MH_I2C_Read... [20:25:46]Read from MH i2c: 01 07 00 45 1F 00 03 00 00 00 FF 0F 7C [20:25:46]state=3 [20:25:46]No paper [20:25:46]Cover opened [20:25:49]OFD Sender: No OFD packet to send [20:25:51]Write to MH i2c: 01 00 00 46 1F 65 [20:25:51]Write i2c OK [20:25:51]MH_I2C_Read... [20:25:51]Read from MH i2c: 01 [20:25:51]MH_I2C_Read... [20:25:51]Read from MH i2c: 01 07 00 [20:25:51]MH_I2C_Read... [20:25:51]Read from MH i2c: 01 07 00 46 1F 00 03 00 00 00 FF 0F 7D [20:25:51]state=3 [20:25:51]No paper [20:25:51]Cover opened [20:25:54]OFD Sender: No OFD packet to send [20:25:56]Write to MH i2c: 01 00 00 47 1F 66 [20:25:56]Write i2c OK [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: 01 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: 01 07 00 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: 01 07 00 47 1F 00 03 00 00 00 FF 0F 7E [20:25:56]state=3 [20:25:56]No paper [20:25:56]Cover opened [20:25:59]OFD Sender: No OFD packet to send [20:26:01]Write to MH i2c: 01 00 00 48 1F 67 [20:26:01]Write i2c OK [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: 01 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: 01 07 00 [20:26:01]MH_I2C_Read... [20:26:01]Read from MH i2c: 01 07 00 48 1F 00 03 00 00 00 FF 0F 7F [20:26:01]state=3 [20:26:01]No paper [20:26:01]Cover opened [20:26:04]OFD Sender: No OFD packet to send [20:26:06]Write to MH i2c: 01 00 00 49 1F 68 [20:26:06]Write i2c OK [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: 01 [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: 01 07 00 [20:26:06]MH_I2C_Read... [20:26:06]Read from MH i2c: 01 07 00 49 1F 00 03 00 00 00 FF 0F 80 [20:26:06]state=3 [20:26:06]No paper [20:26:06]Cover opened [20:26:09]OFD Sender: No OFD packet to send [20:26:11]Write to MH i2c: 01 00 00 4A 1F 69 [20:26:11]Write i2c OK [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: 01 [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: 01 07 00 [20:26:11]MH_I2C_Read... [20:26:11]Read from MH i2c: 01 07 00 4A 1F 00 03 00 00 00 FF 0F 81 [20:26:11]state=3 [20:26:11]No paper [20:26:11]Cover opened [20:26:14]OFD Sender: No OFD packet to send [20:26:16]Write to MH i2c: 01 00 00 4B 1F 6A [20:26:16]Write i2c OK [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: 01 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: 01 07 00 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: 01 07 00 4B 1F 00 03 00 00 00 FF 0F 82 [20:26:16]state=3 [20:26:16]No paper [20:26:16]Cover opened [20:26:19]OFD Sender: No OFD packet to send [20:26:21]Write to MH i2c: 01 00 00 4C 1F 6B [20:26:21]Write i2c OK [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: 01 [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: 01 07 00 [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: 01 07 00 4C 1F 00 03 00 00 00 FF 0F 83 [20:26:21]state=3 [20:26:21]No paper [20:26:21]Cover opened [20:26:24]OFD Sender: No OFD packet to send [20:26:26]Write to MH i2c: 01 00 00 4D 1F 6C [20:26:26]Write i2c OK [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: 01 [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: 01 07 00 [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: 01 07 00 4D 1F 00 03 00 00 00 FF 0F 84 [20:26:26]state=3 [20:26:26]No paper [20:26:26]Cover opened [20:26:29]OFD Sender: No OFD packet to send [20:26:31]Write to MH i2c: 01 00 00 4E 1F 6D [20:26:31]Write i2c OK [20:26:31]MH_I2C_Read... [20:26:31]Read from MH i2c: 01 [20:26:31]MH_I2C_Read... [20:26:31]Read from MH i2c: 01 07 00 [20:26:31]MH_I2C_Read... [20:26:31]Read from MH i2c: 01 07 00 4E 1F 00 03 00 00 00 FF 0F 85 [20:26:31]state=3 [20:26:31]No paper [20:26:31]Cover opened [20:26:34]OFD Sender: No OFD packet to send [20:26:36]Write to MH i2c: 01 00 00 4F 1F 6E [20:26:36]Write i2c OK [20:26:36]MH_I2C_Read... [20:26:36]Read from MH i2c: 01 [20:26:36]MH_I2C_Read... [20:26:36]Read from MH i2c: 01 07 00 [20:26:36]MH_I2C_Read... [20:26:36]Read from MH i2c: 01 07 00 4F 1F 00 03 00 00 00 FF 0F 86 [20:26:36]state=3 [20:26:36]No paper [20:26:36]Cover opened [20:26:39]OFD Sender: No OFD packet to send [20:26:41]Write to MH i2c: 01 00 00 50 1F 6F [20:26:41]Write i2c OK [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: 01 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: 01 07 00 [20:26:41]MH_I2C_Read... [20:26:41]Read from MH i2c: 01 07 00 50 1F 00 03 00 00 00 FF 0F 87 [20:26:41]state=3 [20:26:41]No paper [20:26:41]Cover opened [20:26:44]OFD Sender: No OFD packet to send [20:26:46]Write to MH i2c: 01 00 00 51 1F 70 [20:26:46]Write i2c OK [20:26:46]MH_I2C_Read... [20:26:46]Read from MH i2c: 01 [20:26:46]MH_I2C_Read... [20:26:46]Read from MH i2c: 01 07 00 [20:26:46]MH_I2C_Read... [20:26:46]Read from MH i2c: 01 07 00 51 1F 00 03 00 00 00 FF 0F 88 [20:26:46]state=3 [20:26:46]No paper [20:26:46]Cover opened [20:26:49]OFD Sender: No OFD packet to send [20:26:51]Write to MH i2c: 01 00 00 52 1F 71 [20:26:51]Write i2c OK [20:26:51]MH_I2C_Read... [20:26:51]Read from MH i2c: 01 [20:26:51]MH_I2C_Read... [20:26:51]Read from MH i2c: 01 07 00 [20:26:51]MH_I2C_Read... [20:26:51]Read from MH i2c: 01 07 00 52 1F 00 03 00 00 00 FF 0F 89 [20:26:51]state=3 [20:26:51]No paper [20:26:51]Cover opened [20:26:54]OFD Sender: No OFD packet to send [20:26:56]Write to MH i2c: 01 00 00 53 1F 72 [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: 01 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: 01 07 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: 01 07 00 53 1F 00 03 00 00 00 FF 0F 8A [20:26:56]state=3 [20:26:56]No paper [20:26:56]Cover opened [20:26:59]OFD Sender: No OFD packet to send [20:27:01]Write to MH i2c: 01 00 00 54 1F 73 [20:27:01]Write i2c OK [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: 01 [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: 01 07 00 [20:27:01]MH_I2C_Read... [20:27:01]Read from MH i2c: 01 07 00 54 1F 00 03 00 00 00 FF 0F 8B [20:27:01]state=3 [20:27:01]No paper [20:27:01]Cover opened [20:27:04]OFD Sender: No OFD packet to send [20:27:06]Write to MH i2c: 01 00 00 55 1F 74 [20:27:06]Write i2c OK [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: 01 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: 01 07 00 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: 01 07 00 55 1F 00 03 00 00 00 FF 0F 8C [20:27:06]state=3 [20:27:06]No paper [20:27:06]Cover opened [20:27:09]OFD Sender: No OFD packet to send [20:27:11]Write to MH i2c: 01 00 00 56 1F 75 [20:27:11]Write i2c OK [20:27:11]MH_I2C_Read... [20:27:11]Read from MH i2c: 01 [20:27:11]MH_I2C_Read... [20:27:11]Read from MH i2c: 01 07 00 [20:27:11]MH_I2C_Read... [20:27:11]Read from MH i2c: 01 07 00 56 1F 00 03 00 00 00 FF 0F 8D [20:27:11]state=3 [20:27:11]No paper [20:27:11]Cover opened [20:27:14]OFD Sender: No OFD packet to send [20:27:16]Write to MH i2c: 01 00 00 57 1F 76 [20:27:16]Write i2c OK [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: 01 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: 01 07 00 [20:27:16]MH_I2C_Read... [20:27:16]Read from MH i2c: 01 07 00 57 1F 00 03 00 00 00 FF 0F 8E [20:27:16]state=3 [20:27:16]No paper [20:27:16]Cover opened [20:27:19]OFD Sender: No OFD packet to send [20:27:21]Write to MH i2c: 01 00 00 58 1F 77 [20:27:21]Write i2c OK [20:27:21]MH_I2C_Read... [20:27:21]Read from MH i2c: 01 [20:27:21]MH_I2C_Read... [20:27:21]Read from MH i2c: 01 07 00 [20:27:21]MH_I2C_Read... [20:27:21]Read from MH i2c: 01 07 00 58 1F 00 03 00 00 00 FF 0F 8F [20:27:21]state=3 [20:27:21]No paper [20:27:21]Cover opened [20:27:24]OFD Sender: No OFD packet to send [20:27:26]Write to MH i2c: 01 00 00 59 1F 78 [20:27:26]Write i2c OK [20:27:26]MH_I2C_Read... [20:27:26]Read from MH i2c: 01 [20:27:26]MH_I2C_Read... [20:27:26]Read from MH i2c: 01 07 00 [20:27:26]MH_I2C_Read... [20:27:26]Read from MH i2c: 01 07 00 59 1F 00 03 00 00 00 FF 0F 90 [20:27:26]state=3 [20:27:26]No paper [20:27:26]Cover opened [20:27:29]OFD Sender: No OFD packet to send [20:27:31]Write to MH i2c: 01 00 00 5A 1F 79 [20:27:31]Write i2c OK [20:27:31]MH_I2C_Read... [20:27:31]Read from MH i2c: 01 [20:27:31]MH_I2C_Read... [20:27:31]Read from MH i2c: 01 07 00 [20:27:31]MH_I2C_Read... [20:27:31]Read from MH i2c: 01 07 00 5A 1F 00 03 00 00 00 FF 0F 91 [20:27:31]state=3 [20:27:31]No paper [20:27:31]Cover opened [20:27:34]OFD Sender: No OFD packet to send [20:27:36]Write to MH i2c: 01 00 00 5B 1F 7A [20:27:36]Write i2c OK [20:27:36]MH_I2C_Read... [20:27:36]Read from MH i2c: 01 [20:27:36]MH_I2C_Read... [20:27:36]Read from MH i2c: 01 07 00 [20:27:36]MH_I2C_Read... [20:27:36]Read from MH i2c: 01 07 00 5B 1F 00 03 00 00 00 FF 0F 92 [20:27:36]state=3 [20:27:36]No paper [20:27:36]Cover opened [20:27:39]OFD Sender: No OFD packet to send [20:27:41]Write to MH i2c: 01 00 00 5C 1F 7B [20:27:41]Write i2c OK [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: 01 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: 01 07 00 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: 01 07 00 5C 1F 00 03 00 00 00 FF 0F 93 [20:27:41]state=3 [20:27:41]No paper [20:27:41]Cover opened [20:27:44]OFD Sender: No OFD packet to send [20:27:46]Write to MH i2c: 01 00 00 5D 1F 7C [20:27:46]Write i2c OK [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: 01 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: 01 07 00 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: 01 07 00 5D 1F 00 03 00 00 00 FF 0F 94 [20:27:46]state=3 [20:27:46]No paper [20:27:46]Cover opened [20:27:49]OFD Sender: No OFD packet to send [20:27:51]Write to MH i2c: 01 00 00 5E 1F 7D [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: 01 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: 01 07 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: 01 07 00 5E 1F 00 03 00 00 00 FF 0F 95 [20:27:51]state=3 [20:27:51]No paper [20:27:51]Cover opened [20:27:54]OFD Sender: No OFD packet to send [20:27:56]Write to MH i2c: 01 00 00 5F 1F 7E [20:27:56]Write i2c OK [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: 01 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: 01 07 00 [20:27:56]MH_I2C_Read... [20:27:56]Read from MH i2c: 01 07 00 5F 1F 00 03 00 00 00 FF 0F 96 [20:27:56]state=3 [20:27:56]No paper [20:27:56]Cover opened [20:27:59]OFD Sender: No OFD packet to send [20:28:01]Write to MH i2c: 01 00 00 60 1F 7F [20:28:01]Write i2c OK [20:28:01]MH_I2C_Read... [20:28:01]Read from MH i2c: 01 [20:28:01]MH_I2C_Read... [20:28:01]Read from MH i2c: 01 07 00 [20:28:01]MH_I2C_Read... [20:28:01]Read from MH i2c: 01 07 00 60 1F 00 03 00 00 00 FF 0F 97 [20:28:01]state=3 [20:28:01]No paper [20:28:01]Cover opened [20:28:04]OFD Sender: No OFD packet to send [20:28:06]Write to MH i2c: 01 00 00 61 1F 80 [20:28:06]Write i2c OK [20:28:06]MH_I2C_Read... [20:28:06]Read from MH i2c: 01 [20:28:06]MH_I2C_Read... [20:28:06]Read from MH i2c: 01 07 00 [20:28:06]MH_I2C_Read... [20:28:06]Read from MH i2c: 01 07 00 61 1F 00 03 00 00 00 FF 0F 98 [20:28:06]state=3 [20:28:06]No paper [20:28:06]Cover opened [20:28:09]OFD Sender: No OFD packet to send [20:28:11]Write to MH i2c: 01 00 00 62 1F 81 [20:28:11]Write i2c OK [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: 01 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: 01 07 00 [20:28:11]MH_I2C_Read... [20:28:11]Read from MH i2c: 01 07 00 62 1F 00 03 00 00 00 FF 0F 99 [20:28:11]state=3 [20:28:11]No paper [20:28:11]Cover opened [20:28:14]OFD Sender: No OFD packet to send [20:28:16]Write to MH i2c: 01 00 00 63 1F 82 [20:28:16]Write i2c OK [20:28:16]MH_I2C_Read... [20:28:16]Read from MH i2c: 01 [20:28:16]MH_I2C_Read... [20:28:16]Read from MH i2c: 01 07 00 [20:28:16]MH_I2C_Read... [20:28:16]Read from MH i2c: 01 07 00 63 1F 00 03 00 00 00 FF 0F 9A [20:28:16]state=3 [20:28:16]No paper [20:28:16]Cover opened [20:28:19]OFD Sender: No OFD packet to send [20:28:21]Write to MH i2c: 01 00 00 64 1F 83 [20:28:21]Write i2c OK [20:28:21]MH_I2C_Read... [20:28:21]Read from MH i2c: 01 [20:28:21]MH_I2C_Read... [20:28:21]Read from MH i2c: 01 07 00 [20:28:21]MH_I2C_Read... [20:28:21]Read from MH i2c: 01 07 00 64 1F 00 03 00 00 00 FF 0F 9B [20:28:21]state=3 [20:28:21]No paper [20:28:21]Cover opened [20:28:24]OFD Sender: No OFD packet to send [20:28:26]Write to MH i2c: 01 00 00 65 1F 84 [20:28:26]Write i2c OK [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: 01 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: 01 07 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: 01 07 00 65 1F 00 03 00 00 00 FF 0F 9C [20:28:26]state=3 [20:28:26]No paper [20:28:26]Cover opened [20:28:29]OFD Sender: No OFD packet to send [20:28:31]Write to MH i2c: 01 00 00 66 1F 85 [20:28:31]Write i2c OK [20:28:31]MH_I2C_Read... [20:28:31]Read from MH i2c: 01 [20:28:31]MH_I2C_Read... [20:28:31]Read from MH i2c: 01 07 00 [20:28:31]MH_I2C_Read... [20:28:31]Read from MH i2c: 01 07 00 66 1F 00 03 00 00 00 FF 0F 9D [20:28:31]state=3 [20:28:31]No paper [20:28:31]Cover opened [20:28:34]OFD Sender: No OFD packet to send [20:28:36]Write to MH i2c: 01 00 00 67 1F 86 [20:28:36]Write i2c OK [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: 01 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: 01 07 00 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: 01 07 00 67 1F 00 03 00 00 00 FF 0F 9E [20:28:36]state=3 [20:28:36]No paper [20:28:36]Cover opened [20:28:39]OFD Sender: No OFD packet to send [20:28:41]Write to MH i2c: 01 00 00 68 1F 87 [20:28:41]Write i2c OK [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: 01 [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: 01 07 00 [20:28:41]MH_I2C_Read... [20:28:41]Read from MH i2c: 01 07 00 68 1F 00 03 00 00 00 FF 0F 9F [20:28:41]state=3 [20:28:41]No paper [20:28:41]Cover opened [20:28:44]OFD Sender: No OFD packet to send [20:28:46]Write to MH i2c: 01 00 00 69 1F 88 [20:28:46]Write i2c OK [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: 01 [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: 01 07 00 [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: 01 07 00 69 1F 00 03 00 00 00 FF 0F A0 [20:28:46]state=3 [20:28:46]No paper [20:28:46]Cover opened [20:28:49]OFD Sender: No OFD packet to send [20:28:51]Write to MH i2c: 01 00 00 6A 1F 89 [20:28:51]Write i2c OK [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: 01 [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: 01 07 00 [20:28:51]MH_I2C_Read... [20:28:51]Read from MH i2c: 01 07 00 6A 1F 00 03 00 00 00 FF 0F A1 [20:28:51]state=3 [20:28:51]No paper [20:28:51]Cover opened [20:28:54]OFD Sender: No OFD packet to send [20:28:56]Write to MH i2c: 01 00 00 6B 1F 8A [20:28:56]Write i2c OK [20:28:56]MH_I2C_Read... [20:28:56]Read from MH i2c: 01 [20:28:56]MH_I2C_Read... [20:28:56]Read from MH i2c: 01 07 00 [20:28:56]MH_I2C_Read... [20:28:56]Read from MH i2c: 01 07 00 6B 1F 00 03 00 00 00 FF 0F A2 [20:28:56]state=3 [20:28:56]No paper [20:28:56]Cover opened [20:28:59]OFD Sender: No OFD packet to send [20:29:01]Write to MH i2c: 01 00 00 6C 1F 8B [20:29:01]Write i2c OK [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: 01 [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: 01 07 00 [20:29:01]MH_I2C_Read... [20:29:01]Read from MH i2c: 01 07 00 6C 1F 00 03 00 00 00 FF 0F A3 [20:29:01]state=3 [20:29:01]No paper [20:29:01]Cover opened [20:29:04]OFD Sender: No OFD packet to send [20:29:06]Write to MH i2c: 01 00 00 6D 1F 8C [20:29:06]Write i2c OK [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: 01 [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: 01 07 00 [20:29:06]MH_I2C_Read... [20:29:06]Read from MH i2c: 01 07 00 6D 1F 00 03 00 00 00 FF 0F A4 [20:29:06]state=3 [20:29:06]No paper [20:29:06]Cover opened [20:29:09]OFD Sender: No OFD packet to send [20:29:11]Write to MH i2c: 01 00 00 6E 1F 8D [20:29:11]Write i2c OK [20:29:11]MH_I2C_Read... [20:29:11]Read from MH i2c: 01 [20:29:11]MH_I2C_Read... [20:29:11]Read from MH i2c: 01 07 00 [20:29:11]MH_I2C_Read... [20:29:11]Read from MH i2c: 01 07 00 6E 1F 00 03 00 00 00 FF 0F A5 [20:29:11]state=3 [20:29:11]No paper [20:29:11]Cover opened [20:29:14]OFD Sender: No OFD packet to send [20:29:16]Write to MH i2c: 01 00 00 6F 1F 8E [20:29:16]Write i2c OK [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: 01 [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: 01 07 00 [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: 01 07 00 6F 1F 00 03 00 00 00 FF 0F A6 [20:29:16]state=3 [20:29:16]No paper [20:29:16]Cover opened [20:29:19]OFD Sender: No OFD packet to send [20:29:21]Write to MH i2c: 01 00 00 70 1F 8F [20:29:21]Write i2c OK [20:29:21]MH_I2C_Read... [20:29:21]Read from MH i2c: 01 [20:29:21]MH_I2C_Read... [20:29:21]Read from MH i2c: 01 07 00 [20:29:21]MH_I2C_Read... [20:29:21]Read from MH i2c: 01 07 00 70 1F 00 03 00 00 00 FF 0F A7 [20:29:21]state=3 [20:29:21]No paper [20:29:21]Cover opened [20:29:24]OFD Sender: No OFD packet to send [20:29:26]Write to MH i2c: 01 00 00 71 1F 90 [20:29:26]Write i2c OK [20:29:26]MH_I2C_Read... [20:29:26]Read from MH i2c: 01 [20:29:26]MH_I2C_Read... [20:29:26]Read from MH i2c: 01 07 00 [20:29:26]MH_I2C_Read... [20:29:26]Read from MH i2c: 01 07 00 71 1F 00 03 00 00 00 FF 0F A8 [20:29:26]state=3 [20:29:26]No paper [20:29:26]Cover opened [20:29:29]OFD Sender: No OFD packet to send [20:29:31]Write to MH i2c: 01 00 00 72 1F 91 [20:29:31]Write i2c OK [20:29:31]MH_I2C_Read... [20:29:31]Read from MH i2c: 01 [20:29:31]MH_I2C_Read... [20:29:31]Read from MH i2c: 01 07 00 [20:29:31]MH_I2C_Read... [20:29:31]Read from MH i2c: 01 07 00 72 1F 00 03 00 00 00 FF 0F A9 [20:29:31]state=3 [20:29:31]No paper [20:29:31]Cover opened [20:29:34]OFD Sender: No OFD packet to send [20:29:36]Write to MH i2c: 01 00 00 73 1F 92 [20:29:36]Write i2c OK [20:29:36]MH_I2C_Read... [20:29:36]Read from MH i2c: 01 [20:29:36]MH_I2C_Read... [20:29:36]Read from MH i2c: 01 07 00 [20:29:36]MH_I2C_Read... [20:29:36]Read from MH i2c: 01 07 00 73 1F 00 03 00 00 00 FF 0F AA [20:29:36]state=3 [20:29:36]No paper [20:29:36]Cover opened [20:29:39]OFD Sender: No OFD packet to send [20:29:41]Write to MH i2c: 01 00 00 74 1F 93 [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 74 1F 00 03 00 00 00 FF 0F AB [20:29:41]state=3 [20:29:41]No paper [20:29:41]Cover opened [20:29:44]OFD Sender: No OFD packet to send [20:29:46]Write to MH i2c: 01 00 00 75 1F 94 [20:29:46]Write i2c OK [20:29:46]MH_I2C_Read... [20:29:46]Read from MH i2c: 01 [20:29:46]MH_I2C_Read... [20:29:46]Read from MH i2c: 01 07 00 [20:29:46]MH_I2C_Read... [20:29:46]Read from MH i2c: 01 07 00 75 1F 00 03 00 00 00 FF 0F AC [20:29:46]state=3 [20:29:46]No paper [20:29:46]Cover opened [20:29:49]OFD Sender: No OFD packet to send [20:29:51]Write to MH i2c: 01 00 00 76 1F 95 [20:29:51]Write i2c OK [20:29:51]MH_I2C_Read... [20:29:51]Read from MH i2c: 01 [20:29:51]MH_I2C_Read... [20:29:51]Read from MH i2c: 01 07 00 [20:29:51]MH_I2C_Read... [20:29:51]Read from MH i2c: 01 07 00 76 1F 00 03 00 00 00 FF 0F AD [20:29:51]state=3 [20:29:51]No paper [20:29:51]Cover opened [20:29:54]OFD Sender: No OFD packet to send [20:29:56]Write to MH i2c: 01 00 00 77 1F 96 [20:29:56]Write i2c OK [20:29:56]MH_I2C_Read... [20:29:56]Read from MH i2c: 01 [20:29:56]MH_I2C_Read... [20:29:56]Read from MH i2c: 01 07 00 [20:29:56]MH_I2C_Read... [20:29:56]Read from MH i2c: 01 07 00 77 1F 00 03 00 00 00 FF 0F AE [20:29:56]state=3 [20:29:56]No paper [20:29:56]Cover opened [20:29:59]OFD Sender: No OFD packet to send [20:30:01]Write to MH i2c: 01 00 00 78 1F 97 [20:30:01]Write i2c OK [20:30:01]MH_I2C_Read... [20:30:01]Read from MH i2c: 01 [20:30:01]MH_I2C_Read... [20:30:01]Read from MH i2c: 01 07 00 [20:30:01]MH_I2C_Read... [20:30:01]Read from MH i2c: 01 07 00 78 1F 00 03 00 00 00 FF 0F AF [20:30:01]state=3 [20:30:01]No paper [20:30:01]Cover opened [20:30:04]OFD Sender: No OFD packet to send [20:30:06]Write to MH i2c: 01 00 00 79 1F 98 [20:30:06]Write i2c OK [20:30:06]MH_I2C_Read... [20:30:06]Read from MH i2c: 01 [20:30:06]MH_I2C_Read... [20:30:06]Read from MH i2c: 01 07 00 [20:30:06]MH_I2C_Read... [20:30:06]Read from MH i2c: 01 07 00 79 1F 00 03 00 00 00 FF 0F B0 [20:30:06]state=3 [20:30:06]No paper [20:30:06]Cover opened [20:30:09]OFD Sender: No OFD packet to send [20:30:11]Write to MH i2c: 01 00 00 7A 1F 99 [20:30:11]Write i2c OK [20:30:11]MH_I2C_Read... [20:30:11]Read from MH i2c: 01 [20:30:11]MH_I2C_Read... [20:30:11]Read from MH i2c: 01 07 00 [20:30:11]MH_I2C_Read... [20:30:11]Read from MH i2c: 01 07 00 7A 1F 00 03 00 00 00 FF 0F B1 [20:30:11]state=3 [20:30:11]No paper [20:30:11]Cover opened [20:30:14]OFD Sender: No OFD packet to send [20:30:16]Write to MH i2c: 01 00 00 7B 1F 9A [20:30:16]Write i2c OK [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: 01 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: 01 07 00 [20:30:16]MH_I2C_Read... [20:30:16]Read from MH i2c: 01 07 00 7B 1F 00 03 00 00 00 FF 0F B2 [20:30:16]state=3 [20:30:16]No paper [20:30:16]Cover opened [20:30:19]OFD Sender: No OFD packet to send [20:30:21]Write to MH i2c: 01 00 00 7C 1F 9B [20:30:21]Write i2c OK [20:30:21]MH_I2C_Read... [20:30:21]Read from MH i2c: 01 [20:30:21]MH_I2C_Read... [20:30:21]Read from MH i2c: 01 07 00 [20:30:21]MH_I2C_Read... [20:30:21]Read from MH i2c: 01 07 00 7C 1F 00 03 00 00 00 FF 0F B3 [20:30:21]state=3 [20:30:21]No paper [20:30:21]Cover opened [20:30:24]OFD Sender: No OFD packet to send [20:30:26]Write to MH i2c: 01 00 00 7D 1F 9C [20:30:26]Write i2c OK [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: 01 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: 01 07 00 [20:30:26]MH_I2C_Read... [20:30:26]Read from MH i2c: 01 07 00 7D 1F 00 03 00 00 00 FF 0F B4 [20:30:26]state=3 [20:30:26]No paper [20:30:26]Cover opened [20:30:29]OFD Sender: No OFD packet to send [20:30:31]Write to MH i2c: 01 00 00 7E 1F 9D [20:30:31]Write i2c OK [20:30:31]MH_I2C_Read... [20:30:31]Read from MH i2c: 01 [20:30:31]MH_I2C_Read... [20:30:31]Read from MH i2c: 01 07 00 [20:30:31]MH_I2C_Read... [20:30:31]Read from MH i2c: 01 07 00 7E 1F 00 03 00 00 00 FF 0F B5 [20:30:31]state=3 [20:30:31]No paper [20:30:31]Cover opened [20:30:34]OFD Sender: No OFD packet to send [20:30:36]Write to MH i2c: 01 00 00 7F 1F 9E [20:30:36]Write i2c OK [20:30:36]MH_I2C_Read... [20:30:36]Read from MH i2c: 01 [20:30:36]MH_I2C_Read... [20:30:36]Read from MH i2c: 01 07 00 [20:30:36]MH_I2C_Read... [20:30:36]Read from MH i2c: 01 07 00 7F 1F 00 03 00 00 00 FF 0F B6 [20:30:36]state=3 [20:30:36]No paper [20:30:36]Cover opened [20:30:39]OFD Sender: No OFD packet to send [20:30:41]Write to MH i2c: 01 00 00 80 1F 9F [20:30:41]Write i2c OK [20:30:41]MH_I2C_Read... [20:30:41]Read from MH i2c: 01 [20:30:41]MH_I2C_Read... [20:30:41]Read from MH i2c: 01 07 00 [20:30:41]MH_I2C_Read... [20:30:41]Read from MH i2c: 01 07 00 80 1F 00 03 00 00 00 FF 0F B7 [20:30:41]state=3 [20:30:41]No paper [20:30:41]Cover opened [20:30:44]OFD Sender: No OFD packet to send [20:30:46]Write to MH i2c: 01 00 00 81 1F A0 [20:30:46]Write i2c OK [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: 01 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: 01 07 00 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: 01 07 00 81 1F 00 03 00 00 00 FF 0F B8 [20:30:46]state=3 [20:30:46]No paper [20:30:46]Cover opened [20:30:49]OFD Sender: No OFD packet to send [20:30:51]Write to MH i2c: 01 00 00 82 1F A1 [20:30:51]Write i2c OK [20:30:51]MH_I2C_Read... [20:30:51]Read from MH i2c: 01 [20:30:51]MH_I2C_Read... [20:30:51]Read from MH i2c: 01 07 00 [20:30:51]MH_I2C_Read... [20:30:51]Read from MH i2c: 01 07 00 82 1F 00 03 00 00 00 FF 0F B9 [20:30:51]state=3 [20:30:51]No paper [20:30:51]Cover opened [20:30:54]OFD Sender: No OFD packet to send [20:30:56]Write to MH i2c: 01 00 00 83 1F A2 [20:30:56]Write i2c OK [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: 01 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: 01 07 00 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: 01 07 00 83 1F 00 03 00 00 00 FF 0F BA [20:30:56]state=3 [20:30:56]No paper [20:30:56]Cover opened [20:30:59]OFD Sender: No OFD packet to send [20:31:01]Write to MH i2c: 01 00 00 84 1F A3 [20:31:01]Write i2c OK [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: 01 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: 01 07 00 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: 01 07 00 84 1F 00 03 00 00 00 FF 0F BB [20:31:01]state=3 [20:31:01]No paper [20:31:01]Cover opened [20:31:04]OFD Sender: No OFD packet to send [20:31:06]Write to MH i2c: 01 00 00 85 1F A4 [20:31:06]Write i2c OK [20:31:06]MH_I2C_Read... [20:31:06]Read from MH i2c: 01 [20:31:06]MH_I2C_Read... [20:31:06]Read from MH i2c: 01 07 00 [20:31:06]MH_I2C_Read... [20:31:06]Read from MH i2c: 01 07 00 85 1F 00 03 00 00 00 FF 0F BC [20:31:06]state=3 [20:31:06]No paper [20:31:06]Cover opened [20:31:09]OFD Sender: No OFD packet to send [20:31:11]Write to MH i2c: 01 00 00 86 1F A5 [20:31:11]Write i2c OK [20:31:11]MH_I2C_Read... [20:31:11]Read from MH i2c: 01 [20:31:11]MH_I2C_Read... [20:31:11]Read from MH i2c: 01 07 00 [20:31:11]MH_I2C_Read... [20:31:11]Read from MH i2c: 01 07 00 86 1F 00 03 00 00 00 FF 0F BD [20:31:11]state=3 [20:31:11]No paper [20:31:11]Cover opened [20:31:14]OFD Sender: No OFD packet to send [20:31:16]Write to MH i2c: 01 00 00 87 1F A6 [20:31:16]Write i2c OK [20:31:16]MH_I2C_Read... [20:31:16]Read from MH i2c: 01 [20:31:16]MH_I2C_Read... [20:31:16]Read from MH i2c: 01 07 00 [20:31:16]MH_I2C_Read... [20:31:16]Read from MH i2c: 01 07 00 87 1F 00 03 00 00 00 FF 0F BE [20:31:16]state=3 [20:31:16]No paper [20:31:16]Cover opened [20:31:19]OFD Sender: No OFD packet to send [20:31:21]Write to MH i2c: 01 00 00 88 1F A7 [20:31:21]Write i2c OK [20:31:21]MH_I2C_Read... [20:31:21]Read from MH i2c: 01 [20:31:21]MH_I2C_Read... [20:31:21]Read from MH i2c: 01 07 00 [20:31:21]MH_I2C_Read... [20:31:21]Read from MH i2c: 01 07 00 88 1F 00 03 00 00 00 FF 0F BF [20:31:21]state=3 [20:31:21]No paper [20:31:21]Cover opened [20:31:24]OFD Sender: No OFD packet to send [20:31:26]Write to MH i2c: 01 00 00 89 1F A8 [20:31:26]Write i2c OK [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: 01 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: 01 07 00 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: 01 07 00 89 1F 00 03 00 00 00 FF 0F C0 [20:31:26]state=3 [20:31:26]No paper [20:31:26]Cover opened [20:31:29]OFD Sender: No OFD packet to send [20:31:31]Write to MH i2c: 01 00 00 8A 1F A9 [20:31:31]Write i2c OK [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: 01 [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: 01 07 00 [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: 01 07 00 8A 1F 00 03 00 00 00 FF 0F C1 [20:31:31]state=3 [20:31:31]No paper [20:31:31]Cover opened [20:31:34]OFD Sender: No OFD packet to send [20:31:36]Write to MH i2c: 01 00 00 8B 1F AA [20:31:36]Write i2c OK [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: 01 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: 01 07 00 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: 01 07 00 8B 1F 00 03 00 00 00 FF 0F C2 [20:31:36]state=3 [20:31:36]No paper [20:31:36]Cover opened [20:31:39]OFD Sender: No OFD packet to send [20:31:41]Write to MH i2c: 01 00 00 8C 1F AB [20:31:41]Write i2c OK [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: 01 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: 01 07 00 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: 01 07 00 8C 1F 00 03 00 00 00 FF 0F C3 [20:31:41]state=3 [20:31:41]No paper [20:31:41]Cover opened [20:31:44]OFD Sender: No OFD packet to send [20:31:46]Write to MH i2c: 01 00 00 8D 1F AC [20:31:46]Write i2c OK [20:31:46]MH_I2C_Read... [20:31:46]Read from MH i2c: 01 [20:31:46]MH_I2C_Read... [20:31:46]Read from MH i2c: 01 07 00 [20:31:46]MH_I2C_Read... [20:31:46]Read from MH i2c: 01 07 00 8D 1F 00 03 00 00 00 FF 0F C4 [20:31:46]state=3 [20:31:46]No paper [20:31:46]Cover opened [20:31:49]OFD Sender: No OFD packet to send [20:31:51]Write to MH i2c: 01 00 00 8E 1F AD [20:31:51]Write i2c OK [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: 01 [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: 01 07 00 [20:31:51]MH_I2C_Read... [20:31:51]Read from MH i2c: 01 07 00 8E 1F 00 03 00 00 00 FF 0F C5 [20:31:51]state=3 [20:31:51]No paper [20:31:51]Cover opened [20:31:54]OFD Sender: No OFD packet to send [20:31:56]Write to MH i2c: 01 00 00 8F 1F AE [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: 01 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: 01 07 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: 01 07 00 8F 1F 00 03 00 00 00 FF 0F C6 [20:31:56]state=3 [20:31:56]No paper [20:31:56]Cover opened [20:31:59]OFD Sender: No OFD packet to send [20:32:01]Write to MH i2c: 01 00 00 90 1F AF [20:32:01]Write i2c OK [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: 01 [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: 01 07 00 [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: 01 07 00 90 1F 00 03 00 00 00 FF 0F C7 [20:32:01]state=3 [20:32:01]No paper [20:32:01]Cover opened [20:32:04]OFD Sender: No OFD packet to send [20:32:06]Write to MH i2c: 01 00 00 91 1F B0 [20:32:06]Write i2c OK [20:32:06]MH_I2C_Read... [20:32:06]Read from MH i2c: 01 [20:32:06]MH_I2C_Read... [20:32:06]Read from MH i2c: 01 07 00 [20:32:06]MH_I2C_Read... [20:32:06]Read from MH i2c: 01 07 00 91 1F 00 03 00 00 00 FF 0F C8 [20:32:06]state=3 [20:32:06]No paper [20:32:06]Cover opened [20:32:09]OFD Sender: No OFD packet to send [20:32:11]Write to MH i2c: 01 00 00 92 1F B1 [20:32:11]Write i2c OK [20:32:11]MH_I2C_Read... [20:32:11]Read from MH i2c: 01 [20:32:11]MH_I2C_Read... [20:32:11]Read from MH i2c: 01 07 00 [20:32:11]MH_I2C_Read... [20:32:11]Read from MH i2c: 01 07 00 92 1F 00 03 00 00 00 FF 0F C9 [20:32:11]state=3 [20:32:11]No paper [20:32:11]Cover opened [20:32:14]OFD Sender: No OFD packet to send [20:32:16]Write to MH i2c: 01 00 00 93 1F B2 [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: 01 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: 01 07 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: 01 07 00 93 1F 00 03 00 00 00 FF 0F CA [20:32:16]state=3 [20:32:16]No paper [20:32:16]Cover opened [20:32:19]OFD Sender: No OFD packet to send [20:32:21]Write to MH i2c: 01 00 00 94 1F B3 [20:32:21]Write i2c OK [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: 01 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: 01 07 00 [20:32:21]MH_I2C_Read... [20:32:21]Read from MH i2c: 01 07 00 94 1F 00 03 00 00 00 FF 0F CB [20:32:21]state=3 [20:32:21]No paper [20:32:21]Cover opened [20:32:24]OFD Sender: No OFD packet to send [20:32:26]Write to MH i2c: 01 00 00 95 1F B4 [20:32:26]Write i2c OK [20:32:26]MH_I2C_Read... [20:32:26]Read from MH i2c: 01 [20:32:26]MH_I2C_Read... [20:32:26]Read from MH i2c: 01 07 00 [20:32:26]MH_I2C_Read... [20:32:26]Read from MH i2c: 01 07 00 95 1F 00 03 00 00 00 FF 0F CC [20:32:26]state=3 [20:32:26]No paper [20:32:26]Cover opened [20:32:29]OFD Sender: No OFD packet to send [20:32:31]Write to MH i2c: 01 00 00 96 1F B5 [20:32:31]Write i2c OK [20:32:31]MH_I2C_Read... [20:32:31]Read from MH i2c: 01 [20:32:31]MH_I2C_Read... [20:32:31]Read from MH i2c: 01 07 00 [20:32:31]MH_I2C_Read... [20:32:31]Read from MH i2c: 01 07 00 96 1F 00 03 00 00 00 FF 0F CD [20:32:31]state=3 [20:32:31]No paper [20:32:31]Cover opened [20:32:34]OFD Sender: No OFD packet to send [20:32:36]Write to MH i2c: 01 00 00 97 1F B6 [20:32:36]Write i2c OK [20:32:36]MH_I2C_Read... [20:32:36]Read from MH i2c: 01 [20:32:36]MH_I2C_Read... [20:32:36]Read from MH i2c: 01 07 00 [20:32:36]MH_I2C_Read... [20:32:36]Read from MH i2c: 01 07 00 97 1F 00 03 00 00 00 FF 0F CE [20:32:36]state=3 [20:32:36]No paper [20:32:36]Cover opened [20:32:39]OFD Sender: No OFD packet to send [20:32:41]Write to MH i2c: 01 00 00 98 1F B7 [20:32:41]Write i2c OK [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: 01 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: 01 07 00 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: 01 07 00 98 1F 00 03 00 00 00 FF 0F CF [20:32:41]state=3 [20:32:41]No paper [20:32:41]Cover opened [20:32:44]OFD Sender: No OFD packet to send [20:32:46]Write to MH i2c: 01 00 00 99 1F B8 [20:32:46]Write i2c OK [20:32:46]MH_I2C_Read... [20:32:46]Read from MH i2c: 01 [20:32:46]MH_I2C_Read... [20:32:46]Read from MH i2c: 01 07 00 [20:32:46]MH_I2C_Read... [20:32:46]Read from MH i2c: 01 07 00 99 1F 00 03 00 00 00 FF 0F D0 [20:32:46]state=3 [20:32:46]No paper [20:32:46]Cover opened [20:32:49]OFD Sender: No OFD packet to send [20:32:51]Write to MH i2c: 01 00 00 9A 1F B9 [20:32:51]Write i2c OK [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: 01 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: 01 07 00 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: 01 07 00 9A 1F 00 03 00 00 00 FF 0F D1 [20:32:51]state=3 [20:32:51]No paper [20:32:51]Cover opened [20:32:54]OFD Sender: No OFD packet to send [20:32:56]Write to MH i2c: 01 00 00 9B 1F BA [20:32:56]Write i2c OK [20:32:56]MH_I2C_Read... [20:32:56]Read from MH i2c: 01 [20:32:56]MH_I2C_Read... [20:32:56]Read from MH i2c: 01 07 00 [20:32:56]MH_I2C_Read... [20:32:56]Read from MH i2c: 01 07 00 9B 1F 00 03 00 00 00 FF 0F D2 [20:32:56]state=3 [20:32:56]No paper [20:32:56]Cover opened [20:32:59]OFD Sender: No OFD packet to send [20:33:01]Write to MH i2c: 01 00 00 9C 1F BB [20:33:01]Write i2c OK [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: 01 [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: 01 07 00 [20:33:01]MH_I2C_Read... [20:33:01]Read from MH i2c: 01 07 00 9C 1F 00 03 00 00 00 FF 0F D3 [20:33:01]state=3 [20:33:01]No paper [20:33:01]Cover opened [20:33:04]OFD Sender: No OFD packet to send [20:33:06]Write to MH i2c: 01 00 00 9D 1F BC [20:33:06]Write i2c OK [20:33:06]MH_I2C_Read... [20:33:06]Read from MH i2c: 01 [20:33:06]MH_I2C_Read... [20:33:06]Read from MH i2c: 01 07 00 [20:33:06]MH_I2C_Read... [20:33:06]Read from MH i2c: 01 07 00 9D 1F 00 03 00 00 00 FF 0F D4 [20:33:06]state=3 [20:33:06]No paper [20:33:06]Cover opened [20:33:09]OFD Sender: No OFD packet to send [20:33:11]Write to MH i2c: 01 00 00 9E 1F BD [20:33:11]Write i2c OK [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: 01 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: 01 07 00 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: 01 07 00 9E 1F 00 03 00 00 00 FF 0F D5 [20:33:11]state=3 [20:33:11]No paper [20:33:11]Cover opened [20:33:14]OFD Sender: No OFD packet to send [20:33:16]Write to MH i2c: 01 00 00 9F 1F BE [20:33:16]Write i2c OK [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: 01 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: 01 07 00 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: 01 07 00 9F 1F 00 03 00 00 00 FF 0F D6 [20:33:16]state=3 [20:33:16]No paper [20:33:16]Cover opened [20:33:19]OFD Sender: No OFD packet to send [20:33:21]Write to MH i2c: 01 00 00 A0 1F BF [20:33:21]Write i2c OK [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: 01 [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: 01 07 00 [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: 01 07 00 A0 1F 00 03 00 00 00 FF 0F D7 [20:33:21]state=3 [20:33:21]No paper [20:33:21]Cover opened [20:33:24]OFD Sender: No OFD packet to send [20:33:26]Write to MH i2c: 01 00 00 A1 1F C0 [20:33:26]Write i2c OK [20:33:26]MH_I2C_Read... [20:33:26]Read from MH i2c: 01 [20:33:26]MH_I2C_Read... [20:33:26]Read from MH i2c: 01 07 00 [20:33:26]MH_I2C_Read... [20:33:26]Read from MH i2c: 01 07 00 A1 1F 00 03 00 00 00 FF 0F D8 [20:33:26]state=3 [20:33:26]No paper [20:33:26]Cover opened [20:33:29]OFD Sender: No OFD packet to send [20:33:31]Write to MH i2c: 01 00 00 A2 1F C1 [20:33:31]Write i2c OK [20:33:31]MH_I2C_Read... [20:33:31]Read from MH i2c: 01 [20:33:31]MH_I2C_Read... [20:33:31]Read from MH i2c: 01 07 00 [20:33:31]MH_I2C_Read... [20:33:31]Read from MH i2c: 01 07 00 A2 1F 00 03 00 00 00 FF 0F D9 [20:33:31]state=3 [20:33:31]No paper [20:33:31]Cover opened [20:33:34]OFD Sender: No OFD packet to send [20:33:36]Write to MH i2c: 01 00 00 A3 1F C2 [20:33:36]Write i2c OK [20:33:36]MH_I2C_Read... [20:33:36]Read from MH i2c: 01 [20:33:36]MH_I2C_Read... [20:33:36]Read from MH i2c: 01 07 00 [20:33:36]MH_I2C_Read... [20:33:36]Read from MH i2c: 01 07 00 A3 1F 00 03 00 00 00 FF 0F DA [20:33:36]state=3 [20:33:36]No paper [20:33:36]Cover opened [20:33:39]OFD Sender: No OFD packet to send [20:33:41]Write to MH i2c: 01 00 00 A4 1F C3 [20:33:41]Write i2c OK [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: 01 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: 01 07 00 [20:33:41]MH_I2C_Read... [20:33:41]Read from MH i2c: 01 07 00 A4 1F 00 03 00 00 00 FF 0F DB [20:33:41]state=3 [20:33:41]No paper [20:33:41]Cover opened [20:33:44]OFD Sender: No OFD packet to send [20:33:46]Write to MH i2c: 01 00 00 A5 1F C4 [20:33:46]Write i2c OK [20:33:46]MH_I2C_Read... [20:33:46]Read from MH i2c: 01 [20:33:46]MH_I2C_Read... [20:33:46]Read from MH i2c: 01 07 00 [20:33:46]MH_I2C_Read... [20:33:46]Read from MH i2c: 01 07 00 A5 1F 00 03 00 00 00 FF 0F DC [20:33:46]state=3 [20:33:46]No paper [20:33:46]Cover opened [20:33:49]OFD Sender: No OFD packet to send [20:33:51]Write to MH i2c: 01 00 00 A6 1F C5 [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: 01 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: 01 07 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: 01 07 00 A6 1F 00 03 00 00 00 FF 0F DD [20:33:51]state=3 [20:33:51]No paper [20:33:51]Cover opened [20:33:54]OFD Sender: No OFD packet to send [20:33:56]Write to MH i2c: 01 00 00 A7 1F C6 [20:33:56]Write i2c OK [20:33:56]MH_I2C_Read... [20:33:56]Read from MH i2c: 01 [20:33:56]MH_I2C_Read... [20:33:56]Read from MH i2c: 01 07 00 [20:33:56]MH_I2C_Read... [20:33:56]Read from MH i2c: 01 07 00 A7 1F 00 03 00 00 00 FF 0F DE [20:33:56]state=3 [20:33:56]No paper [20:33:56]Cover opened [20:33:59]OFD Sender: No OFD packet to send [20:34:01]Write to MH i2c: 01 00 00 A8 1F C7 [20:34:01]Write i2c OK [20:34:01]MH_I2C_Read... [20:34:01]Read from MH i2c: 01 [20:34:01]MH_I2C_Read... [20:34:01]Read from MH i2c: 01 07 00 [20:34:01]MH_I2C_Read... [20:34:01]Read from MH i2c: 01 07 00 A8 1F 00 03 00 00 00 FF 0F DF [20:34:01]state=3 [20:34:01]No paper [20:34:01]Cover opened [20:34:04]OFD Sender: No OFD packet to send [20:34:06]Write to MH i2c: 01 00 00 A9 1F C8 [20:34:06]Write i2c OK [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: 01 [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: 01 07 00 [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: 01 07 00 A9 1F 00 03 00 00 00 FF 0F E0 [20:34:06]state=3 [20:34:06]No paper [20:34:06]Cover opened [20:34:09]OFD Sender: No OFD packet to send [20:34:11]Write to MH i2c: 01 00 00 AA 1F C9 [20:34:11]Write i2c OK [20:34:11]MH_I2C_Read... [20:34:11]Read from MH i2c: 01 [20:34:11]MH_I2C_Read... [20:34:11]Read from MH i2c: 01 07 00 [20:34:11]MH_I2C_Read... [20:34:11]Read from MH i2c: 01 07 00 AA 1F 00 03 00 00 00 FF 0F E1 [20:34:11]state=3 [20:34:11]No paper [20:34:11]Cover opened [20:34:14]OFD Sender: No OFD packet to send [20:34:16]Write to MH i2c: 01 00 00 AB 1F CA [20:34:16]Write i2c OK [20:34:16]MH_I2C_Read... [20:34:16]Read from MH i2c: 01 [20:34:16]MH_I2C_Read... [20:34:16]Read from MH i2c: 01 07 00 [20:34:16]MH_I2C_Read... [20:34:16]Read from MH i2c: 01 07 00 AB 1F 00 03 00 00 00 FF 0F E2 [20:34:16]state=3 [20:34:16]No paper [20:34:16]Cover opened [20:34:19]OFD Sender: No OFD packet to send [20:34:21]Write to MH i2c: 01 00 00 AC 1F CB [20:34:21]Write i2c OK [20:34:21]MH_I2C_Read... [20:34:21]Read from MH i2c: 01 [20:34:21]MH_I2C_Read... [20:34:21]Read from MH i2c: 01 07 00 [20:34:21]MH_I2C_Read... [20:34:21]Read from MH i2c: 01 07 00 AC 1F 00 03 00 00 00 FF 0F E3 [20:34:21]state=3 [20:34:21]No paper [20:34:21]Cover opened [20:34:25]OFD Sender: No OFD packet to send [20:34:26]Write to MH i2c: 01 00 00 AD 1F CC [20:34:26]Write i2c OK [20:34:26]MH_I2C_Read... [20:34:26]Read from MH i2c: 01 [20:34:26]MH_I2C_Read... [20:34:26]Read from MH i2c: 01 07 00 [20:34:26]MH_I2C_Read... [20:34:26]Read from MH i2c: 01 07 00 AD 1F 00 03 00 00 00 FF 0F E4 [20:34:26]state=3 [20:34:26]No paper [20:34:26]Cover opened [20:34:30]OFD Sender: No OFD packet to send [20:34:31]Write to MH i2c: 01 00 00 AE 1F CD [20:34:31]Write i2c OK [20:34:31]MH_I2C_Read... [20:34:31]Read from MH i2c: 01 [20:34:31]MH_I2C_Read... [20:34:31]Read from MH i2c: 01 07 00 [20:34:31]MH_I2C_Read... [20:34:31]Read from MH i2c: 01 07 00 AE 1F 00 03 00 00 00 FF 0F E5 [20:34:31]state=3 [20:34:31]No paper [20:34:31]Cover opened [20:34:35]OFD Sender: No OFD packet to send [20:34:36]Write to MH i2c: 01 00 00 AF 1F CE [20:34:36]Write i2c OK [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: 01 [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: 01 07 00 [20:34:36]MH_I2C_Read... [20:34:36]Read from MH i2c: 01 07 00 AF 1F 00 03 00 00 00 FF 0F E6 [20:34:36]state=3 [20:34:36]No paper [20:34:36]Cover opened [20:34:40]OFD Sender: No OFD packet to send [20:34:41]Write to MH i2c: 01 00 00 B0 1F CF [20:34:41]Write i2c OK [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: 01 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: 01 07 00 [20:34:41]MH_I2C_Read... [20:34:41]Read from MH i2c: 01 07 00 B0 1F 00 03 00 00 00 FF 0F E7 [20:34:41]state=3 [20:34:41]No paper [20:34:41]Cover opened [20:34:45]OFD Sender: No OFD packet to send [20:34:46]Write to MH i2c: 01 00 00 B1 1F D0 [20:34:46]Write i2c OK [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: 01 [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: 01 07 00 [20:34:46]MH_I2C_Read... [20:34:46]Read from MH i2c: 01 07 00 B1 1F 00 03 00 00 00 FF 0F E8 [20:34:46]state=3 [20:34:46]No paper [20:34:46]Cover opened [20:34:50]OFD Sender: No OFD packet to send [20:34:51]Write to MH i2c: 01 00 00 B2 1F D1 [20:34:51]Write i2c OK [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: 01 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: 01 07 00 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: 01 07 00 B2 1F 00 03 00 00 00 FF 0F E9 [20:34:51]state=3 [20:34:51]No paper [20:34:51]Cover opened [20:34:55]OFD Sender: No OFD packet to send [20:34:56]Write to MH i2c: 01 00 00 B3 1F D2 [20:34:56]Write i2c OK [20:34:56]MH_I2C_Read... [20:34:56]Read from MH i2c: 01 [20:34:56]MH_I2C_Read... [20:34:56]Read from MH i2c: 01 07 00 [20:34:56]MH_I2C_Read... [20:34:56]Read from MH i2c: 01 07 00 B3 1F 00 03 00 00 00 FF 0F EA [20:34:56]state=3 [20:34:56]No paper [20:34:56]Cover opened [20:35:00]OFD Sender: No OFD packet to send [20:35:01]Write to MH i2c: 01 00 00 B4 1F D3 [20:35:01]Write i2c OK [20:35:01]MH_I2C_Read... [20:35:01]Read from MH i2c: 01 [20:35:01]MH_I2C_Read... [20:35:01]Read from MH i2c: 01 07 00 [20:35:01]MH_I2C_Read... [20:35:01]Read from MH i2c: 01 07 00 B4 1F 00 03 00 00 00 FF 0F EB [20:35:01]state=3 [20:35:01]No paper [20:35:01]Cover opened [20:35:05]OFD Sender: No OFD packet to send [20:35:06]Write to MH i2c: 01 00 00 B5 1F D4 [20:35:06]Write i2c OK [20:35:06]MH_I2C_Read... [20:35:06]Read from MH i2c: 01 [20:35:06]MH_I2C_Read... [20:35:06]Read from MH i2c: 01 07 00 [20:35:06]MH_I2C_Read... [20:35:06]Read from MH i2c: 01 07 00 B5 1F 00 03 00 00 00 FF 0F EC [20:35:06]state=3 [20:35:06]No paper [20:35:06]Cover opened [20:35:10]OFD Sender: No OFD packet to send [20:35:11]Write to MH i2c: 01 00 00 B6 1F D5 [20:35:11]Write i2c OK [20:35:11]MH_I2C_Read... [20:35:11]Read from MH i2c: 01 [20:35:11]MH_I2C_Read... [20:35:11]Read from MH i2c: 01 07 00 [20:35:11]MH_I2C_Read... [20:35:11]Read from MH i2c: 01 07 00 B6 1F 00 03 00 00 00 FF 0F ED [20:35:11]state=3 [20:35:11]No paper [20:35:11]Cover opened [20:35:15]OFD Sender: No OFD packet to send [20:35:16]Write to MH i2c: 01 00 00 B7 1F D6 [20:35:16]Write i2c OK [20:35:16]MH_I2C_Read... [20:35:16]Read from MH i2c: 01 [20:35:16]MH_I2C_Read... [20:35:16]Read from MH i2c: 01 07 00 [20:35:16]MH_I2C_Read... [20:35:16]Read from MH i2c: 01 07 00 B7 1F 00 03 00 00 00 FF 0F EE [20:35:16]state=3 [20:35:16]No paper [20:35:16]Cover opened [20:35:20]OFD Sender: No OFD packet to send [20:35:21]Write to MH i2c: 01 00 00 B8 1F D7 [20:35:21]Write i2c OK [20:35:21]MH_I2C_Read... [20:35:21]Read from MH i2c: 01 [20:35:21]MH_I2C_Read... [20:35:21]Read from MH i2c: 01 07 00 [20:35:21]MH_I2C_Read... [20:35:21]Read from MH i2c: 01 07 00 B8 1F 00 03 00 00 00 FF 0F EF [20:35:21]state=3 [20:35:21]No paper [20:35:21]Cover opened [20:35:25]OFD Sender: No OFD packet to send [20:35:26]Write to MH i2c: 01 00 00 B9 1F D8 [20:35:26]Write i2c OK [20:35:26]MH_I2C_Read... [20:35:26]Read from MH i2c: 01 [20:35:26]MH_I2C_Read... [20:35:26]Read from MH i2c: 01 07 00 [20:35:26]MH_I2C_Read... [20:35:26]Read from MH i2c: 01 07 00 B9 1F 00 03 00 00 00 FF 0F F0 [20:35:26]state=3 [20:35:26]No paper [20:35:26]Cover opened [20:35:30]OFD Sender: No OFD packet to send [20:35:31]Write to MH i2c: 01 00 00 BA 1F D9 [20:35:31]Write i2c OK [20:35:31]MH_I2C_Read... [20:35:31]Read from MH i2c: 01 [20:35:31]MH_I2C_Read... [20:35:31]Read from MH i2c: 01 07 00 [20:35:31]MH_I2C_Read... [20:35:31]Read from MH i2c: 01 07 00 BA 1F 00 03 00 00 00 FF 0F F1 [20:35:31]state=3 [20:35:31]No paper [20:35:31]Cover opened [20:35:35]OFD Sender: No OFD packet to send [20:35:36]Write to MH i2c: 01 00 00 BB 1F DA [20:35:36]Write i2c OK [20:35:36]MH_I2C_Read... [20:35:36]Read from MH i2c: 01 [20:35:36]MH_I2C_Read... [20:35:36]Read from MH i2c: 01 07 00 [20:35:36]MH_I2C_Read... [20:35:36]Read from MH i2c: 01 07 00 BB 1F 00 03 00 00 00 FF 0F F2 [20:35:36]state=3 [20:35:36]No paper [20:35:36]Cover opened [20:35:40]OFD Sender: No OFD packet to send [20:35:41]Write to MH i2c: 01 00 00 BC 1F DB [20:35:41]Write i2c OK [20:35:41]MH_I2C_Read... [20:35:41]Read from MH i2c: 01 [20:35:41]MH_I2C_Read... [20:35:41]Read from MH i2c: 01 07 00 [20:35:41]MH_I2C_Read... [20:35:41]Read from MH i2c: 01 07 00 BC 1F 00 03 00 00 00 FF 0F F3 [20:35:41]state=3 [20:35:41]No paper [20:35:41]Cover opened [20:35:45]OFD Sender: No OFD packet to send [20:35:46]Write to MH i2c: 01 00 00 BD 1F DC [20:35:46]Write i2c OK [20:35:46]MH_I2C_Read... [20:35:46]Read from MH i2c: 01 [20:35:46]MH_I2C_Read... [20:35:46]Read from MH i2c: 01 07 00 [20:35:46]MH_I2C_Read... [20:35:46]Read from MH i2c: 01 07 00 BD 1F 00 03 00 00 00 FF 0F F4 [20:35:46]state=3 [20:35:46]No paper [20:35:46]Cover opened [20:35:50]OFD Sender: No OFD packet to send [20:35:51]Write to MH i2c: 01 00 00 BE 1F DD [20:35:51]Write i2c OK [20:35:51]MH_I2C_Read... [20:35:51]Read from MH i2c: 01 [20:35:51]MH_I2C_Read... [20:35:51]Read from MH i2c: 01 07 00 [20:35:51]MH_I2C_Read... [20:35:51]Read from MH i2c: 01 07 00 BE 1F 00 03 00 00 00 FF 0F F5 [20:35:51]state=3 [20:35:51]No paper [20:35:51]Cover opened [20:35:55]OFD Sender: No OFD packet to send [20:35:56]Write to MH i2c: 01 00 00 BF 1F DE [20:35:56]Write i2c OK [20:35:56]MH_I2C_Read... [20:35:56]Read from MH i2c: 01 [20:35:56]MH_I2C_Read... [20:35:56]Read from MH i2c: 01 07 00 [20:35:56]MH_I2C_Read... [20:35:56]Read from MH i2c: 01 07 00 BF 1F 00 03 00 00 00 FF 0F F6 [20:35:56]state=3 [20:35:56]No paper [20:35:56]Cover opened [20:36:00]OFD Sender: No OFD packet to send [20:36:01]Write to MH i2c: 01 00 00 C0 1F DF [20:36:01]Write i2c OK [20:36:01]MH_I2C_Read... [20:36:01]Read from MH i2c: 01 [20:36:01]MH_I2C_Read... [20:36:01]Read from MH i2c: 01 07 00 [20:36:01]MH_I2C_Read... [20:36:01]Read from MH i2c: 01 07 00 C0 1F 00 03 00 00 00 FF 0F F7 [20:36:01]state=3 [20:36:01]No paper [20:36:01]Cover opened [20:36:05]OFD Sender: No OFD packet to send [20:36:06]Write to MH i2c: 01 00 00 C1 1F E0 [20:36:06]Write i2c OK [20:36:06]MH_I2C_Read... [20:36:06]Read from MH i2c: 01 [20:36:06]MH_I2C_Read... [20:36:06]Read from MH i2c: 01 07 00 [20:36:06]MH_I2C_Read... [20:36:06]Read from MH i2c: 01 07 00 C1 1F 00 03 00 00 00 FF 0F F8 [20:36:06]state=3 [20:36:06]No paper [20:36:06]Cover opened [20:36:10]OFD Sender: No OFD packet to send [20:36:11]Write to MH i2c: 01 00 00 C2 1F E1 [20:36:11]Write i2c OK [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: 01 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: 01 07 00 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: 01 07 00 C2 1F 00 03 00 00 00 FF 0F F9 [20:36:11]state=3 [20:36:11]No paper [20:36:11]Cover opened [20:36:15]OFD Sender: No OFD packet to send [20:36:16]Write to MH i2c: 01 00 00 C3 1F E2 [20:36:16]Write i2c OK [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: 01 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: 01 07 00 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: 01 07 00 C3 1F 00 03 00 00 00 FF 0F FA [20:36:16]state=3 [20:36:16]No paper [20:36:16]Cover opened [20:36:20]OFD Sender: No OFD packet to send [20:36:21]Write to MH i2c: 01 00 00 C4 1F E3 [20:36:21]Write i2c OK [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: 01 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: 01 07 00 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: 01 07 00 C4 1F 00 03 00 00 00 FF 0F FB [20:36:21]state=3 [20:36:21]No paper [20:36:21]Cover opened [20:36:25]OFD Sender: No OFD packet to send [20:36:26]Write to MH i2c: 01 00 00 C5 1F E4 [20:36:26]Write i2c OK [20:36:26]MH_I2C_Read... [20:36:26]Read from MH i2c: 01 [20:36:26]MH_I2C_Read... [20:36:26]Read from MH i2c: 01 07 00 [20:36:26]MH_I2C_Read... [20:36:26]Read from MH i2c: 01 07 00 C5 1F 00 03 00 00 00 FF 0F FC [20:36:26]state=3 [20:36:26]No paper [20:36:26]Cover opened [20:36:30]OFD Sender: No OFD packet to send [20:36:31]Write to MH i2c: 01 00 00 C6 1F E5 [20:36:31]Write i2c OK [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: 01 [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: 01 07 00 [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: 01 07 00 C6 1F 00 03 00 00 00 FF 0F FD [20:36:31]state=3 [20:36:31]No paper [20:36:31]Cover opened [20:36:35]OFD Sender: No OFD packet to send [20:36:36]Write to MH i2c: 01 00 00 C7 1F E6 [20:36:36]Write i2c OK [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: 01 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: 01 07 00 [20:36:36]MH_I2C_Read... [20:36:36]Read from MH i2c: 01 07 00 C7 1F 00 03 00 00 00 FF 0F FE [20:36:36]state=3 [20:36:36]No paper [20:36:36]Cover opened [20:36:40]OFD Sender: No OFD packet to send [20:36:41]Write to MH i2c: 01 00 00 C8 1F E7 [20:36:41]Write i2c OK [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: 01 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: 01 07 00 [20:36:41]MH_I2C_Read... [20:36:41]Read from MH i2c: 01 07 00 C8 1F 00 03 00 00 00 FF 0F FF [20:36:41]state=3 [20:36:41]No paper [20:36:41]Cover opened [20:36:45]OFD Sender: No OFD packet to send [20:36:46]Write to MH i2c: 01 00 00 C9 1F E8 [20:36:46]Write i2c OK [20:36:46]MH_I2C_Read... [20:36:46]Read from MH i2c: 01 [20:36:46]MH_I2C_Read... [20:36:46]Read from MH i2c: 01 07 00 [20:36:46]MH_I2C_Read... [20:36:46]Read from MH i2c: 01 07 00 C9 1F 00 03 00 00 00 FF 0F 00 [20:36:46]state=3 [20:36:46]No paper [20:36:46]Cover opened [20:36:50]OFD Sender: No OFD packet to send [20:36:51]Write to MH i2c: 01 00 00 CA 1F E9 [20:36:51]Write i2c OK [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: 01 [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: 01 07 00 [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: 01 07 00 CA 1F 00 03 00 00 00 FF 0F 01 [20:36:51]state=3 [20:36:51]No paper [20:36:51]Cover opened [20:36:55]OFD Sender: No OFD packet to send [20:36:56]Write to MH i2c: 01 00 00 CB 1F EA [20:36:56]Write i2c OK [20:36:56]MH_I2C_Read... [20:36:56]Read from MH i2c: 01 [20:36:56]MH_I2C_Read... [20:36:56]Read from MH i2c: 01 07 00 [20:36:56]MH_I2C_Read... [20:36:56]Read from MH i2c: 01 07 00 CB 1F 00 03 00 00 00 FF 0F 02 [20:36:56]state=3 [20:36:56]No paper [20:36:56]Cover opened [20:37:00]OFD Sender: No OFD packet to send [20:37:01]Write to MH i2c: 01 00 00 CC 1F EB [20:37:01]Write i2c OK [20:37:01]MH_I2C_Read... [20:37:01]Read from MH i2c: 01 [20:37:01]MH_I2C_Read... [20:37:01]Read from MH i2c: 01 07 00 [20:37:01]MH_I2C_Read... [20:37:01]Read from MH i2c: 01 07 00 CC 1F 00 03 00 00 00 FF 0F 03 [20:37:01]state=3 [20:37:01]No paper [20:37:01]Cover opened [20:37:05]OFD Sender: No OFD packet to send [20:37:06]Write to MH i2c: 01 00 00 CD 1F EC [20:37:06]Write i2c OK [20:37:06]MH_I2C_Read... [20:37:06]Read from MH i2c: 01 [20:37:06]MH_I2C_Read... [20:37:06]Read from MH i2c: 01 07 00 [20:37:06]MH_I2C_Read... [20:37:06]Read from MH i2c: 01 07 00 CD 1F 00 03 00 00 00 FF 0F 04 [20:37:06]state=3 [20:37:06]No paper [20:37:06]Cover opened [20:37:10]OFD Sender: No OFD packet to send [20:37:11]Write to MH i2c: 01 00 00 CE 1F ED [20:37:11]Write i2c OK [20:37:11]MH_I2C_Read... [20:37:11]Read from MH i2c: 01 [20:37:11]MH_I2C_Read... [20:37:11]Read from MH i2c: 01 07 00 [20:37:11]MH_I2C_Read... [20:37:11]Read from MH i2c: 01 07 00 CE 1F 00 03 00 00 00 FF 0F 05 [20:37:11]state=3 [20:37:11]No paper [20:37:11]Cover opened [20:37:15]OFD Sender: No OFD packet to send [20:37:16]Write to MH i2c: 01 00 00 CF 1F EE [20:37:16]Write i2c OK [20:37:16]MH_I2C_Read... [20:37:16]Read from MH i2c: 01 [20:37:16]MH_I2C_Read... [20:37:16]Read from MH i2c: 01 07 00 [20:37:16]MH_I2C_Read... [20:37:16]Read from MH i2c: 01 07 00 CF 1F 00 03 00 00 00 FF 0F 06 [20:37:16]state=3 [20:37:16]No paper [20:37:16]Cover opened [20:37:20]OFD Sender: No OFD packet to send [20:37:21]Write to MH i2c: 01 00 00 D0 1F EF [20:37:21]Write i2c OK [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: 01 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: 01 07 00 [20:37:21]MH_I2C_Read... [20:37:21]Read from MH i2c: 01 07 00 D0 1F 00 03 00 00 00 FF 0F 07 [20:37:21]state=3 [20:37:21]No paper [20:37:21]Cover opened [20:37:25]OFD Sender: No OFD packet to send [20:37:26]Write to MH i2c: 01 00 00 D1 1F F0 [20:37:26]Write i2c OK [20:37:26]MH_I2C_Read... [20:37:26]Read from MH i2c: 01 [20:37:26]MH_I2C_Read... [20:37:26]Read from MH i2c: 01 07 00 [20:37:26]MH_I2C_Read... [20:37:26]Read from MH i2c: 01 07 00 D1 1F 00 03 00 00 00 FF 0F 08 [20:37:26]state=3 [20:37:26]No paper [20:37:26]Cover opened [20:37:30]OFD Sender: No OFD packet to send [20:37:31]Write to MH i2c: 01 00 00 D2 1F F1 [20:37:31]Write i2c OK [20:37:31]MH_I2C_Read... [20:37:31]Read from MH i2c: 01 [20:37:31]MH_I2C_Read... [20:37:31]Read from MH i2c: 01 07 00 [20:37:31]MH_I2C_Read... [20:37:31]Read from MH i2c: 01 07 00 D2 1F 00 03 00 00 00 FF 0F 09 [20:37:31]state=3 [20:37:31]No paper [20:37:31]Cover opened [20:37:35]OFD Sender: No OFD packet to send [20:37:36]Write to MH i2c: 01 00 00 D3 1F F2 [20:37:36]Write i2c OK [20:37:36]MH_I2C_Read... [20:37:36]Read from MH i2c: 01 [20:37:36]MH_I2C_Read... [20:37:36]Read from MH i2c: 01 07 00 [20:37:36]MH_I2C_Read... [20:37:36]Read from MH i2c: 01 07 00 D3 1F 00 03 00 00 00 FF 0F 0A [20:37:36]state=3 [20:37:36]No paper [20:37:36]Cover opened [20:37:40]OFD Sender: No OFD packet to send [20:37:41]Write to MH i2c: 01 00 00 D4 1F F3 [20:37:41]Write i2c OK [20:37:41]MH_I2C_Read... [20:37:41]Read from MH i2c: 01 [20:37:41]MH_I2C_Read... [20:37:41]Read from MH i2c: 01 07 00 [20:37:41]MH_I2C_Read... [20:37:41]Read from MH i2c: 01 07 00 D4 1F 00 03 00 00 00 FF 0F 0B [20:37:41]state=3 [20:37:41]No paper [20:37:41]Cover opened [20:37:45]OFD Sender: No OFD packet to send [20:37:46]Write to MH i2c: 01 00 00 D5 1F F4 [20:37:46]Write i2c OK [20:37:46]MH_I2C_Read... [20:37:46]Read from MH i2c: 01 [20:37:46]MH_I2C_Read... [20:37:46]Read from MH i2c: 01 07 00 [20:37:46]MH_I2C_Read... [20:37:46]Read from MH i2c: 01 07 00 D5 1F 00 03 00 00 00 FF 0F 0C [20:37:46]state=3 [20:37:46]No paper [20:37:46]Cover opened [20:37:50]OFD Sender: No OFD packet to send [20:37:51]Write to MH i2c: 01 00 00 D6 1F F5 [20:37:51]Write i2c OK [20:37:51]MH_I2C_Read... [20:37:51]Read from MH i2c: 01 [20:37:51]MH_I2C_Read... [20:37:51]Read from MH i2c: 01 07 00 [20:37:51]MH_I2C_Read... [20:37:51]Read from MH i2c: 01 07 00 D6 1F 00 03 00 00 00 FF 0F 0D [20:37:51]state=3 [20:37:51]No paper [20:37:51]Cover opened [20:37:55]OFD Sender: No OFD packet to send [20:37:56]Write to MH i2c: 01 00 00 D7 1F F6 [20:37:56]Write i2c OK [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: 01 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: 01 07 00 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: 01 07 00 D7 1F 00 03 00 00 00 FF 0F 0E [20:37:56]state=3 [20:37:56]No paper [20:37:56]Cover opened [20:38:00]OFD Sender: No OFD packet to send [20:38:01]Write to MH i2c: 01 00 00 D8 1F F7 [20:38:01]Write i2c OK [20:38:01]MH_I2C_Read... [20:38:01]Read from MH i2c: 01 [20:38:01]MH_I2C_Read... [20:38:01]Read from MH i2c: 01 07 00 [20:38:01]MH_I2C_Read... [20:38:01]Read from MH i2c: 01 07 00 D8 1F 00 03 00 00 00 FF 0F 0F [20:38:01]state=3 [20:38:01]No paper [20:38:01]Cover opened [20:38:05]OFD Sender: No OFD packet to send [20:38:06]Write to MH i2c: 01 00 00 D9 1F F8 [20:38:06]Write i2c OK [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: 01 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: 01 07 00 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: 01 07 00 D9 1F 00 03 00 00 00 FF 0F 10 [20:38:06]state=3 [20:38:06]No paper [20:38:06]Cover opened [20:38:10]OFD Sender: No OFD packet to send [20:38:11]Write to MH i2c: 01 00 00 DA 1F F9 [20:38:11]Write i2c OK [20:38:11]MH_I2C_Read... [20:38:11]Read from MH i2c: 01 [20:38:11]MH_I2C_Read... [20:38:11]Read from MH i2c: 01 07 00 [20:38:11]MH_I2C_Read... [20:38:11]Read from MH i2c: 01 07 00 DA 1F 00 03 00 00 00 FF 0F 11 [20:38:11]state=3 [20:38:11]No paper [20:38:11]Cover opened [20:38:15]OFD Sender: No OFD packet to send [20:38:16]Write to MH i2c: 01 00 00 DB 1F FA [20:38:16]Write i2c OK [20:38:16]MH_I2C_Read... [20:38:16]Read from MH i2c: 01 [20:38:16]MH_I2C_Read... [20:38:16]Read from MH i2c: 01 07 00 [20:38:16]MH_I2C_Read... [20:38:16]Read from MH i2c: 01 07 00 DB 1F 00 03 00 00 00 FF 0F 12 [20:38:16]state=3 [20:38:16]No paper [20:38:16]Cover opened [20:38:20]OFD Sender: No OFD packet to send [20:38:21]Write to MH i2c: 01 00 00 DC 1F FB [20:38:21]Write i2c OK [20:38:21]MH_I2C_Read... [20:38:21]Read from MH i2c: 01 [20:38:21]MH_I2C_Read... [20:38:21]Read from MH i2c: 01 07 00 [20:38:21]MH_I2C_Read... [20:38:21]Read from MH i2c: 01 07 00 DC 1F 00 03 00 00 00 FF 0F 13 [20:38:21]state=3 [20:38:21]No paper [20:38:21]Cover opened [20:38:25]OFD Sender: No OFD packet to send [20:38:26]Write to MH i2c: 01 00 00 DD 1F FC [20:38:26]Write i2c OK [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: 01 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: 01 07 00 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: 01 07 00 DD 1F 00 03 00 00 00 FF 0F 14 [20:38:26]state=3 [20:38:26]No paper [20:38:26]Cover opened [20:38:30]OFD Sender: No OFD packet to send [20:38:31]Write to MH i2c: 01 00 00 DE 1F FD [20:38:31]Write i2c OK [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: 01 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: 01 07 00 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: 01 07 00 DE 1F 00 03 00 00 00 FF 0F 15 [20:38:31]state=3 [20:38:31]No paper [20:38:31]Cover opened [20:38:35]OFD Sender: No OFD packet to send [20:38:36]Write to MH i2c: 01 00 00 DF 1F FE [20:38:36]Write i2c OK [20:38:36]MH_I2C_Read... [20:38:36]Read from MH i2c: 01 [20:38:36]MH_I2C_Read... [20:38:36]Read from MH i2c: 01 07 00 [20:38:36]MH_I2C_Read... [20:38:36]Read from MH i2c: 01 07 00 DF 1F 00 03 00 00 00 FF 0F 16 [20:38:36]state=3 [20:38:36]No paper [20:38:36]Cover opened [20:38:40]OFD Sender: No OFD packet to send [20:38:41]Write to MH i2c: 01 00 00 E0 1F FF [20:38:41]Write i2c OK [20:38:41]MH_I2C_Read... [20:38:41]Read from MH i2c: 01 [20:38:41]MH_I2C_Read... [20:38:41]Read from MH i2c: 01 07 00 [20:38:41]MH_I2C_Read... [20:38:41]Read from MH i2c: 01 07 00 E0 1F 00 03 00 00 00 FF 0F 17 [20:38:41]state=3 [20:38:41]No paper [20:38:41]Cover opened [20:38:45]OFD Sender: No OFD packet to send [20:38:46]Write to MH i2c: 01 00 00 E1 1F 00 [20:38:46]Write i2c OK [20:38:46]MH_I2C_Read... [20:38:46]Read from MH i2c: 01 [20:38:46]MH_I2C_Read... [20:38:46]Read from MH i2c: 01 07 00 [20:38:46]MH_I2C_Read... [20:38:46]Read from MH i2c: 01 07 00 E1 1F 00 03 00 00 00 FF 0F 18 [20:38:46]state=3 [20:38:46]No paper [20:38:46]Cover opened [20:38:50]OFD Sender: No OFD packet to send [20:38:52]Write to MH i2c: 01 00 00 E2 1F 01 [20:38:52]Write i2c OK [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: 01 [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: 01 07 00 [20:38:52]MH_I2C_Read... [20:38:52]Read from MH i2c: 01 07 00 E2 1F 00 03 00 00 00 FF 0F 19 [20:38:52]state=3 [20:38:52]No paper [20:38:52]Cover opened [20:38:55]OFD Sender: No OFD packet to send [20:38:57]Write to MH i2c: 01 00 00 E3 1F 02 [20:38:57]Write i2c OK [20:38:57]MH_I2C_Read... [20:38:57]Read from MH i2c: 01 [20:38:57]MH_I2C_Read... [20:38:57]Read from MH i2c: 01 07 00 [20:38:57]MH_I2C_Read... [20:38:57]Read from MH i2c: 01 07 00 E3 1F 00 03 00 00 00 FF 0F 1A [20:38:57]state=3 [20:38:57]No paper [20:38:57]Cover opened [20:39:00]OFD Sender: No OFD packet to send [20:39:02]Write to MH i2c: 01 00 00 E4 1F 03 [20:39:02]Write i2c OK [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: 01 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: 01 07 00 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: 01 07 00 E4 1F 00 03 00 00 00 FF 0F 1B [20:39:02]state=3 [20:39:02]No paper [20:39:02]Cover opened [20:39:05]OFD Sender: No OFD packet to send [20:39:07]Write to MH i2c: 01 00 00 E5 1F 04 [20:39:07]Write i2c OK [20:39:07]MH_I2C_Read... [20:39:07]Read from MH i2c: 01 [20:39:07]MH_I2C_Read... [20:39:07]Read from MH i2c: 01 07 00 [20:39:07]MH_I2C_Read... [20:39:07]Read from MH i2c: 01 07 00 E5 1F 00 03 00 00 00 FF 0F 1C [20:39:07]state=3 [20:39:07]No paper [20:39:07]Cover opened [20:39:10]OFD Sender: No OFD packet to send [20:39:12]Write to MH i2c: 01 00 00 E6 1F 05 [20:39:12]Write i2c OK [20:39:12]MH_I2C_Read... [20:39:12]Read from MH i2c: 01 [20:39:12]MH_I2C_Read... [20:39:12]Read from MH i2c: 01 07 00 [20:39:12]MH_I2C_Read... [20:39:12]Read from MH i2c: 01 07 00 E6 1F 00 03 00 00 00 FF 0F 1D [20:39:12]state=3 [20:39:12]No paper [20:39:12]Cover opened [20:39:15]OFD Sender: No OFD packet to send [20:39:17]Write to MH i2c: 01 00 00 E7 1F 06 [20:39:17]Write i2c OK [20:39:17]MH_I2C_Read... [20:39:17]Read from MH i2c: 01 [20:39:17]MH_I2C_Read... [20:39:17]Read from MH i2c: 01 07 00 [20:39:17]MH_I2C_Read... [20:39:17]Read from MH i2c: 01 07 00 E7 1F 00 03 00 00 00 FF 0F 1E [20:39:17]state=3 [20:39:17]No paper [20:39:17]Cover opened [20:39:20]OFD Sender: No OFD packet to send [20:39:22]Write to MH i2c: 01 00 00 E8 1F 07 [20:39:22]Write i2c OK [20:39:22]MH_I2C_Read... [20:39:22]Read from MH i2c: 01 [20:39:22]MH_I2C_Read... [20:39:22]Read from MH i2c: 01 07 00 [20:39:22]MH_I2C_Read... [20:39:22]Read from MH i2c: 01 07 00 E8 1F 00 03 00 00 00 FF 0F 1F [20:39:22]state=3 [20:39:22]No paper [20:39:22]Cover opened [20:39:25]OFD Sender: No OFD packet to send [20:39:27]Write to MH i2c: 01 00 00 E9 1F 08 [20:39:27]Write i2c OK [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: 01 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: 01 07 00 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: 01 07 00 E9 1F 00 03 00 00 00 FF 0F 20 [20:39:27]state=3 [20:39:27]No paper [20:39:27]Cover opened [20:39:30]OFD Sender: No OFD packet to send [20:39:32]Write to MH i2c: 01 00 00 EA 1F 09 [20:39:32]Write i2c OK [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: 01 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: 01 07 00 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: 01 07 00 EA 1F 00 03 00 00 00 FF 0F 21 [20:39:32]state=3 [20:39:32]No paper [20:39:32]Cover opened [20:39:35]OFD Sender: No OFD packet to send [20:39:37]Write to MH i2c: 01 00 00 EB 1F 0A [20:39:37]Write i2c OK [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: 01 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: 01 07 00 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: 01 07 00 EB 1F 00 03 00 00 00 FF 0F 22 [20:39:37]state=3 [20:39:37]No paper [20:39:37]Cover opened [20:39:40]OFD Sender: No OFD packet to send [20:39:42]Write to MH i2c: 01 00 00 EC 1F 0B [20:39:42]Write i2c OK [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: 01 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: 01 07 00 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: 01 07 00 EC 1F 00 03 00 00 00 FF 0F 23 [20:39:42]state=3 [20:39:42]No paper [20:39:42]Cover opened [20:39:45]OFD Sender: No OFD packet to send [20:39:47]Write to MH i2c: 01 00 00 ED 1F 0C [20:39:47]Write i2c OK [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: 01 [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: 01 07 00 [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: 01 07 00 ED 1F 00 03 00 00 00 FF 0F 24 [20:39:47]state=3 [20:39:47]No paper [20:39:47]Cover opened [20:39:50]OFD Sender: No OFD packet to send [20:39:52]Write to MH i2c: 01 00 00 EE 1F 0D [20:39:52]Write i2c OK [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: 01 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: 01 07 00 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: 01 07 00 EE 1F 00 03 00 00 00 FF 0F 25 [20:39:52]state=3 [20:39:52]No paper [20:39:52]Cover opened [20:39:55]OFD Sender: No OFD packet to send [20:39:57]Write to MH i2c: 01 00 00 EF 1F 0E [20:39:57]Write i2c OK [20:39:57]MH_I2C_Read... [20:39:57]Read from MH i2c: 01 [20:39:57]MH_I2C_Read... [20:39:57]Read from MH i2c: 01 07 00 [20:39:57]MH_I2C_Read... [20:39:57]Read from MH i2c: 01 07 00 EF 1F 00 03 00 00 00 FF 0F 26 [20:39:57]state=3 [20:39:57]No paper [20:39:57]Cover opened [20:40:00]OFD Sender: No OFD packet to send [20:40:02]Write to MH i2c: 01 00 00 F0 1F 0F [20:40:02]Write i2c OK [20:40:02]MH_I2C_Read... [20:40:02]Read from MH i2c: 01 [20:40:02]MH_I2C_Read... [20:40:02]Read from MH i2c: 01 07 00 [20:40:02]MH_I2C_Read... [20:40:02]Read from MH i2c: 01 07 00 F0 1F 00 03 00 00 00 FF 0F 27 [20:40:02]state=3 [20:40:02]No paper [20:40:02]Cover opened [20:40:05]OFD Sender: No OFD packet to send [20:40:07]Write to MH i2c: 01 00 00 F1 1F 10 [20:40:07]Write i2c OK [20:40:07]MH_I2C_Read... [20:40:07]Read from MH i2c: 01 [20:40:07]MH_I2C_Read... [20:40:07]Read from MH i2c: 01 07 00 [20:40:07]MH_I2C_Read... [20:40:07]Read from MH i2c: 01 07 00 F1 1F 00 03 00 00 00 FF 0F 28 [20:40:07]state=3 [20:40:07]No paper [20:40:07]Cover opened [20:40:10]OFD Sender: No OFD packet to send [20:40:12]Write to MH i2c: 01 00 00 F2 1F 11 [20:40:12]Write i2c OK [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: 01 [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: 01 07 00 [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: 01 07 00 F2 1F 00 03 00 00 00 FF 0F 29 [20:40:12]state=3 [20:40:12]No paper [20:40:12]Cover opened [20:40:15]OFD Sender: No OFD packet to send [20:40:17]Write to MH i2c: 01 00 00 F3 1F 12 [20:40:17]Write i2c OK [20:40:17]MH_I2C_Read... [20:40:17]Read from MH i2c: 01 [20:40:17]MH_I2C_Read... [20:40:17]Read from MH i2c: 01 07 00 [20:40:17]MH_I2C_Read... [20:40:17]Read from MH i2c: 01 07 00 F3 1F 00 03 00 00 00 FF 0F 2A [20:40:17]state=3 [20:40:17]No paper [20:40:17]Cover opened [20:40:20]OFD Sender: No OFD packet to send [20:40:22]Write to MH i2c: 01 00 00 F4 1F 13 [20:40:22]Write i2c OK [20:40:22]MH_I2C_Read... [20:40:22]Read from MH i2c: 01 [20:40:22]MH_I2C_Read... [20:40:22]Read from MH i2c: 01 07 00 [20:40:22]MH_I2C_Read... [20:40:22]Read from MH i2c: 01 07 00 F4 1F 00 03 00 00 00 FF 0F 2B [20:40:22]state=3 [20:40:22]No paper [20:40:22]Cover opened [20:40:25]OFD Sender: No OFD packet to send [20:40:27]Write to MH i2c: 01 00 00 F5 1F 14 [20:40:27]Write i2c OK [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: 01 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: 01 07 00 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: 01 07 00 F5 1F 00 03 00 00 00 FF 0F 2C [20:40:27]state=3 [20:40:27]No paper [20:40:27]Cover opened [20:40:30]OFD Sender: No OFD packet to send [20:40:32]Write to MH i2c: 01 00 00 F6 1F 15 [20:40:32]Write i2c OK [20:40:32]MH_I2C_Read... [20:40:32]Read from MH i2c: 01 [20:40:32]MH_I2C_Read... [20:40:32]Read from MH i2c: 01 07 00 [20:40:32]MH_I2C_Read... [20:40:32]Read from MH i2c: 01 07 00 F6 1F 00 03 00 00 00 FF 0F 2D [20:40:32]state=3 [20:40:32]No paper [20:40:32]Cover opened [20:40:35]OFD Sender: No OFD packet to send [20:40:37]Write to MH i2c: 01 00 00 F7 1F 16 [20:40:37]Write i2c OK [20:40:37]MH_I2C_Read... [20:40:37]Read from MH i2c: 01 [20:40:37]MH_I2C_Read... [20:40:37]Read from MH i2c: 01 07 00 [20:40:37]MH_I2C_Read... [20:40:37]Read from MH i2c: 01 07 00 F7 1F 00 03 00 00 00 FF 0F 2E [20:40:37]state=3 [20:40:37]No paper [20:40:37]Cover opened [20:40:40]OFD Sender: No OFD packet to send [20:40:42]Write to MH i2c: 01 00 00 F8 1F 17 [20:40:42]Write i2c OK [20:40:42]MH_I2C_Read... [20:40:42]Read from MH i2c: 01 [20:40:42]MH_I2C_Read... [20:40:42]Read from MH i2c: 01 07 00 [20:40:42]MH_I2C_Read... [20:40:42]Read from MH i2c: 01 07 00 F8 1F 00 03 00 00 00 FF 0F 2F [20:40:42]state=3 [20:40:42]No paper [20:40:42]Cover opened [20:40:45]OFD Sender: No OFD packet to send [20:40:47]Write to MH i2c: 01 00 00 F9 1F 18 [20:40:47]Write i2c OK [20:40:47]MH_I2C_Read... [20:40:47]Read from MH i2c: 01 [20:40:47]MH_I2C_Read... [20:40:47]Read from MH i2c: 01 07 00 [20:40:47]MH_I2C_Read... [20:40:47]Read from MH i2c: 01 07 00 F9 1F 00 03 00 00 00 FF 0F 30 [20:40:47]state=3 [20:40:47]No paper [20:40:47]Cover opened [20:40:50]OFD Sender: No OFD packet to send [20:40:52]Write to MH i2c: 01 00 00 FA 1F 19 [20:40:52]Write i2c OK [20:40:52]MH_I2C_Read... [20:40:52]Read from MH i2c: 01 [20:40:52]MH_I2C_Read... [20:40:52]Read from MH i2c: 01 07 00 [20:40:52]MH_I2C_Read... [20:40:52]Read from MH i2c: 01 07 00 FA 1F 00 03 00 00 00 FF 0F 31 [20:40:52]state=3 [20:40:52]No paper [20:40:52]Cover opened [20:40:55]OFD Sender: No OFD packet to send [20:40:57]Write to MH i2c: 01 00 00 FB 1F 1A [20:40:57]Write i2c OK [20:40:57]MH_I2C_Read... [20:40:57]Read from MH i2c: 01 [20:40:57]MH_I2C_Read... [20:40:57]Read from MH i2c: 01 07 00 [20:40:57]MH_I2C_Read... [20:40:57]Read from MH i2c: 01 07 00 FB 1F 00 03 00 00 00 FF 0F 32 [20:40:57]state=3 [20:40:57]No paper [20:40:57]Cover opened [20:41:00]OFD Sender: No OFD packet to send [20:41:02]Write to MH i2c: 01 00 00 FC 1F 1B [20:41:02]Write i2c OK [20:41:02]MH_I2C_Read... [20:41:02]Read from MH i2c: 01 [20:41:02]MH_I2C_Read... [20:41:02]Read from MH i2c: 01 07 00 [20:41:02]MH_I2C_Read... [20:41:02]Read from MH i2c: 01 07 00 FC 1F 00 03 00 00 00 FF 0F 33 [20:41:02]state=3 [20:41:02]No paper [20:41:02]Cover opened [20:41:05]OFD Sender: No OFD packet to send [20:41:07]Write to MH i2c: 01 00 00 FD 1F 1C [20:41:07]Write i2c OK [20:41:07]MH_I2C_Read... [20:41:07]Read from MH i2c: 01 [20:41:07]MH_I2C_Read... [20:41:07]Read from MH i2c: 01 07 00 [20:41:07]MH_I2C_Read... [20:41:07]Read from MH i2c: 01 07 00 FD 1F 00 03 00 00 00 FF 0F 34 [20:41:07]state=3 [20:41:07]No paper [20:41:07]Cover opened [20:41:10]OFD Sender: No OFD packet to send [20:41:12]Write to MH i2c: 01 00 00 FE 1F 1D [20:41:12]Write i2c OK [20:41:12]MH_I2C_Read... [20:41:12]Read from MH i2c: 01 [20:41:12]MH_I2C_Read... [20:41:12]Read from MH i2c: 01 07 00 [20:41:12]MH_I2C_Read... [20:41:12]Read from MH i2c: 01 07 00 FE 1F 00 03 00 00 00 FF 0F 35 [20:41:12]state=3 [20:41:12]No paper [20:41:12]Cover opened [20:41:15]OFD Sender: No OFD packet to send [20:41:17]Write to MH i2c: 01 00 00 FF 1F 1E [20:41:17]Write i2c OK [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: 01 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: 01 07 00 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: 01 07 00 FF 1F 00 03 00 00 00 FF 0F 36 [20:41:17]state=3 [20:41:17]No paper [20:41:17]Cover opened [20:41:20]OFD Sender: No OFD packet to send [20:41:22]Write to MH i2c: 01 00 00 00 20 20 [20:41:22]Write i2c OK [20:41:22]MH_I2C_Read... [20:41:22]Read from MH i2c: 01 [20:41:22]MH_I2C_Read... [20:41:22]Read from MH i2c: 01 07 00 [20:41:22]MH_I2C_Read... [20:41:22]Read from MH i2c: 01 07 00 00 20 00 03 00 00 00 FF 0F 38 [20:41:22]state=3 [20:41:22]No paper [20:41:22]Cover opened [20:41:25]OFD Sender: No OFD packet to send [20:41:27]Write to MH i2c: 01 00 00 01 20 21 [20:41:27]Write i2c OK [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: 01 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: 01 07 00 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: 01 07 00 01 20 00 03 00 00 00 FF 0F 39 [20:41:27]state=3 [20:41:27]No paper [20:41:27]Cover opened [20:41:30]OFD Sender: No OFD packet to send [20:41:32]Write to MH i2c: 01 00 00 02 20 22 [20:41:32]Write i2c OK [20:41:32]MH_I2C_Read... [20:41:32]Read from MH i2c: 01 [20:41:32]MH_I2C_Read... [20:41:32]Read from MH i2c: 01 07 00 [20:41:32]MH_I2C_Read... [20:41:32]Read from MH i2c: 01 07 00 02 20 00 03 00 00 00 FF 0F 3A [20:41:32]state=3 [20:41:32]No paper [20:41:32]Cover opened [20:41:35]OFD Sender: No OFD packet to send [20:41:37]Write to MH i2c: 01 00 00 03 20 23 [20:41:37]Write i2c OK [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: 01 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: 01 07 00 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: 01 07 00 03 20 00 03 00 00 00 FF 0F 3B [20:41:37]state=3 [20:41:37]No paper [20:41:37]Cover opened [20:41:40]OFD Sender: No OFD packet to send [20:41:42]Write to MH i2c: 01 00 00 04 20 24 [20:41:42]Write i2c OK [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: 01 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: 01 07 00 [20:41:42]MH_I2C_Read... [20:41:42]Read from MH i2c: 01 07 00 04 20 00 03 00 00 00 FF 0F 3C [20:41:42]state=3 [20:41:42]No paper [20:41:42]Cover opened [20:41:45]OFD Sender: No OFD packet to send [20:41:47]Write to MH i2c: 01 00 00 05 20 25 [20:41:47]Write i2c OK [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: 01 [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: 01 07 00 [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: 01 07 00 05 20 00 03 00 00 00 FF 0F 3D [20:41:47]state=3 [20:41:47]No paper [20:41:47]Cover opened [20:41:50]OFD Sender: No OFD packet to send [20:41:52]Write to MH i2c: 01 00 00 06 20 26 [20:41:52]Write i2c OK [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: 01 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: 01 07 00 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: 01 07 00 06 20 00 03 00 00 00 FF 0F 3E [20:41:52]state=3 [20:41:52]No paper [20:41:52]Cover opened [20:41:55]OFD Sender: No OFD packet to send [20:41:57]Write to MH i2c: 01 00 00 07 20 27 [20:41:57]Write i2c OK [20:41:57]MH_I2C_Read... [20:41:57]Read from MH i2c: 01 [20:41:57]MH_I2C_Read... [20:41:57]Read from MH i2c: 01 07 00 [20:41:57]MH_I2C_Read... [20:41:57]Read from MH i2c: 01 07 00 07 20 00 03 00 00 00 FF 0F 3F [20:41:57]state=3 [20:41:57]No paper [20:41:57]Cover opened [20:42:00]OFD Sender: No OFD packet to send [20:42:02]Write to MH i2c: 01 00 00 08 20 28 [20:42:02]Write i2c OK [20:42:02]MH_I2C_Read... [20:42:02]Read from MH i2c: 01 [20:42:02]MH_I2C_Read... [20:42:02]Read from MH i2c: 01 07 00 [20:42:02]MH_I2C_Read... [20:42:02]Read from MH i2c: 01 07 00 08 20 00 03 00 00 00 FF 0F 40 [20:42:02]state=3 [20:42:02]No paper [20:42:02]Cover opened [20:42:05]OFD Sender: No OFD packet to send [20:42:07]Write to MH i2c: 01 00 00 09 20 29 [20:42:07]Write i2c OK [20:42:07]MH_I2C_Read... [20:42:07]Read from MH i2c: 01 [20:42:07]MH_I2C_Read... [20:42:07]Read from MH i2c: 01 07 00 [20:42:07]MH_I2C_Read... [20:42:07]Read from MH i2c: 01 07 00 09 20 00 03 00 00 00 FF 0F 41 [20:42:07]state=3 [20:42:07]No paper [20:42:07]Cover opened [20:42:10]OFD Sender: No OFD packet to send [20:42:12]Write to MH i2c: 01 00 00 0A 20 2A [20:42:12]Write i2c OK [20:42:12]MH_I2C_Read... [20:42:12]Read from MH i2c: 01 [20:42:12]MH_I2C_Read... [20:42:12]Read from MH i2c: 01 07 00 [20:42:12]MH_I2C_Read... [20:42:12]Read from MH i2c: 01 07 00 0A 20 00 03 00 00 00 FF 0F 42 [20:42:12]state=3 [20:42:12]No paper [20:42:12]Cover opened [20:42:15]OFD Sender: No OFD packet to send [20:42:17]Write to MH i2c: 01 00 00 0B 20 2B [20:42:17]Write i2c OK [20:42:17]MH_I2C_Read... [20:42:17]Read from MH i2c: 01 [20:42:17]MH_I2C_Read... [20:42:17]Read from MH i2c: 01 07 00 [20:42:17]MH_I2C_Read... [20:42:17]Read from MH i2c: 01 07 00 0B 20 00 03 00 00 00 FF 0F 43 [20:42:17]state=3 [20:42:17]No paper [20:42:17]Cover opened [20:42:20]OFD Sender: No OFD packet to send [20:42:22]Write to MH i2c: 01 00 00 0C 20 2C [20:42:22]Write i2c OK [20:42:22]MH_I2C_Read... [20:42:22]Read from MH i2c: 01 [20:42:22]MH_I2C_Read... [20:42:22]Read from MH i2c: 01 07 00 [20:42:22]MH_I2C_Read... [20:42:22]Read from MH i2c: 01 07 00 0C 20 00 03 00 00 00 FF 0F 44 [20:42:22]state=3 [20:42:22]No paper [20:42:22]Cover opened [20:42:25]OFD Sender: No OFD packet to send [20:42:27]Write to MH i2c: 01 00 00 0D 20 2D [20:42:27]Write i2c OK [20:42:27]MH_I2C_Read... [20:42:27]Read from MH i2c: 01 [20:42:27]MH_I2C_Read... [20:42:27]Read from MH i2c: 01 07 00 [20:42:27]MH_I2C_Read... [20:42:27]Read from MH i2c: 01 07 00 0D 20 00 03 00 00 00 FF 0F 45 [20:42:27]state=3 [20:42:27]No paper [20:42:27]Cover opened [20:42:30]OFD Sender: No OFD packet to send [20:42:32]Write to MH i2c: 01 00 00 0E 20 2E [20:42:32]Write i2c OK [20:42:32]MH_I2C_Read... [20:42:32]Read from MH i2c: 01 [20:42:32]MH_I2C_Read... [20:42:32]Read from MH i2c: 01 07 00 [20:42:32]MH_I2C_Read... [20:42:32]Read from MH i2c: 01 07 00 0E 20 00 03 00 00 00 FF 0F 46 [20:42:32]state=3 [20:42:32]No paper [20:42:32]Cover opened [20:42:35]OFD Sender: No OFD packet to send [20:42:37]Write to MH i2c: 01 00 00 0F 20 2F [20:42:37]Write i2c OK [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: 01 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: 01 07 00 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: 01 07 00 0F 20 00 03 00 00 00 FF 0F 47 [20:42:37]state=3 [20:42:37]No paper [20:42:37]Cover opened [20:42:40]OFD Sender: No OFD packet to send [20:42:42]Write to MH i2c: 01 00 00 10 20 30 [20:42:42]Write i2c OK [20:42:42]MH_I2C_Read... [20:42:42]Read from MH i2c: 01 [20:42:42]MH_I2C_Read... [20:42:42]Read from MH i2c: 01 07 00 [20:42:42]MH_I2C_Read... [20:42:42]Read from MH i2c: 01 07 00 10 20 00 03 00 00 00 FF 0F 48 [20:42:42]state=3 [20:42:42]No paper [20:42:42]Cover opened [20:42:45]OFD Sender: No OFD packet to send [20:42:47]Write to MH i2c: 01 00 00 11 20 31 [20:42:47]Write i2c OK [20:42:47]MH_I2C_Read... [20:42:47]Read from MH i2c: 01 [20:42:47]MH_I2C_Read... [20:42:47]Read from MH i2c: 01 07 00 [20:42:47]MH_I2C_Read... [20:42:47]Read from MH i2c: 01 07 00 11 20 00 03 00 00 00 FF 0F 49 [20:42:47]state=3 [20:42:47]No paper [20:42:47]Cover opened [20:42:50]OFD Sender: No OFD packet to send [20:42:52]Write to MH i2c: 01 00 00 12 20 32 [20:42:52]Write i2c OK [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: 01 [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: 01 07 00 [20:42:52]MH_I2C_Read... [20:42:52]Read from MH i2c: 01 07 00 12 20 00 03 00 00 00 FF 0F 4A [20:42:52]state=3 [20:42:52]No paper [20:42:52]Cover opened [20:42:55]OFD Sender: No OFD packet to send [20:42:57]Write to MH i2c: 01 00 00 13 20 33 [20:42:57]Write i2c OK [20:42:57]MH_I2C_Read... [20:42:57]Read from MH i2c: 01 [20:42:57]MH_I2C_Read... [20:42:57]Read from MH i2c: 01 07 00 [20:42:57]MH_I2C_Read... [20:42:57]Read from MH i2c: 01 07 00 13 20 00 03 00 00 00 FF 0F 4B [20:42:57]state=3 [20:42:57]No paper [20:42:57]Cover opened [20:43:00]OFD Sender: No OFD packet to send [20:43:02]Write to MH i2c: 01 00 00 14 20 34 [20:43:02]Write i2c OK [20:43:02]MH_I2C_Read... [20:43:02]Read from MH i2c: 01 [20:43:02]MH_I2C_Read... [20:43:02]Read from MH i2c: 01 07 00 [20:43:02]MH_I2C_Read... [20:43:02]Read from MH i2c: 01 07 00 14 20 00 03 00 00 00 FF 0F 4C [20:43:02]state=3 [20:43:02]No paper [20:43:02]Cover opened [20:43:05]OFD Sender: No OFD packet to send [20:43:07]Write to MH i2c: 01 00 00 15 20 35 [20:43:07]Write i2c OK [20:43:07]MH_I2C_Read... [20:43:07]Read from MH i2c: 01 [20:43:07]MH_I2C_Read... [20:43:07]Read from MH i2c: 01 07 00 [20:43:07]MH_I2C_Read... [20:43:07]Read from MH i2c: 01 07 00 15 20 00 03 00 00 00 FF 0F 4D [20:43:07]state=3 [20:43:07]No paper [20:43:07]Cover opened [20:43:10]OFD Sender: No OFD packet to send [20:43:12]Write to MH i2c: 01 00 00 16 20 36 [20:43:12]Write i2c OK [20:43:12]MH_I2C_Read... [20:43:12]Read from MH i2c: 01 [20:43:12]MH_I2C_Read... [20:43:12]Read from MH i2c: 01 07 00 [20:43:12]MH_I2C_Read... [20:43:12]Read from MH i2c: 01 07 00 16 20 00 03 00 00 00 FF 0F 4E [20:43:12]state=3 [20:43:12]No paper [20:43:12]Cover opened [20:43:15]OFD Sender: No OFD packet to send [20:43:17]Write to MH i2c: 01 00 00 17 20 37 [20:43:17]Write i2c OK [20:43:17]MH_I2C_Read... [20:43:17]Read from MH i2c: 01 [20:43:17]MH_I2C_Read... [20:43:17]Read from MH i2c: 01 07 00 [20:43:17]MH_I2C_Read... [20:43:17]Read from MH i2c: 01 07 00 17 20 00 03 00 00 00 FF 0F 4F [20:43:17]state=3 [20:43:17]No paper [20:43:17]Cover opened [20:43:20]OFD Sender: No OFD packet to send [20:43:22]Write to MH i2c: 01 00 00 18 20 38 [20:43:22]Write i2c OK [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: 01 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: 01 07 00 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: 01 07 00 18 20 00 03 00 00 00 FF 0F 50 [20:43:22]state=3 [20:43:22]No paper [20:43:22]Cover opened [20:43:25]OFD Sender: No OFD packet to send [20:43:27]Write to MH i2c: 01 00 00 19 20 39 [20:43:27]Write i2c OK [20:43:27]MH_I2C_Read... [20:43:27]Read from MH i2c: 01 [20:43:27]MH_I2C_Read... [20:43:27]Read from MH i2c: 01 07 00 [20:43:27]MH_I2C_Read... [20:43:27]Read from MH i2c: 01 07 00 19 20 00 03 00 00 00 FF 0F 51 [20:43:27]state=3 [20:43:27]No paper [20:43:27]Cover opened [20:43:30]OFD Sender: No OFD packet to send [20:43:32]Write to MH i2c: 01 00 00 1A 20 3A [20:43:32]Write i2c OK [20:43:32]MH_I2C_Read... [20:43:32]Read from MH i2c: 01 [20:43:32]MH_I2C_Read... [20:43:32]Read from MH i2c: 01 07 00 [20:43:32]MH_I2C_Read... [20:43:32]Read from MH i2c: 01 07 00 1A 20 00 03 00 00 00 FF 0F 52 [20:43:32]state=3 [20:43:32]No paper [20:43:32]Cover opened [20:43:35]OFD Sender: No OFD packet to send [20:43:37]Write to MH i2c: 01 00 00 1B 20 3B [20:43:37]Write i2c OK [20:43:37]MH_I2C_Read... [20:43:37]Read from MH i2c: 01 [20:43:37]MH_I2C_Read... [20:43:37]Read from MH i2c: 01 07 00 [20:43:37]MH_I2C_Read... [20:43:37]Read from MH i2c: 01 07 00 1B 20 00 03 00 00 00 FF 0F 53 [20:43:37]state=3 [20:43:37]No paper [20:43:37]Cover opened [20:43:40]OFD Sender: No OFD packet to send [20:43:42]Write to MH i2c: 01 00 00 1C 20 3C [20:43:42]Write i2c OK [20:43:42]MH_I2C_Read... [20:43:42]Read from MH i2c: 01 [20:43:42]MH_I2C_Read... [20:43:42]Read from MH i2c: 01 07 00 [20:43:42]MH_I2C_Read... [20:43:42]Read from MH i2c: 01 07 00 1C 20 00 03 00 00 00 FF 0F 54 [20:43:42]state=3 [20:43:42]No paper [20:43:42]Cover opened [20:43:45]OFD Sender: No OFD packet to send [20:43:47]Write to MH i2c: 01 00 00 1D 20 3D [20:43:47]Write i2c OK [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: 01 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: 01 07 00 [20:43:47]MH_I2C_Read... [20:43:47]Read from MH i2c: 01 07 00 1D 20 00 03 00 00 00 FF 0F 55 [20:43:47]state=3 [20:43:47]No paper [20:43:47]Cover opened [20:43:50]OFD Sender: No OFD packet to send [20:43:52]Write to MH i2c: 01 00 00 1E 20 3E [20:43:52]Write i2c OK [20:43:52]MH_I2C_Read... [20:43:52]Read from MH i2c: 01 [20:43:52]MH_I2C_Read... [20:43:52]Read from MH i2c: 01 07 00 [20:43:52]MH_I2C_Read... [20:43:52]Read from MH i2c: 01 07 00 1E 20 00 03 00 00 00 FF 0F 56 [20:43:52]state=3 [20:43:52]No paper [20:43:52]Cover opened [20:43:55]OFD Sender: No OFD packet to send [20:43:57]Write to MH i2c: 01 00 00 1F 20 3F [20:43:57]Write i2c OK [20:43:57]MH_I2C_Read... [20:43:57]Read from MH i2c: 01 [20:43:57]MH_I2C_Read... [20:43:57]Read from MH i2c: 01 07 00 [20:43:57]MH_I2C_Read... [20:43:57]Read from MH i2c: 01 07 00 1F 20 00 03 00 00 00 FF 0F 57 [20:43:57]state=3 [20:43:57]No paper [20:43:57]Cover opened [20:44:00]OFD Sender: No OFD packet to send [20:44:02]Write to MH i2c: 01 00 00 20 20 40 [20:44:02]Write i2c OK [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: 01 [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: 01 07 00 [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: 01 07 00 20 20 00 03 00 00 00 FF 0F 58 [20:44:02]state=3 [20:44:02]No paper [20:44:02]Cover opened [20:44:05]OFD Sender: No OFD packet to send [20:44:07]Write to MH i2c: 01 00 00 21 20 41 [20:44:07]Write i2c OK [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: 01 [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: 01 07 00 [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: 01 07 00 21 20 00 03 00 00 00 FF 0F 59 [20:44:07]state=3 [20:44:07]No paper [20:44:07]Cover opened [20:44:10]OFD Sender: No OFD packet to send [20:44:12]Write to MH i2c: 01 00 00 22 20 42 [20:44:12]Write i2c OK [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: 01 [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: 01 07 00 [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: 01 07 00 22 20 00 03 00 00 00 FF 0F 5A [20:44:12]state=3 [20:44:12]No paper [20:44:12]Cover opened [20:44:15]OFD Sender: No OFD packet to send [20:44:17]Write to MH i2c: 01 00 00 23 20 43 [20:44:17]Write i2c OK [20:44:17]MH_I2C_Read... [20:44:17]Read from MH i2c: 01 [20:44:17]MH_I2C_Read... [20:44:17]Read from MH i2c: 01 07 00 [20:44:17]MH_I2C_Read... [20:44:17]Read from MH i2c: 01 07 00 23 20 00 03 00 00 00 FF 0F 5B [20:44:17]state=3 [20:44:17]No paper [20:44:17]Cover opened [20:44:20]OFD Sender: No OFD packet to send [20:44:22]Write to MH i2c: 01 00 00 24 20 44 [20:44:22]Write i2c OK [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: 01 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: 01 07 00 [20:44:22]MH_I2C_Read... [20:44:22]Read from MH i2c: 01 07 00 24 20 00 03 00 00 00 FF 0F 5C [20:44:22]state=3 [20:44:22]No paper [20:44:22]Cover opened [20:44:25]OFD Sender: No OFD packet to send [20:44:27]Write to MH i2c: 01 00 00 25 20 45 [20:44:27]Write i2c OK [20:44:27]MH_I2C_Read... [20:44:27]Read from MH i2c: 01 [20:44:27]MH_I2C_Read... [20:44:27]Read from MH i2c: 01 07 00 [20:44:27]MH_I2C_Read... [20:44:27]Read from MH i2c: 01 07 00 25 20 00 03 00 00 00 FF 0F 5D [20:44:27]state=3 [20:44:27]No paper [20:44:27]Cover opened [20:44:30]OFD Sender: No OFD packet to send [20:44:32]Write to MH i2c: 01 00 00 26 20 46 [20:44:32]Write i2c OK [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: 01 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: 01 07 00 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: 01 07 00 26 20 00 03 00 00 00 FF 0F 5E [20:44:32]state=3 [20:44:32]No paper [20:44:32]Cover opened [20:44:35]OFD Sender: No OFD packet to send [20:44:37]Write to MH i2c: 01 00 00 27 20 47 [20:44:37]Write i2c OK [20:44:37]MH_I2C_Read... [20:44:37]Read from MH i2c: 01 [20:44:37]MH_I2C_Read... [20:44:37]Read from MH i2c: 01 07 00 [20:44:37]MH_I2C_Read... [20:44:37]Read from MH i2c: 01 07 00 27 20 00 03 00 00 00 FF 0F 5F [20:44:37]state=3 [20:44:37]No paper [20:44:37]Cover opened [20:44:40]OFD Sender: No OFD packet to send [20:44:42]Write to MH i2c: 01 00 00 28 20 48 [20:44:42]Write i2c OK [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: 01 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: 01 07 00 [20:44:42]MH_I2C_Read... [20:44:42]Read from MH i2c: 01 07 00 28 20 00 03 00 00 00 FF 0F 60 [20:44:42]state=3 [20:44:42]No paper [20:44:42]Cover opened [20:44:45]OFD Sender: No OFD packet to send [20:44:47]Write to MH i2c: 01 00 00 29 20 49 [20:44:47]Write i2c OK [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: 01 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: 01 07 00 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: 01 07 00 29 20 00 03 00 00 00 FF 0F 61 [20:44:47]state=3 [20:44:47]No paper [20:44:47]Cover opened [20:44:50]OFD Sender: No OFD packet to send [20:44:52]Write to MH i2c: 01 00 00 2A 20 4A [20:44:52]Write i2c OK [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: 01 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: 01 07 00 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: 01 07 00 2A 20 00 03 00 00 00 FF 0F 62 [20:44:52]state=3 [20:44:52]No paper [20:44:52]Cover opened [20:44:55]OFD Sender: No OFD packet to send [20:44:57]Write to MH i2c: 01 00 00 2B 20 4B [20:44:57]Write i2c OK [20:44:57]MH_I2C_Read... [20:44:57]Read from MH i2c: 01 [20:44:57]MH_I2C_Read... [20:44:57]Read from MH i2c: 01 07 00 [20:44:57]MH_I2C_Read... [20:44:57]Read from MH i2c: 01 07 00 2B 20 00 03 00 00 00 FF 0F 63 [20:44:57]state=3 [20:44:57]No paper [20:44:57]Cover opened [20:45:00]OFD Sender: No OFD packet to send [20:45:02]Write to MH i2c: 01 00 00 2C 20 4C [20:45:02]Write i2c OK [20:45:02]MH_I2C_Read... [20:45:02]Read from MH i2c: 01 [20:45:02]MH_I2C_Read... [20:45:02]Read from MH i2c: 01 07 00 [20:45:02]MH_I2C_Read... [20:45:02]Read from MH i2c: 01 07 00 2C 20 00 03 00 00 00 FF 0F 64 [20:45:02]state=3 [20:45:02]No paper [20:45:02]Cover opened [20:45:05]OFD Sender: No OFD packet to send [20:45:07]Write to MH i2c: 01 00 00 2D 20 4D [20:45:07]Write i2c OK [20:45:07]MH_I2C_Read... [20:45:07]Read from MH i2c: 01 [20:45:07]MH_I2C_Read... [20:45:07]Read from MH i2c: 01 07 00 [20:45:07]MH_I2C_Read... [20:45:07]Read from MH i2c: 01 07 00 2D 20 00 03 00 00 00 FF 0F 65 [20:45:07]state=3 [20:45:07]No paper [20:45:07]Cover opened [20:45:10]OFD Sender: No OFD packet to send [20:45:12]Write to MH i2c: 01 00 00 2E 20 4E [20:45:12]Write i2c OK [20:45:12]MH_I2C_Read... [20:45:12]Read from MH i2c: 01 [20:45:12]MH_I2C_Read... [20:45:12]Read from MH i2c: 01 07 00 [20:45:12]MH_I2C_Read... [20:45:12]Read from MH i2c: 01 07 00 2E 20 00 03 00 00 00 FF 0F 66 [20:45:12]state=3 [20:45:12]No paper [20:45:12]Cover opened [20:45:15]OFD Sender: No OFD packet to send [20:45:17]Write to MH i2c: 01 00 00 2F 20 4F [20:45:17]Write i2c OK [20:45:17]MH_I2C_Read... [20:45:17]Read from MH i2c: 01 [20:45:17]MH_I2C_Read... [20:45:17]Read from MH i2c: 01 07 00 [20:45:17]MH_I2C_Read... [20:45:17]Read from MH i2c: 01 07 00 2F 20 00 03 00 00 00 FF 0F 67 [20:45:17]state=3 [20:45:17]No paper [20:45:17]Cover opened [20:45:20]OFD Sender: No OFD packet to send [20:45:22]Write to MH i2c: 01 00 00 30 20 50 [20:45:22]Write i2c OK [20:45:22]MH_I2C_Read... [20:45:22]Read from MH i2c: 01 [20:45:22]MH_I2C_Read... [20:45:22]Read from MH i2c: 01 07 00 [20:45:22]MH_I2C_Read... [20:45:22]Read from MH i2c: 01 07 00 30 20 00 03 00 00 00 FF 0F 68 [20:45:22]state=3 [20:45:22]No paper [20:45:22]Cover opened [20:45:25]OFD Sender: No OFD packet to send [20:45:27]Write to MH i2c: 01 00 00 31 20 51 [20:45:27]Write i2c OK [20:45:27]MH_I2C_Read... [20:45:27]Read from MH i2c: 01 [20:45:27]MH_I2C_Read... [20:45:27]Read from MH i2c: 01 07 00 [20:45:27]MH_I2C_Read... [20:45:27]Read from MH i2c: 01 07 00 31 20 00 03 00 00 00 FF 0F 69 [20:45:27]state=3 [20:45:27]No paper [20:45:27]Cover opened [20:45:30]OFD Sender: No OFD packet to send [20:45:32]Write to MH i2c: 01 00 00 32 20 52 [20:45:32]Write i2c OK [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: 01 [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: 01 07 00 [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: 01 07 00 32 20 00 03 00 00 00 FF 0F 6A [20:45:32]state=3 [20:45:32]No paper [20:45:32]Cover opened [20:45:35]OFD Sender: No OFD packet to send [20:45:37]Write to MH i2c: 01 00 00 33 20 53 [20:45:37]Write i2c OK [20:45:37]MH_I2C_Read... [20:45:37]Read from MH i2c: 01 [20:45:37]MH_I2C_Read... [20:45:37]Read from MH i2c: 01 07 00 [20:45:37]MH_I2C_Read... [20:45:37]Read from MH i2c: 01 07 00 33 20 00 03 00 00 00 FF 0F 6B [20:45:37]state=3 [20:45:37]No paper [20:45:37]Cover opened [20:45:40]OFD Sender: No OFD packet to send [20:45:42]Write to MH i2c: 01 00 00 34 20 54 [20:45:42]Write i2c OK [20:45:42]MH_I2C_Read... [20:45:42]Read from MH i2c: 01 [20:45:42]MH_I2C_Read... [20:45:42]Read from MH i2c: 01 07 00 [20:45:42]MH_I2C_Read... [20:45:42]Read from MH i2c: 01 07 00 34 20 00 03 00 00 00 FF 0F 6C [20:45:42]state=3 [20:45:42]No paper [20:45:42]Cover opened [20:45:45]OFD Sender: No OFD packet to send [20:45:47]Write to MH i2c: 01 00 00 35 20 55 [20:45:47]Write i2c OK [20:45:47]MH_I2C_Read... [20:45:47]Read from MH i2c: 01 [20:45:47]MH_I2C_Read... [20:45:47]Read from MH i2c: 01 07 00 [20:45:47]MH_I2C_Read... [20:45:47]Read from MH i2c: 01 07 00 35 20 00 03 00 00 00 FF 0F 6D [20:45:47]state=3 [20:45:47]No paper [20:45:47]Cover opened [20:45:50]OFD Sender: No OFD packet to send [20:45:52]Write to MH i2c: 01 00 00 36 20 56 [20:45:52]Write i2c OK [20:45:52]MH_I2C_Read... [20:45:52]Read from MH i2c: 01 [20:45:52]MH_I2C_Read... [20:45:52]Read from MH i2c: 01 07 00 [20:45:52]MH_I2C_Read... [20:45:52]Read from MH i2c: 01 07 00 36 20 00 03 00 00 00 FF 0F 6E [20:45:52]state=3 [20:45:52]No paper [20:45:52]Cover opened [20:45:55]OFD Sender: No OFD packet to send [20:45:57]Write to MH i2c: 01 00 00 37 20 57 [20:45:57]Write i2c OK [20:45:57]MH_I2C_Read... [20:45:57]Read from MH i2c: 01 [20:45:57]MH_I2C_Read... [20:45:57]Read from MH i2c: 01 07 00 [20:45:57]MH_I2C_Read... [20:45:57]Read from MH i2c: 01 07 00 37 20 00 03 00 00 00 FF 0F 6F [20:45:57]state=3 [20:45:57]No paper [20:45:57]Cover opened [20:46:00]OFD Sender: No OFD packet to send [20:46:02]Write to MH i2c: 01 00 00 38 20 58 [20:46:02]Write i2c OK [20:46:02]MH_I2C_Read... [20:46:02]Read from MH i2c: 01 [20:46:02]MH_I2C_Read... [20:46:02]Read from MH i2c: 01 07 00 [20:46:02]MH_I2C_Read... [20:46:02]Read from MH i2c: 01 07 00 38 20 00 03 00 00 00 FF 0F 70 [20:46:02]state=3 [20:46:02]No paper [20:46:02]Cover opened [20:46:05]OFD Sender: No OFD packet to send [20:46:07]Write to MH i2c: 01 00 00 39 20 59 [20:46:07]Write i2c OK [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: 01 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: 01 07 00 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: 01 07 00 39 20 00 03 00 00 00 FF 0F 71 [20:46:07]state=3 [20:46:07]No paper [20:46:07]Cover opened [20:46:10]OFD Sender: No OFD packet to send [20:46:12]Write to MH i2c: 01 00 00 3A 20 5A [20:46:12]Write i2c OK [20:46:12]MH_I2C_Read... [20:46:12]Read from MH i2c: 01 [20:46:12]MH_I2C_Read... [20:46:12]Read from MH i2c: 01 07 00 [20:46:12]MH_I2C_Read... [20:46:12]Read from MH i2c: 01 07 00 3A 20 00 03 00 00 00 FF 0F 72 [20:46:12]state=3 [20:46:12]No paper [20:46:12]Cover opened [20:46:15]OFD Sender: No OFD packet to send [20:46:17]Write to MH i2c: 01 00 00 3B 20 5B [20:46:17]Write i2c OK [20:46:17]MH_I2C_Read... [20:46:17]Read from MH i2c: 01 [20:46:17]MH_I2C_Read... [20:46:17]Read from MH i2c: 01 07 00 [20:46:17]MH_I2C_Read... [20:46:17]Read from MH i2c: 01 07 00 3B 20 00 03 00 00 00 FF 0F 73 [20:46:17]state=3 [20:46:17]No paper [20:46:17]Cover opened [20:46:20]OFD Sender: No OFD packet to send [20:46:22]Write to MH i2c: 01 00 00 3C 20 5C [20:46:22]Write i2c OK [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: 01 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: 01 07 00 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: 01 07 00 3C 20 00 03 00 00 00 FF 0F 74 [20:46:22]state=3 [20:46:22]No paper [20:46:22]Cover opened [20:46:25]OFD Sender: No OFD packet to send [20:46:27]Write to MH i2c: 01 00 00 3D 20 5D [20:46:27]Write i2c OK [20:46:27]MH_I2C_Read... [20:46:27]Read from MH i2c: 01 [20:46:27]MH_I2C_Read... [20:46:27]Read from MH i2c: 01 07 00 [20:46:27]MH_I2C_Read... [20:46:27]Read from MH i2c: 01 07 00 3D 20 00 03 00 00 00 FF 0F 75 [20:46:27]state=3 [20:46:27]No paper [20:46:27]Cover opened [20:46:30]OFD Sender: No OFD packet to send [20:46:32]Write to MH i2c: 01 00 00 3E 20 5E [20:46:32]Write i2c OK [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: 01 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: 01 07 00 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: 01 07 00 3E 20 00 03 00 00 00 FF 0F 76 [20:46:32]state=3 [20:46:32]No paper [20:46:32]Cover opened [20:46:35]OFD Sender: No OFD packet to send [20:46:37]Write to MH i2c: 01 00 00 3F 20 5F [20:46:37]Write i2c OK [20:46:37]MH_I2C_Read... [20:46:37]Read from MH i2c: 01 [20:46:37]MH_I2C_Read... [20:46:37]Read from MH i2c: 01 07 00 [20:46:37]MH_I2C_Read... [20:46:37]Read from MH i2c: 01 07 00 3F 20 00 03 00 00 00 FF 0F 77 [20:46:37]state=3 [20:46:37]No paper [20:46:37]Cover opened [20:46:40]OFD Sender: No OFD packet to send [20:46:42]Write to MH i2c: 01 00 00 40 20 60 [20:46:42]Write i2c OK [20:46:42]MH_I2C_Read... [20:46:42]Read from MH i2c: 01 [20:46:42]MH_I2C_Read... [20:46:42]Read from MH i2c: 01 07 00 [20:46:42]MH_I2C_Read... [20:46:42]Read from MH i2c: 01 07 00 40 20 00 03 00 00 00 FF 0F 78 [20:46:42]state=3 [20:46:42]No paper [20:46:42]Cover opened [20:46:45]OFD Sender: No OFD packet to send [20:46:47]Write to MH i2c: 01 00 00 41 20 61 [20:46:47]Write i2c OK [20:46:47]MH_I2C_Read... [20:46:47]Read from MH i2c: 01 [20:46:47]MH_I2C_Read... [20:46:47]Read from MH i2c: 01 07 00 [20:46:47]MH_I2C_Read... [20:46:47]Read from MH i2c: 01 07 00 41 20 00 03 00 00 00 FF 0F 79 [20:46:47]state=3 [20:46:47]No paper [20:46:47]Cover opened [20:46:50]OFD Sender: No OFD packet to send [20:46:52]Write to MH i2c: 01 00 00 42 20 62 [20:46:52]Write i2c OK [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: 01 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: 01 07 00 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: 01 07 00 42 20 00 03 00 00 00 FF 0F 7A [20:46:52]state=3 [20:46:52]No paper [20:46:52]Cover opened [20:46:55]OFD Sender: No OFD packet to send [20:46:57]Write to MH i2c: 01 00 00 43 20 63 [20:46:57]Write i2c OK [20:46:57]MH_I2C_Read... [20:46:57]Read from MH i2c: 01 [20:46:57]MH_I2C_Read... [20:46:57]Read from MH i2c: 01 07 00 [20:46:57]MH_I2C_Read... [20:46:57]Read from MH i2c: 01 07 00 43 20 00 03 00 00 00 FF 0F 7B [20:46:57]state=3 [20:46:57]No paper [20:46:57]Cover opened [20:47:00]OFD Sender: No OFD packet to send [20:47:02]Write to MH i2c: 01 00 00 44 20 64 [20:47:02]Write i2c OK [20:47:02]MH_I2C_Read... [20:47:02]Read from MH i2c: 01 [20:47:02]MH_I2C_Read... [20:47:02]Read from MH i2c: 01 07 00 [20:47:02]MH_I2C_Read... [20:47:02]Read from MH i2c: 01 07 00 44 20 00 03 00 00 00 FF 0F 7C [20:47:02]state=3 [20:47:02]No paper [20:47:02]Cover opened [20:47:05]OFD Sender: No OFD packet to send [20:47:07]Write to MH i2c: 01 00 00 45 20 65 [20:47:07]Write i2c OK [20:47:07]MH_I2C_Read... [20:47:07]Read from MH i2c: 01 [20:47:07]MH_I2C_Read... [20:47:07]Read from MH i2c: 01 07 00 [20:47:07]MH_I2C_Read... [20:47:07]Read from MH i2c: 01 07 00 45 20 00 03 00 00 00 FF 0F 7D [20:47:07]state=3 [20:47:07]No paper [20:47:07]Cover opened [20:47:10]OFD Sender: No OFD packet to send [20:47:12]Write to MH i2c: 01 00 00 46 20 66 [20:47:12]Write i2c OK [20:47:12]MH_I2C_Read... [20:47:12]Read from MH i2c: 01 [20:47:12]MH_I2C_Read... [20:47:12]Read from MH i2c: 01 07 00 [20:47:12]MH_I2C_Read... [20:47:12]Read from MH i2c: 01 07 00 46 20 00 03 00 00 00 FF 0F 7E [20:47:12]state=3 [20:47:12]No paper [20:47:12]Cover opened [20:47:15]OFD Sender: No OFD packet to send [20:47:17]Write to MH i2c: 01 00 00 47 20 67 [20:47:17]Write i2c OK [20:47:17]MH_I2C_Read... [20:47:17]Read from MH i2c: 01 [20:47:17]MH_I2C_Read... [20:47:17]Read from MH i2c: 01 07 00 [20:47:17]MH_I2C_Read... [20:47:17]Read from MH i2c: 01 07 00 47 20 00 03 00 00 00 FF 0F 7F [20:47:17]state=3 [20:47:17]No paper [20:47:17]Cover opened [20:47:20]OFD Sender: No OFD packet to send [20:47:22]Write to MH i2c: 01 00 00 48 20 68 [20:47:22]Write i2c OK [20:47:22]MH_I2C_Read... [20:47:22]Read from MH i2c: 01 [20:47:22]MH_I2C_Read... [20:47:22]Read from MH i2c: 01 07 00 [20:47:22]MH_I2C_Read... [20:47:22]Read from MH i2c: 01 07 00 48 20 00 03 00 00 00 FF 0F 80 [20:47:22]state=3 [20:47:22]No paper [20:47:22]Cover opened [20:47:25]OFD Sender: No OFD packet to send [20:47:27]Write to MH i2c: 01 00 00 49 20 69 [20:47:27]Write i2c OK [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: 01 [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: 01 07 00 [20:47:27]MH_I2C_Read... [20:47:27]Read from MH i2c: 01 07 00 49 20 00 03 00 00 00 FF 0F 81 [20:47:27]state=3 [20:47:27]No paper [20:47:27]Cover opened [20:47:30]OFD Sender: No OFD packet to send [20:47:32]Write to MH i2c: 01 00 00 4A 20 6A [20:47:32]Write i2c OK [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: 01 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: 01 07 00 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: 01 07 00 4A 20 00 03 00 00 00 FF 0F 82 [20:47:32]state=3 [20:47:32]No paper [20:47:32]Cover opened [20:47:35]OFD Sender: No OFD packet to send [20:47:37]Write to MH i2c: 01 00 00 4B 20 6B [20:47:37]Write i2c OK [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: 01 [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: 01 07 00 [20:47:37]MH_I2C_Read... [20:47:37]Read from MH i2c: 01 07 00 4B 20 00 03 00 00 00 FF 0F 83 [20:47:37]state=3 [20:47:37]No paper [20:47:37]Cover opened [20:47:40]OFD Sender: No OFD packet to send [20:47:42]Write to MH i2c: 01 00 00 4C 20 6C [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: 01 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: 01 07 00 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: 01 07 00 4C 20 00 03 00 00 00 FF 0F 84 [20:47:42]state=3 [20:47:42]No paper [20:47:42]Cover opened [20:47:45]OFD Sender: No OFD packet to send [20:47:47]Write to MH i2c: 01 00 00 4D 20 6D [20:47:47]Write i2c OK [20:47:47]MH_I2C_Read... [20:47:47]Read from MH i2c: 01 [20:47:47]MH_I2C_Read... [20:47:47]Read from MH i2c: 01 07 00 [20:47:47]MH_I2C_Read... [20:47:47]Read from MH i2c: 01 07 00 4D 20 00 03 00 00 00 FF 0F 85 [20:47:47]state=3 [20:47:47]No paper [20:47:47]Cover opened [20:47:50]OFD Sender: No OFD packet to send [20:47:52]Write to MH i2c: 01 00 00 4E 20 6E [20:47:52]Write i2c OK [20:47:52]MH_I2C_Read... [20:47:52]Read from MH i2c: 01 [20:47:52]MH_I2C_Read... [20:47:52]Read from MH i2c: 01 07 00 [20:47:52]MH_I2C_Read... [20:47:52]Read from MH i2c: 01 07 00 4E 20 00 03 00 00 00 FF 0F 86 [20:47:52]state=3 [20:47:52]No paper [20:47:52]Cover opened [20:47:55]OFD Sender: No OFD packet to send [20:47:57]Write to MH i2c: 01 00 00 4F 20 6F [20:47:57]Write i2c OK [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: 01 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: 01 07 00 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: 01 07 00 4F 20 00 03 00 00 00 FF 0F 87 [20:47:57]state=3 [20:47:57]No paper [20:47:57]Cover opened [20:48:00]OFD Sender: No OFD packet to send [20:48:02]Write to MH i2c: 01 00 00 50 20 70 [20:48:02]Write i2c OK [20:48:02]MH_I2C_Read... [20:48:02]Read from MH i2c: 01 [20:48:02]MH_I2C_Read... [20:48:02]Read from MH i2c: 01 07 00 [20:48:02]MH_I2C_Read... [20:48:02]Read from MH i2c: 01 07 00 50 20 00 03 00 00 00 FF 0F 88 [20:48:02]state=3 [20:48:02]No paper [20:48:02]Cover opened [20:48:05]OFD Sender: No OFD packet to send [20:48:07]Write to MH i2c: 01 00 00 51 20 71 [20:48:07]Write i2c OK [20:48:07]MH_I2C_Read... [20:48:07]Read from MH i2c: 01 [20:48:07]MH_I2C_Read... [20:48:07]Read from MH i2c: 01 07 00 [20:48:07]MH_I2C_Read... [20:48:07]Read from MH i2c: 01 07 00 51 20 00 03 00 00 00 FF 0F 89 [20:48:07]state=3 [20:48:07]No paper [20:48:07]Cover opened [20:48:09]accept exits with 7 [20:48:09]New connection [20:48:09]New thread 3066629476 created [20:48:09]Thread 3066486116 joined [20:48:09]Waiting for new connection... [20:48:09] Sock 7.Parse request [20:48:09]Sock 7.Check first char [20:48:09]Sock 7.First char is OK [20:48:09]request: POST /json_proto HTTP/1.0 [20:48:09]Method: POST [20:48:09]URL: /json_proto [20:48:09]Method is POST - this is cgi request [20:48:09]url: /json_proto [20:48:09]query_string will be loaded in cgi processing [20:48:09]execute_cgi json_proto POST (null) [20:48:09]execute_cgi path=json_proto method=POST [20:48:09]POST find Content-Length [20:48:09]Host: 172.17.52.196:8080 [20:48:09]Content-Length: 621 [20:48:09]Content-Type: application/json [20:48:09] [20:48:09]POST finish read [20:48:09]Found Content-Length = 621 [20:48:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127222", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:09]execute_script... [20:48:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127222", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:09]POST & json_proto [20:48:09]process_json_proto [20:48:09]json parsed OK: [20:48:09]protocol is kg_v1.0 [20:48:09]action value=close_receipt [20:48:09]process_action close_receipt [20:48:09]cmd_close_receipt [20:48:09]MH_GetDate [20:48:09]Write to MH i2c: F0 00 00 52 20 61 [20:48:09]Write i2c OK [20:48:09]MH_I2C_Read... [20:48:09]Read from MH i2c: F0 [20:48:09]MH_I2C_Read... [20:48:09]Read from MH i2c: F0 09 00 [20:48:09]MH_I2C_Read... [20:48:09]Read from MH i2c: F0 09 00 52 20 00 8D 6C 15 67 60 05 E4 66 8E [20:48:09]GetLastDocTimeStamp 1729455094 [20:48:09]current date 1729457293 [20:48:09]FM_GetShiftState [20:48:09]SAM_PROTO_GetShiftState [20:48:09]wFMCommunicate request_size=4 [20:48:09]MH_SAM_APDU [20:48:09]CAPDU: 80 13 01 00 [20:48:09]Write to MH i2c: E2 08 00 53 20 80 13 01 00 00 00 00 00 F0 [20:48:09]Write i2c OK [20:48:09]MH_I2C_Read... [20:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:09]Read from MH i2c: E2 [20:48:09]MH_I2C_Read... [20:48:09]Read from MH i2c: E2 0E 00 [20:48:09]MH_I2C_Read... [20:48:09]Read from MH i2c: E2 0E 00 53 20 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 82 [20:48:09]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [20:48:09]wFMCommunicate OK [20:48:09]SAM_PROTO_GetShiftState done [20:48:09]FM_GetShiftState done [20:48:09]opened in 1729384380 [20:48:09]opened+sec_in_day 1729470780 [20:48:09]quantity*price = 14400 [20:48:09]sum+1 = 14401 [20:48:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 114 20.10.2024 20:48 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69824 ФПД: 10500837001522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204813&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69824&fm=10500837001522&tin=02508201610067®Number=0000000000091770&sum=14400 0 [20:48:10]StoreToDocumentArchive [20:48:10]shift 526 fd 69824 [20:48:10]save to /storage/0526/doc_00069824 [20:48:10]save last doc name /storage/0526/doc_00069824 to /storage/kkm_last_doc_name [20:48:10]save OK [20:48:10]Clear old archive folders... [20:48:10]ProcessDocumentItem done err = 0, tmpTLVsize=273 [20:48:10]tlvbuf is 009FC090 [20:48:10]SAM_PROTO_ClearQueue [20:48:10]wFMCommunicate request_size=4 [20:48:10]MH_SAM_APDU [20:48:10]CAPDU: 80 09 00 00 [20:48:10]Write to MH i2c: E2 08 00 60 20 80 09 00 00 00 00 00 00 F2 [20:48:10]Write i2c OK [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 [20:48:10]MH_I2C_Read... [20:48:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:10]Read from MH i2c: E2 03 00 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 03 00 60 20 00 90 00 F4 [20:48:10]RAPDU: 90 00 [20:48:10]wFMCommunicate OK [20:48:10]SAM_PROTO_ClearQueue done [20:48:10]KKMCreateOFDPacket [20:48:10]OFDProtocolAddRootSTLVToBuf [20:48:10]FM_MakeSignedData [20:48:10]FM_MakeSignedData [20:48:10]SAM_PROTO_SignData [20:48:10]wFMCommunicate request_size=4 [20:48:10]MH_SAM_APDU [20:48:10]CAPDU: 80 0D 01 02 [20:48:10]Write to MH i2c: E2 08 00 61 20 80 0D 01 02 00 00 00 00 FA [20:48:10]Write i2c OK [20:48:10]MH_I2C_Read... [20:48:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:10]Read from MH i2c: E2 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 03 00 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 03 00 61 20 00 90 00 F5 [20:48:10]RAPDU: 90 00 [20:48:10]wFMCommunicate OK [20:48:10]wFMCommunicate request_size=255 [20:48:10]MH_SAM_APDU [20:48:10]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 8D 6C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [20:48:10]Write to MH i2c: E2 02 01 62 20 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 8D 6C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 5A [20:48:10]Write i2c OK [20:48:10]MH_I2C_Read... [20:48:10]OFD Sender: No OFD packet to send [20:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:10]Read from MH i2c: E2 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 03 00 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 03 00 62 20 00 90 00 F6 [20:48:10]RAPDU: 90 00 [20:48:10]wFMCommunicate OK [20:48:10]wFMCommunicate request_size=32 [20:48:10]MH_SAM_APDU [20:48:10]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 C0 10 01 00 35 04 06 00 09 8C EA A8 C9 32 [20:48:10]Write to MH i2c: E2 23 00 63 20 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 C0 10 01 00 35 04 06 00 09 8C EA A8 C9 32 00 00 51 [20:48:10]Write i2c OK [20:48:10]MH_I2C_Read... [20:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:10]Read from MH i2c: E2 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 03 00 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 03 00 63 20 00 90 00 F7 [20:48:10]RAPDU: 90 00 [20:48:10]wFMCommunicate OK [20:48:10]wFMCommunicate request_size=4 [20:48:10]MH_SAM_APDU [20:48:10]CAPDU: 80 0D 03 02 [20:48:10]Write to MH i2c: E2 08 00 64 20 80 0D 03 02 00 00 00 00 FF [20:48:10]Write i2c OK [20:48:10]MH_I2C_Read... [20:48:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:10]Read from MH i2c: E2 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 0B 00 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 0B 00 64 20 00 AD 20 5D A3 08 C8 17 9B 90 00 4F [20:48:10]RAPDU: AD 20 5D A3 08 C8 17 9B 90 00 [20:48:10]wFMCommunicate OK [20:48:10]SAM_PROTO_SignData done [20:48:10]FM_MakeSignedData done [20:48:10]CreateOFDProtocolMessage [20:48:10]wFMCommunicate request_size=4 [20:48:10]MH_SAM_APDU [20:48:10]CAPDU: 80 11 00 00 [20:48:10]Write to MH i2c: E2 08 00 65 20 80 11 00 00 00 00 00 00 FF [20:48:10]Write i2c OK [20:48:10]MH_I2C_Read... [20:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:10]Read from MH i2c: E2 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 17 00 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 17 00 65 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 56 [20:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [20:48:10]wFMCommunicate OK [20:48:10]CreateOFDProtocolMessage done [20:48:10]OFDSenderStorePacket 69824 [20:48:10]StoreOFDPacket docnum=69824 [20:48:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 CC 0C 1D 01 48 1C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 8D 6C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C0 10 01 00 35 04 06 00 09 8C EA A8 C9 32 AD 20 5D A3 08 C8 17 9B [20:48:10]CheckFolder [20:48:10]dirname=/storage/ofd_packets [20:48:10]CheckFolder done [20:48:10]ProducePacketName [20:48:10]name=ofd_packets/00069824 [20:48:10]NVStorageSaveData ofd_packets/00069824 [20:48:10]File name is /storage/ofd_packets/00069824 [20:48:10]Write 323 bytes [20:48:10]NVStorageSaveData done [20:48:10]OFDSenderStorePacket done [20:48:10]KKMCreateOFDPacket done [20:48:10]NVStorageSaveData kkm_last_timestamp [20:48:10]File name is /storage/kkm_last_timestamp [20:48:10]Write 4 bytes [20:48:10]NVStorageSaveData done [20:48:10]ExternCall_PrintAddStr [20:48:10]wPrintStart [20:48:10]Write to MH i2c: 01 00 00 66 20 86 [20:48:10]Write i2c OK [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: 01 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: 01 07 00 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: 01 07 00 66 20 00 03 00 00 00 FF 0F 9E [20:48:10]RasterBufferAndPrint [20:48:10]line Счет N : (3)127222 [20:48:10]line ИНН: 02508201610067 [20:48:10]line Контрольно-Кассовый Чек [20:48:10]line ПРОДАЖА [20:48:10]line Товар: 48743570 [20:48:10]line Сигареты Winston XStyle Blue [20:48:10]line 1.000 * 144.00 [20:48:10]line = 144.00 [20:48:10]line НДС 12% НСП 1% [20:48:10]line > о реализуемом товаре [20:48:10]line ИТОГО: 144.00 [20:48:10]line НСП 1% : 1.27 [20:48:10]line НДС 12% : 15.29 [20:48:10]line Наличными: 144.00 [20:48:10]line Безнал.: 0.00 [20:48:10]line Место: АЗС № 163 "Партнер Нефть" [20:48:10]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [20:48:10]line СНО: Общий режим [20:48:10]line Чек 114 20.10.2024 20:48 [20:48:10]line Смена: 526 ФФД: 1.0 [20:48:10]line ЗНМ: 0300000101 [20:48:10]line РНМ: 0000000000091770 [20:48:10]line Версия ККМ: 001 [20:48:10]line ФМ: 0000000000871749 [20:48:10]line ФД: 69824 [20:48:10]line ФПД: 10500837001522 [20:48:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T204813&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69824&fm=10500837001522&tin=02508201610067®Number=0000000000091770&sum=14400 [20:48:11]line 0 [20:48:11]OFD Sender: Processing packet 69824 [packets to send 32, broken 31] [20:48:11]ProducePacketName [20:48:11]name=ofd_packets/00069824 [20:48:11]OFD Sender: To server: pG, [20:48:11]CommunicateWithHost lk.salyk.kg:30040 [20:48:11]ConnectInit lk.salyk.kg [20:48:11]written 0, free lines is 4095 [20:48:11]Error from MH - 05 [20:48:11]process_action_free close_receipt [20:48:11]json_value_free [20:48:11]json_value_free done [20:48:11]process_json_proto returns [20:48:11]Send response to host [20:48:11]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [20:48:11]free response buf [20:48:11]execute_script done [20:48:11]execute_script returns [20:48:11]free content buf [20:48:11]Sock 7.Close socket [20:48:11]Sock 7.Thread stoped [20:48:11]Connected sock=10 [20:48:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 CC 0C 1D 01 48 1C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 8D 6C 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C0 10 01 00 35 04 06 00 09 8C EA A8 C9 32 AD 20 5D A3 08 C8 17 9B [20:48:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 95 2F 47 00 BF 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 31 37 34 39 10 04 04 00 C0 10 01 00 F4 03 04 00 0F 12 15 67 B6 04 01 00 00 FB F8 4A B8 B7 F1 4C 3D [20:48:11]CommunicateWithHost err = 0 [20:48:11]CheckOFDResponse [20:48:11]1017 (14) - 77093643461234 [20:48:11]1041 (16) - 0000000000871749 [20:48:11]1040 (4) - 69824 [20:48:11]1012 (4) - 20.10.2024 14:22 [20:48:11]1206 (1) - 0 [20:48:11]OFD Sender: Remove packet 69824 [20:48:11]ProducePacketName [20:48:11]name=ofd_packets/00069824 [20:48:11]NVStorageDeleteData [20:48:12]OFD Sender: No OFD packet to send [20:48:12]Write to MH i2c: 01 00 00 69 20 89 [20:48:12]Write i2c OK [20:48:12]MH_I2C_Read... [20:48:12]Read from MH i2c: 01 [20:48:12]MH_I2C_Read... [20:48:12]Read from MH i2c: 01 07 00 [20:48:12]MH_I2C_Read... [20:48:12]Read from MH i2c: 01 07 00 69 20 00 03 00 00 00 FF 0F A1 [20:48:12]state=3 [20:48:12]No paper [20:48:12]Cover opened [20:48:17]OFD Sender: No OFD packet to send [20:48:17]Write to MH i2c: 01 00 00 6A 20 8A [20:48:17]Write i2c OK [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: 01 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: 01 07 00 [20:48:17]MH_I2C_Read... [20:48:17]Read from MH i2c: 01 07 00 6A 20 00 03 00 00 00 FF 0F A2 [20:48:17]state=3 [20:48:17]No paper [20:48:17]Cover opened [20:48:22]OFD Sender: No OFD packet to send [20:48:22]Write to MH i2c: 01 00 00 6B 20 8B [20:48:22]Write i2c OK [20:48:22]MH_I2C_Read... [20:48:22]Read from MH i2c: 01 [20:48:22]MH_I2C_Read... [20:48:22]Read from MH i2c: 01 07 00 [20:48:22]MH_I2C_Read... [20:48:22]Read from MH i2c: 01 07 00 6B 20 00 03 00 00 00 FF 0F A3 [20:48:22]state=3 [20:48:22]No paper [20:48:22]Cover opened [20:48:27]OFD Sender: No OFD packet to send [20:48:27]Write to MH i2c: 01 00 00 6C 20 8C [20:48:27]Write i2c OK [20:48:27]MH_I2C_Read... [20:48:27]Read from MH i2c: 01 [20:48:27]MH_I2C_Read... [20:48:27]Read from MH i2c: 01 07 00 [20:48:27]MH_I2C_Read... [20:48:27]Read from MH i2c: 01 07 00 6C 20 00 03 00 00 00 FF 0F A4 [20:48:27]state=3 [20:48:27]No paper [20:48:27]Cover opened [20:48:32]OFD Sender: No OFD packet to send [20:48:32]Write to MH i2c: 01 00 00 6D 20 8D [20:48:32]Write i2c OK [20:48:32]MH_I2C_Read... [20:48:32]Read from MH i2c: 01 [20:48:32]MH_I2C_Read... [20:48:32]Read from MH i2c: 01 07 00 [20:48:32]MH_I2C_Read... [20:48:32]Read from MH i2c: 01 07 00 6D 20 00 03 00 00 00 FF 0F A5 [20:48:32]state=3 [20:48:32]No paper [20:48:32]Cover opened [20:48:37]OFD Sender: No OFD packet to send [20:48:37]Write to MH i2c: 01 00 00 6E 20 8E [20:48:37]Write i2c OK [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: 01 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: 01 07 00 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: 01 07 00 6E 20 00 03 00 00 00 FF 0F A6 [20:48:37]state=3 [20:48:37]No paper [20:48:37]Cover opened [20:48:42]OFD Sender: No OFD packet to send [20:48:42]Write to MH i2c: 01 00 00 6F 20 8F [20:48:42]Write i2c OK [20:48:42]MH_I2C_Read... [20:48:42]Read from MH i2c: 01 [20:48:42]MH_I2C_Read... [20:48:42]Read from MH i2c: 01 07 00 [20:48:42]MH_I2C_Read... [20:48:42]Read from MH i2c: 01 07 00 6F 20 00 03 00 00 00 FF 0F A7 [20:48:42]state=3 [20:48:42]No paper [20:48:42]Cover opened [20:48:47]OFD Sender: No OFD packet to send [20:48:47]Write to MH i2c: 01 00 00 70 20 90 [20:48:47]Write i2c OK [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: 01 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: 01 07 00 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: 01 07 00 70 20 00 03 00 00 00 FF 0F A8 [20:48:47]state=3 [20:48:47]No paper [20:48:47]Cover opened [20:48:52]OFD Sender: No OFD packet to send [20:48:52]Write to MH i2c: 01 00 00 71 20 91 [20:48:52]Write i2c OK [20:48:52]MH_I2C_Read... [20:48:52]Read from MH i2c: 01 [20:48:52]MH_I2C_Read... [20:48:52]Read from MH i2c: 01 07 00 [20:48:52]MH_I2C_Read... [20:48:52]Read from MH i2c: 01 07 00 71 20 00 03 00 00 00 FF 0F A9 [20:48:52]state=3 [20:48:52]No paper [20:48:52]Cover opened [20:48:57]OFD Sender: No OFD packet to send [20:48:57]Write to MH i2c: 01 00 00 72 20 92 [20:48:57]Write i2c OK [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: 01 [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: 01 07 00 [20:48:57]MH_I2C_Read... [20:48:57]Read from MH i2c: 01 07 00 72 20 00 03 00 00 00 FF 0F AA [20:48:57]state=3 [20:48:57]No paper [20:48:57]Cover opened [20:49:02]OFD Sender: No OFD packet to send [20:49:02]Write to MH i2c: 01 00 00 73 20 93 [20:49:02]Write i2c OK [20:49:02]MH_I2C_Read... [20:49:02]Read from MH i2c: 01 [20:49:02]MH_I2C_Read... [20:49:02]Read from MH i2c: 01 07 00 [20:49:02]MH_I2C_Read... [20:49:02]Read from MH i2c: 01 07 00 73 20 00 03 00 00 00 FF 0F AB [20:49:02]state=3 [20:49:02]No paper [20:49:02]Cover opened [20:49:07]OFD Sender: No OFD packet to send [20:49:07]Write to MH i2c: 01 00 00 74 20 94 [20:49:07]Write i2c OK [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: 01 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: 01 07 00 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: 01 07 00 74 20 00 03 00 00 00 FF 0F AC [20:49:07]state=3 [20:49:07]No paper [20:49:07]Cover opened [20:49:12]OFD Sender: No OFD packet to send [20:49:12]Write to MH i2c: 01 00 00 75 20 95 [20:49:12]Write i2c OK [20:49:12]MH_I2C_Read... [20:49:12]Read from MH i2c: 01 [20:49:12]MH_I2C_Read... [20:49:12]Read from MH i2c: 01 07 00 [20:49:12]MH_I2C_Read... [20:49:12]Read from MH i2c: 01 07 00 75 20 00 03 00 00 00 FF 0F AD [20:49:12]state=3 [20:49:12]No paper [20:49:12]Cover opened [20:49:17]OFD Sender: No OFD packet to send [20:49:17]Write to MH i2c: 01 00 00 76 20 96 [20:49:17]Write i2c OK [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: 01 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: 01 07 00 [20:49:17]MH_I2C_Read... [20:49:17]Read from MH i2c: 01 07 00 76 20 00 03 00 00 00 FF 0F AE [20:49:17]state=3 [20:49:17]No paper [20:49:17]Cover opened [20:49:22]OFD Sender: No OFD packet to send [20:49:22]Write to MH i2c: 01 00 00 77 20 97 [20:49:22]Write i2c OK [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: 01 [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: 01 07 00 [20:49:22]MH_I2C_Read... [20:49:22]Read from MH i2c: 01 07 00 77 20 00 03 00 00 00 FF 0F AF [20:49:22]state=3 [20:49:22]No paper [20:49:22]Cover opened [20:49:27]OFD Sender: No OFD packet to send [20:49:27]Write to MH i2c: 01 00 00 78 20 98 [20:49:27]Write i2c OK [20:49:27]MH_I2C_Read... [20:49:27]Read from MH i2c: 01 [20:49:27]MH_I2C_Read... [20:49:27]Read from MH i2c: 01 07 00 [20:49:27]MH_I2C_Read... [20:49:27]Read from MH i2c: 01 07 00 78 20 00 03 00 00 00 FF 0F B0 [20:49:27]state=3 [20:49:27]No paper [20:49:27]Cover opened [20:49:32]OFD Sender: No OFD packet to send [20:49:32]Write to MH i2c: 01 00 00 79 20 99 [20:49:32]Write i2c OK [20:49:32]MH_I2C_Read... [20:49:32]Read from MH i2c: 01 [20:49:32]MH_I2C_Read... [20:49:32]Read from MH i2c: 01 07 00 [20:49:32]MH_I2C_Read... [20:49:32]Read from MH i2c: 01 07 00 79 20 00 03 00 00 00 FF 0F B1 [20:49:32]state=3 [20:49:32]No paper [20:49:32]Cover opened [20:49:37]OFD Sender: No OFD packet to send [20:49:37]Write to MH i2c: 01 00 00 7A 20 9A [20:49:37]Write i2c OK [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: 01 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: 01 07 00 [20:49:37]MH_I2C_Read... [20:49:37]Read from MH i2c: 01 07 00 7A 20 00 03 00 00 00 FF 0F B2 [20:49:37]state=3 [20:49:37]No paper [20:49:37]Cover opened [20:49:42]OFD Sender: No OFD packet to send [20:49:42]Write to MH i2c: 01 00 00 7B 20 9B [20:49:42]Write i2c OK [20:49:42]MH_I2C_Read... [20:49:42]Read from MH i2c: 01 [20:49:42]MH_I2C_Read... [20:49:42]Read from MH i2c: 01 07 00 [20:49:42]MH_I2C_Read... [20:49:42]Read from MH i2c: 01 07 00 7B 20 00 03 00 00 00 FF 0F B3 [20:49:42]state=3 [20:49:42]No paper [20:49:42]Cover opened [20:49:47]OFD Sender: No OFD packet to send [20:49:47]Write to MH i2c: 01 00 00 7C 20 9C [20:49:47]Write i2c OK [20:49:47]MH_I2C_Read... [20:49:47]Read from MH i2c: 01 [20:49:47]MH_I2C_Read... [20:49:47]Read from MH i2c: 01 07 00 [20:49:47]MH_I2C_Read... [20:49:47]Read from MH i2c: 01 07 00 7C 20 00 03 00 00 00 FF 0F B4 [20:49:47]state=3 [20:49:47]No paper [20:49:47]Cover opened [20:49:52]OFD Sender: No OFD packet to send [20:49:52]Write to MH i2c: 01 00 00 7D 20 9D [20:49:52]Write i2c OK [20:49:52]MH_I2C_Read... [20:49:52]Read from MH i2c: 01 [20:49:52]MH_I2C_Read... [20:49:52]Read from MH i2c: 01 07 00 [20:49:52]MH_I2C_Read... [20:49:52]Read from MH i2c: 01 07 00 7D 20 00 03 00 00 00 FF 0F B5 [20:49:52]state=3 [20:49:52]No paper [20:49:52]Cover opened [20:49:57]OFD Sender: No OFD packet to send [20:49:57]Write to MH i2c: 01 00 00 7E 20 9E [20:49:57]Write i2c OK [20:49:57]MH_I2C_Read... [20:49:57]Read from MH i2c: 01 [20:49:57]MH_I2C_Read... [20:49:57]Read from MH i2c: 01 07 00 [20:49:57]MH_I2C_Read... [20:49:57]Read from MH i2c: 01 07 00 7E 20 00 03 00 00 00 FF 0F B6 [20:49:57]state=3 [20:49:57]No paper [20:49:57]Cover opened [20:50:02]OFD Sender: No OFD packet to send [20:50:02]Write to MH i2c: 01 00 00 7F 20 9F [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: 01 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: 01 07 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: 01 07 00 7F 20 00 03 00 00 00 FF 0F B7 [20:50:02]state=3 [20:50:02]No paper [20:50:02]Cover opened [20:50:07]OFD Sender: No OFD packet to send [20:50:07]Write to MH i2c: 01 00 00 80 20 A0 [20:50:07]Write i2c OK [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: 01 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: 01 07 00 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: 01 07 00 80 20 00 03 00 00 00 FF 0F B8 [20:50:07]state=3 [20:50:07]No paper [20:50:07]Cover opened [20:50:12]OFD Sender: No OFD packet to send [20:50:12]Write to MH i2c: 01 00 00 81 20 A1 [20:50:12]Write i2c OK [20:50:12]MH_I2C_Read... [20:50:12]Read from MH i2c: 01 [20:50:12]MH_I2C_Read... [20:50:12]Read from MH i2c: 01 07 00 [20:50:12]MH_I2C_Read... [20:50:12]Read from MH i2c: 01 07 00 81 20 00 03 00 00 00 FF 0F B9 [20:50:12]state=3 [20:50:12]No paper [20:50:12]Cover opened [20:50:17]OFD Sender: No OFD packet to send [20:50:17]Write to MH i2c: 01 00 00 82 20 A2 [20:50:17]Write i2c OK [20:50:17]MH_I2C_Read... [20:50:17]Read from MH i2c: 01 [20:50:17]MH_I2C_Read... [20:50:17]Read from MH i2c: 01 07 00 [20:50:17]MH_I2C_Read... [20:50:17]Read from MH i2c: 01 07 00 82 20 00 03 00 00 00 FF 0F BA [20:50:17]state=3 [20:50:17]No paper [20:50:17]Cover opened [20:50:22]OFD Sender: No OFD packet to send [20:50:22]Write to MH i2c: 01 00 00 83 20 A3 [20:50:22]Write i2c OK [20:50:22]MH_I2C_Read... [20:50:22]Read from MH i2c: 01 [20:50:22]MH_I2C_Read... [20:50:22]Read from MH i2c: 01 07 00 [20:50:22]MH_I2C_Read... [20:50:22]Read from MH i2c: 01 07 00 83 20 00 03 00 00 00 FF 0F BB [20:50:22]state=3 [20:50:22]No paper [20:50:22]Cover opened [20:50:27]OFD Sender: No OFD packet to send [20:50:27]Write to MH i2c: 01 00 00 84 20 A4 [20:50:27]Write i2c OK [20:50:27]MH_I2C_Read... [20:50:27]Read from MH i2c: 01 [20:50:27]MH_I2C_Read... [20:50:27]Read from MH i2c: 01 07 00 [20:50:27]MH_I2C_Read... [20:50:27]Read from MH i2c: 01 07 00 84 20 00 03 00 00 00 FF 0F BC [20:50:27]state=3 [20:50:27]No paper [20:50:27]Cover opened [20:50:32]OFD Sender: No OFD packet to send [20:50:32]Write to MH i2c: 01 00 00 85 20 A5 [20:50:32]Write i2c OK [20:50:32]MH_I2C_Read... [20:50:32]Read from MH i2c: 01 [20:50:32]MH_I2C_Read... [20:50:32]Read from MH i2c: 01 07 00 [20:50:32]MH_I2C_Read... [20:50:32]Read from MH i2c: 01 07 00 85 20 00 03 00 00 00 FF 0F BD [20:50:32]state=3 [20:50:32]No paper [20:50:32]Cover opened [20:50:37]OFD Sender: No OFD packet to send [20:50:37]Write to MH i2c: 01 00 00 86 20 A6 [20:50:37]Write i2c OK [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: 01 [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: 01 07 00 [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: 01 07 00 86 20 00 03 00 00 00 FF 0F BE [20:50:37]state=3 [20:50:37]No paper [20:50:37]Cover opened [20:50:42]OFD Sender: No OFD packet to send [20:50:42]Write to MH i2c: 01 00 00 87 20 A7 [20:50:42]Write i2c OK [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: 01 [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: 01 07 00 [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: 01 07 00 87 20 00 03 00 00 00 FF 0F BF [20:50:42]state=3 [20:50:42]No paper [20:50:42]Cover opened [20:50:47]OFD Sender: No OFD packet to send [20:50:47]Write to MH i2c: 01 00 00 88 20 A8 [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: 01 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: 01 07 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: 01 07 00 88 20 00 03 00 00 00 FF 0F C0 [20:50:47]state=3 [20:50:47]No paper [20:50:47]Cover opened [20:50:52]OFD Sender: No OFD packet to send [20:50:52]Write to MH i2c: 01 00 00 89 20 A9 [20:50:52]Write i2c OK [20:50:52]MH_I2C_Read... [20:50:52]Read from MH i2c: 01 [20:50:52]MH_I2C_Read... [20:50:52]Read from MH i2c: 01 07 00 [20:50:52]MH_I2C_Read... [20:50:52]Read from MH i2c: 01 07 00 89 20 00 03 00 00 00 FF 0F C1 [20:50:52]state=3 [20:50:52]No paper [20:50:52]Cover opened [20:50:57]OFD Sender: No OFD packet to send [20:50:57]Write to MH i2c: 01 00 00 8A 20 AA [20:50:57]Write i2c OK [20:50:57]MH_I2C_Read... [20:50:57]Read from MH i2c: 01 [20:50:57]MH_I2C_Read... [20:50:57]Read from MH i2c: 01 07 00 [20:50:57]MH_I2C_Read... [20:50:57]Read from MH i2c: 01 07 00 8A 20 00 03 00 00 00 FF 0F C2 [20:50:57]state=3 [20:50:57]No paper [20:50:57]Cover opened [20:51:02]OFD Sender: No OFD packet to send [20:51:02]Write to MH i2c: 01 00 00 8B 20 AB [20:51:02]Write i2c OK [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: 01 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: 01 07 00 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: 01 07 00 8B 20 00 03 00 00 00 FF 0F C3 [20:51:02]state=3 [20:51:02]No paper [20:51:02]Cover opened [20:51:07]OFD Sender: No OFD packet to send [20:51:07]Write to MH i2c: 01 00 00 8C 20 AC [20:51:07]Write i2c OK [20:51:07]MH_I2C_Read... [20:51:07]Read from MH i2c: 01 [20:51:07]MH_I2C_Read... [20:51:07]Read from MH i2c: 01 07 00 [20:51:07]MH_I2C_Read... [20:51:07]Read from MH i2c: 01 07 00 8C 20 00 03 00 00 00 FF 0F C4 [20:51:07]state=3 [20:51:07]No paper [20:51:07]Cover opened [20:51:12]OFD Sender: No OFD packet to send [20:51:12]Write to MH i2c: 01 00 00 8D 20 AD [20:51:12]Write i2c OK [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: 01 [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: 01 07 00 [20:51:12]MH_I2C_Read... [20:51:12]Read from MH i2c: 01 07 00 8D 20 00 03 00 00 00 FF 0F C5 [20:51:12]state=3 [20:51:12]No paper [20:51:12]Cover opened [20:51:17]OFD Sender: No OFD packet to send [20:51:17]Write to MH i2c: 01 00 00 8E 20 AE [20:51:17]Write i2c OK [20:51:17]MH_I2C_Read... [20:51:17]Read from MH i2c: 01 [20:51:17]MH_I2C_Read... [20:51:17]Read from MH i2c: 01 07 00 [20:51:17]MH_I2C_Read... [20:51:17]Read from MH i2c: 01 07 00 8E 20 00 03 00 00 00 FF 0F C6 [20:51:17]state=3 [20:51:17]No paper [20:51:17]Cover opened [20:51:22]OFD Sender: No OFD packet to send [20:51:22]Write to MH i2c: 01 00 00 8F 20 AF [20:51:22]Write i2c OK [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: 01 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: 01 07 00 [20:51:22]MH_I2C_Read... [20:51:22]Read from MH i2c: 01 07 00 8F 20 00 03 00 00 00 FF 0F C7 [20:51:22]state=3 [20:51:22]No paper [20:51:22]Cover opened [20:51:27]OFD Sender: No OFD packet to send [20:51:27]Write to MH i2c: 01 00 00 90 20 B0 [20:51:27]Write i2c OK [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: 01 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: 01 07 00 [20:51:27]MH_I2C_Read... [20:51:27]Read from MH i2c: 01 07 00 90 20 00 03 00 00 00 FF 0F C8 [20:51:27]state=3 [20:51:27]No paper [20:51:27]Cover opened [20:51:32]OFD Sender: No OFD packet to send [20:51:32]Write to MH i2c: 01 00 00 91 20 B1 [20:51:32]Write i2c OK [20:51:32]MH_I2C_Read... [20:51:32]Read from MH i2c: 01 [20:51:32]MH_I2C_Read... [20:51:32]Read from MH i2c: 01 07 00 [20:51:32]MH_I2C_Read... [20:51:32]Read from MH i2c: 01 07 00 91 20 00 03 00 00 00 FF 0F C9 [20:51:32]state=3 [20:51:32]No paper [20:51:32]Cover opened [20:51:37]OFD Sender: No OFD packet to send [20:51:37]Write to MH i2c: 01 00 00 92 20 B2 [20:51:37]Write i2c OK [20:51:37]MH_I2C_Read... [20:51:37]Read from MH i2c: 01 [20:51:37]MH_I2C_Read... [20:51:37]Read from MH i2c: 01 07 00 [20:51:37]MH_I2C_Read... [20:51:37]Read from MH i2c: 01 07 00 92 20 00 03 00 00 00 FF 0F CA [20:51:37]state=3 [20:51:37]No paper [20:51:37]Cover opened [20:51:42]OFD Sender: No OFD packet to send [20:51:42]Write to MH i2c: 01 00 00 93 20 B3 [20:51:42]Write i2c OK [20:51:42]MH_I2C_Read... [20:51:42]Read from MH i2c: 01 [20:51:42]MH_I2C_Read... [20:51:42]Read from MH i2c: 01 07 00 [20:51:42]MH_I2C_Read... [20:51:42]Read from MH i2c: 01 07 00 93 20 00 03 00 00 00 FF 0F CB [20:51:42]state=3 [20:51:42]No paper [20:51:42]Cover opened [20:51:47]OFD Sender: No OFD packet to send [20:51:47]Write to MH i2c: 01 00 00 94 20 B4 [20:51:47]Write i2c OK [20:51:47]MH_I2C_Read... [20:51:47]Read from MH i2c: 01 [20:51:47]MH_I2C_Read... [20:51:47]Read from MH i2c: 01 07 00 [20:51:47]MH_I2C_Read... [20:51:47]Read from MH i2c: 01 07 00 94 20 00 03 00 00 00 FF 0F CC [20:51:47]state=3 [20:51:47]No paper [20:51:47]Cover opened [20:51:52]OFD Sender: No OFD packet to send [20:51:52]Write to MH i2c: 01 00 00 95 20 B5 [20:51:52]Write i2c OK [20:51:52]MH_I2C_Read... [20:51:52]Read from MH i2c: 01 [20:51:52]MH_I2C_Read... [20:51:52]Read from MH i2c: 01 07 00 [20:51:52]MH_I2C_Read... [20:51:52]Read from MH i2c: 01 07 00 95 20 00 03 00 00 00 FF 0F CD [20:51:52]state=3 [20:51:52]No paper [20:51:52]Cover opened [20:51:57]OFD Sender: No OFD packet to send [20:51:57]Write to MH i2c: 01 00 00 96 20 B6 [20:51:57]Write i2c OK [20:51:57]MH_I2C_Read... [20:51:57]Read from MH i2c: 01 [20:51:57]MH_I2C_Read... [20:51:57]Read from MH i2c: 01 07 00 [20:51:57]MH_I2C_Read... [20:51:57]Read from MH i2c: 01 07 00 96 20 00 03 00 00 00 FF 0F CE [20:51:57]state=3 [20:51:57]No paper [20:51:57]Cover opened [20:52:02]OFD Sender: No OFD packet to send [20:52:02]Write to MH i2c: 01 00 00 97 20 B7 [20:52:02]Write i2c OK [20:52:02]MH_I2C_Read... [20:52:02]Read from MH i2c: 01 [20:52:02]MH_I2C_Read... [20:52:02]Read from MH i2c: 01 07 00 [20:52:02]MH_I2C_Read... [20:52:02]Read from MH i2c: 01 07 00 97 20 00 03 00 00 00 FF 0F CF [20:52:02]state=3 [20:52:02]No paper [20:52:02]Cover opened [20:52:07]OFD Sender: No OFD packet to send [20:52:07]Write to MH i2c: 01 00 00 98 20 B8 [20:52:07]Write i2c OK [20:52:07]MH_I2C_Read... [20:52:07]Read from MH i2c: 01 [20:52:07]MH_I2C_Read... [20:52:07]Read from MH i2c: 01 07 00 [20:52:07]MH_I2C_Read... [20:52:07]Read from MH i2c: 01 07 00 98 20 00 03 00 00 00 FF 0F D0 [20:52:07]state=3 [20:52:07]No paper [20:52:07]Cover opened [20:52:12]OFD Sender: No OFD packet to send [20:52:12]Write to MH i2c: 01 00 00 99 20 B9 [20:52:12]Write i2c OK [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: 01 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: 01 07 00 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: 01 07 00 99 20 00 03 00 00 00 FF 0F D1 [20:52:12]state=3 [20:52:12]No paper [20:52:12]Cover opened [20:52:17]OFD Sender: No OFD packet to send [20:52:17]Write to MH i2c: 01 00 00 9A 20 BA [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: 01 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: 01 07 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: 01 07 00 9A 20 00 03 00 00 00 FF 0F D2 [20:52:17]state=3 [20:52:17]No paper [20:52:17]Cover opened [20:52:22]OFD Sender: No OFD packet to send [20:52:22]Write to MH i2c: 01 00 00 9B 20 BB [20:52:22]Write i2c OK [20:52:22]MH_I2C_Read... [20:52:22]Read from MH i2c: 01 [20:52:22]MH_I2C_Read... [20:52:22]Read from MH i2c: 01 07 00 [20:52:22]MH_I2C_Read... [20:52:22]Read from MH i2c: 01 07 00 9B 20 00 03 00 00 00 FF 0F D3 [20:52:22]state=3 [20:52:22]No paper [20:52:22]Cover opened [20:52:27]OFD Sender: No OFD packet to send [20:52:27]Write to MH i2c: 01 00 00 9C 20 BC [20:52:27]Write i2c OK [20:52:27]MH_I2C_Read... [20:52:27]Read from MH i2c: 01 [20:52:27]MH_I2C_Read... [20:52:27]Read from MH i2c: 01 07 00 [20:52:27]MH_I2C_Read... [20:52:27]Read from MH i2c: 01 07 00 9C 20 00 03 00 00 00 FF 0F D4 [20:52:27]state=3 [20:52:27]No paper [20:52:27]Cover opened [20:52:32]OFD Sender: No OFD packet to send [20:52:32]Write to MH i2c: 01 00 00 9D 20 BD [20:52:32]Write i2c OK [20:52:32]MH_I2C_Read... [20:52:32]Read from MH i2c: 01 [20:52:32]MH_I2C_Read... [20:52:32]Read from MH i2c: 01 07 00 [20:52:32]MH_I2C_Read... [20:52:32]Read from MH i2c: 01 07 00 9D 20 00 03 00 00 00 FF 0F D5 [20:52:32]state=3 [20:52:32]No paper [20:52:32]Cover opened [20:52:37]OFD Sender: No OFD packet to send [20:52:37]Write to MH i2c: 01 00 00 9E 20 BE [20:52:37]Write i2c OK [20:52:37]MH_I2C_Read... [20:52:37]Read from MH i2c: 01 [20:52:37]MH_I2C_Read... [20:52:37]Read from MH i2c: 01 07 00 [20:52:37]MH_I2C_Read... [20:52:37]Read from MH i2c: 01 07 00 9E 20 00 03 00 00 00 FF 0F D6 [20:52:37]state=3 [20:52:37]No paper [20:52:37]Cover opened [20:52:42]OFD Sender: No OFD packet to send [20:52:42]Write to MH i2c: 01 00 00 9F 20 BF [20:52:42]Write i2c OK [20:52:42]MH_I2C_Read... [20:52:42]Read from MH i2c: 01 [20:52:42]MH_I2C_Read... [20:52:42]Read from MH i2c: 01 07 00 [20:52:42]MH_I2C_Read... [20:52:42]Read from MH i2c: 01 07 00 9F 20 00 03 00 00 00 FF 0F D7 [20:52:42]state=3 [20:52:42]No paper [20:52:42]Cover opened [20:52:47]OFD Sender: No OFD packet to send [20:52:47]Write to MH i2c: 01 00 00 A0 20 C0 [20:52:47]Write i2c OK [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: 01 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: 01 07 00 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: 01 07 00 A0 20 00 03 00 00 00 FF 0F D8 [20:52:47]state=3 [20:52:47]No paper [20:52:47]Cover opened [20:52:52]OFD Sender: No OFD packet to send [20:52:52]Write to MH i2c: 01 00 00 A1 20 C1 [20:52:52]Write i2c OK [20:52:52]MH_I2C_Read... [20:52:52]Read from MH i2c: 01 [20:52:52]MH_I2C_Read... [20:52:52]Read from MH i2c: 01 07 00 [20:52:52]MH_I2C_Read... [20:52:52]Read from MH i2c: 01 07 00 A1 20 00 03 00 00 00 FF 0F D9 [20:52:52]state=3 [20:52:52]No paper [20:52:52]Cover opened [20:52:57]OFD Sender: No OFD packet to send [20:52:57]Write to MH i2c: 01 00 00 A2 20 C2 [20:52:57]Write i2c OK [20:52:57]MH_I2C_Read... [20:52:57]Read from MH i2c: 01 [20:52:57]MH_I2C_Read... [20:52:57]Read from MH i2c: 01 07 00 [20:52:57]MH_I2C_Read... [20:52:57]Read from MH i2c: 01 07 00 A2 20 00 03 00 00 00 FF 0F DA [20:52:57]state=3 [20:52:57]No paper [20:52:57]Cover opened [20:53:02]OFD Sender: No OFD packet to send [20:53:02]Write to MH i2c: 01 00 00 A3 20 C3 [20:53:02]Write i2c OK [20:53:02]MH_I2C_Read... [20:53:02]Read from MH i2c: 01 [20:53:02]MH_I2C_Read... [20:53:02]Read from MH i2c: 01 07 00 [20:53:02]MH_I2C_Read... [20:53:02]Read from MH i2c: 01 07 00 A3 20 00 03 00 00 00 FF 0F DB [20:53:02]state=3 [20:53:02]No paper [20:53:02]Cover opened [20:53:07]OFD Sender: No OFD packet to send [20:53:07]Write to MH i2c: 01 00 00 A4 20 C4 [20:53:07]Write i2c OK [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: 01 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: 01 07 00 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: 01 07 00 A4 20 00 03 00 00 00 FF 0F DC [20:53:07]state=3 [20:53:07]No paper [20:53:07]Cover opened [20:53:12]OFD Sender: No OFD packet to send [20:53:12]Write to MH i2c: 01 00 00 A5 20 C5 [20:53:12]Write i2c OK [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: 01 [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: 01 07 00 [20:53:12]MH_I2C_Read... [20:53:12]Read from MH i2c: 01 07 00 A5 20 00 03 00 00 00 FF 0F DD [20:53:12]state=3 [20:53:12]No paper [20:53:12]Cover opened [20:53:17]OFD Sender: No OFD packet to send [20:53:17]Write to MH i2c: 01 00 00 A6 20 C6 [20:53:17]Write i2c OK [20:53:17]MH_I2C_Read... [20:53:17]Read from MH i2c: 01 [20:53:17]MH_I2C_Read... [20:53:17]Read from MH i2c: 01 07 00 [20:53:17]MH_I2C_Read... [20:53:17]Read from MH i2c: 01 07 00 A6 20 00 03 00 00 00 FF 0F DE [20:53:17]state=3 [20:53:17]No paper [20:53:17]Cover opened [20:53:22]OFD Sender: No OFD packet to send [20:53:22]Write to MH i2c: 01 00 00 A7 20 C7 [20:53:22]Write i2c OK [20:53:22]MH_I2C_Read... [20:53:22]Read from MH i2c: 01 [20:53:22]MH_I2C_Read... [20:53:22]Read from MH i2c: 01 07 00 [20:53:22]MH_I2C_Read... [20:53:22]Read from MH i2c: 01 07 00 A7 20 00 03 00 00 00 FF 0F DF [20:53:22]state=3 [20:53:22]No paper [20:53:22]Cover opened [20:53:27]OFD Sender: No OFD packet to send [20:53:27]Write to MH i2c: 01 00 00 A8 20 C8 [20:53:28]Write i2c OK [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: 01 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: 01 07 00 [20:53:28]MH_I2C_Read... [20:53:28]Read from MH i2c: 01 07 00 A8 20 00 03 00 00 00 FF 0F E0 [20:53:28]state=3 [20:53:28]No paper [20:53:28]Cover opened [20:53:32]OFD Sender: No OFD packet to send [20:53:33]Write to MH i2c: 01 00 00 A9 20 C9 [20:53:33]Write i2c OK [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: 01 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: 01 07 00 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: 01 07 00 A9 20 00 03 00 00 00 FF 0F E1 [20:53:33]state=3 [20:53:33]No paper [20:53:33]Cover opened [20:53:37]OFD Sender: No OFD packet to send [20:53:38]Write to MH i2c: 01 00 00 AA 20 CA [20:53:38]Write i2c OK [20:53:38]MH_I2C_Read... [20:53:38]Read from MH i2c: 01 [20:53:38]MH_I2C_Read... [20:53:38]Read from MH i2c: 01 07 00 [20:53:38]MH_I2C_Read... [20:53:38]Read from MH i2c: 01 07 00 AA 20 00 03 00 00 00 FF 0F E2 [20:53:38]state=3 [20:53:38]No paper [20:53:38]Cover opened [20:53:42]OFD Sender: No OFD packet to send [20:53:43]Write to MH i2c: 01 00 00 AB 20 CB [20:53:43]Write i2c OK [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: 01 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: 01 07 00 [20:53:43]MH_I2C_Read... [20:53:43]Read from MH i2c: 01 07 00 AB 20 00 03 00 00 00 FF 0F E3 [20:53:43]state=3 [20:53:43]No paper [20:53:43]Cover opened [20:53:47]OFD Sender: No OFD packet to send [20:53:48]Write to MH i2c: 01 00 00 AC 20 CC [20:53:48]Write i2c OK [20:53:48]MH_I2C_Read... [20:53:48]Read from MH i2c: 01 [20:53:48]MH_I2C_Read... [20:53:48]Read from MH i2c: 01 07 00 [20:53:48]MH_I2C_Read... [20:53:48]Read from MH i2c: 01 07 00 AC 20 00 03 00 00 00 FF 0F E4 [20:53:48]state=3 [20:53:48]No paper [20:53:48]Cover opened [20:53:52]OFD Sender: No OFD packet to send [20:53:53]Write to MH i2c: 01 00 00 AD 20 CD [20:53:53]Write i2c OK [20:53:53]MH_I2C_Read... [20:53:53]Read from MH i2c: 01 [20:53:53]MH_I2C_Read... [20:53:53]Read from MH i2c: 01 07 00 [20:53:53]MH_I2C_Read... [20:53:53]Read from MH i2c: 01 07 00 AD 20 00 03 00 00 00 FF 0F E5 [20:53:53]state=3 [20:53:53]No paper [20:53:53]Cover opened [20:53:57]OFD Sender: No OFD packet to send [20:53:58]Write to MH i2c: 01 00 00 AE 20 CE [20:53:58]Write i2c OK [20:53:58]MH_I2C_Read... [20:53:58]Read from MH i2c: 01 [20:53:58]MH_I2C_Read... [20:53:58]Read from MH i2c: 01 07 00 [20:53:58]MH_I2C_Read... [20:53:58]Read from MH i2c: 01 07 00 AE 20 00 03 00 00 00 FF 0F E6 [20:53:58]state=3 [20:53:58]No paper [20:53:58]Cover opened [20:54:02]OFD Sender: No OFD packet to send [20:54:03]Write to MH i2c: 01 00 00 AF 20 CF [20:54:03]Write i2c OK [20:54:03]MH_I2C_Read... [20:54:03]Read from MH i2c: 01 [20:54:03]MH_I2C_Read... [20:54:03]Read from MH i2c: 01 07 00 [20:54:03]MH_I2C_Read... [20:54:03]Read from MH i2c: 01 07 00 AF 20 00 03 00 00 00 FF 0F E7 [20:54:03]state=3 [20:54:03]No paper [20:54:03]Cover opened [20:54:07]OFD Sender: No OFD packet to send [20:54:08]Write to MH i2c: 01 00 00 B0 20 D0 [20:54:08]Write i2c OK [20:54:08]MH_I2C_Read... [20:54:08]Read from MH i2c: 01 [20:54:08]MH_I2C_Read... [20:54:08]Read from MH i2c: 01 07 00 [20:54:08]MH_I2C_Read... [20:54:08]Read from MH i2c: 01 07 00 B0 20 00 03 00 00 00 FF 0F E8 [20:54:08]state=3 [20:54:08]No paper [20:54:08]Cover opened [20:54:12]OFD Sender: No OFD packet to send [20:54:13]Write to MH i2c: 01 00 00 B1 20 D1 [20:54:13]Write i2c OK [20:54:13]MH_I2C_Read... [20:54:13]Read from MH i2c: 01 [20:54:13]MH_I2C_Read... [20:54:13]Read from MH i2c: 01 07 00 [20:54:13]MH_I2C_Read... [20:54:13]Read from MH i2c: 01 07 00 B1 20 00 03 00 00 00 FF 0F E9 [20:54:13]state=3 [20:54:13]No paper [20:54:13]Cover opened [20:54:17]OFD Sender: No OFD packet to send [20:54:18]Write to MH i2c: 01 00 00 B2 20 D2 [20:54:18]Write i2c OK [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: 01 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: 01 07 00 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: 01 07 00 B2 20 00 03 00 00 00 FF 0F EA [20:54:18]state=3 [20:54:18]No paper [20:54:18]Cover opened [20:54:22]OFD Sender: No OFD packet to send [20:54:23]Write to MH i2c: 01 00 00 B3 20 D3 [20:54:23]Write i2c OK [20:54:23]MH_I2C_Read... [20:54:23]Read from MH i2c: 01 [20:54:23]MH_I2C_Read... [20:54:23]Read from MH i2c: 01 07 00 [20:54:23]MH_I2C_Read... [20:54:23]Read from MH i2c: 01 07 00 B3 20 00 03 00 00 00 FF 0F EB [20:54:23]state=3 [20:54:23]No paper [20:54:23]Cover opened [20:54:27]OFD Sender: No OFD packet to send [20:54:28]Write to MH i2c: 01 00 00 B4 20 D4 [20:54:28]Write i2c OK [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: 01 [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: 01 07 00 [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: 01 07 00 B4 20 00 03 00 00 00 FF 0F EC [20:54:28]state=3 [20:54:28]No paper [20:54:28]Cover opened [20:54:32]OFD Sender: No OFD packet to send [20:54:33]Write to MH i2c: 01 00 00 B5 20 D5 [20:54:33]Write i2c OK [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: 01 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: 01 07 00 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: 01 07 00 B5 20 00 03 00 00 00 FF 0F ED [20:54:33]state=3 [20:54:33]No paper [20:54:33]Cover opened [20:54:37]OFD Sender: No OFD packet to send [20:54:38]Write to MH i2c: 01 00 00 B6 20 D6 [20:54:38]Write i2c OK [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: 01 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: 01 07 00 [20:54:38]MH_I2C_Read... [20:54:38]Read from MH i2c: 01 07 00 B6 20 00 03 00 00 00 FF 0F EE [20:54:38]state=3 [20:54:38]No paper [20:54:38]Cover opened [20:54:42]OFD Sender: No OFD packet to send [20:54:43]Write to MH i2c: 01 00 00 B7 20 D7 [20:54:43]Write i2c OK [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: 01 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: 01 07 00 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: 01 07 00 B7 20 00 03 00 00 00 FF 0F EF [20:54:43]state=3 [20:54:43]No paper [20:54:43]Cover opened [20:54:47]OFD Sender: No OFD packet to send [20:54:48]Write to MH i2c: 01 00 00 B8 20 D8 [20:54:48]Write i2c OK [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: 01 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: 01 07 00 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: 01 07 00 B8 20 00 03 00 00 00 FF 0F F0 [20:54:48]state=3 [20:54:48]No paper [20:54:48]Cover opened [20:54:52]OFD Sender: No OFD packet to send [20:54:53]Write to MH i2c: 01 00 00 B9 20 D9 [20:54:53]Write i2c OK [20:54:53]MH_I2C_Read... [20:54:53]Read from MH i2c: 01 [20:54:53]MH_I2C_Read... [20:54:53]Read from MH i2c: 01 07 00 [20:54:53]MH_I2C_Read... [20:54:53]Read from MH i2c: 01 07 00 B9 20 00 03 00 00 00 FF 0F F1 [20:54:53]state=3 [20:54:53]No paper [20:54:53]Cover opened [20:54:57]OFD Sender: No OFD packet to send [20:54:58]Write to MH i2c: 01 00 00 BA 20 DA [20:54:58]Write i2c OK [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: 01 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: 01 07 00 [20:54:58]MH_I2C_Read... [20:54:58]Read from MH i2c: 01 07 00 BA 20 00 03 00 00 00 FF 0F F2 [20:54:58]state=3 [20:54:58]No paper [20:54:58]Cover opened [20:55:02]OFD Sender: No OFD packet to send [20:55:03]Write to MH i2c: 01 00 00 BB 20 DB [20:55:03]Write i2c OK [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: 01 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: 01 07 00 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: 01 07 00 BB 20 00 03 00 00 00 FF 0F F3 [20:55:03]state=3 [20:55:03]No paper [20:55:03]Cover opened [20:55:07]OFD Sender: No OFD packet to send [20:55:08]Write to MH i2c: 01 00 00 BC 20 DC [20:55:08]Write i2c OK [20:55:08]MH_I2C_Read... [20:55:08]Read from MH i2c: 01 [20:55:08]MH_I2C_Read... [20:55:08]Read from MH i2c: 01 07 00 [20:55:08]MH_I2C_Read... [20:55:08]Read from MH i2c: 01 07 00 BC 20 00 03 00 00 00 FF 0F F4 [20:55:08]state=3 [20:55:08]No paper [20:55:08]Cover opened [20:55:12]OFD Sender: No OFD packet to send [20:55:13]Write to MH i2c: 01 00 00 BD 20 DD [20:55:13]Write i2c OK [20:55:13]MH_I2C_Read... [20:55:13]Read from MH i2c: 01 [20:55:13]MH_I2C_Read... [20:55:13]Read from MH i2c: 01 07 00 [20:55:13]MH_I2C_Read... [20:55:13]Read from MH i2c: 01 07 00 BD 20 00 03 00 00 00 FF 0F F5 [20:55:13]state=3 [20:55:13]No paper [20:55:13]Cover opened [20:55:17]OFD Sender: No OFD packet to send [20:55:18]Write to MH i2c: 01 00 00 BE 20 DE [20:55:18]Write i2c OK [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: 01 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: 01 07 00 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: 01 07 00 BE 20 00 03 00 00 00 FF 0F F6 [20:55:18]state=3 [20:55:18]No paper [20:55:18]Cover opened [20:55:22]OFD Sender: No OFD packet to send [20:55:23]Write to MH i2c: 01 00 00 BF 20 DF [20:55:23]Write i2c OK [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: 01 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: 01 07 00 [20:55:23]MH_I2C_Read... [20:55:23]Read from MH i2c: 01 07 00 BF 20 00 03 00 00 00 FF 0F F7 [20:55:23]state=3 [20:55:23]No paper [20:55:23]Cover opened [20:55:27]OFD Sender: No OFD packet to send [20:55:28]Write to MH i2c: 01 00 00 C0 20 E0 [20:55:28]Write i2c OK [20:55:28]MH_I2C_Read... [20:55:28]Read from MH i2c: 01 [20:55:28]MH_I2C_Read... [20:55:28]Read from MH i2c: 01 07 00 [20:55:28]MH_I2C_Read... [20:55:28]Read from MH i2c: 01 07 00 C0 20 00 03 00 00 00 FF 0F F8 [20:55:28]state=3 [20:55:28]No paper [20:55:28]Cover opened [20:55:32]OFD Sender: No OFD packet to send [20:55:33]Write to MH i2c: 01 00 00 C1 20 E1 [20:55:33]Write i2c OK [20:55:33]MH_I2C_Read... [20:55:33]Read from MH i2c: 01 [20:55:33]MH_I2C_Read... [20:55:33]Read from MH i2c: 01 07 00 [20:55:33]MH_I2C_Read... [20:55:33]Read from MH i2c: 01 07 00 C1 20 00 03 00 00 00 FF 0F F9 [20:55:33]state=3 [20:55:33]No paper [20:55:33]Cover opened [20:55:37]OFD Sender: No OFD packet to send [20:55:38]Write to MH i2c: 01 00 00 C2 20 E2 [20:55:38]Write i2c OK [20:55:38]MH_I2C_Read... [20:55:38]Read from MH i2c: 01 [20:55:38]MH_I2C_Read... [20:55:38]Read from MH i2c: 01 07 00 [20:55:38]MH_I2C_Read... [20:55:38]Read from MH i2c: 01 07 00 C2 20 00 03 00 00 00 FF 0F FA [20:55:38]state=3 [20:55:38]No paper [20:55:38]Cover opened [20:55:42]OFD Sender: No OFD packet to send [20:55:43]Write to MH i2c: 01 00 00 C3 20 E3 [20:55:43]Write i2c OK [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: 01 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: 01 07 00 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: 01 07 00 C3 20 00 03 00 00 00 FF 0F FB [20:55:43]state=3 [20:55:43]No paper [20:55:43]Cover opened [20:55:47]OFD Sender: No OFD packet to send [20:55:48]Write to MH i2c: 01 00 00 C4 20 E4 [20:55:48]Write i2c OK [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: 01 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: 01 07 00 [20:55:48]MH_I2C_Read... [20:55:48]Read from MH i2c: 01 07 00 C4 20 00 03 00 00 00 FF 0F FC [20:55:48]state=3 [20:55:48]No paper [20:55:48]Cover opened [20:55:52]OFD Sender: No OFD packet to send [20:55:53]Write to MH i2c: 01 00 00 C5 20 E5 [20:55:53]Write i2c OK [20:55:53]MH_I2C_Read... [20:55:53]Read from MH i2c: 01 [20:55:53]MH_I2C_Read... [20:55:53]Read from MH i2c: 01 07 00 [20:55:53]MH_I2C_Read... [20:55:53]Read from MH i2c: 01 07 00 C5 20 00 03 00 00 00 FF 0F FD [20:55:53]state=3 [20:55:53]No paper [20:55:53]Cover opened [20:55:57]OFD Sender: No OFD packet to send [20:55:58]Write to MH i2c: 01 00 00 C6 20 E6 [20:55:58]Write i2c OK [20:55:58]MH_I2C_Read... [20:55:58]Read from MH i2c: 01 [20:55:58]MH_I2C_Read... [20:55:58]Read from MH i2c: 01 07 00 [20:55:58]MH_I2C_Read... [20:55:58]Read from MH i2c: 01 07 00 C6 20 00 03 00 00 00 FF 0F FE [20:55:58]state=3 [20:55:58]No paper [20:55:58]Cover opened [20:56:02]OFD Sender: No OFD packet to send [20:56:03]Write to MH i2c: 01 00 00 C7 20 E7 [20:56:03]Write i2c OK [20:56:03]MH_I2C_Read... [20:56:03]Read from MH i2c: 01 [20:56:03]MH_I2C_Read... [20:56:03]Read from MH i2c: 01 07 00 [20:56:03]MH_I2C_Read... [20:56:03]Read from MH i2c: 01 07 00 C7 20 00 03 00 00 00 FF 0F FF [20:56:03]state=3 [20:56:03]No paper [20:56:03]Cover opened [20:56:07]OFD Sender: No OFD packet to send [20:56:08]Write to MH i2c: 01 00 00 C8 20 E8 [20:56:08]Write i2c OK [20:56:08]MH_I2C_Read... [20:56:08]Read from MH i2c: 01 [20:56:08]MH_I2C_Read... [20:56:08]Read from MH i2c: 01 07 00 [20:56:08]MH_I2C_Read... [20:56:08]Read from MH i2c: 01 07 00 C8 20 00 03 00 00 00 FF 0F 00 [20:56:08]state=3 [20:56:08]No paper [20:56:08]Cover opened [20:56:12]OFD Sender: No OFD packet to send [20:56:13]Write to MH i2c: 01 00 00 C9 20 E9 [20:56:13]Write i2c OK [20:56:13]MH_I2C_Read... [20:56:13]Read from MH i2c: 01 [20:56:13]MH_I2C_Read... [20:56:13]Read from MH i2c: 01 07 00 [20:56:13]MH_I2C_Read... [20:56:13]Read from MH i2c: 01 07 00 C9 20 00 03 00 00 00 FF 0F 01 [20:56:13]state=3 [20:56:13]No paper [20:56:13]Cover opened [20:56:17]OFD Sender: No OFD packet to send [20:56:18]Write to MH i2c: 01 00 00 CA 20 EA [20:56:18]Write i2c OK [20:56:18]MH_I2C_Read... [20:56:18]Read from MH i2c: 01 [20:56:18]MH_I2C_Read... [20:56:18]Read from MH i2c: 01 07 00 [20:56:18]MH_I2C_Read... [20:56:18]Read from MH i2c: 01 07 00 CA 20 00 03 00 00 00 FF 0F 02 [20:56:18]state=3 [20:56:18]No paper [20:56:18]Cover opened [20:56:22]OFD Sender: No OFD packet to send [20:56:23]Write to MH i2c: 01 00 00 CB 20 EB [20:56:23]Write i2c OK [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: 01 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: 01 07 00 [20:56:23]MH_I2C_Read... [20:56:23]Read from MH i2c: 01 07 00 CB 20 00 03 00 00 00 FF 0F 03 [20:56:23]state=3 [20:56:23]No paper [20:56:23]Cover opened [20:56:27]OFD Sender: No OFD packet to send [20:56:28]Write to MH i2c: 01 00 00 CC 20 EC [20:56:28]Write i2c OK [20:56:28]MH_I2C_Read... [20:56:28]Read from MH i2c: 01 [20:56:28]MH_I2C_Read... [20:56:28]Read from MH i2c: 01 07 00 [20:56:28]MH_I2C_Read... [20:56:28]Read from MH i2c: 01 07 00 CC 20 00 03 00 00 00 FF 0F 04 [20:56:28]state=3 [20:56:28]No paper [20:56:28]Cover opened [20:56:32]OFD Sender: No OFD packet to send [20:56:33]Write to MH i2c: 01 00 00 CD 20 ED [20:56:33]Write i2c OK [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: 01 [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: 01 07 00 [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: 01 07 00 CD 20 00 03 00 00 00 FF 0F 05 [20:56:33]state=3 [20:56:33]No paper [20:56:33]Cover opened [20:56:37]OFD Sender: No OFD packet to send [20:56:38]Write to MH i2c: 01 00 00 CE 20 EE [20:56:38]Write i2c OK [20:56:38]MH_I2C_Read... [20:56:38]Read from MH i2c: 01 [20:56:38]MH_I2C_Read... [20:56:38]Read from MH i2c: 01 07 00 [20:56:38]MH_I2C_Read... [20:56:38]Read from MH i2c: 01 07 00 CE 20 00 03 00 00 00 FF 0F 06 [20:56:38]state=3 [20:56:38]No paper [20:56:38]Cover opened [20:56:42]OFD Sender: No OFD packet to send [20:56:43]Write to MH i2c: 01 00 00 CF 20 EF [20:56:43]Write i2c OK [20:56:43]MH_I2C_Read... [20:56:43]Read from MH i2c: 01 [20:56:43]MH_I2C_Read... [20:56:43]Read from MH i2c: 01 07 00 [20:56:43]MH_I2C_Read... [20:56:43]Read from MH i2c: 01 07 00 CF 20 00 03 00 00 00 FF 0F 07 [20:56:43]state=3 [20:56:43]No paper [20:56:43]Cover opened [20:56:47]OFD Sender: No OFD packet to send [20:56:48]Write to MH i2c: 01 00 00 D0 20 F0 [20:56:48]Write i2c OK [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: 01 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: 01 07 00 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: 01 07 00 D0 20 00 03 00 00 00 FF 0F 08 [20:56:48]state=3 [20:56:48]No paper [20:56:48]Cover opened [20:56:52]OFD Sender: No OFD packet to send [20:56:53]Write to MH i2c: 01 00 00 D1 20 F1 [20:56:53]Write i2c OK [20:56:53]MH_I2C_Read... [20:56:53]Read from MH i2c: 01 [20:56:53]MH_I2C_Read... [20:56:53]Read from MH i2c: 01 07 00 [20:56:53]MH_I2C_Read... [20:56:53]Read from MH i2c: 01 07 00 D1 20 00 03 00 00 00 FF 0F 09 [20:56:53]state=3 [20:56:53]No paper [20:56:53]Cover opened [20:56:57]OFD Sender: No OFD packet to send [20:56:58]Write to MH i2c: 01 00 00 D2 20 F2 [20:56:58]Write i2c OK [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: 01 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: 01 07 00 [20:56:58]MH_I2C_Read... [20:56:58]Read from MH i2c: 01 07 00 D2 20 00 03 00 00 00 FF 0F 0A [20:56:58]state=3 [20:56:58]No paper [20:56:58]Cover opened [20:57:02]OFD Sender: No OFD packet to send [20:57:03]Write to MH i2c: 01 00 00 D3 20 F3 [20:57:03]Write i2c OK [20:57:03]MH_I2C_Read... [20:57:03]Read from MH i2c: 01 [20:57:03]MH_I2C_Read... [20:57:03]Read from MH i2c: 01 07 00 [20:57:03]MH_I2C_Read... [20:57:03]Read from MH i2c: 01 07 00 D3 20 00 03 00 00 00 FF 0F 0B [20:57:03]state=3 [20:57:03]No paper [20:57:03]Cover opened [20:57:07]OFD Sender: No OFD packet to send [20:57:08]Write to MH i2c: 01 00 00 D4 20 F4 [20:57:08]Write i2c OK [20:57:08]MH_I2C_Read... [20:57:08]Read from MH i2c: 01 [20:57:08]MH_I2C_Read... [20:57:08]Read from MH i2c: 01 07 00 [20:57:08]MH_I2C_Read... [20:57:08]Read from MH i2c: 01 07 00 D4 20 00 03 00 00 00 FF 0F 0C [20:57:08]state=3 [20:57:08]No paper [20:57:08]Cover opened [20:57:12]OFD Sender: No OFD packet to send [20:57:13]Write to MH i2c: 01 00 00 D5 20 F5 [20:57:13]Write i2c OK [20:57:13]MH_I2C_Read... [20:57:13]Read from MH i2c: 01 [20:57:13]MH_I2C_Read... [20:57:13]Read from MH i2c: 01 07 00 [20:57:13]MH_I2C_Read... [20:57:13]Read from MH i2c: 01 07 00 D5 20 00 03 00 00 00 FF 0F 0D [20:57:13]state=3 [20:57:13]No paper [20:57:13]Cover opened [20:57:17]OFD Sender: No OFD packet to send [20:57:18]Write to MH i2c: 01 00 00 D6 20 F6 [20:57:18]Write i2c OK [20:57:18]MH_I2C_Read... [20:57:18]Read from MH i2c: 01 [20:57:18]MH_I2C_Read... [20:57:18]Read from MH i2c: 01 07 00 [20:57:18]MH_I2C_Read... [20:57:18]Read from MH i2c: 01 07 00 D6 20 00 03 00 00 00 FF 0F 0E [20:57:18]state=3 [20:57:18]No paper [20:57:18]Cover opened [20:57:22]OFD Sender: No OFD packet to send [20:57:23]Write to MH i2c: 01 00 00 D7 20 F7 [20:57:23]Write i2c OK [20:57:23]MH_I2C_Read... [20:57:23]Read from MH i2c: 01 [20:57:23]MH_I2C_Read... [20:57:23]Read from MH i2c: 01 07 00 [20:57:23]MH_I2C_Read... [20:57:23]Read from MH i2c: 01 07 00 D7 20 00 03 00 00 00 FF 0F 0F [20:57:23]state=3 [20:57:23]No paper [20:57:23]Cover opened [20:57:27]OFD Sender: No OFD packet to send [20:57:28]Write to MH i2c: 01 00 00 D8 20 F8 [20:57:28]Write i2c OK [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: 01 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: 01 07 00 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: 01 07 00 D8 20 00 03 00 00 00 FF 0F 10 [20:57:28]state=3 [20:57:28]No paper [20:57:28]Cover opened [20:57:32]OFD Sender: No OFD packet to send [20:57:33]Write to MH i2c: 01 00 00 D9 20 F9 [20:57:33]Write i2c OK [20:57:33]MH_I2C_Read... [20:57:33]Read from MH i2c: 01 [20:57:33]MH_I2C_Read... [20:57:33]Read from MH i2c: 01 07 00 [20:57:33]MH_I2C_Read... [20:57:33]Read from MH i2c: 01 07 00 D9 20 00 03 00 00 00 FF 0F 11 [20:57:33]state=3 [20:57:33]No paper [20:57:33]Cover opened [20:57:37]OFD Sender: No OFD packet to send [20:57:38]Write to MH i2c: 01 00 00 DA 20 FA [20:57:38]Write i2c OK [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: 01 [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: 01 07 00 [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: 01 07 00 DA 20 00 03 00 00 00 FF 0F 12 [20:57:38]state=3 [20:57:38]No paper [20:57:38]Cover opened [20:57:42]OFD Sender: No OFD packet to send [20:57:43]Write to MH i2c: 01 00 00 DB 20 FB [20:57:43]Write i2c OK [20:57:43]MH_I2C_Read... [20:57:43]Read from MH i2c: 01 [20:57:43]MH_I2C_Read... [20:57:43]Read from MH i2c: 01 07 00 [20:57:43]MH_I2C_Read... [20:57:43]Read from MH i2c: 01 07 00 DB 20 00 03 00 00 00 FF 0F 13 [20:57:43]state=3 [20:57:43]No paper [20:57:43]Cover opened [20:57:47]OFD Sender: No OFD packet to send [20:57:48]Write to MH i2c: 01 00 00 DC 20 FC [20:57:48]Write i2c OK [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: 01 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: 01 07 00 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: 01 07 00 DC 20 00 03 00 00 00 FF 0F 14 [20:57:48]state=3 [20:57:48]No paper [20:57:48]Cover opened [20:57:52]OFD Sender: No OFD packet to send [20:57:53]Write to MH i2c: 01 00 00 DD 20 FD [20:57:53]Write i2c OK [20:57:53]MH_I2C_Read... [20:57:53]Read from MH i2c: 01 [20:57:53]MH_I2C_Read... [20:57:53]Read from MH i2c: 01 07 00 [20:57:53]MH_I2C_Read... [20:57:53]Read from MH i2c: 01 07 00 DD 20 00 03 00 00 00 FF 0F 15 [20:57:53]state=3 [20:57:53]No paper [20:57:53]Cover opened [20:57:57]OFD Sender: No OFD packet to send [20:57:58]Write to MH i2c: 01 00 00 DE 20 FE [20:57:58]Write i2c OK [20:57:58]MH_I2C_Read... [20:57:58]Read from MH i2c: 01 [20:57:58]MH_I2C_Read... [20:57:58]Read from MH i2c: 01 07 00 [20:57:58]MH_I2C_Read... [20:57:58]Read from MH i2c: 01 07 00 DE 20 00 03 00 00 00 FF 0F 16 [20:57:58]state=3 [20:57:58]No paper [20:57:58]Cover opened [20:58:02]OFD Sender: No OFD packet to send [20:58:03]Write to MH i2c: 01 00 00 DF 20 FF [20:58:03]Write i2c OK [20:58:03]MH_I2C_Read... [20:58:03]Read from MH i2c: 01 [20:58:03]MH_I2C_Read... [20:58:03]Read from MH i2c: 01 07 00 [20:58:03]MH_I2C_Read... [20:58:03]Read from MH i2c: 01 07 00 DF 20 00 03 00 00 00 FF 0F 17 [20:58:03]state=3 [20:58:03]No paper [20:58:03]Cover opened [20:58:07]OFD Sender: No OFD packet to send [20:58:08]Write to MH i2c: 01 00 00 E0 20 00 [20:58:08]Write i2c OK [20:58:08]MH_I2C_Read... [20:58:08]Read from MH i2c: 01 [20:58:08]MH_I2C_Read... [20:58:08]Read from MH i2c: 01 07 00 [20:58:08]MH_I2C_Read... [20:58:08]Read from MH i2c: 01 07 00 E0 20 00 03 00 00 00 FF 0F 18 [20:58:08]state=3 [20:58:08]No paper [20:58:08]Cover opened [20:58:12]OFD Sender: No OFD packet to send [20:58:13]Write to MH i2c: 01 00 00 E1 20 01 [20:58:13]Write i2c OK [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: 01 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: 01 07 00 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: 01 07 00 E1 20 00 03 00 00 00 FF 0F 19 [20:58:13]state=3 [20:58:13]No paper [20:58:13]Cover opened [20:58:17]OFD Sender: No OFD packet to send [20:58:18]Write to MH i2c: 01 00 00 E2 20 02 [20:58:18]Write i2c OK [20:58:18]MH_I2C_Read... [20:58:18]Read from MH i2c: 01 [20:58:18]MH_I2C_Read... [20:58:18]Read from MH i2c: 01 07 00 [20:58:18]MH_I2C_Read... [20:58:18]Read from MH i2c: 01 07 00 E2 20 00 03 00 00 00 FF 0F 1A [20:58:18]state=3 [20:58:18]No paper [20:58:18]Cover opened [20:58:22]OFD Sender: No OFD packet to send [20:58:23]Write to MH i2c: 01 00 00 E3 20 03 [20:58:23]Write i2c OK [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: 01 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: 01 07 00 [20:58:23]MH_I2C_Read... [20:58:23]Read from MH i2c: 01 07 00 E3 20 00 03 00 00 00 FF 0F 1B [20:58:23]state=3 [20:58:23]No paper [20:58:23]Cover opened [20:58:27]OFD Sender: No OFD packet to send [20:58:28]Write to MH i2c: 01 00 00 E4 20 04 [20:58:28]Write i2c OK [20:58:28]MH_I2C_Read... [20:58:28]Read from MH i2c: 01 [20:58:28]MH_I2C_Read... [20:58:28]Read from MH i2c: 01 07 00 [20:58:28]MH_I2C_Read... [20:58:28]Read from MH i2c: 01 07 00 E4 20 00 03 00 00 00 FF 0F 1C [20:58:28]state=3 [20:58:28]No paper [20:58:28]Cover opened [20:58:32]OFD Sender: No OFD packet to send [20:58:33]Write to MH i2c: 01 00 00 E5 20 05 [20:58:33]Write i2c OK [20:58:33]MH_I2C_Read... [20:58:33]Read from MH i2c: 01 [20:58:33]MH_I2C_Read... [20:58:33]Read from MH i2c: 01 07 00 [20:58:33]MH_I2C_Read... [20:58:33]Read from MH i2c: 01 07 00 E5 20 00 03 00 00 00 FF 0F 1D [20:58:33]state=3 [20:58:33]No paper [20:58:33]Cover opened [20:58:37]OFD Sender: No OFD packet to send [20:58:38]Write to MH i2c: 01 00 00 E6 20 06 [20:58:38]Write i2c OK [20:58:38]MH_I2C_Read... [20:58:38]Read from MH i2c: 01 [20:58:38]MH_I2C_Read... [20:58:38]Read from MH i2c: 01 07 00 [20:58:38]MH_I2C_Read... [20:58:38]Read from MH i2c: 01 07 00 E6 20 00 03 00 00 00 FF 0F 1E [20:58:38]state=3 [20:58:38]No paper [20:58:38]Cover opened [20:58:42]OFD Sender: No OFD packet to send [20:58:43]Write to MH i2c: 01 00 00 E7 20 07 [20:58:43]Write i2c OK [20:58:43]MH_I2C_Read... [20:58:43]Read from MH i2c: 01 [20:58:43]MH_I2C_Read... [20:58:43]Read from MH i2c: 01 07 00 [20:58:43]MH_I2C_Read... [20:58:43]Read from MH i2c: 01 07 00 E7 20 00 03 00 00 00 FF 0F 1F [20:58:43]state=3 [20:58:43]No paper [20:58:43]Cover opened [20:58:47]OFD Sender: No OFD packet to send [20:58:48]Write to MH i2c: 01 00 00 E8 20 08 [20:58:48]Write i2c OK [20:58:48]MH_I2C_Read... [20:58:48]Read from MH i2c: 01 [20:58:48]MH_I2C_Read... [20:58:48]Read from MH i2c: 01 07 00 [20:58:48]MH_I2C_Read... [20:58:48]Read from MH i2c: 01 07 00 E8 20 00 03 00 00 00 FF 0F 20 [20:58:48]state=3 [20:58:48]No paper [20:58:48]Cover opened [20:58:52]OFD Sender: No OFD packet to send [20:58:53]Write to MH i2c: 01 00 00 E9 20 09 [20:58:53]Write i2c OK [20:58:53]MH_I2C_Read... [20:58:53]Read from MH i2c: 01 [20:58:53]MH_I2C_Read... [20:58:53]Read from MH i2c: 01 07 00 [20:58:53]MH_I2C_Read... [20:58:53]Read from MH i2c: 01 07 00 E9 20 00 03 00 00 00 FF 0F 21 [20:58:53]state=3 [20:58:53]No paper [20:58:53]Cover opened [20:58:57]OFD Sender: No OFD packet to send [20:58:58]Write to MH i2c: 01 00 00 EA 20 0A [20:58:58]Write i2c OK [20:58:58]MH_I2C_Read... [20:58:58]Read from MH i2c: 01 [20:58:58]MH_I2C_Read... [20:58:58]Read from MH i2c: 01 07 00 [20:58:58]MH_I2C_Read... [20:58:58]Read from MH i2c: 01 07 00 EA 20 00 03 00 00 00 FF 0F 22 [20:58:58]state=3 [20:58:58]No paper [20:58:58]Cover opened [20:59:02]OFD Sender: No OFD packet to send [20:59:03]Write to MH i2c: 01 00 00 EB 20 0B [20:59:03]Write i2c OK [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: 01 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: 01 07 00 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: 01 07 00 EB 20 00 03 00 00 00 FF 0F 23 [20:59:03]state=3 [20:59:03]No paper [20:59:03]Cover opened [20:59:07]OFD Sender: No OFD packet to send [20:59:08]Write to MH i2c: 01 00 00 EC 20 0C [20:59:08]Write i2c OK [20:59:08]MH_I2C_Read... [20:59:08]Read from MH i2c: 01 [20:59:08]MH_I2C_Read... [20:59:08]Read from MH i2c: 01 07 00 [20:59:08]MH_I2C_Read... [20:59:08]Read from MH i2c: 01 07 00 EC 20 00 03 00 00 00 FF 0F 24 [20:59:08]state=3 [20:59:08]No paper [20:59:08]Cover opened [20:59:12]OFD Sender: No OFD packet to send [20:59:13]Write to MH i2c: 01 00 00 ED 20 0D [20:59:13]Write i2c OK [20:59:13]MH_I2C_Read... [20:59:13]Read from MH i2c: 01 [20:59:13]MH_I2C_Read... [20:59:13]Read from MH i2c: 01 07 00 [20:59:13]MH_I2C_Read... [20:59:13]Read from MH i2c: 01 07 00 ED 20 00 03 00 00 00 FF 0F 25 [20:59:13]state=3 [20:59:13]No paper [20:59:13]Cover opened [20:59:17]OFD Sender: No OFD packet to send [20:59:18]Write to MH i2c: 01 00 00 EE 20 0E [20:59:18]Write i2c OK [20:59:18]MH_I2C_Read... [20:59:18]Read from MH i2c: 01 [20:59:18]MH_I2C_Read... [20:59:18]Read from MH i2c: 01 07 00 [20:59:18]MH_I2C_Read... [20:59:18]Read from MH i2c: 01 07 00 EE 20 00 03 00 00 00 FF 0F 26 [20:59:18]state=3 [20:59:18]No paper [20:59:18]Cover opened [20:59:22]OFD Sender: No OFD packet to send [20:59:23]Write to MH i2c: 01 00 00 EF 20 0F [20:59:23]Write i2c OK [20:59:23]MH_I2C_Read... [20:59:23]Read from MH i2c: 01 [20:59:23]MH_I2C_Read... [20:59:23]Read from MH i2c: 01 07 00 [20:59:23]MH_I2C_Read... [20:59:23]Read from MH i2c: 01 07 00 EF 20 00 03 00 00 00 FF 0F 27 [20:59:23]state=3 [20:59:23]No paper [20:59:23]Cover opened [20:59:27]OFD Sender: No OFD packet to send [20:59:28]Write to MH i2c: 01 00 00 F0 20 10 [20:59:28]Write i2c OK [20:59:28]MH_I2C_Read... [20:59:28]Read from MH i2c: 01 [20:59:28]MH_I2C_Read... [20:59:28]Read from MH i2c: 01 07 00 [20:59:28]MH_I2C_Read... [20:59:28]Read from MH i2c: 01 07 00 F0 20 00 03 00 00 00 FF 0F 28 [20:59:28]state=3 [20:59:28]No paper [20:59:28]Cover opened [20:59:32]OFD Sender: No OFD packet to send [20:59:33]Write to MH i2c: 01 00 00 F1 20 11 [20:59:33]Write i2c OK [20:59:33]MH_I2C_Read... [20:59:33]Read from MH i2c: 01 [20:59:33]MH_I2C_Read... [20:59:33]Read from MH i2c: 01 07 00 [20:59:33]MH_I2C_Read... [20:59:33]Read from MH i2c: 01 07 00 F1 20 00 03 00 00 00 FF 0F 29 [20:59:33]state=3 [20:59:33]No paper [20:59:33]Cover opened [20:59:37]OFD Sender: No OFD packet to send [20:59:38]Write to MH i2c: 01 00 00 F2 20 12 [20:59:38]Write i2c OK [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: 01 [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: 01 07 00 [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: 01 07 00 F2 20 00 03 00 00 00 FF 0F 2A [20:59:38]state=3 [20:59:38]No paper [20:59:38]Cover opened [20:59:42]OFD Sender: No OFD packet to send [20:59:43]Write to MH i2c: 01 00 00 F3 20 13 [20:59:43]Write i2c OK [20:59:43]MH_I2C_Read... [20:59:43]Read from MH i2c: 01 [20:59:43]MH_I2C_Read... [20:59:43]Read from MH i2c: 01 07 00 [20:59:43]MH_I2C_Read... [20:59:43]Read from MH i2c: 01 07 00 F3 20 00 03 00 00 00 FF 0F 2B [20:59:43]state=3 [20:59:43]No paper [20:59:43]Cover opened [20:59:47]OFD Sender: No OFD packet to send [20:59:48]Write to MH i2c: 01 00 00 F4 20 14 [20:59:48]Write i2c OK [20:59:48]MH_I2C_Read... [20:59:48]Read from MH i2c: 01 [20:59:48]MH_I2C_Read... [20:59:48]Read from MH i2c: 01 07 00 [20:59:48]MH_I2C_Read... [20:59:48]Read from MH i2c: 01 07 00 F4 20 00 03 00 00 00 FF 0F 2C [20:59:48]state=3 [20:59:48]No paper [20:59:48]Cover opened [20:59:52]OFD Sender: No OFD packet to send [20:59:53]Write to MH i2c: 01 00 00 F5 20 15 [20:59:53]Write i2c OK [20:59:53]MH_I2C_Read... [20:59:53]Read from MH i2c: 01 [20:59:53]MH_I2C_Read... [20:59:53]Read from MH i2c: 01 07 00 [20:59:53]MH_I2C_Read... [20:59:53]Read from MH i2c: 01 07 00 F5 20 00 03 00 00 00 FF 0F 2D [20:59:53]state=3 [20:59:53]No paper [20:59:53]Cover opened [20:59:57]OFD Sender: No OFD packet to send [20:59:58]Write to MH i2c: 01 00 00 F6 20 16 [20:59:58]Write i2c OK [20:59:58]MH_I2C_Read... [20:59:58]Read from MH i2c: 01 [20:59:58]MH_I2C_Read... [20:59:58]Read from MH i2c: 01 07 00 [20:59:58]MH_I2C_Read... [20:59:58]Read from MH i2c: 01 07 00 F6 20 00 03 00 00 00 FF 0F 2E [20:59:58]state=3 [20:59:58]No paper [20:59:58]Cover opened [21:00:02]OFD Sender: No OFD packet to send [21:00:03]Write to MH i2c: 01 00 00 F7 20 17 [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 F7 20 00 03 00 00 00 FF 0F 2F [21:00:03]state=3 [21:00:03]No paper [21:00:03]Cover opened [21:00:07]OFD Sender: No OFD packet to send [21:00:08]Write to MH i2c: 01 00 00 F8 20 18 [21:00:08]Write i2c OK [21:00:08]MH_I2C_Read... [21:00:08]Read from MH i2c: 01 [21:00:08]MH_I2C_Read... [21:00:08]Read from MH i2c: 01 07 00 [21:00:08]MH_I2C_Read... [21:00:08]Read from MH i2c: 01 07 00 F8 20 00 03 00 00 00 FF 0F 30 [21:00:08]state=3 [21:00:08]No paper [21:00:08]Cover opened [21:00:12]OFD Sender: No OFD packet to send [21:00:13]Write to MH i2c: 01 00 00 F9 20 19 [21:00:13]Write i2c OK [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: 01 [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: 01 07 00 [21:00:13]MH_I2C_Read... [21:00:13]Read from MH i2c: 01 07 00 F9 20 00 03 00 00 00 FF 0F 31 [21:00:13]state=3 [21:00:13]No paper [21:00:13]Cover opened [21:00:17]OFD Sender: No OFD packet to send [21:00:18]Write to MH i2c: 01 00 00 FA 20 1A [21:00:18]Write i2c OK [21:00:18]MH_I2C_Read... [21:00:18]Read from MH i2c: 01 [21:00:18]MH_I2C_Read... [21:00:18]Read from MH i2c: 01 07 00 [21:00:18]MH_I2C_Read... [21:00:18]Read from MH i2c: 01 07 00 FA 20 00 03 00 00 00 FF 0F 32 [21:00:18]state=3 [21:00:18]No paper [21:00:18]Cover opened [21:00:22]OFD Sender: No OFD packet to send [21:00:23]Write to MH i2c: 01 00 00 FB 20 1B [21:00:23]Write i2c OK [21:00:23]MH_I2C_Read... [21:00:23]Read from MH i2c: 01 [21:00:23]MH_I2C_Read... [21:00:23]Read from MH i2c: 01 07 00 [21:00:23]MH_I2C_Read... [21:00:23]Read from MH i2c: 01 07 00 FB 20 00 03 00 00 00 FF 0F 33 [21:00:23]state=3 [21:00:23]No paper [21:00:23]Cover opened [21:00:27]OFD Sender: No OFD packet to send [21:00:28]Write to MH i2c: 01 00 00 FC 20 1C [21:00:28]Write i2c OK [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: 01 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: 01 07 00 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: 01 07 00 FC 20 00 03 00 00 00 FF 0F 34 [21:00:28]state=3 [21:00:28]No paper [21:00:28]Cover opened [21:00:32]OFD Sender: No OFD packet to send [21:00:33]Write to MH i2c: 01 00 00 FD 20 1D [21:00:33]Write i2c OK [21:00:33]MH_I2C_Read... [21:00:33]Read from MH i2c: 01 [21:00:33]MH_I2C_Read... [21:00:33]Read from MH i2c: 01 07 00 [21:00:33]MH_I2C_Read... [21:00:33]Read from MH i2c: 01 07 00 FD 20 00 03 00 00 00 FF 0F 35 [21:00:33]state=3 [21:00:33]No paper [21:00:33]Cover opened [21:00:37]OFD Sender: No OFD packet to send [21:00:38]Write to MH i2c: 01 00 00 FE 20 1E [21:00:38]Write i2c OK [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: 01 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: 01 07 00 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: 01 07 00 FE 20 00 03 00 00 00 FF 0F 36 [21:00:38]state=3 [21:00:38]No paper [21:00:38]Cover opened [21:00:42]OFD Sender: No OFD packet to send [21:00:43]Write to MH i2c: 01 00 00 FF 20 1F [21:00:43]Write i2c OK [21:00:43]MH_I2C_Read... [21:00:43]Read from MH i2c: 01 [21:00:43]MH_I2C_Read... [21:00:43]Read from MH i2c: 01 07 00 [21:00:43]MH_I2C_Read... [21:00:43]Read from MH i2c: 01 07 00 FF 20 00 03 00 00 00 FF 0F 37 [21:00:43]state=3 [21:00:43]No paper [21:00:43]Cover opened [21:00:47]OFD Sender: No OFD packet to send [21:00:48]Write to MH i2c: 01 00 00 00 21 21 [21:00:48]Write i2c OK [21:00:48]MH_I2C_Read... [21:00:48]Read from MH i2c: 01 [21:00:48]MH_I2C_Read... [21:00:48]Read from MH i2c: 01 07 00 [21:00:48]MH_I2C_Read... [21:00:48]Read from MH i2c: 01 07 00 00 21 00 03 00 00 00 FF 0F 39 [21:00:48]state=3 [21:00:48]No paper [21:00:48]Cover opened [21:00:52]OFD Sender: No OFD packet to send [21:00:53]Write to MH i2c: 01 00 00 01 21 22 [21:00:53]Write i2c OK [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: 01 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: 01 07 00 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: 01 07 00 01 21 00 03 00 00 00 FF 0F 3A [21:00:53]state=3 [21:00:53]No paper [21:00:53]Cover opened [21:00:57]OFD Sender: No OFD packet to send [21:00:58]Write to MH i2c: 01 00 00 02 21 23 [21:00:58]Write i2c OK [21:00:58]MH_I2C_Read... [21:00:58]Read from MH i2c: 01 [21:00:58]MH_I2C_Read... [21:00:58]Read from MH i2c: 01 07 00 [21:00:58]MH_I2C_Read... [21:00:58]Read from MH i2c: 01 07 00 02 21 00 03 00 00 00 FF 0F 3B [21:00:58]state=3 [21:00:58]No paper [21:00:58]Cover opened [21:01:02]OFD Sender: No OFD packet to send [21:01:03]Write to MH i2c: 01 00 00 03 21 24 [21:01:03]Write i2c OK [21:01:03]MH_I2C_Read... [21:01:03]Read from MH i2c: 01 [21:01:03]MH_I2C_Read... [21:01:03]Read from MH i2c: 01 07 00 [21:01:03]MH_I2C_Read... [21:01:03]Read from MH i2c: 01 07 00 03 21 00 03 00 00 00 FF 0F 3C [21:01:03]state=3 [21:01:03]No paper [21:01:03]Cover opened [21:01:07]OFD Sender: No OFD packet to send [21:01:08]Write to MH i2c: 01 00 00 04 21 25 [21:01:08]Write i2c OK [21:01:08]MH_I2C_Read... [21:01:08]Read from MH i2c: 01 [21:01:08]MH_I2C_Read... [21:01:08]Read from MH i2c: 01 07 00 [21:01:08]MH_I2C_Read... [21:01:08]Read from MH i2c: 01 07 00 04 21 00 03 00 00 00 FF 0F 3D [21:01:08]state=3 [21:01:08]No paper [21:01:08]Cover opened [21:01:12]OFD Sender: No OFD packet to send [21:01:13]Write to MH i2c: 01 00 00 05 21 26 [21:01:13]Write i2c OK [21:01:13]MH_I2C_Read... [21:01:13]Read from MH i2c: 01 [21:01:13]MH_I2C_Read... [21:01:13]Read from MH i2c: 01 07 00 [21:01:13]MH_I2C_Read... [21:01:13]Read from MH i2c: 01 07 00 05 21 00 03 00 00 00 FF 0F 3E [21:01:13]state=3 [21:01:13]No paper [21:01:13]Cover opened [21:01:17]OFD Sender: No OFD packet to send [21:01:18]Write to MH i2c: 01 00 00 06 21 27 [21:01:18]Write i2c OK [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: 01 [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: 01 07 00 [21:01:18]MH_I2C_Read... [21:01:18]Read from MH i2c: 01 07 00 06 21 00 03 00 00 00 FF 0F 3F [21:01:18]state=3 [21:01:18]No paper [21:01:18]Cover opened [21:01:22]OFD Sender: No OFD packet to send [21:01:23]Write to MH i2c: 01 00 00 07 21 28 [21:01:23]Write i2c OK [21:01:23]MH_I2C_Read... [21:01:23]Read from MH i2c: 01 [21:01:23]MH_I2C_Read... [21:01:23]Read from MH i2c: 01 07 00 [21:01:23]MH_I2C_Read... [21:01:23]Read from MH i2c: 01 07 00 07 21 00 03 00 00 00 FF 0F 40 [21:01:23]state=3 [21:01:23]No paper [21:01:23]Cover opened [21:01:27]OFD Sender: No OFD packet to send [21:01:28]Write to MH i2c: 01 00 00 08 21 29 [21:01:28]Write i2c OK [21:01:28]MH_I2C_Read... [21:01:28]Read from MH i2c: 01 [21:01:28]MH_I2C_Read... [21:01:28]Read from MH i2c: 01 07 00 [21:01:28]MH_I2C_Read... [21:01:28]Read from MH i2c: 01 07 00 08 21 00 03 00 00 00 FF 0F 41 [21:01:28]state=3 [21:01:28]No paper [21:01:28]Cover opened [21:01:32]OFD Sender: No OFD packet to send [21:01:33]Write to MH i2c: 01 00 00 09 21 2A [21:01:33]Write i2c OK [21:01:33]MH_I2C_Read... [21:01:33]Read from MH i2c: 01 [21:01:33]MH_I2C_Read... [21:01:33]Read from MH i2c: 01 07 00 [21:01:33]MH_I2C_Read... [21:01:33]Read from MH i2c: 01 07 00 09 21 00 03 00 00 00 FF 0F 42 [21:01:33]state=3 [21:01:33]No paper [21:01:33]Cover opened [21:01:37]OFD Sender: No OFD packet to send [21:01:38]Write to MH i2c: 01 00 00 0A 21 2B [21:01:38]Write i2c OK [21:01:38]MH_I2C_Read... [21:01:38]Read from MH i2c: 01 [21:01:38]MH_I2C_Read... [21:01:38]Read from MH i2c: 01 07 00 [21:01:38]MH_I2C_Read... [21:01:38]Read from MH i2c: 01 07 00 0A 21 00 03 00 00 00 FF 0F 43 [21:01:38]state=3 [21:01:38]No paper [21:01:38]Cover opened [21:01:42]OFD Sender: No OFD packet to send [21:01:43]Write to MH i2c: 01 00 00 0B 21 2C [21:01:43]Write i2c OK [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: 01 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: 01 07 00 [21:01:43]MH_I2C_Read... [21:01:43]Read from MH i2c: 01 07 00 0B 21 00 03 00 00 00 FF 0F 44 [21:01:43]state=3 [21:01:43]No paper [21:01:43]Cover opened [21:01:47]OFD Sender: No OFD packet to send [21:01:48]Write to MH i2c: 01 00 00 0C 21 2D [21:01:48]Write i2c OK [21:01:48]MH_I2C_Read... [21:01:48]Read from MH i2c: 01 [21:01:48]MH_I2C_Read... [21:01:48]Read from MH i2c: 01 07 00 [21:01:48]MH_I2C_Read... [21:01:48]Read from MH i2c: 01 07 00 0C 21 00 03 00 00 00 FF 0F 45 [21:01:48]state=3 [21:01:48]No paper [21:01:48]Cover opened [21:01:52]OFD Sender: No OFD packet to send [21:01:53]Write to MH i2c: 01 00 00 0D 21 2E [21:01:53]Write i2c OK [21:01:53]MH_I2C_Read... [21:01:53]Read from MH i2c: 01 [21:01:53]MH_I2C_Read... [21:01:53]Read from MH i2c: 01 07 00 [21:01:53]MH_I2C_Read... [21:01:53]Read from MH i2c: 01 07 00 0D 21 00 03 00 00 00 FF 0F 46 [21:01:53]state=3 [21:01:53]No paper [21:01:53]Cover opened [21:01:57]OFD Sender: No OFD packet to send [21:01:58]Write to MH i2c: 01 00 00 0E 21 2F [21:01:58]Write i2c OK [21:01:58]MH_I2C_Read... [21:01:58]Read from MH i2c: 01 [21:01:58]MH_I2C_Read... [21:01:58]Read from MH i2c: 01 07 00 [21:01:58]MH_I2C_Read... [21:01:58]Read from MH i2c: 01 07 00 0E 21 00 03 00 00 00 FF 0F 47 [21:01:58]state=3 [21:01:58]No paper [21:01:58]Cover opened [21:02:02]OFD Sender: No OFD packet to send [21:02:03]Write to MH i2c: 01 00 00 0F 21 30 [21:02:03]Write i2c OK [21:02:03]MH_I2C_Read... [21:02:03]Read from MH i2c: 01 [21:02:03]MH_I2C_Read... [21:02:03]Read from MH i2c: 01 07 00 [21:02:03]MH_I2C_Read... [21:02:03]Read from MH i2c: 01 07 00 0F 21 00 03 00 00 00 FF 0F 48 [21:02:03]state=3 [21:02:03]No paper [21:02:03]Cover opened [21:02:07]OFD Sender: No OFD packet to send [21:02:08]Write to MH i2c: 01 00 00 10 21 31 [21:02:08]Write i2c OK [21:02:08]MH_I2C_Read... [21:02:08]Read from MH i2c: 01 [21:02:08]MH_I2C_Read... [21:02:08]Read from MH i2c: 01 07 00 [21:02:08]MH_I2C_Read... [21:02:08]Read from MH i2c: 01 07 00 10 21 00 03 00 00 00 FF 0F 49 [21:02:08]state=3 [21:02:08]No paper [21:02:08]Cover opened [21:02:12]OFD Sender: No OFD packet to send [21:02:13]Write to MH i2c: 01 00 00 11 21 32 [21:02:13]Write i2c OK [21:02:13]MH_I2C_Read... [21:02:13]Read from MH i2c: 01 [21:02:13]MH_I2C_Read... [21:02:13]Read from MH i2c: 01 07 00 [21:02:13]MH_I2C_Read... [21:02:13]Read from MH i2c: 01 07 00 11 21 00 03 00 00 00 FF 0F 4A [21:02:13]state=3 [21:02:13]No paper [21:02:13]Cover opened [21:02:17]OFD Sender: No OFD packet to send [21:02:18]Write to MH i2c: 01 00 00 12 21 33 [21:02:18]Write i2c OK [21:02:18]MH_I2C_Read... [21:02:18]Read from MH i2c: 01 [21:02:18]MH_I2C_Read... [21:02:18]Read from MH i2c: 01 07 00 [21:02:18]MH_I2C_Read... [21:02:18]Read from MH i2c: 01 07 00 12 21 00 03 00 00 00 FF 0F 4B [21:02:18]state=3 [21:02:18]No paper [21:02:18]Cover opened [21:02:22]OFD Sender: No OFD packet to send [21:02:23]Write to MH i2c: 01 00 00 13 21 34 [21:02:23]Write i2c OK [21:02:23]MH_I2C_Read... [21:02:23]Read from MH i2c: 01 [21:02:23]MH_I2C_Read... [21:02:23]Read from MH i2c: 01 07 00 [21:02:23]MH_I2C_Read... [21:02:23]Read from MH i2c: 01 07 00 13 21 00 03 00 00 00 FF 0F 4C [21:02:23]state=3 [21:02:23]No paper [21:02:23]Cover opened [21:02:27]OFD Sender: No OFD packet to send [21:02:28]Write to MH i2c: 01 00 00 14 21 35 [21:02:28]Write i2c OK [21:02:28]MH_I2C_Read... [21:02:28]Read from MH i2c: 01 [21:02:28]MH_I2C_Read... [21:02:28]Read from MH i2c: 01 07 00 [21:02:28]MH_I2C_Read... [21:02:28]Read from MH i2c: 01 07 00 14 21 00 03 00 00 00 FF 0F 4D [21:02:28]state=3 [21:02:28]No paper [21:02:28]Cover opened [21:02:32]OFD Sender: No OFD packet to send [21:02:33]Write to MH i2c: 01 00 00 15 21 36 [21:02:33]Write i2c OK [21:02:33]MH_I2C_Read... [21:02:33]Read from MH i2c: 01 [21:02:33]MH_I2C_Read... [21:02:33]Read from MH i2c: 01 07 00 [21:02:33]MH_I2C_Read... [21:02:33]Read from MH i2c: 01 07 00 15 21 00 03 00 00 00 FF 0F 4E [21:02:33]state=3 [21:02:33]No paper [21:02:33]Cover opened [21:02:37]OFD Sender: No OFD packet to send [21:02:38]Write to MH i2c: 01 00 00 16 21 37 [21:02:38]Write i2c OK [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: 01 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: 01 07 00 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: 01 07 00 16 21 00 03 00 00 00 FF 0F 4F [21:02:38]state=3 [21:02:38]No paper [21:02:38]Cover opened [21:02:42]OFD Sender: No OFD packet to send [21:02:43]Write to MH i2c: 01 00 00 17 21 38 [21:02:43]Write i2c OK [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: 01 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: 01 07 00 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: 01 07 00 17 21 00 03 00 00 00 FF 0F 50 [21:02:43]state=3 [21:02:43]No paper [21:02:43]Cover opened [21:02:47]OFD Sender: No OFD packet to send [21:02:48]Write to MH i2c: 01 00 00 18 21 39 [21:02:48]Write i2c OK [21:02:48]MH_I2C_Read... [21:02:48]Read from MH i2c: 01 [21:02:48]MH_I2C_Read... [21:02:48]Read from MH i2c: 01 07 00 [21:02:48]MH_I2C_Read... [21:02:48]Read from MH i2c: 01 07 00 18 21 00 03 00 00 00 FF 0F 51 [21:02:48]state=3 [21:02:48]No paper [21:02:48]Cover opened [21:02:52]OFD Sender: No OFD packet to send [21:02:53]Write to MH i2c: 01 00 00 19 21 3A [21:02:53]Write i2c OK [21:02:53]MH_I2C_Read... [21:02:53]Read from MH i2c: 01 [21:02:53]MH_I2C_Read... [21:02:53]Read from MH i2c: 01 07 00 [21:02:53]MH_I2C_Read... [21:02:53]Read from MH i2c: 01 07 00 19 21 00 03 00 00 00 FF 0F 52 [21:02:53]state=3 [21:02:53]No paper [21:02:53]Cover opened [21:02:57]OFD Sender: No OFD packet to send [21:02:58]Write to MH i2c: 01 00 00 1A 21 3B [21:02:58]Write i2c OK [21:02:58]MH_I2C_Read... [21:02:58]Read from MH i2c: 01 [21:02:58]MH_I2C_Read... [21:02:58]Read from MH i2c: 01 07 00 [21:02:58]MH_I2C_Read... [21:02:58]Read from MH i2c: 01 07 00 1A 21 00 03 00 00 00 FF 0F 53 [21:02:58]state=3 [21:02:58]No paper [21:02:58]Cover opened [21:03:02]OFD Sender: No OFD packet to send [21:03:03]Write to MH i2c: 01 00 00 1B 21 3C [21:03:03]Write i2c OK [21:03:03]MH_I2C_Read... [21:03:03]Read from MH i2c: 01 [21:03:03]MH_I2C_Read... [21:03:03]Read from MH i2c: 01 07 00 [21:03:03]MH_I2C_Read... [21:03:03]Read from MH i2c: 01 07 00 1B 21 00 03 00 00 00 FF 0F 54 [21:03:03]state=3 [21:03:03]No paper [21:03:03]Cover opened [21:03:07]OFD Sender: No OFD packet to send [21:03:08]Write to MH i2c: 01 00 00 1C 21 3D [21:03:08]Write i2c OK [21:03:08]MH_I2C_Read... [21:03:08]Read from MH i2c: 01 [21:03:08]MH_I2C_Read... [21:03:08]Read from MH i2c: 01 07 00 [21:03:08]MH_I2C_Read... [21:03:08]Read from MH i2c: 01 07 00 1C 21 00 03 00 00 00 FF 0F 55 [21:03:08]state=3 [21:03:08]No paper [21:03:08]Cover opened [21:03:12]OFD Sender: No OFD packet to send [21:03:13]Write to MH i2c: 01 00 00 1D 21 3E [21:03:13]Write i2c OK [21:03:13]MH_I2C_Read... [21:03:13]Read from MH i2c: 01 [21:03:13]MH_I2C_Read... [21:03:13]Read from MH i2c: 01 07 00 [21:03:13]MH_I2C_Read... [21:03:13]Read from MH i2c: 01 07 00 1D 21 00 03 00 00 00 FF 0F 56 [21:03:13]state=3 [21:03:13]No paper [21:03:13]Cover opened [21:03:17]OFD Sender: No OFD packet to send [21:03:18]Write to MH i2c: 01 00 00 1E 21 3F [21:03:18]Write i2c OK [21:03:18]MH_I2C_Read... [21:03:18]Read from MH i2c: 01 [21:03:18]MH_I2C_Read... [21:03:18]Read from MH i2c: 01 07 00 [21:03:18]MH_I2C_Read... [21:03:18]Read from MH i2c: 01 07 00 1E 21 00 03 00 00 00 FF 0F 57 [21:03:18]state=3 [21:03:18]No paper [21:03:18]Cover opened [21:03:22]OFD Sender: No OFD packet to send [21:03:23]Write to MH i2c: 01 00 00 1F 21 40 [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: 01 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: 01 07 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: 01 07 00 1F 21 00 03 00 00 00 FF 0F 58 [21:03:23]state=3 [21:03:23]No paper [21:03:23]Cover opened [21:03:27]OFD Sender: No OFD packet to send [21:03:28]Write to MH i2c: 01 00 00 20 21 41 [21:03:28]Write i2c OK [21:03:28]MH_I2C_Read... [21:03:28]Read from MH i2c: 01 [21:03:28]MH_I2C_Read... [21:03:28]Read from MH i2c: 01 07 00 [21:03:28]MH_I2C_Read... [21:03:28]Read from MH i2c: 01 07 00 20 21 00 03 00 00 00 FF 0F 59 [21:03:28]state=3 [21:03:28]No paper [21:03:28]Cover opened [21:03:32]OFD Sender: No OFD packet to send [21:03:33]Write to MH i2c: 01 00 00 21 21 42 [21:03:33]Write i2c OK [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: 01 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: 01 07 00 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: 01 07 00 21 21 00 03 00 00 00 FF 0F 5A [21:03:33]state=3 [21:03:33]No paper [21:03:33]Cover opened [21:03:37]OFD Sender: No OFD packet to send [21:03:38]Write to MH i2c: 01 00 00 22 21 43 [21:03:38]Write i2c OK [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: 01 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: 01 07 00 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: 01 07 00 22 21 00 03 00 00 00 FF 0F 5B [21:03:38]state=3 [21:03:38]No paper [21:03:38]Cover opened [21:03:42]OFD Sender: No OFD packet to send [21:03:43]Write to MH i2c: 01 00 00 23 21 44 [21:03:43]Write i2c OK [21:03:43]MH_I2C_Read... [21:03:43]Read from MH i2c: 01 [21:03:43]MH_I2C_Read... [21:03:43]Read from MH i2c: 01 07 00 [21:03:43]MH_I2C_Read... [21:03:43]Read from MH i2c: 01 07 00 23 21 00 03 00 00 00 FF 0F 5C [21:03:43]state=3 [21:03:43]No paper [21:03:43]Cover opened [21:03:47]OFD Sender: No OFD packet to send [21:03:48]Write to MH i2c: 01 00 00 24 21 45 [21:03:48]Write i2c OK [21:03:48]MH_I2C_Read... [21:03:48]Read from MH i2c: 01 [21:03:48]MH_I2C_Read... [21:03:48]Read from MH i2c: 01 07 00 [21:03:48]MH_I2C_Read... [21:03:48]Read from MH i2c: 01 07 00 24 21 00 03 00 00 00 FF 0F 5D [21:03:48]state=3 [21:03:48]No paper [21:03:48]Cover opened [21:03:52]OFD Sender: No OFD packet to send [21:03:53]Write to MH i2c: 01 00 00 25 21 46 [21:03:53]Write i2c OK [21:03:53]MH_I2C_Read... [21:03:53]Read from MH i2c: 01 [21:03:53]MH_I2C_Read... [21:03:53]Read from MH i2c: 01 07 00 [21:03:53]MH_I2C_Read... [21:03:53]Read from MH i2c: 01 07 00 25 21 00 03 00 00 00 FF 0F 5E [21:03:53]state=3 [21:03:53]No paper [21:03:53]Cover opened [21:03:57]OFD Sender: No OFD packet to send [21:03:58]Write to MH i2c: 01 00 00 26 21 47 [21:03:58]Write i2c OK [21:03:58]MH_I2C_Read... [21:03:58]Read from MH i2c: 01 [21:03:58]MH_I2C_Read... [21:03:58]Read from MH i2c: 01 07 00 [21:03:58]MH_I2C_Read... [21:03:58]Read from MH i2c: 01 07 00 26 21 00 03 00 00 00 FF 0F 5F [21:03:58]state=3 [21:03:58]No paper [21:03:58]Cover opened [21:04:02]OFD Sender: No OFD packet to send [21:04:03]Write to MH i2c: 01 00 00 27 21 48 [21:04:03]Write i2c OK [21:04:03]MH_I2C_Read... [21:04:03]Read from MH i2c: 01 [21:04:03]MH_I2C_Read... [21:04:03]Read from MH i2c: 01 07 00 [21:04:03]MH_I2C_Read... [21:04:03]Read from MH i2c: 01 07 00 27 21 00 03 00 00 00 FF 0F 60 [21:04:03]state=3 [21:04:03]No paper [21:04:03]Cover opened [21:04:07]OFD Sender: No OFD packet to send [21:04:08]Write to MH i2c: 01 00 00 28 21 49 [21:04:08]Write i2c OK [21:04:08]MH_I2C_Read... [21:04:08]Read from MH i2c: 01 [21:04:08]MH_I2C_Read... [21:04:08]Read from MH i2c: 01 07 00 [21:04:08]MH_I2C_Read... [21:04:08]Read from MH i2c: 01 07 00 28 21 00 03 00 00 00 FF 0F 61 [21:04:08]state=3 [21:04:08]No paper [21:04:08]Cover opened [21:04:12]OFD Sender: No OFD packet to send [21:04:13]Write to MH i2c: 01 00 00 29 21 4A [21:04:13]Write i2c OK [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: 01 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: 01 07 00 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: 01 07 00 29 21 00 03 00 00 00 FF 0F 62 [21:04:13]state=3 [21:04:13]No paper [21:04:13]Cover opened [21:04:17]OFD Sender: No OFD packet to send [21:04:18]Write to MH i2c: 01 00 00 2A 21 4B [21:04:18]Write i2c OK [21:04:18]MH_I2C_Read... [21:04:18]Read from MH i2c: 01 [21:04:18]MH_I2C_Read... [21:04:18]Read from MH i2c: 01 07 00 [21:04:18]MH_I2C_Read... [21:04:18]Read from MH i2c: 01 07 00 2A 21 00 03 00 00 00 FF 0F 63 [21:04:18]state=3 [21:04:18]No paper [21:04:18]Cover opened [21:04:22]OFD Sender: No OFD packet to send [21:04:23]Write to MH i2c: 01 00 00 2B 21 4C [21:04:23]Write i2c OK [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: 01 [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: 01 07 00 [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: 01 07 00 2B 21 00 03 00 00 00 FF 0F 64 [21:04:23]state=3 [21:04:23]No paper [21:04:23]Cover opened [21:04:27]OFD Sender: No OFD packet to send [21:04:28]Write to MH i2c: 01 00 00 2C 21 4D [21:04:28]Write i2c OK [21:04:28]MH_I2C_Read... [21:04:28]Read from MH i2c: 01 [21:04:28]MH_I2C_Read... [21:04:28]Read from MH i2c: 01 07 00 [21:04:28]MH_I2C_Read... [21:04:28]Read from MH i2c: 01 07 00 2C 21 00 03 00 00 00 FF 0F 65 [21:04:28]state=3 [21:04:28]No paper [21:04:28]Cover opened [21:04:32]OFD Sender: No OFD packet to send [21:04:33]Write to MH i2c: 01 00 00 2D 21 4E [21:04:33]Write i2c OK [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: 01 [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: 01 07 00 [21:04:33]MH_I2C_Read... [21:04:33]Read from MH i2c: 01 07 00 2D 21 00 03 00 00 00 FF 0F 66 [21:04:33]state=3 [21:04:33]No paper [21:04:33]Cover opened [21:04:37]OFD Sender: No OFD packet to send [21:04:38]Write to MH i2c: 01 00 00 2E 21 4F [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: 01 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: 01 07 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: 01 07 00 2E 21 00 03 00 00 00 FF 0F 67 [21:04:38]state=3 [21:04:38]No paper [21:04:38]Cover opened [21:04:42]OFD Sender: No OFD packet to send [21:04:43]Write to MH i2c: 01 00 00 2F 21 50 [21:04:43]Write i2c OK [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: 01 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: 01 07 00 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: 01 07 00 2F 21 00 03 00 00 00 FF 0F 68 [21:04:43]state=3 [21:04:43]No paper [21:04:43]Cover opened [21:04:47]OFD Sender: No OFD packet to send [21:04:48]Write to MH i2c: 01 00 00 30 21 51 [21:04:48]Write i2c OK [21:04:48]MH_I2C_Read... [21:04:48]Read from MH i2c: 01 [21:04:48]MH_I2C_Read... [21:04:48]Read from MH i2c: 01 07 00 [21:04:48]MH_I2C_Read... [21:04:48]Read from MH i2c: 01 07 00 30 21 00 03 00 00 00 FF 0F 69 [21:04:48]state=3 [21:04:48]No paper [21:04:48]Cover opened [21:04:52]OFD Sender: No OFD packet to send [21:04:53]Write to MH i2c: 01 00 00 31 21 52 [21:04:53]Write i2c OK [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: 01 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: 01 07 00 [21:04:53]MH_I2C_Read... [21:04:53]Read from MH i2c: 01 07 00 31 21 00 03 00 00 00 FF 0F 6A [21:04:53]state=3 [21:04:53]No paper [21:04:53]Cover opened [21:04:57]OFD Sender: No OFD packet to send [21:04:58]Write to MH i2c: 01 00 00 32 21 53 [21:04:58]Write i2c OK [21:04:58]MH_I2C_Read... [21:04:58]Read from MH i2c: 01 [21:04:58]MH_I2C_Read... [21:04:58]Read from MH i2c: 01 07 00 [21:04:58]MH_I2C_Read... [21:04:58]Read from MH i2c: 01 07 00 32 21 00 03 00 00 00 FF 0F 6B [21:04:58]state=3 [21:04:58]No paper [21:04:58]Cover opened [21:05:02]OFD Sender: No OFD packet to send [21:05:03]Write to MH i2c: 01 00 00 33 21 54 [21:05:03]Write i2c OK [21:05:03]MH_I2C_Read... [21:05:03]Read from MH i2c: 01 [21:05:03]MH_I2C_Read... [21:05:03]Read from MH i2c: 01 07 00 [21:05:03]MH_I2C_Read... [21:05:03]Read from MH i2c: 01 07 00 33 21 00 03 00 00 00 FF 0F 6C [21:05:03]state=3 [21:05:03]No paper [21:05:03]Cover opened [21:05:07]OFD Sender: No OFD packet to send [21:05:08]Write to MH i2c: 01 00 00 34 21 55 [21:05:08]Write i2c OK [21:05:08]MH_I2C_Read... [21:05:08]Read from MH i2c: 01 [21:05:08]MH_I2C_Read... [21:05:08]Read from MH i2c: 01 07 00 [21:05:08]MH_I2C_Read... [21:05:08]Read from MH i2c: 01 07 00 34 21 00 03 00 00 00 FF 0F 6D [21:05:08]state=3 [21:05:08]No paper [21:05:08]Cover opened [21:05:13]OFD Sender: No OFD packet to send [21:05:13]Write to MH i2c: 01 00 00 35 21 56 [21:05:13]Write i2c OK [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: 01 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: 01 07 00 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: 01 07 00 35 21 00 03 00 00 00 FF 0F 6E [21:05:13]state=3 [21:05:13]No paper [21:05:13]Cover opened [21:05:18]OFD Sender: No OFD packet to send [21:05:18]Write to MH i2c: 01 00 00 36 21 57 [21:05:18]Write i2c OK [21:05:18]MH_I2C_Read... [21:05:18]Read from MH i2c: 01 [21:05:18]MH_I2C_Read... [21:05:18]Read from MH i2c: 01 07 00 [21:05:18]MH_I2C_Read... [21:05:18]Read from MH i2c: 01 07 00 36 21 00 03 00 00 00 FF 0F 6F [21:05:18]state=3 [21:05:18]No paper [21:05:18]Cover opened [21:05:23]OFD Sender: No OFD packet to send [21:05:23]Write to MH i2c: 01 00 00 37 21 58 [21:05:23]Write i2c OK [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: 01 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: 01 07 00 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: 01 07 00 37 21 00 03 00 00 00 FF 0F 70 [21:05:23]state=3 [21:05:23]No paper [21:05:23]Cover opened [21:05:28]OFD Sender: No OFD packet to send [21:05:28]Write to MH i2c: 01 00 00 38 21 59 [21:05:28]Write i2c OK [21:05:28]MH_I2C_Read... [21:05:28]Read from MH i2c: 01 [21:05:28]MH_I2C_Read... [21:05:28]Read from MH i2c: 01 07 00 [21:05:28]MH_I2C_Read... [21:05:28]Read from MH i2c: 01 07 00 38 21 00 03 00 00 00 FF 0F 71 [21:05:28]state=3 [21:05:28]No paper [21:05:28]Cover opened [21:05:33]OFD Sender: No OFD packet to send [21:05:33]Write to MH i2c: 01 00 00 39 21 5A [21:05:33]Write i2c OK [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: 01 [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: 01 07 00 [21:05:33]MH_I2C_Read... [21:05:33]Read from MH i2c: 01 07 00 39 21 00 03 00 00 00 FF 0F 72 [21:05:33]state=3 [21:05:33]No paper [21:05:33]Cover opened [21:05:38]OFD Sender: No OFD packet to send [21:05:38]Write to MH i2c: 01 00 00 3A 21 5B [21:05:38]Write i2c OK [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: 01 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: 01 07 00 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: 01 07 00 3A 21 00 03 00 00 00 FF 0F 73 [21:05:38]state=3 [21:05:38]No paper [21:05:38]Cover opened [21:05:43]OFD Sender: No OFD packet to send [21:05:43]Write to MH i2c: 01 00 00 3B 21 5C [21:05:43]Write i2c OK [21:05:43]MH_I2C_Read... [21:05:43]Read from MH i2c: 01 [21:05:43]MH_I2C_Read... [21:05:43]Read from MH i2c: 01 07 00 [21:05:43]MH_I2C_Read... [21:05:43]Read from MH i2c: 01 07 00 3B 21 00 03 00 00 00 FF 0F 74 [21:05:43]state=3 [21:05:43]No paper [21:05:43]Cover opened [21:05:48]OFD Sender: No OFD packet to send [21:05:48]Write to MH i2c: 01 00 00 3C 21 5D [21:05:48]Write i2c OK [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: 01 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: 01 07 00 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: 01 07 00 3C 21 00 03 00 00 00 FF 0F 75 [21:05:48]state=3 [21:05:48]No paper [21:05:48]Cover opened [21:05:53]OFD Sender: No OFD packet to send [21:05:53]Write to MH i2c: 01 00 00 3D 21 5E [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 07 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: 01 07 00 3D 21 00 03 00 00 00 FF 0F 76 [21:05:53]state=3 [21:05:53]No paper [21:05:53]Cover opened [21:05:58]OFD Sender: No OFD packet to send [21:05:58]Write to MH i2c: 01 00 00 3E 21 5F [21:05:58]Write i2c OK [21:05:58]MH_I2C_Read... [21:05:58]Read from MH i2c: 01 [21:05:58]MH_I2C_Read... [21:05:58]Read from MH i2c: 01 07 00 [21:05:58]MH_I2C_Read... [21:05:58]Read from MH i2c: 01 07 00 3E 21 00 03 00 00 00 FF 0F 77 [21:05:58]state=3 [21:05:58]No paper [21:05:58]Cover opened [21:06:03]OFD Sender: No OFD packet to send [21:06:03]Write to MH i2c: 01 00 00 3F 21 60 [21:06:03]Write i2c OK [21:06:03]MH_I2C_Read... [21:06:03]Read from MH i2c: 01 [21:06:03]MH_I2C_Read... [21:06:03]Read from MH i2c: 01 07 00 [21:06:03]MH_I2C_Read... [21:06:03]Read from MH i2c: 01 07 00 3F 21 00 03 00 00 00 FF 0F 78 [21:06:03]state=3 [21:06:03]No paper [21:06:03]Cover opened [21:06:08]OFD Sender: No OFD packet to send [21:06:08]Write to MH i2c: 01 00 00 40 21 61 [21:06:08]Write i2c OK [21:06:08]MH_I2C_Read... [21:06:08]Read from MH i2c: 01 [21:06:08]MH_I2C_Read... [21:06:08]Read from MH i2c: 01 07 00 [21:06:08]MH_I2C_Read... [21:06:08]Read from MH i2c: 01 07 00 40 21 00 03 00 00 00 FF 0F 79 [21:06:08]state=3 [21:06:08]No paper [21:06:08]Cover opened [21:06:13]OFD Sender: No OFD packet to send [21:06:13]Write to MH i2c: 01 00 00 41 21 62 [21:06:13]Write i2c OK [21:06:13]MH_I2C_Read... [21:06:13]Read from MH i2c: 01 [21:06:13]MH_I2C_Read... [21:06:13]Read from MH i2c: 01 07 00 [21:06:13]MH_I2C_Read... [21:06:13]Read from MH i2c: 01 07 00 41 21 00 03 00 00 00 FF 0F 7A [21:06:13]state=3 [21:06:13]No paper [21:06:13]Cover opened [21:06:18]OFD Sender: No OFD packet to send [21:06:18]Write to MH i2c: 01 00 00 42 21 63 [21:06:18]Write i2c OK [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: 01 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: 01 07 00 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: 01 07 00 42 21 00 03 00 00 00 FF 0F 7B [21:06:18]state=3 [21:06:18]No paper [21:06:18]Cover opened [21:06:23]OFD Sender: No OFD packet to send [21:06:23]Write to MH i2c: 01 00 00 43 21 64 [21:06:23]Write i2c OK [21:06:23]MH_I2C_Read... [21:06:23]Read from MH i2c: 01 [21:06:23]MH_I2C_Read... [21:06:23]Read from MH i2c: 01 07 00 [21:06:23]MH_I2C_Read... [21:06:23]Read from MH i2c: 01 07 00 43 21 00 03 00 00 00 FF 0F 7C [21:06:23]state=3 [21:06:23]No paper [21:06:23]Cover opened [21:06:28]OFD Sender: No OFD packet to send [21:06:28]Write to MH i2c: 01 00 00 44 21 65 [21:06:28]Write i2c OK [21:06:28]MH_I2C_Read... [21:06:28]Read from MH i2c: 01 [21:06:28]MH_I2C_Read... [21:06:28]Read from MH i2c: 01 07 00 [21:06:28]MH_I2C_Read... [21:06:28]Read from MH i2c: 01 07 00 44 21 00 03 00 00 00 FF 0F 7D [21:06:28]state=3 [21:06:28]No paper [21:06:28]Cover opened [21:06:33]OFD Sender: No OFD packet to send [21:06:33]Write to MH i2c: 01 00 00 45 21 66 [21:06:33]Write i2c OK [21:06:33]MH_I2C_Read... [21:06:33]Read from MH i2c: 01 [21:06:33]MH_I2C_Read... [21:06:33]Read from MH i2c: 01 07 00 [21:06:33]MH_I2C_Read... [21:06:33]Read from MH i2c: 01 07 00 45 21 00 03 00 00 00 FF 0F 7E [21:06:33]state=3 [21:06:33]No paper [21:06:33]Cover opened [21:06:38]OFD Sender: No OFD packet to send [21:06:38]Write to MH i2c: 01 00 00 46 21 67 [21:06:38]Write i2c OK [21:06:38]MH_I2C_Read... [21:06:38]Read from MH i2c: 01 [21:06:38]MH_I2C_Read... [21:06:38]Read from MH i2c: 01 07 00 [21:06:38]MH_I2C_Read... [21:06:38]Read from MH i2c: 01 07 00 46 21 00 03 00 00 00 FF 0F 7F [21:06:38]state=3 [21:06:38]No paper [21:06:38]Cover opened [21:06:43]OFD Sender: No OFD packet to send [21:06:43]Write to MH i2c: 01 00 00 47 21 68 [21:06:43]Write i2c OK [21:06:43]MH_I2C_Read... [21:06:43]Read from MH i2c: 01 [21:06:43]MH_I2C_Read... [21:06:43]Read from MH i2c: 01 07 00 [21:06:43]MH_I2C_Read... [21:06:43]Read from MH i2c: 01 07 00 47 21 00 03 00 00 00 FF 0F 80 [21:06:43]state=3 [21:06:43]No paper [21:06:43]Cover opened [21:06:48]OFD Sender: No OFD packet to send [21:06:48]Write to MH i2c: 01 00 00 48 21 69 [21:06:48]Write i2c OK [21:06:48]MH_I2C_Read... [21:06:48]Read from MH i2c: 01 [21:06:48]MH_I2C_Read... [21:06:48]Read from MH i2c: 01 07 00 [21:06:48]MH_I2C_Read... [21:06:48]Read from MH i2c: 01 07 00 48 21 00 03 00 00 00 FF 0F 81 [21:06:48]state=3 [21:06:48]No paper [21:06:48]Cover opened [21:06:53]OFD Sender: No OFD packet to send [21:06:53]Write to MH i2c: 01 00 00 49 21 6A [21:06:53]Write i2c OK [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: 01 [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: 01 07 00 [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: 01 07 00 49 21 00 03 00 00 00 FF 0F 82 [21:06:53]state=3 [21:06:53]No paper [21:06:53]Cover opened [21:06:58]OFD Sender: No OFD packet to send [21:06:58]Write to MH i2c: 01 00 00 4A 21 6B [21:06:58]Write i2c OK [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: 01 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: 01 07 00 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: 01 07 00 4A 21 00 03 00 00 00 FF 0F 83 [21:06:58]state=3 [21:06:58]No paper [21:06:58]Cover opened [21:07:03]OFD Sender: No OFD packet to send [21:07:03]Write to MH i2c: 01 00 00 4B 21 6C [21:07:03]Write i2c OK [21:07:03]MH_I2C_Read... [21:07:03]Read from MH i2c: 01 [21:07:03]MH_I2C_Read... [21:07:03]Read from MH i2c: 01 07 00 [21:07:03]MH_I2C_Read... [21:07:03]Read from MH i2c: 01 07 00 4B 21 00 03 00 00 00 FF 0F 84 [21:07:03]state=3 [21:07:03]No paper [21:07:03]Cover opened [21:07:08]OFD Sender: No OFD packet to send [21:07:08]Write to MH i2c: 01 00 00 4C 21 6D [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 4C 21 00 03 00 00 00 FF 0F 85 [21:07:08]state=3 [21:07:08]No paper [21:07:08]Cover opened [21:07:13]OFD Sender: No OFD packet to send [21:07:13]Write to MH i2c: 01 00 00 4D 21 6E [21:07:13]Write i2c OK [21:07:13]MH_I2C_Read... [21:07:13]Read from MH i2c: 01 [21:07:13]MH_I2C_Read... [21:07:13]Read from MH i2c: 01 07 00 [21:07:13]MH_I2C_Read... [21:07:13]Read from MH i2c: 01 07 00 4D 21 00 03 00 00 00 FF 0F 86 [21:07:13]state=3 [21:07:13]No paper [21:07:13]Cover opened [21:07:18]OFD Sender: No OFD packet to send [21:07:18]Write to MH i2c: 01 00 00 4E 21 6F [21:07:18]Write i2c OK [21:07:18]MH_I2C_Read... [21:07:18]Read from MH i2c: 01 [21:07:18]MH_I2C_Read... [21:07:18]Read from MH i2c: 01 07 00 [21:07:18]MH_I2C_Read... [21:07:18]Read from MH i2c: 01 07 00 4E 21 00 03 00 00 00 FF 0F 87 [21:07:18]state=3 [21:07:18]No paper [21:07:18]Cover opened [21:07:23]OFD Sender: No OFD packet to send [21:07:23]Write to MH i2c: 01 00 00 4F 21 70 [21:07:23]Write i2c OK [21:07:23]MH_I2C_Read... [21:07:23]Read from MH i2c: 01 [21:07:23]MH_I2C_Read... [21:07:23]Read from MH i2c: 01 07 00 [21:07:23]MH_I2C_Read... [21:07:23]Read from MH i2c: 01 07 00 4F 21 00 03 00 00 00 FF 0F 88 [21:07:23]state=3 [21:07:23]No paper [21:07:23]Cover opened [21:07:28]OFD Sender: No OFD packet to send [21:07:28]Write to MH i2c: 01 00 00 50 21 71 [21:07:28]Write i2c OK [21:07:28]MH_I2C_Read... [21:07:28]Read from MH i2c: 01 [21:07:28]MH_I2C_Read... [21:07:28]Read from MH i2c: 01 07 00 [21:07:28]MH_I2C_Read... [21:07:28]Read from MH i2c: 01 07 00 50 21 00 03 00 00 00 FF 0F 89 [21:07:28]state=3 [21:07:28]No paper [21:07:28]Cover opened [21:07:33]OFD Sender: No OFD packet to send [21:07:33]Write to MH i2c: 01 00 00 51 21 72 [21:07:33]Write i2c OK [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: 01 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: 01 07 00 [21:07:33]MH_I2C_Read... [21:07:33]Read from MH i2c: 01 07 00 51 21 00 03 00 00 00 FF 0F 8A [21:07:33]state=3 [21:07:33]No paper [21:07:33]Cover opened [21:07:38]OFD Sender: No OFD packet to send [21:07:38]Write to MH i2c: 01 00 00 52 21 73 [21:07:38]Write i2c OK [21:07:38]MH_I2C_Read... [21:07:38]Read from MH i2c: 01 [21:07:38]MH_I2C_Read... [21:07:38]Read from MH i2c: 01 07 00 [21:07:38]MH_I2C_Read... [21:07:38]Read from MH i2c: 01 07 00 52 21 00 03 00 00 00 FF 0F 8B [21:07:38]state=3 [21:07:38]No paper [21:07:38]Cover opened [21:07:43]OFD Sender: No OFD packet to send [21:07:43]Write to MH i2c: 01 00 00 53 21 74 [21:07:43]Write i2c OK [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: 01 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: 01 07 00 [21:07:43]MH_I2C_Read... [21:07:43]Read from MH i2c: 01 07 00 53 21 00 03 00 00 00 FF 0F 8C [21:07:43]state=3 [21:07:43]No paper [21:07:43]Cover opened [21:07:48]OFD Sender: No OFD packet to send [21:07:48]Write to MH i2c: 01 00 00 54 21 75 [21:07:48]Write i2c OK [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: 01 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: 01 07 00 [21:07:48]MH_I2C_Read... [21:07:48]Read from MH i2c: 01 07 00 54 21 00 03 00 00 00 FF 0F 8D [21:07:48]state=3 [21:07:48]No paper [21:07:48]Cover opened [21:07:53]OFD Sender: No OFD packet to send [21:07:53]Write to MH i2c: 01 00 00 55 21 76 [21:07:53]Write i2c OK [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: 01 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: 01 07 00 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: 01 07 00 55 21 00 03 00 00 00 FF 0F 8E [21:07:53]state=3 [21:07:53]No paper [21:07:53]Cover opened [21:07:58]OFD Sender: No OFD packet to send [21:07:58]Write to MH i2c: 01 00 00 56 21 77 [21:07:58]Write i2c OK [21:07:58]MH_I2C_Read... [21:07:58]Read from MH i2c: 01 [21:07:58]MH_I2C_Read... [21:07:58]Read from MH i2c: 01 07 00 [21:07:58]MH_I2C_Read... [21:07:59]Read from MH i2c: 01 07 00 56 21 00 03 00 00 00 FF 0F 8F [21:07:59]state=3 [21:07:59]No paper [21:07:59]Cover opened [21:08:03]OFD Sender: No OFD packet to send [21:08:04]Write to MH i2c: 01 00 00 57 21 78 [21:08:04]Write i2c OK [21:08:04]MH_I2C_Read... [21:08:04]Read from MH i2c: 01 [21:08:04]MH_I2C_Read... [21:08:04]Read from MH i2c: 01 07 00 [21:08:04]MH_I2C_Read... [21:08:04]Read from MH i2c: 01 07 00 57 21 00 03 00 00 00 FF 0F 90 [21:08:04]state=3 [21:08:04]No paper [21:08:04]Cover opened [21:08:08]OFD Sender: No OFD packet to send [21:08:09]Write to MH i2c: 01 00 00 58 21 79 [21:08:09]Write i2c OK [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: 01 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: 01 07 00 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: 01 07 00 58 21 00 03 00 00 00 FF 0F 91 [21:08:09]state=3 [21:08:09]No paper [21:08:09]Cover opened [21:08:13]OFD Sender: No OFD packet to send [21:08:14]Write to MH i2c: 01 00 00 59 21 7A [21:08:14]Write i2c OK [21:08:14]MH_I2C_Read... [21:08:14]Read from MH i2c: 01 [21:08:14]MH_I2C_Read... [21:08:14]Read from MH i2c: 01 07 00 [21:08:14]MH_I2C_Read... [21:08:14]Read from MH i2c: 01 07 00 59 21 00 03 00 00 00 FF 0F 92 [21:08:14]state=3 [21:08:14]No paper [21:08:14]Cover opened [21:08:18]OFD Sender: No OFD packet to send [21:08:19]Write to MH i2c: 01 00 00 5A 21 7B [21:08:19]Write i2c OK [21:08:19]MH_I2C_Read... [21:08:19]Read from MH i2c: 01 [21:08:19]MH_I2C_Read... [21:08:19]Read from MH i2c: 01 07 00 [21:08:19]MH_I2C_Read... [21:08:19]Read from MH i2c: 01 07 00 5A 21 00 03 00 00 00 FF 0F 93 [21:08:19]state=3 [21:08:19]No paper [21:08:19]Cover opened [21:08:23]OFD Sender: No OFD packet to send [21:08:24]Write to MH i2c: 01 00 00 5B 21 7C [21:08:24]Write i2c OK [21:08:24]MH_I2C_Read... [21:08:24]Read from MH i2c: 01 [21:08:24]MH_I2C_Read... [21:08:24]Read from MH i2c: 01 07 00 [21:08:24]MH_I2C_Read... [21:08:24]Read from MH i2c: 01 07 00 5B 21 00 03 00 00 00 FF 0F 94 [21:08:24]state=3 [21:08:24]No paper [21:08:24]Cover opened [21:08:28]OFD Sender: No OFD packet to send [21:08:29]Write to MH i2c: 01 00 00 5C 21 7D [21:08:29]Write i2c OK [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: 01 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: 01 07 00 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: 01 07 00 5C 21 00 03 00 00 00 FF 0F 95 [21:08:29]state=3 [21:08:29]No paper [21:08:29]Cover opened [21:08:33]OFD Sender: No OFD packet to send [21:08:34]Write to MH i2c: 01 00 00 5D 21 7E [21:08:34]Write i2c OK [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: 01 [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: 01 07 00 [21:08:34]MH_I2C_Read... [21:08:34]Read from MH i2c: 01 07 00 5D 21 00 03 00 00 00 FF 0F 96 [21:08:34]state=3 [21:08:34]No paper [21:08:34]Cover opened [21:08:38]OFD Sender: No OFD packet to send [21:08:39]Write to MH i2c: 01 00 00 5E 21 7F [21:08:39]Write i2c OK [21:08:39]MH_I2C_Read... [21:08:39]Read from MH i2c: 01 [21:08:39]MH_I2C_Read... [21:08:39]Read from MH i2c: 01 07 00 [21:08:39]MH_I2C_Read... [21:08:39]Read from MH i2c: 01 07 00 5E 21 00 03 00 00 00 FF 0F 97 [21:08:39]state=3 [21:08:39]No paper [21:08:39]Cover opened [21:08:43]OFD Sender: No OFD packet to send [21:08:44]Write to MH i2c: 01 00 00 5F 21 80 [21:08:44]Write i2c OK [21:08:44]MH_I2C_Read... [21:08:44]Read from MH i2c: 01 [21:08:44]MH_I2C_Read... [21:08:44]Read from MH i2c: 01 07 00 [21:08:44]MH_I2C_Read... [21:08:44]Read from MH i2c: 01 07 00 5F 21 00 03 00 00 00 FF 0F 98 [21:08:44]state=3 [21:08:44]No paper [21:08:44]Cover opened [21:08:48]OFD Sender: No OFD packet to send [21:08:49]Write to MH i2c: 01 00 00 60 21 81 [21:08:49]Write i2c OK [21:08:49]MH_I2C_Read... [21:08:49]Read from MH i2c: 01 [21:08:49]MH_I2C_Read... [21:08:49]Read from MH i2c: 01 07 00 [21:08:49]MH_I2C_Read... [21:08:49]Read from MH i2c: 01 07 00 60 21 00 03 00 00 00 FF 0F 99 [21:08:49]state=3 [21:08:49]No paper [21:08:49]Cover opened [21:08:53]OFD Sender: No OFD packet to send [21:08:54]Write to MH i2c: 01 00 00 61 21 82 [21:08:54]Write i2c OK [21:08:54]MH_I2C_Read... [21:08:54]Read from MH i2c: 01 [21:08:54]MH_I2C_Read... [21:08:54]Read from MH i2c: 01 07 00 [21:08:54]MH_I2C_Read... [21:08:54]Read from MH i2c: 01 07 00 61 21 00 03 00 00 00 FF 0F 9A [21:08:54]state=3 [21:08:54]No paper [21:08:54]Cover opened [21:08:58]OFD Sender: No OFD packet to send [21:08:59]Write to MH i2c: 01 00 00 62 21 83 [21:08:59]Write i2c OK [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: 01 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: 01 07 00 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: 01 07 00 62 21 00 03 00 00 00 FF 0F 9B [21:08:59]state=3 [21:08:59]No paper [21:08:59]Cover opened [21:09:03]OFD Sender: No OFD packet to send [21:09:04]Write to MH i2c: 01 00 00 63 21 84 [21:09:04]Write i2c OK [21:09:04]MH_I2C_Read... [21:09:04]Read from MH i2c: 01 [21:09:04]MH_I2C_Read... [21:09:04]Read from MH i2c: 01 07 00 [21:09:04]MH_I2C_Read... [21:09:04]Read from MH i2c: 01 07 00 63 21 00 03 00 00 00 FF 0F 9C [21:09:04]state=3 [21:09:04]No paper [21:09:04]Cover opened [21:09:08]OFD Sender: No OFD packet to send [21:09:09]Write to MH i2c: 01 00 00 64 21 85 [21:09:09]Write i2c OK [21:09:09]MH_I2C_Read... [21:09:09]Read from MH i2c: 01 [21:09:09]MH_I2C_Read... [21:09:09]Read from MH i2c: 01 07 00 [21:09:09]MH_I2C_Read... [21:09:09]Read from MH i2c: 01 07 00 64 21 00 03 00 00 00 FF 0F 9D [21:09:09]state=3 [21:09:09]No paper [21:09:09]Cover opened [21:09:13]OFD Sender: No OFD packet to send [21:09:14]Write to MH i2c: 01 00 00 65 21 86 [21:09:14]Write i2c OK [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: 01 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: 01 07 00 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: 01 07 00 65 21 00 03 00 00 00 FF 0F 9E [21:09:14]state=3 [21:09:14]No paper [21:09:14]Cover opened [21:09:18]OFD Sender: No OFD packet to send [21:09:19]Write to MH i2c: 01 00 00 66 21 87 [21:09:19]Write i2c OK [21:09:19]MH_I2C_Read... [21:09:19]Read from MH i2c: 01 [21:09:19]MH_I2C_Read... [21:09:19]Read from MH i2c: 01 07 00 [21:09:19]MH_I2C_Read... [21:09:19]Read from MH i2c: 01 07 00 66 21 00 03 00 00 00 FF 0F 9F [21:09:19]state=3 [21:09:19]No paper [21:09:19]Cover opened [21:09:23]OFD Sender: No OFD packet to send [21:09:24]Write to MH i2c: 01 00 00 67 21 88 [21:09:24]Write i2c OK [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: 01 [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: 01 07 00 [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: 01 07 00 67 21 00 03 00 00 00 FF 0F A0 [21:09:24]state=3 [21:09:24]No paper [21:09:24]Cover opened [21:09:28]OFD Sender: No OFD packet to send [21:09:29]Write to MH i2c: 01 00 00 68 21 89 [21:09:29]Write i2c OK [21:09:29]MH_I2C_Read... [21:09:29]Read from MH i2c: 01 [21:09:29]MH_I2C_Read... [21:09:29]Read from MH i2c: 01 07 00 [21:09:29]MH_I2C_Read... [21:09:29]Read from MH i2c: 01 07 00 68 21 00 03 00 00 00 FF 0F A1 [21:09:29]state=3 [21:09:29]No paper [21:09:29]Cover opened [21:09:33]OFD Sender: No OFD packet to send [21:09:34]Write to MH i2c: 01 00 00 69 21 8A [21:09:34]Write i2c OK [21:09:34]MH_I2C_Read... [21:09:34]Read from MH i2c: 01 [21:09:34]MH_I2C_Read... [21:09:34]Read from MH i2c: 01 07 00 [21:09:34]MH_I2C_Read... [21:09:34]Read from MH i2c: 01 07 00 69 21 00 03 00 00 00 FF 0F A2 [21:09:34]state=3 [21:09:34]No paper [21:09:34]Cover opened [21:09:38]OFD Sender: No OFD packet to send [21:09:39]Write to MH i2c: 01 00 00 6A 21 8B [21:09:39]Write i2c OK [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: 01 [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: 01 07 00 [21:09:39]MH_I2C_Read... [21:09:39]Read from MH i2c: 01 07 00 6A 21 00 03 00 00 00 FF 0F A3 [21:09:39]state=3 [21:09:39]No paper [21:09:39]Cover opened [21:09:43]OFD Sender: No OFD packet to send [21:09:44]Write to MH i2c: 01 00 00 6B 21 8C [21:09:44]Write i2c OK [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: 01 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: 01 07 00 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: 01 07 00 6B 21 00 03 00 00 00 FF 0F A4 [21:09:44]state=3 [21:09:44]No paper [21:09:44]Cover opened [21:09:48]OFD Sender: No OFD packet to send [21:09:49]Write to MH i2c: 01 00 00 6C 21 8D [21:09:49]Write i2c OK [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: 01 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: 01 07 00 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: 01 07 00 6C 21 00 03 00 00 00 FF 0F A5 [21:09:49]state=3 [21:09:49]No paper [21:09:49]Cover opened [21:09:52]int [21:09:52]Write to MH i2c: 01 00 00 6D 21 8E [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]*** FLAG_PRN_PAP2 reset [21:09:52]*** FLAG_PRN_PAP1 reset [21:09:52]Read from MH i2c: 01 07 00 6D 21 00 00 00 00 00 FF 0F A3 [21:09:52]state=3 [21:09:52]Cover closed [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 86 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 2B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572586 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 3239022+1726219616=1729458638 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 86 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 2C [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 CF 71 15 67 60 05 E4 66 6A [21:10:39]Current date/time: 20.10.2024 21:10 [21:10:39]FM_Init [21:10:39]wFMConnect [21:10:39]MH_SAM_On [21:10:39]Write to MH i2c: E0 00 00 08 00 E7 [21:10:39]Write i2c OK [21:10:39]MH_I2C_Read... [21:10:39]*** iso7816_init finished! [21:10:39]*** atr: [21:10:39]*** 0F 3B D5 18 FF 81 91 FE [21:10:39]*** 1F C3 80 73 C8 21 10 0A [21:10:39]*** 00 00 00 00 00 00 00 00 [21:10:39]*** 00 00 00 00 00 00 00 00 [21:10:39]*** 00 00 00 00 00 00 00 00 [21:10:39]*** 00 00 00 00 00 00 00 00 [21:10:39]*** 00 00 00 00 00 00 00 00 [21:10:39]*** 00 00 00 00 00 00 00 00 [21:10:39]Read from MH i2c: E0 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E0 10 00 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [21:10:39]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [21:10:39]wFMCommunicate request_size=10 [21:10:39]MH_SAM_APDU [21:10:39]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [21:10:39]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [21:10:39]Write i2c OK [21:10:39]MH_I2C_Read... [21:10:39]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [21:10:39]Read from MH i2c: E2 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E2 03 00 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [21:10:39]RAPDU: 90 00 [21:10:39]wFMCommunicate OK [21:10:39]wFMCommunicate request_size=4 [21:10:39]MH_SAM_APDU [21:10:39]CAPDU: 80 11 00 00 [21:10:39]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [21:10:39]Write i2c OK [21:10:39]MH_I2C_Read... [21:10:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:39]Read from MH i2c: E2 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E2 17 00 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 DB [21:10:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:10:39]wFMCommunicate OK [21:10:39]Detected FM SN is 0000000000871749 [21:10:39]Stored FM SN is 0000000000871749 [21:10:39]wFMCommunicate request_size=9 [21:10:39]MH_SAM_APDU [21:10:39]CAPDU: 80 16 00 00 04 F5 85 00 00 [21:10:39]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 F5 85 00 00 00 00 0C [21:10:39]Write i2c OK [21:10:39]MH_I2C_Read... [21:10:39]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [21:10:39]Read from MH i2c: E2 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E2 03 00 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [21:10:39]RAPDU: 90 00 [21:10:39]wFMCommunicate OK [21:10:39]FM PIN OK [21:10:39]wFMCommunicate request_size=8 [21:10:39]MH_SAM_APDU [21:10:39]CAPDU: 80 14 04 00 03 02 00 01 [21:10:39]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [21:10:39]Write i2c OK [21:10:39]MH_I2C_Read... [21:10:39]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [21:10:39]Read from MH i2c: E2 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E2 03 00 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [21:10:39]RAPDU: 90 00 [21:10:39]wFMCommunicate OK [21:10:39]wFMCommunicate request_size=13 [21:10:39]MH_SAM_APDU [21:10:39]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [21:10:39]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [21:10:39]Write i2c OK [21:10:39]MH_I2C_Read... [21:10:39]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [21:10:39]Read from MH i2c: E2 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E2 03 00 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [21:10:39]RAPDU: 90 00 [21:10:39]wFMCommunicate OK [21:10:39]wFMCommunicate request_size=4 [21:10:39]MH_SAM_APDU [21:10:39]CAPDU: 80 11 00 00 [21:10:39]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [21:10:39]Write i2c OK [21:10:39]MH_I2C_Read... [21:10:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:39]Read from MH i2c: E2 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E2 17 00 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 DF [21:10:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:10:39]wFMCommunicate OK [21:10:39]DocumentArchiveInit [21:10:39]Start Httpd... [21:10:39]Httpd thread 3067071844 created [21:10:39]Write to MH i2c: 01 00 00 0F 00 0F [21:10:39]Write i2c OK [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: 01 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: 01 07 00 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [21:10:39]MH Int Process started [21:10:39]Allocated Socket 8 [21:10:39]Bind OK [21:10:39]Listen OK [21:10:39]httpd running on port 8080 [21:10:39]Waiting for new connection... [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:14]accept exits with 9 [21:11:14]New connection [21:11:14]New thread 3066785124 created [21:11:14]Waiting for new connection... [21:11:14] Sock 9.Parse request [21:11:14]Sock 9.Check first char [21:11:14]Sock 9.First char is OK [21:11:14]request: POST /json_proto HTTP/1.0 [21:11:14]Method: POST [21:11:14]URL: /json_proto [21:11:14]Method is POST - this is cgi request [21:11:14]url: /json_proto [21:11:14]query_string will be loaded in cgi processing [21:11:14]execute_cgi json_proto POST (null) [21:11:14]execute_cgi path=json_proto method=POST [21:11:14]POST find Content-Length [21:11:14]Host: 172.17.52.196:8080 [21:11:14]Content-Length: 215 [21:11:14]Content-Type: application/json [21:11:14] [21:11:14]POST finish read [21:11:14]Found Content-Length = 215 [21:11:14]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" ] } } [21:11:14]execute_script... [21:11:14]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" ] } } [21:11:14]POST & json_proto [21:11:14]process_json_proto [21:11:14]json parsed OK: [21:11:14]protocol is kg_v1.0 [21:11:14]action value=get_value [21:11:14]process_action get_value [21:11:14]cmd_get_value [21:11:14]process_action get_value done [21:11:14]requested_data is exist [21:11:14]produce_requested_data [21:11:14]requested_item kkm.sn is exist - process it [21:11:14]requested_item kkm.ver is exist - process it [21:11:14]requested_item fm.sn is exist - process it [21:11:14]wFMCommunicate request_size=4 [21:11:14]MH_SAM_APDU [21:11:14]CAPDU: 80 11 00 00 [21:11:14]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [21:11:14]Write i2c OK [21:11:14]MH_I2C_Read... [21:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:14]Read from MH i2c: E2 [21:11:14]MH_I2C_Read... [21:11:14]Read from MH i2c: E2 17 00 [21:11:14]MH_I2C_Read... [21:11:14]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 31 37 34 39 90 00 E1 [21:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:11:14]wFMCommunicate OK [21:11:14]requested_item fd.num is exist - process it [21:11:14]SAM_PROTO_GetFieldsCounters [21:11:14]wFMCommunicate request_size=4 [21:11:14]MH_SAM_APDU [21:11:14]CAPDU: 80 13 00 00 [21:11:14]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [21:11:14]Write i2c OK [21:11:14]MH_I2C_Read... [21:11:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:14]Read from MH i2c: E2 [21:11:14]MH_I2C_Read... [21:11:14]Read from MH i2c: E2 62 00 [21:11:14]MH_I2C_Read... [21:11:14]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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C0 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [21:11:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C0 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:14]wFMCommunicate OK [21:11:14]SAM_PROTO_GetFieldsCounters done [21:11:14]requested_item shift.num is exist - process it [21:11:14]requested_item shift.opened is exist - process it [21:11:14]req_shift_opened [21:11:14]FM_GetShiftState [21:11:14]SAM_PROTO_GetShiftState [21:11:14]wFMCommunicate request_size=4 [21:11:14]MH_SAM_APDU [21:11:14]CAPDU: 80 13 01 00 [21:11:14]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [21:11:14]Write i2c OK [21:11:14]MH_I2C_Read... [21:11:14]Read from MH i2c: E2 [21:11:14]MH_I2C_Read... [21:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:14]Read from MH i2c: E2 0E 00 [21:11:14]MH_I2C_Read... [21:11:14]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 21 [21:11:14]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [21:11:14]wFMCommunicate OK [21:11:14]SAM_PROTO_GetShiftState done [21:11:14]FM_GetShiftState done [21:11:14]req_shift_opened done [21:11:14]requested_item shift.open_date is exist - process it [21:11:14]req_shift_open_date [21:11:14]req_shift_open_date done [21:11:14]produce_requested_data done [21:11:14]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69824,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [21:11:14]process_action_free get_value [21:11:14]json_value_free [21:11:14]json_value_free done [21:11:14]process_json_proto returns [21:11:14]Send response to host [21:11:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69824,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [21:11:14]free response buf [21:11:14]execute_script done [21:11:14]execute_script returns [21:11:14]free content buf [21:11:14]Sock 9.Close socket [21:11:14]Sock 9.Thread stoped [21:11:14]accept exits with 10 [21:11:14]New connection [21:11:14]New thread 3066641764 created [21:11:14]Thread 3066785124 joined [21:11:14]Waiting for new connection... [21:11:14] Sock 10.Parse request [21:11:14]Sock 10.Check first char [21:11:14]Sock 10.First char is OK [21:11:14]request: POST /json_proto HTTP/1.0 [21:11:14]Method: POST [21:11:14]URL: /json_proto [21:11:14]Method is POST - this is cgi request [21:11:14]url: /json_proto [21:11:14]query_string will be loaded in cgi processing [21:11:14]execute_cgi json_proto POST (null) [21:11:14]execute_cgi path=json_proto method=POST [21:11:14]POST find Content-Length [21:11:14]Host: 172.17.52.196:8080 [21:11:14]Content-Length: 331 [21:11:14]Content-Type: application/json [21:11:14] [21:11:14]POST finish read [21:11:14]Found Content-Length = 331 [21:11: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" ] } } [21:11:14]execute_script... [21:11:15]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" ] } } [21:11:15]POST & json_proto [21:11:15]process_json_proto [21:11:15]json parsed OK: [21:11:15]protocol is kg_v1.0 [21:11:15]action value=get_value [21:11:15]process_action get_value [21:11:15]cmd_get_value [21:11:15]process_action get_value done [21:11:15]requested_data is exist [21:11:15]produce_requested_data [21:11:15]requested_item fm.sale.total is exist - process it [21:11:15]SAM_PROTO_GetFMData [21:11:15]wFMCommunicate request_size=4 [21:11:15]MH_SAM_APDU [21:11:15]CAPDU: 80 13 03 00 [21:11:15]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [21:11:15]Write i2c OK [21:11:15]MH_I2C_Read... [21:11:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:11:15]Read from MH i2c: E2 [21:11:15]MH_I2C_Read... [21:11:15]Read from MH i2c: E2 FD 00 [21:11:15]MH_I2C_Read... [21:11:15]Read from MH i2c: E2 FD 00 13 00 00 C3 04 85 04 BF 04 6E 04 04 00 A4 0C 01 00 69 04 A1 00 6F 04 04 00 46 0C 01 00 B1 04 04 00 BF 4E 8A 78 70 04 04 00 CC 87 9E 67 72 04 04 00 F3 C6 EB 10 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 9F 7D CD 0C 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 E7 02 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 8E [21:11:15]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 A4 0C 01 00 69 04 A1 00 6F 04 04 00 46 0C 01 00 B1 04 04 00 BF 4E 8A 78 70 04 04 00 CC 87 9E 67 72 04 04 00 F3 C6 EB 10 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 9F 7D CD 0C 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 E7 02 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [21:11:15]wFMCommunicate OK [21:11:15]wFMCommunicate request_size=4 [21:11:15]MH_SAM_APDU [21:11:15]CAPDU: 80 17 00 00 [21:11:15]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [21:11:15]Write i2c OK [21:11:15]MH_I2C_Read... [21:11:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:11:15]Read from MH i2c: E2 [21:11:15]MH_I2C_Read... [21:11:15]Read from MH i2c: E2 FD 00 [21:11:15]MH_I2C_Read... [21:11:15]Read from MH i2c: E2 FD 00 14 00 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 98 [21:11:15]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [21:11:15]wFMCommunicate OK [21:11:15]wFMCommunicate request_size=4 [21:11:15]MH_SAM_APDU [21:11:15]CAPDU: 80 17 00 00 [21:11:15]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [21:11:15]Write i2c OK [21:11:15]MH_I2C_Read... [21:11:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:11:16]Read from MH i2c: E2 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: E2 FD 00 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: E2 FD 00 15 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 B3 [21:11:16]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [21:11:16]wFMCommunicate OK [21:11:16]wFMCommunicate request_size=4 [21:11:16]MH_SAM_APDU [21:11:16]CAPDU: 80 17 00 00 [21:11:16]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [21:11:16]Write i2c OK [21:11:16]MH_I2C_Read... [21:11:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:11:16]Read from MH i2c: E2 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: E2 FD 00 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: E2 FD 00 16 00 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 08 [21:11:16]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:11:16]wFMCommunicate OK [21:11:16]wFMCommunicate request_size=4 [21:11:16]MH_SAM_APDU [21:11:16]CAPDU: 80 17 00 00 [21:11:16]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [21:11:16]Write i2c OK [21:11:16]MH_I2C_Read... [21:11:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [21:11:16]Read from MH i2c: E2 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: E2 E0 00 [21:11:16]MH_I2C_Read... [21:11:16]Read from MH i2c: E2 E0 00 17 00 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [21:11:16]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:11:16]wFMCommunicate OK [21:11:16]SAM_PROTO_GetFMData done [21:11:16]requested_item fm.sale_refund.total is exist - process it [21:11:16]requested_item fm.buy.total is exist - process it [21:11:16]requested_item shift.sale.total is exist - process it [21:11:16]SAM_PROTO_GetShiftData [21:11:16]wFMCommunicate request_size=4 [21:11:16]MH_SAM_APDU [21:11:16]CAPDU: 80 13 02 00 [21:11:16]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [21:11:16]Write i2c OK [21:11:16]MH_I2C_Read... [21:11:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:11:17]Read from MH i2c: E2 [21:11:17]MH_I2C_Read... [21:11:17]Read from MH i2c: E2 FD 00 [21:11:17]MH_I2C_Read... [21:11:17]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 72 00 00 00 69 04 9B 00 6F 04 04 00 72 00 00 00 B1 04 03 00 1F DF 2D 70 04 03 00 E0 05 24 72 04 03 00 3F D9 09 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 0E DF 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 E2 67 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 CA [21:11:17]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 72 00 00 00 69 04 9B 00 6F 04 04 00 72 00 00 00 B1 04 03 00 1F DF 2D 70 04 03 00 E0 05 24 72 04 03 00 3F D9 09 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 0E DF 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 E2 67 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [21:11:17]wFMCommunicate OK [21:11:17]wFMCommunicate request_size=4 [21:11:17]MH_SAM_APDU [21:11:17]CAPDU: 80 17 00 00 [21:11:17]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [21:11:17]Write i2c OK [21:11:17]MH_I2C_Read... [21:11:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:11:17]Read from MH i2c: E2 [21:11:17]MH_I2C_Read... [21:11:17]Read from MH i2c: E2 FD 00 [21:11:17]MH_I2C_Read... [21:11:17]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [21:11:17]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [21:11:17]wFMCommunicate OK [21:11:17]wFMCommunicate request_size=4 [21:11:17]MH_SAM_APDU [21:11:17]CAPDU: 80 17 00 00 [21:11:17]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [21:11:17]Write i2c OK [21:11:17]MH_I2C_Read... [21:11:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:11:17]Read from MH i2c: E2 [21:11:17]MH_I2C_Read... [21:11:17]Read from MH i2c: E2 FD 00 [21:11:17]MH_I2C_Read... [21:11:17]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [21:11:17]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [21:11:17]wFMCommunicate OK [21:11:17]wFMCommunicate request_size=4 [21:11:17]MH_SAM_APDU [21:11:17]CAPDU: 80 17 00 00 [21:11:17]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [21:11:17]Write i2c OK [21:11:17]MH_I2C_Read... [21:11:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:11:17]Read from MH i2c: E2 [21:11:17]MH_I2C_Read... [21:11:17]Read from MH i2c: E2 FD 00 [21:11:17]MH_I2C_Read... [21:11:17]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [21:11:18]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [21:11:18]wFMCommunicate OK [21:11:18]wFMCommunicate request_size=4 [21:11:18]MH_SAM_APDU [21:11:18]CAPDU: 80 17 00 00 [21:11:18]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [21:11:18]Write i2c OK [21:11:18]MH_I2C_Read... [21:11:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [21:11:18]Read from MH i2c: E2 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 CB 00 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [21:11:18]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:11:18]wFMCommunicate OK [21:11:18]SAM_PROTO_GetShiftData done [21:11:18]requested_item shift.sale.total_cash is exist - process it [21:11:18]requested_item shift.sale_refund.total is exist - process it [21:11:18]requested_item shift.sale_refund.total_cash is exist - process it [21:11:18]requested_item shift.buy.total is exist - process it [21:11:18]requested_item shift.buy.total_cash is exist - process it [21:11:18]produce_requested_data done [21:11:18]produce_requested_data return {"fm.sale.total":20223300.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":30062.39,"shift.sale.total_cash":23608.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} [21:11:18]process_action_free get_value [21:11:18]json_value_free [21:11:18]json_value_free done [21:11:18]process_json_proto returns [21:11:18]Send response to host [21:11:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20223300.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":30062.39,"shift.sale.total_cash":23608.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}}} [21:11:18]free response buf [21:11:18]execute_script done [21:11:18]execute_script returns [21:11:18]free content buf [21:11:18]Sock 10.Close socket [21:11:18]Sock 10.Thread stoped [21:11:19]OFD Sender: No OFD packet to send [21:11:20]accept exits with 9 [21:11:20]New connection [21:11:20]New thread 3066785124 created [21:11:20]Thread 3066641764 joined [21:11:20]Waiting for new connection... [21:11:20] Sock 9.Parse request [21:11:20]Sock 9.Check first char [21:11:20]Sock 9.First char is OK [21:11:20]request: POST /json_proto HTTP/1.0 [21:11:20]Method: POST [21:11:20]URL: /json_proto [21:11:20]Method is POST - this is cgi request [21:11:20]url: /json_proto [21:11:20]query_string will be loaded in cgi processing [21:11:20]execute_cgi json_proto POST (null) [21:11:20]execute_cgi path=json_proto method=POST [21:11:20]POST find Content-Length [21:11:20]Host: 172.17.52.196:8080 [21:11:20]Content-Length: 621 [21:11:20]Content-Type: application/json [21:11:20] [21:11:20]POST finish read [21:11:20]Found Content-Length = 621 [21:11:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127223", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:20]execute_script... [21:11:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127223", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:20]POST & json_proto [21:11:20]process_json_proto [21:11:20]json parsed OK: [21:11:20]protocol is kg_v1.0 [21:11:20]action value=close_receipt [21:11:20]process_action close_receipt [21:11:20]cmd_close_receipt [21:11:20]MH_GetDate [21:11:20]Write to MH i2c: F0 00 00 1D 00 0C [21:11:20]Write i2c OK [21:11:20]MH_I2C_Read... [21:11:20]Read from MH i2c: F0 [21:11:20]MH_I2C_Read... [21:11:20]Read from MH i2c: F0 09 00 [21:11:20]MH_I2C_Read... [21:11:20]Read from MH i2c: F0 09 00 1D 00 00 F9 71 15 67 60 05 E4 66 AA [21:11:20]GetLastDocTimeStamp 1729457293 [21:11:20]current date 1729458681 [21:11:20]FM_GetShiftState [21:11:20]SAM_PROTO_GetShiftState [21:11:20]wFMCommunicate request_size=4 [21:11:20]MH_SAM_APDU [21:11:20]CAPDU: 80 13 01 00 [21:11:20]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [21:11:20]Write i2c OK [21:11:20]MH_I2C_Read... [21:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:20]Read from MH i2c: E2 [21:11:20]MH_I2C_Read... [21:11:20]Read from MH i2c: E2 0E 00 [21:11:20]MH_I2C_Read... [21:11:20]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 2D [21:11:20]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [21:11:20]wFMCommunicate OK [21:11:20]SAM_PROTO_GetShiftState done [21:11:20]FM_GetShiftState done [21:11:20]opened in 1729384380 [21:11:20]opened+sec_in_day 1729470780 [21:11:20]quantity*price = 28800 [21:11:20]sum+1 = 28801 [21:11:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 115 20.10.2024 21:11 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69825 ФПД: 114722657927157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211121&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69825&fm=114722657927157&tin=02508201610067®Number=0000000000091770&sum=28800 0 [21:11:21]StoreToDocumentArchive [21:11:21]shift 526 fd 69825 [21:11:21]save to /storage/0526/doc_00069825 [21:11:21]save last doc name /storage/0526/doc_00069825 to /storage/kkm_last_doc_name [21:11:21]save OK [21:11:21]Clear old archive folders... [21:11:21]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:11:21]tlvbuf is 0179FB70 [21:11:21]SAM_PROTO_ClearQueue [21:11:21]wFMCommunicate request_size=4 [21:11:21]MH_SAM_APDU [21:11:21]CAPDU: 80 09 00 00 [21:11:21]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [21:11:21]Write i2c OK [21:11:21]MH_I2C_Read... [21:11:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:21]Read from MH i2c: E2 [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: E2 03 00 [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [21:11:21]RAPDU: 90 00 [21:11:21]wFMCommunicate OK [21:11:21]SAM_PROTO_ClearQueue done [21:11:21]KKMCreateOFDPacket [21:11:21]OFDProtocolAddRootSTLVToBuf [21:11:21]FM_MakeSignedData [21:11:21]FM_MakeSignedData [21:11:21]SAM_PROTO_SignData [21:11:21]wFMCommunicate request_size=4 [21:11:21]MH_SAM_APDU [21:11:21]CAPDU: 80 0D 01 02 [21:11:21]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [21:11:21]Write i2c OK [21:11:21]MH_I2C_Read... [21:11:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:21]Read from MH i2c: E2 [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: E2 03 00 [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [21:11:21]RAPDU: 90 00 [21:11:21]wFMCommunicate OK [21:11:21]wFMCommunicate request_size=255 [21:11:21]MH_SAM_APDU [21:11:21]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 F9 71 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [21:11:21]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 F9 71 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 4A [21:11:21]Write i2c OK [21:11:21]MH_I2C_Read... [21:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:22]Read from MH i2c: E2 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 03 00 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [21:11:22]RAPDU: 90 00 [21:11:22]wFMCommunicate OK [21:11:22]wFMCommunicate request_size=32 [21:11:22]MH_SAM_APDU [21:11:22]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 C1 10 01 00 35 04 06 00 68 56 F3 45 FF F5 [21:11:22]Write to MH i2c: E2 23 00 2E 00 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 C1 10 01 00 35 04 06 00 68 56 F3 45 FF F5 00 00 C5 [21:11:22]Write i2c OK [21:11:22]MH_I2C_Read... [21:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:22]Read from MH i2c: E2 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 03 00 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [21:11:22]RAPDU: 90 00 [21:11:22]wFMCommunicate OK [21:11:22]wFMCommunicate request_size=4 [21:11:22]MH_SAM_APDU [21:11:22]CAPDU: 80 0D 03 02 [21:11:22]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [21:11:22]Write i2c OK [21:11:22]MH_I2C_Read... [21:11:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:22]Read from MH i2c: E2 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 0B 00 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 0B 00 2F 00 00 6F 5D A2 3B DA E1 32 84 90 00 C5 [21:11:22]RAPDU: 6F 5D A2 3B DA E1 32 84 90 00 [21:11:22]wFMCommunicate OK [21:11:22]SAM_PROTO_SignData done [21:11:22]FM_MakeSignedData done [21:11:22]CreateOFDProtocolMessage [21:11:22]wFMCommunicate request_size=4 [21:11:22]MH_SAM_APDU [21:11:22]CAPDU: 80 11 00 00 [21:11:22]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [21:11:22]Write i2c OK [21:11:22]MH_I2C_Read... [21:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:22]Read from MH i2c: E2 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 17 00 [21:11:22]MH_I2C_Read... [21:11:22]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 31 37 34 39 90 00 01 [21:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:11:22]wFMCommunicate OK [21:11:22]CreateOFDProtocolMessage done [21:11:22]OFDSenderStorePacket 69825 [21:11:22]StoreOFDPacket docnum=69825 [21:11:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 AE 79 1D 01 C3 57 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 F9 71 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C1 10 01 00 35 04 06 00 68 56 F3 45 FF F5 6F 5D A2 3B DA E1 32 84 [21:11:22]CheckFolder [21:11:22]dirname=/storage/ofd_packets [21:11:22]CheckFolder done [21:11:22]ProducePacketName [21:11:22]name=ofd_packets/00069825 [21:11:22]NVStorageSaveData ofd_packets/00069825 [21:11:22]File name is /storage/ofd_packets/00069825 [21:11:22]Write 323 bytes [21:11:22]NVStorageSaveData done [21:11:22]OFDSenderStorePacket done [21:11:22]KKMCreateOFDPacket done [21:11:22]NVStorageSaveData kkm_last_timestamp [21:11:22]File name is /storage/kkm_last_timestamp [21:11:22]Write 4 bytes [21:11:22]NVStorageSaveData done [21:11:22]ExternCall_PrintAddStr [21:11:22]wPrintStart [21:11:22]Write to MH i2c: 01 00 00 31 00 31 [21:11:22]Write i2c OK [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: 01 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: 01 07 00 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [21:11:22]RasterBufferAndPrint [21:11:22]line Счет N : (3)127223 [21:11:22]line ИНН: 02508201610067 [21:11:22]line Контрольно-Кассовый Чек [21:11:22]line ПРОДАЖА [21:11:22]line Товар: 48743570 [21:11:22]line Сигареты Winston XStyle Blue [21:11:22]line 2.000 * 144.00 [21:11:22]line = 288.00 [21:11:22]line НДС 12% НСП 1% [21:11:22]line > о реализуемом товаре [21:11:22]line ИТОГО: 288.00 [21:11:22]line НСП 1% : 2.55 [21:11:22]line НДС 12% : 30.58 [21:11:22]line Наличными: 288.00 [21:11:22]line Безнал.: 0.00 [21:11:22]line Место: АЗС № 163 "Партнер Нефть" [21:11:22]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [21:11:22]line СНО: Общий режим [21:11:22]line Чек 115 20.10.2024 21:11 [21:11:22]line Смена: 526 ФФД: 1.0 [21:11:22]line ЗНМ: 0300000101 [21:11:22]line РНМ: 0000000000091770 [21:11:22]line Версия ККМ: 001 [21:11:22]line ФМ: 0000000000871749 [21:11:22]line ФД: 69825 [21:11:22]line ФПД: 114722657927157 [21:11:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211121&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69825&fm=114722657927157&tin=02508201610067®Number=0000000000091770&sum=28800 [21:11:22]line 0 [21:11:22]written 0, free lines is 4095 [21:11:22]OFD Sender: Processing packet 69825 [packets to send 32, broken 31] [21:11:22]ProducePacketName [21:11:22]name=ofd_packets/00069825 [21:11:22]OFD Sender: To server: pG, [21:11:22]CommunicateWithHost lk.salyk.kg:30040 [21:11:22]ConnectInit lk.salyk.kg [21:11:22]Connected sock=10 [21:11:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 AE 79 1D 01 C3 57 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 F9 71 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C1 10 01 00 35 04 06 00 68 56 F3 45 FF F5 6F 5D A2 3B DA E1 32 84 [21:11:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 05 86 47 00 48 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 31 37 34 39 10 04 04 00 C1 10 01 00 F4 03 04 00 7A 17 15 67 B6 04 01 00 00 4B 91 F1 5F 7E 8D D8 2C [21:11:22]CommunicateWithHost err = 0 [21:11:22]CheckOFDResponse [21:11:22]1017 (14) - 77093643461234 [21:11:22]1041 (16) - 0000000000871749 [21:11:22]1040 (4) - 69825 [21:11:22]1012 (4) - 20.10.2024 14:45 [21:11:22]1206 (1) - 0 [21:11:22]OFD Sender: Remove packet 69825 [21:11:22]ProducePacketName [21:11:22]name=ofd_packets/00069825 [21:11:22]NVStorageDeleteData [21:11:22]Write to MH i2c: 01 00 00 59 00 59 [21:11:22]Write i2c OK [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: 01 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: 01 07 00 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: 01 07 00 59 00 00 00 00 00 00 29 0D 96 [21:11:22]RasterBufferAndPrint [21:11:22]line [21:11:22]line [21:11:22]line [21:11:22]line [21:11:22]line [21:11:22]written 0, free lines is 3389 [21:11:22]MH_Cut [21:11:22]Write to MH i2c: D1 01 00 60 00 01 32 [21:11:22]Write i2c OK [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: D1 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: D1 01 00 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: D1 01 00 60 00 00 31 [21:11:22]Write to MH i2c: 01 00 00 61 00 61 [21:11:22]Write i2c OK [21:11:22]MH_I2C_Read... [21:11:23]OFD Sender: No OFD packet to send [21:11:23]*** Cut start [21:11:23]*** Partial cut [21:11:23]*** CUTSNS_PIN = 1 [21:11:23]*** CUTSNS_PIN = 0 [21:11:24]*** Brake cut motor [21:11:24]Read from MH i2c: 01 [21:11:24]MH_I2C_Read... [21:11:24]*** Stop cut motor [21:11:24]*** Cut end [21:11:24]Read from MH i2c: 01 07 00 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 FF 0F 76 [21:11:24]process_action close_receipt done [21:11:24]requested_data is exist [21:11:24]produce_requested_data [21:11:24]requested_item fm.sn is exist - process it [21:11:24]wFMCommunicate request_size=4 [21:11:24]MH_SAM_APDU [21:11:24]CAPDU: 80 11 00 00 [21:11:24]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [21:11:24]Write i2c OK [21:11:24]MH_I2C_Read... [21:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:24]Read from MH i2c: E2 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 17 00 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 33 [21:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:11:24]wFMCommunicate OK [21:11:24]requested_item fd.num is exist - process it [21:11:24]SAM_PROTO_GetFieldsCounters [21:11:24]wFMCommunicate request_size=4 [21:11:24]MH_SAM_APDU [21:11:24]CAPDU: 80 13 00 00 [21:11:24]Write to MH i2c: E2 08 00 63 00 80 13 00 00 00 00 00 00 DF [21:11:24]Write i2c OK [21:11:24]MH_I2C_Read... [21:11:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:24]Read from MH i2c: E2 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 62 00 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 62 00 63 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C1 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [21:11:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C1 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:24]wFMCommunicate OK [21:11:24]SAM_PROTO_GetFieldsCounters done [21:11:24]requested_item shift.num is exist - process it [21:11:24]requested_item shift.opened is exist - process it [21:11:24]req_shift_opened [21:11:24]FM_GetShiftState [21:11:24]SAM_PROTO_GetShiftState [21:11:24]wFMCommunicate request_size=4 [21:11:24]MH_SAM_APDU [21:11:24]CAPDU: 80 13 01 00 [21:11:24]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [21:11:24]Write i2c OK [21:11:24]MH_I2C_Read... [21:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:24]Read from MH i2c: E2 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 0E 00 [21:11:24]MH_I2C_Read... [21:11:24]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 73 [21:11:24]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [21:11:24]wFMCommunicate OK [21:11:24]SAM_PROTO_GetShiftState done [21:11:24]FM_GetShiftState done [21:11:24]req_shift_opened done [21:11:24]requested_item shift.open_date is exist - process it [21:11:24]req_shift_open_date [21:11:24]req_shift_open_date done [21:11:24]produce_requested_data done [21:11:24]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69825,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [21:11:24]process_action_free close_receipt [21:11:24]json_value_free [21:11:24]json_value_free done [21:11:24]process_json_proto returns [21:11:24]Send response to host [21:11:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69825,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [21:11:24]free response buf [21:11:24]execute_script done [21:11:24]execute_script returns [21:11:24]free content buf [21:11:24]Sock 9.Close socket [21:11:24]Sock 9.Thread stoped [21:11:25]accept exits with 7 [21:11:25]New connection [21:11:25]New thread 3066641764 created [21:11:25]Thread 3066785124 joined [21:11:25]Waiting for new connection... [21:11:25] Sock 7.Parse request [21:11:25]Sock 7.Check first char [21:11:25]Sock 7.First char is OK [21:11:25]request: POST /json_proto HTTP/1.0 [21:11:25]Method: POST [21:11:25]URL: /json_proto [21:11:25]Method is POST - this is cgi request [21:11:25]url: /json_proto [21:11:25]query_string will be loaded in cgi processing [21:11:25]execute_cgi json_proto POST (null) [21:11:25]execute_cgi path=json_proto method=POST [21:11:25]POST find Content-Length [21:11:25]Host: 172.17.52.196:8080 [21:11:25]Content-Length: 626 [21:11:25]Content-Type: application/json [21:11:25] [21:11:25]POST finish read [21:11:25]Found Content-Length = 626 [21:11:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127224", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "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" ] } } [21:11:25]execute_script... [21:11:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127224", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "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" ] } } [21:11:25]POST & json_proto [21:11:25]process_json_proto [21:11:25]json parsed OK: [21:11:25]protocol is kg_v1.0 [21:11:25]action value=close_receipt [21:11:25]process_action close_receipt [21:11:25]cmd_close_receipt [21:11:25]MH_GetDate [21:11:25]Write to MH i2c: F0 00 00 65 00 54 [21:11:25]Write i2c OK [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: F0 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: F0 09 00 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: F0 09 00 65 00 00 FE 71 15 67 60 05 E4 66 F7 [21:11:25]GetLastDocTimeStamp 1729458681 [21:11:25]current date 1729458686 [21:11:25]FM_GetShiftState [21:11:25]SAM_PROTO_GetShiftState [21:11:25]wFMCommunicate request_size=4 [21:11:25]MH_SAM_APDU [21:11:25]CAPDU: 80 13 01 00 [21:11:25]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [21:11:25]Write i2c OK [21:11:25]MH_I2C_Read... [21:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:25]Read from MH i2c: E2 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: E2 0E 00 [21:11:25]MH_I2C_Read... [21:11:25]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 75 [21:11:25]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [21:11:25]wFMCommunicate OK [21:11:25]SAM_PROTO_GetShiftState done [21:11:25]FM_GetShiftState done [21:11:25]opened in 1729384380 [21:11:25]opened+sec_in_day 1729470780 [21:11:25]quantity*price = 15000 [21:11:25]sum+1 = 15001 [21:11:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 116 20.10.2024 21:11 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69826 ФПД: 94866433077926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211126&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69826&fm=94866433077926&tin=02508201610067®Number=0000000000091770&sum=15000 0 [21:11:27]StoreToDocumentArchive [21:11:27]shift 526 fd 69826 [21:11:27]save to /storage/0526/doc_00069826 [21:11:27]save last doc name /storage/0526/doc_00069826 to /storage/kkm_last_doc_name [21:11:27]save OK [21:11:27]Clear old archive folders... [21:11:27]ProcessDocumentItem done err = 0, tmpTLVsize=278 [21:11:27]tlvbuf is 01764740 [21:11:27]SAM_PROTO_ClearQueue [21:11:27]wFMCommunicate request_size=4 [21:11:27]MH_SAM_APDU [21:11:27]CAPDU: 80 09 00 00 [21:11:27]Write to MH i2c: E2 08 00 73 00 80 09 00 00 00 00 00 00 E5 [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:27]Read from MH i2c: E2 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 03 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [21:11:27]RAPDU: 90 00 [21:11:27]wFMCommunicate OK [21:11:27]SAM_PROTO_ClearQueue done [21:11:27]KKMCreateOFDPacket [21:11:27]OFDProtocolAddRootSTLVToBuf [21:11:27]FM_MakeSignedData [21:11:27]FM_MakeSignedData [21:11:27]SAM_PROTO_SignData [21:11:27]wFMCommunicate request_size=4 [21:11:27]MH_SAM_APDU [21:11:27]CAPDU: 80 0D 01 02 [21:11:27]Write to MH i2c: E2 08 00 74 00 80 0D 01 02 00 00 00 00 ED [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:27]Read from MH i2c: E2 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 03 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [21:11:27]RAPDU: 90 00 [21:11:27]wFMCommunicate OK [21:11:27]wFMCommunicate request_size=255 [21:11:27]MH_SAM_APDU [21:11:27]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 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 74 00 00 00 F4 03 04 00 FE 71 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 [21:11:27]Write to MH i2c: E2 02 01 75 00 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 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 74 00 00 00 F4 03 04 00 FE 71 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 00 00 80 [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:27]Read from MH i2c: E2 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 03 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [21:11:27]RAPDU: 90 00 [21:11:27]wFMCommunicate OK [21:11:27]wFMCommunicate request_size=37 [21:11:27]MH_SAM_APDU [21:11:27]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C2 10 01 00 35 04 06 00 56 47 D0 0B 72 A6 [21:11:27]Write to MH i2c: E2 28 00 76 00 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C2 10 01 00 35 04 06 00 56 47 D0 0B 72 A6 00 00 AE [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:27]Read from MH i2c: E2 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 03 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [21:11:27]RAPDU: 90 00 [21:11:27]wFMCommunicate OK [21:11:27]wFMCommunicate request_size=4 [21:11:27]MH_SAM_APDU [21:11:27]CAPDU: 80 0D 03 02 [21:11:27]Write to MH i2c: E2 08 00 77 00 80 0D 03 02 00 00 00 00 F2 [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:27]Read from MH i2c: E2 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 0B 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 0B 00 77 00 00 A7 8E 7C 2E A4 C7 99 B0 90 00 86 [21:11:27]RAPDU: A7 8E 7C 2E A4 C7 99 B0 90 00 [21:11:27]wFMCommunicate OK [21:11:27]SAM_PROTO_SignData done [21:11:27]FM_MakeSignedData done [21:11:27]CreateOFDProtocolMessage [21:11:27]wFMCommunicate request_size=4 [21:11:27]MH_SAM_APDU [21:11:27]CAPDU: 80 11 00 00 [21:11:27]Write to MH i2c: E2 08 00 78 00 80 11 00 00 00 00 00 00 F2 [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:27]Read from MH i2c: E2 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 17 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: E2 17 00 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 49 [21:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:11:27]wFMCommunicate OK [21:11:27]CreateOFDProtocolMessage done [21:11:27]OFDSenderStorePacket 69826 [21:11:27]StoreOFDPacket docnum=69826 [21:11:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2A 01 00 00 8F BA 22 01 A9 BA 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 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 74 00 00 00 F4 03 04 00 FE 71 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C2 10 01 00 35 04 06 00 56 47 D0 0B 72 A6 A7 8E 7C 2E A4 C7 99 B0 [21:11:27]CheckFolder [21:11:27]dirname=/storage/ofd_packets [21:11:27]CheckFolder done [21:11:27]ProducePacketName [21:11:27]name=ofd_packets/00069826 [21:11:27]NVStorageSaveData ofd_packets/00069826 [21:11:27]File name is /storage/ofd_packets/00069826 [21:11:27]Write 328 bytes [21:11:27]NVStorageSaveData done [21:11:27]OFDSenderStorePacket done [21:11:27]KKMCreateOFDPacket done [21:11:27]NVStorageSaveData kkm_last_timestamp [21:11:27]File name is /storage/kkm_last_timestamp [21:11:27]Write 4 bytes [21:11:27]NVStorageSaveData done [21:11:27]ExternCall_PrintAddStr [21:11:27]wPrintStart [21:11:27]Write to MH i2c: 01 00 00 79 00 79 [21:11:27]Write i2c OK [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: 01 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: 01 07 00 [21:11:27]MH_I2C_Read... [21:11:27]Read from MH i2c: 01 07 00 79 00 00 00 00 00 00 FF 0F 8E [21:11:27]RasterBufferAndPrint [21:11:27]line Счет N : (3)127224 [21:11:27]line ИНН: 02508201610067 [21:11:27]line Контрольно-Кассовый Чек [21:11:27]line ПРОДАЖА [21:11:27]line Товар: 4640030092499 [21:11:27]line Сигареты ESSE SENSE Himalaya [21:11:27]line 1.000 * 150.00 [21:11:27]line = 150.00 [21:11:27]line НДС 12% НСП 1% [21:11:27]line > о реализуемом товаре [21:11:27]line ИТОГО: 150.00 [21:11:27]line НСП 1% : 1.33 [21:11:27]line НДС 12% : 15.93 [21:11:27]line Наличными: 150.00 [21:11:27]line Безнал.: 0.00 [21:11:27]line Место: АЗС № 163 "Партнер Нефть" [21:11:27]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [21:11:27]line СНО: Общий режим [21:11:27]line Чек 116 20.10.2024 21:11 [21:11:27]line Смена: 526 ФФД: 1.0 [21:11:27]line ЗНМ: 0300000101 [21:11:27]line РНМ: 0000000000091770 [21:11:27]line Версия ККМ: 001 [21:11:27]line ФМ: 0000000000871749 [21:11:27]line ФД: 69826 [21:11:27]line ФПД: 94866433077926 [21:11:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211126&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69826&fm=94866433077926&tin=02508201610067®Number=0000000000091770&sum=15000 [21:11:27]line 0 [21:11:27]written 0, free lines is 4095 [21:11:27]OFD Sender: Processing packet 69826 [packets to send 32, broken 31] [21:11:27]ProducePacketName [21:11:27]name=ofd_packets/00069826 [21:11:27]OFD Sender: To server: pG, [21:11:27]CommunicateWithHost lk.salyk.kg:30040 [21:11:27]ConnectInit lk.salyk.kg [21:11:28]Connected sock=10 [21:11:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2A 01 00 00 8F BA 22 01 A9 BA 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 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 74 00 00 00 F4 03 04 00 FE 71 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C2 10 01 00 35 04 06 00 56 47 D0 0B 72 A6 A7 8E 7C 2E A4 C7 99 B0 [21:11:28]Write to MH i2c: 01 00 00 A2 00 A2 [21:11:28]Write i2c OK [21:11:28]MH_I2C_Read... [21:11:28]Read from MH i2c: 01 [21:11:28]MH_I2C_Read... [21:11:28]Read from MH i2c: 01 07 00 [21:11:28]MH_I2C_Read... [21:11:28]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 02 0D B8 [21:11:28]RasterBufferAndPrint [21:11:28]line [21:11:28]line [21:11:28]line [21:11:28]line [21:11:28]line [21:11:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 95 B5 47 00 2D 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C2 10 01 00 F4 03 04 00 80 17 15 67 B6 04 01 00 00 BA 59 1E 65 70 03 F9 25 [21:11:28]CommunicateWithHost err = 0 [21:11:28]CheckOFDResponse [21:11:28]1017 (14) - 77093643461234 [21:11:28]1041 (16) - 0000000000871749 [21:11:28]1040 (4) - 69826 [21:11:28]1012 (4) - 20.10.2024 14:45 [21:11:28]1206 (1) - 0 [21:11:28]OFD Sender: Remove packet 69826 [21:11:28]ProducePacketName [21:11:28]name=ofd_packets/00069826 [21:11:28]NVStorageDeleteData [21:11:28]written 0, free lines is 3368 [21:11:28]MH_Cut [21:11:28]Write to MH i2c: D1 01 00 A9 00 01 7B [21:11:28]Write i2c OK [21:11:28]MH_I2C_Read... [21:11:28]Read from MH i2c: D1 [21:11:28]MH_I2C_Read... [21:11:28]Read from MH i2c: D1 01 00 [21:11:28]MH_I2C_Read... [21:11:28]Read from MH i2c: D1 01 00 A9 00 00 7A [21:11:28]Write to MH i2c: 01 00 00 AA 00 AA [21:11:28]Write i2c OK [21:11:28]MH_I2C_Read... [21:11:28]OFD Sender: No OFD packet to send [21:11:29]*** Cut start [21:11:29]*** Partial cut [21:11:29]*** CUTSNS_PIN = 1 [21:11:29]*** CUTSNS_PIN = 0 [21:11:29]*** Brake cut motor [21:11:29]Read from MH i2c: 01 [21:11:29]MH_I2C_Read... [21:11:29]*** Stop cut motor [21:11:29]*** Cut end [21:11:29]Read from MH i2c: 01 07 00 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: 01 07 00 AA 00 00 00 00 00 00 FF 0F BF [21:11:29]process_action close_receipt done [21:11:29]requested_data is exist [21:11:29]produce_requested_data [21:11:29]requested_item fm.sn is exist - process it [21:11:29]wFMCommunicate request_size=4 [21:11:29]MH_SAM_APDU [21:11:29]CAPDU: 80 11 00 00 [21:11:29]Write to MH i2c: E2 08 00 AB 00 80 11 00 00 00 00 00 00 25 [21:11:29]Write i2c OK [21:11:29]MH_I2C_Read... [21:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:29]Read from MH i2c: E2 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 17 00 [21:11:29]MH_I2C_Read... [21:11:29]Read from MH i2c: E2 17 00 AB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 7C [21:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:11:29]wFMCommunicate OK [21:11:29]requested_item fd.num is exist - process it [21:11:29]SAM_PROTO_GetFieldsCounters [21:11:29]wFMCommunicate request_size=4 [21:11:29]MH_SAM_APDU [21:11:29]CAPDU: 80 13 00 00 [21:11:29]Write to MH i2c: E2 08 00 AC 00 80 13 00 00 00 00 00 00 28 [21:11:30]Write i2c OK [21:11:30]MH_I2C_Read... [21:11:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:30]Read from MH i2c: E2 [21:11:30]MH_I2C_Read... [21:11:30]Read from MH i2c: E2 62 00 [21:11:30]MH_I2C_Read... [21:11:30]Read from MH i2c: E2 62 00 AC 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C2 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [21:11:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C2 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:30]wFMCommunicate OK [21:11:30]SAM_PROTO_GetFieldsCounters done [21:11:30]requested_item shift.num is exist - process it [21:11:30]requested_item shift.opened is exist - process it [21:11:30]req_shift_opened [21:11:30]FM_GetShiftState [21:11:30]SAM_PROTO_GetShiftState [21:11:30]wFMCommunicate request_size=4 [21:11:30]MH_SAM_APDU [21:11:30]CAPDU: 80 13 01 00 [21:11:30]Write to MH i2c: E2 08 00 AD 00 80 13 01 00 00 00 00 00 2A [21:11:30]Write i2c OK [21:11:30]MH_I2C_Read... [21:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:30]Read from MH i2c: E2 [21:11:30]MH_I2C_Read... [21:11:30]Read from MH i2c: E2 0E 00 [21:11:30]MH_I2C_Read... [21:11:30]Read from MH i2c: E2 0E 00 AD 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 BC [21:11:30]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [21:11:30]wFMCommunicate OK [21:11:30]SAM_PROTO_GetShiftState done [21:11:30]FM_GetShiftState done [21:11:30]req_shift_opened done [21:11:30]requested_item shift.open_date is exist - process it [21:11:30]req_shift_open_date [21:11:30]req_shift_open_date done [21:11:30]produce_requested_data done [21:11:30]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69826,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [21:11:30]process_action_free close_receipt [21:11:30]json_value_free [21:11:30]json_value_free done [21:11:30]process_json_proto returns [21:11:30]Send response to host [21:11:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69826,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [21:11:30]free response buf [21:11:30]execute_script done [21:11:30]execute_script returns [21:11:30]free content buf [21:11:30]Sock 7.Close socket [21:11:30]Sock 7.Thread stoped [21:11:31]accept exits with 9 [21:11:31]New connection [21:11:31]New thread 3066785124 created [21:11:31]Thread 3066641764 joined [21:11:31]Waiting for new connection... [21:11:31] Sock 9.Parse request [21:11:31]Sock 9.Check first char [21:11:31]Sock 9.First char is OK [21:11:31]request: POST /json_proto HTTP/1.0 [21:11:31]Method: POST [21:11:31]URL: /json_proto [21:11:31]Method is POST - this is cgi request [21:11:31]url: /json_proto [21:11:31]query_string will be loaded in cgi processing [21:11:31]execute_cgi json_proto POST (null) [21:11:31]execute_cgi path=json_proto method=POST [21:11:31]POST find Content-Length [21:11:31]Host: 172.17.52.196:8080 [21:11:31]Content-Length: 930 [21:11:31]Content-Type: application/json [21:11:31] [21:11:31]POST finish read [21:11:31]Found Content-Length = 930 [21:11:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127225", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 323.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:31]execute_script... [21:11:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127225", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 323.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:31]POST & json_proto [21:11:31]process_json_proto [21:11:31]json parsed OK: [21:11:31]protocol is kg_v1.0 [21:11:31]action value=close_receipt [21:11:31]process_action close_receipt [21:11:31]cmd_close_receipt [21:11:31]MH_GetDate [21:11:31]Write to MH i2c: F0 00 00 AE 00 9D [21:11:31]Write i2c OK [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: F0 [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: F0 09 00 [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: F0 09 00 AE 00 00 04 72 15 67 60 05 E4 66 47 [21:11:31]GetLastDocTimeStamp 1729458686 [21:11:31]current date 1729458692 [21:11:31]FM_GetShiftState [21:11:31]SAM_PROTO_GetShiftState [21:11:31]wFMCommunicate request_size=4 [21:11:31]MH_SAM_APDU [21:11:31]CAPDU: 80 13 01 00 [21:11:31]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [21:11:31]Write i2c OK [21:11:31]MH_I2C_Read... [21:11:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:31]Read from MH i2c: E2 [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: E2 0E 00 [21:11:31]MH_I2C_Read... [21:11:31]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 BE [21:11:31]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [21:11:31]wFMCommunicate OK [21:11:31]SAM_PROTO_GetShiftState done [21:11:31]FM_GetShiftState done [21:11:31]opened in 1729384380 [21:11:31]opened+sec_in_day 1729470780 [21:11:31]quantity*price = 23000 [21:11:31]sum+1 = 23001 [21:11:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4603290004879 Печ.сах.FORSITE Сэнд.кокос.вк 1.000 * 93.00 = 93.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 323.00 НСП 1% : 2.85 НДС 12% : 34.30 Наличными: 323.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 117 20.10.2024 21:11 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69827 ФПД: 266658007408979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211132&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69827&fm=266658007408979&tin=02508201610067®Number=0000000000091770&sum=32300 0 [21:11:33]StoreToDocumentArchive [21:11:33]shift 526 fd 69827 [21:11:33]save to /storage/0526/doc_00069827 [21:11:33]save last doc name /storage/0526/doc_00069827 to /storage/kkm_last_doc_name [21:11:33]save OK [21:11:33]Clear old archive folders... [21:11:33]ProcessDocumentItem done err = 0, tmpTLVsize=398 [21:11:33]tlvbuf is 017C9A90 [21:11:33]SAM_PROTO_ClearQueue [21:11:33]wFMCommunicate request_size=4 [21:11:33]MH_SAM_APDU [21:11:33]CAPDU: 80 09 00 00 [21:11:33]Write to MH i2c: E2 08 00 BC 00 80 09 00 00 00 00 00 00 2E [21:11:33]Write i2c OK [21:11:33]MH_I2C_Read... [21:11:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:33]Read from MH i2c: E2 [21:11:33]MH_I2C_Read... [21:11:33]Read from MH i2c: E2 03 00 [21:11:33]MH_I2C_Read... [21:11:33]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [21:11:33]RAPDU: 90 00 [21:11:33]wFMCommunicate OK [21:11:33]SAM_PROTO_ClearQueue done [21:11:33]KKMCreateOFDPacket [21:11:33]OFDProtocolAddRootSTLVToBuf [21:11:33]FM_MakeSignedData [21:11:33]FM_MakeSignedData [21:11:33]SAM_PROTO_SignData [21:11:33]wFMCommunicate request_size=4 [21:11:33]MH_SAM_APDU [21:11:33]CAPDU: 80 0D 01 02 [21:11:33]Write to MH i2c: E2 08 00 BD 00 80 0D 01 02 00 00 00 00 36 [21:11:33]Write i2c OK [21:11:33]MH_I2C_Read... [21:11:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:33]Read from MH i2c: E2 [21:11:33]MH_I2C_Read... [21:11:33]Read from MH i2c: E2 03 00 [21:11:33]MH_I2C_Read... [21:11:33]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [21:11:33]RAPDU: 90 00 [21:11:33]wFMCommunicate OK [21:11:33]wFMCommunicate request_size=255 [21:11:33]MH_SAM_APDU [21:11:33]CAPDU: 80 0D 02 02 FA 03 00 8E 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 [21:11:33]Write to MH i2c: E2 02 01 BE 00 80 0D 02 02 FA 00 03 00 8E 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 00 6A [21:11:33]Write i2c OK [21:11:33]MH_I2C_Read... [21:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:33]Read from MH i2c: E2 [21:11:33]MH_I2C_Read... [21:11:33]Read from MH i2c: E2 03 00 [21:11:33]MH_I2C_Read... [21:11:33]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [21:11:33]RAPDU: 90 00 [21:11:33]wFMCommunicate OK [21:11:33]wFMCommunicate request_size=157 [21:11:33]MH_SAM_APDU [21:11:33]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0D 00 00 00 00 07 04 06 00 2C 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 04 72 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C3 10 01 00 35 04 06 00 F2 86 27 CE E1 53 [21:11:33]Write to MH i2c: E2 A0 00 BF 00 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0D 00 00 00 00 07 04 06 00 2C 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 04 72 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C3 10 01 00 35 04 06 00 F2 86 27 CE E1 53 00 00 BC [21:11:34]OFD Sender: No OFD packet to send [21:11:34]Write i2c OK [21:11:34]MH_I2C_Read... [21:11:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:34]Read from MH i2c: E2 [21:11:34]MH_I2C_Read... [21:11:34]Read from MH i2c: E2 03 00 [21:11:34]MH_I2C_Read... [21:11:34]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [21:11:34]RAPDU: 90 00 [21:11:34]wFMCommunicate OK [21:11:34]wFMCommunicate request_size=4 [21:11:34]MH_SAM_APDU [21:11:34]CAPDU: 80 0D 03 02 [21:11:34]Write to MH i2c: E2 08 00 C0 00 80 0D 03 02 00 00 00 00 3B [21:11:34]Write i2c OK [21:11:34]MH_I2C_Read... [21:11:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:34]Read from MH i2c: E2 [21:11:34]MH_I2C_Read... [21:11:34]Read from MH i2c: E2 0B 00 [21:11:34]MH_I2C_Read... [21:11:34]Read from MH i2c: E2 0B 00 C0 00 00 E0 D5 3F 58 00 FB 19 0D 90 00 A9 [21:11:34]RAPDU: E0 D5 3F 58 00 FB 19 0D 90 00 [21:11:34]wFMCommunicate OK [21:11:34]SAM_PROTO_SignData done [21:11:34]FM_MakeSignedData done [21:11:34]CreateOFDProtocolMessage [21:11:34]wFMCommunicate request_size=4 [21:11:34]MH_SAM_APDU [21:11:34]CAPDU: 80 11 00 00 [21:11:34]Write to MH i2c: E2 08 00 C1 00 80 11 00 00 00 00 00 00 3B [21:11:34]Write i2c OK [21:11:34]MH_I2C_Read... [21:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:34]Read from MH i2c: E2 [21:11:34]MH_I2C_Read... [21:11:34]Read from MH i2c: E2 17 00 [21:11:34]MH_I2C_Read... [21:11:34]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 31 37 34 39 90 00 92 [21:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:11:34]wFMCommunicate OK [21:11:34]CreateOFDProtocolMessage done [21:11:34]OFDSenderStorePacket 69827 [21:11:34]StoreOFDPacket docnum=69827 [21:11:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 A2 01 00 00 9A F5 9A 01 BD D4 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0D 00 00 00 00 07 04 06 00 2C 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 04 72 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C3 10 01 00 35 04 06 00 F2 86 27 CE E1 53 E0 D5 3F 58 00 FB 19 0D [21:11:34]CheckFolder [21:11:34]dirname=/storage/ofd_packets [21:11:34]CheckFolder done [21:11:34]ProducePacketName [21:11:34]name=ofd_packets/00069827 [21:11:34]NVStorageSaveData ofd_packets/00069827 [21:11:34]File name is /storage/ofd_packets/00069827 [21:11:34]Write 448 bytes [21:11:34]NVStorageSaveData done [21:11:34]OFDSenderStorePacket done [21:11:34]KKMCreateOFDPacket done [21:11:34]NVStorageSaveData kkm_last_timestamp [21:11:34]File name is /storage/kkm_last_timestamp [21:11:34]Write 4 bytes [21:11:34]NVStorageSaveData done [21:11:34]ExternCall_PrintAddStr [21:11:34]wPrintStart [21:11:34]Write to MH i2c: 01 00 00 C2 00 C2 [21:11:34]Write i2c OK [21:11:34]MH_I2C_Read... [21:11:34]Read from MH i2c: 01 [21:11:34]MH_I2C_Read... [21:11:34]Read from MH i2c: 01 07 00 [21:11:34]MH_I2C_Read... [21:11:34]Read from MH i2c: 01 07 00 C2 00 00 00 00 00 00 FF 0F D7 [21:11:34]RasterBufferAndPrint [21:11:34]line Счет N : (3)127225 [21:11:34]line ИНН: 02508201610067 [21:11:34]line Контрольно-Кассовый Чек [21:11:34]line ПРОДАЖА [21:11:34]line Товар: 2000036210013 [21:11:34]line Кофе Капучино (GABB TRADE) [21:11:34]line 2.000 * 115.00 [21:11:34]line = 230.00 [21:11:34]line НДС 12% НСП 1% [21:11:34]line > о реализуемом товаре [21:11:34]line Товар: 4603290004879 [21:11:34]line Печ.сах.FORSITE Сэнд.кокос.вк [21:11:34]line 1.000 * 93.00 [21:11:34]line = 93.00 [21:11:34]line НДС 12% НСП 1% [21:11:34]line > о реализуемом товаре [21:11:34]line ИТОГО: 323.00 [21:11:34]line НСП 1% : 2.85 [21:11:34]line НДС 12% : 34.30 [21:11:34]line Наличными: 323.00 [21:11:34]line Безнал.: 0.00 [21:11:34]line Место: АЗС № 163 "Партнер Нефть" [21:11:34]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [21:11:34]line СНО: Общий режим [21:11:34]line Чек 117 20.10.2024 21:11 [21:11:34]line Смена: 526 ФФД: 1.0 [21:11:34]line ЗНМ: 0300000101 [21:11:34]line РНМ: 0000000000091770 [21:11:34]line Версия ККМ: 001 [21:11:34]line ФМ: 0000000000871749 [21:11:34]line ФД: 69827 [21:11:34]line ФПД: 266658007408979 [21:11:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T211132&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69827&fm=266658007408979&tin=02508201610067®Number=0000000000091770&sum=32300 [21:11:34]line 0 [21:11:34]written 0, free lines is 4095 [21:11:34]OFD Sender: Processing packet 69827 [packets to send 32, broken 31] [21:11:34]ProducePacketName [21:11:34]name=ofd_packets/00069827 [21:11:34]OFD Sender: To server: pG, [21:11:34]CommunicateWithHost lk.salyk.kg:30040 [21:11:34]ConnectInit lk.salyk.kg [21:11:34]Connected sock=10 [21:11:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 A2 01 00 00 9A F5 9A 01 BD D4 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0D 00 00 00 00 07 04 06 00 2C 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 04 72 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C3 10 01 00 35 04 06 00 F2 86 27 CE E1 53 E0 D5 3F 58 00 FB 19 0D [21:11:35]Write to MH i2c: 01 00 00 F0 00 F0 [21:11:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 15 7E 47 00 71 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C3 10 01 00 F4 03 04 00 87 17 15 67 B6 04 01 00 00 1C DC D8 B9 8C B9 8C 08 [21:11:35]CommunicateWithHost err = 0 [21:11:35]CheckOFDResponse [21:11:35]1017 (14) - 77093643461234 [21:11:35]1041 (16) - 0000000000871749 [21:11:35]1040 (4) - 69827 [21:11:35]1012 (4) - 20.10.2024 14:45 [21:11:35]1206 (1) - 0 [21:11:35]OFD Sender: Remove packet 69827 [21:11:35]ProducePacketName [21:11:35]name=ofd_packets/00069827 [21:11:35]NVStorageDeleteData [21:11:35]Write i2c OK [21:11:35]MH_I2C_Read... [21:11:35]Read from MH i2c: 01 [21:11:35]MH_I2C_Read... [21:11:35]Read from MH i2c: 01 07 00 [21:11:35]MH_I2C_Read... [21:11:35]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 C8 0C CB [21:11:35]RasterBufferAndPrint [21:11:35]line [21:11:35]line [21:11:35]line [21:11:35]line [21:11:35]line [21:11:35]written 0, free lines is 3461 [21:11:35]MH_Cut [21:11:35]Write to MH i2c: D1 01 00 F7 00 01 C9 [21:11:35]Write i2c OK [21:11:35]MH_I2C_Read... [21:11:35]Read from MH i2c: D1 [21:11:35]MH_I2C_Read... [21:11:35]Read from MH i2c: D1 01 00 [21:11:35]MH_I2C_Read... [21:11:35]Read from MH i2c: D1 01 00 F7 00 00 C8 [21:11:35]Write to MH i2c: 01 00 00 F8 00 F8 [21:11:35]Write i2c OK [21:11:35]MH_I2C_Read... [21:11:35]OFD Sender: No OFD packet to send [21:11:35]*** Cut start [21:11:35]*** Partial cut [21:11:35]*** CUTSNS_PIN = 1 [21:11:35]*** CUTSNS_PIN = 0 [21:11:36]*** Brake cut motor [21:11:36]Read from MH i2c: 01 [21:11:36]MH_I2C_Read... [21:11:36]*** Stop cut motor [21:11:36]*** Cut end [21:11:36]Read from MH i2c: 01 07 00 [21:11:36]MH_I2C_Read... [21:11:36]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [21:11:36]process_action close_receipt done [21:11:36]requested_data is exist [21:11:36]produce_requested_data [21:11:36]requested_item fm.sn is exist - process it [21:11:36]wFMCommunicate request_size=4 [21:11:36]MH_SAM_APDU [21:11:36]CAPDU: 80 11 00 00 [21:11:36]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [21:11:36]Write i2c OK [21:11:36]MH_I2C_Read... [21:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:36]Read from MH i2c: E2 [21:11:36]MH_I2C_Read... [21:11:36]Read from MH i2c: E2 17 00 [21:11:36]MH_I2C_Read... [21:11:36]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 31 37 34 39 90 00 CA [21:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:11:36]wFMCommunicate OK [21:11:36]requested_item fd.num is exist - process it [21:11:36]SAM_PROTO_GetFieldsCounters [21:11:36]wFMCommunicate request_size=4 [21:11:36]MH_SAM_APDU [21:11:36]CAPDU: 80 13 00 00 [21:11:36]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [21:11:36]Write i2c OK [21:11:36]MH_I2C_Read... [21:11:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:36]Read from MH i2c: E2 [21:11:36]MH_I2C_Read... [21:11:36]Read from MH i2c: E2 62 00 [21:11:36]MH_I2C_Read... [21:11:36]Read from MH i2c: E2 62 00 FA 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C3 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [21:11:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C3 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:36]wFMCommunicate OK [21:11:36]SAM_PROTO_GetFieldsCounters done [21:11:36]requested_item shift.num is exist - process it [21:11:36]requested_item shift.opened is exist - process it [21:11:36]req_shift_opened [21:11:36]FM_GetShiftState [21:11:36]SAM_PROTO_GetShiftState [21:11:36]wFMCommunicate request_size=4 [21:11:36]MH_SAM_APDU [21:11:36]CAPDU: 80 13 01 00 [21:11:36]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [21:11:36]Write i2c OK [21:11:36]MH_I2C_Read... [21:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:37]Read from MH i2c: E2 [21:11:37]MH_I2C_Read... [21:11:37]Read from MH i2c: E2 0E 00 [21:11:37]MH_I2C_Read... [21:11:37]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 0A [21:11:37]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [21:11:37]wFMCommunicate OK [21:11:37]SAM_PROTO_GetShiftState done [21:11:37]FM_GetShiftState done [21:11:37]req_shift_opened done [21:11:37]requested_item shift.open_date is exist - process it [21:11:37]req_shift_open_date [21:11:37]req_shift_open_date done [21:11:37]produce_requested_data done [21:11:37]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69827,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [21:11:37]process_action_free close_receipt [21:11:37]json_value_free [21:11:37]json_value_free done [21:11:37]process_json_proto returns [21:11:37]Send response to host [21:11:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69827,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [21:11:37]free response buf [21:11:37]execute_script done [21:11:37]execute_script returns [21:11:37]free content buf [21:11:37]Sock 9.Close socket [21:11:37]Sock 9.Thread stoped [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:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:45]accept exits with 7 [21:39:45]New connection [21:39:45]New thread 3066641764 created [21:39:45]Thread 3066785124 joined [21:39:45]Waiting for new connection... [21:39:45] Sock 7.Parse request [21:39:45]Sock 7.Check first char [21:39:45]Sock 7.First char is OK [21:39:45]request: POST /json_proto HTTP/1.0 [21:39:45]Method: POST [21:39:45]URL: /json_proto [21:39:45]Method is POST - this is cgi request [21:39:45]url: /json_proto [21:39:45]query_string will be loaded in cgi processing [21:39:45]execute_cgi json_proto POST (null) [21:39:45]execute_cgi path=json_proto method=POST [21:39:45]POST find Content-Length [21:39:45]Host: 172.17.52.196:8080 [21:39:45]Content-Length: 621 [21:39:45]Content-Type: application/json [21:39:45] [21:39:45]POST finish read [21:39:45]Found Content-Length = 621 [21:39:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127226", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:45]execute_script... [21: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)127226", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:45]POST & json_proto [21:39:45]process_json_proto [21:39:45]json parsed OK: [21:39:45]protocol is kg_v1.0 [21:39:45]action value=close_receipt [21:39:45]process_action close_receipt [21:39:45]cmd_close_receipt [21:39:45]MH_GetDate [21:39:45]Write to MH i2c: F0 00 00 FC 00 EB [21:39:45]Write i2c OK [21:39:45]MH_I2C_Read... [21:39:45]Read from MH i2c: F0 [21:39:45]MH_I2C_Read... [21:39:45]Read from MH i2c: F0 09 00 [21:39:45]MH_I2C_Read... [21:39:45]Read from MH i2c: F0 09 00 FC 00 00 A2 78 15 67 60 05 E4 66 39 [21:39:45]GetLastDocTimeStamp 1729458692 [21:39:45]current date 1729460386 [21:39:45]FM_GetShiftState [21:39:45]SAM_PROTO_GetShiftState [21:39:45]wFMCommunicate request_size=4 [21:39:45]MH_SAM_APDU [21:39:45]CAPDU: 80 13 01 00 [21:39:45]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [21:39:45]Write i2c OK [21:39:45]MH_I2C_Read... [21:39:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:45]Read from MH i2c: E2 [21:39:45]MH_I2C_Read... [21:39:45]Read from MH i2c: E2 0E 00 [21:39:45]MH_I2C_Read... [21:39:45]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 0C [21:39:45]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [21:39:45]wFMCommunicate OK [21:39:45]SAM_PROTO_GetShiftState done [21:39:45]FM_GetShiftState done [21:39:45]opened in 1729384380 [21:39:45]opened+sec_in_day 1729470780 [21:39:45]quantity*price = 14400 [21:39:45]sum+1 = 14401 [21:39:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 118 20.10.2024 21:39 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69828 ФПД: 24944364894937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213946&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69828&fm=24944364894937&tin=02508201610067®Number=0000000000091770&sum=14400 0 [21:39:46]StoreToDocumentArchive [21:39:46]shift 526 fd 69828 [21:39:46]save to /storage/0526/doc_00069828 [21:39:46]save last doc name /storage/0526/doc_00069828 to /storage/kkm_last_doc_name [21:39:46]save OK [21:39:46]Clear old archive folders... [21:39:46]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:39:46]tlvbuf is 017980C0 [21:39:46]SAM_PROTO_ClearQueue [21:39:46]wFMCommunicate request_size=4 [21:39:46]MH_SAM_APDU [21:39:46]CAPDU: 80 09 00 00 [21:39:46]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [21:39:46]Write i2c OK [21:39:46]MH_I2C_Read... [21:39:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:46]Read from MH i2c: E2 [21:39:46]MH_I2C_Read... [21:39:46]Read from MH i2c: E2 03 00 [21:39:46]MH_I2C_Read... [21:39:46]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [21:39:46]RAPDU: 90 00 [21:39:46]wFMCommunicate OK [21:39:46]SAM_PROTO_ClearQueue done [21:39:46]KKMCreateOFDPacket [21:39:46]OFDProtocolAddRootSTLVToBuf [21:39:46]FM_MakeSignedData [21:39:46]FM_MakeSignedData [21:39:46]SAM_PROTO_SignData [21:39:46]wFMCommunicate request_size=4 [21:39:46]MH_SAM_APDU [21:39:46]CAPDU: 80 0D 01 02 [21:39:46]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [21:39:46]Write i2c OK [21:39:46]MH_I2C_Read... [21:39:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:46]Read from MH i2c: E2 [21:39:46]MH_I2C_Read... [21:39:46]Read from MH i2c: E2 03 00 [21:39:46]MH_I2C_Read... [21:39:46]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [21:39:46]RAPDU: 90 00 [21:39:46]wFMCommunicate OK [21:39:46]wFMCommunicate request_size=255 [21:39:46]MH_SAM_APDU [21:39:46]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 A2 78 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [21:39:46]Write to MH i2c: E2 02 01 0C 01 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 A2 78 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 0A [21:39:46]Write i2c OK [21:39:46]MH_I2C_Read... [21:39:47]OFD Sender: No OFD packet to send [21:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:47]Read from MH i2c: E2 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 03 00 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [21:39:47]RAPDU: 90 00 [21:39:47]wFMCommunicate OK [21:39:47]wFMCommunicate request_size=32 [21:39:47]MH_SAM_APDU [21:39:47]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 C4 10 01 00 35 04 06 00 16 AF D0 02 3A D9 [21:39:47]Write to MH i2c: E2 23 00 0D 01 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 C4 10 01 00 35 04 06 00 16 AF D0 02 3A D9 00 00 68 [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:47]Read from MH i2c: E2 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 03 00 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [21:39:47]RAPDU: 90 00 [21:39:47]wFMCommunicate OK [21:39:47]wFMCommunicate request_size=4 [21:39:47]MH_SAM_APDU [21:39:47]CAPDU: 80 0D 03 02 [21:39:47]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:47]Read from MH i2c: E2 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 0B 00 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 0B 00 0E 01 00 C4 39 51 FE 78 BF 18 22 90 00 48 [21:39:47]RAPDU: C4 39 51 FE 78 BF 18 22 90 00 [21:39:47]wFMCommunicate OK [21:39:47]SAM_PROTO_SignData done [21:39:47]FM_MakeSignedData done [21:39:47]CreateOFDProtocolMessage [21:39:47]wFMCommunicate request_size=4 [21:39:47]MH_SAM_APDU [21:39:47]CAPDU: 80 11 00 00 [21:39:47]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:47]Read from MH i2c: E2 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 17 00 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 E1 [21:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:39:47]wFMCommunicate OK [21:39:47]CreateOFDProtocolMessage done [21:39:47]OFDSenderStorePacket 69828 [21:39:47]StoreOFDPacket docnum=69828 [21:39:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 02 23 1D 01 B1 D8 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 A2 78 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C4 10 01 00 35 04 06 00 16 AF D0 02 3A D9 C4 39 51 FE 78 BF 18 22 [21:39:47]CheckFolder [21:39:47]dirname=/storage/ofd_packets [21:39:47]CheckFolder done [21:39:47]ProducePacketName [21:39:47]name=ofd_packets/00069828 [21:39:47]NVStorageSaveData ofd_packets/00069828 [21:39:47]File name is /storage/ofd_packets/00069828 [21:39:47]Write 323 bytes [21:39:47]NVStorageSaveData done [21:39:47]OFDSenderStorePacket done [21:39:47]KKMCreateOFDPacket done [21:39:47]NVStorageSaveData kkm_last_timestamp [21:39:47]File name is /storage/kkm_last_timestamp [21:39:47]Write 4 bytes [21:39:47]NVStorageSaveData done [21:39:47]ExternCall_PrintAddStr [21:39:47]wPrintStart [21:39:47]Write to MH i2c: 01 00 00 10 01 11 [21:39:47]Write i2c OK [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: 01 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: 01 07 00 [21:39:47]MH_I2C_Read... [21:39:47]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [21:39:47]RasterBufferAndPrint [21:39:47]line Счет N : (3)127226 [21:39:47]line ИНН: 02508201610067 [21:39:47]line Контрольно-Кассовый Чек [21:39:47]line ПРОДАЖА [21:39:47]line Товар: 48743570 [21:39:47]line Сигареты Winston XStyle Blue [21:39:47]line 1.000 * 144.00 [21:39:47]line = 144.00 [21:39:47]line НДС 12% НСП 1% [21:39:47]line > о реализуемом товаре [21:39:47]line ИТОГО: 144.00 [21:39:47]line НСП 1% : 1.27 [21:39:47]line НДС 12% : 15.29 [21:39:47]line Наличными: 144.00 [21:39:47]line Безнал.: 0.00 [21:39:47]line Место: АЗС № 163 "Партнер Нефть" [21:39:47]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [21:39:47]line СНО: Общий режим [21:39:47]line Чек 118 20.10.2024 21:39 [21:39:47]line Смена: 526 ФФД: 1.0 [21:39:47]line ЗНМ: 0300000101 [21:39:47]line РНМ: 0000000000091770 [21:39:47]line Версия ККМ: 001 [21:39:47]line ФМ: 0000000000871749 [21:39:47]line ФД: 69828 [21:39:47]line ФПД: 24944364894937 [21:39:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T213946&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69828&fm=24944364894937&tin=02508201610067®Number=0000000000091770&sum=14400 [21:39:47]line 0 [21:39:47]OFD Sender: Processing packet 69828 [packets to send 32, broken 31] [21:39:47]ProducePacketName [21:39:47]name=ofd_packets/00069828 [21:39:47]OFD Sender: To server: pG, [21:39:47]CommunicateWithHost lk.salyk.kg:30040 [21:39:47]ConnectInit lk.salyk.kg [21:39:47]written 0, free lines is 4095 [21:39:47]Connected sock=10 [21:39:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 02 23 1D 01 B1 D8 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 A2 78 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C4 10 01 00 35 04 06 00 16 AF D0 02 3A D9 C4 39 51 FE 78 BF 18 22 [21:39:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 37 99 47 00 5C 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 31 37 34 39 10 04 04 00 C4 10 01 00 F4 03 04 00 24 1E 15 67 B6 04 01 00 00 78 F2 88 51 70 77 F0 E8 [21:39:48]CommunicateWithHost err = 0 [21:39:48]CheckOFDResponse [21:39:48]1017 (14) - 77093643461234 [21:39:48]1041 (16) - 0000000000871749 [21:39:48]1040 (4) - 69828 [21:39:48]1012 (4) - 20.10.2024 15:13 [21:39:48]1206 (1) - 0 [21:39:48]OFD Sender: Remove packet 69828 [21:39:48]ProducePacketName [21:39:48]name=ofd_packets/00069828 [21:39:48]NVStorageDeleteData [21:39:48]Write to MH i2c: 01 00 00 38 01 39 [21:39:48]Write i2c OK [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: 01 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: 01 07 00 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 10 0D 5D [21:39:48]RasterBufferAndPrint [21:39:48]line [21:39:48]line [21:39:48]line [21:39:48]line [21:39:48]line [21:39:48]written 0, free lines is 3350 [21:39:48]MH_Cut [21:39:48]Write to MH i2c: D1 01 00 3F 01 01 12 [21:39:48]Write i2c OK [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: D1 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: D1 01 00 [21:39:48]MH_I2C_Read... [21:39:48]Read from MH i2c: D1 01 00 3F 01 00 11 [21:39:48]Write to MH i2c: 01 00 00 40 01 41 [21:39:48]Write i2c OK [21:39:48]MH_I2C_Read... [21:39:48]OFD Sender: No OFD packet to send [21:39:48]*** Cut start [21:39:48]*** Partial cut [21:39:48]*** CUTSNS_PIN = 1 [21:39:48]*** CUTSNS_PIN = 0 [21:39:49]*** Brake cut motor [21:39:49]Read from MH i2c: 01 [21:39:49]MH_I2C_Read... [21:39:49]*** Stop cut motor [21:39:49]*** Cut end [21:39:49]Read from MH i2c: 01 07 00 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: 01 07 00 40 01 00 00 00 00 00 FF 0F 56 [21:39:49]process_action close_receipt done [21:39:49]requested_data is exist [21:39:49]produce_requested_data [21:39:49]requested_item fm.sn is exist - process it [21:39:49]wFMCommunicate request_size=4 [21:39:49]MH_SAM_APDU [21:39:49]CAPDU: 80 11 00 00 [21:39:49]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [21:39:49]Write i2c OK [21:39:49]MH_I2C_Read... [21:39:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:49]Read from MH i2c: E2 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 17 00 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 17 00 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 13 [21:39:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:39:49]wFMCommunicate OK [21:39:49]requested_item fd.num is exist - process it [21:39:49]SAM_PROTO_GetFieldsCounters [21:39:49]wFMCommunicate request_size=4 [21:39:49]MH_SAM_APDU [21:39:49]CAPDU: 80 13 00 00 [21:39:49]Write to MH i2c: E2 08 00 42 01 80 13 00 00 00 00 00 00 BF [21:39:49]Write i2c OK [21:39:49]MH_I2C_Read... [21:39:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:49]Read from MH i2c: E2 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 62 00 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 62 00 42 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C4 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [21:39: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C4 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:49]wFMCommunicate OK [21:39:49]SAM_PROTO_GetFieldsCounters done [21:39:49]requested_item shift.num is exist - process it [21:39:49]requested_item shift.opened is exist - process it [21:39:49]req_shift_opened [21:39:49]FM_GetShiftState [21:39:49]SAM_PROTO_GetShiftState [21:39:49]wFMCommunicate request_size=4 [21:39:49]MH_SAM_APDU [21:39:49]CAPDU: 80 13 01 00 [21:39:49]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [21:39:49]Write i2c OK [21:39:49]MH_I2C_Read... [21:39:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:49]Read from MH i2c: E2 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 0E 00 [21:39:49]MH_I2C_Read... [21:39:49]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 53 [21:39:49]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [21:39:49]wFMCommunicate OK [21:39:49]SAM_PROTO_GetShiftState done [21:39:49]FM_GetShiftState done [21:39:49]req_shift_opened done [21:39:49]requested_item shift.open_date is exist - process it [21:39:49]req_shift_open_date [21:39:49]req_shift_open_date done [21:39:49]produce_requested_data done [21:39:49]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69828,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [21:39:49]process_action_free close_receipt [21:39:49]json_value_free [21:39:49]json_value_free done [21:39:49]process_json_proto returns [21:39:49]Send response to host [21:39:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69828,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [21:39:49]free response buf [21:39:49]execute_script done [21:39:49]execute_script returns [21:39:49]free content buf [21:39:49]Sock 7.Close socket [21:39:49]Sock 7.Thread stoped [21:39:53]OFD Sender: No OFD packet to send [21:39:58]OFD Sender: No OFD packet to send [21:40:03]OFD Sender: No OFD packet to send [21:40:08]OFD Sender: No OFD packet to send [21:40:10]accept exits with 9 [21:40:10]New connection [21:40:10]New thread 3066785124 created [21:40:10]Thread 3066641764 joined [21:40:10]Waiting for new connection... [21:40:10] Sock 9.Parse request [21:40:10]Sock 9.Check first char [21:40:10]Sock 9.First char is OK [21:40:10]request: POST /json_proto HTTP/1.0 [21:40:10]Method: POST [21:40:10]URL: /json_proto [21:40:10]Method is POST - this is cgi request [21:40:10]url: /json_proto [21:40:10]query_string will be loaded in cgi processing [21:40:10]execute_cgi json_proto POST (null) [21:40:10]execute_cgi path=json_proto method=POST [21:40:10]POST find Content-Length [21:40:10]Host: 172.17.52.196:8080 [21:40:10]Content-Length: 621 [21:40:10]Content-Type: application/json [21:40:10] [21:40:10]POST finish read [21:40:10]Found Content-Length = 621 [21:40:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127227", "tax_sys" : 0, "items" : [ { "code": "48742344", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Pink", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:10]execute_script... [21:40:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127227", "tax_sys" : 0, "items" : [ { "code": "48742344", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Pink", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:10]POST & json_proto [21:40:10]process_json_proto [21:40:10]json parsed OK: [21:40:10]protocol is kg_v1.0 [21:40:10]action value=close_receipt [21:40:10]process_action close_receipt [21:40:10]cmd_close_receipt [21:40:10]MH_GetDate [21:40:10]Write to MH i2c: F0 00 00 44 01 34 [21:40:10]Write i2c OK [21:40:10]MH_I2C_Read... [21:40:10]Read from MH i2c: F0 [21:40:10]MH_I2C_Read... [21:40:10]Read from MH i2c: F0 09 00 [21:40:10]MH_I2C_Read... [21:40:10]Read from MH i2c: F0 09 00 44 01 00 BB 78 15 67 60 05 E4 66 9B [21:40:10]GetLastDocTimeStamp 1729460386 [21:40:10]current date 1729460411 [21:40:10]FM_GetShiftState [21:40:10]SAM_PROTO_GetShiftState [21:40:10]wFMCommunicate request_size=4 [21:40:10]MH_SAM_APDU [21:40:10]CAPDU: 80 13 01 00 [21:40:10]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [21:40:10]Write i2c OK [21:40:10]MH_I2C_Read... [21:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:10]Read from MH i2c: E2 [21:40:10]MH_I2C_Read... [21:40:10]Read from MH i2c: E2 0E 00 [21:40:10]MH_I2C_Read... [21:40:10]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 55 [21:40:10]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [21:40:10]wFMCommunicate OK [21:40:10]SAM_PROTO_GetShiftState done [21:40:10]FM_GetShiftState done [21:40:10]opened in 1729384380 [21:40:10]opened+sec_in_day 1729470780 [21:40:10]quantity*price = 13400 [21:40:10]sum+1 = 13401 [21:40:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 119 20.10.2024 21:40 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69829 ФПД: 154405585833791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214011&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69829&fm=154405585833791&tin=02508201610067®Number=0000000000091770&sum=13400 0 [21:40:11]StoreToDocumentArchive [21:40:11]shift 526 fd 69829 [21:40:11]save to /storage/0526/doc_00069829 [21:40:11]save last doc name /storage/0526/doc_00069829 to /storage/kkm_last_doc_name [21:40:11]save OK [21:40:11]Clear old archive folders... [21:40:11]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:40:11]tlvbuf is 01795380 [21:40:11]SAM_PROTO_ClearQueue [21:40:11]wFMCommunicate request_size=4 [21:40:11]MH_SAM_APDU [21:40:11]CAPDU: 80 09 00 00 [21:40:11]Write to MH i2c: E2 08 00 52 01 80 09 00 00 00 00 00 00 C5 [21:40:11]Write i2c OK [21:40:11]MH_I2C_Read... [21:40:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:11]Read from MH i2c: E2 [21:40:11]MH_I2C_Read... [21:40:11]Read from MH i2c: E2 03 00 [21:40:11]MH_I2C_Read... [21:40:11]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [21:40:11]RAPDU: 90 00 [21:40:11]wFMCommunicate OK [21:40:11]SAM_PROTO_ClearQueue done [21:40:11]KKMCreateOFDPacket [21:40:11]OFDProtocolAddRootSTLVToBuf [21:40:11]FM_MakeSignedData [21:40:11]FM_MakeSignedData [21:40:11]SAM_PROTO_SignData [21:40:11]wFMCommunicate request_size=4 [21:40:11]MH_SAM_APDU [21:40:11]CAPDU: 80 0D 01 02 [21:40:11]Write to MH i2c: E2 08 00 53 01 80 0D 01 02 00 00 00 00 CD [21:40:11]Write i2c OK [21:40:11]MH_I2C_Read... [21:40:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:11]Read from MH i2c: E2 [21:40:11]MH_I2C_Read... [21:40:11]Read from MH i2c: E2 03 00 [21:40:11]MH_I2C_Read... [21:40:11]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [21:40:11]RAPDU: 90 00 [21:40:11]wFMCommunicate OK [21:40:11]wFMCommunicate request_size=255 [21:40:11]MH_SAM_APDU [21:40:11]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 32 33 34 34 06 04 24 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 50 69 6E 6B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 BB 78 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [21:40:11]Write to MH i2c: E2 02 01 54 01 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 32 33 34 34 06 04 24 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 50 69 6E 6B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 BB 78 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 BE [21:40:11]Write i2c OK [21:40:11]MH_I2C_Read... [21:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:11]Read from MH i2c: E2 [21:40:11]MH_I2C_Read... [21:40:11]Read from MH i2c: E2 03 00 [21:40:11]MH_I2C_Read... [21:40:11]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [21:40:11]RAPDU: 90 00 [21:40:11]wFMCommunicate OK [21:40:11]wFMCommunicate request_size=32 [21:40:11]MH_SAM_APDU [21:40:11]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 C5 10 01 00 35 04 06 00 8C 6E 5A 18 4F 3F [21:40:11]Write to MH i2c: E2 23 00 55 01 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 C5 10 01 00 35 04 06 00 8C 6E 5A 18 4F 3F 00 00 01 [21:40:11]Write i2c OK [21:40:11]MH_I2C_Read... [21:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:11]Read from MH i2c: E2 [21:40:11]MH_I2C_Read... [21:40:11]Read from MH i2c: E2 03 00 [21:40:11]MH_I2C_Read... [21:40:11]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [21:40:11]RAPDU: 90 00 [21:40:11]wFMCommunicate OK [21:40:11]wFMCommunicate request_size=4 [21:40:11]MH_SAM_APDU [21:40:11]CAPDU: 80 0D 03 02 [21:40:11]Write to MH i2c: E2 08 00 56 01 80 0D 03 02 00 00 00 00 D2 [21:40:11]Write i2c OK [21:40:11]MH_I2C_Read... [21:40:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:11]Read from MH i2c: E2 [21:40:11]MH_I2C_Read... [21:40:11]Read from MH i2c: E2 0B 00 [21:40:11]MH_I2C_Read... [21:40:11]Read from MH i2c: E2 0B 00 56 01 00 6D 8C B1 74 FC A3 9B 20 90 00 4B [21:40:11]RAPDU: 6D 8C B1 74 FC A3 9B 20 90 00 [21:40:11]wFMCommunicate OK [21:40:11]SAM_PROTO_SignData done [21:40:11]FM_MakeSignedData done [21:40:11]CreateOFDProtocolMessage [21:40:11]wFMCommunicate request_size=4 [21:40:11]MH_SAM_APDU [21:40:11]CAPDU: 80 11 00 00 [21:40:11]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [21:40:11]Write i2c OK [21:40:11]MH_I2C_Read... [21:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:12]Read from MH i2c: E2 [21:40:12]MH_I2C_Read... [21:40:12]Read from MH i2c: E2 17 00 [21:40:12]MH_I2C_Read... [21:40:12]Read from MH i2c: E2 17 00 57 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 29 [21:40:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:40:12]wFMCommunicate OK [21:40:12]CreateOFDProtocolMessage done [21:40:12]OFDSenderStorePacket 69829 [21:40:12]StoreOFDPacket docnum=69829 [21:40:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 0A 2B 1D 01 87 91 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 32 33 34 34 06 04 24 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 50 69 6E 6B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 BB 78 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C5 10 01 00 35 04 06 00 8C 6E 5A 18 4F 3F 6D 8C B1 74 FC A3 9B 20 [21:40:12]CheckFolder [21:40:12]dirname=/storage/ofd_packets [21:40:12]CheckFolder done [21:40:12]ProducePacketName [21:40:12]name=ofd_packets/00069829 [21:40:12]NVStorageSaveData ofd_packets/00069829 [21:40:12]File name is /storage/ofd_packets/00069829 [21:40:12]Write 323 bytes [21:40:12]NVStorageSaveData done [21:40:12]OFDSenderStorePacket done [21:40:12]KKMCreateOFDPacket done [21:40:12]NVStorageSaveData kkm_last_timestamp [21:40:12]File name is /storage/kkm_last_timestamp [21:40:12]Write 4 bytes [21:40:12]NVStorageSaveData done [21:40:12]ExternCall_PrintAddStr [21:40:12]wPrintStart [21:40:12]Write to MH i2c: 01 00 00 58 01 59 [21:40:12]Write i2c OK [21:40:12]MH_I2C_Read... [21:40:12]Read from MH i2c: 01 [21:40:12]MH_I2C_Read... [21:40:12]Read from MH i2c: 01 07 00 [21:40:12]MH_I2C_Read... [21:40:12]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 FF 0F 6E [21:40:12]RasterBufferAndPrint [21:40:12]line Счет N : (3)127227 [21:40:12]line ИНН: 02508201610067 [21:40:12]line Контрольно-Кассовый Чек [21:40:12]line ПРОДАЖА [21:40:12]line Товар: 48742344 [21:40:12]line Сигареты LD Super Slims Pink [21:40:12]line 1.000 * 134.00 [21:40:12]line = 134.00 [21:40:12]line НДС 12% НСП 1% [21:40:12]line > о реализуемом товаре [21:40:12]line ИТОГО: 134.00 [21:40:12]line НСП 1% : 1.19 [21:40:12]line НДС 12% : 14.23 [21:40:12]line Наличными: 134.00 [21:40:12]line Безнал.: 0.00 [21:40:12]line Место: АЗС № 163 "Партнер Нефть" [21:40:12]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [21:40:12]line СНО: Общий режим [21:40:12]line Чек 119 20.10.2024 21:40 [21:40:12]line Смена: 526 ФФД: 1.0 [21:40:12]line ЗНМ: 0300000101 [21:40:12]line РНМ: 0000000000091770 [21:40:12]line Версия ККМ: 001 [21:40:12]line ФМ: 0000000000871749 [21:40:12]line ФД: 69829 [21:40:12]line ФПД: 154405585833791 [21:40:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214011&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69829&fm=154405585833791&tin=02508201610067®Number=0000000000091770&sum=13400 [21:40:12]line 0 [21:40:12]OFD Sender: Processing packet 69829 [packets to send 32, broken 31] [21:40:12]ProducePacketName [21:40:12]name=ofd_packets/00069829 [21:40:12]OFD Sender: To server: pG, [21:40:12]CommunicateWithHost lk.salyk.kg:30040 [21:40:12]ConnectInit lk.salyk.kg [21:40:12]written 0, free lines is 4095 [21:40:12]Connected sock=10 [21:40:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 0A 2B 1D 01 87 91 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 32 33 34 34 06 04 24 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 50 69 6E 6B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 BB 78 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C5 10 01 00 35 04 06 00 8C 6E 5A 18 4F 3F 6D 8C B1 74 FC A3 9B 20 [21:40:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 C5 E9 47 00 42 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C5 10 01 00 F4 03 04 00 3C 1E 15 67 B6 04 01 00 00 F9 D5 20 24 DA D1 FC 0A [21:40:12]CommunicateWithHost err = 0 [21:40:12]CheckOFDResponse [21:40:12]1017 (14) - 77093643461234 [21:40:12]1041 (16) - 0000000000871749 [21:40:12]1040 (4) - 69829 [21:40:12]1012 (4) - 20.10.2024 15:14 [21:40:12]1206 (1) - 0 [21:40:12]OFD Sender: Remove packet 69829 [21:40:12]ProducePacketName [21:40:12]name=ofd_packets/00069829 [21:40:12]NVStorageDeleteData [21:40:12]Write to MH i2c: 01 00 00 80 01 81 [21:40:12]Write i2c OK [21:40:12]MH_I2C_Read... [21:40:12]Read from MH i2c: 01 [21:40:12]MH_I2C_Read... [21:40:12]Read from MH i2c: 01 07 00 [21:40:12]MH_I2C_Read... [21:40:12]Read from MH i2c: 01 07 00 80 01 00 00 00 00 00 0A 0D 9F [21:40:12]RasterBufferAndPrint [21:40:12]line [21:40:12]line [21:40:12]line [21:40:12]line [21:40:12]line [21:40:12]written 0, free lines is 3344 [21:40:12]MH_Cut [21:40:12]Write to MH i2c: D1 01 00 87 01 01 5A [21:40:12]Write i2c OK [21:40:12]MH_I2C_Read... [21:40:12]Read from MH i2c: D1 [21:40:12]MH_I2C_Read... [21:40:12]Read from MH i2c: D1 01 00 [21:40:12]MH_I2C_Read... [21:40:12]Read from MH i2c: D1 01 00 87 01 00 59 [21:40:12]Write to MH i2c: 01 00 00 88 01 89 [21:40:12]Write i2c OK [21:40:12]MH_I2C_Read... [21:40:13]OFD Sender: No OFD packet to send [21:40:13]*** Cut start [21:40:13]*** Partial cut [21:40:13]*** CUTSNS_PIN = 1 [21:40:13]*** CUTSNS_PIN = 0 [21:40:13]*** Brake cut motor [21:40:14]Read from MH i2c: 01 [21:40:14]MH_I2C_Read... [21:40:14]*** Stop cut motor [21:40:14]*** Cut end [21:40:14]Read from MH i2c: 01 07 00 [21:40:14]MH_I2C_Read... [21:40:14]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 FF 0F 9E [21:40:14]process_action close_receipt done [21:40:14]requested_data is exist [21:40:14]produce_requested_data [21:40:14]requested_item fm.sn is exist - process it [21:40:14]wFMCommunicate request_size=4 [21:40:14]MH_SAM_APDU [21:40:14]CAPDU: 80 11 00 00 [21:40:14]Write to MH i2c: E2 08 00 89 01 80 11 00 00 00 00 00 00 04 [21:40:14]Write i2c OK [21:40:14]MH_I2C_Read... [21:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:14]Read from MH i2c: E2 [21:40:14]MH_I2C_Read... [21:40:14]Read from MH i2c: E2 17 00 [21:40:14]MH_I2C_Read... [21:40:14]Read from MH i2c: E2 17 00 89 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 5B [21:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:40:14]wFMCommunicate OK [21:40:14]requested_item fd.num is exist - process it [21:40:14]SAM_PROTO_GetFieldsCounters [21:40:14]wFMCommunicate request_size=4 [21:40:14]MH_SAM_APDU [21:40:14]CAPDU: 80 13 00 00 [21:40:14]Write to MH i2c: E2 08 00 8A 01 80 13 00 00 00 00 00 00 07 [21:40:14]Write i2c OK [21:40:14]MH_I2C_Read... [21:40:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:14]Read from MH i2c: E2 [21:40:14]MH_I2C_Read... [21:40:14]Read from MH i2c: E2 62 00 [21:40:14]MH_I2C_Read... [21:40:14]Read from MH i2c: E2 62 00 8A 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C5 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [21:40:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C5 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:40:14]wFMCommunicate OK [21:40:14]SAM_PROTO_GetFieldsCounters done [21:40:14]requested_item shift.num is exist - process it [21:40:14]requested_item shift.opened is exist - process it [21:40:14]req_shift_opened [21:40:14]FM_GetShiftState [21:40:14]SAM_PROTO_GetShiftState [21:40:14]wFMCommunicate request_size=4 [21:40:14]MH_SAM_APDU [21:40:14]CAPDU: 80 13 01 00 [21:40:14]Write to MH i2c: E2 08 00 8B 01 80 13 01 00 00 00 00 00 09 [21:40:14]Write i2c OK [21:40:14]MH_I2C_Read... [21:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:14]Read from MH i2c: E2 [21:40:14]MH_I2C_Read... [21:40:14]Read from MH i2c: E2 0E 00 [21:40:14]MH_I2C_Read... [21:40:14]Read from MH i2c: E2 0E 00 8B 01 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 9B [21:40:14]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [21:40:14]wFMCommunicate OK [21:40:14]SAM_PROTO_GetShiftState done [21:40:14]FM_GetShiftState done [21:40:14]req_shift_opened done [21:40:14]requested_item shift.open_date is exist - process it [21:40:14]req_shift_open_date [21:40:14]req_shift_open_date done [21:40:14]produce_requested_data done [21:40:14]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69829,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [21:40:14]process_action_free close_receipt [21:40:14]json_value_free [21:40:14]json_value_free done [21:40:14]process_json_proto returns [21:40:14]Send response to host [21:40:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69829,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [21:40:14]free response buf [21:40:14]execute_script done [21:40:14]execute_script returns [21:40:14]free content buf [21:40:14]Sock 9.Close socket [21:40:14]Sock 9.Thread stoped [21:40:18]OFD Sender: No OFD packet to send [21:40:23]OFD Sender: No OFD packet to send [21:40:28]OFD Sender: No OFD packet to send [21:40:33]OFD Sender: No OFD packet to send [21:40:38]OFD Sender: No OFD packet to send [21:40:43]OFD Sender: No OFD packet to send [21:40:48]OFD Sender: No OFD packet to send [21:40:53]OFD Sender: No OFD packet to send [21:40:58]OFD Sender: No OFD packet to send [21:41:03]OFD Sender: No OFD packet to send [21:41:08]OFD Sender: No OFD packet to send [21:41:13]OFD Sender: No OFD packet to send [21:41:18]OFD Sender: No OFD packet to send [21:41:23]OFD Sender: No OFD packet to send [21:41:28]OFD Sender: No OFD packet to send [21:41:33]OFD Sender: No OFD packet to send [21:41:38]OFD Sender: No OFD packet to send [21:41:43]OFD Sender: No OFD packet to send [21:41:48]OFD Sender: No OFD packet to send [21:41:53]OFD Sender: No OFD packet to send [21:41:58]OFD Sender: No OFD packet to send [21:42:03]OFD Sender: No OFD packet to send [21:42:08]OFD Sender: No OFD packet to send [21:42:13]OFD Sender: No OFD packet to send [21:42:18]OFD Sender: No OFD packet to send [21:42:23]OFD Sender: No OFD packet to send [21:42:28]OFD Sender: No OFD packet to send [21:42:33]OFD Sender: No OFD packet to send [21:42:38]OFD Sender: No OFD packet to send [21:42:43]OFD Sender: No OFD packet to send [21:42:48]OFD Sender: No OFD packet to send [21:42:53]OFD Sender: No OFD packet to send [21:42:58]OFD Sender: No OFD packet to send [21:43:03]OFD Sender: No OFD packet to send [21:43:08]OFD Sender: No OFD packet to send [21:43:13]OFD Sender: No OFD packet to send [21:43:18]OFD Sender: No OFD packet to send [21:43:23]OFD Sender: No OFD packet to send [21:43:28]OFD Sender: No OFD packet to send [21:43:33]OFD Sender: No OFD packet to send [21:43:38]OFD Sender: No OFD packet to send [21:43:43]OFD Sender: No OFD packet to send [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:02]accept exits with 7 [21:45:02]New connection [21:45:02]New thread 3066641764 created [21:45:02]Thread 3066785124 joined [21:45:02]Waiting for new connection... [21:45:02] Sock 7.Parse request [21:45:02]Sock 7.Check first char [21:45:02]Sock 7.First char is OK [21:45:02]request: POST /json_proto HTTP/1.0 [21:45:02]Method: POST [21:45:02]URL: /json_proto [21:45:02]Method is POST - this is cgi request [21:45:02]url: /json_proto [21:45:02]query_string will be loaded in cgi processing [21:45:02]execute_cgi json_proto POST (null) [21:45:02]execute_cgi path=json_proto method=POST [21:45:02]POST find Content-Length [21:45:02]Host: 172.17.52.196:8080 [21:45:02]Content-Length: 645 [21:45:02]Content-Type: application/json [21:45:02] [21:45:02]POST finish read [21:45:02]Found Content-Length = 645 [21:45:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127228", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:02]execute_script... [21:45:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127228", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:02]POST & json_proto [21:45:02]process_json_proto [21:45:02]json parsed OK: [21:45:02]protocol is kg_v1.0 [21:45:02]action value=close_receipt [21:45:02]process_action close_receipt [21:45:02]cmd_close_receipt [21:45:02]MH_GetDate [21:45:02]Write to MH i2c: F0 00 00 8C 01 7C [21:45:02]Write i2c OK [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: F0 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: F0 09 00 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: F0 09 00 8C 01 00 DF 79 15 67 60 05 E4 66 08 [21:45:02]GetLastDocTimeStamp 1729460411 [21:45:02]current date 1729460703 [21:45:02]FM_GetShiftState [21:45:02]SAM_PROTO_GetShiftState [21:45:02]wFMCommunicate request_size=4 [21:45:02]MH_SAM_APDU [21:45:02]CAPDU: 80 13 01 00 [21:45:02]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [21:45:02]Write i2c OK [21:45:02]MH_I2C_Read... [21:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:02]Read from MH i2c: E2 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: E2 0E 00 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 9D [21:45:02]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [21:45:02]wFMCommunicate OK [21:45:02]SAM_PROTO_GetShiftState done [21:45:02]FM_GetShiftState done [21:45:02]opened in 1729384380 [21:45:02]opened+sec_in_day 1729470780 [21:45:02]quantity*price = 6500 [21:45:02]sum+1 = 6501 [21:45:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 120 20.10.2024 21:45 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69830 ФПД: 145100637175296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214503&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69830&fm=145100637175296&tin=02508201610067®Number=0000000000091770&sum=6500 0 [21:45:03]StoreToDocumentArchive [21:45:03]shift 526 fd 69830 [21:45:03]save to /storage/0526/doc_00069830 [21:45:03]save last doc name /storage/0526/doc_00069830 to /storage/kkm_last_doc_name [21:45:03]save OK [21:45:03]Clear old archive folders... [21:45:03]ProcessDocumentItem done err = 0, tmpTLVsize=272 [21:45:03]tlvbuf is 017A5F70 [21:45:03]SAM_PROTO_ClearQueue [21:45:03]wFMCommunicate request_size=4 [21:45:03]MH_SAM_APDU [21:45:03]CAPDU: 80 09 00 00 [21:45:03]Write to MH i2c: E2 08 00 9A 01 80 09 00 00 00 00 00 00 0D [21:45:03]Write i2c OK [21:45:03]MH_I2C_Read... [21:45:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:45:03]Read from MH i2c: E2 [21:45:03]MH_I2C_Read... [21:45:03]Read from MH i2c: E2 03 00 [21:45:03]MH_I2C_Read... [21:45:03]Read from MH i2c: E2 03 00 9A 01 00 90 00 0F [21:45:03]RAPDU: 90 00 [21:45:03]wFMCommunicate OK [21:45:03]SAM_PROTO_ClearQueue done [21:45:03]KKMCreateOFDPacket [21:45:03]OFDProtocolAddRootSTLVToBuf [21:45:03]FM_MakeSignedData [21:45:03]FM_MakeSignedData [21:45:03]SAM_PROTO_SignData [21:45:03]wFMCommunicate request_size=4 [21:45:03]MH_SAM_APDU [21:45:03]CAPDU: 80 0D 01 02 [21:45:03]Write to MH i2c: E2 08 00 9B 01 80 0D 01 02 00 00 00 00 15 [21:45:03]Write i2c OK [21:45:03]MH_I2C_Read... [21:45:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:45:03]Read from MH i2c: E2 [21:45:03]MH_I2C_Read... [21:45:03]Read from MH i2c: E2 03 00 [21:45:03]MH_I2C_Read... [21:45:03]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [21:45:03]RAPDU: 90 00 [21:45:03]wFMCommunicate OK [21:45:03]wFMCommunicate request_size=255 [21:45:03]MH_SAM_APDU [21:45:03]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 DF 79 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 [21:45:03]Write to MH i2c: E2 02 01 9C 01 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 DF 79 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 BC [21:45:03]Write i2c OK [21:45:03]MH_I2C_Read... [21:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:04]Read from MH i2c: E2 [21:45:04]MH_I2C_Read... [21:45:04]Read from MH i2c: E2 03 00 [21:45:04]MH_I2C_Read... [21:45:04]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [21:45:04]RAPDU: 90 00 [21:45:04]wFMCommunicate OK [21:45:04]wFMCommunicate request_size=31 [21:45:04]MH_SAM_APDU [21:45:04]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 37 34 39 10 04 04 00 C6 10 01 00 35 04 06 00 83 F7 DF EF 7E 00 [21:45:04]Write to MH i2c: E2 22 00 9D 01 80 0D 02 02 1A 00 30 30 38 37 31 37 34 39 10 04 04 00 C6 10 01 00 35 04 06 00 83 F7 DF EF 7E 00 00 00 E4 [21:45:04]Write i2c OK [21:45:04]MH_I2C_Read... [21:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:04]Read from MH i2c: E2 [21:45:04]MH_I2C_Read... [21:45:04]Read from MH i2c: E2 03 00 [21:45:04]MH_I2C_Read... [21:45:04]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [21:45:04]RAPDU: 90 00 [21:45:04]wFMCommunicate OK [21:45:04]wFMCommunicate request_size=4 [21:45:04]MH_SAM_APDU [21:45:04]CAPDU: 80 0D 03 02 [21:45:04]Write to MH i2c: E2 08 00 9E 01 80 0D 03 02 00 00 00 00 1A [21:45:04]Write i2c OK [21:45:04]MH_I2C_Read... [21:45:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:45:04]Read from MH i2c: E2 [21:45:04]MH_I2C_Read... [21:45:04]Read from MH i2c: E2 0B 00 [21:45:04]MH_I2C_Read... [21:45:04]Read from MH i2c: E2 0B 00 9E 01 00 E1 06 0F B0 84 A5 29 20 90 00 33 [21:45:04]RAPDU: E1 06 0F B0 84 A5 29 20 90 00 [21:45:04]wFMCommunicate OK [21:45:04]SAM_PROTO_SignData done [21:45:04]FM_MakeSignedData done [21:45:04]CreateOFDProtocolMessage [21:45:04]wFMCommunicate request_size=4 [21:45:04]MH_SAM_APDU [21:45:04]CAPDU: 80 11 00 00 [21:45:04]Write to MH i2c: E2 08 00 9F 01 80 11 00 00 00 00 00 00 1A [21:45:04]Write i2c OK [21:45:04]MH_I2C_Read... [21:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:04]Read from MH i2c: E2 [21:45:04]MH_I2C_Read... [21:45:04]Read from MH i2c: E2 17 00 [21:45:04]MH_I2C_Read... [21:45:04]Read from MH i2c: E2 17 00 9F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 71 [21:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:45:04]wFMCommunicate OK [21:45:04]CreateOFDProtocolMessage done [21:45:04]OFDSenderStorePacket 69830 [21:45:04]StoreOFDPacket docnum=69830 [21:45:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 65 A7 1C 01 64 6A 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 DF 79 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C6 10 01 00 35 04 06 00 83 F7 DF EF 7E 00 E1 06 0F B0 84 A5 29 20 [21:45:04]CheckFolder [21:45:04]dirname=/storage/ofd_packets [21:45:04]CheckFolder done [21:45:04]ProducePacketName [21:45:04]name=ofd_packets/00069830 [21:45:04]NVStorageSaveData ofd_packets/00069830 [21:45:04]File name is /storage/ofd_packets/00069830 [21:45:04]Write 322 bytes [21:45:04]NVStorageSaveData done [21:45:04]OFDSenderStorePacket done [21:45:04]KKMCreateOFDPacket done [21:45:04]NVStorageSaveData kkm_last_timestamp [21:45:04]File name is /storage/kkm_last_timestamp [21:45:04]Write 4 bytes [21:45:04]NVStorageSaveData done [21:45:04]OFD Sender: Processing packet 69830 [packets to send 32, broken 31] [21:45:04]ProducePacketName [21:45:04]name=ofd_packets/00069830 [21:45:04]OFD Sender: To server: pG, [21:45:04]CommunicateWithHost lk.salyk.kg:30040 [21:45:04]ConnectInit lk.salyk.kg [21:45:04]ExternCall_PrintAddStr [21:45:04]wPrintStart [21:45:04]Write to MH i2c: 01 00 00 A0 01 A1 [21:45:04]Write i2c OK [21:45:04]MH_I2C_Read... [21:45:04]Read from MH i2c: 01 [21:45:04]MH_I2C_Read... [21:45:04]Read from MH i2c: 01 07 00 [21:45:04]MH_I2C_Read... [21:45:04]Read from MH i2c: 01 07 00 A0 01 00 00 00 00 00 FF 0F B6 [21:45:04]RasterBufferAndPrint [21:45:04]line Счет N : (3)127228 [21:45:04]line ИНН: 02508201610067 [21:45:04]line Контрольно-Кассовый Чек [21:45:04]line ПРОДАЖА [21:45:04]line Товар: 47011656 [21:45:04]line Водка Пшеничная 0,1л [21:45:04]line 1.000 * 65.00 [21:45:04]line = 65.00 [21:45:04]line НДС 12% НСП 1% [21:45:04]line > о реализуемом товаре [21:45:04]line ИТОГО: 65.00 [21:45:04]line НСП 1% : 0.57 [21:45:04]line НДС 12% : 6.90 [21:45:04]line Наличными: 65.00 [21:45:04]line Безнал.: 0.00 [21:45:04]line Место: АЗС № 163 "Партнер Нефть" [21:45:04]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [21:45:04]line СНО: Общий режим [21:45:04]line Чек 120 20.10.2024 21:45 [21:45:04]line Смена: 526 ФФД: 1.0 [21:45:04]line ЗНМ: 0300000101 [21:45:04]line РНМ: 0000000000091770 [21:45:04]line Версия ККМ: 001 [21:45:04]line ФМ: 0000000000871749 [21:45:04]line ФД: 69830 [21:45:04]line ФПД: 145100637175296 [21:45:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214503&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69830&fm=145100637175296&tin=02508201610067®Number=0000000000091770&sum=6500 [21:45:04]line 0 [21:45:04]Connected sock=11 [21:45:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 65 A7 1C 01 64 6A 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 DF 79 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C6 10 01 00 35 04 06 00 83 F7 DF EF 7E 00 E1 06 0F B0 84 A5 29 20 [21:45:04]written 0, free lines is 4095 [21:45:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 31 87 47 00 AF 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C6 10 01 00 F4 03 04 00 60 1F 15 67 B6 04 01 00 00 55 45 1C 0F 19 BD 9C 20 [21:45:04]CommunicateWithHost err = 0 [21:45:04]CheckOFDResponse [21:45:04]1017 (14) - 77093643461234 [21:45:04]1041 (16) - 0000000000871749 [21:45:04]1040 (4) - 69830 [21:45:04]1012 (4) - 20.10.2024 15:18 [21:45:04]1206 (1) - 0 [21:45:04]OFD Sender: Remove packet 69830 [21:45:04]ProducePacketName [21:45:04]name=ofd_packets/00069830 [21:45:04]NVStorageDeleteData [21:45:05]Write to MH i2c: 01 00 00 C8 01 C9 [21:45:05]Write i2c OK [21:45:05]MH_I2C_Read... [21:45:05]Read from MH i2c: 01 [21:45:05]MH_I2C_Read... [21:45:05]Read from MH i2c: 01 07 00 [21:45:05]MH_I2C_Read... [21:45:05]Read from MH i2c: 01 07 00 C8 01 00 00 00 00 00 07 0D E4 [21:45:05]RasterBufferAndPrint [21:45:05]line [21:45:05]line [21:45:05]line [21:45:05]line [21:45:05]line [21:45:05]written 0, free lines is 3342 [21:45:05]MH_Cut [21:45:05]Write to MH i2c: D1 01 00 CF 01 01 A2 [21:45:05]Write i2c OK [21:45:05]MH_I2C_Read... [21:45:05]Read from MH i2c: D1 [21:45:05]MH_I2C_Read... [21:45:05]Read from MH i2c: D1 01 00 [21:45:05]MH_I2C_Read... [21:45:05]Read from MH i2c: D1 01 00 CF 01 00 A1 [21:45:05]Write to MH i2c: 01 00 00 D0 01 D1 [21:45:05]Write i2c OK [21:45:05]MH_I2C_Read... [21:45:05]OFD Sender: No OFD packet to send [21:45:05]*** Cut start [21:45:05]*** Partial cut [21:45:05]*** CUTSNS_PIN = 1 [21:45:05]*** CUTSNS_PIN = 0 [21:45:06]*** Brake cut motor [21:45:06]Read from MH i2c: 01 [21:45:06]MH_I2C_Read... [21:45:06]*** Stop cut motor [21:45:06]*** Cut end [21:45:06]Read from MH i2c: 01 07 00 [21:45:06]MH_I2C_Read... [21:45:06]Read from MH i2c: 01 07 00 D0 01 00 00 00 00 00 FF 0F E6 [21:45:06]process_action close_receipt done [21:45:06]requested_data is exist [21:45:06]produce_requested_data [21:45:06]requested_item fm.sn is exist - process it [21:45:06]wFMCommunicate request_size=4 [21:45:06]MH_SAM_APDU [21:45:06]CAPDU: 80 11 00 00 [21:45:06]Write to MH i2c: E2 08 00 D1 01 80 11 00 00 00 00 00 00 4C [21:45:06]Write i2c OK [21:45:06]MH_I2C_Read... [21:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:06]Read from MH i2c: E2 [21:45:06]MH_I2C_Read... [21:45:06]Read from MH i2c: E2 17 00 [21:45:06]MH_I2C_Read... [21:45:06]Read from MH i2c: E2 17 00 D1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 A3 [21:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:45:06]wFMCommunicate OK [21:45:06]requested_item fd.num is exist - process it [21:45:06]SAM_PROTO_GetFieldsCounters [21:45:06]wFMCommunicate request_size=4 [21:45:06]MH_SAM_APDU [21:45:06]CAPDU: 80 13 00 00 [21:45:06]Write to MH i2c: E2 08 00 D2 01 80 13 00 00 00 00 00 00 4F [21:45:06]Write i2c OK [21:45:06]MH_I2C_Read... [21:45:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:06]Read from MH i2c: E2 [21:45:06]MH_I2C_Read... [21:45:06]Read from MH i2c: E2 62 00 [21:45:06]MH_I2C_Read... [21:45:06]Read from MH i2c: E2 62 00 D2 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C6 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [21:45: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C6 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:45:06]wFMCommunicate OK [21:45:06]SAM_PROTO_GetFieldsCounters done [21:45:06]requested_item shift.num is exist - process it [21:45:06]requested_item shift.opened is exist - process it [21:45:06]req_shift_opened [21:45:06]FM_GetShiftState [21:45:06]SAM_PROTO_GetShiftState [21:45:06]wFMCommunicate request_size=4 [21:45:06]MH_SAM_APDU [21:45:06]CAPDU: 80 13 01 00 [21:45:06]Write to MH i2c: E2 08 00 D3 01 80 13 01 00 00 00 00 00 51 [21:45:06]Write i2c OK [21:45:06]MH_I2C_Read... [21:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:06]Read from MH i2c: E2 [21:45:06]MH_I2C_Read... [21:45:06]Read from MH i2c: E2 0E 00 [21:45:06]MH_I2C_Read... [21:45:06]Read from MH i2c: E2 0E 00 D3 01 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 E3 [21:45:06]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [21:45:06]wFMCommunicate OK [21:45:06]SAM_PROTO_GetShiftState done [21:45:06]FM_GetShiftState done [21:45:06]req_shift_opened done [21:45:06]requested_item shift.open_date is exist - process it [21:45:06]req_shift_open_date [21:45:06]req_shift_open_date done [21:45:06]produce_requested_data done [21:45:06]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69830,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [21:45:06]process_action_free close_receipt [21:45:06]json_value_free [21:45:06]json_value_free done [21:45:06]process_json_proto returns [21:45:06]Send response to host [21:45:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69830,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [21:45:06]free response buf [21:45:06]execute_script done [21:45:06]execute_script returns [21:45:06]free content buf [21:45:06]Sock 7.Close socket [21:45:06]Sock 7.Thread stoped [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:54]accept exits with 9 [21:49:54]New connection [21:49:54]New thread 3066785124 created [21:49:54]Thread 3066641764 joined [21:49:54]Waiting for new connection... [21:49:54] Sock 9.Parse request [21:49:54]Sock 9.Check first char [21:49:54]Sock 9.First char is OK [21:49:54]request: POST /json_proto HTTP/1.0 [21:49:54]Method: POST [21:49:54]URL: /json_proto [21:49:54]Method is POST - this is cgi request [21:49:54]url: /json_proto [21:49:54]query_string will be loaded in cgi processing [21:49:54]execute_cgi json_proto POST (null) [21:49:54]execute_cgi path=json_proto method=POST [21:49:54]POST find Content-Length [21:49:54]Host: 172.17.52.196:8080 [21:49:54]Content-Length: 1206 [21:49:54]Content-Type: application/json [21:49:54] [21:49:54]POST finish read [21:49:54]Found Content-Length = 1206 [21:49:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127229", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 537.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:54]execute_script... [21:49:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127229", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 537.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:54]POST & json_proto [21:49:54]process_json_proto [21:49:54]json parsed OK: [21:49:54]protocol is kg_v1.0 [21:49:54]action value=close_receipt [21:49:54]process_action close_receipt [21:49:54]cmd_close_receipt [21:49:54]MH_GetDate [21:49:54]Write to MH i2c: F0 00 00 D4 01 C4 [21:49:54]Write i2c OK [21:49:54]MH_I2C_Read... [21:49:54]Read from MH i2c: F0 [21:49:54]MH_I2C_Read... [21:49:54]Read from MH i2c: F0 09 00 [21:49:54]MH_I2C_Read... [21:49:54]Read from MH i2c: F0 09 00 D4 01 00 02 7B 15 67 60 05 E4 66 75 [21:49:54]GetLastDocTimeStamp 1729460703 [21:49:54]current date 1729460994 [21:49:54]FM_GetShiftState [21:49:54]SAM_PROTO_GetShiftState [21:49:54]wFMCommunicate request_size=4 [21:49:54]MH_SAM_APDU [21:49:54]CAPDU: 80 13 01 00 [21:49:54]Write to MH i2c: E2 08 00 D5 01 80 13 01 00 00 00 00 00 53 [21:49:54]Write i2c OK [21:49:54]MH_I2C_Read... [21:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:54]Read from MH i2c: E2 [21:49:54]MH_I2C_Read... [21:49:54]Read from MH i2c: E2 0E 00 [21:49:54]MH_I2C_Read... [21:49:54]Read from MH i2c: E2 0E 00 D5 01 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 E5 [21:49:54]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [21:49:54]wFMCommunicate OK [21:49:54]SAM_PROTO_GetShiftState done [21:49:54]FM_GetShiftState done [21:49:54]opened in 1729384380 [21:49:54]opened+sec_in_day 1729470780 [21:49:54]quantity*price = 24000 [21:49:54]sum+1 = 24001 [21:49:54]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48744683 Сигареты Winston XStyle Caster+ 1.000 * 147.00 = 147.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 537.00 НСП 1% : 4.75 НДС 12% : 57.03 Наличными: 537.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 121 20.10.2024 21:49 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69831 ФПД: 178046379289122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214954&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69831&fm=178046379289122&tin=02508201610067®Number=0000000000091770&sum=53700 0 [21:49:55]StoreToDocumentArchive [21:49:55]shift 526 fd 69831 [21:49:55]save to /storage/0526/doc_00069831 [21:49:55]save last doc name /storage/0526/doc_00069831 to /storage/kkm_last_doc_name [21:49:55]save OK [21:49:55]Clear old archive folders... [21:49:55]ProcessDocumentItem done err = 0, tmpTLVsize=518 [21:49:55]tlvbuf is 017956A0 [21:49:55]SAM_PROTO_ClearQueue [21:49:55]wFMCommunicate request_size=4 [21:49:55]MH_SAM_APDU [21:49:55]CAPDU: 80 09 00 00 [21:49:55]Write to MH i2c: E2 08 00 E2 01 80 09 00 00 00 00 00 00 55 [21:49:55]Write i2c OK [21:49:55]MH_I2C_Read... [21:49:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:55]Read from MH i2c: E2 [21:49:55]MH_I2C_Read... [21:49:55]Read from MH i2c: E2 03 00 [21:49:55]MH_I2C_Read... [21:49:55]Read from MH i2c: E2 03 00 E2 01 00 90 00 57 [21:49:55]RAPDU: 90 00 [21:49:55]wFMCommunicate OK [21:49:55]SAM_PROTO_ClearQueue done [21:49:55]KKMCreateOFDPacket [21:49:55]OFDProtocolAddRootSTLVToBuf [21:49:55]FM_MakeSignedData [21:49:55]FM_MakeSignedData [21:49:55]SAM_PROTO_SignData [21:49:55]wFMCommunicate request_size=4 [21:49:55]MH_SAM_APDU [21:49:55]CAPDU: 80 0D 01 02 [21:49:55]Write to MH i2c: E2 08 00 E3 01 80 0D 01 02 00 00 00 00 5D [21:49:55]Write i2c OK [21:49:55]MH_I2C_Read... [21:49:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:55]Read from MH i2c: E2 [21:49:55]MH_I2C_Read... [21:49:55]Read from MH i2c: E2 03 00 [21:49:55]MH_I2C_Read... [21:49:55]Read from MH i2c: E2 03 00 E3 01 00 90 00 58 [21:49:55]RAPDU: 90 00 [21:49:55]wFMCommunicate OK [21:49:55]wFMCommunicate request_size=255 [21:49:55]MH_SAM_APDU [21:49:55]CAPDU: 80 0D 02 02 FA 03 00 06 02 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 [21:49:55]Write to MH i2c: E2 02 01 E4 01 80 0D 02 02 FA 00 03 00 06 02 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 89 [21:49:55]OFD Sender: No OFD packet to send [21:49:55]Write i2c OK [21:49:55]MH_I2C_Read... [21:49:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:55]Read from MH i2c: E2 [21:49:55]MH_I2C_Read... [21:49:55]Read from MH i2c: E2 03 00 [21:49:55]MH_I2C_Read... [21:49:55]Read from MH i2c: E2 03 00 E4 01 00 90 00 59 [21:49:55]RAPDU: 90 00 [21:49:55]wFMCommunicate OK [21:49:55]wFMCommunicate request_size=255 [21:49:55]MH_SAM_APDU [21:49:55]CAPDU: 80 0D 02 02 FA 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 D1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 16 00 00 00 00 07 04 06 00 C4 D1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 02 7B 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [21:49:55]Write to MH i2c: E2 02 01 E5 01 80 0D 02 02 FA 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 D1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 16 00 00 00 00 07 04 06 00 C4 D1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 02 7B 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 71 [21:49:55]Write i2c OK [21:49:55]MH_I2C_Read... [21:49:56]Read from MH i2c: E2 [21:49:56]MH_I2C_Read... [21:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:56]Read from MH i2c: E2 03 00 [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: E2 03 00 E5 01 00 90 00 5A [21:49:56]RAPDU: 90 00 [21:49:56]wFMCommunicate OK [21:49:56]wFMCommunicate request_size=27 [21:49:56]MH_SAM_APDU [21:49:56]CAPDU: 80 0D 02 02 16 31 37 34 39 10 04 04 00 C7 10 01 00 35 04 06 00 A1 EE A7 30 EA 22 [21:49:56]Write to MH i2c: E2 1E 00 E6 01 80 0D 02 02 16 00 31 37 34 39 10 04 04 00 C7 10 01 00 35 04 06 00 A1 EE A7 30 EA 22 00 00 03 [21:49:56]Write i2c OK [21:49:56]MH_I2C_Read... [21:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:56]Read from MH i2c: E2 [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: E2 03 00 [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [21:49:56]RAPDU: 90 00 [21:49:56]wFMCommunicate OK [21:49:56]wFMCommunicate request_size=4 [21:49:56]MH_SAM_APDU [21:49:56]CAPDU: 80 0D 03 02 [21:49:56]Write to MH i2c: E2 08 00 E7 01 80 0D 03 02 00 00 00 00 63 [21:49:56]Write i2c OK [21:49:56]MH_I2C_Read... [21:49:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:56]Read from MH i2c: E2 [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: E2 0B 00 [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: E2 0B 00 E7 01 00 53 D0 DC 66 75 64 18 2F 90 00 E9 [21:49:56]RAPDU: 53 D0 DC 66 75 64 18 2F 90 00 [21:49:56]wFMCommunicate OK [21:49:56]SAM_PROTO_SignData done [21:49:56]FM_MakeSignedData done [21:49:56]CreateOFDProtocolMessage [21:49:56]wFMCommunicate request_size=4 [21:49:56]MH_SAM_APDU [21:49:56]CAPDU: 80 11 00 00 [21:49:56]Write to MH i2c: E2 08 00 E8 01 80 11 00 00 00 00 00 00 63 [21:49:56]Write i2c OK [21:49:56]MH_I2C_Read... [21:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:56]Read from MH i2c: E2 [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: E2 17 00 [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: E2 17 00 E8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 BA [21:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:49:56]wFMCommunicate OK [21:49:56]CreateOFDProtocolMessage done [21:49:56]OFDSenderStorePacket 69831 [21:49:56]StoreOFDPacket docnum=69831 [21:49:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 1A 02 00 00 1E 95 12 02 86 2D 5A 03 01 00 03 00 06 02 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 D1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 16 00 00 00 00 07 04 06 00 C4 D1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 02 7B 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C7 10 01 00 35 04 06 00 A1 EE A7 30 EA 22 53 D0 DC 66 75 64 18 2F [21:49:56]CheckFolder [21:49:56]dirname=/storage/ofd_packets [21:49:56]CheckFolder done [21:49:56]ProducePacketName [21:49:56]name=ofd_packets/00069831 [21:49:56]NVStorageSaveData ofd_packets/00069831 [21:49:56]File name is /storage/ofd_packets/00069831 [21:49:56]Write 568 bytes [21:49:56]NVStorageSaveData done [21:49:56]OFDSenderStorePacket done [21:49:56]KKMCreateOFDPacket done [21:49:56]NVStorageSaveData kkm_last_timestamp [21:49:56]File name is /storage/kkm_last_timestamp [21:49:56]Write 4 bytes [21:49:56]NVStorageSaveData done [21:49:56]ExternCall_PrintAddStr [21:49:56]wPrintStart [21:49:56]Write to MH i2c: 01 00 00 E9 01 EA [21:49:56]Write i2c OK [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: 01 [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: 01 07 00 [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: 01 07 00 E9 01 00 00 00 00 00 FF 0F FF [21:49:56]RasterBufferAndPrint [21:49:56]line Счет N : (3)127229 [21:49:56]line ИНН: 02508201610067 [21:49:56]line Контрольно-Кассовый Чек [21:49:56]line ПРОДАЖА [21:49:56]line Товар: 5449000027474 [21:49:56]line Напиток FuzeTea зел чай манго,ромашка 1л [21:49:56]line 2.000 * 120.00 [21:49:56]line = 240.00 [21:49:56]line НДС 12% НСП 1% [21:49:56]line > о реализуемом товаре [21:49:56]line Товар: 4640030091645 [21:49:56]line Сигареты ESSE Exchange M [21:49:56]line 1.000 * 150.00 [21:49:56]line = 150.00 [21:49:56]line НДС 12% НСП 1% [21:49:56]line > о реализуемом товаре [21:49:56]line Товар: 48744683 [21:49:56]line Сигареты Winston XStyle Caster+ [21:49:56]line 1.000 * 147.00 [21:49:56]line = 147.00 [21:49:56]line НДС 12% НСП 1% [21:49:56]line > о реализуемом товаре [21:49:56]line ИТОГО: 537.00 [21:49:56]line НСП 1% : 4.75 [21:49:56]line НДС 12% : 57.03 [21:49:56]line Наличными: 537.00 [21:49:56]line Безнал.: 0.00 [21:49:56]line Место: АЗС № 163 "Партнер Нефть" [21:49:56]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [21:49:56]line СНО: Общий режим [21:49:56]line Чек 121 20.10.2024 21:49 [21:49:56]line Смена: 526 ФФД: 1.0 [21:49:56]line ЗНМ: 0300000101 [21:49:56]line РНМ: 0000000000091770 [21:49:56]line Версия ККМ: 001 [21:49:56]line ФМ: 0000000000871749 [21:49:56]line ФД: 69831 [21:49:56]line ФПД: 178046379289122 [21:49:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T214954&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69831&fm=178046379289122&tin=02508201610067®Number=0000000000091770&sum=53700 [21:49:56]line 0 [21:49:56]OFD Sender: Processing packet 69831 [packets to send 32, broken 31] [21:49:56]ProducePacketName [21:49:56]name=ofd_packets/00069831 [21:49:56]OFD Sender: To server: pG, [21:49:56]CommunicateWithHost lk.salyk.kg:30040 [21:49:56]ConnectInit lk.salyk.kg [21:49:56]written 0, free lines is 4095 [21:49:56]Connected sock=10 [21:49:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 1A 02 00 00 1E 95 12 02 86 2D 5A 03 01 00 03 00 06 02 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 D1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 16 00 00 00 00 07 04 06 00 C4 D1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 02 7B 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C7 10 01 00 35 04 06 00 A1 EE A7 30 EA 22 53 D0 DC 66 75 64 18 2F [21:49:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 AE 96 47 00 75 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 31 37 34 39 10 04 04 00 C7 10 01 00 F4 03 04 00 85 20 15 67 B6 04 01 00 00 9D F2 E9 68 65 3F EF BE [21:49:56]CommunicateWithHost err = 0 [21:49:56]CheckOFDResponse [21:49:56]1017 (14) - 77093643461234 [21:49:56]1041 (16) - 0000000000871749 [21:49:56]1040 (4) - 69831 [21:49:56]1012 (4) - 20.10.2024 15:23 [21:49:56]1206 (1) - 0 [21:49:56]OFD Sender: Remove packet 69831 [21:49:56]ProducePacketName [21:49:56]name=ofd_packets/00069831 [21:49:56]NVStorageDeleteData [21:49:57]Write to MH i2c: 01 00 00 1F 02 21 [21:49:57]Write i2c OK [21:49:57]MH_I2C_Read... [21:49:57]Read from MH i2c: 01 [21:49:57]MH_I2C_Read... [21:49:57]Read from MH i2c: 01 07 00 [21:49:57]MH_I2C_Read... [21:49:57]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 38 0C 6C [21:49:57]RasterBufferAndPrint [21:49:57]line [21:49:57]line [21:49:57]line [21:49:57]line [21:49:57]line [21:49:57]written 0, free lines is 3135 [21:49:57]MH_Cut [21:49:57]Write to MH i2c: D1 01 00 26 02 01 FA [21:49:57]Write i2c OK [21:49:57]MH_I2C_Read... [21:49:57]Read from MH i2c: D1 [21:49:57]MH_I2C_Read... [21:49:57]Read from MH i2c: D1 01 00 [21:49:57]MH_I2C_Read... [21:49:57]Read from MH i2c: D1 01 00 26 02 00 F9 [21:49:57]Write to MH i2c: 01 00 00 27 02 29 [21:49:57]Write i2c OK [21:49:57]MH_I2C_Read... [21:49:57]OFD Sender: No OFD packet to send [21:49:58]*** Cut start [21:49:58]*** Partial cut [21:49:58]*** CUTSNS_PIN = 1 [21:49:58]*** CUTSNS_PIN = 0 [21:49:58]*** Brake cut motor [21:49:58]Read from MH i2c: 01 [21:49:58]MH_I2C_Read... [21:49:58]*** Stop cut motor [21:49:58]*** Cut end [21:49:58]Read from MH i2c: 01 07 00 [21:49:58]MH_I2C_Read... [21:49:58]Read from MH i2c: 01 07 00 27 02 00 00 00 00 00 FF 0F 3E [21:49:58]process_action close_receipt done [21:49:58]requested_data is exist [21:49:58]produce_requested_data [21:49:58]requested_item fm.sn is exist - process it [21:49:58]wFMCommunicate request_size=4 [21:49:58]MH_SAM_APDU [21:49:58]CAPDU: 80 11 00 00 [21:49:58]Write to MH i2c: E2 08 00 28 02 80 11 00 00 00 00 00 00 A4 [21:49:58]Write i2c OK [21:49:58]MH_I2C_Read... [21:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:59]Read from MH i2c: E2 [21:49:59]MH_I2C_Read... [21:49:59]Read from MH i2c: E2 17 00 [21:49:59]MH_I2C_Read... [21:49:59]Read from MH i2c: E2 17 00 28 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 FB [21:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:49:59]wFMCommunicate OK [21:49:59]requested_item fd.num is exist - process it [21:49:59]SAM_PROTO_GetFieldsCounters [21:49:59]wFMCommunicate request_size=4 [21:49:59]MH_SAM_APDU [21:49:59]CAPDU: 80 13 00 00 [21:49:59]Write to MH i2c: E2 08 00 29 02 80 13 00 00 00 00 00 00 A7 [21:49:59]Write i2c OK [21:49:59]MH_I2C_Read... [21:49:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:59]Read from MH i2c: E2 [21:49:59]MH_I2C_Read... [21:49:59]Read from MH i2c: E2 62 00 [21:49:59]MH_I2C_Read... [21:49:59]Read from MH i2c: E2 62 00 29 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C7 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [21:49: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C7 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:59]wFMCommunicate OK [21:49:59]SAM_PROTO_GetFieldsCounters done [21:49:59]requested_item shift.num is exist - process it [21:49:59]requested_item shift.opened is exist - process it [21:49:59]req_shift_opened [21:49:59]FM_GetShiftState [21:49:59]SAM_PROTO_GetShiftState [21:49:59]wFMCommunicate request_size=4 [21:49:59]MH_SAM_APDU [21:49:59]CAPDU: 80 13 01 00 [21:49:59]Write to MH i2c: E2 08 00 2A 02 80 13 01 00 00 00 00 00 A9 [21:49:59]Write i2c OK [21:49:59]MH_I2C_Read... [21:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:59]Read from MH i2c: E2 [21:49:59]MH_I2C_Read... [21:49:59]Read from MH i2c: E2 0E 00 [21:49:59]MH_I2C_Read... [21:49:59]Read from MH i2c: E2 0E 00 2A 02 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 3B [21:49:59]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [21:49:59]wFMCommunicate OK [21:49:59]SAM_PROTO_GetShiftState done [21:49:59]FM_GetShiftState done [21:49:59]req_shift_opened done [21:49:59]requested_item shift.open_date is exist - process it [21:49:59]req_shift_open_date [21:49:59]req_shift_open_date done [21:49:59]produce_requested_data done [21:49:59]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69831,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [21:49:59]process_action_free close_receipt [21:49:59]json_value_free [21:49:59]json_value_free done [21:49:59]process_json_proto returns [21:49:59]Send response to host [21:49:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69831,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [21:49:59]free response buf [21:49:59]execute_script done [21:49:59]execute_script returns [21:49:59]free content buf [21:49:59]Sock 9.Close socket [21:49:59]Sock 9.Thread stoped [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]accept exits with 7 [21:51:12]New connection [21:51:12]New thread 3066641764 created [21:51:12]Thread 3066785124 joined [21:51:12]Waiting for new connection... [21:51:12] Sock 7.Parse request [21:51:12]Sock 7.Check first char [21:51:12]Sock 7.First char is OK [21:51:12]request: POST /json_proto HTTP/1.0 [21:51:12]Method: POST [21:51:12]URL: /json_proto [21:51:12]Method is POST - this is cgi request [21:51:12]url: /json_proto [21:51:12]query_string will be loaded in cgi processing [21:51:12]execute_cgi json_proto POST (null) [21:51:12]execute_cgi path=json_proto method=POST [21:51:12]POST find Content-Length [21:51:12]Host: 172.17.52.196:8080 [21:51:12]Content-Length: 619 [21:51:12]Content-Type: application/json [21:51:12] [21:51:12]POST finish read [21:51:12]Found Content-Length = 619 [21:51:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127230", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:12]execute_script... [21:51: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)127230", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:12]POST & json_proto [21:51:12]process_json_proto [21:51:12]json parsed OK: [21:51:12]protocol is kg_v1.0 [21:51:12]action value=close_receipt [21:51:12]process_action close_receipt [21:51:12]cmd_close_receipt [21:51:12]MH_GetDate [21:51:12]Write to MH i2c: F0 00 00 2B 02 1C [21:51:12]Write i2c OK [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: F0 [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: F0 09 00 [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: F0 09 00 2B 02 00 51 7B 15 67 60 05 E4 66 1C [21:51:12]GetLastDocTimeStamp 1729460994 [21:51:12]current date 1729461073 [21:51:12]FM_GetShiftState [21:51:12]SAM_PROTO_GetShiftState [21:51:12]wFMCommunicate request_size=4 [21:51:12]MH_SAM_APDU [21:51:12]CAPDU: 80 13 01 00 [21:51:12]Write to MH i2c: E2 08 00 2C 02 80 13 01 00 00 00 00 00 AB [21:51:12]Write i2c OK [21:51:12]MH_I2C_Read... [21:51:12]OFD Sender: No OFD packet to send [21:51:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:12]Read from MH i2c: E2 [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: E2 0E 00 [21:51:12]MH_I2C_Read... [21:51:12]Read from MH i2c: E2 0E 00 2C 02 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 3D [21:51:12]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [21:51:12]wFMCommunicate OK [21:51:12]SAM_PROTO_GetShiftState done [21:51:12]FM_GetShiftState done [21:51:12]opened in 1729384380 [21:51:12]opened+sec_in_day 1729470780 [21:51:12]quantity*price = 14400 [21:51:12]sum+1 = 14401 [21:51:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 122 20.10.2024 21:51 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69832 ФПД: 101804340897467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215113&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69832&fm=101804340897467&tin=02508201610067®Number=0000000000091770&sum=14400 0 [21:51:13]StoreToDocumentArchive [21:51:13]shift 526 fd 69832 [21:51:13]save to /storage/0526/doc_00069832 [21:51:13]save last doc name /storage/0526/doc_00069832 to /storage/kkm_last_doc_name [21:51:13]save OK [21:51:13]Clear old archive folders... [21:51:13]ProcessDocumentItem done err = 0, tmpTLVsize=271 [21:51:13]tlvbuf is 017B2790 [21:51:13]SAM_PROTO_ClearQueue [21:51:13]wFMCommunicate request_size=4 [21:51:13]MH_SAM_APDU [21:51:13]CAPDU: 80 09 00 00 [21:51:13]Write to MH i2c: E2 08 00 39 02 80 09 00 00 00 00 00 00 AD [21:51:13]Write i2c OK [21:51:13]MH_I2C_Read... [21:51:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:13]Read from MH i2c: E2 [21:51:13]MH_I2C_Read... [21:51:13]Read from MH i2c: E2 03 00 [21:51:13]MH_I2C_Read... [21:51:13]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [21:51:13]RAPDU: 90 00 [21:51:13]wFMCommunicate OK [21:51:13]SAM_PROTO_ClearQueue done [21:51:13]KKMCreateOFDPacket [21:51:13]OFDProtocolAddRootSTLVToBuf [21:51:13]FM_MakeSignedData [21:51:13]FM_MakeSignedData [21:51:13]SAM_PROTO_SignData [21:51:13]wFMCommunicate request_size=4 [21:51:13]MH_SAM_APDU [21:51:13]CAPDU: 80 0D 01 02 [21:51:13]Write to MH i2c: E2 08 00 3A 02 80 0D 01 02 00 00 00 00 B5 [21:51:13]Write i2c OK [21:51:13]MH_I2C_Read... [21:51:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:13]Read from MH i2c: E2 [21:51:13]MH_I2C_Read... [21:51:13]Read from MH i2c: E2 03 00 [21:51:13]MH_I2C_Read... [21:51:13]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [21:51:13]RAPDU: 90 00 [21:51:13]wFMCommunicate OK [21:51:13]wFMCommunicate request_size=255 [21:51:13]MH_SAM_APDU [21:51:13]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 51 7B 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 [21:51:13]Write to MH i2c: E2 02 01 3B 02 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 51 7B 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 7F [21:51:13]Write i2c OK [21:51:13]MH_I2C_Read... [21:51:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:14]Read from MH i2c: E2 [21:51:14]MH_I2C_Read... [21:51:14]Read from MH i2c: E2 03 00 [21:51:14]MH_I2C_Read... [21:51:14]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [21:51:14]RAPDU: 90 00 [21:51:14]wFMCommunicate OK [21:51:14]wFMCommunicate request_size=30 [21:51:14]MH_SAM_APDU [21:51:14]CAPDU: 80 0D 02 02 19 30 38 37 31 37 34 39 10 04 04 00 C8 10 01 00 35 04 06 00 5C 97 2B 93 66 BB [21:51:14]Write to MH i2c: E2 21 00 3C 02 80 0D 02 02 19 00 30 38 37 31 37 34 39 10 04 04 00 C8 10 01 00 35 04 06 00 5C 97 2B 93 66 BB 00 00 60 [21:51:14]Write i2c OK [21:51:14]MH_I2C_Read... [21:51:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:14]Read from MH i2c: E2 [21:51:14]MH_I2C_Read... [21:51:14]Read from MH i2c: E2 03 00 [21:51:14]MH_I2C_Read... [21:51:14]Read from MH i2c: E2 03 00 3C 02 00 90 00 B2 [21:51:14]RAPDU: 90 00 [21:51:14]wFMCommunicate OK [21:51:14]wFMCommunicate request_size=4 [21:51:14]MH_SAM_APDU [21:51:14]CAPDU: 80 0D 03 02 [21:51:14]Write to MH i2c: E2 08 00 3D 02 80 0D 03 02 00 00 00 00 BA [21:51:14]Write i2c OK [21:51:14]MH_I2C_Read... [21:51:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:14]Read from MH i2c: E2 [21:51:14]MH_I2C_Read... [21:51:14]Read from MH i2c: E2 0B 00 [21:51:14]MH_I2C_Read... [21:51:14]Read from MH i2c: E2 0B 00 3D 02 00 D7 9E 0B 97 59 FC D1 D8 90 00 D0 [21:51:14]RAPDU: D7 9E 0B 97 59 FC D1 D8 90 00 [21:51:14]wFMCommunicate OK [21:51:14]SAM_PROTO_SignData done [21:51:14]FM_MakeSignedData done [21:51:14]CreateOFDProtocolMessage [21:51:14]wFMCommunicate request_size=4 [21:51:14]MH_SAM_APDU [21:51:14]CAPDU: 80 11 00 00 [21:51:14]Write to MH i2c: E2 08 00 3E 02 80 11 00 00 00 00 00 00 BA [21:51:14]Write i2c OK [21:51:14]MH_I2C_Read... [21:51:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:14]Read from MH i2c: E2 [21:51:14]MH_I2C_Read... [21:51:14]Read from MH i2c: E2 17 00 [21:51:14]MH_I2C_Read... [21:51:14]Read from MH i2c: E2 17 00 3E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 11 [21:51:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:51:14]wFMCommunicate OK [21:51:14]CreateOFDProtocolMessage done [21:51:14]OFDSenderStorePacket 69832 [21:51:14]StoreOFDPacket docnum=69832 [21:51:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 23 01 00 00 8B F0 1B 01 0D A9 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 51 7B 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C8 10 01 00 35 04 06 00 5C 97 2B 93 66 BB D7 9E 0B 97 59 FC D1 D8 [21:51:14]CheckFolder [21:51:14]dirname=/storage/ofd_packets [21:51:14]CheckFolder done [21:51:14]ProducePacketName [21:51:14]name=ofd_packets/00069832 [21:51:14]NVStorageSaveData ofd_packets/00069832 [21:51:14]File name is /storage/ofd_packets/00069832 [21:51:14]Write 321 bytes [21:51:14]NVStorageSaveData done [21:51:14]OFDSenderStorePacket done [21:51:14]KKMCreateOFDPacket done [21:51:14]NVStorageSaveData kkm_last_timestamp [21:51:14]File name is /storage/kkm_last_timestamp [21:51:14]Write 4 bytes [21:51:14]NVStorageSaveData done [21:51:14]ExternCall_PrintAddStr [21:51:14]wPrintStart [21:51:14]Write to MH i2c: 01 00 00 3F 02 41 [21:51:14]Write i2c OK [21:51:14]MH_I2C_Read... [21:51:14]Read from MH i2c: 01 [21:51:14]MH_I2C_Read... [21:51:14]Read from MH i2c: 01 07 00 [21:51:14]MH_I2C_Read... [21:51:14]Read from MH i2c: 01 07 00 3F 02 00 00 00 00 00 FF 0F 56 [21:51:14]RasterBufferAndPrint [21:51:14]line Счет N : (3)127230 [21:51:14]line ИНН: 02508201610067 [21:51:14]line Контрольно-Кассовый Чек [21:51:14]line ПРОДАЖА [21:51:14]line Товар: 47802995 [21:51:14]line Сигареты Winston XS Silver [21:51:14]line 1.000 * 144.00 [21:51:14]line = 144.00 [21:51:14]line НДС 12% НСП 1% [21:51:14]line > о реализуемом товаре [21:51:14]line ИТОГО: 144.00 [21:51:14]line НСП 1% : 1.27 [21:51:14]line НДС 12% : 15.29 [21:51:14]line Наличными: 144.00 [21:51:14]line Безнал.: 0.00 [21:51:14]line Место: АЗС № 163 "Партнер Нефть" [21:51:14]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [21:51:14]line СНО: Общий режим [21:51:14]line Чек 122 20.10.2024 21:51 [21:51:14]line Смена: 526 ФФД: 1.0 [21:51:14]line ЗНМ: 0300000101 [21:51:14]line РНМ: 0000000000091770 [21:51:14]line Версия ККМ: 001 [21:51:14]line ФМ: 0000000000871749 [21:51:14]line ФД: 69832 [21:51:14]line ФПД: 101804340897467 [21:51:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T215113&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69832&fm=101804340897467&tin=02508201610067®Number=0000000000091770&sum=14400 [21:51:14]OFD Sender: Processing packet 69832 [packets to send 32, broken 31] [21:51:14]ProducePacketName [21:51:14]name=ofd_packets/00069832 [21:51:14]OFD Sender: To server: pG, [21:51:14]CommunicateWithHost lk.salyk.kg:30040 [21:51:14]ConnectInit lk.salyk.kg [21:51:14]line 0 [21:51:14]written 0, free lines is 4095 [21:51:14]Connected sock=10 [21:51:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 23 01 00 00 8B F0 1B 01 0D A9 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 51 7B 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C8 10 01 00 35 04 06 00 5C 97 2B 93 66 BB D7 9E 0B 97 59 FC D1 D8 [21:51:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 E4 83 47 00 C6 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 31 37 34 39 10 04 04 00 C8 10 01 00 F4 03 04 00 D3 20 15 67 B6 04 01 00 00 CC D4 AC CE 77 DB 37 8C [21:51:14]CommunicateWithHost err = 0 [21:51:14]CheckOFDResponse [21:51:14]1017 (14) - 77093643461234 [21:51:14]1041 (16) - 0000000000871749 [21:51:14]1040 (4) - 69832 [21:51:14]1012 (4) - 20.10.2024 15:25 [21:51:14]1206 (1) - 0 [21:51:14]OFD Sender: Remove packet 69832 [21:51:14]ProducePacketName [21:51:14]name=ofd_packets/00069832 [21:51:14]NVStorageDeleteData [21:51:15]Write to MH i2c: 01 00 00 67 02 69 [21:51:15]Write i2c OK [21:51:15]MH_I2C_Read... [21:51:15]Read from MH i2c: 01 [21:51:15]MH_I2C_Read... [21:51:15]Read from MH i2c: 01 07 00 [21:51:15]MH_I2C_Read... [21:51:15]Read from MH i2c: 01 07 00 67 02 00 00 00 00 00 1E 0D 9B [21:51:15]RasterBufferAndPrint [21:51:15]line [21:51:15]line [21:51:15]line [21:51:15]line [21:51:15]line [21:51:15]written 0, free lines is 3364 [21:51:15]MH_Cut [21:51:15]Write to MH i2c: D1 01 00 6E 02 01 42 [21:51:15]Write i2c OK [21:51:15]MH_I2C_Read... [21:51:15]Read from MH i2c: D1 [21:51:15]MH_I2C_Read... [21:51:15]Read from MH i2c: D1 01 00 [21:51:15]MH_I2C_Read... [21:51:15]Read from MH i2c: D1 01 00 6E 02 00 41 [21:51:15]Write to MH i2c: 01 00 00 6F 02 71 [21:51:15]Write i2c OK [21:51:15]MH_I2C_Read... [21:51:15]OFD Sender: No OFD packet to send [21:51:15]*** Cut start [21:51:15]*** Partial cut [21:51:15]*** CUTSNS_PIN = 1 [21:51:15]*** CUTSNS_PIN = 0 [21:51:16]*** Brake cut motor [21:51:16]Read from MH i2c: 01 [21:51:16]MH_I2C_Read... [21:51:16]*** Stop cut motor [21:51:16]*** Cut end [21:51:16]Read from MH i2c: 01 07 00 [21:51:16]MH_I2C_Read... [21:51:16]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [21:51:16]process_action close_receipt done [21:51:16]requested_data is exist [21:51:16]produce_requested_data [21:51:16]requested_item fm.sn is exist - process it [21:51:16]wFMCommunicate request_size=4 [21:51:16]MH_SAM_APDU [21:51:16]CAPDU: 80 11 00 00 [21:51:16]Write to MH i2c: E2 08 00 70 02 80 11 00 00 00 00 00 00 EC [21:51:16]Write i2c OK [21:51:16]MH_I2C_Read... [21:51:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:16]Read from MH i2c: E2 [21:51:16]MH_I2C_Read... [21:51:16]Read from MH i2c: E2 17 00 [21:51:16]MH_I2C_Read... [21:51:16]Read from MH i2c: E2 17 00 70 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 43 [21:51:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [21:51:16]wFMCommunicate OK [21:51:16]requested_item fd.num is exist - process it [21:51:16]SAM_PROTO_GetFieldsCounters [21:51:16]wFMCommunicate request_size=4 [21:51:16]MH_SAM_APDU [21:51:16]CAPDU: 80 13 00 00 [21:51:16]Write to MH i2c: E2 08 00 71 02 80 13 00 00 00 00 00 00 EF [21:51:16]Write i2c OK [21:51:16]MH_I2C_Read... [21:51:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:16]Read from MH i2c: E2 [21:51:16]MH_I2C_Read... [21:51:16]Read from MH i2c: E2 62 00 [21:51:16]MH_I2C_Read... [21:51:16]Read from MH i2c: E2 62 00 71 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C8 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [21:51: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C8 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:51:16]wFMCommunicate OK [21:51:16]SAM_PROTO_GetFieldsCounters done [21:51:16]requested_item shift.num is exist - process it [21:51:16]requested_item shift.opened is exist - process it [21:51:16]req_shift_opened [21:51:16]FM_GetShiftState [21:51:16]SAM_PROTO_GetShiftState [21:51:16]wFMCommunicate request_size=4 [21:51:16]MH_SAM_APDU [21:51:16]CAPDU: 80 13 01 00 [21:51:16]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [21:51:16]Write i2c OK [21:51:16]MH_I2C_Read... [21:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:16]Read from MH i2c: E2 [21:51:16]MH_I2C_Read... [21:51:16]Read from MH i2c: E2 0E 00 [21:51:16]MH_I2C_Read... [21:51:16]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 83 [21:51:16]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [21:51:16]wFMCommunicate OK [21:51:16]SAM_PROTO_GetShiftState done [21:51:16]FM_GetShiftState done [21:51:16]req_shift_opened done [21:51:16]requested_item shift.open_date is exist - process it [21:51:16]req_shift_open_date [21:51:16]req_shift_open_date done [21:51:16]produce_requested_data done [21:51:16]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69832,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [21:51:16]process_action_free close_receipt [21:51:16]json_value_free [21:51:16]json_value_free done [21:51:16]process_json_proto returns [21:51:16]Send response to host [21:51:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69832,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [21:51:16]free response buf [21:51:16]execute_script done [21:51:16]execute_script returns [21:51:16]free content buf [21:51:16]Sock 7.Close socket [21:51:16]Sock 7.Thread stoped [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:05]accept exits with 9 [22:05:05]New connection [22:05:05]New thread 3066785124 created [22:05:05]Thread 3066641764 joined [22:05:05]Waiting for new connection... [22:05:05] Sock 9.Parse request [22:05:05]Sock 9.Check first char [22:05:05]Sock 9.First char is OK [22:05:05]request: POST /json_proto HTTP/1.0 [22:05:05]Method: POST [22:05:05]URL: /json_proto [22:05:05]Method is POST - this is cgi request [22:05:05]url: /json_proto [22:05:05]query_string will be loaded in cgi processing [22:05:05]execute_cgi json_proto POST (null) [22:05:05]execute_cgi path=json_proto method=POST [22:05:05]POST find Content-Length [22:05:05]Host: 172.17.52.196:8080 [22:05:05]Content-Length: 1039 [22:05:05]Content-Type: application/json [22:05:05] [22:05:05]POST finish read [22:05:05]Found Content-Length = 1039 [22:05:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127231", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:05]execute_script... [22:05:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127231", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:05]POST & json_proto [22:05:05]process_json_proto [22:05:05]json parsed OK: [22:05:05]protocol is kg_v1.0 [22:05:05]action value=close_receipt [22:05:05]process_action close_receipt [22:05:05]cmd_close_receipt [22:05:05]MH_GetDate [22:05:05]Write to MH i2c: F0 00 00 73 02 64 [22:05:05]Write i2c OK [22:05:05]MH_I2C_Read... [22:05:05]Read from MH i2c: F0 [22:05:05]MH_I2C_Read... [22:05:05]Read from MH i2c: F0 09 00 [22:05:05]MH_I2C_Read... [22:05:05]Read from MH i2c: F0 09 00 73 02 00 91 7E 15 67 60 05 E4 66 A7 [22:05:05]GetLastDocTimeStamp 1729461073 [22:05:05]current date 1729461905 [22:05:05]FM_GetShiftState [22:05:05]SAM_PROTO_GetShiftState [22:05:05]wFMCommunicate request_size=4 [22:05:05]MH_SAM_APDU [22:05:05]CAPDU: 80 13 01 00 [22:05:05]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [22:05:05]Write i2c OK [22:05:05]MH_I2C_Read... [22:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:05]Read from MH i2c: E2 [22:05:05]MH_I2C_Read... [22:05:05]Read from MH i2c: E2 0E 00 [22:05:05]MH_I2C_Read... [22:05:05]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 85 [22:05:05]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [22:05:05]wFMCommunicate OK [22:05:05]SAM_PROTO_GetShiftState done [22:05:05]FM_GetShiftState done [22:05:05]opened in 1729384380 [22:05:05]opened+sec_in_day 1729470780 [22:05:05]quantity*price = 9500 [22:05:05]sum+1 = 9501 [22:05:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400358 Семечки ДЖИНН 70г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 0.00 Безнал.: 165.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 123 20.10.2024 22:05 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69833 ФПД: 6981282066119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220505&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69833&fm=6981282066119&tin=02508201610067®Number=0000000000091770&sum=16500 0 [22:05:06]StoreToDocumentArchive [22:05:06]shift 526 fd 69833 [22:05:06]save to /storage/0526/doc_00069833 [22:05:06]save last doc name /storage/0526/doc_00069833 to /storage/kkm_last_doc_name [22:05:06]save OK [22:05:06]Clear old archive folders... [22:05:06]OFD Sender: No OFD packet to send [22:05:06]ProcessDocumentItem done err = 0, tmpTLVsize=390 [22:05:06]tlvbuf is 0174AEA0 [22:05:06]SAM_PROTO_ClearQueue [22:05:06]wFMCommunicate request_size=4 [22:05:06]MH_SAM_APDU [22:05:06]CAPDU: 80 09 00 00 [22:05:06]Write to MH i2c: E2 08 00 81 02 80 09 00 00 00 00 00 00 F5 [22:05:06]Write i2c OK [22:05:06]MH_I2C_Read... [22:05:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:06]Read from MH i2c: E2 [22:05:06]MH_I2C_Read... [22:05:06]Read from MH i2c: E2 03 00 [22:05:06]MH_I2C_Read... [22:05:06]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [22:05:06]RAPDU: 90 00 [22:05:06]wFMCommunicate OK [22:05:06]SAM_PROTO_ClearQueue done [22:05:06]KKMCreateOFDPacket [22:05:06]OFDProtocolAddRootSTLVToBuf [22:05:06]FM_MakeSignedData [22:05:06]FM_MakeSignedData [22:05:06]SAM_PROTO_SignData [22:05:06]wFMCommunicate request_size=4 [22:05:06]MH_SAM_APDU [22:05:06]CAPDU: 80 0D 01 02 [22:05:06]Write to MH i2c: E2 08 00 82 02 80 0D 01 02 00 00 00 00 FD [22:05:06]Write i2c OK [22:05:06]MH_I2C_Read... [22:05:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:06]Read from MH i2c: E2 [22:05:06]MH_I2C_Read... [22:05:06]Read from MH i2c: E2 03 00 [22:05:06]MH_I2C_Read... [22:05:06]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [22:05:06]RAPDU: 90 00 [22:05:06]wFMCommunicate OK [22:05:06]wFMCommunicate request_size=255 [22:05:06]MH_SAM_APDU [22:05:06]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [22:05:06]Write to MH i2c: E2 02 01 83 02 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 F1 [22:05:06]Write i2c OK [22:05:06]MH_I2C_Read... [22:05:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:06]Read from MH i2c: E2 [22:05:06]MH_I2C_Read... [22:05:06]Read from MH i2c: E2 03 00 [22:05:06]MH_I2C_Read... [22:05:06]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [22:05:06]RAPDU: 90 00 [22:05:06]wFMCommunicate OK [22:05:06]wFMCommunicate request_size=149 [22:05:06]MH_SAM_APDU [22:05:06]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 91 7E 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C9 10 01 00 35 04 06 00 06 59 74 D6 6E C7 [22:05:06]Write to MH i2c: E2 98 00 84 02 80 0D 02 02 90 00 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 91 7E 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C9 10 01 00 35 04 06 00 06 59 74 D6 6E C7 00 00 43 [22:05:06]Write i2c OK [22:05:06]MH_I2C_Read... [22:05:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:06]Read from MH i2c: E2 [22:05:06]MH_I2C_Read... [22:05:06]Read from MH i2c: E2 03 00 [22:05:06]MH_I2C_Read... [22:05:06]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [22:05:06]RAPDU: 90 00 [22:05:06]wFMCommunicate OK [22:05:06]wFMCommunicate request_size=4 [22:05:06]MH_SAM_APDU [22:05:06]CAPDU: 80 0D 03 02 [22:05:06]Write to MH i2c: E2 08 00 85 02 80 0D 03 02 00 00 00 00 02 [22:05:06]Write i2c OK [22:05:06]MH_I2C_Read... [22:05:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:06]Read from MH i2c: E2 [22:05:06]MH_I2C_Read... [22:05:06]Read from MH i2c: E2 0B 00 [22:05:06]MH_I2C_Read... [22:05:06]Read from MH i2c: E2 0B 00 85 02 00 F9 B2 0F 96 32 34 26 74 90 00 53 [22:05:06]RAPDU: F9 B2 0F 96 32 34 26 74 90 00 [22:05:06]wFMCommunicate OK [22:05:06]SAM_PROTO_SignData done [22:05:06]FM_MakeSignedData done [22:05:06]CreateOFDProtocolMessage [22:05:06]wFMCommunicate request_size=4 [22:05:06]MH_SAM_APDU [22:05:06]CAPDU: 80 11 00 00 [22:05:06]Write to MH i2c: E2 08 00 86 02 80 11 00 00 00 00 00 00 02 [22:05:06]Write i2c OK [22:05:06]MH_I2C_Read... [22:05:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:06]Read from MH i2c: E2 [22:05:06]MH_I2C_Read... [22:05:06]Read from MH i2c: E2 17 00 [22:05:06]MH_I2C_Read... [22:05:06]Read from MH i2c: E2 17 00 86 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 59 [22:05:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [22:05:06]wFMCommunicate OK [22:05:06]CreateOFDProtocolMessage done [22:05:06]OFDSenderStorePacket 69833 [22:05:06]StoreOFDPacket docnum=69833 [22:05:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 9A 01 00 00 BF C0 92 01 BD DF 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 91 7E 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C9 10 01 00 35 04 06 00 06 59 74 D6 6E C7 F9 B2 0F 96 32 34 26 74 [22:05:06]CheckFolder [22:05:06]dirname=/storage/ofd_packets [22:05:06]CheckFolder done [22:05:06]ProducePacketName [22:05:06]name=ofd_packets/00069833 [22:05:06]NVStorageSaveData ofd_packets/00069833 [22:05:06]File name is /storage/ofd_packets/00069833 [22:05:06]Write 440 bytes [22:05:06]NVStorageSaveData done [22:05:06]OFDSenderStorePacket done [22:05:06]KKMCreateOFDPacket done [22:05:06]NVStorageSaveData kkm_last_timestamp [22:05:06]File name is /storage/kkm_last_timestamp [22:05:06]Write 4 bytes [22:05:06]NVStorageSaveData done [22:05:06]ExternCall_PrintAddStr [22:05:06]wPrintStart [22:05:06]Write to MH i2c: 01 00 00 87 02 89 [22:05:07]Write i2c OK [22:05:07]MH_I2C_Read... [22:05:07]OFD Sender: Processing packet 69833 [packets to send 32, broken 31] [22:05:07]Read from MH i2c: ProducePacketName [22:05:07]01 name=ofd_packets/00069833 [22:05:07] [22:05:07]MH_I2C_Read... [22:05:07]OFD Sender: To server: pG, [22:05:07]CommunicateWithHost lk.salyk.kg:30040 [22:05:07]Read from MH i2c: ConnectInit lk.salyk.kg [22:05:07]01 07 00 [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: 01 07 00 87 02 00 00 00 00 00 FF 0F 9E [22:05:07]RasterBufferAndPrint [22:05:07]line Счет N : (3)127231 [22:05:07]line ИНН: 02508201610067 [22:05:07]line Контрольно-Кассовый Чек [22:05:07]line ПРОДАЖА [22:05:07]line Товар: 4700000481453 [22:05:07]line Напиток энерг Nitro Max 0,45 ж/б [22:05:07]line 1.000 * 95.00 [22:05:07]line = 95.00 [22:05:07]line НДС 12% НСП 1% [22:05:07]line > о реализуемом товаре [22:05:07]line Товар: 4630007400358 [22:05:07]line Семечки ДЖИНН 70г [22:05:07]line 1.000 * 70.00 [22:05:07]line = 70.00 [22:05:07]line НДС 12% НСП 1% [22:05:07]line > о реализуемом товаре [22:05:07]line ИТОГО: 165.00 [22:05:07]line НСП 1% : 1.46 [22:05:07]line НДС 12% : 17.52 [22:05:07]line Наличными: 0.00 [22:05:07]line Безнал.: 165.00 [22:05:07]line Место: АЗС № 163 "Партнер Нефть" [22:05:07]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [22:05:07]line СНО: Общий режим [22:05:07]line Чек 123 20.10.2024 22:05 [22:05:07]line Смена: 526 ФФД: 1.0 [22:05:07]line ЗНМ: 0300000101 [22:05:07]line РНМ: 0000000000091770 [22:05:07]line Версия ККМ: 001 [22:05:07]line Платежная система: Mbank [22:05:07]line ФМ: 0000000000871749 [22:05:07]line ФД: 69833 [22:05:07]line ФПД: 6981282066119 [22:05:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T220505&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69833&fm=6981282066119&tin=02508201610067®Number=0000000000091770&sum=16500 [22:05:07]line 0 [22:05:07]written 0, free lines is 4095 [22:05:07]Connected sock=11 [22:05:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 9A 01 00 00 BF C0 92 01 BD DF 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 91 7E 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C9 10 01 00 35 04 06 00 06 59 74 D6 6E C7 F9 B2 0F 96 32 34 26 74 [22:05:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 CB 2B 47 00 03 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 C9 10 01 00 F4 03 04 00 13 24 15 67 B6 04 01 00 00 1B 8C 92 8F 85 D2 D5 D3 [22:05:07]CommunicateWithHost err = 0 [22:05:07]CheckOFDResponse [22:05:07]1017 (14) - 77093643461234 [22:05:07]1041 (16) - 0000000000871749 [22:05:07]1040 (4) - 69833 [22:05:07]1012 (4) - 20.10.2024 15:38 [22:05:07]1206 (1) - 0 [22:05:07]OFD Sender: Remove packet 69833 [22:05:07]ProducePacketName [22:05:07]name=ofd_packets/00069833 [22:05:07]NVStorageDeleteData [22:05:07]Write to MH i2c: 01 00 00 B7 02 B9 [22:05:07]Write i2c OK [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: 01 [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: 01 07 00 [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: 01 07 00 B7 02 00 00 00 00 00 8A 0C 56 [22:05:07]RasterBufferAndPrint [22:05:07]line [22:05:07]line [22:05:07]line [22:05:07]line [22:05:07]line [22:05:07]written 0, free lines is 3215 [22:05:07]MH_Cut [22:05:07]Write to MH i2c: D1 01 00 BE 02 01 92 [22:05:07]Write i2c OK [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: D1 [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: D1 01 00 [22:05:07]MH_I2C_Read... [22:05:07]Read from MH i2c: D1 01 00 BE 02 00 91 [22:05:07]Write to MH i2c: 01 00 00 BF 02 C1 [22:05:07]Write i2c OK [22:05:07]MH_I2C_Read... [22:05:07]OFD Sender: No OFD packet to send [22:05:08]*** Cut start [22:05:08]*** Partial cut [22:05:08]*** CUTSNS_PIN = 1 [22:05:08]*** CUTSNS_PIN = 0 [22:05:09]*** Brake cut motor [22:05:09]Read from MH i2c: 01 [22:05:09]MH_I2C_Read... [22:05:09]*** Stop cut motor [22:05:09]*** Cut end [22:05:09]Read from MH i2c: 01 07 00 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: 01 07 00 BF 02 00 00 00 00 00 FF 0F D6 [22:05:09]process_action close_receipt done [22:05:09]requested_data is exist [22:05:09]produce_requested_data [22:05:09]requested_item fm.sn is exist - process it [22:05:09]wFMCommunicate request_size=4 [22:05:09]MH_SAM_APDU [22:05:09]CAPDU: 80 11 00 00 [22:05:09]Write to MH i2c: E2 08 00 C0 02 80 11 00 00 00 00 00 00 3C [22:05:09]Write i2c OK [22:05:09]MH_I2C_Read... [22:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:09]Read from MH i2c: E2 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: E2 17 00 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: E2 17 00 C0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 93 [22:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [22:05:09]wFMCommunicate OK [22:05:09]requested_item fd.num is exist - process it [22:05:09]SAM_PROTO_GetFieldsCounters [22:05:09]wFMCommunicate request_size=4 [22:05:09]MH_SAM_APDU [22:05:09]CAPDU: 80 13 00 00 [22:05:09]Write to MH i2c: E2 08 00 C1 02 80 13 00 00 00 00 00 00 3F [22:05:09]Write i2c OK [22:05:09]MH_I2C_Read... [22:05:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:09]Read from MH i2c: E2 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: E2 62 00 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: E2 62 00 C1 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C9 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [22:05: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 C9 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:09]wFMCommunicate OK [22:05:09]SAM_PROTO_GetFieldsCounters done [22:05:09]requested_item shift.num is exist - process it [22:05:09]requested_item shift.opened is exist - process it [22:05:09]req_shift_opened [22:05:09]FM_GetShiftState [22:05:09]SAM_PROTO_GetShiftState [22:05:09]wFMCommunicate request_size=4 [22:05:09]MH_SAM_APDU [22:05:09]CAPDU: 80 13 01 00 [22:05:09]Write to MH i2c: E2 08 00 C2 02 80 13 01 00 00 00 00 00 41 [22:05:09]Write i2c OK [22:05:09]MH_I2C_Read... [22:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:09]Read from MH i2c: E2 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: E2 0E 00 [22:05:09]MH_I2C_Read... [22:05:09]Read from MH i2c: E2 0E 00 C2 02 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 D3 [22:05:09]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [22:05:09]wFMCommunicate OK [22:05:09]SAM_PROTO_GetShiftState done [22:05:09]FM_GetShiftState done [22:05:09]req_shift_opened done [22:05:09]requested_item shift.open_date is exist - process it [22:05:09]req_shift_open_date [22:05:09]req_shift_open_date done [22:05:09]produce_requested_data done [22:05:09]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69833,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [22:05:09]process_action_free close_receipt [22:05:09]json_value_free [22:05:09]json_value_free done [22:05:09]process_json_proto returns [22:05:09]Send response to host [22:05:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69833,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [22:05:09]free response buf [22:05:09]execute_script done [22:05:09]execute_script returns [22:05:09]free content buf [22:05:09]Sock 9.Close socket [22:05:09]Sock 9.Thread stoped [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]OFD Sender: No OFD packet to send [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:52]accept exits with 7 [22:36:52]New connection [22:36:52]New thread 3066641764 created [22:36:52]Thread 3066785124 joined [22:36:52]Waiting for new connection... [22:36:52] Sock 7.Parse request [22:36:52]Sock 7.Check first char [22:36:52]Sock 7.First char is OK [22:36:52]request: POST /json_proto HTTP/1.0 [22:36:52]Method: POST [22:36:52]URL: /json_proto [22:36:52]Method is POST - this is cgi request [22:36:52]url: /json_proto [22:36:52]query_string will be loaded in cgi processing [22:36:52]execute_cgi json_proto POST (null) [22:36:52]execute_cgi path=json_proto method=POST [22:36:52]POST find Content-Length [22:36:52]Host: 172.17.52.196:8080 [22:36:52]Content-Length: 620 [22:36:52]Content-Type: application/json [22:36:52] [22:36:52]POST finish read [22:36:52]Found Content-Length = 620 [22:36:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127232", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:52]execute_script... [22:36:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127232", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:52]POST & json_proto [22:36:52]process_json_proto [22:36:52]json parsed OK: [22:36:52]protocol is kg_v1.0 [22:36:52]action value=close_receipt [22:36:52]process_action close_receipt [22:36:52]cmd_close_receipt [22:36:52]MH_GetDate [22:36:52]Write to MH i2c: F0 00 00 C3 02 B4 [22:36:52]Write i2c OK [22:36:52]MH_I2C_Read... [22:36:52]Read from MH i2c: F0 [22:36:52]MH_I2C_Read... [22:36:52]Read from MH i2c: F0 09 00 [22:36:52]MH_I2C_Read... [22:36:52]Read from MH i2c: F0 09 00 C3 02 00 05 86 15 67 60 05 E4 66 73 [22:36:52]GetLastDocTimeStamp 1729461905 [22:36:52]current date 1729463813 [22:36:52]FM_GetShiftState [22:36:52]SAM_PROTO_GetShiftState [22:36:52]wFMCommunicate request_size=4 [22:36:52]MH_SAM_APDU [22:36:52]CAPDU: 80 13 01 00 [22:36:52]Write to MH i2c: E2 08 00 C4 02 80 13 01 00 00 00 00 00 43 [22:36:52]Write i2c OK [22:36:52]MH_I2C_Read... [22:36:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:52]Read from MH i2c: E2 [22:36:52]MH_I2C_Read... [22:36:52]Read from MH i2c: E2 0E 00 [22:36:52]MH_I2C_Read... [22:36:52]Read from MH i2c: E2 0E 00 C4 02 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 D5 [22:36:52]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [22:36:52]wFMCommunicate OK [22:36:52]SAM_PROTO_GetShiftState done [22:36:52]FM_GetShiftState done [22:36:52]opened in 1729384380 [22:36:52]opened+sec_in_day 1729470780 [22:36:52]quantity*price = 13900 [22:36:52]sum+1 = 13901 [22:36:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 124 20.10.2024 22:36 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69834 ФПД: 276075557787877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T223653&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69834&fm=276075557787877&tin=02508201610067®Number=0000000000091770&sum=13900 0 [22:36:53]StoreToDocumentArchive [22:36:53]shift 526 fd 69834 [22:36:53]save to /storage/0526/doc_00069834 [22:36:53]save last doc name /storage/0526/doc_00069834 to /storage/kkm_last_doc_name [22:36:53]save OK [22:36:53]Clear old archive folders... [22:36:53]ProcessDocumentItem done err = 0, tmpTLVsize=272 [22:36:53]tlvbuf is 0179BCD0 [22:36:53]SAM_PROTO_ClearQueue [22:36:53]wFMCommunicate request_size=4 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 09 00 00 [22:36:53]Write to MH i2c: E2 08 00 D1 02 80 09 00 00 00 00 00 00 45 [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 03 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [22:36:53]RAPDU: 90 00 [22:36:53]wFMCommunicate OK [22:36:53]SAM_PROTO_ClearQueue done [22:36:53]KKMCreateOFDPacket [22:36:53]OFDProtocolAddRootSTLVToBuf [22:36:53]FM_MakeSignedData [22:36:53]FM_MakeSignedData [22:36:53]SAM_PROTO_SignData [22:36:53]wFMCommunicate request_size=4 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 0D 01 02 [22:36:53]Write to MH i2c: E2 08 00 D2 02 80 0D 01 02 00 00 00 00 4D [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 03 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 03 00 D2 02 00 90 00 48 [22:36:53]RAPDU: 90 00 [22:36:53]wFMCommunicate OK [22:36:53]wFMCommunicate request_size=255 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 05 86 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 [22:36:53]Write to MH i2c: E2 02 01 D3 02 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 05 86 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 00 00 10 [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:54]Read from MH i2c: E2 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 03 00 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 03 00 D3 02 00 90 00 49 [22:36:54]RAPDU: 90 00 [22:36:54]wFMCommunicate OK [22:36:54]wFMCommunicate request_size=31 [22:36:54]MH_SAM_APDU [22:36:54]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 37 34 39 10 04 04 00 CA 10 01 00 35 04 06 00 FB 16 D9 8D 98 E5 [22:36:54]Write to MH i2c: E2 22 00 D4 02 80 0D 02 02 1A 00 30 30 38 37 31 37 34 39 10 04 04 00 CA 10 01 00 35 04 06 00 FB 16 D9 8D 98 E5 00 00 4E [22:36:54]Write i2c OK [22:36:54]MH_I2C_Read... [22:36:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:54]Read from MH i2c: E2 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 03 00 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 03 00 D4 02 00 90 00 4A [22:36:54]RAPDU: 90 00 [22:36:54]wFMCommunicate OK [22:36:54]wFMCommunicate request_size=4 [22:36:54]MH_SAM_APDU [22:36:54]CAPDU: 80 0D 03 02 [22:36:54]Write to MH i2c: E2 08 00 D5 02 80 0D 03 02 00 00 00 00 52 [22:36:54]Write i2c OK [22:36:54]MH_I2C_Read... [22:36:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:36:54]Read from MH i2c: E2 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 0B 00 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 0B 00 D5 02 00 AB D9 3C 53 EB C7 C3 B9 90 00 94 [22:36:54]RAPDU: AB D9 3C 53 EB C7 C3 B9 90 00 [22:36:54]wFMCommunicate OK [22:36:54]SAM_PROTO_SignData done [22:36:54]FM_MakeSignedData done [22:36:54]CreateOFDProtocolMessage [22:36:54]wFMCommunicate request_size=4 [22:36:54]MH_SAM_APDU [22:36:54]CAPDU: 80 11 00 00 [22:36:54]Write to MH i2c: E2 08 00 D6 02 80 11 00 00 00 00 00 00 52 [22:36:54]Write i2c OK [22:36:54]MH_I2C_Read... [22:36:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:54]Read from MH i2c: E2 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 17 00 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 17 00 D6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 A9 [22:36:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [22:36:54]wFMCommunicate OK [22:36:54]CreateOFDProtocolMessage done [22:36:54]OFDSenderStorePacket 69834 [22:36:54]StoreOFDPacket docnum=69834 [22:36:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 21 9B 1C 01 49 2A 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 05 86 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CA 10 01 00 35 04 06 00 FB 16 D9 8D 98 E5 AB D9 3C 53 EB C7 C3 B9 [22:36:54]CheckFolder [22:36:54]dirname=/storage/ofd_packets [22:36:54]CheckFolder done [22:36:54]ProducePacketName [22:36:54]name=ofd_packets/00069834 [22:36:54]NVStorageSaveData ofd_packets/00069834 [22:36:54]File name is /storage/ofd_packets/00069834 [22:36:54]Write 322 bytes [22:36:54]NVStorageSaveData done [22:36:54]OFDSenderStorePacket done [22:36:54]KKMCreateOFDPacket done [22:36:54]NVStorageSaveData kkm_last_timestamp [22:36:54]File name is /storage/kkm_last_timestamp [22:36:54]Write 4 bytes [22:36:54]NVStorageSaveData done [22:36:54]ExternCall_PrintAddStr [22:36:54]wPrintStart [22:36:54]Write to MH i2c: 01 00 00 D7 02 D9 [22:36:54]Write i2c OK [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: 01 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: 01 07 00 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: 01 07 00 D7 02 00 00 00 00 00 FF 0F EE [22:36:54]RasterBufferAndPrint [22:36:54]line Счет N : (3)127232 [22:36:54]line ИНН: 02508201610067 [22:36:54]line Контрольно-Кассовый Чек [22:36:54]line ПРОДАЖА [22:36:54]line Товар: 48745000 [22:36:54]line Сигареты Winston Purple Mix [22:36:54]line 1.000 * 139.00 [22:36:54]line = 139.00 [22:36:54]line НДС 12% НСП 1% [22:36:54]line > о реализуемом товаре [22:36:54]line ИТОГО: 139.00 [22:36:54]line НСП 1% : 1.23 [22:36:54]line НДС 12% : 14.76 [22:36:54]line Наличными: 139.00 [22:36:54]line Безнал.: 0.00 [22:36:54]line Место: АЗС № 163 "Партнер Нефть" [22:36:54]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [22:36:54]line СНО: Общий режим [22:36:54]line Чек 124 20.10.2024 22:36 [22:36:54]line Смена: 526 ФФД: 1.0 [22:36:54]line ЗНМ: 0300000101 [22:36:54]line РНМ: 0000000000091770 [22:36:54]line Версия ККМ: 001 [22:36:54]line ФМ: 0000000000871749 [22:36:54]line ФД: 69834 [22:36:54]line ФПД: 276075557787877 [22:36:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T223653&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69834&fm=276075557787877&tin=02508201610067®Number=0000000000091770&sum=13900 [22:36:54]OFD Sender: Processing packet 69834 [packets to send 32, broken 31] [22:36:54]ProducePacketName [22:36:54]name=ofd_packets/00069834 [22:36:54]OFD Sender: To server: pG, [22:36:54]CommunicateWithHost lk.salyk.kg:30040 [22:36:54]ConnectInit lk.salyk.kg [22:36:54]line 0 [22:36:54]written 0, free lines is 4095 [22:36:54]Connected sock=10 [22:36:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 24 01 00 00 21 9B 1C 01 49 2A 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 05 86 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CA 10 01 00 35 04 06 00 FB 16 D9 8D 98 E5 AB D9 3C 53 EB C7 C3 B9 [22:36:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 CD 7D 47 00 72 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CA 10 01 00 F4 03 04 00 87 2B 15 67 B6 04 01 00 00 6B FA F2 8E 74 69 A6 51 [22:36:54]CommunicateWithHost err = 0 [22:36:54]CheckOFDResponse [22:36:54]1017 (14) - 77093643461234 [22:36:54]1041 (16) - 0000000000871749 [22:36:54]1040 (4) - 69834 [22:36:54]1012 (4) - 20.10.2024 16:10 [22:36:54]1206 (1) - 0 [22:36:54]OFD Sender: Remove packet 69834 [22:36:54]ProducePacketName [22:36:54]name=ofd_packets/00069834 [22:36:54]NVStorageDeleteData [22:36:54]Write to MH i2c: 01 00 00 FF 02 01 [22:36:54]Write i2c OK [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: 01 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: 01 07 00 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 F8 0C 0C [22:36:54]RasterBufferAndPrint [22:36:54]line [22:36:54]line [22:36:54]line [22:36:54]line [22:36:54]line [22:36:54]written 0, free lines is 3327 [22:36:54]MH_Cut [22:36:54]Write to MH i2c: D1 01 00 06 03 01 DB [22:36:54]Write i2c OK [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: D1 [22:36:54]MH_I2C_Read... [22:36:55]Read from MH i2c: D1 01 00 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: D1 01 00 06 03 00 DA [22:36:55]Write to MH i2c: 01 00 00 07 03 0A [22:36:55]Write i2c OK [22:36:55]MH_I2C_Read... [22:36:55]OFD Sender: No OFD packet to send [22:36:55]*** Cut start [22:36:55]*** Partial cut [22:36:55]*** CUTSNS_PIN = 1 [22:36:55]*** CUTSNS_PIN = 0 [22:36:56]*** Brake cut motor [22:36:56]Read from MH i2c: 01 [22:36:56]MH_I2C_Read... [22:36:56]*** Stop cut motor [22:36:56]*** Cut end [22:36:56]Read from MH i2c: 01 07 00 [22:36:56]MH_I2C_Read... [22:36:56]Read from MH i2c: 01 07 00 07 03 00 00 00 00 00 FF 0F 1F [22:36:56]process_action close_receipt done [22:36:56]requested_data is exist [22:36:56]produce_requested_data [22:36:56]requested_item fm.sn is exist - process it [22:36:56]wFMCommunicate request_size=4 [22:36:56]MH_SAM_APDU [22:36:56]CAPDU: 80 11 00 00 [22:36:56]Write to MH i2c: E2 08 00 08 03 80 11 00 00 00 00 00 00 85 [22:36:56]Write i2c OK [22:36:56]MH_I2C_Read... [22:36:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:56]Read from MH i2c: E2 [22:36:56]MH_I2C_Read... [22:36:56]Read from MH i2c: E2 17 00 [22:36:56]MH_I2C_Read... [22:36:56]Read from MH i2c: E2 17 00 08 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 DC [22:36:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [22:36:56]wFMCommunicate OK [22:36:56]requested_item fd.num is exist - process it [22:36:56]SAM_PROTO_GetFieldsCounters [22:36:56]wFMCommunicate request_size=4 [22:36:56]MH_SAM_APDU [22:36:56]CAPDU: 80 13 00 00 [22:36:56]Write to MH i2c: E2 08 00 09 03 80 13 00 00 00 00 00 00 88 [22:36:56]Write i2c OK [22:36:56]MH_I2C_Read... [22:36:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:36:56]Read from MH i2c: E2 [22:36:56]MH_I2C_Read... [22:36:56]Read from MH i2c: E2 62 00 [22:36:56]MH_I2C_Read... [22:36:56]Read from MH i2c: E2 62 00 09 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CA 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [22:36: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CA 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:36:56]wFMCommunicate OK [22:36:56]SAM_PROTO_GetFieldsCounters done [22:36:56]requested_item shift.num is exist - process it [22:36:56]requested_item shift.opened is exist - process it [22:36:56]req_shift_opened [22:36:56]FM_GetShiftState [22:36:56]SAM_PROTO_GetShiftState [22:36:56]wFMCommunicate request_size=4 [22:36:56]MH_SAM_APDU [22:36:56]CAPDU: 80 13 01 00 [22:36:56]Write to MH i2c: E2 08 00 0A 03 80 13 01 00 00 00 00 00 8A [22:36:56]Write i2c OK [22:36:56]MH_I2C_Read... [22:36:56]Read from MH i2c: E2 [22:36:56]MH_I2C_Read... [22:36:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:56]Read from MH i2c: E2 0E 00 [22:36:56]MH_I2C_Read... [22:36:56]Read from MH i2c: E2 0E 00 0A 03 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 1C [22:36:56]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [22:36:56]wFMCommunicate OK [22:36:56]SAM_PROTO_GetShiftState done [22:36:56]FM_GetShiftState done [22:36:56]req_shift_opened done [22:36:56]requested_item shift.open_date is exist - process it [22:36:56]req_shift_open_date [22:36:56]req_shift_open_date done [22:36:56]produce_requested_data done [22:36:56]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69834,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [22:36:56]process_action_free close_receipt [22:36:56]json_value_free [22:36:56]json_value_free done [22:36:56]process_json_proto returns [22:36:56]Send response to host [22:36:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69834,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [22:36:56]free response buf [22:36:56]execute_script done [22:36:56]execute_script returns [22:36:56]free content buf [22:36:56]Sock 7.Close socket [22:36:56]Sock 7.Thread stoped [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:49]accept exits with 9 [22:44:49]New connection [22:44:49]New thread 3066785124 created [22:44:49]Thread 3066641764 joined [22:44:49]Waiting for new connection... [22:44:49] Sock 9.Parse request [22:44:49]Sock 9.Check first char [22:44:49]Sock 9.First char is OK [22:44:49]request: POST /json_proto HTTP/1.0 [22:44:49]Method: POST [22:44:49]URL: /json_proto [22:44:49]Method is POST - this is cgi request [22:44:49]url: /json_proto [22:44:49]query_string will be loaded in cgi processing [22:44:49]execute_cgi json_proto POST (null) [22:44:49]execute_cgi path=json_proto method=POST [22:44:49]POST find Content-Length [22:44:49]Host: 172.17.52.196:8080 [22:44:49]Content-Length: 711 [22:44:49]Content-Type: application/json [22:44:49] [22:44:49]POST finish read [22:44:49]Found Content-Length = 711 [22:44:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127233", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 84.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:49]execute_script... [22:44:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127233", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 84.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:49]POST & json_proto [22:44:49]process_json_proto [22:44:49]json parsed OK: [22:44:49]protocol is kg_v1.0 [22:44:49]action value=close_receipt [22:44:49]process_action close_receipt [22:44:49]cmd_close_receipt [22:44:49]MH_GetDate [22:44:49]Write to MH i2c: F0 00 00 0B 03 FD [22:44:49]Write i2c OK [22:44:49]MH_I2C_Read... [22:44:49]Read from MH i2c: F0 [22:44:49]MH_I2C_Read... [22:44:49]Read from MH i2c: F0 09 00 [22:44:49]MH_I2C_Read... [22:44:49]Read from MH i2c: F0 09 00 0B 03 00 E2 87 15 67 60 05 E4 66 9A [22:44:49]GetLastDocTimeStamp 1729463813 [22:44:49]current date 1729464290 [22:44:49]FM_GetShiftState [22:44:49]SAM_PROTO_GetShiftState [22:44:49]wFMCommunicate request_size=4 [22:44:49]MH_SAM_APDU [22:44:49]CAPDU: 80 13 01 00 [22:44:49]Write to MH i2c: E2 08 00 0C 03 80 13 01 00 00 00 00 00 8C [22:44:49]Write i2c OK [22:44:49]MH_I2C_Read... [22:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:49]Read from MH i2c: E2 [22:44:49]MH_I2C_Read... [22:44:49]Read from MH i2c: E2 0E 00 [22:44:49]MH_I2C_Read... [22:44:49]Read from MH i2c: E2 0E 00 0C 03 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 1E [22:44:49]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [22:44:49]wFMCommunicate OK [22:44:49]SAM_PROTO_GetShiftState done [22:44:49]FM_GetShiftState done [22:44:49]opened in 1729384380 [22:44:49]opened+sec_in_day 1729470780 [22:44:49]quantity*price = 8400 [22:44:49]sum+1 = 8401 [22:44:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 84.00 НСП 1% : 0.74 НДС 12% : 8.92 Наличными: 84.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 125 20.10.2024 22:44 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69835 ФПД: 106162658475917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T224450&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69835&fm=106162658475917&tin=02508201610067®Number=0000000000091770&sum=8400 0 [22:44:50]StoreToDocumentArchive [22:44:50]shift 526 fd 69835 [22:44:50]save to /storage/0526/doc_00069835 [22:44:50]save last doc name /storage/0526/doc_00069835 to /storage/kkm_last_doc_name [22:44:50]save OK [22:44:50]Clear old archive folders... [22:44:50]ProcessDocumentItem done err = 0, tmpTLVsize=302 [22:44:50]tlvbuf is 0179B5E0 [22:44:50]SAM_PROTO_ClearQueue [22:44:50]wFMCommunicate request_size=4 [22:44:50]MH_SAM_APDU [22:44:50]CAPDU: 80 09 00 00 [22:44:50]Write to MH i2c: E2 08 00 19 03 80 09 00 00 00 00 00 00 8E [22:44:50]Write i2c OK [22:44:50]MH_I2C_Read... [22:44:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:50]OFD Sender: No OFD packet to send [22:44:50]Read from MH i2c: E2 [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: E2 03 00 [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [22:44:50]RAPDU: 90 00 [22:44:50]wFMCommunicate OK [22:44:50]SAM_PROTO_ClearQueue done [22:44:50]KKMCreateOFDPacket [22:44:50]OFDProtocolAddRootSTLVToBuf [22:44:50]FM_MakeSignedData [22:44:50]FM_MakeSignedData [22:44:50]SAM_PROTO_SignData [22:44:50]wFMCommunicate request_size=4 [22:44:50]MH_SAM_APDU [22:44:50]CAPDU: 80 0D 01 02 [22:44:50]Write to MH i2c: E2 08 00 1A 03 80 0D 01 02 00 00 00 00 96 [22:44:50]Write i2c OK [22:44:50]MH_I2C_Read... [22:44:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:50]Read from MH i2c: E2 [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: E2 03 00 [22:44:50]MH_I2C_Read... [22:44:50]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [22:44:50]RAPDU: 90 00 [22:44:50]wFMCommunicate OK [22:44:50]wFMCommunicate request_size=255 [22:44:50]MH_SAM_APDU [22:44:50]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 E2 87 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 [22:44:50]Write to MH i2c: E2 02 01 1B 03 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 E2 87 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 00 00 A6 [22:44:50]Write i2c OK [22:44:50]MH_I2C_Read... [22:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:51]Read from MH i2c: E2 [22:44:51]MH_I2C_Read... [22:44:51]Read from MH i2c: E2 03 00 [22:44:51]MH_I2C_Read... [22:44:51]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [22:44:51]RAPDU: 90 00 [22:44:51]wFMCommunicate OK [22:44:51]wFMCommunicate request_size=61 [22:44:51]MH_SAM_APDU [22:44:51]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CB 10 01 00 35 04 06 00 60 8D EB 8B FF 8D [22:44:51]Write to MH i2c: E2 40 00 1C 03 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CB 10 01 00 35 04 06 00 60 8D EB 8B FF 8D 00 00 9C [22:44:51]Write i2c OK [22:44:51]MH_I2C_Read... [22:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:51]Read from MH i2c: E2 [22:44:51]MH_I2C_Read... [22:44:51]Read from MH i2c: E2 03 00 [22:44:51]MH_I2C_Read... [22:44:51]Read from MH i2c: E2 03 00 1C 03 00 90 00 93 [22:44:51]RAPDU: 90 00 [22:44:51]wFMCommunicate OK [22:44:51]wFMCommunicate request_size=4 [22:44:51]MH_SAM_APDU [22:44:51]CAPDU: 80 0D 03 02 [22:44:51]Write to MH i2c: E2 08 00 1D 03 80 0D 03 02 00 00 00 00 9B [22:44:51]Write i2c OK [22:44:51]MH_I2C_Read... [22:44:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:51]Read from MH i2c: E2 [22:44:51]MH_I2C_Read... [22:44:51]Read from MH i2c: E2 0B 00 [22:44:51]MH_I2C_Read... [22:44:51]Read from MH i2c: E2 0B 00 1D 03 00 C2 3C 23 DB 62 45 9C 81 90 00 5C [22:44:51]RAPDU: C2 3C 23 DB 62 45 9C 81 90 00 [22:44:51]wFMCommunicate OK [22:44:51]SAM_PROTO_SignData done [22:44:51]FM_MakeSignedData done [22:44:51]CreateOFDProtocolMessage [22:44:51]wFMCommunicate request_size=4 [22:44:51]MH_SAM_APDU [22:44:51]CAPDU: 80 11 00 00 [22:44:51]Write to MH i2c: E2 08 00 1E 03 80 11 00 00 00 00 00 00 9B [22:44:51]Write i2c OK [22:44:51]MH_I2C_Read... [22:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:51]Read from MH i2c: E2 [22:44:51]MH_I2C_Read... [22:44:51]Read from MH i2c: E2 17 00 [22:44:51]MH_I2C_Read... [22:44:51]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 31 37 34 39 90 00 F2 [22:44:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [22:44:51]wFMCommunicate OK [22:44:51]CreateOFDProtocolMessage done [22:44:51]OFDSenderStorePacket 69835 [22:44:51]StoreOFDPacket docnum=69835 [22:44:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 42 01 00 00 7E FD 3A 01 AB 78 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 E2 87 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CB 10 01 00 35 04 06 00 60 8D EB 8B FF 8D C2 3C 23 DB 62 45 9C 81 [22:44:51]CheckFolder [22:44:51]dirname=/storage/ofd_packets [22:44:51]CheckFolder done [22:44:51]ProducePacketName [22:44:51]name=ofd_packets/00069835 [22:44:51]NVStorageSaveData ofd_packets/00069835 [22:44:51]File name is /storage/ofd_packets/00069835 [22:44:51]Write 352 bytes [22:44:51]NVStorageSaveData done [22:44:51]OFDSenderStorePacket done [22:44:51]KKMCreateOFDPacket done [22:44:51]NVStorageSaveData kkm_last_timestamp [22:44:51]File name is /storage/kkm_last_timestamp [22:44:51]Write 4 bytes [22:44:51]NVStorageSaveData done [22:44:51]ExternCall_PrintAddStr [22:44:51]wPrintStart [22:44:51]Write to MH i2c: 01 00 00 1F 03 22 [22:44:51]Write i2c OK [22:44:51]MH_I2C_Read... [22:44:51]Read from MH i2c: 01 [22:44:51]MH_I2C_Read... [22:44:51]Read from MH i2c: 01 07 00 [22:44:51]MH_I2C_Read... [22:44:51]Read from MH i2c: 01 07 00 1F 03 00 00 00 00 00 FF 0F 37 [22:44:51]RasterBufferAndPrint [22:44:51]line Счет N : (3)127233 [22:44:51]line ИНН: 02508201610067 [22:44:51]line Контрольно-Кассовый Чек [22:44:51]line ПРОДАЖА [22:44:51]line Товар: 4870001571030 [22:44:51]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [22:44:51]line 1.000 * 84.00 [22:44:51]line = 84.00 [22:44:51]line НДС 12% НСП 1% [22:44:51]line > о реализуемом товаре [22:44:51]line ИТОГО: 84.00 [22:44:51]line НСП 1% : 0.74 [22:44:51]line НДС 12% : 8.92 [22:44:51]line Наличными: 84.00 [22:44:51]line Безнал.: 0.00 [22:44:51]line Место: АЗС № 163 "Партнер Нефть" [22:44:51]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [22:44:51]line СНО: Общий режим [22:44:51]line Чек 125 20.10.2024 22:44 [22:44:51]line Смена: 526 ФФД: 1.0 [22:44:51]line ЗНМ: 0300000101 [22:44:51]line РНМ: 0000000000091770 [22:44:51]line Версия ККМ: 001 [22:44:51]line ФМ: 0000000000871749 [22:44:51]line ФД: 69835 [22:44:51]line ФПД: 106162658475917 [22:44:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T224450&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69835&fm=106162658475917&tin=02508201610067®Number=0000000000091770&sum=8400 [22:44:51]line 0 [22:44:51]OFD Sender: Processing packet 69835 [packets to send 32, broken 31] [22:44:51]ProducePacketName [22:44:51]name=ofd_packets/00069835 [22:44:51]OFD Sender: To server: pG, [22:44:51]CommunicateWithHost lk.salyk.kg:30040 [22:44:51]ConnectInit lk.salyk.kg [22:44:51]written 0, free lines is 4095 [22:44:51]Connected sock=10 [22:44:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 42 01 00 00 7E FD 3A 01 AB 78 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 E2 87 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CB 10 01 00 35 04 06 00 60 8D EB 8B FF 8D C2 3C 23 DB 62 45 9C 81 [22:44:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 FA D9 47 00 66 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CB 10 01 00 F4 03 04 00 64 2D 15 67 B6 04 01 00 00 42 EF 7D B6 03 8F 3C 30 [22:44:51]CommunicateWithHost err = 0 [22:44:51]CheckOFDResponse [22:44:51]1017 (14) - 77093643461234 [22:44:51]1041 (16) - 0000000000871749 [22:44:51]1040 (4) - 69835 [22:44:51]1012 (4) - 20.10.2024 16:18 [22:44:51]1206 (1) - 0 [22:44:51]OFD Sender: Remove packet 69835 [22:44:51]ProducePacketName [22:44:51]name=ofd_packets/00069835 [22:44:51]NVStorageDeleteData [22:44:52]Write to MH i2c: 01 00 00 48 03 4B [22:44:52]Write i2c OK [22:44:52]MH_I2C_Read... [22:44:52]Read from MH i2c: 01 [22:44:52]MH_I2C_Read... [22:44:52]Read from MH i2c: 01 07 00 [22:44:52]MH_I2C_Read... [22:44:52]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 F4 0C 52 [22:44:52]RasterBufferAndPrint [22:44:52]line [22:44:52]line [22:44:52]line [22:44:52]line [22:44:52]line [22:44:52]written 0, free lines is 3322 [22:44:52]MH_Cut [22:44:52]Write to MH i2c: D1 01 00 4F 03 01 24 [22:44:52]Write i2c OK [22:44:52]MH_I2C_Read... [22:44:52]Read from MH i2c: D1 [22:44:52]MH_I2C_Read... [22:44:52]Read from MH i2c: D1 01 00 [22:44:52]MH_I2C_Read... [22:44:52]Read from MH i2c: D1 01 00 4F 03 00 23 [22:44:52]Write to MH i2c: 01 00 00 50 03 53 [22:44:52]Write i2c OK [22:44:52]MH_I2C_Read... [22:44:52]OFD Sender: No OFD packet to send [22:44:52]*** Cut start [22:44:52]*** Partial cut [22:44:52]*** CUTSNS_PIN = 1 [22:44:52]*** CUTSNS_PIN = 0 [22:44:53]*** Brake cut motor [22:44:53]Read from MH i2c: 01 [22:44:53]MH_I2C_Read... [22:44:53]*** Stop cut motor [22:44:53]*** Cut end [22:44:53]Read from MH i2c: 01 07 00 [22:44:53]MH_I2C_Read... [22:44:53]Read from MH i2c: 01 07 00 50 03 00 00 00 00 00 FF 0F 68 [22:44:53]process_action close_receipt done [22:44:53]requested_data is exist [22:44:53]produce_requested_data [22:44:53]requested_item fm.sn is exist - process it [22:44:53]wFMCommunicate request_size=4 [22:44:53]MH_SAM_APDU [22:44:53]CAPDU: 80 11 00 00 [22:44:53]Write to MH i2c: E2 08 00 51 03 80 11 00 00 00 00 00 00 CE [22:44:53]Write i2c OK [22:44:53]MH_I2C_Read... [22:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:53]Read from MH i2c: E2 [22:44:53]MH_I2C_Read... [22:44:53]Read from MH i2c: E2 17 00 [22:44:53]MH_I2C_Read... [22:44:53]Read from MH i2c: E2 17 00 51 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 25 [22:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [22:44:53]wFMCommunicate OK [22:44:53]requested_item fd.num is exist - process it [22:44:53]SAM_PROTO_GetFieldsCounters [22:44:53]wFMCommunicate request_size=4 [22:44:53]MH_SAM_APDU [22:44:53]CAPDU: 80 13 00 00 [22:44:53]Write to MH i2c: E2 08 00 52 03 80 13 00 00 00 00 00 00 D1 [22:44:53]Write i2c OK [22:44:53]MH_I2C_Read... [22:44:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:53]Read from MH i2c: E2 [22:44:53]MH_I2C_Read... [22:44:53]Read from MH i2c: E2 62 00 [22:44:53]MH_I2C_Read... [22:44:53]Read from MH i2c: E2 62 00 52 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CB 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [22:44: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CB 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:53]wFMCommunicate OK [22:44:53]SAM_PROTO_GetFieldsCounters done [22:44:53]requested_item shift.num is exist - process it [22:44:53]requested_item shift.opened is exist - process it [22:44:53]req_shift_opened [22:44:53]FM_GetShiftState [22:44:53]SAM_PROTO_GetShiftState [22:44:53]wFMCommunicate request_size=4 [22:44:53]MH_SAM_APDU [22:44:53]CAPDU: 80 13 01 00 [22:44:53]Write to MH i2c: E2 08 00 53 03 80 13 01 00 00 00 00 00 D3 [22:44:53]Write i2c OK [22:44:53]MH_I2C_Read... [22:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:53]Read from MH i2c: E2 [22:44:53]MH_I2C_Read... [22:44:53]Read from MH i2c: E2 0E 00 [22:44:53]MH_I2C_Read... [22:44:53]Read from MH i2c: E2 0E 00 53 03 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 65 [22:44:53]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [22:44:53]wFMCommunicate OK [22:44:53]SAM_PROTO_GetShiftState done [22:44:53]FM_GetShiftState done [22:44:53]req_shift_opened done [22:44:53]requested_item shift.open_date is exist - process it [22:44:53]req_shift_open_date [22:44:53]req_shift_open_date done [22:44:53]produce_requested_data done [22:44:53]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69835,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [22:44:53]process_action_free close_receipt [22:44:53]json_value_free [22:44:53]json_value_free done [22:44:53]process_json_proto returns [22:44:53]Send response to host [22:44:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69835,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [22:44:53]free response buf [22:44:53]execute_script done [22:44:53]execute_script returns [22:44:53]free content buf [22:44:53]Sock 9.Close socket [22:44:53]Sock 9.Thread stoped [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:07]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]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:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:19]accept exits with 7 [22:55:19]New connection [22:55:19]New thread 3066641764 created [22:55:19]Thread 3066785124 joined [22:55:19]Waiting for new connection... [22:55:19] Sock 7.Parse request [22:55:19]Sock 7.Check first char [22:55:19]Sock 7.First char is OK [22:55:19]request: POST /json_proto HTTP/1.0 [22:55:19]Method: POST [22:55:19]URL: /json_proto [22:55:19]Method is POST - this is cgi request [22:55:19]url: /json_proto [22:55:19]query_string will be loaded in cgi processing [22:55:19]execute_cgi json_proto POST (null) [22:55:19]execute_cgi path=json_proto method=POST [22:55:19]POST find Content-Length [22:55:19]Host: 172.17.52.196:8080 [22:55:19]Content-Length: 947 [22:55:19]Content-Type: application/json [22:55:19] [22:55:19]POST finish read [22:55:19]Found Content-Length = 947 [22:55:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127234", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003428", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:19]execute_script... [22:55:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127234", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003428", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:19]POST & json_proto [22:55:19]process_json_proto [22:55:19]json parsed OK: [22:55:19]protocol is kg_v1.0 [22:55:19]action value=close_receipt [22:55:19]process_action close_receipt [22:55:19]cmd_close_receipt [22:55:19]MH_GetDate [22:55:19]Write to MH i2c: F0 00 00 54 03 46 [22:55:19]Write i2c OK [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: F0 [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: F0 09 00 [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: F0 09 00 54 03 00 58 8A 15 67 60 05 E4 66 5C [22:55:19]GetLastDocTimeStamp 1729464290 [22:55:19]current date 1729464920 [22:55:19]FM_GetShiftState [22:55:19]SAM_PROTO_GetShiftState [22:55:19]wFMCommunicate request_size=4 [22:55:19]MH_SAM_APDU [22:55:19]CAPDU: 80 13 01 00 [22:55:19]Write to MH i2c: E2 08 00 55 03 80 13 01 00 00 00 00 00 D5 [22:55:19]Write i2c OK [22:55:19]MH_I2C_Read... [22:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:19]Read from MH i2c: E2 [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: E2 0E 00 [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: E2 0E 00 55 03 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 67 [22:55:19]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [22:55:19]wFMCommunicate OK [22:55:19]SAM_PROTO_GetShiftState done [22:55:19]FM_GetShiftState done [22:55:19]opened in 1729384380 [22:55:19]opened+sec_in_day 1729470780 [22:55:19]quantity*price = 9500 [22:55:19]sum+1 = 9501 [22:55:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870022003428 Gorilla эн нап Orange 0,45 ж/б 1.000 * 99.00 = 99.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 194.00 НСП 1% : 1.72 НДС 12% : 20.60 Наличными: 194.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 126 20.10.2024 22:55 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69836 ФПД: 191774979080875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T225520&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69836&fm=191774979080875&tin=02508201610067®Number=0000000000091770&sum=19400 0 [22:55:20]StoreToDocumentArchive [22:55:20]shift 526 fd 69836 [22:55:20]save to /storage/0526/doc_00069836 [22:55:20]save last doc name /storage/0526/doc_00069836 to /storage/kkm_last_doc_name [22:55:20]save OK [22:55:20]Clear old archive folders... [22:55:20]ProcessDocumentItem done err = 0, tmpTLVsize=413 [22:55:20]tlvbuf is 017B2730 [22:55:20]SAM_PROTO_ClearQueue [22:55:20]wFMCommunicate request_size=4 [22:55:20]MH_SAM_APDU [22:55:20]CAPDU: 80 09 00 00 [22:55:20]Write to MH i2c: E2 08 00 62 03 80 09 00 00 00 00 00 00 D7 [22:55:20]Write i2c OK [22:55:20]MH_I2C_Read... [22:55:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:55:20]Read from MH i2c: E2 [22:55:20]MH_I2C_Read... [22:55:20]Read from MH i2c: E2 03 00 [22:55:20]MH_I2C_Read... [22:55:20]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [22:55:20]RAPDU: 90 00 [22:55:20]wFMCommunicate OK [22:55:20]SAM_PROTO_ClearQueue done [22:55:20]KKMCreateOFDPacket [22:55:20]OFDProtocolAddRootSTLVToBuf [22:55:20]FM_MakeSignedData [22:55:20]FM_MakeSignedData [22:55:20]SAM_PROTO_SignData [22:55:20]wFMCommunicate request_size=4 [22:55:20]MH_SAM_APDU [22:55:20]CAPDU: 80 0D 01 02 [22:55:20]Write to MH i2c: E2 08 00 63 03 80 0D 01 02 00 00 00 00 DF [22:55:20]Write i2c OK [22:55:20]MH_I2C_Read... [22:55:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:55:20]Read from MH i2c: E2 [22:55:20]MH_I2C_Read... [22:55:20]Read from MH i2c: E2 03 00 [22:55:20]MH_I2C_Read... [22:55:20]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [22:55:20]RAPDU: 90 00 [22:55:20]wFMCommunicate OK [22:55:20]wFMCommunicate request_size=255 [22:55:20]MH_SAM_APDU [22:55:20]CAPDU: 80 0D 02 02 FA 03 00 9D 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 34 32 38 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [22:55:20]Write to MH i2c: E2 02 01 64 03 80 0D 02 02 FA 00 03 00 9D 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 34 32 38 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 43 [22:55:20]Write i2c OK [22:55:20]MH_I2C_Read... [22:55:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:21]Read from MH i2c: E2 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 03 00 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [22:55:21]RAPDU: 90 00 [22:55:21]wFMCommunicate OK [22:55:21]wFMCommunicate request_size=172 [22:55:21]MH_SAM_APDU [22:55:21]CAPDU: 80 0D 02 02 A7 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 58 8A 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CC 10 01 00 35 04 06 00 AE 6B 17 81 42 AB [22:55:21]Write to MH i2c: E2 AF 00 65 03 80 0D 02 02 A7 00 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 58 8A 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CC 10 01 00 35 04 06 00 AE 6B 17 81 42 AB 00 00 C3 [22:55:21]Write i2c OK [22:55:21]MH_I2C_Read... [22:55:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:21]Read from MH i2c: E2 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 03 00 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [22:55:21]RAPDU: 90 00 [22:55:21]wFMCommunicate OK [22:55:21]wFMCommunicate request_size=4 [22:55:21]MH_SAM_APDU [22:55:21]CAPDU: 80 0D 03 02 [22:55:21]Write to MH i2c: E2 08 00 66 03 80 0D 03 02 00 00 00 00 E4 [22:55:21]Write i2c OK [22:55:21]MH_I2C_Read... [22:55:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:55:21]Read from MH i2c: E2 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 0B 00 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 0B 00 66 03 00 15 03 1A 14 B7 12 F9 34 90 00 21 [22:55:21]RAPDU: 15 03 1A 14 B7 12 F9 34 90 00 [22:55:21]wFMCommunicate OK [22:55:21]SAM_PROTO_SignData done [22:55:21]FM_MakeSignedData done [22:55:21]CreateOFDProtocolMessage [22:55:21]wFMCommunicate request_size=4 [22:55:21]MH_SAM_APDU [22:55:21]CAPDU: 80 11 00 00 [22:55:21]Write to MH i2c: E2 08 00 67 03 80 11 00 00 00 00 00 00 E4 [22:55:21]Write i2c OK [22:55:21]MH_I2C_Read... [22:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:21]Read from MH i2c: E2 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 17 00 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 17 00 67 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 3B [22:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [22:55:21]wFMCommunicate OK [22:55:21]CreateOFDProtocolMessage done [22:55:21]OFDSenderStorePacket 69836 [22:55:21]StoreOFDPacket docnum=69836 [22:55:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 B1 01 00 00 18 E6 A9 01 37 41 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 34 32 38 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 58 8A 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CC 10 01 00 35 04 06 00 AE 6B 17 81 42 AB 15 03 1A 14 B7 12 F9 34 [22:55:21]CheckFolder [22:55:21]dirname=/storage/ofd_packets [22:55:21]CheckFolder done [22:55:21]ProducePacketName [22:55:21]name=ofd_packets/00069836 [22:55:21]NVStorageSaveData ofd_packets/00069836 [22:55:21]File name is /storage/ofd_packets/00069836 [22:55:21]Write 463 bytes [22:55:21]NVStorageSaveData done [22:55:21]OFDSenderStorePacket done [22:55:21]KKMCreateOFDPacket done [22:55:21]NVStorageSaveData kkm_last_timestamp [22:55:21]File name is /storage/kkm_last_timestamp [22:55:21]Write 4 bytes [22:55:21]NVStorageSaveData done [22:55:21]ExternCall_PrintAddStr [22:55:21]wPrintStart [22:55:21]Write to MH i2c: 01 00 00 68 03 6B [22:55:21]Write i2c OK [22:55:21]MH_I2C_Read... [22:55:21]OFD Sender: Processing packet 69836 [packets to send 32, broken 31] [22:55:21]Read from MH i2c: ProducePacketName [22:55:21]01 name=ofd_packets/00069836 [22:55:21] [22:55:21]MH_I2C_Read... [22:55:21]OFD Sender: To server: pG, [22:55:21]CommunicateWithHost lk.salyk.kg:30040 [22:55:21]Read from MH i2c: ConnectInit lk.salyk.kg [22:55:21]01 07 00 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: 01 07 00 68 03 00 00 00 00 00 FF 0F 80 [22:55:21]RasterBufferAndPrint [22:55:21]line Счет N : (3)127234 [22:55:21]line ИНН: 02508201610067 [22:55:21]line Контрольно-Кассовый Чек [22:55:21]line ПРОДАЖА [22:55:21]line Товар: 4700000480302 [22:55:21]line Напиток энерг Nitro манго-клуб 0.45 ж/б [22:55:21]line 1.000 * 95.00 [22:55:21]line = 95.00 [22:55:21]line НДС 12% НСП 1% [22:55:21]line > о реализуемом товаре [22:55:21]line Товар: 4870022003428 [22:55:21]line Gorilla эн нап Orange 0,45 ж/б [22:55:21]line 1.000 * 99.00 [22:55:21]line = 99.00 [22:55:21]line НДС 12% НСП 1% [22:55:21]line > о реализуемом товаре [22:55:21]line ИТОГО: 194.00 [22:55:21]line НСП 1% : 1.72 [22:55:21]line НДС 12% : 20.60 [22:55:21]line Наличными: 194.00 [22:55:21]line Безнал.: 0.00 [22:55:21]line Место: АЗС № 163 "Партнер Нефть" [22:55:21]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [22:55:21]line СНО: Общий режим [22:55:21]line Чек 126 20.10.2024 22:55 [22:55:21]line Смена: 526 ФФД: 1.0 [22:55:21]line ЗНМ: 0300000101 [22:55:21]line РНМ: 0000000000091770 [22:55:21]line Версия ККМ: 001 [22:55:21]line ФМ: 0000000000871749 [22:55:21]line ФД: 69836 [22:55:21]line ФПД: 191774979080875 [22:55:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T225520&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69836&fm=191774979080875&tin=02508201610067®Number=0000000000091770&sum=19400 [22:55:21]line 0 [22:55:21]written 0, free lines is 4095 [22:55:21]Connected sock=11 [22:55:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 B1 01 00 00 18 E6 A9 01 37 41 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 34 32 38 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 58 8A 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CC 10 01 00 35 04 06 00 AE 6B 17 81 42 AB 15 03 1A 14 B7 12 F9 34 [22:55:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 4F C3 47 00 2A 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CC 10 01 00 F4 03 04 00 DA 2F 15 67 B6 04 01 00 00 49 AE 8B 57 B6 D4 AE 84 [22:55:22]CommunicateWithHost err = 0 [22:55:22]CheckOFDResponse [22:55:22]1017 (14) - 77093643461234 [22:55:22]1041 (16) - 0000000000871749 [22:55:22]1040 (4) - 69836 [22:55:22]1012 (4) - 20.10.2024 16:29 [22:55:22]1206 (1) - 0 [22:55:22]OFD Sender: Remove packet 69836 [22:55:22]ProducePacketName [22:55:22]name=ofd_packets/00069836 [22:55:22]NVStorageDeleteData [22:55:22]Write to MH i2c: 01 00 00 97 03 9A [22:55:22]Write i2c OK [22:55:22]MH_I2C_Read... [22:55:22]Read from MH i2c: 01 [22:55:22]MH_I2C_Read... [22:55:22]Read from MH i2c: 01 07 00 [22:55:22]MH_I2C_Read... [22:55:22]Read from MH i2c: 01 07 00 97 03 00 00 00 00 00 95 0C 42 [22:55:22]RasterBufferAndPrint [22:55:22]line [22:55:22]line [22:55:22]line [22:55:22]line [22:55:22]line [22:55:22]written 0, free lines is 3227 [22:55:22]MH_Cut [22:55:22]Write to MH i2c: D1 01 00 9E 03 01 73 [22:55:22]Write i2c OK [22:55:22]MH_I2C_Read... [22:55:22]Read from MH i2c: D1 [22:55:22]MH_I2C_Read... [22:55:22]Read from MH i2c: D1 01 00 [22:55:22]MH_I2C_Read... [22:55:22]Read from MH i2c: D1 01 00 9E 03 00 72 [22:55:22]Write to MH i2c: 01 00 00 9F 03 A2 [22:55:22]Write i2c OK [22:55:22]MH_I2C_Read... [22:55:22]OFD Sender: No OFD packet to send [22:55:23]*** Cut start [22:55:23]*** Partial cut [22:55:23]*** CUTSNS_PIN = 1 [22:55:23]*** CUTSNS_PIN = 0 [22:55:23]*** Brake cut motor [22:55:23]Read from MH i2c: 01 [22:55:23]MH_I2C_Read... [22:55:23]*** Stop cut motor [22:55:23]*** Cut end [22:55:23]Read from MH i2c: 01 07 00 [22:55:23]MH_I2C_Read... [22:55:23]Read from MH i2c: 01 07 00 9F 03 00 00 00 00 00 FF 0F B7 [22:55:23]process_action close_receipt done [22:55:23]requested_data is exist [22:55:23]produce_requested_data [22:55:23]requested_item fm.sn is exist - process it [22:55:23]wFMCommunicate request_size=4 [22:55:23]MH_SAM_APDU [22:55:23]CAPDU: 80 11 00 00 [22:55:23]Write to MH i2c: E2 08 00 A0 03 80 11 00 00 00 00 00 00 1D [22:55:23]Write i2c OK [22:55:23]MH_I2C_Read... [22:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:23]Read from MH i2c: E2 [22:55:23]MH_I2C_Read... [22:55:23]Read from MH i2c: E2 17 00 [22:55:23]MH_I2C_Read... [22:55:23]Read from MH i2c: E2 17 00 A0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 74 [22:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [22:55:23]wFMCommunicate OK [22:55:23]requested_item fd.num is exist - process it [22:55:23]SAM_PROTO_GetFieldsCounters [22:55:23]wFMCommunicate request_size=4 [22:55:23]MH_SAM_APDU [22:55:23]CAPDU: 80 13 00 00 [22:55:23]Write to MH i2c: E2 08 00 A1 03 80 13 00 00 00 00 00 00 20 [22:55:23]Write i2c OK [22:55:23]MH_I2C_Read... [22:55:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:24]Read from MH i2c: E2 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: E2 62 00 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: E2 62 00 A1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CC 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [22:55:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CC 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:55:24]wFMCommunicate OK [22:55:24]SAM_PROTO_GetFieldsCounters done [22:55:24]requested_item shift.num is exist - process it [22:55:24]requested_item shift.opened is exist - process it [22:55:24]req_shift_opened [22:55:24]FM_GetShiftState [22:55:24]SAM_PROTO_GetShiftState [22:55:24]wFMCommunicate request_size=4 [22:55:24]MH_SAM_APDU [22:55:24]CAPDU: 80 13 01 00 [22:55:24]Write to MH i2c: E2 08 00 A2 03 80 13 01 00 00 00 00 00 22 [22:55:24]Write i2c OK [22:55:24]MH_I2C_Read... [22:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:24]Read from MH i2c: E2 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: E2 0E 00 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: E2 0E 00 A2 03 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 B4 [22:55:24]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [22:55:24]wFMCommunicate OK [22:55:24]SAM_PROTO_GetShiftState done [22:55:24]FM_GetShiftState done [22:55:24]req_shift_opened done [22:55:24]requested_item shift.open_date is exist - process it [22:55:24]req_shift_open_date [22:55:24]req_shift_open_date done [22:55:24]produce_requested_data done [22:55:24]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69836,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [22:55:24]process_action_free close_receipt [22:55:24]json_value_free [22:55:24]json_value_free done [22:55:24]process_json_proto returns [22:55:24]Send response to host [22:55:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69836,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [22:55:24]free response buf [22:55:24]execute_script done [22:55:24]execute_script returns [22:55:24]free content buf [22:55:24]Sock 7.Close socket [22:55:24]Sock 7.Thread stoped [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:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:53]OFD Sender: No OFD packet to send [23:03:58]OFD Sender: No OFD packet to send [23:04:03]OFD Sender: No OFD packet to send [23:04:08]OFD Sender: No OFD packet to send [23:04:13]OFD Sender: No OFD packet to send [23:04:18]OFD Sender: No OFD packet to send [23:04:23]OFD Sender: No OFD packet to send [23:04:28]OFD Sender: No OFD packet to send [23:04:33]OFD Sender: No OFD packet to send [23:04:38]OFD Sender: No OFD packet to send [23:04:43]OFD Sender: No OFD packet to send [23:04:48]OFD Sender: No OFD packet to send [23:04:53]OFD Sender: No OFD packet to send [23:04:58]OFD Sender: No OFD packet to send [23:05:03]OFD Sender: No OFD packet to send [23:05:08]OFD Sender: No OFD packet to send [23:05:13]OFD Sender: No OFD packet to send [23:05:18]OFD Sender: No OFD packet to send [23:05:23]OFD Sender: No OFD packet to send [23:05:28]OFD Sender: No OFD packet to send [23:05:33]OFD Sender: No OFD packet to send [23:05:38]OFD Sender: No OFD packet to send [23:05:43]OFD Sender: No OFD packet to send [23:05:48]OFD Sender: No OFD packet to send [23:05:53]OFD Sender: No OFD packet to send [23:05:58]OFD Sender: No OFD packet to send [23:06:03]OFD Sender: No OFD packet to send [23:06:08]OFD Sender: No OFD packet to send [23:06:13]OFD Sender: No OFD packet to send [23:06:18]OFD Sender: No OFD packet to send [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]OFD Sender: No OFD packet to send [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:53]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:53]OFD Sender: No OFD packet to send [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:53]OFD Sender: No OFD packet to send [23:18:58]OFD Sender: No OFD packet to send [23:19:03]OFD Sender: No OFD packet to send [23:19:08]OFD Sender: No OFD packet to send [23:19:13]OFD Sender: No OFD packet to send [23:19:18]OFD Sender: No OFD packet to send [23:19:23]OFD Sender: No OFD packet to send [23:19:28]OFD Sender: No OFD packet to send [23:19:33]OFD Sender: No OFD packet to send [23:19:38]OFD Sender: No OFD packet to send [23:19:43]OFD Sender: No OFD packet to send [23:19:48]OFD Sender: No OFD packet to send [23:19:53]OFD Sender: No OFD packet to send [23:19:58]OFD Sender: No OFD packet to send [23:20:03]OFD Sender: No OFD packet to send [23:20:08]OFD Sender: No OFD packet to send [23:20:13]OFD Sender: No OFD packet to send [23:20:18]OFD Sender: No OFD packet to send [23:20:23]OFD Sender: No OFD packet to send [23:20:28]OFD Sender: No OFD packet to send [23:20:33]OFD Sender: No OFD packet to send [23:20:38]OFD Sender: No OFD packet to send [23:20:43]OFD Sender: No OFD packet to send [23:20:48]OFD Sender: No OFD packet to send [23:20:53]OFD Sender: No OFD packet to send [23:20:58]OFD Sender: No OFD packet to send [23:21:03]OFD Sender: No OFD packet to send [23:21:08]OFD Sender: No OFD packet to send [23:21:13]OFD Sender: No OFD packet to send [23:21:18]OFD Sender: No OFD packet to send [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:03]OFD Sender: No OFD packet to send [23:22:08]OFD Sender: No OFD packet to send [23:22:13]OFD Sender: No OFD packet to send [23:22:18]OFD Sender: No OFD packet to send [23:22:23]OFD Sender: No OFD packet to send [23:22:28]OFD Sender: No OFD packet to send [23:22:33]OFD Sender: No OFD packet to send [23:22:38]OFD Sender: No OFD packet to send [23:22:43]OFD Sender: No OFD packet to send [23:22:48]OFD Sender: No OFD packet to send [23:22:53]OFD Sender: No OFD packet to send [23:22:58]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:39]OFD Sender: No OFD packet to send [23:26:44]OFD Sender: No OFD packet to send [23:26:49]OFD Sender: No OFD packet to send [23:26:54]OFD Sender: No OFD packet to send [23:26:59]OFD Sender: No OFD packet to send [23:27:04]OFD Sender: No OFD packet to send [23:27:09]OFD Sender: No OFD packet to send [23:27:14]OFD Sender: No OFD packet to send [23:27:19]OFD Sender: No OFD packet to send [23:27:24]OFD Sender: No OFD packet to send [23:27:29]OFD Sender: No OFD packet to send [23:27:34]OFD Sender: No OFD packet to send [23:27:39]OFD Sender: No OFD packet to send [23:27:44]OFD Sender: No OFD packet to send [23:27:49]OFD Sender: No OFD packet to send [23:27:54]OFD Sender: No OFD packet to send [23:27:59]OFD Sender: No OFD packet to send [23:28:04]OFD Sender: No OFD packet to send [23:28:09]OFD Sender: No OFD packet to send [23:28:14]OFD Sender: No OFD packet to send [23:28:19]OFD Sender: No OFD packet to send [23:28:24]OFD Sender: No OFD packet to send [23:28:29]OFD Sender: No OFD packet to send [23:28:34]OFD Sender: No OFD packet to send [23:28:39]OFD Sender: No OFD packet to send [23:28:44]OFD Sender: No OFD packet to send [23:28:49]OFD Sender: No OFD packet to send [23:28:54]OFD Sender: No OFD packet to send [23:28:59]OFD Sender: No OFD packet to send [23:29:04]OFD Sender: No OFD packet to send [23:29:09]OFD Sender: No OFD packet to send [23:29:14]OFD Sender: No OFD packet to send [23:29:19]OFD Sender: No OFD packet to send [23:29:24]OFD Sender: No OFD packet to send [23:29:29]OFD Sender: No OFD packet to send [23:29:34]OFD Sender: No OFD packet to send [23:29:39]OFD Sender: No OFD packet to send [23:29:44]OFD Sender: No OFD packet to send [23:29:49]OFD Sender: No OFD packet to send [23:29:54]OFD Sender: No OFD packet to send [23:29:59]OFD Sender: No OFD packet to send [23:30:04]OFD Sender: No OFD packet to send [23:30:09]OFD Sender: No OFD packet to send [23:30:14]OFD Sender: No OFD packet to send [23:30:19]OFD Sender: No OFD packet to send [23:30:24]OFD Sender: No OFD packet to send [23:30:29]OFD Sender: No OFD packet to send [23:30:34]OFD Sender: No OFD packet to send [23:30:39]OFD Sender: No OFD packet to send [23:30:44]OFD Sender: No OFD packet to send [23:30:49]OFD Sender: No OFD packet to send [23:30:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:29]OFD Sender: No OFD packet to send [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:34]OFD Sender: No OFD packet to send [23:33:39]OFD Sender: No OFD packet to send [23:33:44]OFD Sender: No OFD packet to send [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:44]OFD Sender: No OFD packet to send [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:14]OFD Sender: No OFD packet to send [23:41:19]OFD Sender: No OFD packet to send [23:41:24]OFD Sender: No OFD packet to send [23:41:29]OFD Sender: No OFD packet to send [23:41:34]OFD Sender: No OFD packet to send [23:41:39]OFD Sender: No OFD packet to send [23:41:44]OFD Sender: No OFD packet to send [23:41:49]OFD Sender: No OFD packet to send [23:41:54]OFD Sender: No OFD packet to send [23:41:59]OFD Sender: No OFD packet to send [23:42:04]OFD Sender: No OFD packet to send [23:42:09]OFD Sender: No OFD packet to send [23:42:14]OFD Sender: No OFD packet to send [23:42:19]OFD Sender: No OFD packet to send [23:42:24]OFD Sender: No OFD packet to send [23:42:29]OFD Sender: No OFD packet to send [23:42:34]OFD Sender: No OFD packet to send [23:42:39]OFD Sender: No OFD packet to send [23:42:44]OFD Sender: No OFD packet to send [23:42:49]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:02]accept exits with 9 [23:47:02]New connection [23:47:02]New thread 3066785124 created [23:47:02]Thread 3066641764 joined [23:47:02]Waiting for new connection... [23:47:02] Sock 9.Parse request [23:47:02]Sock 9.Check first char [23:47:02]Sock 9.First char is OK [23:47:02]request: POST /json_proto HTTP/1.0 [23:47:02]Method: POST [23:47:02]URL: /json_proto [23:47:02]Method is POST - this is cgi request [23:47:02]url: /json_proto [23:47:02]query_string will be loaded in cgi processing [23:47:02]execute_cgi json_proto POST (null) [23:47:02]execute_cgi path=json_proto method=POST [23:47:02]POST find Content-Length [23:47:02]Host: 172.17.52.196:8080 [23:47:02]Content-Length: 621 [23:47:02]Content-Type: application/json [23:47:02] [23:47:02]POST finish read [23:47:02]Found Content-Length = 621 [23:47:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127235", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:02]execute_script... [23:47:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127235", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:02]POST & json_proto [23:47:02]process_json_proto [23:47:02]json parsed OK: [23:47:02]protocol is kg_v1.0 [23:47:02]action value=close_receipt [23:47:02]process_action close_receipt [23:47:02]cmd_close_receipt [23:47:02]MH_GetDate [23:47:02]Write to MH i2c: F0 00 00 A3 03 95 [23:47:02]Write i2c OK [23:47:02]MH_I2C_Read... [23:47:02]Read from MH i2c: F0 [23:47:02]MH_I2C_Read... [23:47:02]Read from MH i2c: F0 09 00 [23:47:02]MH_I2C_Read... [23:47:02]Read from MH i2c: F0 09 00 A3 03 00 77 96 15 67 60 05 E4 66 D6 [23:47:02]GetLastDocTimeStamp 1729464920 [23:47:02]current date 1729468023 [23:47:02]FM_GetShiftState [23:47:02]SAM_PROTO_GetShiftState [23:47:02]wFMCommunicate request_size=4 [23:47:02]MH_SAM_APDU [23:47:02]CAPDU: 80 13 01 00 [23:47:02]Write to MH i2c: E2 08 00 A4 03 80 13 01 00 00 00 00 00 24 [23:47:02]Write i2c OK [23:47:02]MH_I2C_Read... [23:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:02]Read from MH i2c: E2 [23:47:02]MH_I2C_Read... [23:47:02]Read from MH i2c: E2 0E 00 [23:47:02]MH_I2C_Read... [23:47:02]Read from MH i2c: E2 0E 00 A4 03 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 B6 [23:47:02]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [23:47:02]wFMCommunicate OK [23:47:02]SAM_PROTO_GetShiftState done [23:47:02]FM_GetShiftState done [23:47:02]opened in 1729384380 [23:47:02]opened+sec_in_day 1729470780 [23:47:02]quantity*price = 14400 [23:47:02]sum+1 = 14401 [23:47:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 127 20.10.2024 23:47 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69837 ФПД: 32869179826213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234703&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69837&fm=32869179826213&tin=02508201610067®Number=0000000000091770&sum=14400 0 [23:47:03]StoreToDocumentArchive [23:47:03]shift 526 fd 69837 [23:47:03]save to /storage/0526/doc_00069837 [23:47:03]save last doc name /storage/0526/doc_00069837 to /storage/kkm_last_doc_name [23:47:03]save OK [23:47:03]Clear old archive folders... [23:47:03]ProcessDocumentItem done err = 0, tmpTLVsize=273 [23:47:03]tlvbuf is 017A9280 [23:47:03]SAM_PROTO_ClearQueue [23:47:03]wFMCommunicate request_size=4 [23:47:03]MH_SAM_APDU [23:47:03]CAPDU: 80 09 00 00 [23:47:03]Write to MH i2c: E2 08 00 B1 03 80 09 00 00 00 00 00 00 26 [23:47:03]Write i2c OK [23:47:03]MH_I2C_Read... [23:47:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:03]Read from MH i2c: E2 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: E2 03 00 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [23:47:03]RAPDU: 90 00 [23:47:03]wFMCommunicate OK [23:47:03]SAM_PROTO_ClearQueue done [23:47:03]KKMCreateOFDPacket [23:47:03]OFDProtocolAddRootSTLVToBuf [23:47:03]FM_MakeSignedData [23:47:03]FM_MakeSignedData [23:47:03]SAM_PROTO_SignData [23:47:03]wFMCommunicate request_size=4 [23:47:03]MH_SAM_APDU [23:47:03]CAPDU: 80 0D 01 02 [23:47:03]Write to MH i2c: E2 08 00 B2 03 80 0D 01 02 00 00 00 00 2E [23:47:03]Write i2c OK [23:47:03]MH_I2C_Read... [23:47:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:03]Read from MH i2c: E2 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: E2 03 00 [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: E2 03 00 B2 03 00 90 00 29 [23:47:03]RAPDU: 90 00 [23:47:03]wFMCommunicate OK [23:47:03]wFMCommunicate request_size=255 [23:47:03]MH_SAM_APDU [23:47:03]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 77 96 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [23:47:03]Write to MH i2c: E2 02 01 B3 03 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 77 96 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 AF [23:47:03]Write i2c OK [23:47:03]MH_I2C_Read... [23:47:03]Read from MH i2c: E2 [23:47:03]MH_I2C_Read... [23:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:04]Read from MH i2c: E2 03 00 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: E2 03 00 B3 03 00 90 00 2A [23:47:04]RAPDU: 90 00 [23:47:04]wFMCommunicate OK [23:47:04]wFMCommunicate request_size=32 [23:47:04]MH_SAM_APDU [23:47:04]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 CD 10 01 00 35 04 06 00 1D E4 F3 C9 A0 25 [23:47:04]Write to MH i2c: E2 23 00 B4 03 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 CD 10 01 00 35 04 06 00 1D E4 F3 C9 A0 25 00 00 F2 [23:47:04]Write i2c OK [23:47:04]MH_I2C_Read... [23:47:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:04]Read from MH i2c: E2 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: E2 03 00 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: E2 03 00 B4 03 00 90 00 2B [23:47:04]RAPDU: 90 00 [23:47:04]wFMCommunicate OK [23:47:04]wFMCommunicate request_size=4 [23:47:04]MH_SAM_APDU [23:47:04]CAPDU: 80 0D 03 02 [23:47:04]Write to MH i2c: E2 08 00 B5 03 80 0D 03 02 00 00 00 00 33 [23:47:04]Write i2c OK [23:47:04]MH_I2C_Read... [23:47:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:04]Read from MH i2c: E2 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: E2 0B 00 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: E2 0B 00 B5 03 00 97 C6 71 B4 44 59 71 3C 90 00 00 [23:47:04]RAPDU: 97 C6 71 B4 44 59 71 3C 90 00 [23:47:04]wFMCommunicate OK [23:47:04]SAM_PROTO_SignData done [23:47:04]FM_MakeSignedData done [23:47:04]CreateOFDProtocolMessage [23:47:04]wFMCommunicate request_size=4 [23:47:04]MH_SAM_APDU [23:47:04]CAPDU: 80 11 00 00 [23:47:04]Write to MH i2c: E2 08 00 B6 03 80 11 00 00 00 00 00 00 33 [23:47:04]Write i2c OK [23:47:04]MH_I2C_Read... [23:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:04]Read from MH i2c: E2 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: E2 17 00 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: E2 17 00 B6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 8A [23:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [23:47:04]wFMCommunicate OK [23:47:04]CreateOFDProtocolMessage done [23:47:04]OFDSenderStorePacket 69837 [23:47:04]StoreOFDPacket docnum=69837 [23:47:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 B9 83 1D 01 7A 8E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 77 96 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CD 10 01 00 35 04 06 00 1D E4 F3 C9 A0 25 97 C6 71 B4 44 59 71 3C [23:47:04]CheckFolder [23:47:04]dirname=/storage/ofd_packets [23:47:04]CheckFolder done [23:47:04]ProducePacketName [23:47:04]name=ofd_packets/00069837 [23:47:04]NVStorageSaveData ofd_packets/00069837 [23:47:04]File name is /storage/ofd_packets/00069837 [23:47:04]Write 323 bytes [23:47:04]NVStorageSaveData done [23:47:04]OFDSenderStorePacket done [23:47:04]KKMCreateOFDPacket done [23:47:04]NVStorageSaveData kkm_last_timestamp [23:47:04]File name is /storage/kkm_last_timestamp [23:47:04]Write 4 bytes [23:47:04]NVStorageSaveData done [23:47:04]ExternCall_PrintAddStr [23:47:04]wPrintStart [23:47:04]Write to MH i2c: 01 00 00 B7 03 BA [23:47:04]Write i2c OK [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: 01 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: 01 07 00 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: 01 07 00 B7 03 00 00 00 00 00 FF 0F CF [23:47:04]RasterBufferAndPrint [23:47:04]line Счет N : (3)127235 [23:47:04]line ИНН: 02508201610067 [23:47:04]line Контрольно-Кассовый Чек [23:47:04]line ПРОДАЖА [23:47:04]line Товар: 48743570 [23:47:04]line Сигареты Winston XStyle Blue [23:47:04]line 1.000 * 144.00 [23:47:04]line = 144.00 [23:47:04]line НДС 12% НСП 1% [23:47:04]line > о реализуемом товаре [23:47:04]line ИТОГО: 144.00 [23:47:04]line НСП 1% : 1.27 [23:47:04]line НДС 12% : 15.29 [23:47:04]line Наличными: 144.00 [23:47:04]line Безнал.: 0.00 [23:47:04]line Место: АЗС № 163 "Партнер Нефть" [23:47:04]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [23:47:04]line СНО: Общий режим [23:47:04]line Чек 127 20.10.2024 23:47 [23:47:04]line Смена: 526 ФФД: 1.0 [23:47:04]line ЗНМ: 0300000101 [23:47:04]line РНМ: 0000000000091770 [23:47:04]line Версия ККМ: 001 [23:47:04]line ФМ: 0000000000871749 [23:47:04]line ФД: 69837 [23:47:04]line ФПД: 32869179826213 [23:47:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234703&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69837&fm=32869179826213&tin=02508201610067®Number=0000000000091770&sum=14400 [23:47:04]line 0 [23:47:04]written 0, free lines is 4095 [23:47:04]OFD Sender: Processing packet 69837 [packets to send 32, broken 31] [23:47:04]ProducePacketName [23:47:04]name=ofd_packets/00069837 [23:47:04]OFD Sender: To server: pG, [23:47:04]CommunicateWithHost lk.salyk.kg:30040 [23:47:04]ConnectInit lk.salyk.kg [23:47:04]Connected sock=10 [23:47:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 B9 83 1D 01 7A 8E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 77 96 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CD 10 01 00 35 04 06 00 1D E4 F3 C9 A0 25 97 C6 71 B4 44 59 71 3C [23:47:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 EC 28 47 00 56 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CD 10 01 00 F4 03 04 00 F8 3B 15 67 B6 04 01 00 00 83 9D 72 ED 74 D9 D3 68 [23:47:04]CommunicateWithHost err = 0 [23:47:04]CheckOFDResponse [23:47:04]1017 (14) - 77093643461234 [23:47:04]1041 (16) - 0000000000871749 [23:47:04]1040 (4) - 69837 [23:47:04]1012 (4) - 20.10.2024 17:20 [23:47:04]1206 (1) - 0 [23:47:04]OFD Sender: Remove packet 69837 [23:47:04]ProducePacketName [23:47:04]name=ofd_packets/00069837 [23:47:04]NVStorageDeleteData [23:47:04]Write to MH i2c: 01 00 00 DF 03 E2 [23:47:04]Write i2c OK [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: 01 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: 01 07 00 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: 01 07 00 DF 03 00 00 00 00 00 04 0D FA [23:47:04]RasterBufferAndPrint [23:47:04]line [23:47:04]line [23:47:04]line [23:47:04]line [23:47:04]line [23:47:04]written 0, free lines is 3339 [23:47:04]MH_Cut [23:47:04]Write to MH i2c: D1 01 00 E6 03 01 BB [23:47:04]Write i2c OK [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: D1 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: D1 01 00 [23:47:04]MH_I2C_Read... [23:47:04]Read from MH i2c: D1 01 00 E6 03 00 BA [23:47:04]Write to MH i2c: 01 00 00 E7 03 EA [23:47:04]Write i2c OK [23:47:04]MH_I2C_Read... [23:47:05]OFD Sender: No OFD packet to send [23:47:05]*** Cut start [23:47:05]*** Partial cut [23:47:05]*** CUTSNS_PIN = 1 [23:47:05]*** CUTSNS_PIN = 0 [23:47:05]*** Brake cut motor [23:47:06]Read from MH i2c: 01 [23:47:06]MH_I2C_Read... [23:47:06]*** Stop cut motor [23:47:06]*** Cut end [23:47:06]Read from MH i2c: 01 07 00 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 FF 0F FF [23:47:06]process_action close_receipt done [23:47:06]requested_data is exist [23:47:06]produce_requested_data [23:47:06]requested_item fm.sn is exist - process it [23:47:06]wFMCommunicate request_size=4 [23:47:06]MH_SAM_APDU [23:47:06]CAPDU: 80 11 00 00 [23:47:06]Write to MH i2c: E2 08 00 E8 03 80 11 00 00 00 00 00 00 65 [23:47:06]Write i2c OK [23:47:06]MH_I2C_Read... [23:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:06]Read from MH i2c: E2 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 17 00 [23:47:06]MH_I2C_Read... [23:47:06]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 31 37 34 39 90 00 BC [23:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [23:47:06]wFMCommunicate OK [23:47:06]requested_item fd.num is exist - process it [23:47:06]SAM_PROTO_GetFieldsCounters [23:47:06]wFMCommunicate request_size=4 [23:47:06]MH_SAM_APDU [23:47:06]CAPDU: 80 13 00 00 [23:47:06]Write to MH i2c: E2 08 00 E9 03 80 13 00 00 00 00 00 00 68 [23:47:06]Write i2c OK [23:47:06]MH_I2C_Read... [23:47:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:06]Read from MH i2c: E2 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 62 00 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 62 00 E9 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CD 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [23:47: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CD 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:06]wFMCommunicate OK [23:47:06]SAM_PROTO_GetFieldsCounters done [23:47:06]requested_item shift.num is exist - process it [23:47:06]requested_item shift.opened is exist - process it [23:47:06]req_shift_opened [23:47:06]FM_GetShiftState [23:47:06]SAM_PROTO_GetShiftState [23:47:06]wFMCommunicate request_size=4 [23:47:06]MH_SAM_APDU [23:47:06]CAPDU: 80 13 01 00 [23:47:06]Write to MH i2c: E2 08 00 EA 03 80 13 01 00 00 00 00 00 6A [23:47:06]Write i2c OK [23:47:06]MH_I2C_Read... [23:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:06]Read from MH i2c: E2 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 0E 00 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 0E 00 EA 03 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 FC [23:47:06]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [23:47:06]wFMCommunicate OK [23:47:06]SAM_PROTO_GetShiftState done [23:47:06]FM_GetShiftState done [23:47:06]req_shift_opened done [23:47:06]requested_item shift.open_date is exist - process it [23:47:06]req_shift_open_date [23:47:06]req_shift_open_date done [23:47:06]produce_requested_data done [23:47:06]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69837,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [23:47:06]process_action_free close_receipt [23:47:06]json_value_free [23:47:06]json_value_free done [23:47:06]process_json_proto returns [23:47:06]Send response to host [23:47:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69837,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [23:47:06]free response buf [23:47:06]execute_script done [23:47:06]execute_script returns [23:47:06]free content buf [23:47:06]Sock 9.Close socket [23:47:06]Sock 9.Thread stoped [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:30]OFD Sender: No OFD packet to send [23:48:35]OFD Sender: No OFD packet to send [23:48:40]OFD Sender: No OFD packet to send [23:48:45]OFD Sender: No OFD packet to send [23:48:50]OFD Sender: No OFD packet to send [23:48:55]OFD Sender: No OFD packet to send [23:48:59]accept exits with 7 [23:48:59]New connection [23:48:59]New thread 3066641764 created [23:48:59]Thread 3066785124 joined [23:48:59]Waiting for new connection... [23:48:59] Sock 7.Parse request [23:48:59]Sock 7.Check first char [23:48:59]Sock 7.First char is OK [23:48:59]request: POST /json_proto HTTP/1.0 [23:48:59]Method: POST [23:48:59]URL: /json_proto [23:48:59]Method is POST - this is cgi request [23:48:59]url: /json_proto [23:48:59]query_string will be loaded in cgi processing [23:48:59]execute_cgi json_proto POST (null) [23:48:59]execute_cgi path=json_proto method=POST [23:48:59]POST find Content-Length [23:48:59]Host: 172.17.52.196:8080 [23:48:59]Content-Length: 626 [23:48:59]Content-Type: application/json [23:48:59] [23:48:59]POST finish read [23:48:59]Found Content-Length = 626 [23:48:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127236", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "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:48:59]execute_script... [23:48:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127236", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "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:48:59]POST & json_proto [23:48:59]process_json_proto [23:48:59]json parsed OK: [23:48:59]protocol is kg_v1.0 [23:48:59]action value=close_receipt [23:48:59]process_action close_receipt [23:48:59]cmd_close_receipt [23:48:59]MH_GetDate [23:48:59]Write to MH i2c: F0 00 00 EB 03 DD [23:48:59]Write i2c OK [23:48:59]MH_I2C_Read... [23:48:59]Read from MH i2c: F0 [23:48:59]MH_I2C_Read... [23:48:59]Read from MH i2c: F0 09 00 [23:48:59]MH_I2C_Read... [23:48:59]Read from MH i2c: F0 09 00 EB 03 00 EC 96 15 67 60 05 E4 66 93 [23:48:59]GetLastDocTimeStamp 1729468023 [23:48:59]current date 1729468140 [23:48:59]FM_GetShiftState [23:48:59]SAM_PROTO_GetShiftState [23:48:59]wFMCommunicate request_size=4 [23:48:59]MH_SAM_APDU [23:48:59]CAPDU: 80 13 01 00 [23:48:59]Write to MH i2c: E2 08 00 EC 03 80 13 01 00 00 00 00 00 6C [23:48:59]Write i2c OK [23:48:59]MH_I2C_Read... [23:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:59]Read from MH i2c: E2 [23:48:59]MH_I2C_Read... [23:48:59]Read from MH i2c: E2 0E 00 [23:48:59]MH_I2C_Read... [23:48:59]Read from MH i2c: E2 0E 00 EC 03 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 FE [23:48:59]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [23:48:59]wFMCommunicate OK [23:48:59]SAM_PROTO_GetShiftState done [23:48:59]FM_GetShiftState done [23:48:59]opened in 1729384380 [23:48:59]opened+sec_in_day 1729470780 [23:48:59]quantity*price = 15000 [23:48:59]sum+1 = 15001 [23:48:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 128 20.10.2024 23:49 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69838 ФПД: 131905769571535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234900&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69838&fm=131905769571535&tin=02508201610067®Number=0000000000091770&sum=15000 0 [23:49:00]StoreToDocumentArchive [23:49:00]shift 526 fd 69838 [23:49:00]save to /storage/0526/doc_00069838 [23:49:00]save last doc name /storage/0526/doc_00069838 to /storage/kkm_last_doc_name [23:49:00]save OK [23:49:00]Clear old archive folders... [23:49:00]ProcessDocumentItem done err = 0, tmpTLVsize=278 [23:49:00]tlvbuf is 01795AE0 [23:49:00]SAM_PROTO_ClearQueue [23:49:00]wFMCommunicate request_size=4 [23:49:00]MH_SAM_APDU [23:49:00]CAPDU: 80 09 00 00 [23:49:00]Write to MH i2c: E2 08 00 F9 03 80 09 00 00 00 00 00 00 6E [23:49:00]Write i2c OK [23:49:00]MH_I2C_Read... [23:49:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:00]Read from MH i2c: E2 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: E2 03 00 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [23:49:00]RAPDU: 90 00 [23:49:00]wFMCommunicate OK [23:49:00]SAM_PROTO_ClearQueue done [23:49:00]KKMCreateOFDPacket [23:49:00]OFDProtocolAddRootSTLVToBuf [23:49:00]FM_MakeSignedData [23:49:00]FM_MakeSignedData [23:49:00]SAM_PROTO_SignData [23:49:00]wFMCommunicate request_size=4 [23:49:00]MH_SAM_APDU [23:49:00]CAPDU: 80 0D 01 02 [23:49:00]Write to MH i2c: E2 08 00 FA 03 80 0D 01 02 00 00 00 00 76 [23:49:00]Write i2c OK [23:49:00]MH_I2C_Read... [23:49:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:00]Read from MH i2c: E2 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: E2 03 00 [23:49:00]MH_I2C_Read... [23:49:00]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [23:49:00]RAPDU: 90 00 [23:49:00]wFMCommunicate OK [23:49:00]wFMCommunicate request_size=255 [23:49:00]MH_SAM_APDU [23:49:00]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 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 80 00 00 00 F4 03 04 00 EC 96 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 [23:49:00]Write to MH i2c: E2 02 01 FB 03 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 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 80 00 00 00 F4 03 04 00 EC 96 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 00 00 28 [23:49:00]Write i2c OK [23:49:00]MH_I2C_Read... [23:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:01]Read from MH i2c: E2 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 03 00 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [23:49:01]RAPDU: 90 00 [23:49:01]wFMCommunicate OK [23:49:01]wFMCommunicate request_size=37 [23:49:01]MH_SAM_APDU [23:49:01]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CE 10 01 00 35 04 06 00 77 F7 B4 8A 04 CF [23:49:01]Write to MH i2c: E2 28 00 FC 03 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CE 10 01 00 35 04 06 00 77 F7 B4 8A 04 CF 00 00 32 [23:49:01]Write i2c OK [23:49:01]MH_I2C_Read... [23:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:01]Read from MH i2c: E2 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 03 00 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 03 00 FC 03 00 90 00 73 [23:49:01]RAPDU: 90 00 [23:49:01]wFMCommunicate OK [23:49:01]wFMCommunicate request_size=4 [23:49:01]MH_SAM_APDU [23:49:01]CAPDU: 80 0D 03 02 [23:49:01]Write to MH i2c: E2 08 00 FD 03 80 0D 03 02 00 00 00 00 7B [23:49:01]Write i2c OK [23:49:01]MH_I2C_Read... [23:49:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:01]Read from MH i2c: E2 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 0B 00 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 0B 00 FD 03 00 9C 7C 4A 70 76 8E EE 01 90 00 41 [23:49:01]RAPDU: 9C 7C 4A 70 76 8E EE 01 90 00 [23:49:01]wFMCommunicate OK [23:49:01]SAM_PROTO_SignData done [23:49:01]FM_MakeSignedData done [23:49:01]CreateOFDProtocolMessage [23:49:01]wFMCommunicate request_size=4 [23:49:01]MH_SAM_APDU [23:49:01]CAPDU: 80 11 00 00 [23:49:01]Write to MH i2c: E2 08 00 FE 03 80 11 00 00 00 00 00 00 7B [23:49:01]Write i2c OK [23:49:01]MH_I2C_Read... [23:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:01]Read from MH i2c: E2 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 17 00 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: E2 17 00 FE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 D2 [23:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [23:49:01]wFMCommunicate OK [23:49:01]CreateOFDProtocolMessage done [23:49:01]OFDSenderStorePacket 69838 [23:49:01]StoreOFDPacket docnum=69838 [23:49:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2A 01 00 00 F0 9A 22 01 D9 BB 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 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 80 00 00 00 F4 03 04 00 EC 96 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CE 10 01 00 35 04 06 00 77 F7 B4 8A 04 CF 9C 7C 4A 70 76 8E EE 01 [23:49:01]CheckFolder [23:49:01]dirname=/storage/ofd_packets [23:49:01]CheckFolder done [23:49:01]ProducePacketName [23:49:01]name=ofd_packets/00069838 [23:49:01]NVStorageSaveData ofd_packets/00069838 [23:49:01]File name is /storage/ofd_packets/00069838 [23:49:01]Write 328 bytes [23:49:01]NVStorageSaveData done [23:49:01]OFDSenderStorePacket done [23:49:01]KKMCreateOFDPacket done [23:49:01]NVStorageSaveData kkm_last_timestamp [23:49:01]File name is /storage/kkm_last_timestamp [23:49:01]Write 4 bytes [23:49:01]NVStorageSaveData done [23:49:01]ExternCall_PrintAddStr [23:49:01]wPrintStart [23:49:01]Write to MH i2c: 01 00 00 FF 03 02 [23:49:01]Write i2c OK [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: 01 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: 01 07 00 [23:49:01]MH_I2C_Read... [23:49:01]Read from MH i2c: 01 07 00 FF 03 00 00 00 00 00 FF 0F 17 [23:49:01]RasterBufferAndPrint [23:49:01]line Счет N : (3)127236 [23:49:01]line ИНН: 02508201610067 [23:49:01]line Контрольно-Кассовый Чек [23:49:01]line ПРОДАЖА [23:49:01]line Товар: 4640030092499 [23:49:01]line Сигареты ESSE SENSE Himalaya [23:49:01]line 1.000 * 150.00 [23:49:01]line = 150.00 [23:49:01]line НДС 12% НСП 1% [23:49:01]line > о реализуемом товаре [23:49:01]line ИТОГО: 150.00 [23:49:01]line НСП 1% : 1.33 [23:49:01]line НДС 12% : 15.93 [23:49:01]line Наличными: 150.00 [23:49:01]line Безнал.: 0.00 [23:49:01]line Место: АЗС № 163 "Партнер Нефть" [23:49:01]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [23:49:01]line СНО: Общий режим [23:49:01]line Чек 128 20.10.2024 23:49 [23:49:01]line Смена: 526 ФФД: 1.0 [23:49:01]line ЗНМ: 0300000101 [23:49:01]line РНМ: 0000000000091770 [23:49:01]line Версия ККМ: 001 [23:49:01]line ФМ: 0000000000871749 [23:49:01]line ФД: 69838 [23:49:01]line ФПД: 131905769571535 [23:49:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241020T234900&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69838&fm=131905769571535&tin=02508201610067®Number=0000000000091770&sum=15000 [23:49:01]line 0 [23:49:01]OFD Sender: Processing packet 69838 [packets to send 32, broken 31] [23:49:01]ProducePacketName [23:49:01]name=ofd_packets/00069838 [23:49:01]OFD Sender: To server: pG, [23:49:01]CommunicateWithHost lk.salyk.kg:30040 [23:49:01]ConnectInit lk.salyk.kg [23:49:01]written 0, free lines is 4095 [23:49:01]Connected sock=10 [23:49:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 2A 01 00 00 F0 9A 22 01 D9 BB 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 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 80 00 00 00 F4 03 04 00 EC 96 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CE 10 01 00 35 04 06 00 77 F7 B4 8A 04 CF 9C 7C 4A 70 76 8E EE 01 [23:49:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 9D 65 47 00 C2 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CE 10 01 00 F4 03 04 00 6E 3C 15 67 B6 04 01 00 00 F2 F4 E3 B8 DD 9F E8 DA [23:49:01]CommunicateWithHost err = 0 [23:49:01]CheckOFDResponse [23:49:01]1017 (14) - 77093643461234 [23:49:01]1041 (16) - 0000000000871749 [23:49:01]1040 (4) - 69838 [23:49:01]1012 (4) - 20.10.2024 17:22 [23:49:01]1206 (1) - 0 [23:49:01]OFD Sender: Remove packet 69838 [23:49:01]ProducePacketName [23:49:01]name=ofd_packets/00069838 [23:49:01]NVStorageDeleteData [23:49:02]Write to MH i2c: 01 00 00 28 04 2C [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 07 00 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: 01 07 00 28 04 00 00 00 00 00 E6 0C 25 [23:49:02]RasterBufferAndPrint [23:49:02]line [23:49:02]line [23:49:02]line [23:49:02]line [23:49:02]line [23:49:02]written 0, free lines is 3308 [23:49:02]MH_Cut [23:49:02]Write to MH i2c: D1 01 00 2F 04 01 05 [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: D1 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: D1 01 00 [23:49:02]MH_I2C_Read... [23:49:02]Read from MH i2c: D1 01 00 2F 04 00 04 [23:49:02]Write to MH i2c: 01 00 00 30 04 34 [23:49:02]Write i2c OK [23:49:02]MH_I2C_Read... [23:49:02]OFD Sender: No OFD packet to send [23:49:02]*** Cut start [23:49:02]*** Partial cut [23:49:02]*** CUTSNS_PIN = 1 [23:49:02]*** CUTSNS_PIN = 0 [23:49:03]*** Brake cut motor [23:49:03]Read from MH i2c: 01 [23:49:03]MH_I2C_Read... [23:49:03]*** Stop cut motor [23:49:03]*** Cut end [23:49:03]Read from MH i2c: 01 07 00 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: 01 07 00 30 04 00 00 00 00 00 FF 0F 49 [23:49:03]process_action close_receipt done [23:49:03]requested_data is exist [23:49:03]produce_requested_data [23:49:03]requested_item fm.sn is exist - process it [23:49:03]wFMCommunicate request_size=4 [23:49:03]MH_SAM_APDU [23:49:03]CAPDU: 80 11 00 00 [23:49:03]Write to MH i2c: E2 08 00 31 04 80 11 00 00 00 00 00 00 AF [23:49:03]Write i2c OK [23:49:03]MH_I2C_Read... [23:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:03]Read from MH i2c: E2 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 17 00 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 17 00 31 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 06 [23:49:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [23:49:03]wFMCommunicate OK [23:49:03]requested_item fd.num is exist - process it [23:49:03]SAM_PROTO_GetFieldsCounters [23:49:03]wFMCommunicate request_size=4 [23:49:03]MH_SAM_APDU [23:49:03]CAPDU: 80 13 00 00 [23:49:03]Write to MH i2c: E2 08 00 32 04 80 13 00 00 00 00 00 00 B2 [23:49:03]Write i2c OK [23:49:03]MH_I2C_Read... [23:49:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:03]Read from MH i2c: E2 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 62 00 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 62 00 32 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CE 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [23:49:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CE 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:03]wFMCommunicate OK [23:49:03]SAM_PROTO_GetFieldsCounters done [23:49:03]requested_item shift.num is exist - process it [23:49:03]requested_item shift.opened is exist - process it [23:49:03]req_shift_opened [23:49:03]FM_GetShiftState [23:49:03]SAM_PROTO_GetShiftState [23:49:03]wFMCommunicate request_size=4 [23:49:03]MH_SAM_APDU [23:49:03]CAPDU: 80 13 01 00 [23:49:03]Write to MH i2c: E2 08 00 33 04 80 13 01 00 00 00 00 00 B4 [23:49:03]Write i2c OK [23:49:03]MH_I2C_Read... [23:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:03]Read from MH i2c: E2 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 0E 00 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 0E 00 33 04 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 46 [23:49:03]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [23:49:03]wFMCommunicate OK [23:49:03]SAM_PROTO_GetShiftState done [23:49:03]FM_GetShiftState done [23:49:03]req_shift_opened done [23:49:03]requested_item shift.open_date is exist - process it [23:49:03]req_shift_open_date [23:49:03]req_shift_open_date done [23:49:03]produce_requested_data done [23:49:03]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69838,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [23:49:03]process_action_free close_receipt [23:49:03]json_value_free [23:49:03]json_value_free done [23:49:03]process_json_proto returns [23:49:03]Send response to host [23:49:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69838,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [23:49:03]free response buf [23:49:03]execute_script done [23:49:03]execute_script returns [23:49:03]free content buf [23:49:03]Sock 7.Close socket [23:49:03]Sock 7.Thread stoped [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:29]accept exits with 9 [23:50:29]New connection [23:50:29]New thread 3066785124 created [23:50:29]Thread 3066641764 joined [23:50:29]Waiting for new connection... [23:50:29] Sock 9.Parse request [23:50:29]Sock 9.Check first char [23:50:29]Sock 9.First char is OK [23:50:29]request: POST /json_proto HTTP/1.0 [23:50:29]Method: POST [23:50:29]URL: /json_proto [23:50:29]Method is POST - this is cgi request [23:50:29]url: /json_proto [23:50:29]query_string will be loaded in cgi processing [23:50:29]execute_cgi json_proto POST (null) [23:50:29]execute_cgi path=json_proto method=POST [23:50:29]POST find Content-Length [23:50:29]Host: 172.17.52.196:8080 [23:50:29]Content-Length: 215 [23:50:29]Content-Type: application/json [23:50:29] [23:50:29]POST finish read [23:50:29]Found Content-Length = 215 [23:50:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:29]execute_script... [23:50:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:29]POST & json_proto [23:50:29]process_json_proto [23:50:29]json parsed OK: [23:50:29]protocol is kg_v1.0 [23:50:29]action value=get_value [23:50:29]process_action get_value [23:50:29]cmd_get_value [23:50:29]process_action get_value done [23:50:29]requested_data is exist [23:50:29]produce_requested_data [23:50:29]requested_item kkm.sn is exist - process it [23:50:29]requested_item kkm.ver is exist - process it [23:50:29]requested_item fm.sn is exist - process it [23:50:29]wFMCommunicate request_size=4 [23:50:29]MH_SAM_APDU [23:50:29]CAPDU: 80 11 00 00 [23:50:29]Write to MH i2c: E2 08 00 34 04 80 11 00 00 00 00 00 00 B2 [23:50:29]Write i2c OK [23:50:29]MH_I2C_Read... [23:50:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:29]Read from MH i2c: E2 [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: E2 17 00 [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: E2 17 00 34 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 09 [23:50:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [23:50:29]wFMCommunicate OK [23:50:29]requested_item fd.num is exist - process it [23:50:29]SAM_PROTO_GetFieldsCounters [23:50:29]wFMCommunicate request_size=4 [23:50:29]MH_SAM_APDU [23:50:29]CAPDU: 80 13 00 00 [23:50:29]Write to MH i2c: E2 08 00 35 04 80 13 00 00 00 00 00 00 B5 [23:50:29]Write i2c OK [23:50:29]MH_I2C_Read... [23:50:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:29]Read from MH i2c: E2 [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: E2 62 00 [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: E2 62 00 35 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CE 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [23:50: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CE 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:29]wFMCommunicate OK [23:50:29]SAM_PROTO_GetFieldsCounters done [23:50:29]requested_item shift.num is exist - process it [23:50:29]requested_item shift.opened is exist - process it [23:50:29]req_shift_opened [23:50:29]FM_GetShiftState [23:50:29]SAM_PROTO_GetShiftState [23:50:29]wFMCommunicate request_size=4 [23:50:29]MH_SAM_APDU [23:50:29]CAPDU: 80 13 01 00 [23:50:29]Write to MH i2c: E2 08 00 36 04 80 13 01 00 00 00 00 00 B7 [23:50:29]Write i2c OK [23:50:29]MH_I2C_Read... [23:50:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:29]Read from MH i2c: E2 [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: E2 0E 00 [23:50:29]MH_I2C_Read... [23:50:29]Read from MH i2c: E2 0E 00 36 04 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 49 [23:50:29]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [23:50:29]wFMCommunicate OK [23:50:29]SAM_PROTO_GetShiftState done [23:50:29]FM_GetShiftState done [23:50:29]req_shift_opened done [23:50:29]requested_item shift.open_date is exist - process it [23:50:29]req_shift_open_date [23:50:29]req_shift_open_date done [23:50:29]produce_requested_data done [23:50:29]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69838,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [23:50:29]process_action_free get_value [23:50:29]json_value_free [23:50:29]json_value_free done [23:50:29]process_json_proto returns [23:50:29]Send response to host [23:50:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69838,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [23:50:29]free response buf [23:50:29]execute_script done [23:50:29]execute_script returns [23:50:29]free content buf [23:50:29]Sock 9.Close socket [23:50:29]Sock 9.Thread stoped [23:50:29]accept exits with 7 [23:50:29]New connection [23:50:29]New thread 3066641764 created [23:50:29]Thread 3066785124 joined [23:50:29]Waiting for new connection... [23:50:29] Sock 7.Parse request [23:50:29]Sock 7.Check first char [23:50:29]Sock 7.First char is OK [23:50:29]request: POST /json_proto HTTP/1.0 [23:50:29]Method: POST [23:50:29]URL: /json_proto [23:50:29]Method is POST - this is cgi request [23:50:29]url: /json_proto [23:50:29]query_string will be loaded in cgi processing [23:50:29]execute_cgi json_proto POST (null) [23:50:29]execute_cgi path=json_proto method=POST [23:50:29]POST find Content-Length [23:50:29]Host: 172.17.52.196:8080 [23:50:29]Content-Length: 331 [23:50:29]Content-Type: application/json [23:50:29] [23:50:29]POST finish read [23:50:29]Found Content-Length = 331 [23:50:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:50:29]execute_script... [23:50:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:50:30]POST & json_proto [23:50:30]process_json_proto [23:50:30]json parsed OK: [23:50:30]protocol is kg_v1.0 [23:50:30]action value=get_value [23:50:30]process_action get_value [23:50:30]cmd_get_value [23:50:30]process_action get_value done [23:50:30]requested_data is exist [23:50:30]produce_requested_data [23:50:30]requested_item fm.sale.total is exist - process it [23:50:30]SAM_PROTO_GetFMData [23:50:30]wFMCommunicate request_size=4 [23:50:30]MH_SAM_APDU [23:50:30]CAPDU: 80 13 03 00 [23:50:30]Write to MH i2c: E2 08 00 37 04 80 13 03 00 00 00 00 00 BA [23:50:30]Write i2c OK [23:50:30]MH_I2C_Read... [23:50:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:30]Read from MH i2c: E2 [23:50:30]MH_I2C_Read... [23:50:30]Read from MH i2c: E2 FD 00 [23:50:30]MH_I2C_Read... [23:50:30]Read from MH i2c: E2 FD 00 37 04 00 C3 04 85 04 BF 04 6E 04 04 00 B2 0C 01 00 69 04 A1 00 6F 04 04 00 54 0C 01 00 B1 04 04 00 33 5E 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 67 07 EC 10 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 00 EC CD 0C 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 18 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 EE [23:50:30]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 B2 0C 01 00 69 04 A1 00 6F 04 04 00 54 0C 01 00 B1 04 04 00 33 5E 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 67 07 EC 10 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 00 EC CD 0C 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 18 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [23:50:30]wFMCommunicate OK [23:50:30]wFMCommunicate request_size=4 [23:50:30]MH_SAM_APDU [23:50:30]CAPDU: 80 17 00 00 [23:50:30]Write to MH i2c: E2 08 00 38 04 80 17 00 00 00 00 00 00 BC [23:50:30]Write i2c OK [23:50:30]MH_I2C_Read... [23:50:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:30]Read from MH i2c: E2 [23:50:30]MH_I2C_Read... [23:50:30]Read from MH i2c: E2 FD 00 [23:50:30]MH_I2C_Read... [23:50:30]Read from MH i2c: E2 FD 00 38 04 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 C0 [23:50:30]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [23:50:30]wFMCommunicate OK [23:50:30]wFMCommunicate request_size=4 [23:50:30]MH_SAM_APDU [23:50:30]CAPDU: 80 17 00 00 [23:50:30]Write to MH i2c: E2 08 00 39 04 80 17 00 00 00 00 00 00 BD [23:50:30]Write i2c OK [23:50:30]MH_I2C_Read... [23:50:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:31]Read from MH i2c: E2 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 FD 00 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 FD 00 39 04 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 DB [23:50:31]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [23:50:31]wFMCommunicate OK [23:50:31]wFMCommunicate request_size=4 [23:50:31]MH_SAM_APDU [23:50:31]CAPDU: 80 17 00 00 [23:50:31]Write to MH i2c: E2 08 00 3A 04 80 17 00 00 00 00 00 00 BE [23:50:31]Write i2c OK [23:50:31]MH_I2C_Read... [23:50:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:31]Read from MH i2c: E2 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 FD 00 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 FD 00 3A 04 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 30 [23:50:31]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:31]wFMCommunicate OK [23:50:31]wFMCommunicate request_size=4 [23:50:31]MH_SAM_APDU [23:50:31]CAPDU: 80 17 00 00 [23:50:31]Write to MH i2c: E2 08 00 3B 04 80 17 00 00 00 00 00 00 BF [23:50:31]Write i2c OK [23:50:31]MH_I2C_Read... [23:50:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [23:50:31]Read from MH i2c: E2 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 E0 00 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 E0 00 3B 04 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A9 [23:50:31]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:31]wFMCommunicate OK [23:50:31]SAM_PROTO_GetFMData done [23:50:31]requested_item fm.sale_refund.total is exist - process it [23:50:31]requested_item fm.buy.total is exist - process it [23:50:31]requested_item shift.sale.total is exist - process it [23:50:31]SAM_PROTO_GetShiftData [23:50:31]wFMCommunicate request_size=4 [23:50:31]MH_SAM_APDU [23:50:31]CAPDU: 80 13 02 00 [23:50:31]Write to MH i2c: E2 08 00 3C 04 80 13 02 00 00 00 00 00 BE [23:50:31]Write i2c OK [23:50:31]MH_I2C_Read... [23:50:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:50:32]Read from MH i2c: E2 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 FD 00 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 FD 00 3C 04 00 AE 04 AA 04 AA 04 6E 04 04 00 80 00 00 00 69 04 9B 00 6F 04 04 00 80 00 00 00 B1 04 03 00 93 EE 31 70 04 03 00 E0 D4 27 72 04 03 00 B3 19 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6F 4D 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 13 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 27 [23:50:32]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 80 00 00 00 69 04 9B 00 6F 04 04 00 80 00 00 00 B1 04 03 00 93 EE 31 70 04 03 00 E0 D4 27 72 04 03 00 B3 19 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6F 4D 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 13 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:50:32]wFMCommunicate OK [23:50:32]wFMCommunicate request_size=4 [23:50:32]MH_SAM_APDU [23:50:32]CAPDU: 80 17 00 00 [23:50:32]Write to MH i2c: E2 08 00 3D 04 80 17 00 00 00 00 00 00 C1 [23:50:32]Write i2c OK [23:50:32]MH_I2C_Read... [23:50:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:32]Read from MH i2c: E2 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 FD 00 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 FD 00 3D 04 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 E3 [23:50:32]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:50:32]wFMCommunicate OK [23:50:32]wFMCommunicate request_size=4 [23:50:32]MH_SAM_APDU [23:50:32]CAPDU: 80 17 00 00 [23:50:32]Write to MH i2c: E2 08 00 3E 04 80 17 00 00 00 00 00 00 C2 [23:50:32]Write i2c OK [23:50:32]MH_I2C_Read... [23:50:32]OFD Sender: No OFD packet to send [23:50:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:32]Read from MH i2c: E2 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 FD 00 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 FD 00 3E 04 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 79 [23:50:32]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:50:32]wFMCommunicate OK [23:50:32]wFMCommunicate request_size=4 [23:50:32]MH_SAM_APDU [23:50:32]CAPDU: 80 17 00 00 [23:50:32]Write to MH i2c: E2 08 00 3F 04 80 17 00 00 00 00 00 00 C3 [23:50:32]Write i2c OK [23:50:32]MH_I2C_Read... [23:50:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:32]Read from MH i2c: E2 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 FD 00 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 FD 00 3F 04 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 35 [23:50:32]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:50:32]wFMCommunicate OK [23:50:32]wFMCommunicate request_size=4 [23:50:32]MH_SAM_APDU [23:50:32]CAPDU: 80 17 00 00 [23:50:32]Write to MH i2c: E2 08 00 40 04 80 17 00 00 00 00 00 00 C4 [23:50:32]Write i2c OK [23:50:32]MH_I2C_Read... [23:50:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:50:33]Read from MH i2c: E2 [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: E2 CB 00 [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: E2 CB 00 40 04 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AD [23:50:33]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:33]wFMCommunicate OK [23:50:33]SAM_PROTO_GetShiftData done [23:50:33]requested_item shift.sale.total_cash is exist - process it [23:50:33]requested_item shift.sale_refund.total is exist - process it [23:50:33]requested_item shift.sale_refund.total_cash is exist - process it [23:50:33]requested_item shift.buy.total is exist - process it [23:50:33]requested_item shift.buy.total_cash is exist - process it [23:50:33]produce_requested_data done [23:50:33]produce_requested_data return {"fm.sale.total":20225961.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":32723.39,"shift.sale.total_cash":26104.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:50:33]process_action_free get_value [23:50:33]json_value_free [23:50:33]json_value_free done [23:50:33]process_json_proto returns [23:50:33]Send response to host [23:50:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20225961.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":32723.39,"shift.sale.total_cash":26104.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:50:33]free response buf [23:50:33]execute_script done [23:50:33]execute_script returns [23:50:33]free content buf [23:50:33]Sock 7.Close socket [23:50:33]Sock 7.Thread stoped [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:08]OFD Sender: No OFD packet to send [00:03:13]OFD Sender: No OFD packet to send [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:02]accept exits with 9 [00:04:02]New connection [00:04:02]New thread 3066785124 created [00:04:02]Thread 3066641764 joined [00:04:02]Waiting for new connection... [00:04:02] Sock 9.Parse request [00:04:02]Sock 9.Check first char [00:04:02]Sock 9.First char is OK [00:04:02]request: POST /json_proto HTTP/1.0 [00:04:02]Method: POST [00:04:02]URL: /json_proto [00:04:02]Method is POST - this is cgi request [00:04:02]url: /json_proto [00:04:02]query_string will be loaded in cgi processing [00:04:02]execute_cgi json_proto POST (null) [00:04:02]execute_cgi path=json_proto method=POST [00:04:02]POST find Content-Length [00:04:02]Host: 172.17.52.196:8080 [00:04:02]Content-Length: 790 [00:04:02]Content-Type: application/json [00:04:02] [00:04:02]POST finish read [00:04:02]Found Content-Length = 790 [00:04:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127237", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:02]execute_script... [00:04:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127237", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:02]POST & json_proto [00:04:02]process_json_proto [00:04:02]json parsed OK: [00:04:02]protocol is kg_v1.0 [00:04:02]action value=close_receipt [00:04:02]process_action close_receipt [00:04:02]cmd_close_receipt [00:04:02]MH_GetDate [00:04:02]Write to MH i2c: F0 00 00 41 04 34 [00:04:02]Write i2c OK [00:04:02]MH_I2C_Read... [00:04:02]Read from MH i2c: F0 [00:04:02]MH_I2C_Read... [00:04:02]Read from MH i2c: F0 09 00 [00:04:02]MH_I2C_Read... [00:04:02]Read from MH i2c: F0 09 00 41 04 00 73 9A 15 67 60 05 E4 66 75 [00:04:02]GetLastDocTimeStamp 1729468140 [00:04:02]current date 1729469043 [00:04:02]FM_GetShiftState [00:04:02]SAM_PROTO_GetShiftState [00:04:02]wFMCommunicate request_size=4 [00:04:02]MH_SAM_APDU [00:04:02]CAPDU: 80 13 01 00 [00:04:02]Write to MH i2c: E2 08 00 42 04 80 13 01 00 00 00 00 00 C3 [00:04:02]Write i2c OK [00:04:02]MH_I2C_Read... [00:04:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:02]Read from MH i2c: E2 [00:04:02]MH_I2C_Read... [00:04:02]Read from MH i2c: E2 0E 00 [00:04:02]MH_I2C_Read... [00:04:02]Read from MH i2c: E2 0E 00 42 04 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 55 [00:04:02]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [00:04:02]wFMCommunicate OK [00:04:02]SAM_PROTO_GetShiftState done [00:04:02]FM_GetShiftState done [00:04:02]opened in 1729384380 [00:04:02]opened+sec_in_day 1729470780 [00:04:02]quantity*price = 17000 [00:04:02]sum+1 = 17001 [00:04:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 0.00 Безнал.: 170.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 129 21.10.2024 00:04 Смена: 526 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871749 ФД: 69839 ФПД: 89013816397492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T000403&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69839&fm=89013816397492&tin=02508201610067®Number=0000000000091770&sum=17000 0 [00:04:03]StoreToDocumentArchive [00:04:03]shift 526 fd 69839 [00:04:03]save to /storage/0526/doc_00069839 [00:04:03]save last doc name /storage/0526/doc_00069839 to /storage/kkm_last_doc_name [00:04:03]save OK [00:04:03]Clear old archive folders... [00:04:03]ProcessDocumentItem done err = 0, tmpTLVsize=287 [00:04:03]tlvbuf is 01747AE0 [00:04:03]SAM_PROTO_ClearQueue [00:04:03]wFMCommunicate request_size=4 [00:04:03]MH_SAM_APDU [00:04:03]CAPDU: 80 09 00 00 [00:04:03]Write to MH i2c: E2 08 00 4F 04 80 09 00 00 00 00 00 00 C5 [00:04:03]Write i2c OK [00:04:03]MH_I2C_Read... [00:04:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:04:03]Read from MH i2c: E2 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 03 00 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 03 00 4F 04 00 90 00 C7 [00:04:03]RAPDU: 90 00 [00:04:03]wFMCommunicate OK [00:04:03]SAM_PROTO_ClearQueue done [00:04:03]KKMCreateOFDPacket [00:04:03]OFDProtocolAddRootSTLVToBuf [00:04:03]FM_MakeSignedData [00:04:03]FM_MakeSignedData [00:04:03]SAM_PROTO_SignData [00:04:03]wFMCommunicate request_size=4 [00:04:03]MH_SAM_APDU [00:04:03]CAPDU: 80 0D 01 02 [00:04:03]Write to MH i2c: E2 08 00 50 04 80 0D 01 02 00 00 00 00 CD [00:04:03]Write i2c OK [00:04:03]MH_I2C_Read... [00:04:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:04:03]Read from MH i2c: E2 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 03 00 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 03 00 50 04 00 90 00 C8 [00:04:03]RAPDU: 90 00 [00:04:03]wFMCommunicate OK [00:04:03]wFMCommunicate request_size=255 [00:04:03]MH_SAM_APDU [00:04:03]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 73 9A 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [00:04:03]Write to MH i2c: E2 02 01 51 04 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 73 9A 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 69 [00:04:03]Write i2c OK [00:04:03]MH_I2C_Read... [00:04:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:03]Read from MH i2c: E2 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 03 00 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 03 00 51 04 00 90 00 C9 [00:04:03]RAPDU: 90 00 [00:04:03]wFMCommunicate OK [00:04:03]wFMCommunicate request_size=46 [00:04:03]MH_SAM_APDU [00:04:03]CAPDU: 80 0D 02 02 29 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CF 10 01 00 35 04 06 00 50 F5 24 E8 0E B4 [00:04:03]Write to MH i2c: E2 31 00 52 04 80 0D 02 02 29 00 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CF 10 01 00 35 04 06 00 50 F5 24 E8 0E B4 00 00 53 [00:04:03]Write i2c OK [00:04:03]MH_I2C_Read... [00:04:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:03]Read from MH i2c: E2 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 03 00 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 03 00 52 04 00 90 00 CA [00:04:03]RAPDU: 90 00 [00:04:03]wFMCommunicate OK [00:04:03]wFMCommunicate request_size=4 [00:04:03]MH_SAM_APDU [00:04:03]CAPDU: 80 0D 03 02 [00:04:03]Write to MH i2c: E2 08 00 53 04 80 0D 03 02 00 00 00 00 D2 [00:04:03]Write i2c OK [00:04:03]MH_I2C_Read... [00:04:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:04:03]Read from MH i2c: E2 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 0B 00 [00:04:03]MH_I2C_Read... [00:04:03]Read from MH i2c: E2 0B 00 53 04 00 8B 2C CC D8 95 94 2F 52 90 00 D8 [00:04:03]RAPDU: 8B 2C CC D8 95 94 2F 52 90 00 [00:04:03]wFMCommunicate OK [00:04:03]SAM_PROTO_SignData done [00:04:03]FM_MakeSignedData done [00:04:03]CreateOFDProtocolMessage [00:04:03]wFMCommunicate request_size=4 [00:04:03]MH_SAM_APDU [00:04:03]CAPDU: 80 11 00 00 [00:04:03]Write to MH i2c: E2 08 00 54 04 80 11 00 00 00 00 00 00 D2 [00:04:03]Write i2c OK [00:04:03]MH_I2C_Read... [00:04:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:04]Read from MH i2c: E2 [00:04:04]MH_I2C_Read... [00:04:04]Read from MH i2c: E2 17 00 [00:04:04]MH_I2C_Read... [00:04:04]Read from MH i2c: E2 17 00 54 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 29 [00:04:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [00:04:04]wFMCommunicate OK [00:04:04]CreateOFDProtocolMessage done [00:04:04]OFDSenderStorePacket 69839 [00:04:04]StoreOFDPacket docnum=69839 [00:04:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 33 01 00 00 B7 98 2B 01 92 46 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 73 9A 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CF 10 01 00 35 04 06 00 50 F5 24 E8 0E B4 8B 2C CC D8 95 94 2F 52 [00:04:04]CheckFolder [00:04:04]dirname=/storage/ofd_packets [00:04:04]CheckFolder done [00:04:04]ProducePacketName [00:04:04]name=ofd_packets/00069839 [00:04:04]NVStorageSaveData ofd_packets/00069839 [00:04:04]File name is /storage/ofd_packets/00069839 [00:04:04]Write 337 bytes [00:04:04]NVStorageSaveData done [00:04:04]OFDSenderStorePacket done [00:04:04]KKMCreateOFDPacket done [00:04:04]NVStorageSaveData kkm_last_timestamp [00:04:04]File name is /storage/kkm_last_timestamp [00:04:04]Write 4 bytes [00:04:04]NVStorageSaveData done [00:04:04]ExternCall_PrintAddStr [00:04:04]wPrintStart [00:04:04]Write to MH i2c: 01 00 00 55 04 59 [00:04:04]Write i2c OK [00:04:04]MH_I2C_Read... [00:04:04]Read from MH i2c: 01 [00:04:04]MH_I2C_Read... [00:04:04]Read from MH i2c: 01 07 00 [00:04:04]MH_I2C_Read... [00:04:04]Read from MH i2c: 01 07 00 55 04 00 00 00 00 00 FF 0F 6E [00:04:04]RasterBufferAndPrint [00:04:04]line Счет N : (3)127237 [00:04:04]line ИНН: 02508201610067 [00:04:04]line Контрольно-Кассовый Чек [00:04:04]line ПРОДАЖА [00:04:04]line Товар: 5449000176448 [00:04:04]line Сок Piko Pulpy апельсин ПЭТ 1л [00:04:04]line 1.000 * 170.00 [00:04:04]line = 170.00 [00:04:04]line НДС 12% НСП 1% [00:04:04]line > о реализуемом товаре [00:04:04]line ИТОГО: 170.00 [00:04:04]line НСП 1% : 1.50 [00:04:04]line НДС 12% : 18.05 [00:04:04]line Наличными: 0.00 [00:04:04]line Безнал.: 170.00 [00:04:04]line Место: АЗС № 163 "Партнер Нефть" [00:04:04]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [00:04:04]line СНО: Общий режим [00:04:04]line Чек 129 21.10.2024 00:04 [00:04:04]line Смена: 526 ФФД: 1.0 [00:04:04]line ЗНМ: 0300000101 [00:04:04]line РНМ: 0000000000091770 [00:04:04]line Версия ККМ: 001 [00:04:04]line Платежная система: Mbank [00:04:04]line ФМ: 0000000000871749 [00:04:04]line ФД: 69839 [00:04:04]line ФПД: 89013816397492 [00:04:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T000403&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69839&fm=89013816397492&tin=02508201610067®Number=0000000000091770&sum=17000 [00:04:04]line 0 [00:04:04]OFD Sender: Processing packet 69839 [packets to send 32, broken 31] [00:04:04]ProducePacketName [00:04:04]name=ofd_packets/00069839 [00:04:04]OFD Sender: To server: pG, [00:04:04]CommunicateWithHost lk.salyk.kg:30040 [00:04:04]ConnectInit lk.salyk.kg [00:04:04]written 0, free lines is 4095 [00:04:04]Connected sock=10 [00:04:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 33 01 00 00 B7 98 2B 01 92 46 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 73 9A 15 67 0E 04 04 00 0E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CF 10 01 00 35 04 06 00 50 F5 24 E8 0E B4 8B 2C CC D8 95 94 2F 52 [00:04:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 B4 EF 47 00 E6 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 CF 10 01 00 F4 03 04 00 F5 3F 15 67 B6 04 01 00 00 A2 7C E2 CD 53 14 6A 43 [00:04:04]CommunicateWithHost err = 0 [00:04:04]CheckOFDResponse [00:04:04]1017 (14) - 77093643461234 [00:04:04]1041 (16) - 0000000000871749 [00:04:04]1040 (4) - 69839 [00:04:04]1012 (4) - 20.10.2024 17:37 [00:04:04]1206 (1) - 0 [00:04:04]OFD Sender: Remove packet 69839 [00:04:04]ProducePacketName [00:04:04]name=ofd_packets/00069839 [00:04:04]NVStorageDeleteData [00:04:04]Write to MH i2c: 01 00 00 7F 04 83 [00:04:04]Write i2c OK [00:04:04]MH_I2C_Read... [00:04:04]Read from MH i2c: 01 [00:04:04]MH_I2C_Read... [00:04:04]Read from MH i2c: 01 07 00 [00:04:04]MH_I2C_Read... [00:04:04]Read from MH i2c: 01 07 00 7F 04 00 00 00 00 00 F1 0C 87 [00:04:04]RasterBufferAndPrint [00:04:04]line [00:04:04]line [00:04:04]line [00:04:04]line [00:04:04]line [00:04:04]written 0, free lines is 3319 [00:04:04]MH_Cut [00:04:04]Write to MH i2c: D1 01 00 86 04 01 5C [00:04:04]Write i2c OK [00:04:04]MH_I2C_Read... [00:04:04]Read from MH i2c: D1 [00:04:04]MH_I2C_Read... [00:04:04]Read from MH i2c: D1 01 00 [00:04:04]MH_I2C_Read... [00:04:04]Read from MH i2c: D1 01 00 86 04 00 5B [00:04:04]Write to MH i2c: 01 00 00 87 04 8B [00:04:04]Write i2c OK [00:04:04]MH_I2C_Read... [00:04:05]OFD Sender: No OFD packet to send [00:04:05]*** Cut start [00:04:05]*** Partial cut [00:04:05]*** CUTSNS_PIN = 1 [00:04:05]*** CUTSNS_PIN = 0 [00:04:06]*** Brake cut motor [00:04:06]Read from MH i2c: 01 [00:04:06]MH_I2C_Read... [00:04:06]*** Stop cut motor [00:04:06]*** Cut end [00:04:06]Read from MH i2c: 01 07 00 [00:04:06]MH_I2C_Read... [00:04:06]Read from MH i2c: 01 07 00 87 04 00 00 00 00 00 FF 0F A0 [00:04:06]process_action close_receipt done [00:04:06]requested_data is exist [00:04:06]produce_requested_data [00:04:06]requested_item fm.sn is exist - process it [00:04:06]wFMCommunicate request_size=4 [00:04:06]MH_SAM_APDU [00:04:06]CAPDU: 80 11 00 00 [00:04:06]Write to MH i2c: E2 08 00 88 04 80 11 00 00 00 00 00 00 06 [00:04:06]Write i2c OK [00:04:06]MH_I2C_Read... [00:04:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:06]Read from MH i2c: E2 [00:04:06]MH_I2C_Read... [00:04:06]Read from MH i2c: E2 17 00 [00:04:06]MH_I2C_Read... [00:04:06]Read from MH i2c: E2 17 00 88 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 5D [00:04:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [00:04:06]wFMCommunicate OK [00:04:06]requested_item fd.num is exist - process it [00:04:06]SAM_PROTO_GetFieldsCounters [00:04:06]wFMCommunicate request_size=4 [00:04:06]MH_SAM_APDU [00:04:06]CAPDU: 80 13 00 00 [00:04:06]Write to MH i2c: E2 08 00 89 04 80 13 00 00 00 00 00 00 09 [00:04:06]Write i2c OK [00:04:06]MH_I2C_Read... [00:04:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:06]Read from MH i2c: E2 [00:04:06]MH_I2C_Read... [00:04:06]Read from MH i2c: E2 62 00 [00:04:06]MH_I2C_Read... [00:04:06]Read from MH i2c: E2 62 00 89 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CF 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [00:04: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CF 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:06]wFMCommunicate OK [00:04:06]SAM_PROTO_GetFieldsCounters done [00:04:06]requested_item shift.num is exist - process it [00:04:06]requested_item shift.opened is exist - process it [00:04:06]req_shift_opened [00:04:06]FM_GetShiftState [00:04:06]SAM_PROTO_GetShiftState [00:04:06]wFMCommunicate request_size=4 [00:04:06]MH_SAM_APDU [00:04:06]CAPDU: 80 13 01 00 [00:04:06]Write to MH i2c: E2 08 00 8A 04 80 13 01 00 00 00 00 00 0B [00:04:06]Write i2c OK [00:04:06]MH_I2C_Read... [00:04:06]Read from MH i2c: E2 [00:04:06]MH_I2C_Read... [00:04:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:06]Read from MH i2c: E2 0E 00 [00:04:06]MH_I2C_Read... [00:04:06]Read from MH i2c: E2 0E 00 8A 04 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 9D [00:04:06]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [00:04:06]wFMCommunicate OK [00:04:06]SAM_PROTO_GetShiftState done [00:04:06]FM_GetShiftState done [00:04:06]req_shift_opened done [00:04:06]requested_item shift.open_date is exist - process it [00:04:06]req_shift_open_date [00:04:06]req_shift_open_date done [00:04:06]produce_requested_data done [00:04:06]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69839,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [00:04:06]process_action_free close_receipt [00:04:06]json_value_free [00:04:06]json_value_free done [00:04:06]process_json_proto returns [00:04:06]Send response to host [00:04:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69839,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [00:04:06]free response buf [00:04:06]execute_script done [00:04:06]execute_script returns [00:04:06]free content buf [00:04:06]Sock 9.Close socket [00:04:06]Sock 9.Thread stoped [00:04:10]OFD Sender: No OFD packet to send [00:04:15]OFD Sender: No OFD packet to send [00:04:20]OFD Sender: No OFD packet to send [00:04:25]OFD Sender: No OFD packet to send [00:04:30]OFD Sender: No OFD packet to send [00:04:35]OFD Sender: No OFD packet to send [00:04:40]OFD Sender: No OFD packet to send [00:04:45]OFD Sender: No OFD packet to send [00:04:50]OFD Sender: No OFD packet to send [00:04:55]OFD Sender: No OFD packet to send [00:05:00]OFD Sender: No OFD packet to send [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:20]OFD Sender: No OFD packet to send [00:05:25]OFD Sender: No OFD packet to send [00:05:30]OFD Sender: No OFD packet to send [00:05:35]OFD Sender: No OFD packet to send [00:05:40]OFD Sender: No OFD packet to send [00:05:45]OFD Sender: No OFD packet to send [00:05:50]OFD Sender: No OFD packet to send [00:05:55]OFD Sender: No OFD packet to send [00:06:00]OFD Sender: No OFD packet to send [00:06:05]OFD Sender: No OFD packet to send [00:06:10]OFD Sender: No OFD packet to send [00:06:15]OFD Sender: No OFD packet to send [00:06:20]OFD Sender: No OFD packet to send [00:06:25]OFD Sender: No OFD packet to send [00:06:30]OFD Sender: No OFD packet to send [00:06:35]OFD Sender: No OFD packet to send [00:06:40]OFD Sender: No OFD packet to send [00:06:45]OFD Sender: No OFD packet to send [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:05]OFD Sender: No OFD packet to send [00:07:10]OFD Sender: No OFD packet to send [00:07:15]OFD Sender: No OFD packet to send [00:07:20]OFD Sender: No OFD packet to send [00:07:25]OFD Sender: No OFD packet to send [00:07:30]OFD Sender: No OFD packet to send [00:07:35]OFD Sender: No OFD packet to send [00:07:40]OFD Sender: No OFD packet to send [00:07:45]OFD Sender: No OFD packet to send [00:07:50]OFD Sender: No OFD packet to send [00:07:55]OFD Sender: No OFD packet to send [00:08:00]OFD Sender: No OFD packet to send [00:08:05]OFD Sender: No OFD packet to send [00:08:10]OFD Sender: No OFD packet to send [00:08:15]OFD Sender: No OFD packet to send [00:08:20]OFD Sender: No OFD packet to send [00:08:25]OFD Sender: No OFD packet to send [00:08:30]OFD Sender: No OFD packet to send [00:08:35]OFD Sender: No OFD packet to send [00:08:40]OFD Sender: No OFD packet to send [00:08:45]OFD Sender: No OFD packet to send [00:08:50]OFD Sender: No OFD packet to send [00:08:55]OFD Sender: No OFD packet to send [00:09:00]OFD Sender: No OFD packet to send [00:09:05]OFD Sender: No OFD packet to send [00:09:10]OFD Sender: No OFD packet to send [00:09:15]OFD Sender: No OFD packet to send [00:09:20]OFD Sender: No OFD packet to send [00:09:25]OFD Sender: No OFD packet to send [00:09:30]OFD Sender: No OFD packet to send [00:09:35]OFD Sender: No OFD packet to send [00:09:40]OFD Sender: No OFD packet to send [00:09:45]OFD Sender: No OFD packet to send [00:09:50]OFD Sender: No OFD packet to send [00:09:55]OFD Sender: No OFD packet to send [00:10:00]OFD Sender: No OFD packet to send [00:10:05]OFD Sender: No OFD packet to send [00:10:10]OFD Sender: No OFD packet to send [00:10:15]OFD Sender: No OFD packet to send [00:10:20]OFD Sender: No OFD packet to send [00:10:25]OFD Sender: No OFD packet to send [00:10:30]OFD Sender: No OFD packet to send [00:10:35]OFD Sender: No OFD packet to send [00:10:40]OFD Sender: No OFD packet to send [00:10:45]OFD Sender: No OFD packet to send [00:10:50]OFD Sender: No OFD packet to send [00:10:55]OFD Sender: No OFD packet to send [00:11:00]OFD Sender: No OFD packet to send [00:11:05]OFD Sender: No OFD packet to send [00:11:10]OFD Sender: No OFD packet to send [00:11:15]OFD Sender: No OFD packet to send [00:11:20]OFD Sender: No OFD packet to send [00:11:25]OFD Sender: No OFD packet to send [00:11:30]OFD Sender: No OFD packet to send [00:11:35]OFD Sender: No OFD packet to send [00:11:40]OFD Sender: No OFD packet to send [00:11:45]OFD Sender: No OFD packet to send [00:11:50]OFD Sender: No OFD packet to send [00:11:55]OFD Sender: No OFD packet to send [00:12:00]OFD Sender: No OFD packet to send [00:12:05]OFD Sender: No OFD packet to send [00:12:10]OFD Sender: No OFD packet to send [00:12:15]OFD Sender: No OFD packet to send [00:12:20]OFD Sender: No OFD packet to send [00:12:25]OFD Sender: No OFD packet to send [00:12:30]OFD Sender: No OFD packet to send [00:12:35]OFD Sender: No OFD packet to send [00:12:40]OFD Sender: No OFD packet to send [00:12:45]OFD Sender: No OFD packet to send [00:12:50]OFD Sender: No OFD packet to send [00:12:55]OFD Sender: No OFD packet to send [00:13:00]OFD Sender: No OFD packet to send [00:13:05]OFD Sender: No OFD packet to send [00:13:10]OFD Sender: No OFD packet to send [00:13:15]OFD Sender: No OFD packet to send [00:13:20]OFD Sender: No OFD packet to send [00:13:25]OFD Sender: No OFD packet to send [00:13:30]OFD Sender: No OFD packet to send [00:13:35]OFD Sender: No OFD packet to send [00:13:40]OFD Sender: No OFD packet to send [00:13:45]OFD Sender: No OFD packet to send [00:13:50]OFD Sender: No OFD packet to send [00:13:55]OFD Sender: No OFD packet to send [00:14:00]OFD Sender: No OFD packet to send [00:14:05]OFD Sender: No OFD packet to send [00:14:10]OFD Sender: No OFD packet to send [00:14:15]OFD Sender: No OFD packet to send [00:14:20]OFD Sender: No OFD packet to send [00:14:25]OFD Sender: No OFD packet to send [00:14:30]OFD Sender: No OFD packet to send [00:14:35]OFD Sender: No OFD packet to send [00:14:40]OFD Sender: No OFD packet to send [00:14:45]OFD Sender: No OFD packet to send [00:14:50]OFD Sender: No OFD packet to send [00:14:55]OFD Sender: No OFD packet to send [00:15:00]OFD Sender: No OFD packet to send [00:15:05]OFD Sender: No OFD packet to send [00:15:10]OFD Sender: No OFD packet to send [00:15:15]OFD Sender: No OFD packet to send [00:15:20]OFD Sender: No OFD packet to send [00:15:25]OFD Sender: No OFD packet to send [00:15:30]OFD Sender: No OFD packet to send [00:15:35]OFD Sender: No OFD packet to send [00:15:40]OFD Sender: No OFD packet to send [00:15:45]OFD Sender: No OFD packet to send [00:15:50]OFD Sender: No OFD packet to send [00:15:55]OFD Sender: No OFD packet to send [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:25]OFD Sender: No OFD packet to send [00:17:30]OFD Sender: No OFD packet to send [00:17:35]OFD Sender: No OFD packet to send [00:17:40]OFD Sender: No OFD packet to send [00:17:45]OFD Sender: No OFD packet to send [00:17:50]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:30]OFD Sender: No OFD packet to send [00:18:35]OFD Sender: No OFD packet to send [00:18:40]OFD Sender: No OFD packet to send [00:18:45]OFD Sender: No OFD packet to send [00:18:50]OFD Sender: No OFD packet to send [00:18:55]OFD Sender: No OFD packet to send [00:19:00]OFD Sender: No OFD packet to send [00:19:05]OFD Sender: No OFD packet to send [00:19:10]OFD Sender: No OFD packet to send [00:19:15]OFD Sender: No OFD packet to send [00:19:20]OFD Sender: No OFD packet to send [00:19:25]OFD Sender: No OFD packet to send [00:19:30]OFD Sender: No OFD packet to send [00:19:35]OFD Sender: No OFD packet to send [00:19:40]OFD Sender: No OFD packet to send [00:19:45]OFD Sender: No OFD packet to send [00:19:50]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:06]OFD Sender: No OFD packet to send [00:25:11]OFD Sender: No OFD packet to send [00:25:16]OFD Sender: No OFD packet to send [00:25:21]OFD Sender: No OFD packet to send [00:25:26]OFD Sender: No OFD packet to send [00:25:31]OFD Sender: No OFD packet to send [00:25:36]OFD Sender: No OFD packet to send [00:25:41]OFD Sender: No OFD packet to send [00:25:46]OFD Sender: No OFD packet to send [00:25:51]OFD Sender: No OFD packet to send [00:25:56]OFD Sender: No OFD packet to send [00:26:01]OFD Sender: No OFD packet to send [00:26:06]OFD Sender: No OFD packet to send [00:26:11]OFD Sender: No OFD packet to send [00:26:16]OFD Sender: No OFD packet to send [00:26:21]OFD Sender: No OFD packet to send [00:26:26]OFD Sender: No OFD packet to send [00:26:31]OFD Sender: No OFD packet to send [00:26:36]OFD Sender: No OFD packet to send [00:26:41]OFD Sender: No OFD packet to send [00:26:46]OFD Sender: No OFD packet to send [00:26:51]OFD Sender: No OFD packet to send [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:06]OFD Sender: No OFD packet to send [00:27:11]OFD Sender: No OFD packet to send [00:27:11]accept exits with 7 [00:27:11]New connection [00:27:11]New thread 3066641764 created [00:27:11]Thread 3066785124 joined [00:27:11]Waiting for new connection... [00:27:11] Sock 7.Parse request [00:27:11]Sock 7.Check first char [00:27:11]Sock 7.First char is OK [00:27:11]request: POST /json_proto HTTP/1.0 [00:27:11]Method: POST [00:27:11]URL: /json_proto [00:27:11]Method is POST - this is cgi request [00:27:11]url: /json_proto [00:27:11]query_string will be loaded in cgi processing [00:27:11]execute_cgi json_proto POST (null) [00:27:11]execute_cgi path=json_proto method=POST [00:27:11]POST find Content-Length [00:27:11]Host: 172.17.52.196:8080 [00:27:11]Content-Length: 215 [00:27:11]Content-Type: application/json [00:27:11] [00:27:11]POST finish read [00:27:11]Found Content-Length = 215 [00:27:11]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:11]execute_script... [00:27:11]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:11]POST & json_proto [00:27:11]process_json_proto [00:27:11]json parsed OK: [00:27:11]protocol is kg_v1.0 [00:27:11]action value=get_value [00:27:11]process_action get_value [00:27:11]cmd_get_value [00:27:11]process_action get_value done [00:27:11]requested_data is exist [00:27:11]produce_requested_data [00:27:11]requested_item kkm.sn is exist - process it [00:27:11]requested_item kkm.ver is exist - process it [00:27:11]requested_item fm.sn is exist - process it [00:27:11]wFMCommunicate request_size=4 [00:27:11]MH_SAM_APDU [00:27:11]CAPDU: 80 11 00 00 [00:27:11]Write to MH i2c: E2 08 00 8B 04 80 11 00 00 00 00 00 00 09 [00:27:11]Write i2c OK [00:27:11]MH_I2C_Read... [00:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:11]Read from MH i2c: E2 [00:27:11]MH_I2C_Read... [00:27:11]Read from MH i2c: E2 17 00 [00:27:11]MH_I2C_Read... [00:27:11]Read from MH i2c: E2 17 00 8B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 60 [00:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [00:27:11]wFMCommunicate OK [00:27:11]requested_item fd.num is exist - process it [00:27:11]SAM_PROTO_GetFieldsCounters [00:27:11]wFMCommunicate request_size=4 [00:27:11]MH_SAM_APDU [00:27:11]CAPDU: 80 13 00 00 [00:27:11]Write to MH i2c: E2 08 00 8C 04 80 13 00 00 00 00 00 00 0C [00:27:11]Write i2c OK [00:27:11]MH_I2C_Read... [00:27:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:11]Read from MH i2c: E2 [00:27:11]MH_I2C_Read... [00:27:11]Read from MH i2c: E2 62 00 [00:27:11]MH_I2C_Read... [00:27:11]Read from MH i2c: E2 62 00 8C 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CF 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [00:27: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CF 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:11]wFMCommunicate OK [00:27:11]SAM_PROTO_GetFieldsCounters done [00:27:11]requested_item shift.num is exist - process it [00:27:11]requested_item shift.opened is exist - process it [00:27:11]req_shift_opened [00:27:11]FM_GetShiftState [00:27:11]SAM_PROTO_GetShiftState [00:27:11]wFMCommunicate request_size=4 [00:27:11]MH_SAM_APDU [00:27:11]CAPDU: 80 13 01 00 [00:27:11]Write to MH i2c: E2 08 00 8D 04 80 13 01 00 00 00 00 00 0E [00:27:11]Write i2c OK [00:27:11]MH_I2C_Read... [00:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:11]Read from MH i2c: E2 [00:27:11]MH_I2C_Read... [00:27:11]Read from MH i2c: E2 0E 00 [00:27:11]MH_I2C_Read... [00:27:11]Read from MH i2c: E2 0E 00 8D 04 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 A0 [00:27:11]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [00:27:11]wFMCommunicate OK [00:27:11]SAM_PROTO_GetShiftState done [00:27:11]FM_GetShiftState done [00:27:11]req_shift_opened done [00:27:11]requested_item shift.open_date is exist - process it [00:27:11]req_shift_open_date [00:27:11]req_shift_open_date done [00:27:11]produce_requested_data done [00:27:11]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69839,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [00:27:11]process_action_free get_value [00:27:11]json_value_free [00:27:11]json_value_free done [00:27:11]process_json_proto returns [00:27:11]Send response to host [00:27:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69839,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [00:27:11]free response buf [00:27:11]execute_script done [00:27:11]execute_script returns [00:27:11]free content buf [00:27:11]Sock 7.Close socket [00:27:11]Sock 7.Thread stoped [00:27:11]accept exits with 9 [00:27:11]New connection [00:27:11]New thread 3066785124 created [00:27:11]Thread 3066641764 joined [00:27:11]Waiting for new connection... [00:27:11] Sock 9.Parse request [00:27:11]Sock 9.Check first char [00:27:11]Sock 9.First char is OK [00:27:11]request: POST /json_proto HTTP/1.0 [00:27:11]Method: POST [00:27:11]URL: /json_proto [00:27:11]Method is POST - this is cgi request [00:27:11]url: /json_proto [00:27:11]query_string will be loaded in cgi processing [00:27:11]execute_cgi json_proto POST (null) [00:27:11]execute_cgi path=json_proto method=POST [00:27:11]POST find Content-Length [00:27:11]Host: 172.17.52.196:8080 [00:27:11]Content-Length: 331 [00:27:11]Content-Type: application/json [00:27:11] [00:27:11]POST finish read [00:27:11]Found Content-Length = 331 [00:27:11]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:11]execute_script... [00:27:11]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:12]POST & json_proto [00:27:12]process_json_proto [00:27:12]json parsed OK: [00:27:12]protocol is kg_v1.0 [00:27:12]action value=get_value [00:27:12]process_action get_value [00:27:12]cmd_get_value [00:27:12]process_action get_value done [00:27:12]requested_data is exist [00:27:12]produce_requested_data [00:27:12]requested_item fm.sale.total is exist - process it [00:27:12]SAM_PROTO_GetFMData [00:27:12]wFMCommunicate request_size=4 [00:27:12]MH_SAM_APDU [00:27:12]CAPDU: 80 13 03 00 [00:27:12]Write to MH i2c: E2 08 00 8E 04 80 13 03 00 00 00 00 00 11 [00:27:12]Write i2c OK [00:27:12]MH_I2C_Read... [00:27:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:12]Read from MH i2c: E2 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 FD 00 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 FD 00 8E 04 00 C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 45 [00:27:12]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [00:27:12]wFMCommunicate OK [00:27:12]wFMCommunicate request_size=4 [00:27:12]MH_SAM_APDU [00:27:12]CAPDU: 80 17 00 00 [00:27:12]Write to MH i2c: E2 08 00 8F 04 80 17 00 00 00 00 00 00 13 [00:27:12]Write i2c OK [00:27:12]MH_I2C_Read... [00:27:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:12]Read from MH i2c: E2 [00:27:12]MH_I2C_Read... [00:27:12]Read from MH i2c: E2 FD 00 [00:27:12]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 FD 00 8F 04 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 17 [00:27:13]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:27:13]wFMCommunicate OK [00:27:13]wFMCommunicate request_size=4 [00:27:13]MH_SAM_APDU [00:27:13]CAPDU: 80 17 00 00 [00:27:13]Write to MH i2c: E2 08 00 90 04 80 17 00 00 00 00 00 00 14 [00:27:13]Write i2c OK [00:27:13]MH_I2C_Read... [00:27:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:13]Read from MH i2c: E2 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 FD 00 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 FD 00 90 04 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 32 [00:27:13]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [00:27:13]wFMCommunicate OK [00:27:13]wFMCommunicate request_size=4 [00:27:13]MH_SAM_APDU [00:27:13]CAPDU: 80 17 00 00 [00:27:13]Write to MH i2c: E2 08 00 91 04 80 17 00 00 00 00 00 00 15 [00:27:13]Write i2c OK [00:27:13]MH_I2C_Read... [00:27:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:13]Read from MH i2c: E2 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 FD 00 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 FD 00 91 04 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 87 [00:27:13]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:13]wFMCommunicate OK [00:27:13]wFMCommunicate request_size=4 [00:27:13]MH_SAM_APDU [00:27:13]CAPDU: 80 17 00 00 [00:27:13]Write to MH i2c: E2 08 00 92 04 80 17 00 00 00 00 00 00 16 [00:27:13]Write i2c OK [00:27:13]MH_I2C_Read... [00:27:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:27:13]Read from MH i2c: E2 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 E0 00 [00:27:13]MH_I2C_Read... [00:27:13]Read from MH i2c: E2 E0 00 92 04 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [00:27:13]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:13]wFMCommunicate OK [00:27:13]SAM_PROTO_GetFMData done [00:27:13]requested_item fm.sale_refund.total is exist - process it [00:27:13]requested_item fm.buy.total is exist - process it [00:27:13]requested_item shift.sale.total is exist - process it [00:27:13]SAM_PROTO_GetShiftData [00:27:13]wFMCommunicate request_size=4 [00:27:13]MH_SAM_APDU [00:27:13]CAPDU: 80 13 02 00 [00:27:13]Write to MH i2c: E2 08 00 93 04 80 13 02 00 00 00 00 00 15 [00:27:13]Write i2c OK [00:27:13]MH_I2C_Read... [00:27:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:14]Read from MH i2c: E2 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 FD 00 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 FD 00 93 04 00 AE 04 AA 04 AA 04 6E 04 04 00 81 00 00 00 69 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7C 54 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 A9 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 80 [00:27:14]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 81 00 00 00 69 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7C 54 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 A9 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:27:14]wFMCommunicate OK [00:27:14]wFMCommunicate request_size=4 [00:27:14]MH_SAM_APDU [00:27:14]CAPDU: 80 17 00 00 [00:27:14]Write to MH i2c: E2 08 00 94 04 80 17 00 00 00 00 00 00 18 [00:27:14]Write i2c OK [00:27:14]MH_I2C_Read... [00:27:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:14]Read from MH i2c: E2 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 FD 00 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 FD 00 94 04 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 3A [00:27:14]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:27:14]wFMCommunicate OK [00:27:14]wFMCommunicate request_size=4 [00:27:14]MH_SAM_APDU [00:27:14]CAPDU: 80 17 00 00 [00:27:14]Write to MH i2c: E2 08 00 95 04 80 17 00 00 00 00 00 00 19 [00:27:14]Write i2c OK [00:27:14]MH_I2C_Read... [00:27:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:14]Read from MH i2c: E2 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 FD 00 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 FD 00 95 04 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 D0 [00:27:14]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:27:14]wFMCommunicate OK [00:27:14]wFMCommunicate request_size=4 [00:27:14]MH_SAM_APDU [00:27:14]CAPDU: 80 17 00 00 [00:27:14]Write to MH i2c: E2 08 00 96 04 80 17 00 00 00 00 00 00 1A [00:27:14]Write i2c OK [00:27:14]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 FD 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 FD 00 96 04 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 8C [00:27:15]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:27:15]wFMCommunicate OK [00:27:15]wFMCommunicate request_size=4 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 17 00 00 [00:27:15]Write to MH i2c: E2 08 00 97 04 80 17 00 00 00 00 00 00 1B [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 CB 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 CB 00 97 04 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 04 [00:27:15]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:15]wFMCommunicate OK [00:27:15]SAM_PROTO_GetShiftData done [00:27:15]requested_item shift.sale.total_cash is exist - process it [00:27:15]requested_item shift.sale_refund.total is exist - process it [00:27:15]requested_item shift.sale_refund.total_cash is exist - process it [00:27:15]requested_item shift.buy.total is exist - process it [00:27:15]requested_item shift.buy.total_cash is exist - process it [00:27:15]produce_requested_data done [00:27:15]produce_requested_data return {"fm.sale.total":20226131.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":32893.39,"shift.sale.total_cash":26104.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:27:15]process_action_free get_value [00:27:15]json_value_free [00:27:15]json_value_free done [00:27:15]process_json_proto returns [00:27:15]Send response to host [00:27:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20226131.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":32893.39,"shift.sale.total_cash":26104.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:27:15]free response buf [00:27:15]execute_script done [00:27:15]execute_script returns [00:27:15]free content buf [00:27:15]Sock 9.Close socket [00:27:15]Sock 9.Thread stoped [00:27:16]OFD Sender: No OFD packet to send [00:27:17]accept exits with 7 [00:27:17]New connection [00:27:17]New thread 3066641764 created [00:27:17]Thread 3066785124 joined [00:27:17]Waiting for new connection... [00:27:17] Sock 7.Parse request [00:27:17]Sock 7.Check first char [00:27:17]Sock 7.First char is OK [00:27:17]request: POST /json_proto HTTP/1.0 [00:27:17]Method: POST [00:27:17]URL: /json_proto [00:27:17]Method is POST - this is cgi request [00:27:17]url: /json_proto [00:27:17]query_string will be loaded in cgi processing [00:27:17]execute_cgi json_proto POST (null) [00:27:17]execute_cgi path=json_proto method=POST [00:27:17]POST find Content-Length [00:27:17]Host: 172.17.52.196:8080 [00:27:17]Content-Length: 215 [00:27:17]Content-Type: application/json [00:27:17] [00:27:17]POST finish read [00:27:17]Found Content-Length = 215 [00:27:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:17]execute_script... [00:27:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:17]POST & json_proto [00:27:17]process_json_proto [00:27:17]json parsed OK: [00:27:17]protocol is kg_v1.0 [00:27:17]action value=get_value [00:27:17]process_action get_value [00:27:17]cmd_get_value [00:27:17]process_action get_value done [00:27:17]requested_data is exist [00:27:17]produce_requested_data [00:27:17]requested_item kkm.sn is exist - process it [00:27:17]requested_item kkm.ver is exist - process it [00:27:17]requested_item fm.sn is exist - process it [00:27:17]wFMCommunicate request_size=4 [00:27:17]MH_SAM_APDU [00:27:17]CAPDU: 80 11 00 00 [00:27:17]Write to MH i2c: E2 08 00 98 04 80 11 00 00 00 00 00 00 16 [00:27:17]Write i2c OK [00:27:17]MH_I2C_Read... [00:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:17]Read from MH i2c: E2 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 17 00 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 17 00 98 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 6D [00:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [00:27:17]wFMCommunicate OK [00:27:17]requested_item fd.num is exist - process it [00:27:17]SAM_PROTO_GetFieldsCounters [00:27:17]wFMCommunicate request_size=4 [00:27:17]MH_SAM_APDU [00:27:17]CAPDU: 80 13 00 00 [00:27:17]Write to MH i2c: E2 08 00 99 04 80 13 00 00 00 00 00 00 19 [00:27:17]Write i2c OK [00:27:17]MH_I2C_Read... [00:27:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:17]Read from MH i2c: E2 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 62 00 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 62 00 99 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CF 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [00:27: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CF 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:17]wFMCommunicate OK [00:27:17]SAM_PROTO_GetFieldsCounters done [00:27:17]requested_item shift.num is exist - process it [00:27:17]requested_item shift.opened is exist - process it [00:27:17]req_shift_opened [00:27:17]FM_GetShiftState [00:27:17]SAM_PROTO_GetShiftState [00:27:17]wFMCommunicate request_size=4 [00:27:17]MH_SAM_APDU [00:27:17]CAPDU: 80 13 01 00 [00:27:17]Write to MH i2c: E2 08 00 9A 04 80 13 01 00 00 00 00 00 1B [00:27:17]Write i2c OK [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 [00:27:17]MH_I2C_Read... [00:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:17]Read from MH i2c: E2 0E 00 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 0E 00 9A 04 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 AD [00:27:17]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [00:27:17]wFMCommunicate OK [00:27:17]SAM_PROTO_GetShiftState done [00:27:17]FM_GetShiftState done [00:27:17]req_shift_opened done [00:27:17]requested_item shift.open_date is exist - process it [00:27:17]req_shift_open_date [00:27:17]req_shift_open_date done [00:27:17]produce_requested_data done [00:27:17]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69839,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [00:27:17]process_action_free get_value [00:27:17]json_value_free [00:27:17]json_value_free done [00:27:17]process_json_proto returns [00:27:17]Send response to host [00:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69839,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [00:27:17]free response buf [00:27:17]execute_script done [00:27:17]execute_script returns [00:27:17]free content buf [00:27:17]Sock 7.Close socket [00:27:17]Sock 7.Thread stoped [00:27:17]accept exits with 9 [00:27:17]New connection [00:27:17]New thread 3066785124 created [00:27:17]Thread 3066641764 joined [00:27:17]Waiting for new connection... [00:27:17] Sock 9.Parse request [00:27:17]Sock 9.Check first char [00:27:17]Sock 9.First char is OK [00:27:17]request: POST /json_proto HTTP/1.0 [00:27:17]Method: POST [00:27:17]URL: /json_proto [00:27:17]Method is POST - this is cgi request [00:27:17]url: /json_proto [00:27:17]query_string will be loaded in cgi processing [00:27:17]execute_cgi json_proto POST (null) [00:27:17]execute_cgi path=json_proto method=POST [00:27:17]POST find Content-Length [00:27:17]Host: 172.17.52.196:8080 [00:27:17]Content-Length: 331 [00:27:17]Content-Type: application/json [00:27:17] [00:27:17]POST finish read [00:27:17]Found Content-Length = 331 [00:27:17]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:17]execute_script... [00:27:17]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:17]POST & json_proto [00:27:17]process_json_proto [00:27:17]json parsed OK: [00:27:17]protocol is kg_v1.0 [00:27:17]action value=get_value [00:27:17]process_action get_value [00:27:17]cmd_get_value [00:27:17]process_action get_value done [00:27:17]requested_data is exist [00:27:17]produce_requested_data [00:27:17]requested_item fm.sale.total is exist - process it [00:27:17]SAM_PROTO_GetFMData [00:27:17]wFMCommunicate request_size=4 [00:27:17]MH_SAM_APDU [00:27:17]CAPDU: 80 13 03 00 [00:27:17]Write to MH i2c: E2 08 00 9B 04 80 13 03 00 00 00 00 00 1E [00:27:17]Write i2c OK [00:27:17]MH_I2C_Read... [00:27:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:18]Read from MH i2c: E2 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 FD 00 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 FD 00 9B 04 00 C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 52 [00:27:18]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [00:27:18]wFMCommunicate OK [00:27:18]wFMCommunicate request_size=4 [00:27:18]MH_SAM_APDU [00:27:18]CAPDU: 80 17 00 00 [00:27:18]Write to MH i2c: E2 08 00 9C 04 80 17 00 00 00 00 00 00 20 [00:27:18]Write i2c OK [00:27:18]MH_I2C_Read... [00:27:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:18]Read from MH i2c: E2 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 FD 00 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 FD 00 9C 04 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 24 [00:27:18]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:27:18]wFMCommunicate OK [00:27:18]wFMCommunicate request_size=4 [00:27:18]MH_SAM_APDU [00:27:18]CAPDU: 80 17 00 00 [00:27:18]Write to MH i2c: E2 08 00 9D 04 80 17 00 00 00 00 00 00 21 [00:27:18]Write i2c OK [00:27:18]MH_I2C_Read... [00:27:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:18]Read from MH i2c: E2 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 FD 00 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 FD 00 9D 04 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 3F [00:27:18]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [00:27:18]wFMCommunicate OK [00:27:18]wFMCommunicate request_size=4 [00:27:18]MH_SAM_APDU [00:27:18]CAPDU: 80 17 00 00 [00:27:18]Write to MH i2c: E2 08 00 9E 04 80 17 00 00 00 00 00 00 22 [00:27:18]Write i2c OK [00:27:18]MH_I2C_Read... [00:27:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:19]Read from MH i2c: E2 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 FD 00 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 FD 00 9E 04 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 94 [00:27:19]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:19]wFMCommunicate OK [00:27:19]wFMCommunicate request_size=4 [00:27:19]MH_SAM_APDU [00:27:19]CAPDU: 80 17 00 00 [00:27:19]Write to MH i2c: E2 08 00 9F 04 80 17 00 00 00 00 00 00 23 [00:27:19]Write i2c OK [00:27:19]MH_I2C_Read... [00:27:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:27:19]Read from MH i2c: E2 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 E0 00 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 E0 00 9F 04 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:27:19]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:19]wFMCommunicate OK [00:27:19]SAM_PROTO_GetFMData done [00:27:19]requested_item fm.sale_refund.total is exist - process it [00:27:19]requested_item fm.buy.total is exist - process it [00:27:19]requested_item shift.sale.total is exist - process it [00:27:19]SAM_PROTO_GetShiftData [00:27:19]wFMCommunicate request_size=4 [00:27:19]MH_SAM_APDU [00:27:19]CAPDU: 80 13 02 00 [00:27:19]Write to MH i2c: E2 08 00 A0 04 80 13 02 00 00 00 00 00 22 [00:27:19]Write i2c OK [00:27:19]MH_I2C_Read... [00:27:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:20]Read from MH i2c: E2 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 FD 00 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 FD 00 A0 04 00 AE 04 AA 04 AA 04 6E 04 04 00 81 00 00 00 69 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7C 54 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 A9 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 8D [00:27:20]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 81 00 00 00 69 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7C 54 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 A9 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:27:20]wFMCommunicate OK [00:27:20]wFMCommunicate request_size=4 [00:27:20]MH_SAM_APDU [00:27:20]CAPDU: 80 17 00 00 [00:27:20]Write to MH i2c: E2 08 00 A1 04 80 17 00 00 00 00 00 00 25 [00:27:20]Write i2c OK [00:27:20]MH_I2C_Read... [00:27:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:20]Read from MH i2c: E2 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 FD 00 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 FD 00 A1 04 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 47 [00:27:20]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:27:20]wFMCommunicate OK [00:27:20]wFMCommunicate request_size=4 [00:27:20]MH_SAM_APDU [00:27:20]CAPDU: 80 17 00 00 [00:27:20]Write to MH i2c: E2 08 00 A2 04 80 17 00 00 00 00 00 00 26 [00:27:20]Write i2c OK [00:27:20]MH_I2C_Read... [00:27:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:20]Read from MH i2c: E2 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 FD 00 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 FD 00 A2 04 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 DD [00:27:20]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:27:20]wFMCommunicate OK [00:27:20]wFMCommunicate request_size=4 [00:27:20]MH_SAM_APDU [00:27:20]CAPDU: 80 17 00 00 [00:27:20]Write to MH i2c: E2 08 00 A3 04 80 17 00 00 00 00 00 00 27 [00:27:20]Write i2c OK [00:27:20]MH_I2C_Read... [00:27:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:21]Read from MH i2c: E2 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 FD 00 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 FD 00 A3 04 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 99 [00:27:21]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:27:21]wFMCommunicate OK [00:27:21]wFMCommunicate request_size=4 [00:27:21]MH_SAM_APDU [00:27:21]CAPDU: 80 17 00 00 [00:27:21]Write to MH i2c: E2 08 00 A4 04 80 17 00 00 00 00 00 00 28 [00:27:21]Write i2c OK [00:27:21]MH_I2C_Read... [00:27:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:27:21]Read from MH i2c: E2 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 CB 00 [00:27:21]MH_I2C_Read... [00:27:21]OFD Sender: No OFD packet to send [00:27:21]Read from MH i2c: E2 CB 00 A4 04 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 11 [00:27:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:21]wFMCommunicate OK [00:27:21]SAM_PROTO_GetShiftData done [00:27:21]requested_item shift.sale.total_cash is exist - process it [00:27:21]requested_item shift.sale_refund.total is exist - process it [00:27:21]requested_item shift.sale_refund.total_cash is exist - process it [00:27:21]requested_item shift.buy.total is exist - process it [00:27:21]requested_item shift.buy.total_cash is exist - process it [00:27:21]produce_requested_data done [00:27:21]produce_requested_data return {"fm.sale.total":20226131.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":32893.39,"shift.sale.total_cash":26104.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:27:21]process_action_free get_value [00:27:21]json_value_free [00:27:21]json_value_free done [00:27:21]process_json_proto returns [00:27:21]Send response to host [00:27:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20226131.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":32893.39,"shift.sale.total_cash":26104.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:27:21]free response buf [00:27:21]execute_script done [00:27:21]execute_script returns [00:27:21]free content buf [00:27:21]Sock 9.Close socket [00:27:21]Sock 9.Thread stoped [00:27:26]OFD Sender: No OFD packet to send [00:27:31]OFD Sender: No OFD packet to send [00:27:36]OFD Sender: No OFD packet to send [00:27:41]OFD Sender: No OFD packet to send [00:27:46]OFD Sender: No OFD packet to send [00:27:51]OFD Sender: No OFD packet to send [00:27:56]OFD Sender: No OFD packet to send [00:28:01]OFD Sender: No OFD packet to send [00:28:06]OFD Sender: No OFD packet to send [00:28:11]OFD Sender: No OFD packet to send [00:28:16]OFD Sender: No OFD packet to send [00:28:21]OFD Sender: No OFD packet to send [00:28:26]OFD Sender: No OFD packet to send [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:53]accept exits with 7 [00:28:53]New connection [00:28:53]New thread 3066641764 created [00:28:53]Thread 3066785124 joined [00:28:53]Waiting for new connection... [00:28:53] Sock 7.Parse request [00:28:53]Sock 7.Check first char [00:28:53]Sock 7.First char is OK [00:28:53]request: POST /json_proto HTTP/1.0 [00:28:53]Method: POST [00:28:53]URL: /json_proto [00:28:53]Method is POST - this is cgi request [00:28:53]url: /json_proto [00:28:53]query_string will be loaded in cgi processing [00:28:53]execute_cgi json_proto POST (null) [00:28:53]execute_cgi path=json_proto method=POST [00:28:53]POST find Content-Length [00:28:53]Host: 172.17.52.196:8080 [00:28:53]Content-Length: 215 [00:28:53]Content-Type: application/json [00:28:53] [00:28:53]POST finish read [00:28:53]Found Content-Length = 215 [00:28:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:53]execute_script... [00:28:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:53]POST & json_proto [00:28:53]process_json_proto [00:28:53]json parsed OK: [00:28:53]protocol is kg_v1.0 [00:28:53]action value=get_value [00:28:53]process_action get_value [00:28:53]cmd_get_value [00:28:53]process_action get_value done [00:28:53]requested_data is exist [00:28:53]produce_requested_data [00:28:53]requested_item kkm.sn is exist - process it [00:28:53]requested_item kkm.ver is exist - process it [00:28:53]requested_item fm.sn is exist - process it [00:28:53]wFMCommunicate request_size=4 [00:28:53]MH_SAM_APDU [00:28:53]CAPDU: 80 11 00 00 [00:28:53]Write to MH i2c: E2 08 00 A5 04 80 11 00 00 00 00 00 00 23 [00:28:53]Write i2c OK [00:28:53]MH_I2C_Read... [00:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:53]Read from MH i2c: E2 [00:28:53]MH_I2C_Read... [00:28:53]Read from MH i2c: E2 17 00 [00:28:53]MH_I2C_Read... [00:28:53]Read from MH i2c: E2 17 00 A5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 7A [00:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [00:28:53]wFMCommunicate OK [00:28:53]requested_item fd.num is exist - process it [00:28:53]SAM_PROTO_GetFieldsCounters [00:28:53]wFMCommunicate request_size=4 [00:28:53]MH_SAM_APDU [00:28:53]CAPDU: 80 13 00 00 [00:28:53]Write to MH i2c: E2 08 00 A6 04 80 13 00 00 00 00 00 00 26 [00:28:53]Write i2c OK [00:28:53]MH_I2C_Read... [00:28:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:28:53]Read from MH i2c: E2 [00:28:53]MH_I2C_Read... [00:28:53]Read from MH i2c: E2 62 00 [00:28:53]MH_I2C_Read... [00:28:53]Read from MH i2c: E2 62 00 A6 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CF 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [00:28: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CF 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:28:53]wFMCommunicate OK [00:28:53]SAM_PROTO_GetFieldsCounters done [00:28:53]requested_item shift.num is exist - process it [00:28:53]requested_item shift.opened is exist - process it [00:28:53]req_shift_opened [00:28:53]FM_GetShiftState [00:28:53]SAM_PROTO_GetShiftState [00:28:53]wFMCommunicate request_size=4 [00:28:53]MH_SAM_APDU [00:28:53]CAPDU: 80 13 01 00 [00:28:53]Write to MH i2c: E2 08 00 A7 04 80 13 01 00 00 00 00 00 28 [00:28:53]Write i2c OK [00:28:53]MH_I2C_Read... [00:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:53]Read from MH i2c: E2 [00:28:53]MH_I2C_Read... [00:28:53]Read from MH i2c: E2 0E 00 [00:28:53]MH_I2C_Read... [00:28:53]Read from MH i2c: E2 0E 00 A7 04 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 BA [00:28:53]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [00:28:53]wFMCommunicate OK [00:28:53]SAM_PROTO_GetShiftState done [00:28:53]FM_GetShiftState done [00:28:53]req_shift_opened done [00:28:53]requested_item shift.open_date is exist - process it [00:28:53]req_shift_open_date [00:28:53]req_shift_open_date done [00:28:53]produce_requested_data done [00:28:53]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69839,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [00:28:53]process_action_free get_value [00:28:53]json_value_free [00:28:53]json_value_free done [00:28:53]process_json_proto returns [00:28:53]Send response to host [00:28:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69839,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [00:28:53]free response buf [00:28:53]execute_script done [00:28:53]execute_script returns [00:28:53]free content buf [00:28:53]Sock 7.Close socket [00:28:53]Sock 7.Thread stoped [00:28:53]accept exits with 9 [00:28:53]New connection [00:28:53]New thread 3066785124 created [00:28:53]Thread 3066641764 joined [00:28:53]Waiting for new connection... [00:28:53] Sock 9.Parse request [00:28:53]Sock 9.Check first char [00:28:53]Sock 9.First char is OK [00:28:53]request: POST /json_proto HTTP/1.0 [00:28:53]Method: POST [00:28:53]URL: /json_proto [00:28:53]Method is POST - this is cgi request [00:28:53]url: /json_proto [00:28:53]query_string will be loaded in cgi processing [00:28:53]execute_cgi json_proto POST (null) [00:28:53]execute_cgi path=json_proto method=POST [00:28:53]POST find Content-Length [00:28:53]Host: 172.17.52.196:8080 [00:28:53]Content-Length: 331 [00:28:53]Content-Type: application/json [00:28:53] [00:28:53]POST finish read [00:28:53]Found Content-Length = 331 [00:28:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:28:53]execute_script... [00:28:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:28:53]POST & json_proto [00:28:53]process_json_proto [00:28:53]json parsed OK: [00:28:53]protocol is kg_v1.0 [00:28:53]action value=get_value [00:28:53]process_action get_value [00:28:53]cmd_get_value [00:28:53]process_action get_value done [00:28:53]requested_data is exist [00:28:53]produce_requested_data [00:28:53]requested_item fm.sale.total is exist - process it [00:28:53]SAM_PROTO_GetFMData [00:28:53]wFMCommunicate request_size=4 [00:28:53]MH_SAM_APDU [00:28:53]CAPDU: 80 13 03 00 [00:28:53]Write to MH i2c: E2 08 00 A8 04 80 13 03 00 00 00 00 00 2B [00:28:53]Write i2c OK [00:28:53]MH_I2C_Read... [00:28:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:28:54]Read from MH i2c: E2 [00:28:54]MH_I2C_Read... [00:28:54]Read from MH i2c: E2 FD 00 [00:28:54]MH_I2C_Read... [00:28:54]Read from MH i2c: E2 FD 00 A8 04 00 C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 5F [00:28:54]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [00:28:54]wFMCommunicate OK [00:28:54]wFMCommunicate request_size=4 [00:28:54]MH_SAM_APDU [00:28:54]CAPDU: 80 17 00 00 [00:28:54]Write to MH i2c: E2 08 00 A9 04 80 17 00 00 00 00 00 00 2D [00:28:54]Write i2c OK [00:28:54]MH_I2C_Read... [00:28:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:28:54]Read from MH i2c: E2 [00:28:54]MH_I2C_Read... [00:28:54]Read from MH i2c: E2 FD 00 [00:28:54]MH_I2C_Read... [00:28:54]Read from MH i2c: E2 FD 00 A9 04 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 31 [00:28:54]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:28:54]wFMCommunicate OK [00:28:54]wFMCommunicate request_size=4 [00:28:54]MH_SAM_APDU [00:28:54]CAPDU: 80 17 00 00 [00:28:54]Write to MH i2c: E2 08 00 AA 04 80 17 00 00 00 00 00 00 2E [00:28:54]Write i2c OK [00:28:54]MH_I2C_Read... [00:28:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:28:54]Read from MH i2c: E2 [00:28:54]MH_I2C_Read... [00:28:54]Read from MH i2c: E2 FD 00 [00:28:54]MH_I2C_Read... [00:28:54]Read from MH i2c: E2 FD 00 AA 04 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 4C [00:28:54]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [00:28:54]wFMCommunicate OK [00:28:54]wFMCommunicate request_size=4 [00:28:54]MH_SAM_APDU [00:28:54]CAPDU: 80 17 00 00 [00:28:54]Write to MH i2c: E2 08 00 AB 04 80 17 00 00 00 00 00 00 2F [00:28:54]Write i2c OK [00:28:54]MH_I2C_Read... [00:28:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:28:55]Read from MH i2c: E2 [00:28:55]MH_I2C_Read... [00:28:55]Read from MH i2c: E2 FD 00 [00:28:55]MH_I2C_Read... [00:28:55]Read from MH i2c: E2 FD 00 AB 04 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A1 [00:28:55]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:28:55]wFMCommunicate OK [00:28:55]wFMCommunicate request_size=4 [00:28:55]MH_SAM_APDU [00:28:55]CAPDU: 80 17 00 00 [00:28:55]Write to MH i2c: E2 08 00 AC 04 80 17 00 00 00 00 00 00 30 [00:28:55]Write i2c OK [00:28:55]MH_I2C_Read... [00:28:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:28:55]Read from MH i2c: E2 [00:28:55]MH_I2C_Read... [00:28:55]Read from MH i2c: E2 E0 00 [00:28:55]MH_I2C_Read... [00:28:55]Read from MH i2c: E2 E0 00 AC 04 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1A [00:28:55]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:28:55]wFMCommunicate OK [00:28:55]SAM_PROTO_GetFMData done [00:28:55]requested_item fm.sale_refund.total is exist - process it [00:28:55]requested_item fm.buy.total is exist - process it [00:28:55]requested_item shift.sale.total is exist - process it [00:28:55]SAM_PROTO_GetShiftData [00:28:55]wFMCommunicate request_size=4 [00:28:55]MH_SAM_APDU [00:28:55]CAPDU: 80 13 02 00 [00:28:55]Write to MH i2c: E2 08 00 AD 04 80 13 02 00 00 00 00 00 2F [00:28:55]Write i2c OK [00:28:55]MH_I2C_Read... [00:28:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:28:55]Read from MH i2c: E2 [00:28:55]MH_I2C_Read... [00:28:55]Read from MH i2c: E2 FD 00 [00:28:55]MH_I2C_Read... [00:28:55]Read from MH i2c: E2 FD 00 AD 04 00 AE 04 AA 04 AA 04 6E 04 04 00 81 00 00 00 69 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7C 54 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 A9 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 9A [00:28:55]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 81 00 00 00 69 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7C 54 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 A9 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:28:55]wFMCommunicate OK [00:28:55]wFMCommunicate request_size=4 [00:28:55]MH_SAM_APDU [00:28:55]CAPDU: 80 17 00 00 [00:28:55]Write to MH i2c: E2 08 00 AE 04 80 17 00 00 00 00 00 00 32 [00:28:55]Write i2c OK [00:28:55]MH_I2C_Read... [00:28:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:28:56]Read from MH i2c: E2 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 FD 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 FD 00 AE 04 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 54 [00:28:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:28:56]wFMCommunicate OK [00:28:56]wFMCommunicate request_size=4 [00:28:56]MH_SAM_APDU [00:28:56]CAPDU: 80 17 00 00 [00:28:56]Write to MH i2c: E2 08 00 AF 04 80 17 00 00 00 00 00 00 33 [00:28:56]Write i2c OK [00:28:56]MH_I2C_Read... [00:28:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:28:56]Read from MH i2c: E2 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 FD 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 FD 00 AF 04 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 EA [00:28:56]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:28:56]wFMCommunicate OK [00:28:56]wFMCommunicate request_size=4 [00:28:56]MH_SAM_APDU [00:28:56]CAPDU: 80 17 00 00 [00:28:56]Write to MH i2c: E2 08 00 B0 04 80 17 00 00 00 00 00 00 34 [00:28:56]Write i2c OK [00:28:56]MH_I2C_Read... [00:28:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:28:56]Read from MH i2c: E2 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 FD 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 FD 00 B0 04 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 A6 [00:28:56]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:28:56]wFMCommunicate OK [00:28:56]wFMCommunicate request_size=4 [00:28:56]MH_SAM_APDU [00:28:56]CAPDU: 80 17 00 00 [00:28:56]Write to MH i2c: E2 08 00 B1 04 80 17 00 00 00 00 00 00 35 [00:28:56]OFD Sender: No OFD packet to send [00:28:56]Write i2c OK [00:28:56]MH_I2C_Read... [00:28:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:28:56]Read from MH i2c: E2 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 CB 00 [00:28:56]MH_I2C_Read... [00:28:56]Read from MH i2c: E2 CB 00 B1 04 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1E [00:28:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:28:56]wFMCommunicate OK [00:28:56]SAM_PROTO_GetShiftData done [00:28:56]requested_item shift.sale.total_cash is exist - process it [00:28:56]requested_item shift.sale_refund.total is exist - process it [00:28:56]requested_item shift.sale_refund.total_cash is exist - process it [00:28:56]requested_item shift.buy.total is exist - process it [00:28:56]requested_item shift.buy.total_cash is exist - process it [00:28:56]produce_requested_data done [00:28:56]produce_requested_data return {"fm.sale.total":20226131.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":32893.39,"shift.sale.total_cash":26104.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:28:56]process_action_free get_value [00:28:56]json_value_free [00:28:56]json_value_free done [00:28:56]process_json_proto returns [00:28:56]Send response to host [00:28:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20226131.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":32893.39,"shift.sale.total_cash":26104.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:28:56]free response buf [00:28:56]execute_script done [00:28:56]execute_script returns [00:28:56]free content buf [00:28:56]Sock 9.Close socket [00:28:56]Sock 9.Thread stoped [00:28:57]accept exits with 7 [00:28:57]New connection [00:28:57]New thread 3066641764 created [00:28:57]Thread 3066785124 joined [00:28:57]Waiting for new connection... [00:28:57] Sock 7.Parse request [00:28:57]Sock 7.Check first char [00:28:57]Sock 7.First char is OK [00:28:57]request: POST /json_proto HTTP/1.0 [00:28:57]Method: POST [00:28:57]URL: /json_proto [00:28:57]Method is POST - this is cgi request [00:28:57]url: /json_proto [00:28:57]query_string will be loaded in cgi processing [00:28:57]execute_cgi json_proto POST (null) [00:28:57]execute_cgi path=json_proto method=POST [00:28:57]POST find Content-Length [00:28:57]Host: 172.17.52.196:8080 [00:28:57]Content-Length: 331 [00:28:57]Content-Type: application/json [00:28:57] [00:28:57]POST finish read [00:28:57]Found Content-Length = 331 [00:28:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:28:57]execute_script... [00:28:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:28:57]POST & json_proto [00:28:57]process_json_proto [00:28:57]json parsed OK: [00:28:57]protocol is kg_v1.0 [00:28:57]action value=get_value [00:28:57]process_action get_value [00:28:57]cmd_get_value [00:28:57]process_action get_value done [00:28:57]requested_data is exist [00:28:57]produce_requested_data [00:28:57]requested_item fm.sale.total is exist - process it [00:28:57]SAM_PROTO_GetFMData [00:28:57]wFMCommunicate request_size=4 [00:28:57]MH_SAM_APDU [00:28:57]CAPDU: 80 13 03 00 [00:28:57]Write to MH i2c: E2 08 00 B2 04 80 13 03 00 00 00 00 00 35 [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:28:57]Read from MH i2c: E2 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 FD 00 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 FD 00 B2 04 00 C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 69 [00:28:57]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [00:28:57]wFMCommunicate OK [00:28:57]wFMCommunicate request_size=4 [00:28:57]MH_SAM_APDU [00:28:57]CAPDU: 80 17 00 00 [00:28:57]Write to MH i2c: E2 08 00 B3 04 80 17 00 00 00 00 00 00 37 [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:28:57]Read from MH i2c: E2 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 FD 00 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 FD 00 B3 04 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 3B [00:28:57]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:28:57]wFMCommunicate OK [00:28:57]wFMCommunicate request_size=4 [00:28:57]MH_SAM_APDU [00:28:57]CAPDU: 80 17 00 00 [00:28:57]Write to MH i2c: E2 08 00 B4 04 80 17 00 00 00 00 00 00 38 [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:28:58]Read from MH i2c: E2 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 FD 00 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 FD 00 B4 04 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 56 [00:28:58]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [00:28:58]wFMCommunicate OK [00:28:58]wFMCommunicate request_size=4 [00:28:58]MH_SAM_APDU [00:28:58]CAPDU: 80 17 00 00 [00:28:58]Write to MH i2c: E2 08 00 B5 04 80 17 00 00 00 00 00 00 39 [00:28:58]Write i2c OK [00:28:58]MH_I2C_Read... [00:28:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:28:58]Read from MH i2c: E2 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 FD 00 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 FD 00 B5 04 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AB [00:28:58]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:28:58]wFMCommunicate OK [00:28:58]wFMCommunicate request_size=4 [00:28:58]MH_SAM_APDU [00:28:58]CAPDU: 80 17 00 00 [00:28:58]Write to MH i2c: E2 08 00 B6 04 80 17 00 00 00 00 00 00 3A [00:28:58]Write i2c OK [00:28:58]MH_I2C_Read... [00:28:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:28:58]Read from MH i2c: E2 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 E0 00 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 E0 00 B6 04 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 24 [00:28:58]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:28:59]wFMCommunicate OK [00:28:59]SAM_PROTO_GetFMData done [00:28:59]requested_item fm.sale_refund.total is exist - process it [00:28:59]requested_item fm.buy.total is exist - process it [00:28:59]requested_item shift.sale.total is exist - process it [00:28:59]SAM_PROTO_GetShiftData [00:28:59]wFMCommunicate request_size=4 [00:28:59]MH_SAM_APDU [00:28:59]CAPDU: 80 13 02 00 [00:28:59]Write to MH i2c: E2 08 00 B7 04 80 13 02 00 00 00 00 00 39 [00:28:59]Write i2c OK [00:28:59]MH_I2C_Read... [00:28:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:28:59]Read from MH i2c: E2 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 FD 00 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 FD 00 B7 04 00 AE 04 AA 04 AA 04 6E 04 04 00 81 00 00 00 69 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7C 54 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 A9 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 A4 [00:28:59]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 81 00 00 00 69 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7C 54 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 A9 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:28:59]wFMCommunicate OK [00:28:59]wFMCommunicate request_size=4 [00:28:59]MH_SAM_APDU [00:28:59]CAPDU: 80 17 00 00 [00:28:59]Write to MH i2c: E2 08 00 B8 04 80 17 00 00 00 00 00 00 3C [00:28:59]Write i2c OK [00:28:59]MH_I2C_Read... [00:28:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:28:59]Read from MH i2c: E2 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 FD 00 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 FD 00 B8 04 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 5E [00:28:59]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:29:00]wFMCommunicate OK [00:29:00]wFMCommunicate request_size=4 [00:29:00]MH_SAM_APDU [00:29:00]CAPDU: 80 17 00 00 [00:29:00]Write to MH i2c: E2 08 00 B9 04 80 17 00 00 00 00 00 00 3D [00:29:00]Write i2c OK [00:29:00]MH_I2C_Read... [00:29:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:00]Read from MH i2c: E2 [00:29:00]MH_I2C_Read... [00:29:00]Read from MH i2c: E2 FD 00 [00:29:00]MH_I2C_Read... [00:29:00]Read from MH i2c: E2 FD 00 B9 04 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 F4 [00:29:00]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:29:00]wFMCommunicate OK [00:29:00]wFMCommunicate request_size=4 [00:29:00]MH_SAM_APDU [00:29:00]CAPDU: 80 17 00 00 [00:29:00]Write to MH i2c: E2 08 00 BA 04 80 17 00 00 00 00 00 00 3E [00:29:00]Write i2c OK [00:29:00]MH_I2C_Read... [00:29:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:00]Read from MH i2c: E2 [00:29:00]MH_I2C_Read... [00:29:00]Read from MH i2c: E2 FD 00 [00:29:00]MH_I2C_Read... [00:29:00]Read from MH i2c: E2 FD 00 BA 04 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 B0 [00:29:00]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:29:00]wFMCommunicate OK [00:29:00]wFMCommunicate request_size=4 [00:29:00]MH_SAM_APDU [00:29:00]CAPDU: 80 17 00 00 [00:29:00]Write to MH i2c: E2 08 00 BB 04 80 17 00 00 00 00 00 00 3F [00:29:00]Write i2c OK [00:29:00]MH_I2C_Read... [00:29:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:29:01]Read from MH i2c: E2 [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: E2 CB 00 [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: E2 CB 00 BB 04 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 28 [00:29:01]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:01]wFMCommunicate OK [00:29:01]SAM_PROTO_GetShiftData done [00:29:01]requested_item shift.sale.total_cash is exist - process it [00:29:01]requested_item shift.sale_refund.total is exist - process it [00:29:01]requested_item shift.sale_refund.total_cash is exist - process it [00:29:01]requested_item shift.buy.total is exist - process it [00:29:01]requested_item shift.buy.total_cash is exist - process it [00:29:01]produce_requested_data done [00:29:01]produce_requested_data return {"fm.sale.total":20226131.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":32893.39,"shift.sale.total_cash":26104.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:29:01]process_action_free get_value [00:29:01]json_value_free [00:29:01]json_value_free done [00:29:01]process_json_proto returns [00:29:01]Send response to host [00:29:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20226131.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":32893.39,"shift.sale.total_cash":26104.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:29:01]free response buf [00:29:01]execute_script done [00:29:01]execute_script returns [00:29:01]free content buf [00:29:01]Sock 7.Close socket [00:29:01]Sock 7.Thread stoped [00:29:01]accept exits with 9 [00:29:01]New connection [00:29:01]New thread 3066785124 created [00:29:01]Thread 3066641764 joined [00:29:01]Waiting for new connection... [00:29:01] Sock 9.Parse request [00:29:01]Sock 9.Check first char [00:29:01]Sock 9.First char is OK [00:29:01]request: POST /json_proto HTTP/1.0 [00:29:01]Method: POST [00:29:01]URL: /json_proto [00:29:01]Method is POST - this is cgi request [00:29:01]url: /json_proto [00:29:01]query_string will be loaded in cgi processing [00:29:01]execute_cgi json_proto POST (null) [00:29:01]execute_cgi path=json_proto method=POST [00:29:01]POST find Content-Length [00:29:01]Host: 172.17.52.196:8080 [00:29:01]Content-Length: 264 [00:29:01]Content-Type: application/json [00:29:01] [00:29:01]POST finish read [00:29:01]Found Content-Length = 264 [00:29:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u043D\u0430\u0441 \u0443\u0443\u043B\u0443 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:01]execute_script... [00:29:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u043D\u0430\u0441 \u0443\u0443\u043B\u0443 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:01]POST & json_proto [00:29:01]process_json_proto [00:29:01]json parsed OK: [00:29:01]protocol is kg_v1.0 [00:29:01]action value=x_report [00:29:01]process_action x_report [00:29:01]cmd_x_report [00:29:01]MH_GetDate [00:29:01]Write to MH i2c: F0 00 00 BC 04 AF [00:29:01]Write i2c OK [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: F0 [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: F0 09 00 [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: F0 09 00 BC 04 00 4E A0 15 67 60 05 E4 66 D1 [00:29:01]GetLastDocTimeStamp 1729469043 [00:29:01]current date 1729470542 [00:29:01]FM_GetShiftState [00:29:01]SAM_PROTO_GetShiftState [00:29:01]wFMCommunicate request_size=4 [00:29:01]MH_SAM_APDU [00:29:01]CAPDU: 80 13 01 00 [00:29:01]Write to MH i2c: E2 08 00 BD 04 80 13 01 00 00 00 00 00 3E [00:29:01]Write i2c OK [00:29:01]MH_I2C_Read... [00:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:01]Read from MH i2c: E2 [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: E2 0E 00 [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: E2 0E 00 BD 04 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 D0 [00:29:01]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [00:29:01]wFMCommunicate OK [00:29:01]SAM_PROTO_GetShiftState done [00:29:01]FM_GetShiftState done [00:29:01]KKMCreateXReportDocument [00:29:01]Load OK [00:29:01]Malloc new data [00:29:01]MH_GetDate [00:29:01]Write to MH i2c: F0 00 00 BE 04 B1 [00:29:01]Write i2c OK [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: F0 [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: F0 09 00 [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: F0 09 00 BE 04 00 4E A0 15 67 60 05 E4 66 D3 [00:29:01]Malloc new data [00:29:01]Malloc new data [00:29:01]wFMCommunicate request_size=4 [00:29:01]MH_SAM_APDU [00:29:01]CAPDU: 80 11 00 00 [00:29:01]Write to MH i2c: E2 08 00 BF 04 80 11 00 00 00 00 00 00 3D [00:29:01]Write i2c OK [00:29:01]MH_I2C_Read... [00:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:01]Read from MH i2c: E2 [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: E2 17 00 [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: E2 17 00 BF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 94 [00:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [00:29:01]wFMCommunicate OK [00:29:01]SAM_PROTO_GetFieldsCounters [00:29:01]wFMCommunicate request_size=4 [00:29:01]MH_SAM_APDU [00:29:01]CAPDU: 80 13 00 00 [00:29:01]Write to MH i2c: E2 08 00 C0 04 80 13 00 00 00 00 00 00 40 [00:29:01]Write i2c OK [00:29:01]MH_I2C_Read... [00:29:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:01]Read from MH i2c: E2 [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: E2 62 00 [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: E2 62 00 C0 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CF 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [00:29: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CF 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:01]wFMCommunicate OK [00:29:01]SAM_PROTO_GetFieldsCounters done [00:29:01]Malloc new data [00:29:01]Malloc new data [00:29:01]Malloc new data [00:29:01]KKMCreateXReportDocument OK [00:29:01]KKMSetXReportData OK [00:29:01]KKMPrepareXReportFMData [00:29:01]SAM_PROTO_GetShiftData [00:29:01]wFMCommunicate request_size=4 [00:29:01]MH_SAM_APDU [00:29:01]CAPDU: 80 13 02 00 [00:29:01]Write to MH i2c: E2 08 00 C1 04 80 13 02 00 00 00 00 00 43 [00:29:01]Write i2c OK [00:29:01]MH_I2C_Read... [00:29:01]OFD Sender: No OFD packet to send [00:29:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:01]Read from MH i2c: E2 [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: E2 FD 00 [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: E2 FD 00 C1 04 00 AE 04 AA 04 AA 04 6E 04 04 00 81 00 00 00 69 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7C 54 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 A9 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 AE [00:29:02]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 81 00 00 00 69 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7C 54 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 A9 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:29:02]wFMCommunicate OK [00:29:02]wFMCommunicate request_size=4 [00:29:02]MH_SAM_APDU [00:29:02]CAPDU: 80 17 00 00 [00:29:02]Write to MH i2c: E2 08 00 C2 04 80 17 00 00 00 00 00 00 46 [00:29:02]Write i2c OK [00:29:02]MH_I2C_Read... [00:29:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:02]Read from MH i2c: E2 [00:29:02]MH_I2C_Read... [00:29:02]Read from MH i2c: E2 FD 00 [00:29:02]MH_I2C_Read... [00:29:02]Read from MH i2c: E2 FD 00 C2 04 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 68 [00:29:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:29:02]wFMCommunicate OK [00:29:02]wFMCommunicate request_size=4 [00:29:02]MH_SAM_APDU [00:29:02]CAPDU: 80 17 00 00 [00:29:02]Write to MH i2c: E2 08 00 C3 04 80 17 00 00 00 00 00 00 47 [00:29:02]Write i2c OK [00:29:02]MH_I2C_Read... [00:29:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:02]Read from MH i2c: E2 [00:29:02]MH_I2C_Read... [00:29:02]Read from MH i2c: E2 FD 00 [00:29:02]MH_I2C_Read... [00:29:02]Read from MH i2c: E2 FD 00 C3 04 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 FE [00:29:02]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:29:02]wFMCommunicate OK [00:29:02]wFMCommunicate request_size=4 [00:29:02]MH_SAM_APDU [00:29:02]CAPDU: 80 17 00 00 [00:29:02]Write to MH i2c: E2 08 00 C4 04 80 17 00 00 00 00 00 00 48 [00:29:02]Write i2c OK [00:29:02]MH_I2C_Read... [00:29:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:03]Read from MH i2c: E2 [00:29:03]MH_I2C_Read... [00:29:03]Read from MH i2c: E2 FD 00 [00:29:03]MH_I2C_Read... [00:29:03]Read from MH i2c: E2 FD 00 C4 04 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 BA [00:29:03]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:29:03]wFMCommunicate OK [00:29:03]wFMCommunicate request_size=4 [00:29:03]MH_SAM_APDU [00:29:03]CAPDU: 80 17 00 00 [00:29:03]Write to MH i2c: E2 08 00 C5 04 80 17 00 00 00 00 00 00 49 [00:29:03]Write i2c OK [00:29:03]MH_I2C_Read... [00:29:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:29:03]Read from MH i2c: E2 [00:29:03]MH_I2C_Read... [00:29:03]Read from MH i2c: E2 CB 00 [00:29:03]MH_I2C_Read... [00:29:03]Read from MH i2c: E2 CB 00 C5 04 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 32 [00:29:03]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:03]wFMCommunicate OK [00:29:03]SAM_PROTO_GetShiftData done [00:29:03]1194 (1194) - счетчики итогов смены [00:29:03] 1134 (4) - 129 - количество чеков со всеми признаками расчетов [00:29:03] 1129 (155) - счетчики операций «приход» [00:29:03] 1135 (4) - 129 - количество чеков по признаку расчетов [00:29:03] 1201 (3) - 32893.39 - общая итоговая сумма в чеках [00:29:03] 1136 (3) - 26104.00 - итоговая сумма в чеках наличными [00:29:03] 1138 (3) - 6789.39 - итоговая сумма в чеках безналичными [00:29:03] 1024 (122) - суммы налогов [00:29:03] 1006 (9) - суммы НДС [00:29:03] 1010 (1) - 0% - код ставки НДС [00:29:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:03] 1006 (12) - суммы НДС [00:29:03] 1010 (1) - 12% - код ставки НДС [00:29:03] 1011 (3) - 3493.08 - сумма НДС по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 0% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:03] 1007 (11) - суммы НСП [00:29:03] 1014 (1) - 1% - код ставки НСП [00:29:03] 1015 (2) - 290.97 - сумма НСП по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 2% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 3% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 5% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 0,50% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 1,50% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:03] 1130 (141) - счетчики операций «возврат прихода» [00:29:03] 1135 (4) - 0 - количество чеков по признаку расчетов [00:29:03] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:29:03] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:29:03] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:29:03] 1024 (117) - суммы налогов [00:29:03] 1006 (9) - суммы НДС [00:29:03] 1010 (1) - 0% - код ставки НДС [00:29:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:03] 1006 (9) - суммы НДС [00:29:03] 1010 (1) - 12% - код ставки НДС [00:29:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 0% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 1% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 2% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 3% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 5% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 0,50% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 1,50% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:03] 1131 (141) - счетчики операций «расход» [00:29:03] 1135 (4) - 0 - количество чеков по признаку расчетов [00:29:03] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:29:03] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:29:03] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:29:03] 1024 (117) - суммы налогов [00:29:03] 1006 (9) - суммы НДС [00:29:03] 1010 (1) - 0% - код ставки НДС [00:29:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:03] 1006 (9) - суммы НДС [00:29:03] 1010 (1) - 12% - код ставки НДС [00:29:03] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 0% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 1% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 2% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 3% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 5% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:03] 1007 (9) - суммы НСП [00:29:03] 1014 (1) - 0,50% - код ставки НСП [00:29:03] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:04] 1007 (9) - суммы НСП [00:29:04] 1014 (1) - 1,50% - код ставки НСП [00:29:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:04] 1132 (141) - счетчики операций «возврат расхода» [00:29:04] 1135 (4) - 0 - количество чеков по признаку расчетов [00:29:04] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:29:04] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:29:04] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:29:04] 1024 (117) - суммы налогов [00:29:04] 1006 (9) - суммы НДС [00:29:04] 1010 (1) - 0% - код ставки НДС [00:29:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:04] 1006 (9) - суммы НДС [00:29:04] 1010 (1) - 12% - код ставки НДС [00:29:04] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:04] 1007 (9) - суммы НСП [00:29:04] 1014 (1) - 0% - код ставки НСП [00:29:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:04] 1007 (9) - суммы НСП [00:29:04] 1014 (1) - 1% - код ставки НСП [00:29:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:04] 1007 (9) - суммы НСП [00:29:04] 1014 (1) - 2% - код ставки НСП [00:29:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:04] 1007 (9) - суммы НСП [00:29:04] 1014 (1) - 3% - код ставки НСП [00:29:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:04] 1007 (9) - суммы НСП [00:29:04] 1014 (1) - 5% - код ставки НСП [00:29:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:04] 1007 (9) - суммы НСП [00:29:04] 1014 (1) - 0,50% - код ставки НСП [00:29:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:04] 1007 (9) - суммы НСП [00:29:04] 1014 (1) - 1,50% - код ставки НСП [00:29:04] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:04] 1133 (588) - - счетчики коррекции - не используются [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1194 (04AA) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1134 (046E) [00:29:04]Malloc new data [00:29:04]Processing tag 1129 (0469) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1135 (046F) [00:29:04]Malloc new data [00:29:04]Processing tag 1201 (04B1) [00:29:04]Malloc new data [00:29:04]Processing tag 1136 (0470) [00:29:04]Malloc new data [00:29:04]Processing tag 1138 (0472) [00:29:04]Malloc new data [00:29:04]Processing tag 1024 (0400) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1006 (03EE) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1010 (03F2) [00:29:04]Malloc new data [00:29:04]Processing tag 1011 (03F3) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1006 (03EE) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1010 (03F2) [00:29:04]Malloc new data [00:29:04]Processing tag 1011 (03F3) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]SetTLVBufToDocument err=0 [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1130 (046A) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1135 (046F) [00:29:04]Malloc new data [00:29:04]Processing tag 1201 (04B1) [00:29:04]Malloc new data [00:29:04]Processing tag 1136 (0470) [00:29:04]Malloc new data [00:29:04]Processing tag 1138 (0472) [00:29:04]Malloc new data [00:29:04]Processing tag 1024 (0400) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1006 (03EE) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1010 (03F2) [00:29:04]Malloc new data [00:29:04]Processing tag 1011 (03F3) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1006 (03EE) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1010 (03F2) [00:29:04]Malloc new data [00:29:04]Processing tag 1011 (03F3) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]SetTLVBufToDocument err=0 [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1131 (046B) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1135 (046F) [00:29:04]Malloc new data [00:29:04]Processing tag 1201 (04B1) [00:29:04]Malloc new data [00:29:04]Processing tag 1136 (0470) [00:29:04]Malloc new data [00:29:04]Processing tag 1138 (0472) [00:29:04]Malloc new data [00:29:04]Processing tag 1024 (0400) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1006 (03EE) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1010 (03F2) [00:29:04]Malloc new data [00:29:04]Processing tag 1011 (03F3) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1006 (03EE) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1010 (03F2) [00:29:04]Malloc new data [00:29:04]Processing tag 1011 (03F3) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]SetTLVBufToDocument err=0 [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1132 (046C) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1135 (046F) [00:29:04]Malloc new data [00:29:04]Processing tag 1201 (04B1) [00:29:04]Malloc new data [00:29:04]Processing tag 1136 (0470) [00:29:04]Malloc new data [00:29:04]Processing tag 1138 (0472) [00:29:04]Malloc new data [00:29:04]Processing tag 1024 (0400) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1006 (03EE) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1010 (03F2) [00:29:04]Malloc new data [00:29:04]Processing tag 1011 (03F3) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1006 (03EE) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1010 (03F2) [00:29:04]Malloc new data [00:29:04]Processing tag 1011 (03F3) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1007 (03EF) [00:29:04]Load OK [00:29:04]SetTLVBufToDocument [00:29:04]Processing tag 1014 (03F6) [00:29:04]Malloc new data [00:29:04]Processing tag 1015 (03F7) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]SetTLVBufToDocument err=0 [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Processing tag 1133 (046D) [00:29:04]Malloc new data [00:29:04]SetTLVBufToDocument err=0 [00:29:04]SetTLVBufToDocument err=0 [00:29:04]Malloc new data [00:29:04]SAM_PROTO_GetFMData [00:29:04]wFMCommunicate request_size=4 [00:29:04]MH_SAM_APDU [00:29:04]CAPDU: 80 13 03 00 [00:29:04]Write to MH i2c: E2 08 00 C6 04 80 13 03 00 00 00 00 00 49 [00:29:04]Write i2c OK [00:29:04]MH_I2C_Read... [00:29:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:05]Read from MH i2c: E2 [00:29:05]MH_I2C_Read... [00:29:05]Read from MH i2c: E2 FD 00 [00:29:05]MH_I2C_Read... [00:29:05]Read from MH i2c: E2 FD 00 C6 04 00 C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 7D [00:29:05]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [00:29:05]wFMCommunicate OK [00:29:05]wFMCommunicate request_size=4 [00:29:05]MH_SAM_APDU [00:29:05]CAPDU: 80 17 00 00 [00:29:05]Write to MH i2c: E2 08 00 C7 04 80 17 00 00 00 00 00 00 4B [00:29:05]Write i2c OK [00:29:05]MH_I2C_Read... [00:29:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:05]Read from MH i2c: E2 [00:29:05]MH_I2C_Read... [00:29:05]Read from MH i2c: E2 FD 00 [00:29:05]MH_I2C_Read... [00:29:05]Read from MH i2c: E2 FD 00 C7 04 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 4F [00:29:06]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:29:06]wFMCommunicate OK [00:29:06]wFMCommunicate request_size=4 [00:29:06]MH_SAM_APDU [00:29:06]CAPDU: 80 17 00 00 [00:29:06]Write to MH i2c: E2 08 00 C8 04 80 17 00 00 00 00 00 00 4C [00:29:06]Write i2c OK [00:29:06]MH_I2C_Read... [00:29:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:06]Read from MH i2c: E2 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: E2 FD 00 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: E2 FD 00 C8 04 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 6A [00:29:06]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [00:29:06]wFMCommunicate OK [00:29:06]wFMCommunicate request_size=4 [00:29:06]MH_SAM_APDU [00:29:06]CAPDU: 80 17 00 00 [00:29:06]Write to MH i2c: E2 08 00 C9 04 80 17 00 00 00 00 00 00 4D [00:29:06]Write i2c OK [00:29:06]MH_I2C_Read... [00:29:06]OFD Sender: No OFD packet to send [00:29:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:07]Read from MH i2c: E2 [00:29:07]MH_I2C_Read... [00:29:07]Read from MH i2c: E2 FD 00 [00:29:07]MH_I2C_Read... [00:29:07]Read from MH i2c: E2 FD 00 C9 04 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BF [00:29:07]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:29:07]wFMCommunicate OK [00:29:07]wFMCommunicate request_size=4 [00:29:07]MH_SAM_APDU [00:29:07]CAPDU: 80 17 00 00 [00:29:07]Write to MH i2c: E2 08 00 CA 04 80 17 00 00 00 00 00 00 4E [00:29:07]Write i2c OK [00:29:07]MH_I2C_Read... [00:29:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:29:07]Read from MH i2c: E2 [00:29:07]MH_I2C_Read... [00:29:07]Read from MH i2c: E2 E0 00 [00:29:07]MH_I2C_Read... [00:29:07]Read from MH i2c: E2 E0 00 CA 04 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 38 [00:29:07]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:29:07]wFMCommunicate OK [00:29:07]SAM_PROTO_GetFMData done [00:29:07]FM_GetFMData:85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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:29:08]oper:6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:29:08]total:9B A0 8E 78 [00:29:08]Malloc new data [00:29:08]oper:6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:29:08]total:4C E7 B7 [00:29:08]Malloc new data [00:29:08]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:29:08]total: [00:29:08]Malloc new data [00:29:08]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:29:08]total: [00:29:08]Malloc new data [00:29:08]KKMPrepareXReportFMData err=0 [00:29:08]Х отчет ИНН: 02508201610067 Кассир: Манас уулу М. 21.10.2024 00:29 Смена: 522 РНМ: 0000000000091770 ЗНМ: 0300000101 СНО: Общий режим Всего чеков: 129 ИТОГИ ПРИХОД Чеков: 129 Общий итог: 32893.39 Итого наличными: 26104.00 Итого безнал.: 6789.39 НДС 0% : 0.00 НДС 12% : 3493.08 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 290.97 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 26104.00 НС Приход: 20226131.47 НС Возвр.Прихода: 120523.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871749 [00:29:08]StoreToDocumentArchive [00:29:08]MH_GetDate [00:29:08]Write to MH i2c: F0 00 00 CB 04 BE [00:29:08]Write i2c OK [00:29:08]MH_I2C_Read... [00:29:08]Read from MH i2c: F0 [00:29:08]MH_I2C_Read... [00:29:08]Read from MH i2c: F0 09 00 [00:29:08]MH_I2C_Read... [00:29:08]Read from MH i2c: F0 09 00 CB 04 00 56 A0 15 67 60 05 E4 66 E8 [00:29:08]shift 522 fd 1729470550 [00:29:08]Create dir for shift 0522 [00:29:08]save to /storage/0522/doc_1729470550 [00:29:08]save last doc name /storage/0522/doc_1729470550 to /storage/kkm_last_doc_name [00:29:08]save OK [00:29:08]Clear old archive folders... [00:29:08]NVStorageSaveData kkm_last_timestamp [00:29:08]File name is /storage/kkm_last_timestamp [00:29:08]Write 4 bytes [00:29:08]NVStorageSaveData done [00:29:08]ExternCall_PrintAddStr [00:29:08]wPrintStart [00:29:08]Write to MH i2c: 01 00 00 CC 04 D0 [00:29:08]Write i2c OK [00:29:08]MH_I2C_Read... [00:29:08]Read from MH i2c: 01 [00:29:08]MH_I2C_Read... [00:29:08]Read from MH i2c: 01 07 00 [00:29:08]MH_I2C_Read... [00:29:08]Read from MH i2c: 01 07 00 CC 04 00 00 00 00 00 FF 0F E5 [00:29:08]RasterBufferAndPrint [00:29:08]line Х отчет [00:29:08]line ИНН: 02508201610067 [00:29:08]line Кассир: Манас уулу М. [00:29:08]line 21.10.2024 00:29 [00:29:08]line Смена: 522 [00:29:08]line РНМ: 0000000000091770 [00:29:08]line ЗНМ: 0300000101 [00:29:08]line СНО: Общий режим [00:29:08]line Всего чеков: 129 [00:29:08]line ИТОГИ ПРИХОД [00:29:08]line Чеков: 129 [00:29:08]line Общий итог: 32893.39 [00:29:08]line Итого наличными: 26104.00 [00:29:08]line Итого безнал.: 6789.39 [00:29:08]line НДС 0% : 0.00 [00:29:08]line НДС 12% : 3493.08 [00:29:08]line НСП 0% : 0.00 [00:29:08]line НСП 1,50% : 0.00 [00:29:08]line НСП 0,50% : 0.00 [00:29:08]line НСП 5% : 0.00 [00:29:08]line НСП 3% : 0.00 [00:29:08]line НСП 2% : 0.00 [00:29:08]line НСП 1% : 290.97 [00:29:08]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:29:08]line Чеков: 0 [00:29:08]line Общий итог: 0.00 [00:29:08]line Итого наличными: 0.00 [00:29:08]line Итого безнал.: 0.00 [00:29:08]line НДС 0% : 0.00 [00:29:08]line НДС 12% : 0.00 [00:29:08]line НСП 0% : 0.00 [00:29:08]line НСП 1,50% : 0.00 [00:29:08]line НСП 0,50% : 0.00 [00:29:08]line НСП 5% : 0.00 [00:29:08]line НСП 3% : 0.00 [00:29:08]line НСП 2% : 0.00 [00:29:08]line НСП 1% : 0.00 [00:29:08]line ИТОГИ РАСХОД [00:29:08]line Чеков: 0 [00:29:08]line Общий итог: 0.00 [00:29:08]line Итого наличными: 0.00 [00:29:08]line Итого безнал.: 0.00 [00:29:08]line НДС 0% : 0.00 [00:29:08]line НДС 12% : 0.00 [00:29:08]line НСП 0% : 0.00 [00:29:08]line НСП 1,50% : 0.00 [00:29:08]line НСП 0,50% : 0.00 [00:29:08]line НСП 5% : 0.00 [00:29:08]line НСП 3% : 0.00 [00:29:08]line НСП 2% : 0.00 [00:29:08]line НСП 1% : 0.00 [00:29:08]line ИТОГИ ВОЗВРАТ РАСХОДА [00:29:08]line Чеков: 0 [00:29:08]line Общий итог: 0.00 [00:29:08]line Итого наличными: 0.00 [00:29:08]line Итого безнал.: 0.00 [00:29:08]line НДС 0% : 0.00 [00:29:08]line НДС 12% : 0.00 [00:29:08]line НСП 0% : 0.00 [00:29:08]line НСП 1,50% : 0.00 [00:29:08]line НСП 0,50% : 0.00 [00:29:08]line НСП 5% : 0.00 [00:29:08]line НСП 3% : 0.00 [00:29:08]line НСП 2% : 0.00 [00:29:08]line НСП 1% : 0.00 [00:29:08]line Сумма внесений: 0.00 [00:29:08]line Сумма выплат: 0.00 [00:29:08]line Нал. в кассе: 26104.00 [00:29:08]line НС Приход: 20226131.47 [00:29:08]line НС Возвр.Прихода: 120523.00 [00:29:08]line НС Расход: 0.00 [00:29:08]line НС Возвр.Расхода: 0.00 [00:29:08]line ФМ: 0000000000871749 [00:29:08]written 0, free lines is 4095 [00:29:09]Write to MH i2c: 01 00 00 17 05 1C [00:29:09]Write i2c OK [00:29:09]MH_I2C_Read... [00:29:09]Read from MH i2c: 01 [00:29:09]MH_I2C_Read... [00:29:09]Read from MH i2c: 01 07 00 [00:29:09]MH_I2C_Read... [00:29:09]Read from MH i2c: 01 07 00 17 05 00 00 00 00 00 C5 0A F2 [00:29:09]RasterBufferAndPrint [00:29:09]line [00:29:09]line [00:29:09]line [00:29:09]line [00:29:09]line [00:29:09]written 0, free lines is 2794 [00:29:09]MH_Cut [00:29:09]Write to MH i2c: D1 01 00 1E 05 01 F5 [00:29:09]Write i2c OK [00:29:09]MH_I2C_Read... [00:29:09]Read from MH i2c: D1 [00:29:09]MH_I2C_Read... [00:29:09]Read from MH i2c: D1 01 00 [00:29:09]MH_I2C_Read... [00:29:09]Read from MH i2c: D1 01 00 1E 05 00 F4 [00:29:09]Write to MH i2c: 01 00 00 1F 05 24 [00:29:09]Write i2c OK [00:29:09]MH_I2C_Read... [00:29:10]*** Cut start [00:29:10]*** Partial cut [00:29:10]*** CUTSNS_PIN = 1 [00:29:10]*** CUTSNS_PIN = 0 [00:29:11]*** Brake cut motor [00:29:11]Read from MH i2c: 01 [00:29:11]MH_I2C_Read... [00:29:11]*** Stop cut motor [00:29:11]*** Cut end [00:29:11]Read from MH i2c: 01 07 00 [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: 01 07 00 1F 05 00 00 00 00 00 FF 0F 39 [00:29:11]process_action x_report done [00:29:11]requested_data is exist [00:29:11]produce_requested_data [00:29:11]requested_item fd.num is exist - process it [00:29:11]SAM_PROTO_GetFieldsCounters [00:29:11]wFMCommunicate request_size=4 [00:29:11]MH_SAM_APDU [00:29:11]CAPDU: 80 13 00 00 [00:29:11]Write to MH i2c: E2 08 00 20 05 80 13 00 00 00 00 00 00 A1 [00:29:11]Write i2c OK [00:29:11]MH_I2C_Read... [00:29:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:11]Read from MH i2c: E2 [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: E2 62 00 [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: E2 62 00 20 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CF 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [00:29: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CF 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:11]wFMCommunicate OK [00:29:11]SAM_PROTO_GetFieldsCounters done [00:29:11]requested_item shift.num is exist - process it [00:29:11]requested_item shift.opened is exist - process it [00:29:11]req_shift_opened [00:29:11]FM_GetShiftState [00:29:11]SAM_PROTO_GetShiftState [00:29:11]wFMCommunicate request_size=4 [00:29:11]MH_SAM_APDU [00:29:11]CAPDU: 80 13 01 00 [00:29:11]Write to MH i2c: E2 08 00 21 05 80 13 01 00 00 00 00 00 A3 [00:29:11]Write i2c OK [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: E2 [00:29:11]MH_I2C_Read... [00:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:11]Read from MH i2c: E2 0E 00 [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: E2 0E 00 21 05 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 35 [00:29:11]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [00:29:11]wFMCommunicate OK [00:29:11]SAM_PROTO_GetShiftState done [00:29:11]FM_GetShiftState done [00:29:11]req_shift_opened done [00:29:11]requested_item shift.open_date is exist - process it [00:29:11]req_shift_open_date [00:29:11]req_shift_open_date done [00:29:11]produce_requested_data done [00:29:11]produce_requested_data return {"fd.num":69839,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [00:29:11]process_action_free x_report [00:29:11]json_value_free [00:29:11]json_value_free done [00:29:11]process_json_proto returns [00:29:11]Send response to host [00:29:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":69839,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [00:29:11]free response buf [00:29:11]execute_script done [00:29:11]execute_script returns [00:29:11]free content buf [00:29:11]Sock 9.Close socket [00:29:11]Sock 9.Thread stoped [00:29:11]OFD Sender: No OFD packet to send [00:29:16]OFD Sender: No OFD packet to send [00:29:21]OFD Sender: No OFD packet to send [00:29:26]OFD Sender: No OFD packet to send [00:29:31]OFD Sender: No OFD packet to send [00:29:36]OFD Sender: No OFD packet to send [00:29:41]OFD Sender: No OFD packet to send [00:29:46]accept exits with 7 [00:29:46]New connection [00:29:46]New thread 3066641764 created [00:29:46]Thread 3066785124 joined [00:29:46]Waiting for new connection... [00:29:46] Sock 7.Parse request [00:29:46]Sock 7.Check first char [00:29:46]Sock 7.First char is OK [00:29:46]request: POST /json_proto HTTP/1.0 [00:29:46]Method: POST [00:29:46]URL: /json_proto [00:29:46]Method is POST - this is cgi request [00:29:46]url: /json_proto [00:29:46]query_string will be loaded in cgi processing [00:29:46]execute_cgi json_proto POST (null) [00:29:46]execute_cgi path=json_proto method=POST [00:29:46]POST find Content-Length [00:29:46]Host: 172.17.52.196:8080 [00:29:46]Content-Length: 215 [00:29:46]Content-Type: application/json [00:29:46] [00:29:46]POST finish read [00:29:46]Found Content-Length = 215 [00:29: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:29:46]execute_script... [00:29: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:29:46]POST & json_proto [00:29:46]process_json_proto [00:29:46]json parsed OK: [00:29:46]protocol is kg_v1.0 [00:29:46]action value=get_value [00:29:46]process_action get_value [00:29:46]cmd_get_value [00:29:46]process_action get_value done [00:29:46]requested_data is exist [00:29:46]produce_requested_data [00:29:46]requested_item kkm.sn is exist - process it [00:29:46]requested_item kkm.ver is exist - process it [00:29:46]requested_item fm.sn is exist - process it [00:29:46]wFMCommunicate request_size=4 [00:29:46]MH_SAM_APDU [00:29:46]CAPDU: 80 11 00 00 [00:29:46]Write to MH i2c: E2 08 00 22 05 80 11 00 00 00 00 00 00 A1 [00:29:46]Write i2c OK [00:29:46]MH_I2C_Read... [00:29:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:46]Read from MH i2c: E2 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: E2 17 00 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: E2 17 00 22 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 F8 [00:29:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [00:29:46]wFMCommunicate OK [00:29:46]requested_item fd.num is exist - process it [00:29:46]SAM_PROTO_GetFieldsCounters [00:29:46]wFMCommunicate request_size=4 [00:29:46]MH_SAM_APDU [00:29:46]CAPDU: 80 13 00 00 [00:29:46]Write to MH i2c: E2 08 00 23 05 80 13 00 00 00 00 00 00 A4 [00:29:46]Write i2c OK [00:29:46]MH_I2C_Read... [00:29:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:46]Read from MH i2c: E2 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: E2 62 00 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: E2 62 00 23 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CF 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [00:29: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 CF 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:46]wFMCommunicate OK [00:29:46]SAM_PROTO_GetFieldsCounters done [00:29:46]requested_item shift.num is exist - process it [00:29:46]requested_item shift.opened is exist - process it [00:29:46]req_shift_opened [00:29:46]FM_GetShiftState [00:29:46]SAM_PROTO_GetShiftState [00:29:46]wFMCommunicate request_size=4 [00:29:46]MH_SAM_APDU [00:29:46]CAPDU: 80 13 01 00 [00:29:46]Write to MH i2c: E2 08 00 24 05 80 13 01 00 00 00 00 00 A6 [00:29:46]Write i2c OK [00:29:46]MH_I2C_Read... [00:29:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:46]Read from MH i2c: E2 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: E2 0E 00 [00:29:46]MH_I2C_Read... [00:29:46]Read from MH i2c: E2 0E 00 24 05 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 38 [00:29:46]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [00:29:46]wFMCommunicate OK [00:29:46]SAM_PROTO_GetShiftState done [00:29:46]FM_GetShiftState done [00:29:46]req_shift_opened done [00:29:46]requested_item shift.open_date is exist - process it [00:29:46]req_shift_open_date [00:29:46]req_shift_open_date done [00:29:46]produce_requested_data done [00:29:46]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69839,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380} [00:29:46]process_action_free get_value [00:29:46]json_value_free [00:29:46]json_value_free done [00:29:46]process_json_proto returns [00:29:46]Send response to host [00:29:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69839,"shift.num":526,"shift.opened":1,"shift.open_date":1729384380}}} [00:29:46]free response buf [00:29:46]execute_script done [00:29:46]execute_script returns [00:29:46]free content buf [00:29:46]Sock 7.Close socket [00:29:46]Sock 7.Thread stoped [00:29:46]accept exits with 9 [00:29:46]New connection [00:29:46]New thread 3066785124 created [00:29:46]Thread 3066641764 joined [00:29:46]Waiting for new connection... [00:29:46] Sock 9.Parse request [00:29:46]Sock 9.Check first char [00:29:46]Sock 9.First char is OK [00:29:46]request: POST /json_proto HTTP/1.0 [00:29:46]Method: POST [00:29:46]URL: /json_proto [00:29:46]Method is POST - this is cgi request [00:29:46]url: /json_proto [00:29:46]query_string will be loaded in cgi processing [00:29:46]execute_cgi json_proto POST (null) [00:29:46]execute_cgi path=json_proto method=POST [00:29:46]POST find Content-Length [00:29:46]Host: 172.17.52.196:8080 [00:29:46]Content-Length: 331 [00:29:46]Content-Type: application/json [00:29:46] [00:29:46]POST finish read [00:29:46]Found Content-Length = 331 [00:29: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:29:46]execute_script... [00:29: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:29:46]POST & json_proto [00:29:46]process_json_proto [00:29:46]json parsed OK: [00:29:46]protocol is kg_v1.0 [00:29:46]action value=get_value [00:29:46]process_action get_value [00:29:46]cmd_get_value [00:29:46]process_action get_value done [00:29:46]requested_data is exist [00:29:46]produce_requested_data [00:29:46]requested_item fm.sale.total is exist - process it [00:29:46]SAM_PROTO_GetFMData [00:29:46]wFMCommunicate request_size=4 [00:29:46]MH_SAM_APDU [00:29:46]CAPDU: 80 13 03 00 [00:29:46]Write to MH i2c: E2 08 00 25 05 80 13 03 00 00 00 00 00 A9 [00:29:46]Write i2c OK [00:29:46]MH_I2C_Read... [00:29:46]OFD Sender: No OFD packet to send [00:29:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:47]Read from MH i2c: E2 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 FD 00 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 FD 00 25 05 00 C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 DD [00:29:47]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [00:29:47]wFMCommunicate OK [00:29:47]wFMCommunicate request_size=4 [00:29:47]MH_SAM_APDU [00:29:47]CAPDU: 80 17 00 00 [00:29:47]Write to MH i2c: E2 08 00 26 05 80 17 00 00 00 00 00 00 AB [00:29:47]Write i2c OK [00:29:47]MH_I2C_Read... [00:29:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:47]Read from MH i2c: E2 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 FD 00 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 FD 00 26 05 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 AF [00:29:47]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:29:47]wFMCommunicate OK [00:29:47]wFMCommunicate request_size=4 [00:29:47]MH_SAM_APDU [00:29:47]CAPDU: 80 17 00 00 [00:29:47]Write to MH i2c: E2 08 00 27 05 80 17 00 00 00 00 00 00 AC [00:29:47]Write i2c OK [00:29:47]MH_I2C_Read... [00:29:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:47]Read from MH i2c: E2 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 FD 00 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 FD 00 27 05 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 CA [00:29:47]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [00:29:47]wFMCommunicate OK [00:29:47]wFMCommunicate request_size=4 [00:29:47]MH_SAM_APDU [00:29:47]CAPDU: 80 17 00 00 [00:29:47]Write to MH i2c: E2 08 00 28 05 80 17 00 00 00 00 00 00 AD [00:29:47]Write i2c OK [00:29:47]MH_I2C_Read... [00:29:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:47]Read from MH i2c: E2 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 FD 00 [00:29:47]MH_I2C_Read... [00:29:47]Read from MH i2c: E2 FD 00 28 05 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1F [00:29:47]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:29:47]wFMCommunicate OK [00:29:47]wFMCommunicate request_size=4 [00:29:47]MH_SAM_APDU [00:29:47]CAPDU: 80 17 00 00 [00:29:47]Write to MH i2c: E2 08 00 29 05 80 17 00 00 00 00 00 00 AE [00:29:47]Write i2c OK [00:29:47]MH_I2C_Read... [00:29:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:29:48]Read from MH i2c: E2 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: E2 E0 00 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: E2 E0 00 29 05 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 98 [00:29:48]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:29:48]wFMCommunicate OK [00:29:48]SAM_PROTO_GetFMData done [00:29:48]requested_item fm.sale_refund.total is exist - process it [00:29:48]requested_item fm.buy.total is exist - process it [00:29:48]requested_item shift.sale.total is exist - process it [00:29:48]SAM_PROTO_GetShiftData [00:29:48]wFMCommunicate request_size=4 [00:29:48]MH_SAM_APDU [00:29:48]CAPDU: 80 13 02 00 [00:29:48]Write to MH i2c: E2 08 00 2A 05 80 13 02 00 00 00 00 00 AD [00:29:48]Write i2c OK [00:29:48]MH_I2C_Read... [00:29:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:48]Read from MH i2c: E2 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: E2 FD 00 [00:29:48]MH_I2C_Read... [00:29:48]Read from MH i2c: E2 FD 00 2A 05 00 AE 04 AA 04 AA 04 6E 04 04 00 81 00 00 00 69 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7C 54 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 A9 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 18 [00:29:48]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 81 00 00 00 69 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7C 54 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 A9 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:29:48]wFMCommunicate OK [00:29:48]wFMCommunicate request_size=4 [00:29:48]MH_SAM_APDU [00:29:48]CAPDU: 80 17 00 00 [00:29:48]Write to MH i2c: E2 08 00 2B 05 80 17 00 00 00 00 00 00 B0 [00:29:48]Write i2c OK [00:29:48]MH_I2C_Read... [00:29:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:49]Read from MH i2c: E2 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 FD 00 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 FD 00 2B 05 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 D2 [00:29:49]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:29:49]wFMCommunicate OK [00:29:49]wFMCommunicate request_size=4 [00:29:49]MH_SAM_APDU [00:29:49]CAPDU: 80 17 00 00 [00:29:49]Write to MH i2c: E2 08 00 2C 05 80 17 00 00 00 00 00 00 B1 [00:29:49]Write i2c OK [00:29:49]MH_I2C_Read... [00:29:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:49]Read from MH i2c: E2 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 FD 00 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 FD 00 2C 05 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 68 [00:29:49]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:29:49]wFMCommunicate OK [00:29:49]wFMCommunicate request_size=4 [00:29:49]MH_SAM_APDU [00:29:49]CAPDU: 80 17 00 00 [00:29:49]Write to MH i2c: E2 08 00 2D 05 80 17 00 00 00 00 00 00 B2 [00:29:49]Write i2c OK [00:29:49]MH_I2C_Read... [00:29:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:49]Read from MH i2c: E2 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 FD 00 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 FD 00 2D 05 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 24 [00:29:49]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:29:49]wFMCommunicate OK [00:29:49]wFMCommunicate request_size=4 [00:29:49]MH_SAM_APDU [00:29:49]CAPDU: 80 17 00 00 [00:29:49]Write to MH i2c: E2 08 00 2E 05 80 17 00 00 00 00 00 00 B3 [00:29:49]Write i2c OK [00:29:49]MH_I2C_Read... [00:29:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:29:49]Read from MH i2c: E2 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 CB 00 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 CB 00 2E 05 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9C [00:29:49]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:50]wFMCommunicate OK [00:29:50]SAM_PROTO_GetShiftData done [00:29:50]requested_item shift.sale.total_cash is exist - process it [00:29:50]requested_item shift.sale_refund.total is exist - process it [00:29:50]requested_item shift.sale_refund.total_cash is exist - process it [00:29:50]requested_item shift.buy.total is exist - process it [00:29:50]requested_item shift.buy.total_cash is exist - process it [00:29:50]produce_requested_data done [00:29:50]produce_requested_data return {"fm.sale.total":20226131.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":32893.39,"shift.sale.total_cash":26104.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:29:50]process_action_free get_value [00:29:50]json_value_free [00:29:50]json_value_free done [00:29:50]process_json_proto returns [00:29:50]Send response to host [00:29:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20226131.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":32893.39,"shift.sale.total_cash":26104.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:29:50]free response buf [00:29:50]execute_script done [00:29:50]execute_script returns [00:29:50]free content buf [00:29:50]Sock 9.Close socket [00:29:50]Sock 9.Thread stoped [00:29:50]accept exits with 7 [00:29:50]New connection [00:29:50]New thread 3066641764 created [00:29:50]Thread 3066785124 joined [00:29:50]Waiting for new connection... [00:29:50] Sock 7.Parse request [00:29:50]Sock 7.Check first char [00:29:50]Sock 7.First char is OK [00:29:50]request: POST /json_proto HTTP/1.0 [00:29:50]Method: POST [00:29:50]URL: /json_proto [00:29:50]Method is POST - this is cgi request [00:29:50]url: /json_proto [00:29:50]query_string will be loaded in cgi processing [00:29:50]execute_cgi json_proto POST (null) [00:29:50]execute_cgi path=json_proto method=POST [00:29:50]POST find Content-Length [00:29:50]Host: 172.17.52.196:8080 [00:29:50]Content-Length: 331 [00:29:50]Content-Type: application/json [00:29:50] [00:29:50]POST finish read [00:29:50]Found Content-Length = 331 [00:29:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:50]execute_script... [00:29:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:50]POST & json_proto [00:29:50]process_json_proto [00:29:50]json parsed OK: [00:29:50]protocol is kg_v1.0 [00:29:50]action value=get_value [00:29:50]process_action get_value [00:29:50]cmd_get_value [00:29:50]process_action get_value done [00:29:50]requested_data is exist [00:29:50]produce_requested_data [00:29:50]requested_item fm.sale.total is exist - process it [00:29:50]SAM_PROTO_GetFMData [00:29:50]wFMCommunicate request_size=4 [00:29:50]MH_SAM_APDU [00:29:50]CAPDU: 80 13 03 00 [00:29:50]Write to MH i2c: E2 08 00 2F 05 80 13 03 00 00 00 00 00 B3 [00:29:50]Write i2c OK [00:29:50]MH_I2C_Read... [00:29:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:50]Read from MH i2c: E2 [00:29:50]MH_I2C_Read... [00:29:50]Read from MH i2c: E2 FD 00 [00:29:50]MH_I2C_Read... [00:29:50]Read from MH i2c: E2 FD 00 2F 05 00 C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 E7 [00:29:50]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [00:29:50]wFMCommunicate OK [00:29:50]wFMCommunicate request_size=4 [00:29:50]MH_SAM_APDU [00:29:50]CAPDU: 80 17 00 00 [00:29:50]Write to MH i2c: E2 08 00 30 05 80 17 00 00 00 00 00 00 B5 [00:29:50]Write i2c OK [00:29:50]MH_I2C_Read... [00:29:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:50]Read from MH i2c: E2 [00:29:50]MH_I2C_Read... [00:29:50]Read from MH i2c: E2 FD 00 [00:29:50]MH_I2C_Read... [00:29:50]Read from MH i2c: E2 FD 00 30 05 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 B9 [00:29:50]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:29:51]wFMCommunicate OK [00:29:51]wFMCommunicate request_size=4 [00:29:51]MH_SAM_APDU [00:29:51]CAPDU: 80 17 00 00 [00:29:51]Write to MH i2c: E2 08 00 31 05 80 17 00 00 00 00 00 00 B6 [00:29:51]Write i2c OK [00:29:51]MH_I2C_Read... [00:29:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:51]Read from MH i2c: E2 [00:29:51]MH_I2C_Read... [00:29:51]Read from MH i2c: E2 FD 00 [00:29:51]MH_I2C_Read... [00:29:51]Read from MH i2c: E2 FD 00 31 05 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 D4 [00:29:51]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [00:29:51]wFMCommunicate OK [00:29:51]wFMCommunicate request_size=4 [00:29:51]MH_SAM_APDU [00:29:51]CAPDU: 80 17 00 00 [00:29:51]Write to MH i2c: E2 08 00 32 05 80 17 00 00 00 00 00 00 B7 [00:29:51]Write i2c OK [00:29:51]MH_I2C_Read... [00:29:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:51]Read from MH i2c: E2 [00:29:51]MH_I2C_Read... [00:29:51]Read from MH i2c: E2 FD 00 [00:29:51]MH_I2C_Read... [00:29:51]Read from MH i2c: E2 FD 00 32 05 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 29 [00:29:51]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:29:51]wFMCommunicate OK [00:29:51]wFMCommunicate request_size=4 [00:29:51]MH_SAM_APDU [00:29:51]CAPDU: 80 17 00 00 [00:29:51]Write to MH i2c: E2 08 00 33 05 80 17 00 00 00 00 00 00 B8 [00:29:51]Write i2c OK [00:29:51]MH_I2C_Read... [00:29:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:29:52]OFD Sender: No OFD packet to send [00:29:52]Read from MH i2c: E2 [00:29:52]MH_I2C_Read... [00:29:52]Read from MH i2c: E2 E0 00 [00:29:52]MH_I2C_Read... [00:29:52]Read from MH i2c: E2 E0 00 33 05 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A2 [00:29:52]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:29:52]wFMCommunicate OK [00:29:52]SAM_PROTO_GetFMData done [00:29:52]requested_item fm.sale_refund.total is exist - process it [00:29:52]requested_item fm.buy.total is exist - process it [00:29:52]requested_item shift.sale.total is exist - process it [00:29:52]SAM_PROTO_GetShiftData [00:29:52]wFMCommunicate request_size=4 [00:29:52]MH_SAM_APDU [00:29:52]CAPDU: 80 13 02 00 [00:29:52]Write to MH i2c: E2 08 00 34 05 80 13 02 00 00 00 00 00 B7 [00:29:52]Write i2c OK [00:29:52]MH_I2C_Read... [00:29:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:52]Read from MH i2c: E2 [00:29:52]MH_I2C_Read... [00:29:52]Read from MH i2c: E2 FD 00 [00:29:52]MH_I2C_Read... [00:29:52]Read from MH i2c: E2 FD 00 34 05 00 AE 04 AA 04 AA 04 6E 04 04 00 81 00 00 00 69 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7C 54 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 A9 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 22 [00:29:52]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 81 00 00 00 69 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7C 54 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 A9 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:29:52]wFMCommunicate OK [00:29:52]wFMCommunicate request_size=4 [00:29:52]MH_SAM_APDU [00:29:52]CAPDU: 80 17 00 00 [00:29:52]Write to MH i2c: E2 08 00 35 05 80 17 00 00 00 00 00 00 BA [00:29:52]Write i2c OK [00:29:52]MH_I2C_Read... [00:29:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:53]Read from MH i2c: E2 [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 FD 00 [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 FD 00 35 05 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 DC [00:29:53]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:29:53]wFMCommunicate OK [00:29:53]wFMCommunicate request_size=4 [00:29:53]MH_SAM_APDU [00:29:53]CAPDU: 80 17 00 00 [00:29:53]Write to MH i2c: E2 08 00 36 05 80 17 00 00 00 00 00 00 BB [00:29:53]Write i2c OK [00:29:53]MH_I2C_Read... [00:29:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:53]Read from MH i2c: E2 [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 FD 00 [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 FD 00 36 05 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 72 [00:29:53]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:29:53]wFMCommunicate OK [00:29:53]wFMCommunicate request_size=4 [00:29:53]MH_SAM_APDU [00:29:53]CAPDU: 80 17 00 00 [00:29:53]Write to MH i2c: E2 08 00 37 05 80 17 00 00 00 00 00 00 BC [00:29:53]Write i2c OK [00:29:53]MH_I2C_Read... [00:29:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:54]Read from MH i2c: E2 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 FD 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 FD 00 37 05 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 2E [00:29:54]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:29:54]wFMCommunicate OK [00:29:54]wFMCommunicate request_size=4 [00:29:54]MH_SAM_APDU [00:29:54]CAPDU: 80 17 00 00 [00:29:54]Write to MH i2c: E2 08 00 38 05 80 17 00 00 00 00 00 00 BD [00:29:54]Write i2c OK [00:29:54]MH_I2C_Read... [00:29:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:29:54]Read from MH i2c: E2 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 CB 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 CB 00 38 05 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A6 [00:29:54]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:54]wFMCommunicate OK [00:29:54]SAM_PROTO_GetShiftData done [00:29:54]requested_item shift.sale.total_cash is exist - process it [00:29:54]requested_item shift.sale_refund.total is exist - process it [00:29:54]requested_item shift.sale_refund.total_cash is exist - process it [00:29:54]requested_item shift.buy.total is exist - process it [00:29:54]requested_item shift.buy.total_cash is exist - process it [00:29:54]produce_requested_data done [00:29:54]produce_requested_data return {"fm.sale.total":20226131.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":32893.39,"shift.sale.total_cash":26104.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:29:54]process_action_free get_value [00:29:54]json_value_free [00:29:54]json_value_free done [00:29:54]process_json_proto returns [00:29:54]Send response to host [00:29:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20226131.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":32893.39,"shift.sale.total_cash":26104.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:29:54]free response buf [00:29:54]execute_script done [00:29:54]execute_script returns [00:29:54]free content buf [00:29:54]Sock 7.Close socket [00:29:54]Sock 7.Thread stoped [00:29:54]accept exits with 9 [00:29:54]New connection [00:29:54]New thread 3066785124 created [00:29:54]Thread 3066641764 joined [00:29:54]Waiting for new connection... [00:29:54] Sock 9.Parse request [00:29:54]Sock 9.Check first char [00:29:54]Sock 9.First char is OK [00:29:54]request: POST /json_proto HTTP/1.0 [00:29:54]Method: POST [00:29:54]URL: /json_proto [00:29:54]Method is POST - this is cgi request [00:29:54]url: /json_proto [00:29:54]query_string will be loaded in cgi processing [00:29:54]execute_cgi json_proto POST (null) [00:29:54]execute_cgi path=json_proto method=POST [00:29:54]POST find Content-Length [00:29:54]Host: 172.17.52.196:8080 [00:29:54]Content-Length: 267 [00:29:54]Content-Type: application/json [00:29:54] [00:29:54]POST finish read [00:29:54]Found Content-Length = 267 [00:29:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0430\u043D\u0430\u0441 \u0443\u0443\u043B\u0443 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:54]execute_script... [00:29:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0430\u043D\u0430\u0441 \u0443\u0443\u043B\u0443 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:54]POST & json_proto [00:29:54]process_json_proto [00:29:54]json parsed OK: [00:29:54]protocol is kg_v1.0 [00:29:54]action value=close_shift [00:29:54]process_action close_shift [00:29:54]cmd_close_shift [00:29:54]MH_GetDate [00:29:54]Write to MH i2c: F0 00 00 39 05 2D [00:29:54]Write i2c OK [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: F0 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: F0 09 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: F0 09 00 39 05 00 84 A0 15 67 60 05 E4 66 85 [00:29:54]GetLastDocTimeStamp 1729470542 [00:29:54]current date 1729470596 [00:29:54]FM_GetShiftState [00:29:54]SAM_PROTO_GetShiftState [00:29:54]wFMCommunicate request_size=4 [00:29:54]MH_SAM_APDU [00:29:54]CAPDU: 80 13 01 00 [00:29:54]Write to MH i2c: E2 08 00 3A 05 80 13 01 00 00 00 00 00 BC [00:29:54]Write i2c OK [00:29:54]MH_I2C_Read... [00:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:54]Read from MH i2c: E2 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 0E 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 0E 00 3A 05 00 09 00 01 BC 4F 14 67 00 00 00 00 90 00 4E [00:29:54]RAPDU: 09 00 01 BC 4F 14 67 00 00 00 00 90 00 [00:29:54]wFMCommunicate OK [00:29:54]SAM_PROTO_GetShiftState done [00:29:54]FM_GetShiftState done [00:29:54]KKMCreateCloseShiftDocument [00:29:54]Load OK [00:29:54]Malloc new data [00:29:54]MH_GetDate [00:29:54]Write to MH i2c: F0 00 00 3B 05 2F [00:29:54]Write i2c OK [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: F0 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: F0 09 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: F0 09 00 3B 05 00 84 A0 15 67 60 05 E4 66 87 [00:29:54]Malloc new data [00:29:54]Malloc new data [00:29:54]Malloc new data [00:29:54]Malloc new data [00:29:54]KKMCreateCloseShiftDocument OK [00:29:54]KKMSetCloseShiftData OK [00:29:54]ProcessDocumentItem done err = 0, tmpTLVsize=74 [00:29:54]tlvbuf is 017EA560 [00:29:54]KKMLoadAndSignCloseShiftData [00:29:54]SAM_PROTO_ProcessDocument [00:29:54]wFMCommunicate request_size=9 [00:29:54]MH_SAM_APDU [00:29:54]CAPDU: 80 15 01 00 04 05 00 4A 00 [00:29:54]Write to MH i2c: E2 0C 00 3C 05 80 15 01 00 04 00 05 00 4A 00 00 00 17 [00:29:54]Write i2c OK [00:29:54]MH_I2C_Read... [00:29:54]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:29:54]Read from MH i2c: E2 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 03 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 03 00 3C 05 00 90 00 B5 [00:29:54]RAPDU: 90 00 [00:29:54]wFMCommunicate OK [00:29:54]wFMCommunicate request_size=23 [00:29:54]MH_SAM_APDU [00:29:54]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:29:54]Write to MH i2c: E2 1A 00 3D 05 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 B7 [00:29:54]Write i2c OK [00:29:54]MH_I2C_Read... [00:29:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:54]Read from MH i2c: E2 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 03 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 03 00 3D 05 00 90 00 B6 [00:29:54]RAPDU: 90 00 [00:29:54]wFMCommunicate OK [00:29:54]wFMCommunicate request_size=33 [00:29:54]MH_SAM_APDU [00:29:54]CAPDU: 80 15 02 00 1C FD 03 18 00 D0 9C D0 B0 D0 BD D0 B0 D1 81 20 D1 83 D1 83 D0 BB D1 83 20 D0 9C 2E 20 [00:29:54]Write to MH i2c: E2 24 00 3E 05 80 15 02 00 1C 00 FD 03 18 00 D0 9C D0 B0 D0 BD D0 B0 D1 81 20 D1 83 D1 83 D0 BB D1 83 20 D0 9C 2E 20 00 00 DF [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:55]Read from MH i2c: E2 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 03 00 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 03 00 3E 05 00 90 00 B7 [00:29:55]RAPDU: 90 00 [00:29:55]wFMCommunicate OK [00:29:55]wFMCommunicate request_size=13 [00:29:55]MH_SAM_APDU [00:29:55]CAPDU: 80 15 02 00 08 F4 03 04 00 84 A0 15 67 [00:29:55]Write to MH i2c: E2 10 00 3F 05 80 15 02 00 08 00 F4 03 04 00 84 A0 15 67 00 00 6F [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:55]Read from MH i2c: E2 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 03 00 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 03 00 3F 05 00 90 00 B8 [00:29:55]RAPDU: 90 00 [00:29:55]wFMCommunicate OK [00:29:55]wFMCommunicate request_size=25 [00:29:55]MH_SAM_APDU [00:29:55]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 [00:29:55]Write to MH i2c: E2 1C 00 40 05 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 00 00 26 [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:29:55]Read from MH i2c: E2 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 03 00 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 03 00 40 05 00 90 00 B9 [00:29:55]RAPDU: 90 00 [00:29:55]wFMCommunicate OK [00:29:55]wFMCommunicate request_size=4 [00:29:55]MH_SAM_APDU [00:29:55]CAPDU: 80 15 03 00 [00:29:55]Write to MH i2c: E2 08 00 41 05 80 15 03 00 00 00 00 00 C7 [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:55]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:29:55]Read from MH i2c: E2 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 FD 00 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 FD 00 41 05 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 D0 10 01 00 0E 04 04 00 0E 02 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 83 00 00 00 AA 04 AA 04 6E 04 04 00 81 00 00 00 69 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7C 54 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 A9 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 CA [00:29:55]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 D0 10 01 00 0E 04 04 00 0E 02 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 83 00 00 00 AA 04 AA 04 6E 04 04 00 81 00 00 00 69 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7C 54 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 A9 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [00:29:55]wFMCommunicate OK [00:29:55]SAM_PROTO_ProcessDocument answer len = 1265 [00:29:55]SAM_PROTO_ProcessDocument remain to read = 1017 [00:29:55]wFMCommunicate request_size=4 [00:29:55]MH_SAM_APDU [00:29:55]CAPDU: 80 17 00 00 [00:29:55]Write to MH i2c: E2 08 00 42 05 80 17 00 00 00 00 00 00 C7 [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:56]Read from MH i2c: E2 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 FD 00 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 FD 00 42 05 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 10 [00:29:56]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:29:56]wFMCommunicate OK [00:29:56]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:29:56]SAM_PROTO_ProcessDocument remain to read = 767 [00:29:56]wFMCommunicate request_size=4 [00:29:56]MH_SAM_APDU [00:29:56]CAPDU: 80 17 00 00 [00:29:56]Write to MH i2c: E2 08 00 43 05 80 17 00 00 00 00 00 00 C8 [00:29:56]Write i2c OK [00:29:56]MH_I2C_Read... [00:29:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:56]Read from MH i2c: E2 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 FD 00 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 FD 00 43 05 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 2A [00:29:56]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:29:56]wFMCommunicate OK [00:29:56]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:29:56]SAM_PROTO_ProcessDocument remain to read = 517 [00:29:56]wFMCommunicate request_size=4 [00:29:56]MH_SAM_APDU [00:29:56]CAPDU: 80 17 00 00 [00:29:57]Write to MH i2c: E2 08 00 44 05 80 17 00 00 00 00 00 00 C9 [00:29:57]Write i2c OK [00:29:57]MH_I2C_Read... [00:29:57]OFD Sender: No OFD packet to send [00:29:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:57]Read from MH i2c: E2 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: E2 FD 00 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: E2 FD 00 44 05 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 53 [00:29:57]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 90 00 [00:29:57]wFMCommunicate OK [00:29:57]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:29:57]SAM_PROTO_ProcessDocument remain to read = 267 [00:29:57]wFMCommunicate request_size=4 [00:29:57]MH_SAM_APDU [00:29:57]CAPDU: 80 17 00 00 [00:29:57]Write to MH i2c: E2 08 00 45 05 80 17 00 00 00 00 00 00 CA [00:29:57]Write i2c OK [00:29:57]MH_I2C_Read... [00:29:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:57]Read from MH i2c: E2 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: E2 FD 00 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: E2 FD 00 45 05 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 92 [00:29:57]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:29:58]wFMCommunicate OK [00:29:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:29:58]SAM_PROTO_ProcessDocument remain to read = 17 [00:29:58]wFMCommunicate request_size=4 [00:29:58]MH_SAM_APDU [00:29:58]CAPDU: 80 17 00 00 [00:29:58]Write to MH i2c: E2 08 00 46 05 80 17 00 00 00 00 00 00 CB [00:29:58]Write i2c OK [00:29:58]MH_I2C_Read... [00:29:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [00:29:58]Read from MH i2c: E2 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: E2 14 00 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: E2 14 00 46 05 00 01 00 06 F7 03 00 00 35 04 06 00 B2 57 84 59 52 8F 90 00 D7 [00:29:58]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 B2 57 84 59 52 8F 90 00 [00:29:58]wFMCommunicate OK [00:29:58]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [00:29:58]SAM_PROTO_ProcessDocument done [00:29:58]1209 (1) - 1.0 - номер версии ФФД [00:29:58]1041 (16) - 0000000000871749 - номер ФМ [00:29:58]1040 (4) - 69840 - номер ФД [00:29:58]1038 (4) - 526 - номер смены [00:29:58]1118 (4) - 129 - количество кассовых чеков за смену [00:29:58]1111 (4) - 131 - общее количество ФД за смену [00:29:58]1194 (1194) - счетчики итогов смены [00:29:58] 1134 (4) - 129 - количество чеков со всеми признаками расчетов [00:29:58] 1129 (155) - счетчики операций «приход» [00:29:58] 1135 (4) - 129 - количество чеков по признаку расчетов [00:29:58] 1201 (3) - 32893.39 - общая итоговая сумма в чеках [00:29:58] 1136 (3) - 26104.00 - итоговая сумма в чеках наличными [00:29:58] 1138 (3) - 6789.39 - итоговая сумма в чеках безналичными [00:29:58] 1024 (122) - суммы налогов [00:29:58] 1006 (9) - суммы НДС [00:29:58] 1010 (1) - 0% - код ставки НДС [00:29:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:58] 1006 (12) - суммы НДС [00:29:58] 1010 (1) - 12% - код ставки НДС [00:29:58] 1011 (3) - 3493.08 - сумма НДС по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 0% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (11) - суммы НСП [00:29:58] 1014 (1) - 1% - код ставки НСП [00:29:58] 1015 (2) - 290.97 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 2% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 3% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 5% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 0,50% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 1,50% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1130 (141) - счетчики операций «возврат прихода» [00:29:58] 1135 (4) - 0 - количество чеков по признаку расчетов [00:29:58] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:29:58] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:29:58] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:29:58] 1024 (117) - суммы налогов [00:29:58] 1006 (9) - суммы НДС [00:29:58] 1010 (1) - 0% - код ставки НДС [00:29:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:58] 1006 (9) - суммы НДС [00:29:58] 1010 (1) - 12% - код ставки НДС [00:29:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 0% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 1% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 2% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 3% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 5% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 0,50% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 1,50% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1131 (141) - счетчики операций «расход» [00:29:58] 1135 (4) - 0 - количество чеков по признаку расчетов [00:29:58] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:29:58] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:29:58] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:29:58] 1024 (117) - суммы налогов [00:29:58] 1006 (9) - суммы НДС [00:29:58] 1010 (1) - 0% - код ставки НДС [00:29:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:58] 1006 (9) - суммы НДС [00:29:58] 1010 (1) - 12% - код ставки НДС [00:29:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 0% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 1% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 2% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 3% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 5% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 0,50% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 1,50% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1132 (141) - счетчики операций «возврат расхода» [00:29:58] 1135 (4) - 0 - количество чеков по признаку расчетов [00:29:58] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:29:58] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:29:58] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:29:58] 1024 (117) - суммы налогов [00:29:58] 1006 (9) - суммы НДС [00:29:58] 1010 (1) - 0% - код ставки НДС [00:29:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:58] 1006 (9) - суммы НДС [00:29:58] 1010 (1) - 12% - код ставки НДС [00:29:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 0% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 1% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 2% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 3% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 5% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 0,50% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1007 (9) - суммы НСП [00:29:58] 1014 (1) - 1,50% - код ставки НСП [00:29:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:58] 1133 (588) - - счетчики коррекции - не используются [00:29:58]1077 (6) - 196088952345231 - ФПД [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1209 (04B9) [00:29:58]Malloc new data [00:29:58]Processing tag 1041 (0411) [00:29:58]Processing tag 1040 (0410) [00:29:58]Malloc new data [00:29:58]Processing tag 1038 (040E) [00:29:58]Malloc new data [00:29:58]Processing tag 1118 (045E) [00:29:58]Malloc new data [00:29:58]Processing tag 1111 (0457) [00:29:58]Malloc new data [00:29:58]Processing tag 1194 (04AA) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1134 (046E) [00:29:58]Malloc new data [00:29:58]Processing tag 1129 (0469) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1135 (046F) [00:29:58]Malloc new data [00:29:58]Processing tag 1201 (04B1) [00:29:58]Malloc new data [00:29:58]Processing tag 1136 (0470) [00:29:58]Malloc new data [00:29:58]Processing tag 1138 (0472) [00:29:58]Malloc new data [00:29:58]Processing tag 1024 (0400) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1006 (03EE) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1010 (03F2) [00:29:58]Malloc new data [00:29:58]Processing tag 1011 (03F3) [00:29:58]Malloc new data [00:29:58]SetTLVBufToDocument err=0 [00:29:58]Processing tag 1006 (03EE) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1010 (03F2) [00:29:58]Malloc new data [00:29:58]Processing tag 1011 (03F3) [00:29:58]Malloc new data [00:29:58]SetTLVBufToDocument err=0 [00:29:58]Processing tag 1007 (03EF) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1014 (03F6) [00:29:58]Malloc new data [00:29:58]Processing tag 1015 (03F7) [00:29:58]Malloc new data [00:29:58]SetTLVBufToDocument err=0 [00:29:58]Processing tag 1007 (03EF) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1014 (03F6) [00:29:58]Malloc new data [00:29:58]Processing tag 1015 (03F7) [00:29:58]Malloc new data [00:29:58]SetTLVBufToDocument err=0 [00:29:58]Processing tag 1007 (03EF) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1014 (03F6) [00:29:58]Malloc new data [00:29:58]Processing tag 1015 (03F7) [00:29:58]Malloc new data [00:29:58]SetTLVBufToDocument err=0 [00:29:58]Processing tag 1007 (03EF) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1014 (03F6) [00:29:58]Malloc new data [00:29:58]Processing tag 1015 (03F7) [00:29:58]Malloc new data [00:29:58]SetTLVBufToDocument err=0 [00:29:58]Processing tag 1007 (03EF) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1014 (03F6) [00:29:58]Malloc new data [00:29:58]Processing tag 1015 (03F7) [00:29:58]Malloc new data [00:29:58]SetTLVBufToDocument err=0 [00:29:58]Processing tag 1007 (03EF) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1014 (03F6) [00:29:58]Malloc new data [00:29:58]Processing tag 1015 (03F7) [00:29:58]Malloc new data [00:29:58]SetTLVBufToDocument err=0 [00:29:58]Processing tag 1007 (03EF) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1014 (03F6) [00:29:58]Malloc new data [00:29:58]Processing tag 1015 (03F7) [00:29:58]Malloc new data [00:29:58]SetTLVBufToDocument err=0 [00:29:58]SetTLVBufToDocument err=0 [00:29:58]SetTLVBufToDocument err=0 [00:29:58]Processing tag 1130 (046A) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1135 (046F) [00:29:58]Malloc new data [00:29:58]Processing tag 1201 (04B1) [00:29:58]Malloc new data [00:29:58]Processing tag 1136 (0470) [00:29:58]Malloc new data [00:29:58]Processing tag 1138 (0472) [00:29:58]Malloc new data [00:29:58]Processing tag 1024 (0400) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1006 (03EE) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1010 (03F2) [00:29:58]Malloc new data [00:29:58]Processing tag 1011 (03F3) [00:29:58]Malloc new data [00:29:58]SetTLVBufToDocument err=0 [00:29:58]Processing tag 1006 (03EE) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1010 (03F2) [00:29:58]Malloc new data [00:29:58]Processing tag 1011 (03F3) [00:29:58]Malloc new data [00:29:58]SetTLVBufToDocument err=0 [00:29:58]Processing tag 1007 (03EF) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1014 (03F6) [00:29:58]Malloc new data [00:29:58]Processing tag 1015 (03F7) [00:29:58]Malloc new data [00:29:58]SetTLVBufToDocument err=0 [00:29:58]Processing tag 1007 (03EF) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1014 (03F6) [00:29:58]Malloc new data [00:29:58]Processing tag 1015 (03F7) [00:29:58]Malloc new data [00:29:58]SetTLVBufToDocument err=0 [00:29:58]Processing tag 1007 (03EF) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1014 (03F6) [00:29:58]Malloc new data [00:29:58]Processing tag 1015 (03F7) [00:29:58]Malloc new data [00:29:58]SetTLVBufToDocument err=0 [00:29:58]Processing tag 1007 (03EF) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1014 (03F6) [00:29:58]Malloc new data [00:29:58]Processing tag 1015 (03F7) [00:29:58]Malloc new data [00:29:58]SetTLVBufToDocument err=0 [00:29:58]Processing tag 1007 (03EF) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1014 (03F6) [00:29:58]Malloc new data [00:29:58]Processing tag 1015 (03F7) [00:29:58]Malloc new data [00:29:58]SetTLVBufToDocument err=0 [00:29:58]Processing tag 1007 (03EF) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1014 (03F6) [00:29:58]Malloc new data [00:29:58]Processing tag 1015 (03F7) [00:29:58]Malloc new data [00:29:58]SetTLVBufToDocument err=0 [00:29:58]Processing tag 1007 (03EF) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1014 (03F6) [00:29:58]Malloc new data [00:29:58]Processing tag 1015 (03F7) [00:29:58]Malloc new data [00:29:58]SetTLVBufToDocument err=0 [00:29:58]SetTLVBufToDocument err=0 [00:29:58]SetTLVBufToDocument err=0 [00:29:58]Processing tag 1131 (046B) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1135 (046F) [00:29:58]Malloc new data [00:29:58]Processing tag 1201 (04B1) [00:29:58]Malloc new data [00:29:58]Processing tag 1136 (0470) [00:29:58]Malloc new data [00:29:58]Processing tag 1138 (0472) [00:29:58]Malloc new data [00:29:58]Processing tag 1024 (0400) [00:29:58]Load OK [00:29:58]SetTLVBufToDocument [00:29:58]Processing tag 1006 (03EE) [00:29:58]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1010 (03F2) [00:29:59]Malloc new data [00:29:59]Processing tag 1011 (03F3) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1006 (03EE) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1010 (03F2) [00:29:59]Malloc new data [00:29:59]Processing tag 1011 (03F3) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1007 (03EF) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1014 (03F6) [00:29:59]Malloc new data [00:29:59]Processing tag 1015 (03F7) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1007 (03EF) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1014 (03F6) [00:29:59]Malloc new data [00:29:59]Processing tag 1015 (03F7) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1007 (03EF) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1014 (03F6) [00:29:59]Malloc new data [00:29:59]Processing tag 1015 (03F7) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1007 (03EF) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1014 (03F6) [00:29:59]Malloc new data [00:29:59]Processing tag 1015 (03F7) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1007 (03EF) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1014 (03F6) [00:29:59]Malloc new data [00:29:59]Processing tag 1015 (03F7) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1007 (03EF) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1014 (03F6) [00:29:59]Malloc new data [00:29:59]Processing tag 1015 (03F7) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1007 (03EF) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1014 (03F6) [00:29:59]Malloc new data [00:29:59]Processing tag 1015 (03F7) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]SetTLVBufToDocument err=0 [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1132 (046C) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1135 (046F) [00:29:59]Malloc new data [00:29:59]Processing tag 1201 (04B1) [00:29:59]Malloc new data [00:29:59]Processing tag 1136 (0470) [00:29:59]Malloc new data [00:29:59]Processing tag 1138 (0472) [00:29:59]Malloc new data [00:29:59]Processing tag 1024 (0400) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1006 (03EE) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1010 (03F2) [00:29:59]Malloc new data [00:29:59]Processing tag 1011 (03F3) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1006 (03EE) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1010 (03F2) [00:29:59]Malloc new data [00:29:59]Processing tag 1011 (03F3) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1007 (03EF) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1014 (03F6) [00:29:59]Malloc new data [00:29:59]Processing tag 1015 (03F7) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1007 (03EF) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1014 (03F6) [00:29:59]Malloc new data [00:29:59]Processing tag 1015 (03F7) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1007 (03EF) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1014 (03F6) [00:29:59]Malloc new data [00:29:59]Processing tag 1015 (03F7) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1007 (03EF) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1014 (03F6) [00:29:59]Malloc new data [00:29:59]Processing tag 1015 (03F7) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1007 (03EF) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1014 (03F6) [00:29:59]Malloc new data [00:29:59]Processing tag 1015 (03F7) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1007 (03EF) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1014 (03F6) [00:29:59]Malloc new data [00:29:59]Processing tag 1015 (03F7) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1007 (03EF) [00:29:59]Load OK [00:29:59]SetTLVBufToDocument [00:29:59]Processing tag 1014 (03F6) [00:29:59]Malloc new data [00:29:59]Processing tag 1015 (03F7) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]SetTLVBufToDocument err=0 [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1133 (046D) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Processing tag 1077 (0435) [00:29:59]Malloc new data [00:29:59]SetTLVBufToDocument err=0 [00:29:59]Malloc new data [00:29:59]SAM_PROTO_GetFMData [00:29:59]wFMCommunicate request_size=4 [00:29:59]MH_SAM_APDU [00:29:59]CAPDU: 80 13 03 00 [00:29:59]Write to MH i2c: E2 08 00 47 05 80 13 03 00 00 00 00 00 CB [00:29:59]Write i2c OK [00:29:59]MH_I2C_Read... [00:29:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:59]Read from MH i2c: E2 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: E2 FD 00 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: E2 FD 00 47 05 00 C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 FF [00:30:00]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [00:30:00]wFMCommunicate OK [00:30:00]wFMCommunicate request_size=4 [00:30:00]MH_SAM_APDU [00:30:00]CAPDU: 80 17 00 00 [00:30:00]Write to MH i2c: E2 08 00 48 05 80 17 00 00 00 00 00 00 CD [00:30:00]Write i2c OK [00:30:00]MH_I2C_Read... [00:30:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:00]Read from MH i2c: E2 [00:30:00]MH_I2C_Read... [00:30:00]Read from MH i2c: E2 FD 00 [00:30:00]MH_I2C_Read... [00:30:00]Read from MH i2c: E2 FD 00 48 05 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 D1 [00:30:00]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:30:00]wFMCommunicate OK [00:30:00]wFMCommunicate request_size=4 [00:30:00]MH_SAM_APDU [00:30:00]CAPDU: 80 17 00 00 [00:30:00]Write to MH i2c: E2 08 00 49 05 80 17 00 00 00 00 00 00 CE [00:30:00]Write i2c OK [00:30:00]MH_I2C_Read... [00:30:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:00]Read from MH i2c: E2 [00:30:00]MH_I2C_Read... [00:30:00]Read from MH i2c: E2 FD 00 [00:30:00]MH_I2C_Read... [00:30:00]Read from MH i2c: E2 FD 00 49 05 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 EC [00:30:01]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [00:30:01]wFMCommunicate OK [00:30:01]wFMCommunicate request_size=4 [00:30:01]MH_SAM_APDU [00:30:01]CAPDU: 80 17 00 00 [00:30:01]Write to MH i2c: E2 08 00 4A 05 80 17 00 00 00 00 00 00 CF [00:30:01]Write i2c OK [00:30:01]MH_I2C_Read... [00:30:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:01]Read from MH i2c: E2 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 FD 00 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 FD 00 4A 05 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 41 [00:30:01]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:01]wFMCommunicate OK [00:30:01]wFMCommunicate request_size=4 [00:30:01]MH_SAM_APDU [00:30:01]CAPDU: 80 17 00 00 [00:30:01]Write to MH i2c: E2 08 00 4B 05 80 17 00 00 00 00 00 00 D0 [00:30:01]Write i2c OK [00:30:01]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 E0 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 E0 00 4B 05 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BA [00:30:02]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 OFD Sender: No OFD packet to send [00:30:02]04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:30:02]wFMCommunicate OK [00:30:02]SAM_PROTO_GetFMData done [00:30:02]Malloc new data [00:30:02]Malloc new data [00:30:02]Malloc new data [00:30:02]Malloc new data [00:30:02]KKMLoadAndSignCloseShiftData err=0 [00:30:02]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Манас уулу М. 21.10.2024 00:29 Смена: 526 РНМ: 0000000000091770 ЗНМ: 0300000101 СНО: Общий режим Чеков за смену: 129 ФД за смену: 131 Всего чеков: 129 ИТОГИ ПРИХОД Чеков: 129 Общий итог: 32893.39 Итого наличными: 26104.00 Итого безнал.: 6789.39 НДС 0% : 0.00 НДС 12% : 3493.08 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 290.97 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 26104.00 НС Приход: 20226131.47 НС Возвр.Прихода: 120523.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 69840 ФМ: 0000000000871749 ФПД: 196088952345231 [00:30:02]StoreToDocumentArchive [00:30:02]shift 526 fd 69840 [00:30:02]save to /storage/0526/doc_00069840 [00:30:02]save last doc name /storage/0526/doc_00069840 to /storage/kkm_last_doc_name [00:30:02]save OK [00:30:02]Clear old archive folders... [00:30:02]Remove dir /storage/0522 [00:30:02]opendir ok [00:30:02]file . [00:30:02]file .. [00:30:02]file doc_1729470550 [00:30:02]remove file /storage/0522/doc_1729470550 [00:30:02]remove dir /storage/0522 [00:30:02]NVStorageSaveData kkm_registers [00:30:02]File name is /storage/kkm_registers [00:30:02]Write 24 bytes [00:30:02]NVStorageSaveData done [00:30:02]NVStorageSaveData kkm_registers [00:30:02]File name is /storage/kkm_registers [00:30:02]Write 24 bytes [00:30:02]NVStorageSaveData done [00:30:02]ProcessDocumentItem done err = 0, tmpTLVsize=1382 [00:30:02]tlvbuf is 01768F50 [00:30:02]SAM_PROTO_ClearQueue [00:30:02]wFMCommunicate request_size=4 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 09 00 00 [00:30:02]Write to MH i2c: E2 08 00 4C 05 80 09 00 00 00 00 00 00 C3 [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 4C 05 00 90 00 C5 [00:30:02]RAPDU: 90 00 [00:30:02]wFMCommunicate OK [00:30:02]SAM_PROTO_ClearQueue done [00:30:02]KKMCreateOFDPacket [00:30:02]OFDProtocolAddRootSTLVToBuf [00:30:02]FM_MakeSignedData [00:30:02]FM_MakeSignedData [00:30:02]SAM_PROTO_SignData [00:30:02]wFMCommunicate request_size=4 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 0D 01 02 [00:30:02]Write to MH i2c: E2 08 00 4D 05 80 0D 01 02 00 00 00 00 CB [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 4D 05 00 90 00 C6 [00:30:02]RAPDU: 90 00 [00:30:02]wFMCommunicate OK [00:30:02]wFMCommunicate request_size=255 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 0D 02 02 FA 05 00 66 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 18 00 D0 9C D0 B0 D0 BD D0 B0 D1 81 20 D1 83 D1 83 D0 BB D1 83 20 D0 9C 2E 20 F4 03 04 00 84 A0 15 67 0E 04 04 00 0E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 5E 04 04 00 81 00 00 00 57 04 04 00 83 00 00 00 AA 04 D5 04 6E 04 04 00 81 00 00 00 69 04 A2 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 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 7C 54 05 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:30:02]Write to MH i2c: E2 02 01 4E 05 80 0D 02 02 FA 00 05 00 66 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 18 00 D0 9C D0 B0 D0 BD D0 B0 D1 81 20 D1 83 D1 83 D0 BB D1 83 20 D0 9C 2E 20 F4 03 04 00 84 A0 15 67 0E 04 04 00 0E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 5E 04 04 00 81 00 00 00 57 04 04 00 83 00 00 00 AA 04 D5 04 6E 04 04 00 81 00 00 00 69 04 A2 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 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 7C 54 05 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 00 47 [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:03]Read from MH i2c: E2 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 03 00 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 03 00 4E 05 00 90 00 C7 [00:30:03]RAPDU: 90 00 [00:30:03]wFMCommunicate OK [00:30:03]wFMCommunicate request_size=255 [00:30:03]MH_SAM_APDU [00:30:03]CAPDU: 80 0D 02 02 FA 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 71 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 [00:30:03]Write to MH i2c: E2 02 01 4F 05 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 71 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 00 55 [00:30:03]Write i2c OK [00:30:03]MH_I2C_Read... [00:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:03]Read from MH i2c: E2 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 03 00 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [00:30:03]RAPDU: 90 00 [00:30:03]wFMCommunicate OK [00:30:03]wFMCommunicate request_size=255 [00:30:03]MH_SAM_APDU [00:30:03]CAPDU: 80 0D 02 02 FA 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 [00:30:04]Write to MH i2c: E2 02 01 50 05 80 0D 02 02 FA 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 00 00 95 [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:04]Read from MH i2c: E2 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 03 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 03 00 50 05 00 90 00 C9 [00:30:04]RAPDU: 90 00 [00:30:04]wFMCommunicate OK [00:30:04]wFMCommunicate request_size=255 [00:30:04]MH_SAM_APDU [00:30:04]CAPDU: 80 0D 02 02 FA 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:30:04]Write to MH i2c: E2 02 01 51 05 80 0D 02 02 FA 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 00 95 [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:05]Read from MH i2c: E2 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 03 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 03 00 51 05 00 90 00 CA [00:30:05]RAPDU: 90 00 [00:30:05]wFMCommunicate OK [00:30:05]wFMCommunicate request_size=255 [00:30:05]MH_SAM_APDU [00:30:05]CAPDU: 80 0D 02 02 FA 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 [00:30:05]Write to MH i2c: E2 02 01 52 05 80 0D 02 02 FA 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 00 00 5B [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:05]Read from MH i2c: E2 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 03 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 03 00 52 05 00 90 00 CB [00:30:05]RAPDU: 90 00 [00:30:05]wFMCommunicate OK [00:30:05]wFMCommunicate request_size=141 [00:30:05]MH_SAM_APDU [00:30:05]CAPDU: 80 0D 02 02 88 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D0 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 35 04 06 00 B2 57 84 59 52 8F [00:30:05]Write to MH i2c: E2 90 00 53 05 80 0D 02 02 88 00 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D0 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 35 04 06 00 B2 57 84 59 52 8F 00 00 C0 [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:06]Read from MH i2c: E2 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 03 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 03 00 53 05 00 90 00 CC [00:30:06]RAPDU: 90 00 [00:30:06]wFMCommunicate OK [00:30:06]wFMCommunicate request_size=4 [00:30:06]MH_SAM_APDU [00:30:06]CAPDU: 80 0D 03 02 [00:30:06]Write to MH i2c: E2 08 00 54 05 80 0D 03 02 00 00 00 00 D4 [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:30:06]Read from MH i2c: E2 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 0B 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 0B 00 54 05 00 18 4A D1 75 53 C2 D4 D2 90 00 38 [00:30:06]RAPDU: 18 4A D1 75 53 C2 D4 D2 90 00 [00:30:06]wFMCommunicate OK [00:30:06]SAM_PROTO_SignData done [00:30:06]FM_MakeSignedData done [00:30:06]CreateOFDProtocolMessage [00:30:06]wFMCommunicate request_size=4 [00:30:06]MH_SAM_APDU [00:30:06]CAPDU: 80 11 00 00 [00:30:06]Write to MH i2c: E2 08 00 55 05 80 11 00 00 00 00 00 00 D4 [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:06]Read from MH i2c: E2 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 17 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 17 00 55 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 2B [00:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [00:30:06]wFMCommunicate OK [00:30:06]CreateOFDProtocolMessage done [00:30:06]OFDSenderStorePacket 69840 [00:30:06]StoreOFDPacket docnum=69840 [00:30:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 7A 05 00 00 6A 26 72 05 1F 1F 5A 05 01 00 05 00 66 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 18 00 D0 9C D0 B0 D0 BD D0 B0 D1 81 20 D1 83 D1 83 D0 BB D1 83 20 D0 9C 2E 20 F4 03 04 00 84 A0 15 67 0E 04 04 00 0E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 5E 04 04 00 81 00 00 00 57 04 04 00 83 00 00 00 AA 04 D5 04 6E 04 04 00 81 00 00 00 69 04 A2 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 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 7C 54 05 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 71 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 D0 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 35 04 06 00 B2 57 84 59 52 8F 18 4A D1 75 53 C2 D4 D2 [00:30:06]CheckFolder [00:30:06]dirname=/storage/ofd_packets [00:30:06]CheckFolder done [00:30:06]ProducePacketName [00:30:06]name=ofd_packets/00069840 [00:30:06]NVStorageSaveData ofd_packets/00069840 [00:30:06]File name is /storage/ofd_packets/00069840 [00:30:06]Write 1432 bytes [00:30:06]NVStorageSaveData done [00:30:06]OFDSenderStorePacket done [00:30:06]KKMCreateOFDPacket done [00:30:06]NVStorageSaveData kkm_last_timestamp [00:30:06]File name is /storage/kkm_last_timestamp [00:30:06]Write 4 bytes [00:30:06]NVStorageSaveData done [00:30:06]ExternCall_PrintAddStr [00:30:06]wPrintStart [00:30:06]Write to MH i2c: 01 00 00 56 05 5B [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: 01 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: 01 07 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: 01 07 00 56 05 00 00 00 00 00 FF 0F 70 [00:30:06]RasterBufferAndPrint [00:30:06]line Отчет о закрытии смены [00:30:06]line ФФД: 1.0 [00:30:06]line ИНН: 02508201610067 [00:30:06]line Кассир: Манас уулу М. [00:30:06]line 21.10.2024 00:29 [00:30:06]line Смена: 526 [00:30:06]line РНМ: 0000000000091770 [00:30:06]line ЗНМ: 0300000101 [00:30:06]line СНО: Общий режим [00:30:06]line Чеков за смену: 129 [00:30:06]line ФД за смену: 131 [00:30:06]line Всего чеков: 129 [00:30:06]line ИТОГИ ПРИХОД [00:30:06]line Чеков: 129 [00:30:06]line Общий итог: 32893.39 [00:30:06]line Итого наличными: 26104.00 [00:30:06]line Итого безнал.: 6789.39 [00:30:06]line НДС 0% : 0.00 [00:30:06]line НДС 12% : 3493.08 [00:30:06]line НСП 0% : 0.00 [00:30:06]line НСП 1,50% : 0.00 [00:30:06]line НСП 0,50% : 0.00 [00:30:06]line НСП 5% : 0.00 [00:30:06]line НСП 3% : 0.00 [00:30:06]line НСП 2% : 0.00 [00:30:06]line НСП 1% : 290.97 [00:30:06]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:30:06]line Чеков: 0 [00:30:06]line Общий итог: 0.00 [00:30:06]line Итого наличными: 0.00 [00:30:06]line Итого безнал.: 0.00 [00:30:06]line НДС 0% : 0.00 [00:30:06]line НДС 12% : 0.00 [00:30:06]line НСП 0% : 0.00 [00:30:06]line НСП 1,50% : 0.00 [00:30:06]line НСП 0,50% : 0.00 [00:30:06]line НСП 5% : 0.00 [00:30:06]line НСП 3% : 0.00 [00:30:06]line НСП 2% : 0.00 [00:30:06]line НСП 1% : 0.00 [00:30:06]line ИТОГИ РАСХОД [00:30:06]line Чеков: 0 [00:30:06]line Общий итог: 0.00 [00:30:06]line Итого наличными: 0.00 [00:30:06]line Итого безнал.: 0.00 [00:30:06]line НДС 0% : 0.00 [00:30:06]line НДС 12% : 0.00 [00:30:06]line НСП 0% : 0.00 [00:30:06]line НСП 1,50% : 0.00 [00:30:06]line НСП 0,50% : 0.00 [00:30:06]line НСП 5% : 0.00 [00:30:06]line НСП 3% : 0.00 [00:30:06]line НСП 2% : 0.00 [00:30:06]line НСП 1% : 0.00 [00:30:06]line ИТОГИ ВОЗВРАТ РАСХОДА [00:30:06]line Чеков: 0 [00:30:06]line Общий итог: 0.00 [00:30:06]line Итого наличными: 0.00 [00:30:06]line Итого безнал.: 0.00 [00:30:06]line НДС 0% : 0.00 [00:30:06]line НДС 12% : 0.00 [00:30:06]line НСП 0% : 0.00 [00:30:06]line НСП 1,50% : 0.00 [00:30:06]line НСП 0,50% : 0.00 [00:30:06]line НСП 5% : 0.00 [00:30:06]line НСП 3% : 0.00 [00:30:06]line НСП 2% : 0.00 [00:30:06]line НСП 1% : 0.00 [00:30:06]line Сумма внесений: 0.00 [00:30:06]line Сумма выплат: 0.00 [00:30:06]line Нал. в кассе: 26104.00 [00:30:06]line НС Приход: 20226131.47 [00:30:06]line НС Возвр.Прихода: 120523.00 [00:30:06]line НС Расход: 0.00 [00:30:06]line НС Возвр.Расхода: 0.00 [00:30:06]line ФД: 69840 [00:30:06]line ФМ: 0000000000871749 [00:30:06]line ФПД: 196088952345231 [00:30:06]written 0, free lines is 4095 [00:30:06]OFD Sender: Processing packet 69840 [packets to send 32, broken 31] [00:30:06]ProducePacketName [00:30:06]name=ofd_packets/00069840 [00:30:06]OFD Sender: To server: pG, [00:30:06]CommunicateWithHost lk.salyk.kg:30040 [00:30:06]ConnectInit lk.salyk.kg [00:30:06]Connected sock=10 [00:30:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 7A 05 00 00 6A 26 72 05 1F 1F 5A 05 01 00 05 00 66 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 18 00 D0 9C D0 B0 D0 BD D0 B0 D1 81 20 D1 83 D1 83 D0 BB D1 83 20 D0 9C 2E 20 F4 03 04 00 84 A0 15 67 0E 04 04 00 0E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 5E 04 04 00 81 00 00 00 57 04 04 00 83 00 00 00 AA 04 D5 04 6E 04 04 00 81 00 00 00 69 04 A2 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 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 7C 54 05 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 71 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 Write to MH i2c: EF 01 03 00 09 00 00 A6 F6 05 03 AB 01 [00:30:07]00 Write i2c OK [00:30:07]04 MH_I2C_Read... [00:30:07]F7 Read from MH i2c: 03 01 00 [00:30:07]00 MH_I2C_Read... [00:30:07]EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 Read from MH i2c: 00 01 F6 07 03 00 01 [00:30:07]00 MH_I2C_Read... [00:30:07]06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 Read from MH i2c: 04 01 00 07 00 00 70 A6 04 05 00 00 00 00 72 00 04 00 00 00 00 BF 00 0B 04 7C 75 [00:30:07]00 RasterBufferAndPrint [00:30:07]EE line [00:30:07]03 line [00:30:07]09 line [00:30:07]00 line [00:30:07]F2 line [00:30:07]03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 written 0, free lines is 3123 [00:30:07]F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 MH_Cut [00:30:07]03 Write to MH i2c: 00 D1 00 01 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 00 AD F6 05 03 01 01 84 00 [00:30:07]02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 Write i2c OK [00:30:08]F6 MH_I2C_Read... [00:30:08]03 Read from MH i2c: 01 D1 00 [00:30:08]03 MH_I2C_Read... [00:30:08]F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 Read from MH i2c: EF D1 03 01 09 00 00 [00:30:08]F6 MH_I2C_Read... [00:30:08]03 Read from MH i2c: D1 01 01 00 00 05 AD F7 05 03 00 00 83 00 [00:30:08]EF Write to MH i2c: 03 01 09 00 00 00 F6 AE 03 05 01 B3 00 [00:30:08]06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 Write i2c OK [00:30:08]00 MH_I2C_Read... [00:30:08]00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D0 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 35 04 06 00 B2 57 84 59 52 8F 18 4A D1 75 53 C2 D4 D2 [00:30:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 54 06 47 00 8D 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 D0 10 01 00 F4 03 04 00 *** Cut start [00:30:08]10 46 15 67 B6 *** Partial cut [00:30:08]04 01 00 00 45 AF 04 AC DD 63 86 80 [00:30:08]CommunicateWithHost err = 0 [00:30:08]CheckOFDResponse [00:30:08]1017 (14) - 77093643461234 [00:30:08]1041 (16) - 0000000000871749 [00:30:08]1040 (4) - 69840 [00:30:08]1012 (4) - 20.10.2024 18:04 [00:30:08]1206 (1) - 0 [00:30:08]OFD Sender: Remove packet 69840 [00:30:08]*** CUTSNS_PIN = 1 [00:30:08]ProducePacketName [00:30:08]*** CUTSNS_PIN = 0 [00:30:08]name=ofd_packets/00069840 [00:30:08]NVStorageDeleteData [00:30:09]*** Brake cut motor [00:30:09]OFD Sender: No OFD packet to send [00:30:09]Read from MH i2c: *** Stop cut motor [00:30:09]01 *** Cut end [00:30:09] [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: 01 07 00 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: 01 07 00 AE 05 00 00 00 00 00 FF 0F C8 [00:30:09]process_action close_shift done [00:30:09]requested_data is exist [00:30:09]produce_requested_data [00:30:09]requested_item fd.num is exist - process it [00:30:09]SAM_PROTO_GetFieldsCounters [00:30:09]wFMCommunicate request_size=4 [00:30:09]MH_SAM_APDU [00:30:09]CAPDU: 80 13 00 00 [00:30:09]Write to MH i2c: E2 08 00 AF 05 80 13 00 00 00 00 00 00 30 [00:30:09]Write i2c OK [00:30:09]MH_I2C_Read... [00:30:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:09]Read from MH i2c: E2 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 62 00 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 62 00 AF 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 D0 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [00:30: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 D0 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:09]wFMCommunicate OK [00:30:09]SAM_PROTO_GetFieldsCounters done [00:30:09]requested_item shift.num is exist - process it [00:30:09]requested_item shift.opened is exist - process it [00:30:09]req_shift_opened [00:30:09]FM_GetShiftState [00:30:09]SAM_PROTO_GetShiftState [00:30:09]wFMCommunicate request_size=4 [00:30:09]MH_SAM_APDU [00:30:09]CAPDU: 80 13 01 00 [00:30:09]Write to MH i2c: E2 08 00 B0 05 80 13 01 00 00 00 00 00 32 [00:30:09]Write i2c OK [00:30:09]MH_I2C_Read... [00:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:09]Read from MH i2c: E2 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 0E 00 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 0E 00 B0 05 00 09 00 00 00 00 00 00 00 00 00 00 90 00 3D [00:30:09]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:30:09]wFMCommunicate OK [00:30:09]SAM_PROTO_GetShiftState done [00:30:09]FM_GetShiftState done [00:30:09]req_shift_opened done [00:30:09]requested_item shift.open_date is exist - process it [00:30:09]req_shift_open_date [00:30:09]FM_GetShiftState [00:30:09]SAM_PROTO_GetShiftState [00:30:09]wFMCommunicate request_size=4 [00:30:09]MH_SAM_APDU [00:30:09]CAPDU: 80 13 01 00 [00:30:09]Write to MH i2c: E2 08 00 B1 05 80 13 01 00 00 00 00 00 33 [00:30:09]Write i2c OK [00:30:09]MH_I2C_Read... [00:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:09]Read from MH i2c: E2 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 0E 00 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 0E 00 B1 05 00 09 00 00 00 00 00 00 00 00 00 00 90 00 3E [00:30:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:30:10]wFMCommunicate OK [00:30:10]SAM_PROTO_GetShiftState done [00:30:10]FM_GetShiftState done [00:30:10]req_shift_open_date done [00:30:10]produce_requested_data done [00:30:10]produce_requested_data return {"fd.num":69840,"shift.num":526,"shift.opened":0,"shift.open_date":0} [00:30:10]process_action_free close_shift [00:30:10]json_value_free [00:30:10]json_value_free done [00:30:10]process_json_proto returns [00:30:10]Send response to host [00:30:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":69840,"shift.num":526,"shift.opened":0,"shift.open_date":0}}} [00:30:10]free response buf [00:30:10]execute_script done [00:30:10]execute_script returns [00:30:10]free content buf [00:30:10]Sock 9.Close socket [00:30:10]Sock 9.Thread stoped [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:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:33]accept exits with 7 [00:36:33]New connection [00:36:33]New thread 3066641764 created [00:36:33]Thread 3066785124 joined [00:36:33]Waiting for new connection... [00:36:33] Sock 7.Parse request [00:36:33]Sock 7.Check first char [00:36:33]Sock 7.First char is OK [00:36:33]request: POST /json_proto HTTP/1.0 [00:36:33]Method: POST [00:36:33]URL: /json_proto [00:36:33]Method is POST - this is cgi request [00:36:33]url: /json_proto [00:36:33]query_string will be loaded in cgi processing [00:36:33]execute_cgi json_proto POST (null) [00:36:33]execute_cgi path=json_proto method=POST [00:36:33]POST find Content-Length [00:36:33]Host: 172.17.52.196:8080 [00:36:33]Content-Length: 215 [00:36:33]Content-Type: application/json [00:36:33] [00:36:33]POST finish read [00:36:33]Found Content-Length = 215 [00:36:33]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:36:33]execute_script... [00:36:33]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:36:33]POST & json_proto [00:36:33]process_json_proto [00:36:33]json parsed OK: [00:36:33]protocol is kg_v1.0 [00:36:33]action value=get_value [00:36:33]process_action get_value [00:36:33]cmd_get_value [00:36:33]process_action get_value done [00:36:33]requested_data is exist [00:36:33]produce_requested_data [00:36:33]requested_item kkm.sn is exist - process it [00:36:33]requested_item kkm.ver is exist - process it [00:36:33]requested_item fm.sn is exist - process it [00:36:33]wFMCommunicate request_size=4 [00:36:33]MH_SAM_APDU [00:36:33]CAPDU: 80 11 00 00 [00:36:33]Write to MH i2c: E2 08 00 B2 05 80 11 00 00 00 00 00 00 31 [00:36:33]Write i2c OK [00:36:33]MH_I2C_Read... [00:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:33]Read from MH i2c: E2 [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: E2 17 00 [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: E2 17 00 B2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 88 [00:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [00:36:33]wFMCommunicate OK [00:36:33]requested_item fd.num is exist - process it [00:36:33]SAM_PROTO_GetFieldsCounters [00:36:33]wFMCommunicate request_size=4 [00:36:33]MH_SAM_APDU [00:36:33]CAPDU: 80 13 00 00 [00:36:33]Write to MH i2c: E2 08 00 B3 05 80 13 00 00 00 00 00 00 34 [00:36:33]Write i2c OK [00:36:33]MH_I2C_Read... [00:36:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:33]Read from MH i2c: E2 [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: E2 62 00 [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: E2 62 00 B3 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 D0 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [00:36:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 D0 10 01 00 0E 04 04 00 0E 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:33]wFMCommunicate OK [00:36:33]SAM_PROTO_GetFieldsCounters done [00:36:33]requested_item shift.num is exist - process it [00:36:33]requested_item shift.opened is exist - process it [00:36:33]req_shift_opened [00:36:33]FM_GetShiftState [00:36:33]SAM_PROTO_GetShiftState [00:36:33]wFMCommunicate request_size=4 [00:36:33]MH_SAM_APDU [00:36:33]CAPDU: 80 13 01 00 [00:36:33]Write to MH i2c: E2 08 00 B4 05 80 13 01 00 00 00 00 00 36 [00:36:33]Write i2c OK [00:36:33]MH_I2C_Read... [00:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:33]Read from MH i2c: E2 [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: E2 0E 00 [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: E2 0E 00 B4 05 00 09 00 00 00 00 00 00 00 00 00 00 90 00 41 [00:36:33]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:36:33]wFMCommunicate OK [00:36:33]SAM_PROTO_GetShiftState done [00:36:33]FM_GetShiftState done [00:36:33]req_shift_opened done [00:36:33]requested_item shift.open_date is exist - process it [00:36:33]req_shift_open_date [00:36:33]FM_GetShiftState [00:36:33]SAM_PROTO_GetShiftState [00:36:33]wFMCommunicate request_size=4 [00:36:33]MH_SAM_APDU [00:36:33]CAPDU: 80 13 01 00 [00:36:33]Write to MH i2c: E2 08 00 B5 05 80 13 01 00 00 00 00 00 37 [00:36:33]Write i2c OK [00:36:33]MH_I2C_Read... [00:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:33]Read from MH i2c: E2 [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: E2 0E 00 [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: E2 0E 00 B5 05 00 09 00 00 00 00 00 00 00 00 00 00 90 00 42 [00:36:33]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:36:33]wFMCommunicate OK [00:36:33]SAM_PROTO_GetShiftState done [00:36:33]FM_GetShiftState done [00:36:33]req_shift_open_date done [00:36:33]produce_requested_data done [00:36:33]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69840,"shift.num":526,"shift.opened":0,"shift.open_date":0} [00:36:33]process_action_free get_value [00:36:33]json_value_free [00:36:33]json_value_free done [00:36:33]process_json_proto returns [00:36:33]Send response to host [00:36:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69840,"shift.num":526,"shift.opened":0,"shift.open_date":0}}} [00:36:33]free response buf [00:36:33]execute_script done [00:36:33]execute_script returns [00:36:33]free content buf [00:36:33]Sock 7.Close socket [00:36:33]Sock 7.Thread stoped [00:36:33]accept exits with 9 [00:36:33]New connection [00:36:33]New thread 3066785124 created [00:36:33]Thread 3066641764 joined [00:36:33]Waiting for new connection... [00:36:33] Sock 9.Parse request [00:36:33]Sock 9.Check first char [00:36:33]Sock 9.First char is OK [00:36:33]request: POST /json_proto HTTP/1.0 [00:36:33]Method: POST [00:36:33]URL: /json_proto [00:36:33]Method is POST - this is cgi request [00:36:33]url: /json_proto [00:36:33]query_string will be loaded in cgi processing [00:36:33]execute_cgi json_proto POST (null) [00:36:33]execute_cgi path=json_proto method=POST [00:36:33]POST find Content-Length [00:36:33]Host: 172.17.52.196:8080 [00:36:33]Content-Length: 331 [00:36:33]Content-Type: application/json [00:36:33] [00:36:33]POST finish read [00:36:33]Found Content-Length = 331 [00:36:33]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:36:33]execute_script... [00:36:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:36:33]POST & json_proto [00:36:33]process_json_proto [00:36:33]json parsed OK: [00:36:33]protocol is kg_v1.0 [00:36:33]action value=get_value [00:36:33]process_action get_value [00:36:33]cmd_get_value [00:36:33]process_action get_value done [00:36:33]requested_data is exist [00:36:33]produce_requested_data [00:36:33]requested_item fm.sale.total is exist - process it [00:36:33]SAM_PROTO_GetFMData [00:36:33]wFMCommunicate request_size=4 [00:36:33]MH_SAM_APDU [00:36:33]CAPDU: 80 13 03 00 [00:36:33]Write to MH i2c: E2 08 00 B6 05 80 13 03 00 00 00 00 00 3A [00:36:33]Write i2c OK [00:36:33]MH_I2C_Read... [00:36:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:36:34]Read from MH i2c: E2 [00:36:34]MH_I2C_Read... [00:36:34]Read from MH i2c: E2 FD 00 [00:36:34]MH_I2C_Read... [00:36:34]Read from MH i2c: E2 FD 00 B6 05 00 C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 6E [00:36:34]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [00:36:34]wFMCommunicate OK [00:36:34]wFMCommunicate request_size=4 [00:36:34]MH_SAM_APDU [00:36:34]CAPDU: 80 17 00 00 [00:36:34]Write to MH i2c: E2 08 00 B7 05 80 17 00 00 00 00 00 00 3C [00:36:34]Write i2c OK [00:36:34]MH_I2C_Read... [00:36:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:34]Read from MH i2c: E2 [00:36:34]MH_I2C_Read... [00:36:34]Read from MH i2c: E2 FD 00 [00:36:34]MH_I2C_Read... [00:36:34]Read from MH i2c: E2 FD 00 B7 05 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 40 [00:36:34]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:36:34]wFMCommunicate OK [00:36:34]wFMCommunicate request_size=4 [00:36:34]MH_SAM_APDU [00:36:34]CAPDU: 80 17 00 00 [00:36:34]Write to MH i2c: E2 08 00 B8 05 80 17 00 00 00 00 00 00 3D [00:36:34]Write i2c OK [00:36:34]MH_I2C_Read... [00:36:34]OFD Sender: No OFD packet to send [00:36:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:34]Read from MH i2c: E2 [00:36:34]MH_I2C_Read... [00:36:34]Read from MH i2c: E2 FD 00 [00:36:34]MH_I2C_Read... [00:36:34]Read from MH i2c: E2 FD 00 B8 05 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 5B [00:36:34]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [00:36:34]wFMCommunicate OK [00:36:34]wFMCommunicate request_size=4 [00:36:34]MH_SAM_APDU [00:36:34]CAPDU: 80 17 00 00 [00:36:34]Write to MH i2c: E2 08 00 B9 05 80 17 00 00 00 00 00 00 3E [00:36:34]Write i2c OK [00:36:34]MH_I2C_Read... [00:36:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:35]Read from MH i2c: E2 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 FD 00 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 FD 00 B9 05 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B0 [00:36:35]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:36:35]wFMCommunicate OK [00:36:35]wFMCommunicate request_size=4 [00:36:35]MH_SAM_APDU [00:36:35]CAPDU: 80 17 00 00 [00:36:35]Write to MH i2c: E2 08 00 BA 05 80 17 00 00 00 00 00 00 3F [00:36:35]Write i2c OK [00:36:35]MH_I2C_Read... [00:36:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:36:35]Read from MH i2c: E2 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 E0 00 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 E0 00 BA 05 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 29 [00:36:35]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:36:35]wFMCommunicate OK [00:36:35]SAM_PROTO_GetFMData done [00:36:35]requested_item fm.sale_refund.total is exist - process it [00:36:35]requested_item fm.buy.total is exist - process it [00:36:35]requested_item shift.sale.total is exist - process it [00:36:35]SAM_PROTO_GetShiftData [00:36:35]wFMCommunicate request_size=4 [00:36:35]MH_SAM_APDU [00:36:35]CAPDU: 80 13 02 00 [00:36:35]Write to MH i2c: E2 08 00 BB 05 80 13 02 00 00 00 00 00 3E [00:36:35]Write i2c OK [00:36:35]MH_I2C_Read... [00:36:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:36:35]Read from MH i2c: E2 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 FD 00 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 FD 00 BB 05 00 AE 04 AA 04 AA 04 6E 04 04 00 81 00 00 00 69 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7C 54 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 A9 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 A9 [00:36:35]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 81 00 00 00 69 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 03 00 FB 30 32 70 04 03 00 E0 D4 27 72 04 03 00 1B 5C 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7C 54 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 A9 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:36:35]wFMCommunicate OK [00:36:35]wFMCommunicate request_size=4 [00:36:35]MH_SAM_APDU [00:36:35]CAPDU: 80 17 00 00 [00:36:35]Write to MH i2c: E2 08 00 BC 05 80 17 00 00 00 00 00 00 41 [00:36:35]Write i2c OK [00:36:35]MH_I2C_Read... [00:36:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:36]Read from MH i2c: E2 [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: E2 FD 00 [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: E2 FD 00 BC 05 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 63 [00:36:36]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:36:36]wFMCommunicate OK [00:36:36]wFMCommunicate request_size=4 [00:36:36]MH_SAM_APDU [00:36:36]CAPDU: 80 17 00 00 [00:36:36]Write to MH i2c: E2 08 00 BD 05 80 17 00 00 00 00 00 00 42 [00:36:36]Write i2c OK [00:36:36]MH_I2C_Read... [00:36:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:36]Read from MH i2c: E2 [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: E2 FD 00 [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: E2 FD 00 BD 05 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 F9 [00:36:36]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:36:36]wFMCommunicate OK [00:36:36]wFMCommunicate request_size=4 [00:36:36]MH_SAM_APDU [00:36:36]CAPDU: 80 17 00 00 [00:36:36]Write to MH i2c: E2 08 00 BE 05 80 17 00 00 00 00 00 00 43 [00:36:36]Write i2c OK [00:36:36]MH_I2C_Read... [00:36:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:36]Read from MH i2c: E2 [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: E2 FD 00 [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: E2 FD 00 BE 05 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 B5 [00:36:36]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:36:36]wFMCommunicate OK [00:36:36]wFMCommunicate request_size=4 [00:36:36]MH_SAM_APDU [00:36:36]CAPDU: 80 17 00 00 [00:36:36]Write to MH i2c: E2 08 00 BF 05 80 17 00 00 00 00 00 00 44 [00:36:36]Write i2c OK [00:36:36]MH_I2C_Read... [00:36:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:36:36]Read from MH i2c: E2 [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: E2 CB 00 [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: E2 CB 00 BF 05 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 2D [00:36:36]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:36:36]wFMCommunicate OK [00:36:36]SAM_PROTO_GetShiftData done [00:36:36]requested_item shift.sale.total_cash is exist - process it [00:36:36]requested_item shift.sale_refund.total is exist - process it [00:36:36]requested_item shift.sale_refund.total_cash is exist - process it [00:36:36]requested_item shift.buy.total is exist - process it [00:36:36]requested_item shift.buy.total_cash is exist - process it [00:36:36]produce_requested_data done [00:36:36]produce_requested_data return {"fm.sale.total":20226131.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":32893.39,"shift.sale.total_cash":26104.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:36:36]process_action_free get_value [00:36:36]json_value_free [00:36:36]json_value_free done [00:36:36]process_json_proto returns [00:36:36]Send response to host [00:36:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20226131.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":32893.39,"shift.sale.total_cash":26104.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:36:36]free response buf [00:36:36]execute_script done [00:36:36]execute_script returns [00:36:36]free content buf [00:36:36]Sock 9.Close socket [00:36:36]Sock 9.Thread stoped [00:36:37]accept exits with 7 [00:36:37]New connection [00:36:37]New thread 3066641764 created [00:36:37]Thread 3066785124 joined [00:36:37]Waiting for new connection... [00:36:37] Sock 7.Parse request [00:36:37]Sock 7.Check first char [00:36:37]Sock 7.First char is OK [00:36:37]request: POST /json_proto HTTP/1.0 [00:36:37]Method: POST [00:36:37]URL: /json_proto [00:36:37]Method is POST - this is cgi request [00:36:37]url: /json_proto [00:36:37]query_string will be loaded in cgi processing [00:36:37]execute_cgi json_proto POST (null) [00:36:37]execute_cgi path=json_proto method=POST [00:36:37]POST find Content-Length [00:36:37]Host: 172.17.52.196:8080 [00:36:37]Content-Length: 265 [00:36:37]Content-Type: application/json [00:36:37] [00:36:37]POST finish read [00:36:37]Found Content-Length = 265 [00:36:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0420\u0443\u0441\u0442\u0430\u043C\u043E\u0432\u0430 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:37]execute_script... [00:36:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0420\u0443\u0441\u0442\u0430\u043C\u043E\u0432\u0430 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:37]POST & json_proto [00:36:37]process_json_proto [00:36:37]json parsed OK: [00:36:37]protocol is kg_v1.0 [00:36:37]action value=open_shift [00:36:37]process_action open_shift [00:36:37]cmd_open_shift [00:36:37]MH_GetDate [00:36:37]Write to MH i2c: F0 00 00 C0 05 B4 [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: F0 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: F0 09 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: F0 09 00 C0 05 00 16 A2 15 67 60 05 E4 66 A0 [00:36:37]GetLastDocTimeStamp 1729470596 [00:36:37]current date 1729470998 [00:36:37]FM_GetShiftState [00:36:37]SAM_PROTO_GetShiftState [00:36:37]wFMCommunicate request_size=4 [00:36:37]MH_SAM_APDU [00:36:37]CAPDU: 80 13 01 00 [00:36:37]Write to MH i2c: E2 08 00 C1 05 80 13 01 00 00 00 00 00 43 [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:37]Read from MH i2c: E2 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 0E 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 0E 00 C1 05 00 09 00 00 00 00 00 00 00 00 00 00 90 00 4E [00:36:37]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:36:37]wFMCommunicate OK [00:36:37]SAM_PROTO_GetShiftState done [00:36:37]FM_GetShiftState done [00:36:37]KKMCreateOpenShiftDocument [00:36:37]Load OK [00:36:37]Malloc new data [00:36:37]MH_GetDate [00:36:37]Write to MH i2c: F0 00 00 C2 05 B6 [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: F0 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: F0 09 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: F0 09 00 C2 05 00 16 A2 15 67 60 05 E4 66 A2 [00:36:37]Malloc new data [00:36:37]KKMCreateOpenShiftDocument OK [00:36:37]KKMSetOpenShiftData OK [00:36:37]ProcessDocumentItem done err = 0, tmpTLVsize=222 [00:36:37]tlvbuf is 017857F0 [00:36:37]KKMLoadAndSignOpenShiftData [00:36:37]SAM_PROTO_ProcessDocument [00:36:37]wFMCommunicate request_size=9 [00:36:37]MH_SAM_APDU [00:36:37]CAPDU: 80 15 01 00 04 02 00 DE 00 [00:36:37]Write to MH i2c: E2 0C 00 C3 05 80 15 01 00 04 00 02 00 DE 00 00 00 2F [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:36:37]Read from MH i2c: E2 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 C3 05 00 90 00 3C [00:36:37]RAPDU: 90 00 [00:36:37]wFMCommunicate OK [00:36:37]wFMCommunicate request_size=23 [00:36:37]MH_SAM_APDU [00:36:37]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:36:37]Write to MH i2c: E2 1A 00 C4 05 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 3E [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:36:37]Read from MH i2c: E2 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 C4 05 00 90 00 3D [00:36:37]RAPDU: 90 00 [00:36:37]wFMCommunicate OK [00:36:37]wFMCommunicate request_size=32 [00:36:37]MH_SAM_APDU [00:36:37]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 A0 D1 83 D1 81 D1 82 D0 B0 D0 BC D0 BE D0 B2 D0 B0 20 D0 94 2E 20 [00:36:37]Write to MH i2c: E2 23 00 C5 05 80 15 02 00 1B 00 FD 03 17 00 D0 A0 D1 83 D1 81 D1 82 D0 B0 D0 BC D0 BE D0 B2 D0 B0 20 D0 94 2E 20 00 00 6E [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:36:37]Read from MH i2c: E2 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 C5 05 00 90 00 3E [00:36:37]RAPDU: 90 00 [00:36:37]wFMCommunicate OK [00:36:37]wFMCommunicate request_size=108 [00:36:37]MH_SAM_APDU [00:36:37]CAPDU: 80 15 02 00 67 F1 03 63 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9B D0 B0 D0 B2 D0 B4 D0 B0 D0 BD 2D D0 9A D0 B0 D1 80 D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D1 80 D0 BC D0 B0 D0 BD D0 B1 D0 B5 D0 BA 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 34 33 2C 20 34 30 2E 39 31 36 31 33 31 2C 20 37 32 2E 39 32 35 35 36 37 [00:36:37]Write to MH i2c: E2 6F 00 C6 05 80 15 02 00 67 00 F1 03 63 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9B D0 B0 D0 B2 D0 B4 D0 B0 D0 BD 2D D0 9A D0 B0 D1 80 D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D1 80 D0 BC D0 B0 D0 BD D0 B1 D0 B5 D0 BA 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 34 33 2C 20 34 30 2E 39 31 36 31 33 31 2C 20 37 32 2E 39 32 35 35 36 37 00 00 DD [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:36:37]Read from MH i2c: E2 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 C6 05 00 90 00 3F [00:36:37]RAPDU: 90 00 [00:36:37]wFMCommunicate OK [00:36:37]wFMCommunicate request_size=51 [00:36:37]MH_SAM_APDU [00:36:37]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 33 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:36:37]Write to MH i2c: E2 36 00 C7 05 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 33 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 F8 [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:36:37]Read from MH i2c: E2 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 C7 05 00 90 00 40 [00:36:37]RAPDU: 90 00 [00:36:37]wFMCommunicate OK [00:36:37]wFMCommunicate request_size=13 [00:36:37]MH_SAM_APDU [00:36:37]CAPDU: 80 15 02 00 08 F4 03 04 00 16 A2 15 67 [00:36:37]Write to MH i2c: E2 10 00 C8 05 80 15 02 00 08 00 F4 03 04 00 16 A2 15 67 00 00 8C [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:36:37]Read from MH i2c: E2 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 C8 05 00 90 00 41 [00:36:37]RAPDU: 90 00 [00:36:37]wFMCommunicate OK [00:36:37]wFMCommunicate request_size=25 [00:36:37]MH_SAM_APDU [00:36:37]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 [00:36:37]Write to MH i2c: E2 1C 00 C9 05 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 00 00 AF [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:36:37]Read from MH i2c: E2 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 03 00 C9 05 00 90 00 42 [00:36:37]RAPDU: 90 00 [00:36:37]wFMCommunicate OK [00:36:37]wFMCommunicate request_size=4 [00:36:37]MH_SAM_APDU [00:36:37]CAPDU: 80 15 03 00 [00:36:37]Write to MH i2c: E2 08 00 CA 05 80 15 03 00 00 00 00 00 50 [00:36:37]Write i2c OK [00:36:37]MH_I2C_Read... [00:36:37]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:36:37]Read from MH i2c: E2 [00:36:37]MH_I2C_Read... [00:36:37]Read from MH i2c: E2 38 00 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 38 00 CA 05 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 D1 10 01 00 0E 04 04 00 0F 02 00 00 35 04 06 00 DB E4 DB E2 B7 18 90 00 5E [00:36:38]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 D1 10 01 00 0E 04 04 00 0F 02 00 00 35 04 06 00 DB E4 DB E2 B7 18 90 00 [00:36:38]wFMCommunicate OK [00:36:38]SAM_PROTO_ProcessDocument answer len = 51 [00:36:38]SAM_PROTO_ProcessDocument done [00:36:38]SetTLVBufToDocument [00:36:38]Processing tag 1209 (04B9) [00:36:38]Malloc new data [00:36:38]Processing tag 1041 (0411) [00:36:38]Processing tag 1040 (0410) [00:36:38]Malloc new data [00:36:38]Processing tag 1038 (040E) [00:36:38]Malloc new data [00:36:38]Processing tag 1077 (0435) [00:36:38]Malloc new data [00:36:38]SetTLVBufToDocument err=0 [00:36:38]KKMLoadAndSignOpenShiftData store KKM data [00:36:38]KKMLoadAndSignOpenShiftData err=0 [00:36:38]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Рустамова Д. Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 Место: АЗС № 163 "Партнер Нефть" 21.10.2024 00:36 Смена: 527 РНМ: 0000000000091770 ЗНМ: 0300000101 ФД: 69841 ФМ: 0000000000871749 ФПД: 241775988094744 [00:36:38]StoreToDocumentArchive [00:36:38]shift 527 fd 69841 [00:36:38]Create dir for shift 0527 [00:36:38]save to /storage/0527/doc_00069841 [00:36:38]save last doc name /storage/0527/doc_00069841 to /storage/kkm_last_doc_name [00:36:38]save OK [00:36:38]Clear old archive folders... [00:36:38]Remove dir /storage/0526 [00:36:38]opendir ok [00:36:38]file . [00:36:38]file .. [00:36:38]file doc_00069710 [00:36:38]remove file /storage/0526/doc_00069710 [00:36:38]file doc_00069711 [00:36:38]remove file /storage/0526/doc_00069711 [00:36:38]file doc_00069712 [00:36:38]remove file /storage/0526/doc_00069712 [00:36:38]file doc_00069713 [00:36:38]remove file /storage/0526/doc_00069713 [00:36:38]file doc_00069714 [00:36:38]remove file /storage/0526/doc_00069714 [00:36:38]file doc_00069715 [00:36:38]remove file /storage/0526/doc_00069715 [00:36:38]file doc_00069716 [00:36:38]remove file /storage/0526/doc_00069716 [00:36:38]file doc_00069717 [00:36:38]remove file /storage/0526/doc_00069717 [00:36:38]file doc_00069718 [00:36:38]remove file /storage/0526/doc_00069718 [00:36:38]file doc_00069719 [00:36:38]remove file /storage/0526/doc_00069719 [00:36:38]file doc_00069720 [00:36:38]remove file /storage/0526/doc_00069720 [00:36:38]file doc_00069721 [00:36:38]remove file /storage/0526/doc_00069721 [00:36:38]file doc_00069722 [00:36:38]remove file /storage/0526/doc_00069722 [00:36:38]file doc_00069723 [00:36:38]remove file /storage/0526/doc_00069723 [00:36:38]file doc_00069724 [00:36:38]remove file /storage/0526/doc_00069724 [00:36:38]file doc_00069725 [00:36:38]remove file /storage/0526/doc_00069725 [00:36:38]file doc_00069726 [00:36:38]remove file /storage/0526/doc_00069726 [00:36:38]file doc_00069727 [00:36:38]remove file /storage/0526/doc_00069727 [00:36:38]file doc_00069728 [00:36:38]remove file /storage/0526/doc_00069728 [00:36:38]file doc_00069729 [00:36:38]remove file /storage/0526/doc_00069729 [00:36:38]file doc_00069730 [00:36:38]remove file /storage/0526/doc_00069730 [00:36:38]file doc_00069731 [00:36:38]remove file /storage/0526/doc_00069731 [00:36:38]file doc_00069732 [00:36:38]remove file /storage/0526/doc_00069732 [00:36:38]file doc_00069733 [00:36:38]remove file /storage/0526/doc_00069733 [00:36:38]file doc_00069734 [00:36:38]remove file /storage/0526/doc_00069734 [00:36:38]file doc_00069735 [00:36:38]remove file /storage/0526/doc_00069735 [00:36:38]file doc_00069736 [00:36:38]remove file /storage/0526/doc_00069736 [00:36:38]file doc_00069737 [00:36:38]remove file /storage/0526/doc_00069737 [00:36:38]file doc_00069738 [00:36:38]remove file /storage/0526/doc_00069738 [00:36:38]file doc_00069739 [00:36:38]remove file /storage/0526/doc_00069739 [00:36:38]file doc_00069740 [00:36:38]remove file /storage/0526/doc_00069740 [00:36:38]file doc_00069741 [00:36:38]remove file /storage/0526/doc_00069741 [00:36:38]file doc_00069742 [00:36:38]remove file /storage/0526/doc_00069742 [00:36:38]file doc_00069743 [00:36:38]remove file /storage/0526/doc_00069743 [00:36:38]file doc_00069744 [00:36:38]remove file /storage/0526/doc_00069744 [00:36:38]file doc_00069745 [00:36:38]remove file /storage/0526/doc_00069745 [00:36:38]file doc_00069746 [00:36:38]remove file /storage/0526/doc_00069746 [00:36:38]file doc_00069747 [00:36:38]remove file /storage/0526/doc_00069747 [00:36:38]file doc_00069748 [00:36:38]remove file /storage/0526/doc_00069748 [00:36:38]file doc_00069749 [00:36:38]remove file /storage/0526/doc_00069749 [00:36:38]file doc_00069750 [00:36:38]remove file /storage/0526/doc_00069750 [00:36:38]file doc_00069751 [00:36:38]remove file /storage/0526/doc_00069751 [00:36:38]file doc_00069752 [00:36:38]remove file /storage/0526/doc_00069752 [00:36:38]file doc_00069753 [00:36:38]remove file /storage/0526/doc_00069753 [00:36:38]file doc_00069754 [00:36:38]remove file /storage/0526/doc_00069754 [00:36:38]file doc_00069755 [00:36:38]remove file /storage/0526/doc_00069755 [00:36:38]file doc_00069756 [00:36:38]remove file /storage/0526/doc_00069756 [00:36:38]file doc_00069757 [00:36:38]remove file /storage/0526/doc_00069757 [00:36:38]file doc_00069758 [00:36:38]remove file /storage/0526/doc_00069758 [00:36:38]file doc_00069759 [00:36:38]remove file /storage/0526/doc_00069759 [00:36:38]file doc_00069760 [00:36:38]remove file /storage/0526/doc_00069760 [00:36:38]file doc_00069761 [00:36:38]remove file /storage/0526/doc_00069761 [00:36:38]file doc_00069762 [00:36:38]remove file /storage/0526/doc_00069762 [00:36:38]file doc_00069763 [00:36:38]remove file /storage/0526/doc_00069763 [00:36:38]file doc_00069764 [00:36:38]remove file /storage/0526/doc_00069764 [00:36:38]file doc_00069765 [00:36:38]remove file /storage/0526/doc_00069765 [00:36:38]file doc_00069766 [00:36:38]remove file /storage/0526/doc_00069766 [00:36:38]file doc_00069767 [00:36:38]remove file /storage/0526/doc_00069767 [00:36:38]file doc_00069768 [00:36:38]remove file /storage/0526/doc_00069768 [00:36:38]file doc_00069769 [00:36:38]remove file /storage/0526/doc_00069769 [00:36:38]file doc_00069770 [00:36:38]remove file /storage/0526/doc_00069770 [00:36:38]file doc_00069771 [00:36:38]remove file /storage/0526/doc_00069771 [00:36:38]file doc_00069772 [00:36:38]remove file /storage/0526/doc_00069772 [00:36:38]file doc_00069773 [00:36:38]remove file /storage/0526/doc_00069773 [00:36:38]file doc_00069774 [00:36:38]remove file /storage/0526/doc_00069774 [00:36:38]file doc_00069775 [00:36:38]remove file /storage/0526/doc_00069775 [00:36:38]file doc_00069776 [00:36:38]remove file /storage/0526/doc_00069776 [00:36:38]file doc_00069777 [00:36:38]remove file /storage/0526/doc_00069777 [00:36:38]file doc_00069778 [00:36:38]remove file /storage/0526/doc_00069778 [00:36:38]file doc_00069779 [00:36:38]remove file /storage/0526/doc_00069779 [00:36:38]file doc_00069780 [00:36:38]remove file /storage/0526/doc_00069780 [00:36:38]file doc_00069781 [00:36:38]remove file /storage/0526/doc_00069781 [00:36:38]file doc_00069782 [00:36:38]remove file /storage/0526/doc_00069782 [00:36:38]file doc_00069783 [00:36:38]remove file /storage/0526/doc_00069783 [00:36:38]file doc_00069784 [00:36:38]remove file /storage/0526/doc_00069784 [00:36:38]file doc_00069785 [00:36:38]remove file /storage/0526/doc_00069785 [00:36:38]file doc_00069786 [00:36:38]remove file /storage/0526/doc_00069786 [00:36:38]file doc_00069787 [00:36:38]remove file /storage/0526/doc_00069787 [00:36:38]file doc_00069788 [00:36:38]remove file /storage/0526/doc_00069788 [00:36:38]file doc_00069789 [00:36:38]remove file /storage/0526/doc_00069789 [00:36:38]file doc_00069790 [00:36:38]remove file /storage/0526/doc_00069790 [00:36:38]file doc_00069791 [00:36:38]remove file /storage/0526/doc_00069791 [00:36:38]file doc_00069792 [00:36:38]remove file /storage/0526/doc_00069792 [00:36:38]file doc_00069793 [00:36:38]remove file /storage/0526/doc_00069793 [00:36:38]file doc_00069794 [00:36:38]remove file /storage/0526/doc_00069794 [00:36:38]file doc_00069795 [00:36:38]remove file /storage/0526/doc_00069795 [00:36:38]file doc_00069796 [00:36:38]remove file /storage/0526/doc_00069796 [00:36:38]file doc_00069797 [00:36:38]remove file /storage/0526/doc_00069797 [00:36:38]file doc_00069798 [00:36:38]remove file /storage/0526/doc_00069798 [00:36:38]file doc_00069799 [00:36:38]remove file /storage/0526/doc_00069799 [00:36:38]file doc_00069800 [00:36:38]remove file /storage/0526/doc_00069800 [00:36:38]file doc_00069801 [00:36:38]remove file /storage/0526/doc_00069801 [00:36:38]file doc_00069802 [00:36:38]remove file /storage/0526/doc_00069802 [00:36:38]file doc_00069803 [00:36:38]remove file /storage/0526/doc_00069803 [00:36:38]file doc_00069804 [00:36:38]remove file /storage/0526/doc_00069804 [00:36:38]file doc_00069805 [00:36:38]remove file /storage/0526/doc_00069805 [00:36:38]file doc_00069806 [00:36:38]remove file /storage/0526/doc_00069806 [00:36:38]file doc_00069807 [00:36:38]remove file /storage/0526/doc_00069807 [00:36:38]file doc_00069808 [00:36:38]remove file /storage/0526/doc_00069808 [00:36:38]file doc_00069809 [00:36:38]remove file /storage/0526/doc_00069809 [00:36:38]file doc_00069810 [00:36:38]remove file /storage/0526/doc_00069810 [00:36:38]file doc_00069811 [00:36:38]remove file /storage/0526/doc_00069811 [00:36:38]file doc_00069812 [00:36:38]remove file /storage/0526/doc_00069812 [00:36:38]file doc_00069813 [00:36:38]remove file /storage/0526/doc_00069813 [00:36:38]file doc_00069814 [00:36:38]remove file /storage/0526/doc_00069814 [00:36:38]file doc_00069815 [00:36:38]remove file /storage/0526/doc_00069815 [00:36:38]file doc_00069816 [00:36:38]remove file /storage/0526/doc_00069816 [00:36:38]file doc_00069817 [00:36:38]remove file /storage/0526/doc_00069817 [00:36:38]file doc_00069818 [00:36:38]remove file /storage/0526/doc_00069818 [00:36:38]file doc_00069819 [00:36:38]remove file /storage/0526/doc_00069819 [00:36:38]file doc_00069820 [00:36:38]remove file /storage/0526/doc_00069820 [00:36:38]file doc_00069821 [00:36:38]remove file /storage/0526/doc_00069821 [00:36:38]file doc_00069822 [00:36:38]remove file /storage/0526/doc_00069822 [00:36:38]file doc_00069823 [00:36:38]remove file /storage/0526/doc_00069823 [00:36:38]file doc_00069824 [00:36:38]remove file /storage/0526/doc_00069824 [00:36:38]file doc_00069825 [00:36:38]remove file /storage/0526/doc_00069825 [00:36:38]file doc_00069826 [00:36:38]remove file /storage/0526/doc_00069826 [00:36:38]file doc_00069827 [00:36:38]remove file /storage/0526/doc_00069827 [00:36:38]file doc_00069828 [00:36:38]remove file /storage/0526/doc_00069828 [00:36:38]file doc_00069829 [00:36:38]remove file /storage/0526/doc_00069829 [00:36:38]file doc_00069830 [00:36:38]remove file /storage/0526/doc_00069830 [00:36:38]file doc_00069831 [00:36:38]remove file /storage/0526/doc_00069831 [00:36:38]file doc_00069832 [00:36:38]remove file /storage/0526/doc_00069832 [00:36:38]file doc_00069833 [00:36:38]remove file /storage/0526/doc_00069833 [00:36:38]file doc_00069834 [00:36:38]remove file /storage/0526/doc_00069834 [00:36:38]file doc_00069835 [00:36:38]remove file /storage/0526/doc_00069835 [00:36:38]file doc_00069836 [00:36:38]remove file /storage/0526/doc_00069836 [00:36:38]file doc_00069837 [00:36:38]remove file /storage/0526/doc_00069837 [00:36:38]file doc_00069838 [00:36:38]remove file /storage/0526/doc_00069838 [00:36:38]file doc_00069839 [00:36:38]remove file /storage/0526/doc_00069839 [00:36:38]file doc_00069840 [00:36:38]remove file /storage/0526/doc_00069840 [00:36:38]remove dir /storage/0526 [00:36:38]ProcessDocumentItem done err = 0, tmpTLVsize=273 [00:36:38]tlvbuf is 017F5F90 [00:36:38]SAM_PROTO_ClearQueue [00:36:38]wFMCommunicate request_size=4 [00:36:38]MH_SAM_APDU [00:36:38]CAPDU: 80 09 00 00 [00:36:38]Write to MH i2c: E2 08 00 CB 05 80 09 00 00 00 00 00 00 42 [00:36:38]Write i2c OK [00:36:38]MH_I2C_Read... [00:36:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:38]Read from MH i2c: E2 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 03 00 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 03 00 CB 05 00 90 00 44 [00:36:38]RAPDU: 90 00 [00:36:38]wFMCommunicate OK [00:36:38]SAM_PROTO_ClearQueue done [00:36:38]KKMCreateOFDPacket [00:36:38]OFDProtocolAddRootSTLVToBuf [00:36:38]FM_MakeSignedData [00:36:38]FM_MakeSignedData [00:36:38]SAM_PROTO_SignData [00:36:38]wFMCommunicate request_size=4 [00:36:38]MH_SAM_APDU [00:36:38]CAPDU: 80 0D 01 02 [00:36:38]Write to MH i2c: E2 08 00 CC 05 80 0D 01 02 00 00 00 00 4A [00:36:38]Write i2c OK [00:36:38]MH_I2C_Read... [00:36:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:38]Read from MH i2c: E2 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 03 00 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 03 00 CC 05 00 90 00 45 [00:36:38]RAPDU: 90 00 [00:36:38]wFMCommunicate OK [00:36:38]wFMCommunicate request_size=255 [00:36:38]MH_SAM_APDU [00:36:38]CAPDU: 80 0D 02 02 FA 02 00 11 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 A0 D1 83 D1 81 D1 82 D0 B0 D0 BC D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F1 03 63 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9B D0 B0 D0 B2 D0 B4 D0 B0 D0 BD 2D D0 9A D0 B0 D1 80 D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D1 80 D0 BC D0 B0 D0 BD D0 B1 D0 B5 D0 BA 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 34 33 2C 20 34 30 2E 39 31 36 31 33 31 2C 20 37 32 2E 39 32 35 35 36 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 33 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 16 A2 15 67 0E 04 04 00 0F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 D1 10 01 00 11 04 10 [00:36:38]Write to MH i2c: E2 02 01 CD 05 80 0D 02 02 FA 00 02 00 11 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 A0 D1 83 D1 81 D1 82 D0 B0 D0 BC D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F1 03 63 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9B D0 B0 D0 B2 D0 B4 D0 B0 D0 BD 2D D0 9A D0 B0 D1 80 D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D1 80 D0 BC D0 B0 D0 BD D0 B1 D0 B5 D0 BA 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 34 33 2C 20 34 30 2E 39 31 36 31 33 31 2C 20 37 32 2E 39 32 35 35 36 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 33 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 16 A2 15 67 0E 04 04 00 0F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 D1 10 01 00 11 04 10 00 00 95 [00:36:38]Write i2c OK [00:36:38]MH_I2C_Read... [00:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:38]Read from MH i2c: E2 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 03 00 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 03 00 CD 05 00 90 00 46 [00:36:38]RAPDU: 90 00 [00:36:38]wFMCommunicate OK [00:36:38]wFMCommunicate request_size=32 [00:36:38]MH_SAM_APDU [00:36:38]CAPDU: 80 0D 02 02 1B 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 35 04 06 00 DB E4 DB E2 B7 18 [00:36:38]Write to MH i2c: E2 23 00 CE 05 80 0D 02 02 1B 00 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 35 04 06 00 DB E4 DB E2 B7 18 00 00 31 [00:36:38]Write i2c OK [00:36:38]MH_I2C_Read... [00:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:38]Read from MH i2c: E2 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 03 00 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 03 00 CE 05 00 90 00 47 [00:36:38]RAPDU: 90 00 [00:36:38]wFMCommunicate OK [00:36:38]wFMCommunicate request_size=4 [00:36:38]MH_SAM_APDU [00:36:38]CAPDU: 80 0D 03 02 [00:36:38]Write to MH i2c: E2 08 00 CF 05 80 0D 03 02 00 00 00 00 4F [00:36:38]Write i2c OK [00:36:38]MH_I2C_Read... [00:36:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:38]Read from MH i2c: E2 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 0B 00 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 0B 00 CF 05 00 85 35 EA 94 30 04 BC 6F 90 00 E7 [00:36:38]RAPDU: 85 35 EA 94 30 04 BC 6F 90 00 [00:36:38]wFMCommunicate OK [00:36:38]SAM_PROTO_SignData done [00:36:38]FM_MakeSignedData done [00:36:38]CreateOFDProtocolMessage [00:36:38]wFMCommunicate request_size=4 [00:36:38]MH_SAM_APDU [00:36:38]CAPDU: 80 11 00 00 [00:36:38]Write to MH i2c: E2 08 00 D0 05 80 11 00 00 00 00 00 00 4F [00:36:38]Write i2c OK [00:36:38]MH_I2C_Read... [00:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:39]Read from MH i2c: E2 [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: E2 17 00 [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: E2 17 00 D0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 A6 [00:36:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [00:36:39]wFMCommunicate OK [00:36:39]CreateOFDProtocolMessage done [00:36:39]OFDSenderStorePacket 69841 [00:36:39]StoreOFDPacket docnum=69841 [00:36:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 E3 20 1D 01 68 68 5A 02 01 00 02 00 11 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 A0 D1 83 D1 81 D1 82 D0 B0 D0 BC D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F1 03 63 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9B D0 B0 D0 B2 D0 B4 D0 B0 D0 BD 2D D0 9A D0 B0 D1 80 D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D1 80 D0 BC D0 B0 D0 BD D0 B1 D0 B5 D0 BA 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 34 33 2C 20 34 30 2E 39 31 36 31 33 31 2C 20 37 32 2E 39 32 35 35 36 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 33 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 16 A2 15 67 0E 04 04 00 0F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 D1 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 35 04 06 00 DB E4 DB E2 B7 18 85 35 EA 94 30 04 BC 6F [00:36:39]CheckFolder [00:36:39]dirname=/storage/ofd_packets [00:36:39]CheckFolder done [00:36:39]ProducePacketName [00:36:39]name=ofd_packets/00069841 [00:36:39]NVStorageSaveData ofd_packets/00069841 [00:36:39]File name is /storage/ofd_packets/00069841 [00:36:39]Write 323 bytes [00:36:39]NVStorageSaveData done [00:36:39]OFDSenderStorePacket done [00:36:39]KKMCreateOFDPacket done [00:36:39]NVStorageSaveData kkm_last_timestamp [00:36:39]File name is /storage/kkm_last_timestamp [00:36:39]Write 4 bytes [00:36:39]NVStorageSaveData done [00:36:39]ExternCall_PrintAddStr [00:36:39]wPrintStart [00:36:39]Write to MH i2c: 01 00 00 D1 05 D6 [00:36:39]OFD Sender: Processing packet 69841 [packets to send 32, broken 31] [00:36:39]ProducePacketName [00:36:39]name=ofd_packets/00069841 [00:36:39]OFD Sender: To server: pG, [00:36:39]CommunicateWithHost lk.salyk.kg:30040 [00:36:39]ConnectInit lk.salyk.kg [00:36:39]Write i2c OK [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: 01 [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: 01 07 00 [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: 01 07 00 D1 05 00 00 00 00 00 FF 0F EB [00:36:39]RasterBufferAndPrint [00:36:39]line Отчет об открытии смены [00:36:39]line ФФД: 1.0 [00:36:39]line ИНН: 02508201610067 [00:36:39]line Кассир: Рустамова Д. [00:36:39]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [00:36:39]line Место: АЗС № 163 "Партнер Нефть" [00:36:39]line 21.10.2024 00:36 [00:36:39]line Смена: 527 [00:36:39]line РНМ: 0000000000091770 [00:36:39]line ЗНМ: 0300000101 [00:36:39]line ФД: 69841 [00:36:39]line ФМ: 0000000000871749 [00:36:39]line ФПД: 241775988094744 [00:36:39]written 0, free lines is 4095 [00:36:39]Connected sock=10 [00:36:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 E3 20 1D 01 68 68 5A 02 01 00 02 00 11 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 A0 D1 83 D1 81 D1 82 D0 B0 D0 BC D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F1 03 63 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9B D0 B0 D0 B2 D0 B4 D0 B0 D0 BD 2D D0 9A D0 B0 D1 80 D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9A D1 83 D1 80 D0 BC D0 B0 D0 BD D0 B1 D0 B5 D0 BA 20 D0 91 D0 B0 D0 B0 D1 82 D1 8B D1 80 D0 B0 20 34 33 2C 20 34 30 2E 39 31 36 31 33 31 2C 20 37 32 2E 39 32 35 35 36 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 33 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 16 A2 15 67 0E 04 04 00 0F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 D1 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 35 04 06 00 DB E4 DB E2 B7 18 85 35 EA 94 30 04 BC 6F [00:36:39]Write to MH i2c: 01 00 00 E3 05 E8 [00:36:39]Write i2c OK [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: 01 [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: 01 07 00 [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: 01 07 00 E3 05 00 00 00 00 00 96 0E 93 [00:36:39]RasterBufferAndPrint [00:36:39]line [00:36:39]line [00:36:39]line [00:36:39]line [00:36:39]line [00:36:39]written 0, free lines is 3750 [00:36:39]MH_Cut [00:36:39]Write to MH i2c: D1 01 00 EA 05 01 C1 [00:36:39]Write i2c OK [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: D1 [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: D1 01 00 [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: D1 01 00 EA 05 00 C0 [00:36:39]Write to MH i2c: 01 00 00 EB 05 F0 [00:36:39]Write i2c OK [00:36:39]MH_I2C_Read... [00:36:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 21 86 47 00 6E 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 D1 10 01 00 F4 03 04 00 98 47 15 67 B6 04 01 00 00 CD A6 A8 33 23 DE 4F 90 [00:36:39]CommunicateWithHost err = 0 [00:36:39]CheckOFDResponse [00:36:39]1017 (14) - 77093643461234 [00:36:39]1041 (16) - 0000000000871749 [00:36:39]1040 (4) - 69841 [00:36:39]1012 (4) - 20.10.2024 18:10 [00:36:39]1206 (1) - 0 [00:36:39]OFD Sender: Remove packet 69841 [00:36:39]ProducePacketName [00:36:39]name=ofd_packets/00069841 [00:36:39]NVStorageDeleteData [00:36:40]*** Cut start [00:36:40]*** Partial cut [00:36:40]*** CUTSNS_PIN = 1 [00:36:40]*** CUTSNS_PIN = 0 [00:36:40]OFD Sender: No OFD packet to send [00:36:40]*** Brake cut motor [00:36:40]Read from MH i2c: 01 [00:36:40]MH_I2C_Read... [00:36:40]*** Stop cut motor [00:36:40]*** Cut end [00:36:40]Read from MH i2c: 01 07 00 [00:36:40]MH_I2C_Read... [00:36:40]Read from MH i2c: 01 07 00 EB 05 00 00 00 00 00 FF 0F 05 [00:36:40]process_action open_shift done [00:36:40]requested_data is exist [00:36:40]produce_requested_data [00:36:40]requested_item fd.num is exist - process it [00:36:40]SAM_PROTO_GetFieldsCounters [00:36:40]wFMCommunicate request_size=4 [00:36:40]MH_SAM_APDU [00:36:40]CAPDU: 80 13 00 00 [00:36:40]Write to MH i2c: E2 08 00 EC 05 80 13 00 00 00 00 00 00 6D [00:36:40]Write i2c OK [00:36:40]MH_I2C_Read... [00:36:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:41]Read from MH i2c: E2 [00:36:41]MH_I2C_Read... [00:36:41]Read from MH i2c: E2 62 00 [00:36:41]MH_I2C_Read... [00:36:41]Read from MH i2c: E2 62 00 EC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 D1 10 01 00 0E 04 04 00 0F 02 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 84 [00:36: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 D1 10 01 00 0E 04 04 00 0F 02 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:36:41]wFMCommunicate OK [00:36:41]SAM_PROTO_GetFieldsCounters done [00:36:41]requested_item shift.num is exist - process it [00:36:41]requested_item shift.opened is exist - process it [00:36:41]req_shift_opened [00:36:41]FM_GetShiftState [00:36:41]SAM_PROTO_GetShiftState [00:36:41]wFMCommunicate request_size=4 [00:36:41]MH_SAM_APDU [00:36:41]CAPDU: 80 13 01 00 [00:36:41]Write to MH i2c: E2 08 00 ED 05 80 13 01 00 00 00 00 00 6F [00:36:41]Write i2c OK [00:36:41]MH_I2C_Read... [00:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:41]Read from MH i2c: E2 [00:36:41]MH_I2C_Read... [00:36:41]Read from MH i2c: E2 0E 00 [00:36:41]MH_I2C_Read... [00:36:41]Read from MH i2c: E2 0E 00 ED 05 00 09 00 01 16 A2 15 67 00 00 00 00 90 00 AF [00:36:41]RAPDU: 09 00 01 16 A2 15 67 00 00 00 00 90 00 [00:36:41]wFMCommunicate OK [00:36:41]SAM_PROTO_GetShiftState done [00:36:41]FM_GetShiftState done [00:36:41]req_shift_opened done [00:36:41]requested_item shift.open_date is exist - process it [00:36:41]req_shift_open_date [00:36:41]req_shift_open_date done [00:36:41]produce_requested_data done [00:36:41]produce_requested_data return {"fd.num":69841,"shift.num":527,"shift.opened":1,"shift.open_date":1729470998} [00:36:41]process_action_free open_shift [00:36:41]json_value_free [00:36:41]json_value_free done [00:36:41]process_json_proto returns [00:36:41]Send response to host [00:36:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":69841,"shift.num":527,"shift.opened":1,"shift.open_date":1729470998}}} [00:36:41]free response buf [00:36:41]execute_script done [00:36:41]execute_script returns [00:36:41]free content buf [00:36:41]Sock 7.Close socket [00:36:41]Sock 7.Thread stoped [00:36:41]accept exits with 9 [00:36:41]New connection [00:36:41]New thread 3066785124 created [00:36:41]Thread 3066641764 joined [00:36:41]Waiting for new connection... [00:36:41] Sock 9.Parse request [00:36:41]Sock 9.Check first char [00:36:41]Sock 9.First char is OK [00:36:41]request: POST /json_proto HTTP/1.0 [00:36:41]Method: POST [00:36:41]URL: /json_proto [00:36:41]Method is POST - this is cgi request [00:36:41]url: /json_proto [00:36:41]query_string will be loaded in cgi processing [00:36:41]execute_cgi json_proto POST (null) [00:36:41]execute_cgi path=json_proto method=POST [00:36:41]POST find Content-Length [00:36:41]Host: 172.17.52.196:8080 [00:36:41]Content-Length: 331 [00:36:41]Content-Type: application/json [00:36:41] [00:36:41]POST finish read [00:36:41]Found Content-Length = 331 [00:36: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:36:41]execute_script... [00:36: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:36:41]POST & json_proto [00:36:41]process_json_proto [00:36:41]json parsed OK: [00:36:41]protocol is kg_v1.0 [00:36:41]action value=get_value [00:36:41]process_action get_value [00:36:41]cmd_get_value [00:36:41]process_action get_value done [00:36:41]requested_data is exist [00:36:41]produce_requested_data [00:36:41]requested_item fm.sale.total is exist - process it [00:36:41]SAM_PROTO_GetFMData [00:36:41]wFMCommunicate request_size=4 [00:36:41]MH_SAM_APDU [00:36:41]CAPDU: 80 13 03 00 [00:36:41]Write to MH i2c: E2 08 00 EE 05 80 13 03 00 00 00 00 00 72 [00:36:41]Write i2c OK [00:36:41]MH_I2C_Read... [00:36:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:36:41]Read from MH i2c: E2 [00:36:41]MH_I2C_Read... [00:36:41]Read from MH i2c: E2 FD 00 [00:36:41]MH_I2C_Read... [00:36:41]Read from MH i2c: E2 FD 00 EE 05 00 C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 A6 [00:36:41]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 B3 0C 01 00 69 04 A1 00 6F 04 04 00 55 0C 01 00 B1 04 04 00 9B A0 8E 78 70 04 04 00 CC 56 A2 67 72 04 04 00 CF 49 EC 10 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 0D F3 CD 0C 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 0C 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [00:36:41]wFMCommunicate OK [00:36:41]wFMCommunicate request_size=4 [00:36:41]MH_SAM_APDU [00:36:41]CAPDU: 80 17 00 00 [00:36:41]Write to MH i2c: E2 08 00 EF 05 80 17 00 00 00 00 00 00 74 [00:36:41]Write i2c OK [00:36:41]MH_I2C_Read... [00:36:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:41]Read from MH i2c: E2 [00:36:41]MH_I2C_Read... [00:36:41]Read from MH i2c: E2 FD 00 [00:36:41]MH_I2C_Read... [00:36:42]Read from MH i2c: E2 FD 00 EF 05 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 78 [00:36:42]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:36:42]wFMCommunicate OK [00:36:42]wFMCommunicate request_size=4 [00:36:42]MH_SAM_APDU [00:36:42]CAPDU: 80 17 00 00 [00:36:42]Write to MH i2c: E2 08 00 F0 05 80 17 00 00 00 00 00 00 75 [00:36:42]Write i2c OK [00:36:42]MH_I2C_Read... [00:36:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:42]Read from MH i2c: E2 [00:36:42]MH_I2C_Read... [00:36:42]Read from MH i2c: E2 FD 00 [00:36:42]MH_I2C_Read... [00:36:42]Read from MH i2c: E2 FD 00 F0 05 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 93 [00:36:42]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [00:36:42]wFMCommunicate OK [00:36:42]wFMCommunicate request_size=4 [00:36:42]MH_SAM_APDU [00:36:42]CAPDU: 80 17 00 00 [00:36:42]Write to MH i2c: E2 08 00 F1 05 80 17 00 00 00 00 00 00 76 [00:36:42]Write i2c OK [00:36:42]MH_I2C_Read... [00:36:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:42]Read from MH i2c: E2 [00:36:42]MH_I2C_Read... [00:36:42]Read from MH i2c: E2 FD 00 [00:36:42]MH_I2C_Read... [00:36:42]Read from MH i2c: E2 FD 00 F1 05 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E8 [00:36:42]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:36:42]wFMCommunicate OK [00:36:42]wFMCommunicate request_size=4 [00:36:42]MH_SAM_APDU [00:36:42]CAPDU: 80 17 00 00 [00:36:42]Write to MH i2c: E2 08 00 F2 05 80 17 00 00 00 00 00 00 77 [00:36:42]Write i2c OK [00:36:42]MH_I2C_Read... [00:36:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:36:43]Read from MH i2c: E2 [00:36:43]MH_I2C_Read... [00:36:43]Read from MH i2c: E2 E0 00 [00:36:43]MH_I2C_Read... [00:36:43]Read from MH i2c: E2 E0 00 F2 05 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 61 [00:36:43]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:36:43]wFMCommunicate OK [00:36:43]SAM_PROTO_GetFMData done [00:36:43]requested_item fm.sale_refund.total is exist - process it [00:36:43]requested_item fm.buy.total is exist - process it [00:36:43]requested_item shift.sale.total is exist - process it [00:36:43]SAM_PROTO_GetShiftData [00:36:43]wFMCommunicate request_size=4 [00:36:43]MH_SAM_APDU [00:36:43]CAPDU: 80 13 02 00 [00:36:43]Write to MH i2c: E2 08 00 F3 05 80 13 02 00 00 00 00 00 76 [00:36:43]Write i2c OK [00:36:43]MH_I2C_Read... [00:36:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:36:43]Read from MH i2c: E2 [00:36:43]MH_I2C_Read... [00:36:43]Read from MH i2c: E2 FD 00 [00:36:43]MH_I2C_Read... [00:36:43]Read from MH i2c: E2 FD 00 F3 05 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 E9 [00:36:43]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:36:43]wFMCommunicate OK [00:36:43]wFMCommunicate request_size=4 [00:36:43]MH_SAM_APDU [00:36:43]CAPDU: 80 17 00 00 [00:36:43]Write to MH i2c: E2 08 00 F4 05 80 17 00 00 00 00 00 00 79 [00:36:43]Write i2c OK [00:36:43]MH_I2C_Read... [00:36:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:44]Read from MH i2c: E2 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: E2 FD 00 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: E2 FD 00 F4 05 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 81 [00:36:44]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:36:44]wFMCommunicate OK [00:36:44]wFMCommunicate request_size=4 [00:36:44]MH_SAM_APDU [00:36:44]CAPDU: 80 17 00 00 [00:36:44]Write to MH i2c: E2 08 00 F5 05 80 17 00 00 00 00 00 00 7A [00:36:44]Write i2c OK [00:36:44]MH_I2C_Read... [00:36:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:44]Read from MH i2c: E2 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: E2 FD 00 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: E2 FD 00 F5 05 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 4C [00:36:44]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:36:44]wFMCommunicate OK [00:36:44]wFMCommunicate request_size=4 [00:36:44]MH_SAM_APDU [00:36:44]CAPDU: 80 17 00 00 [00:36:44]Write to MH i2c: E2 08 00 F6 05 80 17 00 00 00 00 00 00 7B [00:36:44]Write i2c OK [00:36:44]MH_I2C_Read... [00:36:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:45]Read from MH i2c: E2 [00:36:45]MH_I2C_Read... [00:36:45]Read from MH i2c: E2 FD 00 [00:36:45]MH_I2C_Read... [00:36:45]Read from MH i2c: E2 FD 00 F6 05 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 ED [00:36:45]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:36:45]wFMCommunicate OK [00:36:45]wFMCommunicate request_size=4 [00:36:45]MH_SAM_APDU [00:36:45]CAPDU: 80 17 00 00 [00:36:45]Write to MH i2c: E2 08 00 F7 05 80 17 00 00 00 00 00 00 7C [00:36:45]Write i2c OK [00:36:45]MH_I2C_Read... [00:36:45]OFD Sender: No OFD packet to send [00:36:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:36:45]Read from MH i2c: E2 [00:36:45]MH_I2C_Read... [00:36:45]Read from MH i2c: E2 BD 00 [00:36:45]MH_I2C_Read... [00:36:45]Read from MH i2c: E2 BD 00 F7 05 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 62 [00:36:45]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:36:45]wFMCommunicate OK [00:36:45]SAM_PROTO_GetShiftData done [00:36:45]requested_item shift.sale.total_cash is exist - process it [00:36:45]requested_item shift.sale_refund.total is exist - process it [00:36:45]requested_item shift.sale_refund.total_cash is exist - process it [00:36:45]requested_item shift.buy.total is exist - process it [00:36:45]requested_item shift.buy.total_cash is exist - process it [00:36:45]produce_requested_data done [00:36:45]produce_requested_data return {"fm.sale.total":20226131.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:36:45]process_action_free get_value [00:36:45]json_value_free [00:36:45]json_value_free done [00:36:45]process_json_proto returns [00:36:45]Send response to host [00:36:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20226131.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:36:45]free response buf [00:36:45]execute_script done [00:36:45]execute_script returns [00:36:45]free content buf [00:36:45]Sock 9.Close socket [00:36:45]Sock 9.Thread stoped [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:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [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:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:56]OFD Sender: No OFD packet to send [01:05:01]OFD Sender: No OFD packet to send [01:05:06]OFD Sender: No OFD packet to send [01:05:11]OFD Sender: No OFD packet to send [01:05:16]OFD Sender: No OFD packet to send [01:05:21]OFD Sender: No OFD packet to send [01:05:26]OFD Sender: No OFD packet to send [01:05:31]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:12]accept exits with 7 [01:11:12]New connection [01:11:12]New thread 3066641764 created [01:11:12]Thread 3066785124 joined [01:11:12]Waiting for new connection... [01:11:12] Sock 7.Parse request [01:11:12]Sock 7.Check first char [01:11:12]Sock 7.First char is OK [01:11:12]request: POST /json_proto HTTP/1.0 [01:11:12]Method: POST [01:11:12]URL: /json_proto [01:11:12]Method is POST - this is cgi request [01:11:12]url: /json_proto [01:11:12]query_string will be loaded in cgi processing [01:11:12]execute_cgi json_proto POST (null) [01:11:12]execute_cgi path=json_proto method=POST [01:11:12]POST find Content-Length [01:11:12]Host: 172.17.52.196:8080 [01:11:12]Content-Length: 622 [01:11:12]Content-Type: application/json [01:11:12] [01:11:12]POST finish read [01:11:12]Found Content-Length = 622 [01:11:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127239", "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" ] } } [01:11:12]execute_script... [01:11: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)127239", "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" ] } } [01:11:12]POST & json_proto [01:11:12]process_json_proto [01:11:12]json parsed OK: [01:11:12]protocol is kg_v1.0 [01:11:12]action value=close_receipt [01:11:12]process_action close_receipt [01:11:12]cmd_close_receipt [01:11:12]MH_GetDate [01:11:12]Write to MH i2c: F0 00 00 F8 05 EC [01:11:12]Write i2c OK [01:11:12]MH_I2C_Read... [01:11:12]Read from MH i2c: F0 [01:11:12]MH_I2C_Read... [01:11:12]Read from MH i2c: F0 09 00 [01:11:12]MH_I2C_Read... [01:11:12]Read from MH i2c: F0 09 00 F8 05 00 31 AA 15 67 60 05 E4 66 FB [01:11:12]GetLastDocTimeStamp 1729470998 [01:11:12]current date 1729473073 [01:11:12]FM_GetShiftState [01:11:12]SAM_PROTO_GetShiftState [01:11:12]wFMCommunicate request_size=4 [01:11:12]MH_SAM_APDU [01:11:12]CAPDU: 80 13 01 00 [01:11:12]Write to MH i2c: E2 08 00 F9 05 80 13 01 00 00 00 00 00 7B [01:11:12]Write i2c OK [01:11:12]MH_I2C_Read... [01:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:11:12]Read from MH i2c: E2 [01:11:12]MH_I2C_Read... [01:11:12]Read from MH i2c: E2 0E 00 [01:11:12]MH_I2C_Read... [01:11:12]Read from MH i2c: E2 0E 00 F9 05 00 09 00 01 16 A2 15 67 00 00 00 00 90 00 BB [01:11:12]RAPDU: 09 00 01 16 A2 15 67 00 00 00 00 90 00 [01:11:12]wFMCommunicate OK [01:11:12]SAM_PROTO_GetShiftState done [01:11:12]FM_GetShiftState done [01:11:12]opened in 1729470998 [01:11:12]opened+sec_in_day 1729557398 [01:11:12]quantity*price = 15000 [01:11:12]sum+1 = 15001 [01:11:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 1 21.10.2024 01:11 Смена: 527 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69842 ФПД: 278746757647263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T011113&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69842&fm=278746757647263&tin=02508201610067®Number=0000000000091770&sum=15000 0 [01:11:13]StoreToDocumentArchive [01:11:13]shift 527 fd 69842 [01:11:13]save to /storage/0527/doc_00069842 [01:11:13]save last doc name /storage/0527/doc_00069842 to /storage/kkm_last_doc_name [01:11:13]save OK [01:11:13]Clear old archive folders... [01:11:13]ProcessDocumentItem done err = 0, tmpTLVsize=274 [01:11:13]tlvbuf is 017A2780 [01:11:13]SAM_PROTO_ClearQueue [01:11:13]wFMCommunicate request_size=4 [01:11:13]MH_SAM_APDU [01:11:13]CAPDU: 80 09 00 00 [01:11:13]Write to MH i2c: E2 08 00 06 06 80 09 00 00 00 00 00 00 7E [01:11:13]Write i2c OK [01:11:13]MH_I2C_Read... [01:11:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:11:13]Read from MH i2c: E2 [01:11:13]MH_I2C_Read... [01:11:13]Read from MH i2c: E2 03 00 [01:11:13]MH_I2C_Read... [01:11:13]Read from MH i2c: E2 03 00 06 06 00 90 00 80 [01:11:13]RAPDU: 90 00 [01:11:13]wFMCommunicate OK [01:11:13]SAM_PROTO_ClearQueue done [01:11:13]KKMCreateOFDPacket [01:11:13]OFDProtocolAddRootSTLVToBuf [01:11:13]FM_MakeSignedData [01:11:13]FM_MakeSignedData [01:11:13]SAM_PROTO_SignData [01:11:13]wFMCommunicate request_size=4 [01:11:13]MH_SAM_APDU [01:11:13]CAPDU: 80 0D 01 02 [01:11:13]Write to MH i2c: E2 08 00 07 06 80 0D 01 02 00 00 00 00 86 [01:11:13]Write i2c OK [01:11:13]MH_I2C_Read... [01:11:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:11:13]Read from MH i2c: E2 [01:11:13]MH_I2C_Read... [01:11:13]Read from MH i2c: E2 03 00 [01:11:13]MH_I2C_Read... [01:11:13]Read from MH i2c: E2 03 00 07 06 00 90 00 81 [01:11:13]RAPDU: 90 00 [01:11:13]wFMCommunicate OK [01:11:13]wFMCommunicate request_size=255 [01:11:13]MH_SAM_APDU [01:11:13]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 01 00 00 00 F4 03 04 00 31 AA 15 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 [01:11:13]Write to MH i2c: E2 02 01 08 06 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 01 00 00 00 F4 03 04 00 31 AA 15 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 00 00 8B [01:11:13]Write i2c OK [01:11:13]MH_I2C_Read... [01:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:11:13]Read from MH i2c: E2 [01:11:13]MH_I2C_Read... [01:11:13]Read from MH i2c: E2 03 00 [01:11:13]MH_I2C_Read... [01:11:13]Read from MH i2c: E2 03 00 08 06 00 90 00 82 [01:11:13]RAPDU: 90 00 [01:11:13]wFMCommunicate OK [01:11:13]wFMCommunicate request_size=33 [01:11:13]MH_SAM_APDU [01:11:13]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 37 34 39 10 04 04 00 D2 10 01 00 35 04 06 00 FD 84 C9 78 CB 9F [01:11:13]Write to MH i2c: E2 24 00 09 06 80 0D 02 02 1C 00 30 30 30 30 38 37 31 37 34 39 10 04 04 00 D2 10 01 00 35 04 06 00 FD 84 C9 78 CB 9F 00 00 2B [01:11:13]Write i2c OK [01:11:13]MH_I2C_Read... [01:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:11:13]Read from MH i2c: E2 [01:11:13]MH_I2C_Read... [01:11:13]Read from MH i2c: E2 03 00 [01:11:13]MH_I2C_Read... [01:11:13]Read from MH i2c: E2 03 00 09 06 00 90 00 83 [01:11:13]RAPDU: 90 00 [01:11:13]wFMCommunicate OK [01:11:13]wFMCommunicate request_size=4 [01:11:13]MH_SAM_APDU [01:11:13]CAPDU: 80 0D 03 02 [01:11:13]Write to MH i2c: E2 08 00 0A 06 80 0D 03 02 00 00 00 00 8B [01:11:13]Write i2c OK [01:11:13]MH_I2C_Read... [01:11:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:11:14]Read from MH i2c: E2 [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: E2 0B 00 [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: E2 0B 00 0A 06 00 B5 AF 64 1C 4F 8F 23 81 90 00 F2 [01:11:14]RAPDU: B5 AF 64 1C 4F 8F 23 81 90 00 [01:11:14]wFMCommunicate OK [01:11:14]SAM_PROTO_SignData done [01:11:14]FM_MakeSignedData done [01:11:14]CreateOFDProtocolMessage [01:11:14]wFMCommunicate request_size=4 [01:11:14]MH_SAM_APDU [01:11:14]CAPDU: 80 11 00 00 [01:11:14]Write to MH i2c: E2 08 00 0B 06 80 11 00 00 00 00 00 00 8B [01:11:14]Write i2c OK [01:11:14]MH_I2C_Read... [01:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:11:14]Read from MH i2c: E2 [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: E2 17 00 [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: E2 17 00 0B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 E2 [01:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [01:11:14]wFMCommunicate OK [01:11:14]CreateOFDProtocolMessage done [01:11:14]OFDSenderStorePacket 69842 [01:11:14]StoreOFDPacket docnum=69842 [01:11:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 D0 8A 1E 01 F9 A7 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 01 00 00 00 F4 03 04 00 31 AA 15 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 D2 10 01 00 35 04 06 00 FD 84 C9 78 CB 9F B5 AF 64 1C 4F 8F 23 81 [01:11:14]CheckFolder [01:11:14]dirname=/storage/ofd_packets [01:11:14]CheckFolder done [01:11:14]ProducePacketName [01:11:14]name=ofd_packets/00069842 [01:11:14]NVStorageSaveData ofd_packets/00069842 [01:11:14]File name is /storage/ofd_packets/00069842 [01:11:14]Write 324 bytes [01:11:14]NVStorageSaveData done [01:11:14]OFDSenderStorePacket done [01:11:14]KKMCreateOFDPacket done [01:11:14]NVStorageSaveData kkm_last_timestamp [01:11:14]File name is /storage/kkm_last_timestamp [01:11:14]Write 4 bytes [01:11:14]NVStorageSaveData done [01:11:14]ExternCall_PrintAddStr [01:11:14]wPrintStart [01:11:14]Write to MH i2c: 01 00 00 0C 06 12 [01:11:14]Write i2c OK [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: 01 [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: 01 07 00 [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: 01 07 00 0C 06 00 00 00 00 00 FF 0F 27 [01:11:14]RasterBufferAndPrint [01:11:14]line Счет N : (3)127239 [01:11:14]line ИНН: 02508201610067 [01:11:14]line Контрольно-Кассовый Чек [01:11:14]line ПРОДАЖА [01:11:14]line Товар: 4640030091645 [01:11:14]line Сигареты ESSE Exchange M [01:11:14]line 1.000 * 150.00 [01:11:14]line = 150.00 [01:11:14]line НДС 12% НСП 1% [01:11:14]line > о реализуемом товаре [01:11:14]line ИТОГО: 150.00 [01:11:14]line НСП 1% : 1.33 [01:11:14]line НДС 12% : 15.93 [01:11:14]line Наличными: 150.00 [01:11:14]line Безнал.: 0.00 [01:11:14]line Место: АЗС № 163 "Партнер Нефть" [01:11:14]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [01:11:14]line СНО: Общий режим [01:11:14]line Чек 1 21.10.2024 01:11 [01:11:14]line Смена: 527 ФФД: 1.0 [01:11:14]line ЗНМ: 0300000101 [01:11:14]line РНМ: 0000000000091770 [01:11:14]line Версия ККМ: 001 [01:11:14]line ФМ: 0000000000871749 [01:11:14]line ФД: 69842 [01:11:14]line ФПД: 278746757647263 [01:11:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T011113&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69842&fm=278746757647263&tin=02508201610067®Number=0000000000091770&sum=15000 [01:11:14]line 0 [01:11:14]OFD Sender: Processing packet 69842 [packets to send 32, broken 31] [01:11:14]ProducePacketName [01:11:14]name=ofd_packets/00069842 [01:11:14]OFD Sender: To server: pG, [01:11:14]CommunicateWithHost lk.salyk.kg:30040 [01:11:14]ConnectInit lk.salyk.kg [01:11:14]written 0, free lines is 4095 [01:11:14]Connected sock=10 [01:11:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 26 01 00 00 D0 8A 1E 01 F9 A7 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 01 00 00 00 F4 03 04 00 31 AA 15 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 D2 10 01 00 35 04 06 00 FD 84 C9 78 CB 9F B5 AF 64 1C 4F 8F 23 81 [01:11:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 F2 7E 47 00 88 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 D2 10 01 00 F4 03 04 00 B3 4F 15 67 B6 04 01 00 00 30 A9 5B 7C 79 A4 C4 40 [01:11:14]CommunicateWithHost err = 0 [01:11:14]CheckOFDResponse [01:11:14]1017 (14) - 77093643461234 [01:11:14]1041 (16) - 0000000000871749 [01:11:14]1040 (4) - 69842 [01:11:14]1012 (4) - 20.10.2024 18:45 [01:11:14]1206 (1) - 0 [01:11:14]OFD Sender: Remove packet 69842 [01:11:14]ProducePacketName [01:11:14]name=ofd_packets/00069842 [01:11:14]NVStorageDeleteData [01:11:14]Write to MH i2c: 01 00 00 34 06 3A [01:11:14]Write i2c OK [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: 01 [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: 01 07 00 [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: 01 07 00 34 06 00 00 00 00 00 02 0D 50 [01:11:14]RasterBufferAndPrint [01:11:14]line [01:11:14]line [01:11:14]line [01:11:14]line [01:11:14]line [01:11:14]written 0, free lines is 3336 [01:11:14]MH_Cut [01:11:14]Write to MH i2c: D1 01 00 3B 06 01 13 [01:11:14]Write i2c OK [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: D1 [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: D1 01 00 [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: D1 01 00 3B 06 00 12 [01:11:14]Write to MH i2c: 01 00 00 3C 06 42 [01:11:14]Write i2c OK [01:11:14]MH_I2C_Read... [01:11:15]OFD Sender: No OFD packet to send [01:11:15]*** Cut start [01:11:15]*** Partial cut [01:11:15]*** CUTSNS_PIN = 1 [01:11:15]*** CUTSNS_PIN = 0 [01:11:16]*** Brake cut motor [01:11:16]Read from MH i2c: 01 [01:11:16]MH_I2C_Read... [01:11:16]*** Stop cut motor [01:11:16]*** Cut end [01:11:16]Read from MH i2c: 01 07 00 [01:11:16]MH_I2C_Read... [01:11:16]Read from MH i2c: 01 07 00 3C 06 00 00 00 00 00 FF 0F 57 [01:11:16]process_action close_receipt done [01:11:16]requested_data is exist [01:11:16]produce_requested_data [01:11:16]requested_item fm.sn is exist - process it [01:11:16]wFMCommunicate request_size=4 [01:11:16]MH_SAM_APDU [01:11:16]CAPDU: 80 11 00 00 [01:11:16]Write to MH i2c: E2 08 00 3D 06 80 11 00 00 00 00 00 00 BD [01:11:16]Write i2c OK [01:11:16]MH_I2C_Read... [01:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:11:16]Read from MH i2c: E2 [01:11:16]MH_I2C_Read... [01:11:16]Read from MH i2c: E2 17 00 [01:11:16]MH_I2C_Read... [01:11:16]Read from MH i2c: E2 17 00 3D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 14 [01:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [01:11:16]wFMCommunicate OK [01:11:16]requested_item fd.num is exist - process it [01:11:16]SAM_PROTO_GetFieldsCounters [01:11:16]wFMCommunicate request_size=4 [01:11:16]MH_SAM_APDU [01:11:16]CAPDU: 80 13 00 00 [01:11:16]Write to MH i2c: E2 08 00 3E 06 80 13 00 00 00 00 00 00 C0 [01:11:16]Write i2c OK [01:11:16]MH_I2C_Read... [01:11:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:11:16]Read from MH i2c: E2 [01:11:16]MH_I2C_Read... [01:11:16]Read from MH i2c: E2 62 00 [01:11:16]MH_I2C_Read... [01:11:16]Read from MH i2c: E2 62 00 3E 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 D2 10 01 00 0E 04 04 00 0F 02 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 DB [01:11: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 D2 10 01 00 0E 04 04 00 0F 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:11:16]wFMCommunicate OK [01:11:16]SAM_PROTO_GetFieldsCounters done [01:11:16]requested_item shift.num is exist - process it [01:11:16]requested_item shift.opened is exist - process it [01:11:16]req_shift_opened [01:11:16]FM_GetShiftState [01:11:16]SAM_PROTO_GetShiftState [01:11:16]wFMCommunicate request_size=4 [01:11:16]MH_SAM_APDU [01:11:16]CAPDU: 80 13 01 00 [01:11:16]Write to MH i2c: E2 08 00 3F 06 80 13 01 00 00 00 00 00 C2 [01:11:16]Write i2c OK [01:11:16]MH_I2C_Read... [01:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:11:16]Read from MH i2c: E2 [01:11:16]MH_I2C_Read... [01:11:16]Read from MH i2c: E2 0E 00 [01:11:16]MH_I2C_Read... [01:11:16]Read from MH i2c: E2 0E 00 3F 06 00 09 00 01 16 A2 15 67 00 00 00 00 90 00 02 [01:11:16]RAPDU: 09 00 01 16 A2 15 67 00 00 00 00 90 00 [01:11:16]wFMCommunicate OK [01:11:16]SAM_PROTO_GetShiftState done [01:11:16]FM_GetShiftState done [01:11:16]req_shift_opened done [01:11:16]requested_item shift.open_date is exist - process it [01:11:16]req_shift_open_date [01:11:16]req_shift_open_date done [01:11:16]produce_requested_data done [01:11:16]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69842,"shift.num":527,"shift.opened":1,"shift.open_date":1729470998} [01:11:16]process_action_free close_receipt [01:11:16]json_value_free [01:11:16]json_value_free done [01:11:16]process_json_proto returns [01:11:16]Send response to host [01:11:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69842,"shift.num":527,"shift.opened":1,"shift.open_date":1729470998}}} [01:11:16]free response buf [01:11:16]execute_script done [01:11:16]execute_script returns [01:11:16]free content buf [01:11:16]Sock 7.Close socket [01:11:16]Sock 7.Thread stoped [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:55]OFD Sender: No OFD packet to send [01:16:00]OFD Sender: No OFD packet to send [01:16:05]OFD Sender: No OFD packet to send [01:16:10]OFD Sender: No OFD packet to send [01:16:15]OFD Sender: No OFD packet to send [01:16:20]OFD Sender: No OFD packet to send [01:16:25]OFD Sender: No OFD packet to send [01:16:30]OFD Sender: No OFD packet to send [01:16:35]OFD Sender: No OFD packet to send [01:16:40]OFD Sender: No OFD packet to send [01:16:45]OFD Sender: No OFD packet to send [01:16:50]OFD Sender: No OFD packet to send [01:16:55]OFD Sender: No OFD packet to send [01:17:00]OFD Sender: No OFD packet to send [01:17:05]OFD Sender: No OFD packet to send [01:17:10]OFD Sender: No OFD packet to send [01:17:15]OFD Sender: No OFD packet to send [01:17:20]OFD Sender: No OFD packet to send [01:17:25]OFD Sender: No OFD packet to send [01:17:30]OFD Sender: No OFD packet to send [01:17:35]OFD Sender: No OFD packet to send [01:17:40]OFD Sender: No OFD packet to send [01:17:45]OFD Sender: No OFD packet to send [01:17:50]OFD Sender: No OFD packet to send [01:17:55]OFD Sender: No OFD packet to send [01:18:00]OFD Sender: No OFD packet to send [01:18:05]OFD Sender: No OFD packet to send [01:18:10]OFD Sender: No OFD packet to send [01:18:15]OFD Sender: No OFD packet to send [01:18:20]OFD Sender: No OFD packet to send [01:18:25]OFD Sender: No OFD packet to send [01:18:30]OFD Sender: No OFD packet to send [01:18:35]OFD Sender: No OFD packet to send [01:18:40]OFD Sender: No OFD packet to send [01:18:45]OFD Sender: No OFD packet to send [01:18:50]OFD Sender: No OFD packet to send [01:18:55]OFD Sender: No OFD packet to send [01:19:00]OFD Sender: No OFD packet to send [01:19:05]OFD Sender: No OFD packet to send [01:19:10]OFD Sender: No OFD packet to send [01:19:15]OFD Sender: No OFD packet to send [01:19:20]OFD Sender: No OFD packet to send [01:19:25]OFD Sender: No OFD packet to send [01:19:30]OFD Sender: No OFD packet to send [01:19:35]OFD Sender: No OFD packet to send [01:19:40]OFD Sender: No OFD packet to send [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:10]OFD Sender: No OFD packet to send [01:20:15]OFD Sender: No OFD packet to send [01:20:20]OFD Sender: No OFD packet to send [01:20:25]OFD Sender: No OFD packet to send [01:20:30]OFD Sender: No OFD packet to send [01:20:35]OFD Sender: No OFD packet to send [01:20:40]OFD Sender: No OFD packet to send [01:20:45]OFD Sender: No OFD packet to send [01:20:50]OFD Sender: No OFD packet to send [01:20:55]OFD Sender: No OFD packet to send [01:21:00]OFD Sender: No OFD packet to send [01:21:05]OFD Sender: No OFD packet to send [01:21:10]OFD Sender: No OFD packet to send [01:21:15]OFD Sender: No OFD packet to send [01:21:20]OFD Sender: No OFD packet to send [01:21:25]OFD Sender: No OFD packet to send [01:21:30]OFD Sender: No OFD packet to send [01:21:35]OFD Sender: No OFD packet to send [01:21:40]OFD Sender: No OFD packet to send [01:21:45]OFD Sender: No OFD packet to send [01:21:50]OFD Sender: No OFD packet to send [01:21:55]OFD Sender: No OFD packet to send [01:22:00]OFD Sender: No OFD packet to send [01:22:05]OFD Sender: No OFD packet to send [01:22:10]OFD Sender: No OFD packet to send [01:22:15]OFD Sender: No OFD packet to send [01:22:20]OFD Sender: No OFD packet to send [01:22:25]OFD Sender: No OFD packet to send [01:22:30]OFD Sender: No OFD packet to send [01:22:35]OFD Sender: No OFD packet to send [01:22:40]OFD Sender: No OFD packet to send [01:22:45]OFD Sender: No OFD packet to send [01:22:50]OFD Sender: No OFD packet to send [01:22:55]OFD Sender: No OFD packet to send [01:23:00]OFD Sender: No OFD packet to send [01:23:05]OFD Sender: No OFD packet to send [01:23:10]OFD Sender: No OFD packet to send [01:23:15]OFD Sender: No OFD packet to send [01:23:20]OFD Sender: No OFD packet to send [01:23:25]OFD Sender: No OFD packet to send [01:23:30]OFD Sender: No OFD packet to send [01:23:35]OFD Sender: No OFD packet to send [01:23:40]OFD Sender: No OFD packet to send [01:23:45]OFD Sender: No OFD packet to send [01:23:50]OFD Sender: No OFD packet to send [01:23:55]OFD Sender: No OFD packet to send [01:24:00]OFD Sender: No OFD packet to send [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:15]OFD Sender: No OFD packet to send [01:24:20]OFD Sender: No OFD packet to send [01:24:25]OFD Sender: No OFD packet to send [01:24:30]OFD Sender: No OFD packet to send [01:24:35]OFD Sender: No OFD packet to send [01:24:40]OFD Sender: No OFD packet to send [01:24:45]OFD Sender: No OFD packet to send [01:24:50]OFD Sender: No OFD packet to send [01:24:55]OFD Sender: No OFD packet to send [01:25:00]OFD Sender: No OFD packet to send [01:25:05]OFD Sender: No OFD packet to send [01:25:10]OFD Sender: No OFD packet to send [01:25:15]OFD Sender: No OFD packet to send [01:25:20]OFD Sender: No OFD packet to send [01:25:25]OFD Sender: No OFD packet to send [01:25:30]OFD Sender: No OFD packet to send [01:25:35]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:51]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:56]OFD Sender: No OFD packet to send [01:32:01]OFD Sender: No OFD packet to send [01:32:06]OFD Sender: No OFD packet to send [01:32:11]OFD Sender: No OFD packet to send [01:32:16]OFD Sender: No OFD packet to send [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:31]OFD Sender: No OFD packet to send [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:06]OFD Sender: No OFD packet to send [01:33:11]OFD Sender: No OFD packet to send [01:33:16]OFD Sender: No OFD packet to send [01:33:21]OFD Sender: No OFD packet to send [01:33:26]OFD Sender: No OFD packet to send [01:33:31]OFD Sender: No OFD packet to send [01:33:36]OFD Sender: No OFD packet to send [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:21]OFD Sender: No OFD packet to send [01:34:26]OFD Sender: No OFD packet to send [01:34:31]OFD Sender: No OFD packet to send [01:34:36]OFD Sender: No OFD packet to send [01:34:41]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]OFD Sender: No OFD packet to send [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:11]OFD Sender: No OFD packet to send [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:26]OFD Sender: No OFD packet to send [01:36:31]OFD Sender: No OFD packet to send [01:36:36]OFD Sender: No OFD packet to send [01:36:41]OFD Sender: No OFD packet to send [01:36:46]OFD Sender: No OFD packet to send [01:36:51]OFD Sender: No OFD packet to send [01:36:56]OFD Sender: No OFD packet to send [01:37:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:46]OFD Sender: No OFD packet to send [01:37:51]OFD Sender: No OFD packet to send [01:37:53]accept exits with 9 [01:37:53]New connection [01:37:53]New thread 3066785124 created [01:37:53]Thread 3066641764 joined [01:37:53]Waiting for new connection... [01:37:53] Sock 9.Parse request [01:37:53]Sock 9.Check first char [01:37:53]Sock 9.First char is OK [01:37:53]request: POST /json_proto HTTP/1.0 [01:37:53]Method: POST [01:37:53]URL: /json_proto [01:37:53]Method is POST - this is cgi request [01:37:53]url: /json_proto [01:37:53]query_string will be loaded in cgi processing [01:37:53]execute_cgi json_proto POST (null) [01:37:53]execute_cgi path=json_proto method=POST [01:37:53]POST find Content-Length [01:37:53]Host: 172.17.52.196:8080 [01:37:53]Content-Length: 215 [01:37:53]Content-Type: application/json [01:37:53] [01:37:53]POST finish read [01:37:53]Found Content-Length = 215 [01:37:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:37:53]execute_script... [01:37:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:37:53]POST & json_proto [01:37:53]process_json_proto [01:37:53]json parsed OK: [01:37:53]protocol is kg_v1.0 [01:37:53]action value=get_value [01:37:53]process_action get_value [01:37:53]cmd_get_value [01:37:53]process_action get_value done [01:37:53]requested_data is exist [01:37:53]produce_requested_data [01:37:53]requested_item kkm.sn is exist - process it [01:37:53]requested_item kkm.ver is exist - process it [01:37:53]requested_item fm.sn is exist - process it [01:37:53]wFMCommunicate request_size=4 [01:37:53]MH_SAM_APDU [01:37:53]CAPDU: 80 11 00 00 [01:37:53]Write to MH i2c: E2 08 00 40 06 80 11 00 00 00 00 00 00 C0 [01:37:53]Write i2c OK [01:37:53]MH_I2C_Read... [01:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:37:53]Read from MH i2c: E2 [01:37:53]MH_I2C_Read... [01:37:53]Read from MH i2c: E2 17 00 [01:37:53]MH_I2C_Read... [01:37:53]Read from MH i2c: E2 17 00 40 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 17 [01:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [01:37:53]wFMCommunicate OK [01:37:53]requested_item fd.num is exist - process it [01:37:53]SAM_PROTO_GetFieldsCounters [01:37:53]wFMCommunicate request_size=4 [01:37:53]MH_SAM_APDU [01:37:53]CAPDU: 80 13 00 00 [01:37:53]Write to MH i2c: E2 08 00 41 06 80 13 00 00 00 00 00 00 C3 [01:37:53]Write i2c OK [01:37:53]MH_I2C_Read... [01:37:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:37:53]Read from MH i2c: E2 [01:37:53]MH_I2C_Read... [01:37:53]Read from MH i2c: E2 62 00 [01:37:53]MH_I2C_Read... [01:37:53]Read from MH i2c: E2 62 00 41 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 D2 10 01 00 0E 04 04 00 0F 02 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 DE [01:37: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 D2 10 01 00 0E 04 04 00 0F 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:37:53]wFMCommunicate OK [01:37:53]SAM_PROTO_GetFieldsCounters done [01:37:53]requested_item shift.num is exist - process it [01:37:53]requested_item shift.opened is exist - process it [01:37:53]req_shift_opened [01:37:53]FM_GetShiftState [01:37:53]SAM_PROTO_GetShiftState [01:37:53]wFMCommunicate request_size=4 [01:37:53]MH_SAM_APDU [01:37:53]CAPDU: 80 13 01 00 [01:37:53]Write to MH i2c: E2 08 00 42 06 80 13 01 00 00 00 00 00 C5 [01:37:53]Write i2c OK [01:37:53]MH_I2C_Read... [01:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:37:53]Read from MH i2c: E2 [01:37:53]MH_I2C_Read... [01:37:53]Read from MH i2c: E2 0E 00 [01:37:53]MH_I2C_Read... [01:37:53]Read from MH i2c: E2 0E 00 42 06 00 09 00 01 16 A2 15 67 00 00 00 00 90 00 05 [01:37:53]RAPDU: 09 00 01 16 A2 15 67 00 00 00 00 90 00 [01:37:53]wFMCommunicate OK [01:37:53]SAM_PROTO_GetShiftState done [01:37:53]FM_GetShiftState done [01:37:53]req_shift_opened done [01:37:53]requested_item shift.open_date is exist - process it [01:37:53]req_shift_open_date [01:37:53]req_shift_open_date done [01:37:53]produce_requested_data done [01:37:53]produce_requested_data return {"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69842,"shift.num":527,"shift.opened":1,"shift.open_date":1729470998} [01:37:53]process_action_free get_value [01:37:53]json_value_free [01:37:53]json_value_free done [01:37:53]process_json_proto returns [01:37:53]Send response to host [01:37:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000101","kkm.ver":"001","fm.sn":"0000000000871749","fd.num":69842,"shift.num":527,"shift.opened":1,"shift.open_date":1729470998}}} [01:37:53]free response buf [01:37:53]execute_script done [01:37:53]execute_script returns [01:37:53]free content buf [01:37:53]Sock 9.Close socket [01:37:53]Sock 9.Thread stoped [01:37:53]accept exits with 7 [01:37:53]New connection [01:37:53]New thread 3066641764 created [01:37:53]Thread 3066785124 joined [01:37:53]Waiting for new connection... [01:37:53] Sock 7.Parse request [01:37:53]Sock 7.Check first char [01:37:53]Sock 7.First char is OK [01:37:53]request: POST /json_proto HTTP/1.0 [01:37:53]Method: POST [01:37:53]URL: /json_proto [01:37:53]Method is POST - this is cgi request [01:37:53]url: /json_proto [01:37:53]query_string will be loaded in cgi processing [01:37:53]execute_cgi json_proto POST (null) [01:37:53]execute_cgi path=json_proto method=POST [01:37:53]POST find Content-Length [01:37:53]Host: 172.17.52.196:8080 [01:37:53]Content-Length: 331 [01:37:53]Content-Type: application/json [01:37:53] [01:37:53]POST finish read [01:37:53]Found Content-Length = 331 [01:37:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:37:53]execute_script... [01:37:54]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" ] } } [01:37:54]POST & json_proto [01:37:54]process_json_proto [01:37:54]json parsed OK: [01:37:54]protocol is kg_v1.0 [01:37:54]action value=get_value [01:37:54]process_action get_value [01:37:54]cmd_get_value [01:37:54]process_action get_value done [01:37:54]requested_data is exist [01:37:54]produce_requested_data [01:37:54]requested_item fm.sale.total is exist - process it [01:37:54]SAM_PROTO_GetFMData [01:37:54]wFMCommunicate request_size=4 [01:37:54]MH_SAM_APDU [01:37:54]CAPDU: 80 13 03 00 [01:37:54]Write to MH i2c: E2 08 00 43 06 80 13 03 00 00 00 00 00 C8 [01:37:54]Write i2c OK [01:37:54]MH_I2C_Read... [01:37:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:37:54]Read from MH i2c: E2 [01:37:54]MH_I2C_Read... [01:37:54]Read from MH i2c: E2 FD 00 [01:37:54]MH_I2C_Read... [01:37:54]Read from MH i2c: E2 FD 00 43 06 00 C3 04 85 04 BF 04 6E 04 04 00 B4 0C 01 00 69 04 A1 00 6F 04 04 00 56 0C 01 00 B1 04 04 00 33 DB 8E 78 70 04 04 00 64 91 A2 67 72 04 04 00 CF 49 EC 10 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 46 F9 CD 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 33 0D 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 69 [01:37:54]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 B4 0C 01 00 69 04 A1 00 6F 04 04 00 56 0C 01 00 B1 04 04 00 33 DB 8E 78 70 04 04 00 64 91 A2 67 72 04 04 00 CF 49 EC 10 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 46 F9 CD 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 33 0D 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 5E 00 00 00 B1 04 03 00 4C E7 B7 70 04 03 00 20 2A B5 72 04 03 00 2C BD 02 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 10 88 13 EF 03 09 00 F6 90 00 [01:37:54]wFMCommunicate OK [01:37:54]wFMCommunicate request_size=4 [01:37:54]MH_SAM_APDU [01:37:54]CAPDU: 80 17 00 00 [01:37:54]Write to MH i2c: E2 08 00 44 06 80 17 00 00 00 00 00 00 CA [01:37:54]Write i2c OK [01:37:54]MH_I2C_Read... [01:37:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:37:54]Read from MH i2c: E2 [01:37:54]MH_I2C_Read... [01:37:54]Read from MH i2c: E2 FD 00 [01:37:54]MH_I2C_Read... [01:37:54]Read from MH i2c: E2 FD 00 44 06 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 CE [01:37:54]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 A0 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [01:37:54]wFMCommunicate OK [01:37:54]wFMCommunicate request_size=4 [01:37:54]MH_SAM_APDU [01:37:54]CAPDU: 80 17 00 00 [01:37:54]Write to MH i2c: E2 08 00 45 06 80 17 00 00 00 00 00 00 CB [01:37:54]Write i2c OK [01:37:54]MH_I2C_Read... [01:37:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:37:55]Read from MH i2c: E2 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 FD 00 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 FD 00 45 06 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 E9 [01:37:55]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 90 00 [01:37:55]wFMCommunicate OK [01:37:55]wFMCommunicate request_size=4 [01:37:55]MH_SAM_APDU [01:37:55]CAPDU: 80 17 00 00 [01:37:55]Write to MH i2c: E2 08 00 46 06 80 17 00 00 00 00 00 00 CC [01:37:55]Write i2c OK [01:37:55]MH_I2C_Read... [01:37:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:37:55]Read from MH i2c: E2 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 FD 00 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 FD 00 46 06 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3E [01:37:55]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:37:55]wFMCommunicate OK [01:37:55]wFMCommunicate request_size=4 [01:37:55]MH_SAM_APDU [01:37:55]CAPDU: 80 17 00 00 [01:37:55]Write to MH i2c: E2 08 00 47 06 80 17 00 00 00 00 00 00 CD [01:37:55]Write i2c OK [01:37:55]MH_I2C_Read... [01:37:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [01:37:55]Read from MH i2c: E2 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 E0 00 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 E0 00 47 06 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B7 [01:37:55]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:37:55]wFMCommunicate OK [01:37:55]SAM_PROTO_GetFMData done [01:37:55]requested_item fm.sale_refund.total is exist - process it [01:37:55]requested_item fm.buy.total is exist - process it [01:37:55]requested_item shift.sale.total is exist - process it [01:37:55]SAM_PROTO_GetShiftData [01:37:55]wFMCommunicate request_size=4 [01:37:55]MH_SAM_APDU [01:37:55]CAPDU: 80 13 02 00 [01:37:55]Write to MH i2c: E2 08 00 48 06 80 13 02 00 00 00 00 00 CC [01:37:55]Write i2c OK [01:37:55]MH_I2C_Read... [01:37:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:37:55]Read from MH i2c: E2 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 FD 00 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 FD 00 48 06 00 A7 04 AA 04 A3 04 6E 04 04 00 01 00 00 00 69 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 98 3A 70 04 02 00 98 3A 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 39 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 D5 [01:37:55]RAPDU: A7 04 AA 04 A3 04 6E 04 04 00 01 00 00 00 69 04 94 00 6F 04 04 00 01 00 00 00 B1 04 02 00 98 3A 70 04 02 00 98 3A 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 39 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 85 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [01:37:55]wFMCommunicate OK [01:37:55]wFMCommunicate request_size=4 [01:37:55]MH_SAM_APDU [01:37:55]CAPDU: 80 17 00 00 [01:37:55]Write to MH i2c: E2 08 00 49 06 80 17 00 00 00 00 00 00 CF [01:37:55]Write i2c OK [01:37:55]MH_I2C_Read... [01:37:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:37:56]Read from MH i2c: E2 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: E2 FD 00 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: E2 FD 00 49 06 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 E3 [01:37:56]RAPDU: F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [01:37:56]wFMCommunicate OK [01:37:56]wFMCommunicate request_size=4 [01:37:56]MH_SAM_APDU [01:37:56]CAPDU: 80 17 00 00 [01:37:56]Write to MH i2c: E2 08 00 4A 06 80 17 00 00 00 00 00 00 D0 [01:37:56]Write i2c OK [01:37:56]MH_I2C_Read... [01:37:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:37:56]Read from MH i2c: E2 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: E2 FD 00 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: E2 FD 00 4A 06 00 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 90 00 88 [01:37:56]RAPDU: 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 90 00 [01:37:56]wFMCommunicate OK [01:37:56]wFMCommunicate request_size=4 [01:37:56]MH_SAM_APDU [01:37:56]CAPDU: 80 17 00 00 [01:37:56]Write to MH i2c: E2 08 00 4B 06 80 17 00 00 00 00 00 00 D1 [01:37:56]Write i2c OK [01:37:56]MH_I2C_Read... [01:37:56]OFD Sender: No OFD packet to send [01:37:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:37:56]Read from MH i2c: E2 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: E2 FD 00 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: E2 FD 00 4B 06 00 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 90 00 50 [01:37:56]RAPDU: 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 90 00 [01:37:56]wFMCommunicate OK [01:37:56]wFMCommunicate request_size=4 [01:37:56]MH_SAM_APDU [01:37:56]CAPDU: 80 17 00 00 [01:37:56]Write to MH i2c: E2 08 00 4C 06 80 17 00 00 00 00 00 00 D2 [01:37:56]Write i2c OK [01:37:56]MH_I2C_Read... [01:37:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 193! [01:37:57]Read from MH i2c: E2 [01:37:57]MH_I2C_Read... [01:37:57]Read from MH i2c: E2 C4 00 [01:37:57]MH_I2C_Read... [01:37:57]Read from MH i2c: E2 C4 00 4C 06 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B6 [01:37:57]RAPDU: F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:37:57]wFMCommunicate OK [01:37:57]SAM_PROTO_GetShiftData done [01:37:57]requested_item shift.sale.total_cash is exist - process it [01:37:57]requested_item shift.sale_refund.total is exist - process it [01:37:57]requested_item shift.sale_refund.total_cash is exist - process it [01:37:57]requested_item shift.buy.total is exist - process it [01:37:57]requested_item shift.buy.total_cash is exist - process it [01:37:57]produce_requested_data done [01:37:57]produce_requested_data return {"fm.sale.total":20226281.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":150.00,"shift.sale.total_cash":150.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} [01:37:57]process_action_free get_value [01:37:57]json_value_free [01:37:57]json_value_free done [01:37:57]process_json_proto returns [01:37:57]Send response to host [01:37:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":20226281.47,"fm.sale_refund.total":120523.00,"fm.buy.total":0.00,"shift.sale.total":150.00,"shift.sale.total_cash":150.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}}} [01:37:57]free response buf [01:37:57]execute_script done [01:37:57]execute_script returns [01:37:57]free content buf [01:37:57]Sock 7.Close socket [01:37:57]Sock 7.Thread stoped [01:38:01]OFD Sender: No OFD packet to send [01:38:06]OFD Sender: No OFD packet to send [01:38:11]OFD Sender: No OFD packet to send [01:38:16]OFD Sender: No OFD packet to send [01:38:21]OFD Sender: No OFD packet to send [01:38:26]OFD Sender: No OFD packet to send [01:38:31]OFD Sender: No OFD packet to send [01:38:36]OFD Sender: No OFD packet to send [01:38:41]OFD Sender: No OFD packet to send [01:38:46]OFD Sender: No OFD packet to send [01:38:51]OFD Sender: No OFD packet to send [01:38:56]OFD Sender: No OFD packet to send [01:39:01]OFD Sender: No OFD packet to send [01:39:06]OFD Sender: No OFD packet to send [01:39:11]OFD Sender: No OFD packet to send [01:39:16]OFD Sender: No OFD packet to send [01:39:21]OFD Sender: No OFD packet to send [01:39:26]OFD Sender: No OFD packet to send [01:39:31]OFD Sender: No OFD packet to send [01:39:36]OFD Sender: No OFD packet to send [01:39:41]OFD Sender: No OFD packet to send [01:39:46]OFD Sender: No OFD packet to send [01:39:51]OFD Sender: No OFD packet to send [01:39:56]OFD Sender: No OFD packet to send [01:40:01]OFD Sender: No OFD packet to send [01:40:06]OFD Sender: No OFD packet to send [01:40:11]OFD Sender: No OFD packet to send [01:40:16]OFD Sender: No OFD packet to send [01:40:21]OFD Sender: No OFD packet to send [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:36]OFD Sender: No OFD packet to send [01:40:41]OFD Sender: No OFD packet to send [01:40:46]OFD Sender: No OFD packet to send [01:40:51]OFD Sender: No OFD packet to send [01:40:56]OFD Sender: No OFD packet to send [01:41:01]OFD Sender: No OFD packet to send [01:41:06]OFD Sender: No OFD packet to send [01:41:11]OFD Sender: No OFD packet to send [01:41:16]OFD Sender: No OFD packet to send [01:41:21]OFD Sender: No OFD packet to send [01:41:26]OFD Sender: No OFD packet to send [01:41:31]OFD Sender: No OFD packet to send [01:41:36]OFD Sender: No OFD packet to send [01:41:41]OFD Sender: No OFD packet to send [01:41:46]OFD Sender: No OFD packet to send [01:41:51]OFD Sender: No OFD packet to send [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:51]OFD Sender: No OFD packet to send [01:43:56]OFD Sender: No OFD packet to send [01:44:01]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:07]OFD Sender: No OFD packet to send [01:55:12]OFD Sender: No OFD packet to send [01:55:17]OFD Sender: No OFD packet to send [01:55:22]OFD Sender: No OFD packet to send [01:55:27]OFD Sender: No OFD packet to send [01:55:32]OFD Sender: No OFD packet to send [01:55:37]OFD Sender: No OFD packet to send [01:55:42]OFD Sender: No OFD packet to send [01:55:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:55]accept exits with 9 [02:14:55]New connection [02:14:55]New thread 3066785124 created [02:14:55]Thread 3066641764 joined [02:14:55]Waiting for new connection... [02:14:55] Sock 9.Parse request [02:14:55]Sock 9.Check first char [02:14:55]Sock 9.First char is OK [02:14:55]request: POST /json_proto HTTP/1.0 [02:14:55]Method: POST [02:14:55]URL: /json_proto [02:14:55]Method is POST - this is cgi request [02:14:55]url: /json_proto [02:14:55]query_string will be loaded in cgi processing [02:14:55]execute_cgi json_proto POST (null) [02:14:55]execute_cgi path=json_proto method=POST [02:14:55]POST find Content-Length [02:14:55]Host: 172.17.52.196:8080 [02:14:55]Content-Length: 621 [02:14:55]Content-Type: application/json [02:14:55] [02:14:55]POST finish read [02:14:55]Found Content-Length = 621 [02:14:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127240", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:14:55]execute_script... [02:14:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)127240", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:14:55]POST & json_proto [02:14:55]process_json_proto [02:14:55]json parsed OK: [02:14:55]protocol is kg_v1.0 [02:14:55]action value=close_receipt [02:14:55]process_action close_receipt [02:14:55]cmd_close_receipt [02:14:55]MH_GetDate [02:14:55]Write to MH i2c: F0 00 00 4D 06 42 [02:14:55]Write i2c OK [02:14:55]MH_I2C_Read... [02:14:55]Read from MH i2c: F0 [02:14:55]MH_I2C_Read... [02:14:55]Read from MH i2c: F0 09 00 [02:14:55]MH_I2C_Read... [02:14:55]Read from MH i2c: F0 09 00 4D 06 00 21 B9 15 67 60 05 E4 66 50 [02:14:55]GetLastDocTimeStamp 1729473073 [02:14:55]current date 1729476897 [02:14:55]FM_GetShiftState [02:14:55]SAM_PROTO_GetShiftState [02:14:55]wFMCommunicate request_size=4 [02:14:55]MH_SAM_APDU [02:14:55]CAPDU: 80 13 01 00 [02:14:55]Write to MH i2c: E2 08 00 4E 06 80 13 01 00 00 00 00 00 D1 [02:14:55]Write i2c OK [02:14:55]MH_I2C_Read... [02:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:14:55]Read from MH i2c: E2 [02:14:55]MH_I2C_Read... [02:14:55]Read from MH i2c: E2 0E 00 [02:14:55]MH_I2C_Read... [02:14:55]Read from MH i2c: E2 0E 00 4E 06 00 09 00 01 16 A2 15 67 00 00 00 00 90 00 11 [02:14:55]RAPDU: 09 00 01 16 A2 15 67 00 00 00 00 90 00 [02:14:55]wFMCommunicate OK [02:14:55]SAM_PROTO_GetShiftState done [02:14:55]FM_GetShiftState done [02:14:55]opened in 1729470998 [02:14:55]opened+sec_in_day 1729557398 [02:14:55]quantity*price = 14400 [02:14:55]sum+1 = 14401 [02:14:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 163 "Партнер Нефть" Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 СНО: Общий режим Чек 2 21.10.2024 02:14 Смена: 527 ФФД: 1.0 ЗНМ: 0300000101 РНМ: 0000000000091770 Версия ККМ: 001 ФМ: 0000000000871749 ФД: 69843 ФПД: 229897798133880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T021457&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69843&fm=229897798133880&tin=02508201610067®Number=0000000000091770&sum=14400 0 [02:14:56]StoreToDocumentArchive [02:14:56]shift 527 fd 69843 [02:14:56]save to /storage/0527/doc_00069843 [02:14:56]save last doc name /storage/0527/doc_00069843 to /storage/kkm_last_doc_name [02:14:56]save OK [02:14:56]Clear old archive folders... [02:14:56]ProcessDocumentItem done err = 0, tmpTLVsize=273 [02:14:56]tlvbuf is 017A23A0 [02:14:56]SAM_PROTO_ClearQueue [02:14:56]wFMCommunicate request_size=4 [02:14:56]MH_SAM_APDU [02:14:56]CAPDU: 80 09 00 00 [02:14:56]Write to MH i2c: E2 08 00 5B 06 80 09 00 00 00 00 00 00 D3 [02:14:56]Write i2c OK [02:14:56]MH_I2C_Read... [02:14:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:14:56]Read from MH i2c: E2 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 03 00 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 03 00 5B 06 00 90 00 D5 [02:14:56]RAPDU: 90 00 [02:14:56]wFMCommunicate OK [02:14:56]SAM_PROTO_ClearQueue done [02:14:56]KKMCreateOFDPacket [02:14:56]OFDProtocolAddRootSTLVToBuf [02:14:56]FM_MakeSignedData [02:14:56]FM_MakeSignedData [02:14:56]SAM_PROTO_SignData [02:14:56]wFMCommunicate request_size=4 [02:14:56]MH_SAM_APDU [02:14:56]CAPDU: 80 0D 01 02 [02:14:56]Write to MH i2c: E2 08 00 5C 06 80 0D 01 02 00 00 00 00 DB [02:14:56]Write i2c OK [02:14:56]MH_I2C_Read... [02:14:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:14:56]Read from MH i2c: E2 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 03 00 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 03 00 5C 06 00 90 00 D6 [02:14:56]RAPDU: 90 00 [02:14:56]wFMCommunicate OK [02:14:56]wFMCommunicate request_size=255 [02:14:56]MH_SAM_APDU [02:14:56]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 21 B9 15 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 [02:14:56]Write to MH i2c: E2 02 01 5D 06 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 21 B9 15 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 00 00 AD [02:14:56]Write i2c OK [02:14:56]MH_I2C_Read... [02:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:14:56]Read from MH i2c: E2 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 03 00 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 03 00 5D 06 00 90 00 D7 [02:14:56]RAPDU: 90 00 [02:14:56]wFMCommunicate OK [02:14:56]wFMCommunicate request_size=32 [02:14:56]MH_SAM_APDU [02:14:56]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 34 39 10 04 04 00 D3 10 01 00 35 04 06 00 D1 17 40 97 A8 78 [02:14:56]Write to MH i2c: E2 23 00 5E 06 80 0D 02 02 1B 00 30 30 30 38 37 31 37 34 39 10 04 04 00 D3 10 01 00 35 04 06 00 D1 17 40 97 A8 78 00 00 02 [02:14:56]Write i2c OK [02:14:56]MH_I2C_Read... [02:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:14:56]Read from MH i2c: E2 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 03 00 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 03 00 5E 06 00 90 00 D8 [02:14:56]RAPDU: 90 00 [02:14:56]wFMCommunicate OK [02:14:56]wFMCommunicate request_size=4 [02:14:56]MH_SAM_APDU [02:14:56]CAPDU: 80 0D 03 02 [02:14:56]Write to MH i2c: E2 08 00 5F 06 80 0D 03 02 00 00 00 00 E0 [02:14:56]Write i2c OK [02:14:56]MH_I2C_Read... [02:14:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:14:56]Read from MH i2c: E2 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 0B 00 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 0B 00 5F 06 00 FD 52 C0 9C 95 77 3D 63 90 00 38 [02:14:56]RAPDU: FD 52 C0 9C 95 77 3D 63 90 00 [02:14:56]wFMCommunicate OK [02:14:56]SAM_PROTO_SignData done [02:14:56]FM_MakeSignedData done [02:14:56]CreateOFDProtocolMessage [02:14:56]wFMCommunicate request_size=4 [02:14:56]MH_SAM_APDU [02:14:56]CAPDU: 80 11 00 00 [02:14:56]Write to MH i2c: E2 08 00 60 06 80 11 00 00 00 00 00 00 E0 [02:14:56]Write i2c OK [02:14:56]MH_I2C_Read... [02:14:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:14:56]Read from MH i2c: E2 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 17 00 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: E2 17 00 60 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 37 [02:14:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [02:14:56]wFMCommunicate OK [02:14:56]CreateOFDProtocolMessage done [02:14:56]OFDSenderStorePacket 69843 [02:14:56]StoreOFDPacket docnum=69843 [02:14:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 02 BA 1D 01 44 EF 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 21 B9 15 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 D3 10 01 00 35 04 06 00 D1 17 40 97 A8 78 FD 52 C0 9C 95 77 3D 63 [02:14:56]CheckFolder [02:14:56]dirname=/storage/ofd_packets [02:14:56]CheckFolder done [02:14:56]ProducePacketName [02:14:56]name=ofd_packets/00069843 [02:14:56]NVStorageSaveData ofd_packets/00069843 [02:14:56]File name is /storage/ofd_packets/00069843 [02:14:56]Write 323 bytes [02:14:56]NVStorageSaveData done [02:14:56]OFDSenderStorePacket done [02:14:56]KKMCreateOFDPacket done [02:14:56]NVStorageSaveData kkm_last_timestamp [02:14:56]File name is /storage/kkm_last_timestamp [02:14:56]Write 4 bytes [02:14:56]NVStorageSaveData done [02:14:56]ExternCall_PrintAddStr [02:14:56]wPrintStart [02:14:56]Write to MH i2c: 01 00 00 61 06 67 [02:14:56]Write i2c OK [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: 01 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: 01 07 00 [02:14:56]MH_I2C_Read... [02:14:56]Read from MH i2c: 01 07 00 61 06 00 00 00 00 00 FF 0F 7C [02:14:56]RasterBufferAndPrint [02:14:56]line Счет N : (3)127240 [02:14:56]line ИНН: 02508201610067 [02:14:56]line Контрольно-Кассовый Чек [02:14:56]line ПРОДАЖА [02:14:56]line Товар: 48743570 [02:14:56]line Сигареты Winston XStyle Blue [02:14:56]line 1.000 * 144.00 [02:14:56]line = 144.00 [02:14:56]line НДС 12% НСП 1% [02:14:56]line > о реализуемом товаре [02:14:56]line ИТОГО: 144.00 [02:14:56]line НСП 1% : 1.27 [02:14:56]line НДС 12% : 15.29 [02:14:56]line Наличными: 144.00 [02:14:56]line Безнал.: 0.00 [02:14:56]line Место: АЗС № 163 "Партнер Нефть" [02:14:56]line Адрес: 720001, с. Лавдан-Кара, ул. Курманбек Баатыра 43, 40.916131, 72.925567 [02:14:56]line СНО: Общий режим [02:14:56]line Чек 2 21.10.2024 02:14 [02:14:56]line Смена: 527 ФФД: 1.0 [02:14:56]line ЗНМ: 0300000101 [02:14:56]line РНМ: 0000000000091770 [02:14:56]line Версия ККМ: 001 [02:14:56]line ФМ: 0000000000871749 [02:14:56]line ФД: 69843 [02:14:56]line ФПД: 229897798133880 [02:14:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T021457&type=1&operation_type=1&fn_number=0000000000871749&fd_number=69843&fm=229897798133880&tin=02508201610067®Number=0000000000091770&sum=14400 [02:14:57]line 0 [02:14:57]OFD Sender: Processing packet 69843 [packets to send 32, broken 31] [02:14:57]ProducePacketName [02:14:57]name=ofd_packets/00069843 [02:14:57]OFD Sender: To server: pG, [02:14:57]CommunicateWithHost lk.salyk.kg:30040 [02:14:57]ConnectInit lk.salyk.kg [02:14:57]written 0, free lines is 4095 [02:14:57]Connected sock=10 [02:14:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 25 01 00 00 02 BA 1D 01 44 EF 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 21 B9 15 67 0E 04 04 00 0F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 10 04 04 00 D3 10 01 00 35 04 06 00 D1 17 40 97 A8 78 FD 52 C0 9C 95 77 3D 63 [02:14:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 4F 00 00 00 2D 49 47 00 83 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 31 37 34 39 10 04 04 00 D3 10 01 00 F4 03 04 00 A2 5E 15 67 B6 04 01 00 00 45 14 9F 97 31 D3 DD BF [02:14:57]CommunicateWithHost err = 0 [02:14:57]CheckOFDResponse [02:14:57]1017 (14) - 77093643461234 [02:14:57]1041 (16) - 0000000000871749 [02:14:57]1040 (4) - 69843 [02:14:57]1012 (4) - 20.10.2024 19:48 [02:14:57]1206 (1) - 0 [02:14:57]OFD Sender: Remove packet 69843 [02:14:57]ProducePacketName [02:14:57]name=ofd_packets/00069843 [02:14:57]NVStorageDeleteData [02:14:57]Write to MH i2c: 01 00 00 89 06 8F [02:14:57]Write i2c OK [02:14:57]MH_I2C_Read... [02:14:57]Read from MH i2c: 01 [02:14:57]MH_I2C_Read... [02:14:57]Read from MH i2c: 01 07 00 [02:14:57]MH_I2C_Read... [02:14:57]Read from MH i2c: 01 07 00 89 06 00 00 00 00 00 EE 0C 90 [02:14:57]RasterBufferAndPrint [02:14:57]line [02:14:57]line [02:14:57]line [02:14:57]line [02:14:57]line [02:14:57]written 0, free lines is 3316 [02:14:57]MH_Cut [02:14:57]Write to MH i2c: D1 01 00 90 06 01 68 [02:14:57]Write i2c OK [02:14:57]MH_I2C_Read... [02:14:57]Read from MH i2c: D1 [02:14:57]MH_I2C_Read... [02:14:57]Read from MH i2c: D1 01 00 [02:14:57]MH_I2C_Read... [02:14:57]Read from MH i2c: D1 01 00 90 06 00 67 [02:14:57]Write to MH i2c: 01 00 00 91 06 97 [02:14:57]Write i2c OK [02:14:57]MH_I2C_Read... [02:14:58]OFD Sender: No OFD packet to send [02:14:58]*** Cut start [02:14:58]*** Partial cut [02:14:58]*** CUTSNS_PIN = 1 [02:14:58]*** CUTSNS_PIN = 0 [02:14:58]*** Brake cut motor [02:14:59]Read from MH i2c: 01 [02:14:59]MH_I2C_Read... [02:14:59]*** Stop cut motor [02:14:59]*** Cut end [02:14:59]Read from MH i2c: 01 07 00 [02:14:59]MH_I2C_Read... [02:14:59]Read from MH i2c: 01 07 00 91 06 00 00 00 00 00 FF 0F AC [02:14:59]process_action close_receipt done [02:14:59]requested_data is exist [02:14:59]produce_requested_data [02:14:59]requested_item fm.sn is exist - process it [02:14:59]wFMCommunicate request_size=4 [02:14:59]MH_SAM_APDU [02:14:59]CAPDU: 80 11 00 00 [02:14:59]Write to MH i2c: E2 08 00 92 06 80 11 00 00 00 00 00 00 12 [02:14:59]Write i2c OK [02:14:59]MH_I2C_Read... [02:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:14:59]Read from MH i2c: E2 [02:14:59]MH_I2C_Read... [02:14:59]Read from MH i2c: E2 17 00 [02:14:59]MH_I2C_Read... [02:14:59]Read from MH i2c: E2 17 00 92 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 69 [02:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 34 39 90 00 [02:14:59]wFMCommunicate OK [02:14:59]requested_item fd.num is exist - process it [02:14:59]SAM_PROTO_GetFieldsCounters [02:14:59]wFMCommunicate request_size=4 [02:14:59]MH_SAM_APDU [02:14:59]CAPDU: 80 13 00 00 [02:14:59]Write to MH i2c: E2 08 00 93 06 80 13 00 00 00 00 00 00 15 [02:14:59]Write i2c OK [02:14:59]MH_I2C_Read... [02:14:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:14:59]Read from MH i2c: E2 [02:14:59]MH_I2C_Read... [02:14:59]Read from MH i2c: E2 62 00 [02:14:59]MH_I2C_Read... [02:14:59]Read from MH i2c: E2 62 00 93 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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 D3 10 01 00 0E 04 04 00 0F 02 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 34 [02:14: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 31 37 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 30 10 04 04 00 D3 10 01 00 0E 04 04 00 0F 02 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 [02:14:59]wFMCommunicate OK [02:14:59]SAM_PROTO_GetFieldsCounters done [02:14:59]requested_item shift.num is exist - process it [02:14:59]requested_item shift.opened is exist - process it [02:14:59]req_shift_opened [02:14:59]FM_GetShiftState [02:14:59]SAM_PROTO_GetShiftState [02:14:59]wFMCommunicate request_size=4 [02:14:59]MH_SAM_APDU [02:14:59]CAPDU: 80 13 01 00 [02:14:59]Write to MH i2c: E2 08 00 94 06 80 13 01 00 00 00 00 00 17 [02:14:59]Write i2c OK [02:14:59]MH_I2C_Read... [02:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:14:59]Read from MH i2c: E2 [02:14:59]MH_I2C_Read... [02:14:59]Read from MH i2c: E2 0E 00 [02:14:59]MH_I2C_Read... [02:14:59]Read from MH i2c: E2 0E 00 94 06 00 09 00 01 16 A2 15 67 00 00 00 00 90 00 57 [02:14:59]RAPDU: 09 00 01 16 A2 15 67 00 00 00 00 90 00 [02:14:59]wFMCommunicate OK [02:14:59]SAM_PROTO_GetShiftState done [02:14:59]FM_GetShiftState done [02:14:59]req_shift_opened done [02:14:59]requested_item shift.open_date is exist - process it [02:14:59]req_shift_open_date [02:14:59]req_shift_open_date done [02:14:59]produce_requested_data done [02:14:59]produce_requested_data return {"fm.sn":"0000000000871749","fd.num":69843,"shift.num":527,"shift.opened":1,"shift.open_date":1729470998} [02:14:59]process_action_free close_receipt [02:14:59]json_value_free [02:14:59]json_value_free done [02:14:59]process_json_proto returns [02:14:59]Send response to host [02:14:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871749","fd.num":69843,"shift.num":527,"shift.opened":1,"shift.open_date":1729470998}}} [02:14:59]free response buf [02:14:59]execute_script done [02:14:59]execute_script returns [02:14:59]free content buf [02:14:59]Sock 9.Close socket [02:14:59]Sock 9.Thread stoped [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:13]OFD Sender: No OFD packet to send [02:30:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:48]OFD Sender: No OFD packet to send [02:30:53]OFD Sender: No OFD packet to send [02:30:58]OFD Sender: No OFD packet to send [02:31:03]OFD Sender: No OFD packet to send [02:31:08]OFD Sender: No OFD packet to send [02:31:13]OFD Sender: No OFD packet to send [02:31:18]OFD Sender: No OFD packet to send [02:31:23]OFD Sender: No OFD packet to send [02:31:28]OFD Sender: No OFD packet to send [02:31:33]OFD Sender: No OFD packet to send [02:31:38]OFD Sender: No OFD packet to send [02:31:43]OFD Sender: No OFD packet to send [02:31:48]OFD Sender: No OFD packet to send [02:31:53]OFD Sender: No OFD packet to send [02:31:58]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:14]OFD Sender: No OFD packet to send [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:44]OFD Sender: No OFD packet to send [02:40:49]OFD Sender: No OFD packet to send [02:40:54]OFD Sender: No OFD packet to send [02:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:05]OFD Sender: No OFD packet to send [02:57:10]OFD Sender: No OFD packet to send [02:57:15]OFD Sender: No OFD packet to send [02:57:20]OFD Sender: No OFD packet to send [02:57:25]OFD Sender: No OFD packet to send [02:57:30]OFD Sender: No OFD packet to send [02:57:35]OFD Sender: No OFD packet to send [02:57:40]OFD Sender: No OFD packet to send [02:57:45]OFD Sender: No OFD packet to send [02:57:50]OFD Sender: No OFD packet to send [02:57:55]OFD Sender: No OFD packet to send [02:58:00]OFD Sender: No OFD packet to send [02:58:05]OFD Sender: No OFD packet to send [02:58:10]OFD Sender: No OFD packet to send [02:58:15]OFD Sender: No OFD packet to send [02:58:20]OFD Sender: No OFD packet to send [02:58:25]OFD Sender: No OFD packet to send [02:58:30]OFD Sender: No OFD packet to send [02:58:35]OFD Sender: No OFD packet to send [02:58:40]OFD Sender: No OFD packet to send [02:58:45]OFD Sender: No OFD packet to send [02:58:50]OFD Sender: No OFD packet to send [02:58:55]OFD Sender: No OFD packet to send [02:59:00]OFD Sender: No OFD packet to send [02:59:05]OFD Sender: No OFD packet to send [02:59:10]OFD Sender: No OFD packet to send [02:59:15]OFD Sender: No OFD packet to send [02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send [03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send